:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.56);
  --faint: rgba(255, 255, 255, 0.34);
  --hairline: rgba(255, 255, 255, 0.1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  --pad: clamp(20px, 5vw, 56px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Ambient background ------------------------------------------------- */

.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      60% 45% at 50% -5%,
      rgba(255, 255, 255, 0.09) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    radial-gradient(
      45% 40% at 85% 105%,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0) 100%
    );
}

.grain {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Layout ------------------------------------------------------------- */

.frame {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--pad);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(32px, 6vh, 64px);
  max-width: 1180px;
  margin: 0 auto;
}

.head {
  display: flex;
  align-items: center;
}

.wordmark {
  color: var(--fg);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  opacity: 0.92;
  transition: opacity 0.25s ease;
}

.wordmark:hover {
  opacity: 0.62;
}

.stage {
  align-self: center;
  width: 100%;
  max-width: 760px;
  min-width: 0;
}

/* --- Badge -------------------------------------------------------------- */

.badge {
  display: inline-block;
  margin: 0 0 clamp(24px, 4vh, 36px);
  padding: 7px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Title -------------------------------------------------------------- */

.title {
  margin: 0;
  font-size: clamp(2.5rem, 8.5vw, 5.75rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.title em {
  font-style: normal;
  color: var(--faint);
}

/* --- Triad -------------------------------------------------------------- */

.triad {
  margin: clamp(32px, 5vh, 52px) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--hairline);
  max-width: 100%;
}

.triad li {
  padding: 14px 26px 14px 0;
  margin-right: 26px;
  border-right: 1px solid var(--hairline);
  font-size: clamp(0.95rem, 1.5vw, 1.0625rem);
  font-weight: 450;
  color: var(--fg);
  white-space: nowrap;
}

.triad li:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

/* --- Lede & footer ------------------------------------------------------ */

.lede {
  margin: clamp(20px, 3vh, 28px) 0 0;
  max-width: 44ch;
  font-size: clamp(1rem, 1.7vw, 1.1875rem);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.foot {
  display: flex;
  align-items: flex-end;
}

.legal {
  margin: 0;
  max-width: 62ch;
  font-size: 11.5px;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--faint);
  text-wrap: pretty;
}

/* --- Reveal ------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- Narrow ------------------------------------------------------------- */

@media (max-width: 640px) {
  .triad {
    display: block;
  }

  .triad li {
    padding: 12px 0;
    margin-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
    color: var(--muted);
  }

  .triad li:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
