/* ============================================================
   BudgetBuddy Canada — v2.1 "Director's Cut · Forest Edition"
   Desktop-first cinematic build on the 省钱搭子 app's own palette
   (deep green × warm cream × story cream × gold), flipped dark.
   Film-still story gallery, playable choice demo, typographic
   signature: Bricolage Grotesque × Instrument Serif Italic ×
   Manrope × IBM Plex Mono.
   ============================================================ */

/* ---------- Fonts (all self-hosted) ---------- */
@font-face {
  font-family: "Bricolage";
  src: url("assets/fonts/BricolageGrotesque-var.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/ibm-plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html:not(.has-lenis) { scroll-behavior: smooth; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Tokens ----------
   v2.1: palette re-rooted in the 省钱搭子 app itself (deep muted
   green #3E5F4D primary, warm cream #FAF7F0, story cream #FFF4DF,
   gold) — the app's world, flipped dark. Variable NAMES kept from
   the oxblood build so the whole sheet rethemes without churn. */
:root {
  --bg0:    #0E130F;   /* page canvas — near-black forest         */
  --bg1:    #16211A;   /* raised panel                            */
  --bg2:    #1F2E24;   /* higher panel / deep green               */
  --red:    #3E5F4D;   /* app green-500 — primary accent & fills  */
  --red-up: #93C4A4;   /* small green text (AA on bg0)            */
  --cream:  #FAF7F0;   /* the app's own warm off-white, as ink    */
  --warm:   #B5AF9F;   /* secondary ink                           */
  --blush:  #FFF4DF;   /* story cream (app's scene surface)       */
  --gold:   #E8C468;
  --line:   rgba(255, 244, 223, .14);
  --line-strong: rgba(255, 244, 223, .3);

  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-disp: "Bricolage", "Manrope", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --container: 1560px;
  --pad: clamp(24px, 5vw, 96px);
  --section: clamp(110px, 14vw, 200px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--cream);
  background: var(--bg0);
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
a, button, summary, input, select { touch-action: manipulation; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: var(--red); color: var(--cream); }
:focus-visible { outline: 2.5px solid var(--blush); outline-offset: 4px; border-radius: 3px; }
section[tabindex="-1"]:focus, [id][tabindex="-1"]:focus { outline: none; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: 24px; top: -60px; z-index: 500;
  background: var(--cream); color: var(--bg0);
  padding: 12px 22px; border-radius: 0 0 10px 10px;
  font-weight: 700; font-size: 14px; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus-visible { top: 0; }

/* ---------- Film grain ---------- */
.grain {
  position: fixed; inset: -10%; z-index: 120; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 240px;
  opacity: .05;
  mix-blend-mode: overlay;
  animation: grain 1.4s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }
html.menu-open .grain { animation-play-state: paused; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 400;
  background: var(--bg0);
  display: grid; place-items: center;
  transition: opacity .5s var(--ease), visibility .5s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__inner { text-align: center; }
.preloader__mark { display: inline-grid; grid-template-columns: repeat(3, 14px); gap: 4px; margin-bottom: 22px; justify-content: center; }
.preloader__mark i { width: 14px; height: 14px; background: var(--red); opacity: 0; animation: pxin .8s var(--ease) infinite alternate; }
.preloader__mark i:nth-child(2) { animation-delay: .08s; background: var(--blush); }
.preloader__mark i:nth-child(3) { animation-delay: .16s; }
.preloader__mark i:nth-child(4) { animation-delay: .24s; background: var(--gold); }
.preloader__mark i:nth-child(5) { animation-delay: .32s; }
.preloader__mark i:nth-child(6) { animation-delay: .40s; background: var(--blush); }
.preloader__mark i:nth-child(7) { animation-delay: .48s; }
.preloader__mark i:nth-child(8) { animation-delay: .56s; background: var(--gold); }
.preloader__mark i:nth-child(9) { animation-delay: .64s; }
@keyframes pxin { to { opacity: 1; } }
.preloader__count { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .22em; color: var(--warm); text-align: center; }

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 350;
  width: 14px; height: 14px;
  background: var(--cream);
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .22s var(--ease), height .22s var(--ease), border-radius .22s var(--ease), opacity .2s;
  opacity: 0;
}
.cursor.on { opacity: 1; }
.cursor.big { width: 56px; height: 56px; border-radius: 50%; }
html.has-cursor body, html.has-cursor a, html.has-cursor button, html.has-cursor summary, html.has-cursor label, html.has-cursor select { cursor: none; }
html.has-cursor input { cursor: text; }
/* the native <dialog> paints in the top layer, above the custom cursor —
   restore the native pointer inside the open menu */
html.has-cursor.menu-open .menu, html.has-cursor.menu-open .menu * { cursor: auto; }
html.has-cursor.menu-open .menu a, html.has-cursor.menu-open .menu button { cursor: pointer; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14, 19, 15, .78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--container); margin-inline: auto;
  padding: 16px var(--pad);
  display: flex; align-items: center; gap: 22px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-disp); font-weight: 700; font-size: 19px;
  letter-spacing: .01em; text-decoration: none;
}
.brand img { width: 30px; height: 30px; }
.nav__meta {
  margin-left: auto; display: none;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .18em; color: var(--warm);
}
@media (min-width: 1000px) { .nav__meta { display: block; } }
.nav__cta { margin-left: auto; }
@media (min-width: 1000px) { .nav__cta { margin-left: 28px; } }
.burger {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; flex: 0 0 auto;
  background: none; border: 1px solid var(--line-strong); border-radius: 50%;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.burger:hover { border-color: var(--blush); background: rgba(255, 244, 223, .06); }
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--cream); position: relative; border-radius: 2px;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
@media (max-width: 560px) { .nav__cta { display: none; } }

/* ---------- Menu (native <dialog>: focus trap + inert for free) ---------- */
.menu {
  position: fixed; inset: 0;
  width: 100%; height: 100dvh; max-width: none; max-height: none;
  border: 0; padding: 0; margin: 0;
  background: rgba(14, 19, 15, .97);
  color: var(--cream);
}
.menu::backdrop { background: transparent; }
.menu__scroll {
  height: 100dvh; overflow-y: auto;
  display: grid; place-items: safe center;
  padding: 100px var(--pad) 56px;
}
.menu nav { display: grid; gap: 2px; min-width: min(560px, 100%); }
.menu nav a {
  display: flex; align-items: baseline; gap: 22px;
  font-family: var(--font-disp); font-weight: 750; font-stretch: 92%;
  font-size: clamp(30px, 5.2vh, 56px);
  line-height: 1.2;
  color: var(--cream); text-decoration: none;
  padding: 4px 8px; border-radius: 8px;
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.menu nav a:hover { color: var(--red-up); transform: translateX(10px); }
/* staggered entrance when the dialog opens */
.menu[open] nav > a { animation: menuIn .65s cubic-bezier(.16, .84, .28, 1) both; }
.menu[open] nav > a:nth-child(2) { animation-delay: .05s; }
.menu[open] nav > a:nth-child(3) { animation-delay: .1s; }
.menu[open] nav > a:nth-child(4) { animation-delay: .15s; }
.menu[open] nav > a:nth-child(5) { animation-delay: .2s; }
.menu[open] nav > a:nth-child(6) { animation-delay: .25s; }
.menu[open] nav > a:nth-child(7) { animation-delay: .3s; }
@keyframes menuIn { from { opacity: 0; transform: translateY(36px); } }
@media (prefers-reduced-motion: reduce) { .menu[open] nav > a { animation: none; } }
.menu nav a i {
  font-style: normal; font-family: var(--font-mono); font-weight: 500;
  font-size: 12px; letter-spacing: .2em; color: var(--warm);
}
.menu__meta {
  margin-top: 26px; padding: 4px 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; color: var(--warm);
}
.menu__close {
  position: fixed; top: 16px; right: var(--pad);
  width: 48px; height: 48px; border-radius: 50%;
  background: none; border: 1px solid var(--line-strong);
  color: var(--cream); cursor: pointer;
  display: grid; place-items: center;
  transition: border-color .2s, transform .2s;
}
.menu__close:hover { border-color: var(--blush); transform: rotate(90deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 30px;
  border: 0; border-radius: 999px;
  font-family: var(--font-body); font-size: 16px; font-weight: 700; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--red { background: var(--red); color: var(--cream); }
.btn--red:hover { background: var(--red); transform: translateY(-2px); box-shadow: 0 14px 44px -8px rgba(62, 95, 77, .6); }
.btn--red:hover:active { transform: translateY(-2px) scale(.97); }
.btn--ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blush); background: rgba(255, 244, 223, .05); }
.btn--sm { min-height: 42px; padding: 9px 20px; font-size: 14px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 28px;
}
.eyebrow .px { display: inline-flex; gap: 3px; }
.eyebrow .px i { width: 7px; height: 7px; background: var(--red); }
.eyebrow .px i:nth-child(2) { background: var(--gold); }
.eyebrow .px i:nth-child(3) { background: var(--blush); }

.h2 {
  font-family: var(--font-disp);
  font-weight: 800; font-stretch: 94%;
  font-size: clamp(44px, 6.2vw, 104px);
  line-height: .98; letter-spacing: -.015em;
}
.h2 em, .display em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--gold);
  letter-spacing: 0;
  padding-right: .05em;
}
.lede {
  font-size: clamp(17px, 1.35vw, 21px); line-height: 1.6;
  color: var(--warm);
  max-width: 56ch;
  margin-top: 26px;
}
.section { padding-top: var(--section); }
.section__head { max-width: 1120px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: clip;
  padding-bottom: clamp(44px, 7vh, 90px);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* ambient drifting glows (Penta-style atmosphere) */
.hero__blob {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(2px);
}
.hero__blob--a {
  width: 56vw; height: 56vw; right: -14vw; top: 4vh;
  background: radial-gradient(closest-side, rgba(78, 122, 95, .2), transparent 70%);
  animation: blobA 21s ease-in-out infinite alternate;
}
.hero__blob--b {
  width: 40vw; height: 40vw; left: -10vw; bottom: -8vh;
  background: radial-gradient(closest-side, rgba(232, 196, 104, .1), transparent 70%);
  animation: blobB 27s ease-in-out infinite alternate;
}
@keyframes blobA { to { transform: translate(-9vw, 7vh) scale(1.12); } }
@keyframes blobB { to { transform: translate(7vw, -6vh) scale(.92); } }
@media (prefers-reduced-motion: reduce) { .hero__blob { animation: none; } }
.hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 112%, rgba(14, 19, 15, .95) 28%, rgba(14, 19, 15, .4) 58%, transparent 100%),
    linear-gradient(180deg, rgba(14, 19, 15, .55), transparent 32%);
}
.hero__content {
  position: relative; z-index: 2; width: 100%;
  max-width: var(--container); margin-inline: auto;
  padding: 150px var(--pad) 0;
}
.display {
  font-family: var(--font-disp);
  font-weight: 800; font-stretch: 92%;
  font-size: clamp(60px, 10.6vw, 182px);
  line-height: .93; letter-spacing: -.02em;
}
.display .row { display: block; overflow: hidden; }
.display .row > span { display: inline-block; will-change: transform; }
.display em { font-size: 1.03em; }
.hero .lede { margin-top: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 42px; }

.hero__meta {
  position: absolute; right: var(--pad); bottom: clamp(52px, 10vh, 120px); z-index: 2;
  display: none;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; color: var(--warm);
  border-left: 1px solid var(--line-strong);
  padding-left: 26px;
}
.hero__meta dt { color: rgba(189, 178, 168, .78); font-size: 10.5px; letter-spacing: .24em; margin-top: 14px; }
.hero__meta dt:first-child { margin-top: 0; }
.hero__meta dd { margin: 3px 0 0; color: var(--cream); }
@media (min-width: 1180px) { .hero__meta { display: block; } }

.hero__scroll {
  position: absolute; left: var(--pad); bottom: clamp(14px, 2.5vh, 28px); z-index: 2;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--warm);
  display: flex; align-items: center; gap: 12px;
}
.hero__scroll i { width: 44px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; display: block; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--red-up); transform: translateX(-100%); animation: scrollcue 2.2s var(--ease) infinite; }
@keyframes scrollcue { 45% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: clip; padding: 18px 0; background: var(--bg1); }
.ticker__track { display: flex; width: max-content; animation: tick 30s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track,
html.motion-paused .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; }
.ticker__group span {
  font-family: var(--font-disp); font-weight: 700; font-stretch: 90%;
  font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--warm);
  padding: 0 34px; position: relative; white-space: nowrap;
}
.ticker__group span::after { content: "✦"; position: absolute; right: -8px; color: var(--red); }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ============================================================
   FILM GALLERY (stories)
   ============================================================ */
.films__intro { padding-top: var(--section); }
.films__stage { position: relative; margin-top: clamp(48px, 6vw, 90px); }
.films__track {
  display: flex; gap: clamp(18px, 2.5vw, 36px);
  padding-inline: var(--pad);
}
html.has-lenis .films__track { will-change: transform; }
.film {
  position: relative; flex: 0 0 auto;
  width: min(80vw, 1220px);
  border-radius: 24px; overflow: hidden;
  background: var(--bg1);
  border: 1px solid var(--line);
}
.film__media { position: relative; aspect-ratio: 16 / 9.4; overflow: hidden; }
.film__media img {
  width: 100%; height: 100%; object-fit: cover;
  image-rendering: pixelated;
  transform: scale(1.07);
}
.film__shade { position: absolute; inset: 0; background: linear-gradient(200deg, transparent 38%, rgba(14, 19, 15, .92) 86%); }
.film__cap {
  position: absolute; left: clamp(20px, 3vw, 46px); bottom: clamp(20px, 3vw, 46px); right: clamp(20px, 3vw, 46px);
  display: grid; gap: 10px; max-width: 580px;
}
.film__idx { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .26em; color: var(--gold); }
.film__tag {
  justify-self: start;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blush);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 14px;
  background: rgba(14, 19, 15, .4);
}
.film h3 {
  font-family: var(--font-disp); font-weight: 800; font-stretch: 94%;
  font-size: clamp(26px, 3vw, 48px); line-height: 1; letter-spacing: -.012em;
}
.film__hook { color: rgba(250, 244, 236, .82); font-size: clamp(14.5px, 1.1vw, 17px); line-height: 1.55; max-width: 46ch; }
.film__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em; color: var(--warm); }

.films__progress {
  margin: 28px var(--pad) 0;
  height: 2px; background: var(--line);
  border-radius: 2px; overflow: hidden;
}
.films__progress i {
  display: block; height: 100%; width: 100%;
  background: var(--red);
  transform: scaleX(0); transform-origin: left;
}

/* stacked fallback (mobile / reduced-motion / no-js) */
.films--stack .films__track, html.no-js .films__track { flex-direction: column; }
.films--stack .film, html.no-js .film { width: 100%; }
.films--stack .films__progress, html.no-js .films__progress { display: none; }

/* ============================================================
   PLAYABLE DEMO
   ============================================================ */
.play { padding-top: var(--section); }
.play__stage {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  background: var(--bg1);
}
@media (min-width: 980px) { .play__stage { grid-template-columns: 1.05fr 1fr; min-height: 560px; } }
.play__scene {
  position: relative; padding: clamp(28px, 3.4vw, 56px);
  display: grid; align-content: end; gap: 4px;
  background:
    linear-gradient(115deg, rgba(14, 19, 15, .92) 42%, rgba(14, 19, 15, .3)),
    url("assets/story-takeout-or-cook.webp") center / cover no-repeat;
  min-height: 380px;
}
.play__label { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .26em; color: var(--gold); text-transform: uppercase; }
.play__text {
  margin-top: 16px;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(24px, 2.2vw, 35px); line-height: 1.28;
  max-width: 22ch;
}
.play__sub { margin-top: 16px; color: var(--warm); font-size: 15px; max-width: 44ch; }

.play__side { display: grid; align-content: center; gap: 14px; padding: clamp(28px, 3.4vw, 56px); border-top: 1px solid var(--line); }
@media (min-width: 980px) { .play__side { border-top: 0; border-left: 1px solid var(--line); } }
.play__prompt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--warm); margin-bottom: 6px; }
.choice {
  display: grid; gap: 6px; text-align: left;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 24px; cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, background-color .2s;
}
.choice:hover { transform: translateY(-3px); border-color: var(--red-up); }
.choice b { font-family: var(--font-disp); font-weight: 750; font-stretch: 94%; font-size: clamp(19px, 1.6vw, 25px); letter-spacing: -.01em; }
.choice span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; color: var(--warm); }
.choice strong { color: var(--gold); font-weight: 600; }

.play__result { display: none; gap: 16px; }
.play__result.on { display: grid; }
.play__result > * { opacity: 0; transform: translateY(10px); animation: resin .5s var(--ease) forwards; }
.play__result > :nth-child(2) { animation-delay: 70ms; }
.play__result > :nth-child(3) { animation-delay: 140ms; }
.play__result > :nth-child(4) { animation-delay: 220ms; }
@keyframes resin { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .play__result > * { animation: none; opacity: 1; transform: none; } }
.play__side.resulting .choice, .play__side.resulting .play__prompt { display: none; }
.result__num {
  font-family: var(--font-disp); font-weight: 800; font-stretch: 90%;
  font-size: clamp(56px, 5.6vw, 100px); line-height: .95; letter-spacing: -.02em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.result__cap { font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--warm); }
.result__bubble {
  background: var(--blush); color: #26382C;
  border-radius: 16px; border-bottom-left-radius: 5px;
  padding: 16px 20px; font-size: 15.5px; line-height: 1.55; max-width: 46ch;
}
.result__bubble b { color: #8F3A28; }
.play__again { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.play__note { margin-top: 18px; font-size: 13px; color: var(--warm); }

/* ============================================================
   BUDDY
   ============================================================ */
.buddy__grid { display: grid; gap: clamp(40px, 5vw, 90px); align-items: center; margin-top: 8px; }
@media (min-width: 980px) { .buddy__grid { grid-template-columns: 1.05fr .95fr; } }
.buddy__points { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 26px; }
.buddy__points b { display: block; font-family: var(--font-disp); font-weight: 750; font-stretch: 94%; font-size: 20px; margin-bottom: 5px; letter-spacing: -.01em; }
.buddy__points p { color: var(--warm); font-size: 16px; line-height: 1.55; max-width: 46ch; }
.buddy__fine { margin-top: 34px; font-size: 13px; color: var(--warm); opacity: .85; }

.chatwrap { position: relative; }
.chatwrap::before {
  content: ""; position: absolute; inset: -18%;
  background: radial-gradient(closest-side, rgba(78, 122, 95, .22), transparent 72%);
  pointer-events: none;
}
.chat {
  position: relative;
  background: var(--bg1); border: 1px solid var(--line); border-radius: 24px;
  padding: 26px; max-width: 500px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6);
}
.chat__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.chat__avatar { width: 42px; height: 42px; border-radius: 13px; background: var(--bg2); display: grid; place-items: center; }
.chat__head b { font-size: 16px; display: block; }
.chat__head span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--warm); }
.chat__stream { display: grid; gap: 12px; }
.bubble {
  max-width: 86%; padding: 13px 17px; font-size: 15px; line-height: 1.5; border-radius: 17px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.bubble.in, html.reduced .bubble, html.no-js .bubble { opacity: 1; transform: none; }
.bubble--user { justify-self: end; background: var(--red); color: var(--cream); border-bottom-right-radius: 6px; }
.bubble--buddy { justify-self: start; background: var(--blush); color: #26382C; border-bottom-left-radius: 6px; }
.bubble--buddy b { color: #8F3A28; }
.chat__chips { display: flex; gap: 8px; opacity: 0; transition: opacity .45s var(--ease); }
.chat__chips.in, html.reduced .chat__chips, html.no-js .chat__chips { opacity: 1; }
.chat__chips span {
  font-size: 12.5px; font-weight: 700; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--warm);
}
.chat__chips span:first-child { background: var(--blush); color: #26382C; border-color: transparent; }

/* ============================================================
   MILESTONES
   ============================================================ */
.miles { padding-top: var(--section); }
.miles__rail { margin-top: clamp(40px, 5vw, 70px); overflow: clip; border-block: 1px solid var(--line); padding: 30px 0; }
.miles__track { display: flex; gap: 20px; width: max-content; animation: miles 46s linear infinite; }
.miles__rail:hover .miles__track, .miles__rail:focus-within .miles__track,
html.motion-paused .miles__track { animation-play-state: paused; }
.motion-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 26px;
  background: none; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--warm); cursor: pointer;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 12px 20px;
  transition: border-color .2s, color .2s;
}
.motion-toggle:hover { border-color: var(--blush); color: var(--cream); }
.motion-toggle i {
  font-style: normal; width: 8px; height: 8px;
  background: var(--red-up); border-radius: 1px;
}
html.motion-paused .motion-toggle i { background: var(--gold); }
@keyframes miles { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .miles__track { animation: none; flex-wrap: wrap; width: auto; }
  .mcard--dup { display: none; }
}
.mcard {
  flex: 0 0 auto; width: 330px;
  background: var(--bg1); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 24px;
}
.mcard time { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .22em; color: var(--gold); text-transform: uppercase; }
.mcard p { margin-top: 10px; font-size: 16.5px; font-weight: 600; line-height: 1.45; letter-spacing: -.005em; }
.mcard span { display: block; margin-top: 8px; font-size: 13px; color: var(--warm); }

/* ============================================================
   WAITLIST
   ============================================================ */
.wait { padding-top: var(--section); }
.wait__panel {
  position: relative; overflow: clip;
  background: linear-gradient(140deg, var(--bg2), #131F18 60%);
  border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(36px, 5.5vw, 96px);
}
.px-cluster { position: absolute; right: 5%; top: 10%; width: clamp(80px, 9vw, 150px); opacity: .3; pointer-events: none; }
.wait__panel .lede { max-width: 62ch; }
.wait__form { margin-top: clamp(30px, 3.6vw, 52px); max-width: 820px; }
.wait__mega { position: relative; display: flex; align-items: center; gap: 18px; border-bottom: 2px solid var(--line-strong); transition: border-color .25s var(--ease); }
.wait__mega:focus-within { border-color: var(--blush); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wait__mega input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: none;
  font-family: var(--font-disp); font-weight: 700; font-stretch: 94%;
  font-size: clamp(24px, 3.1vw, 50px);
  color: var(--cream);
  padding: 14px 0 18px;
}
.wait__mega input::placeholder { color: rgba(189, 178, 168, .4); }
.wait__mega .btn { flex: 0 0 auto; }
.wait__row { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-top: 24px; }
.wait__row .field { display: flex; align-items: center; gap: 12px; }
.wait__row label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--warm); }
.wait__row select, .wait__row input[type="password"] {
  background: var(--bg1); border: 1px solid var(--line-strong); color: var(--cream);
  border-radius: 10px; padding: 10px 14px; font-size: 15px;
}
.wait__row input[type="password"] { min-width: 220px; letter-spacing: .12em; }
.wait__row input[aria-invalid="true"], .wait__mega input[aria-invalid="true"] { border-color: #C97F5E; }
.wait__hint { flex-basis: 100%; font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--warm); }
.wait__status { margin-top: 18px; font-size: 15px; color: var(--gold); min-height: 1.4em; }
.wait__status a { color: var(--blush); }
.wait__fine { margin-top: 10px; font-size: 13px; color: var(--warm); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding-top: var(--section); }
.faq__list { margin-top: clamp(30px, 4vw, 50px); border-top: 1px solid var(--line); max-width: 1120px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; gap: 22px;
  padding: 26px 4px;
  font-family: var(--font-disp); font-weight: 750; font-stretch: 94%;
  font-size: clamp(19px, 1.9vw, 30px); letter-spacing: -.01em;
  transition: color .2s var(--ease);
}
.faq__item summary:hover { color: var(--red-up); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__idx { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .2em; color: var(--warm); flex: 0 0 auto; }
.faq__item summary svg { margin-left: auto; flex: 0 0 auto; color: var(--warm); transition: transform .25s var(--ease); align-self: center; }
.faq__item[open] summary svg { transform: rotate(45deg); }
.faq__a { padding: 0 4px 28px 52px; color: var(--warm); line-height: 1.65; max-width: 70ch; font-size: 16.5px; }
.faq__a a { color: var(--blush); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { margin-top: var(--section); border-top: 1px solid var(--line); overflow: clip; }
.footer__word {
  font-family: var(--font-disp); font-weight: 800; font-stretch: 90%;
  font-size: clamp(58px, 12.4vw, 218px);
  line-height: 1; letter-spacing: .01em; text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 244, 223, .22);
  padding-top: clamp(30px, 5vw, 70px);
  user-select: none;
  white-space: nowrap;
}
.footer__grid { display: grid; gap: 40px; padding: clamp(40px, 6vw, 80px) 0 40px; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer__brand p { margin-top: 16px; font-size: 14.5px; color: var(--warm); max-width: 32ch; line-height: 1.6; }
.footer h3 { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--warm); margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.footer ul a { font-size: 15px; color: var(--cream); text-decoration: none; opacity: .85; transition: opacity .15s, color .15s; }
.footer ul a:hover { opacity: 1; color: var(--red-up); }
.footer__legal {
  display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  font-size: 13px; color: var(--warm);
}

/* ---------- Masked heading reveals + typing caret ---------- */
.mask { display: block; overflow: hidden; }
.mask__in { display: block; will-change: transform; }
.type-caret {
  display: inline-block; width: .1em; height: .95em;
  background: var(--gold); margin-left: .06em;
  vertical-align: text-bottom;
  animation: caret .85s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
html.no-js .reveal, html.reduced .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- No-JS: hide chrome that depends on scripting ---------- */
html.no-js .burger, html.no-js .preloader, html.no-js .cursor, html.no-js .wait__form { display: none; }
html.no-js .wait__fine { font-size: 16px; color: var(--cream); }

/* ---------- Small screens ---------- */
@media (max-width: 700px) {
  .hero__ctas .btn { flex: 1 1 100%; }
  .wait__mega { flex-wrap: wrap; padding-bottom: 12px; }
  .wait__mega .btn { width: 100%; }
  .film__media { aspect-ratio: 4 / 3.4; }
  .footer__word { font-size: 17vw; }
}
