/* PITCH OFF — landing page styles */

/* Self-hosted fonts (SIL Open Font License), latin subset */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/anton-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0E0E0E;
  --bg-alt: #141414;
  --card: #1A1A1A;
  --line: rgba(244, 237, 224, .08);
  --line-strong: rgba(244, 237, 224, .16);
  --cream: #F4EDE0;
  --muted: rgba(244, 237, 224, .65);
  --green: #2ECC71;
  --yellow: #F5C518;
  --coral: #F26B5B;

  --font-display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 16px;
  --gutter: clamp(16px, 3.6vw, 56px);
  --section-y: clamp(72px, 10vw, 136px);
  --nav-h: 84px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* The box interior, as a low-opacity diagonal band */
  --bands: linear-gradient(115deg,
    var(--green) 0 33.3%, var(--yellow) 33.3% 66.6%, var(--coral) 66.6% 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon { width: 1.1em; height: 1.1em; flex: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; margin: -1px;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--cream); color: var(--bg);
  padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 920px; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--yellow { color: var(--yellow); }
.eyebrow--coral { color: var(--coral); }

.h2, .h3, .hero__title, .final__title, .truth__count, .modal__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .005em;
}
.h2 { font-size: clamp(40px, 6vw, 88px); }
.h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1; }
.lead { font-size: clamp(15px, 1.25vw, 18px); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.text-coral { color: var(--coral); }

.caption {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}
.caption--center { text-align: center; margin-top: 28px; }

.stats-line {
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.stats-line span { margin-inline: .9em; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: box-shadow .25s ease, transform .2s var(--ease-out), background-color .2s ease;
}
.btn--primary { background: var(--green); color: var(--bg); }
.btn--primary:hover { box-shadow: 0 0 0 6px rgba(46, 204, 113, .14), 0 10px 40px rgba(46, 204, 113, .35); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0) scale(.98); }
.btn--secondary { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--secondary:hover { background: rgba(244, 237, 224, .08); }
.btn--sm { min-height: 44px; padding: 0 24px; font-size: 15px; }
.btn--lg { min-height: 58px; padding: 0 36px; font-size: 17px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .2s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bg);
  white-space: nowrap;
}
.pill--easy { background: var(--green); }
.pill--medium { background: var(--yellow); }
.pill--hard { background: var(--coral); }
.pill--flash { background: var(--bg); color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--cream); }
.pill--label { background: rgba(245, 197, 24, .12); color: var(--yellow); box-shadow: inset 0 0 0 1px rgba(245, 197, 24, .4); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.is-scrolled {
  background: rgba(14, 14, 14, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo img { width: clamp(118px, 10vw, 142px); height: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  letter-spacing: .02em;
}
.nav__links a { text-decoration: none; padding: 10px 2px; transition: color .2s; }
.nav__links a:hover { color: var(--yellow); }
.nav__links span { color: var(--muted); font-size: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: calc(var(--nav-h) * -1);
  padding-top: var(--nav-h);
  overflow: hidden;
}
.anchor-top { position: absolute; top: 0; }
.hero__grid {
  display: grid;
  grid-template-columns: 45fr 55fr;
  grid-template-rows: 1fr auto auto auto auto auto auto 1fr;
  grid-template-areas:
    ".        media"
    "eyebrow  media"
    "title    media"
    "sub      media"
    "actions  media"
    "stats    media"
    "chip     media"
    ".        media";
  column-gap: 0;
  min-height: min(calc(100svh - var(--nav-h)), 900px);
  padding-block: 32px 64px;
}
.hero__eyebrow { grid-area: eyebrow; color: var(--cream); font-size: 15px; letter-spacing: .1em; margin-bottom: 18px; }
.hero__eyebrow span { margin-inline: .6em; color: var(--muted); }
.hero__title {
  grid-area: title;
  position: relative;
  z-index: 2;
  font-size: clamp(46px, 5.7vw, 92px);
  white-space: nowrap;
}
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__line > span { display: block; }
.hero__line--green { color: var(--green); }
.hero__line--coral { color: var(--coral); }
.hero__sub {
  grid-area: sub;
  margin-top: 28px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  max-width: 40ch;
}
.hero__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 36px;
}
.hero__actions .btn { min-width: min(290px, 100%); }
.play-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  text-decoration: none;
  font-size: 16px;
}
.play-link__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  transition: background-color .2s, color .2s;
}
.play-link__icon .icon { width: 18px; height: 18px; margin-left: 2px; }
.play-link__text { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.play-link:hover .play-link__icon { background: var(--cream); color: var(--bg); }

.hero__stats { grid-area: stats; margin-top: 40px; }
.chip {
  grid-area: chip;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 14px 26px;
  border: 2px solid var(--yellow);
  border-radius: 999px;
  color: var(--yellow);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.chip .icon { width: 22px; height: 22px; }

.hero__media {
  grid-area: media;
  position: relative;
  align-self: center;
  margin-right: calc(var(--gutter) * -1 - 2vw);
  margin-left: -12%;
  z-index: 1;
  /* Hook: future scroll animation sets transforms on this element. */
  will-change: auto;
}
.hero__media img {
  width: 116%;
  max-width: none;
  margin-left: -8%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 54% 50%, #000 46%, rgba(0,0,0,.55) 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 54% 50%, #000 46%, rgba(0,0,0,.55) 72%, transparent 100%);
}

/* ---------- Band divider ---------- */
.bands {
  height: 6px;
  background: var(--bands);
  opacity: .55;
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 72px); }

/* Below-the-fold sections skip style/layout/paint until they get near the viewport. */
.section, .deck-section, .truth, .final, .footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
/* Once someone jumps via an anchor, render everything so the scroll target doesn't move. */
.cv-off .section, .cv-off .deck-section, .cv-off .truth, .cv-off .final, .cv-off .footer { content-visibility: visible; }

/* ---------- Countdown ---------- */
.countdown-band { background: var(--bg); padding-block: 48px; border-bottom: 1px solid var(--line); }
.countdown-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
}
.countdown-band__label { color: var(--yellow); font-size: 15px; }
.countdown { display: flex; gap: clamp(8px, 1.4vw, 16px); }
.countdown__tile {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: clamp(72px, 8vw, 112px);
  padding: 16px 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.countdown__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}
.countdown__unit { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.countdown__tile--sec .countdown__num { color: var(--coral); }
.countdown--compact .countdown__tile { min-width: clamp(66px, 7vw, 92px); }
.countdown--compact .countdown__num { font-size: clamp(26px, 3vw, 40px); }
.countdown__live {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  text-transform: uppercase;
  color: var(--yellow);
  line-height: 1;
}

/* ---------- Challenge cards: deck + marquee ---------- */
.deck-section { position: relative; overflow: hidden; padding-block: clamp(72px, 9vw, 120px); }
.deck-section__inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 28px; }
.deck-section__label { text-align: center; }
/* Dark pool behind the deck so its label and buttons stay readable over the marquee */
.deck-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 34rem 62% at 50% 58%, rgba(20, 20, 20, .92) 35%, transparent 75%);
  pointer-events: none;
}

/* Real cards streaming past in the background */
.marquee {
  position: absolute;
  left: -15%;
  right: -15%;
  top: 50%;
  display: grid;
  gap: 20px;
  transform: translateY(-50%) rotate(-7deg);
  opacity: .22;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.marquee__row { display: flex; gap: 20px; width: max-content; animation: marquee 80s linear infinite; }
.marquee__row--rev { animation-direction: reverse; animation-duration: 95s; }
.marquee__row img { width: clamp(120px, 12vw, 176px); height: auto; aspect-ratio: 5 / 7; border-radius: 12px; }
.deck-section.is-paused .marquee__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* The deck you draw from */
.deck {
  position: relative;
  width: clamp(220px, 23vw, 320px);
  aspect-ratio: 5 / 7;
  perspective: 1400px;
}
.deck__back, .deck__face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
}
.deck__back { overflow: hidden; background: #121212; border: 1px solid var(--line); }
.deck__back img { width: 100%; height: 100%; object-fit: cover; }
.deck__back--1 { transform: rotate(-7deg) translate(-9%, 3%); }
.deck__back--2 { transform: rotate(6deg) translate(8%, 4%); }
.deck__face { overflow: hidden; transform-style: preserve-3d; background: #121212; }
.deck__face img { width: 100%; height: 100%; object-fit: cover; }
.deck.is-shuffling .deck__back--1 { animation: shuffle-l .55s var(--ease-out); }
.deck.is-shuffling .deck__back--2 { animation: shuffle-r .55s var(--ease-out); }
@keyframes shuffle-l { 45% { transform: rotate(-16deg) translate(-38%, 2%); } }
@keyframes shuffle-r { 45% { transform: rotate(15deg) translate(36%, 3%); } }

.deck-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; }
.deck-status {
  min-height: 1.5em;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.deck-status b { color: var(--cream); font-weight: 700; }
.btn--ghost {
  min-height: 44px;
  padding: 0 18px;
  background: transparent;
  color: var(--muted);
  border-color: var(--line-strong);
  font-size: 14px;
}
.btn--ghost:hover { color: var(--cream); border-color: var(--cream); }
.btn .icon--spin { transition: transform .5s var(--ease-out); }
.btn:hover .icon--spin { transform: rotate(180deg); }

/* ---------- Problem / versus ---------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.versus__card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 20px;
  padding: clamp(28px, 3.5vw, 48px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.versus__card--old { border-top: 3px solid var(--coral); }
.versus__card--new { border-top: 3px solid var(--yellow); }
.versus__card--new::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 70%;
  background: var(--bands);
  opacity: .07;
  transform: rotate(-12deg);
  pointer-events: none;
}
.x-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.x-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.x-list li span {
  background: linear-gradient(rgba(242, 107, 91, .7), rgba(242, 107, 91, .7)) 0 58% / 100% 1.5px no-repeat;
}
.x-list .icon { color: var(--coral); width: 16px; height: 16px; }
.beat-list { display: grid; gap: 10px; position: relative; z-index: 1; }
.beat-list li {
  font-size: clamp(16px, 1.4vw, 19px);
  padding-left: 20px;
  border-left: 2px solid var(--line-strong);
}
.beat-list li:nth-child(2) { border-left-color: var(--coral); }

/* ---------- Mechanic / clock ---------- */
.mechanic__grid {
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr;
  align-items: center;
  gap: clamp(40px, 7vw, 120px);
}
.mechanic__copy { display: grid; gap: 22px; }
.clock { position: relative; aspect-ratio: 1; width: 100%; max-width: 420px; margin-inline: auto; }
.clock__ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.clock__track { fill: none; stroke: var(--line-strong); stroke-width: 6; }
.clock__sweep {
  fill: none;
  stroke: var(--coral);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: 0;
}
.clock.is-running .clock__sweep { animation: sweep 30s linear infinite; }
@keyframes sweep { to { stroke-dashoffset: 100; } }
.clock__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(130px, 17vw, 240px);
  line-height: 1;
  color: var(--coral);
}

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.feature {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 30px 28px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s, transform .3s var(--ease-out);
}
.feature:hover { border-color: var(--line-strong); }
.feature p:not(.feature__label) { color: var(--muted); font-size: 15px; }
.feature__label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
.feature--wide { grid-column: span 1; }
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.level {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 4px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  text-align: center;
}
.level .pill { padding: 4px 8px; font-size: 10px; letter-spacing: .06em; }
.level__pts { font-weight: 700; }
.level__time { color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.level__time--fast { color: var(--coral); }

/* ---------- How to play ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 22px); counter-reset: none; }
.step {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px 26px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step p { color: var(--muted); font-size: 15px; }
.step__num {
  font-family: var(--font-display);
  font-size: clamp(64px, 6vw, 96px);
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cream);
  opacity: .9;
}
.step:nth-child(2) .step__num { -webkit-text-stroke-color: var(--yellow); }
.step:nth-child(3) .step__num { -webkit-text-stroke-color: var(--coral); }

/* ---------- Moment of truth ---------- */
.truth {
  padding-block: clamp(80px, 12vw, 160px);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(245, 197, 24, .07), transparent 70%),
    var(--bg);
}
.truth .eyebrow { margin-bottom: 22px; }
.truth__count {
  font-size: clamp(56px, 11vw, 176px);
  line-height: .9;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: .08em;
}
.truth__beat { display: inline-block; color: var(--muted); }
.truth__beat--go { color: var(--yellow); }

/* ---------- Box ---------- */
.box-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.box-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0B0B0B; }
.box-photo img { width: 100%; }
.box-list { display: grid; gap: 26px; }
.box-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.box-item:last-child { border-bottom: 0; padding-bottom: 0; }
.box-item__num {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: .85;
  color: var(--yellow);
}
.box-item__title { font-family: var(--font-mono); font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.deck-bar {
  display: flex;
  height: 30px;
  gap: 3px;
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.deck-bar__seg { display: grid; place-items: center; color: var(--bg); white-space: nowrap; overflow: hidden; }
.deck-bar__seg--easy { background: var(--green); }
.deck-bar__seg--medium { background: var(--yellow); }
.deck-bar__seg--hard { background: var(--coral); }
.deck-bar__seg--flash { background: var(--bg); color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--cream); border-radius: 0 8px 8px 0; }
.deck-legend { margin-top: 10px; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.box-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(48px, 6vw, 80px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.box-stats > div { padding: 26px 28px; display: grid; gap: 6px; }
.box-stats > div + div { border-left: 1px solid var(--line); }
.box-stats dt { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.box-stats dd { font-family: var(--font-display); font-size: clamp(32px, 3.4vw, 48px); line-height: 1; text-transform: uppercase; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s;
}
.faq__item[open] { border-color: var(--line-strong); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 18px 24px;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { width: 22px; height: 22px; color: var(--yellow); transition: transform .3s var(--ease-out); }
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__item p { padding: 0 24px 22px; color: var(--muted); max-width: 70ch; }

/* ---------- Final CTA ---------- */
.final {
  position: relative;
  overflow: hidden;
  padding-block: clamp(96px, 13vw, 180px);
  background: var(--bg-alt);
  text-align: center;
}
.final__bands {
  position: absolute;
  inset: -30% -10%;
  background: var(--bands);
  opacity: .06;
  transform: rotate(-8deg);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000, transparent);
}
.final__inner { position: relative; display: grid; justify-items: center; gap: 28px; }
.final__title { font-size: clamp(52px, 9vw, 144px); }
.final .lead { margin-inline: auto; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 64px; background: var(--bg); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand { display: grid; gap: 18px; align-content: start; max-width: 380px; }
.footer__brand img { width: 150px; }
.footer__brand p { font-size: 14px; }
.footer__head { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin-bottom: 8px; }
.footer__col { display: grid; align-content: start; gap: 4px; }
.footer__col a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; text-decoration: none; font-size: 14px; }
.footer__col a:hover { color: var(--yellow); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 56px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Modal ---------- */
.modal {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: clamp(32px, 5vw, 48px);
  background: var(--card);
  color: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
}
.modal::backdrop { background: rgba(8, 8, 8, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal[open] { animation: modal-in .28s var(--ease-out); }
.modal[open]::backdrop { animation: fade-in .28s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .2s, transform .25s var(--ease-out);
}
.modal__close:hover { background: rgba(244, 237, 224, .08); transform: rotate(90deg); }
.modal__view { display: grid; gap: 16px; }
.modal__view[hidden] { display: none; }
.modal .pill--label { justify-self: start; }
.modal__title { font-size: clamp(40px, 7vw, 56px); }
.modal__title:focus { outline: none; }
.modal__form { display: grid; gap: 12px; margin-top: 8px; }
.modal__form input[type="email"] {
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  background: var(--bg);
  color: var(--cream);
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  transition: border-color .2s;
}
.modal__form input::placeholder { color: rgba(244, 237, 224, .4); }
.modal__form input:focus-visible { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(245, 197, 24, .25); }
.modal__form input[aria-invalid="true"] { border-color: var(--coral); }
.form-error { color: var(--coral); font-size: 14px; }
.modal__fine { font-size: 12px; color: var(--muted); text-align: center; }
.modal__success { justify-items: center; text-align: center; }
.modal__check {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green);
  color: var(--bg);
}
.modal__check .icon { width: 28px; height: 28px; }
.modal__next { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 14px; color: var(--yellow); }
.spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(245, 197, 24, .25);
  border-top-color: var(--yellow);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .truth__beat { opacity: .12; transform: scale(.9); transition: opacity .35s ease, transform .5s var(--ease-out), color .3s; }
.truth.is-in .truth__beat { opacity: 1; transform: none; }
.truth.is-in .truth__beat:nth-child(1) { transition-delay: 0s; }
.truth.is-in .truth__beat:nth-child(2) { transition-delay: .7s; }
.truth.is-in .truth__beat:nth-child(3) { transition-delay: 1.4s; }
.truth.is-in .truth__beat:nth-child(4) { transition-delay: 2.1s; }


/* ---------- Motion ---------- */
:root { interpolate-size: allow-keywords; }

/* Scroll progress: brand bands fill across the top */
.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 60;
  background: linear-gradient(90deg, var(--green), var(--yellow) 50%, var(--coral));
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .progress { animation: grow-x linear both; animation-timeline: scroll(root); }
}
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Hero intro: headline lines rise out of a mask, the rest follows */
.js .nav__inner { animation: fade-down .7s var(--ease-out) both; }
.js .hero__line > span { animation: line-up .9s var(--ease-out) both; animation-delay: calc(.12s + var(--l) * .11s); }
.js .intro { animation: fade-up .8s var(--ease-out) both; animation-delay: var(--d, 0s); }
.js .hero__media img { animation: hero-in 1.6s var(--ease-out) both; }
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-12px); } }
@keyframes hero-in { from { transform: scale(1.07) translateY(18px); } }

/* Hero on scroll: copy lifts away, product drifts and grows */
@supports (animation-timeline: scroll()) {
  .hero__media picture {
    display: block;
    animation: hero-drift linear both;
    animation-timeline: scroll(root);
    animation-range: 0 100vh;
  }
  .hero__title {
    animation: hero-lift linear both;
    animation-timeline: scroll(root);
    animation-range: 0 90vh;
  }
}
@keyframes hero-drift { to { transform: translateY(14%) scale(1.1); opacity: .35; } }
@keyframes hero-lift { to { transform: translateY(-18%); opacity: .2; } }

/* Countdown digits tick */

/* Section headlines wipe up after their eyebrow */
.js .section-head .h2 {
  clip-path: inset(0 0 100% 0);
  transform: translateY(24px);
  transition: clip-path 1s var(--ease-out) .12s, transform 1s var(--ease-out) .12s;
}
.js .section-head.is-in .h2 { clip-path: inset(-10% -5% -15% -5%); transform: none; }

/* Problem: the homework list gets crossed out, the PITCH OFF beats land one by one */
.js .versus__card .x-list li span { background-size: 0 1.5px; transition: background-size .6s var(--ease-out); transition-delay: calc(.5s + var(--j) * .12s); }
.js .versus__card.is-in .x-list li span { background-size: 100% 1.5px; }
.js .beat-list li { opacity: 0; transform: translateX(-14px); transition: opacity .5s ease, transform .6s var(--ease-out); transition-delay: calc(.4s + var(--j) * .28s); }
.js .versus__card.is-in .beat-list li { opacity: 1; transform: none; }

/* Mechanic: last five seconds pulse */
.clock__num { transition: transform .2s; }
.clock.is-urgent .clock__num { animation: urgent 1s ease-in-out infinite; }
@keyframes urgent { 50% { transform: scale(1.06); text-shadow: 0 0 40px rgba(242, 107, 91, .45); } }

/* How to play: a band draws across the four steps */
.steps { position: relative; }
.steps::before {
  content: "";
  position: absolute;
  inset: -22px 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--cream), var(--yellow) 33%, var(--coral) 66%, var(--cream));
  opacity: .5;
  transform: scaleX(var(--draw, 1));
  transform-origin: 0 50%;
  transition: transform 1.6s var(--ease-out) .2s;
}
.js .steps { --draw: 0; }
.js .steps.is-in { --draw: 1; }
.js .feature.is-in:hover, .js .step.is-in:hover { transform: translateY(-4px); transition-delay: 0s; }

/* Moment of truth: INVEST! lands with a punch */
.truth.is-in .truth__beat--go { animation: punch .7s var(--ease-out) 2.1s both; }
@keyframes punch {
  0% { opacity: .12; transform: scale(.85); }
  55% { opacity: 1; transform: scale(1.14); text-shadow: 0 0 60px rgba(245, 197, 24, .55); }
  100% { opacity: 1; transform: scale(1); text-shadow: 0 0 30px rgba(245, 197, 24, .25); }
}

/* Box: photo settles, deck breakdown fills in */
.js .box-photo img { transform: scale(1.08); transition: transform 1.8s var(--ease-out); }
.js .box-photo.is-in img { transform: none; }
.js .deck-bar__seg { transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease-out); }
.js .deck-bar__seg:nth-child(2) { transition-delay: .15s; }
.js .deck-bar__seg:nth-child(3) { transition-delay: .3s; }
.js .deck-bar__seg:nth-child(4) { transition-delay: .45s; }
.js .box-item.is-in .deck-bar__seg { transform: none; }

/* FAQ answers slide open (where supported) */
.faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }

/* Final CTA: the bands drift slowly */
.final__bands { animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { transform: rotate(-8deg) translateX(-5%); } to { transform: rotate(-8deg) translateX(5%); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  :root { --nav-h: 68px; }
  .nav__links { display: none; }
  .btn--sm { padding: 0 18px; font-size: 14px; }

  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas: "eyebrow" "title" "sub" "media" "actions" "stats" "chip";
    min-height: 0;
    padding-block: 28px 56px;
  }
  .hero__eyebrow { font-size: 13px; }
  .hero__title { font-size: clamp(38px, 11.4vw, 84px); white-space: normal; }
  .hero__sub { margin-top: 20px; }
  .hero__media { margin: 8px calc(var(--gutter) * -1) 0; }
  .hero__media img {
    width: 100%;
    margin-left: 0;
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, rgba(0,0,0,.55) 78%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, rgba(0,0,0,.55) 78%, transparent 100%);
  }
  .hero__actions { margin-top: 20px; flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .play-link { justify-content: center; }
  .hero__stats { margin-top: 28px; font-size: 11px; letter-spacing: .06em; text-align: center; white-space: nowrap; }
  .hero__stats span { margin-inline: .35em; }
  .chip { justify-self: stretch; justify-content: center; gap: 8px; font-size: 11.5px; padding: 12px 12px; letter-spacing: .03em; white-space: nowrap; }
  .chip .icon { width: 18px; height: 18px; }

  .countdown-band__inner { justify-content: center; text-align: center; }
  .countdown__tile { min-width: 0; flex: 1; }
  .countdown { width: 100%; max-width: 480px; }


  .versus, .mechanic__grid, .box-grid { grid-template-columns: 1fr; }
  .clock { max-width: 280px; }
  .x-list { grid-template-columns: 1fr 1fr; font-size: 14px; }
  .box-stats { grid-template-columns: 1fr; }
  .box-stats > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 599px) {
  .features, .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .box-item { grid-template-columns: 64px 1fr; gap: 14px; }
  .box-item__num { font-size: 48px; }
  .deck-bar__seg { font-size: 9px; letter-spacing: 0; }
  .final .btn { width: 100%; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .truth__beat { opacity: 1; transform: none; }
  .clock__sweep, .spinner, .progress, .final__bands, .marquee__row,
  .hero__media picture, .hero__title { animation: none !important; }
  .js .section-head .h2 { clip-path: none; transform: none; }
  .js .versus__card .x-list li span { background-size: 100% 1.5px; }
  .js .beat-list li { opacity: 1; transform: none; }
  .js .deck-bar__seg, .js .box-photo img { transform: none; }
  .js .steps { --draw: 1; }
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  padding: 32px var(--gutter);
  text-align: center;
}
.notfound__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 96px);
  line-height: .95;
  text-transform: uppercase;
}
main:focus { outline: none; }
