@font-face { font-family: 'Unbounded'; font-weight: 600 900; font-display: swap; src: url(assets/fonts/unbounded-600-900-latin.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 300 900; font-display: swap; src: url(assets/fonts/inter-300-900-latin.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 700; font-display: swap; src: url(assets/fonts/chakra-petch-700-latin.woff2) format('woff2'); }

@property --r { syntax: '<length>'; inherits: false; initial-value: 0px; }

:root {
  --bg: #050507;
  --ink: #ffffff;
  --muted: #a3a1ad;
  --orange-a: #FC9B18;
  --orange-b: #FF5A54;
  --purple: #A855F7;
  --orange-grad: linear-gradient(90deg, var(--orange-a), var(--orange-b));
  --display: 'Unbounded', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'Chakra Petch', ui-monospace, monospace;
  --gutter: clamp(16px, 5vw, 80px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }

/* ─── nav ─────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: linear-gradient(#050507e6, #05050700);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; letter-spacing: .04em; }
.brand img { width: 32px; height: 32px; filter: drop-shadow(0 0 10px #ff7a2f66); } /* orange shield, same as the CTA */
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px; border-radius: 14px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-sm { height: 40px; padding: 0 18px; border-radius: 11px; font-size: 14px; }
.btn-primary { background: var(--orange-grad); color: #160a02; box-shadow: 0 10px 30px -10px #ff6a3c99; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px #ff6a3ccc; }
.btn-ghost { border: 1px solid #ffffff2e; background: #ffffff0a; }
.btn-ghost:hover { background: #ffffff16; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-a);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-grad); box-shadow: 0 0 12px var(--orange-a); }

/* every scroll scene is a tall section with a sticky, viewport-sized stage inside */
.scene { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#hero { height: 1100vh; } /* 367 film frames: the claw grab, then the four How it works chapters */
.anchor { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
#play { height: 460vh; }
/* #arcade height is set in JS from the width of the cabinet row */

/* ─── 1. hero (AI film, scrubbed by scroll) ───────── */
.hero-stage { background: var(--bg); }
.hero-media { position: absolute; inset: 0; background: #050507 url(assets/hero/poster.jpg) center / cover no-repeat; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #050507f0 0%, #050507b3 26%, #05050733 48%, transparent 62%),
    linear-gradient(0deg, #050507 0%, transparent 22%),
    linear-gradient(180deg, #05050799 0%, transparent 16%);
}
.hero-load { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 18px; height: 2px; background: #ffffff1a; transition: opacity .5s; }
.hero-load i { display: block; height: 100%; width: 0; background: var(--orange-grad); }
.hero-load.done { opacity: 0; }
.hero-copy { position: absolute; z-index: 2; left: var(--gutter); top: 0; bottom: 0; width: min(620px, 46vw); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.headline { margin: 18px 0 22px; font-size: clamp(40px, 6vw, 92px); line-height: .98; text-shadow: 0 4px 40px #0008; }
.headline span { display: block; }
.headline .l2 {
  background: var(--orange-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .08em; text-shadow: none;
}
.headline .l2 em { font-style: normal; color: var(--purple); -webkit-text-fill-color: var(--purple); }
.hero-sub { max-width: 30em; color: #c9c7d1; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.55; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-caption {
  position: absolute; z-index: 2; left: var(--gutter); bottom: 14vh;
  font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.4vw, 52px); line-height: 1.02; letter-spacing: -.02em;
  text-shadow: 0 4px 30px #000c; opacity: 0; visibility: hidden;
}
/* How it works: chapter cards over the film, bottom-left like a title card */
.chapter { position: absolute; z-index: 2; left: var(--gutter); bottom: 13vh; width: min(560px, 44vw); }
.chapter h2 { margin: 12px 0 14px; font-size: clamp(38px, 5.2vw, 78px); line-height: .98; text-shadow: 0 4px 40px #000a; }
.chapter p:not(.eyebrow) { color: #d0cdd8; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; max-width: 28em; text-shadow: 0 2px 16px #000c; }
.js .chapter { opacity: 0; visibility: hidden; transform: translateY(30px); }

.chapter-rail {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 13vh;
  margin: 0; padding: 16px 18px; list-style: none; display: flex; flex-direction: column; gap: 14px;
  border-radius: 16px; background: #050507a6; border: 1px solid #ffffff12;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transition: opacity .4s;
}
.chapter-rail.show { opacity: 1; }
.chapter-rail li { display: flex; align-items: center; gap: 10px; justify-content: flex-end; color: #ffffff59; transition: color .3s; }
.chapter-rail li::after { content: ''; width: 18px; height: 2px; border-radius: 2px; background: #ffffff33; transition: width .3s, background .3s; }
.chapter-rail li.on { color: #fff; }
.chapter-rail li.on::after { width: 34px; background: var(--orange-grad); }

/* Starting states for scroll-driven pieces (only when JS runs, so no-JS still shows everything). */
.js .headline .l2 { clip-path: inset(0 100% 0 0); }
.js #hero .hero-sub, .js #hero .hero-ctas { opacity: 0; visibility: hidden; transform: translateY(24px); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 3; white-space: nowrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #d6d4de;
}
.scroll-hint span { display: inline-block; animation: nudge 1.4s ease-in-out infinite; color: var(--orange-a); }
@keyframes nudge { 50% { transform: translateY(5px); } }

/* ─── 2. play (scrub) ─────────────────────────────── */
.play-stage {
  display: grid; grid-template-columns: minmax(0, .9fr) auto; align-items: center; gap: 5vw;
  padding: 80px var(--gutter) 40px;
  background: radial-gradient(50% 60% at 70% 50%, #ff6a3c1f, transparent 70%), radial-gradient(40% 50% at 85% 30%, #a855f71a, transparent 70%), var(--bg);
}
.captions { position: relative; min-height: 250px; }
.captions .eyebrow { margin-bottom: 26px; }
.cap { position: absolute; top: 48px; left: 0; right: 0; opacity: 0; transform: translateY(24px); transition: opacity .45s, transform .45s; }
.cap.is-on { opacity: 1; transform: none; }
.cap .num { font-family: var(--mono); color: var(--orange-a); font-size: 14px; letter-spacing: .2em; }
.cap h2 { margin: 10px 0 14px; font-size: clamp(30px, 4.2vw, 64px); line-height: 1; }
.cap p { color: var(--muted); font-size: clamp(15px, 1.2vw, 18px); max-width: 26em; line-height: 1.5; }

/* --screen is the screen's width; the reel is 9:16, so its height is what limits it on most screens */
.cabinet {
  --screen: min(calc((100vh - 300px) * 9 / 16), 30vw);
  width: calc(var(--screen) + 36px); padding: 14px 18px 18px; border-radius: 26px;
  background: linear-gradient(160deg, #2a1a14, #0e0b12 50%, #0a0a0e);
  box-shadow: 0 0 0 1.5px #ff7a2f55, 0 0 70px -10px #ff6a3c66, 0 40px 80px -30px #000;
}
.cab-marquee {
  height: 48px; margin-bottom: 12px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 900; font-size: clamp(13px, 1.2vw, 17px); letter-spacing: .16em; white-space: nowrap;
  color: #fff; text-shadow: 0 0 8px #ff7a2f, 0 0 22px #ff6a3c;
  background: linear-gradient(#2a160f, #120a07); box-shadow: inset 0 0 0 1px #ff7a2f44;
}
.screen { position: relative; width: var(--screen); aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 2px #000, 0 0 0 1px #ffffff14; }
#scrub { width: 100%; height: 100%; display: block; }
.loadbar { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 3px; border-radius: 3px; background: #ffffff22; transition: opacity .4s; }
.loadbar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--orange-grad); }
.loadbar.done { opacity: 0; }
.progress { height: 4px; margin-top: 12px; border-radius: 4px; background: #ffffff14; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--orange-grad); }
.cab-deck { display: flex; align-items: center; justify-content: center; gap: 18px; height: 54px; margin-top: 10px; }
.cab-deck img { width: 54px; height: 54px; opacity: .9; }
.cab-deck span { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff9db0, #e11d48); box-shadow: 0 0 12px #e11d4880; }
.cab-deck span.alt { background: radial-gradient(circle at 35% 30%, #93c5fd, #2563eb); box-shadow: 0 0 12px #2563eb80; }

/* ─── 3. arcade row ───────────────────────────────── */
.arcade-stage {
  display: flex; flex-direction: column; justify-content: center; gap: 5vh;
  padding: 80px 0 40px;
  background: radial-gradient(60% 50% at 50% 100%, #a855f71f, transparent 70%), var(--bg);
}
.arcade-head { padding: 0 var(--gutter); }
.arcade-head h2 { margin: 14px 0 10px; font-size: clamp(30px, 4.4vw, 64px); line-height: 1; }
.hint { color: var(--muted); font-size: 15px; }
.hint-touch { display: none; }
.track { display: flex; gap: 22px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.card {
  width: clamp(230px, 24vw, 330px); flex: none; border-radius: 22px; padding: 10px 10px 16px;
  background: linear-gradient(160deg, #1a1622, #0c0b10); box-shadow: 0 0 0 1px #ffffff12, 0 30px 60px -30px #000;
  transition: box-shadow .4s, transform .4s;
}
.card.lit-up { box-shadow: 0 0 0 1px var(--glow, #ff7a2f), 0 0 50px -10px var(--glow, #ff7a2f); transform: translateY(-6px); }
.art { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #000; cursor: crosshair; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art .base { filter: grayscale(.85) brightness(.38) contrast(1.1); }
.art .lit {
  --mx: 50%; --my: 50%;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 45%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 45%, transparent 100%);
  transition: --r .45s cubic-bezier(.2,.7,.2,1);
}
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 6px 0; }
.card-meta h3 { margin: 0; font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.chip { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 5px 9px; border-radius: 999px; border: 1px solid #ffffff1f; }

/* ─── 4. CTA ──────────────────────────────────────── */
#cta { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 120px var(--gutter) 100px; background: radial-gradient(50% 45% at 50% 45%, #ff6a3c2e, transparent 70%), var(--bg); }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-icon { width: 96px; height: 96px; margin-bottom: 26px; filter: drop-shadow(0 0 24px #ff7a2f99); animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
#cta h2 { font-size: clamp(36px, 6vw, 88px); line-height: 1; }
#cta h2 span { background: var(--orange-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
#cta p { margin-top: 18px; color: var(--muted); font-size: 18px; }
#cta .hero-ctas { justify-content: center; }

/* Waitlist form: email box + button, one pill on desktop, stacked on phones */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wl-form {
  display: flex; gap: 8px; width: min(520px, 100%); margin-top: 30px; padding: 6px;
  border-radius: 18px; background: #ffffff0d; border: 1px solid #ffffff1f;
  transition: border-color .2s, box-shadow .2s;
}
.wl-form:focus-within { border-color: #ff7a2f88; box-shadow: 0 0 0 4px #ff7a2f22; }
.wl-form input[type=email] {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 0; outline: 0; background: transparent;
  color: var(--ink); font: inherit; font-size: 16px; /* 16px stops iOS zooming in on focus */
}
.wl-form input::placeholder { color: #8d8b97; }
.wl-form .btn { flex: none; border: 0; cursor: pointer; font-family: inherit; }
.wl-form .btn:disabled { opacity: .6; cursor: progress; transform: none; }
.wl-form.done { border-color: #22c55e66; }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#cta .wl-status { min-height: 1.5em; margin-top: 14px; font-size: 15px; }
.wl-status[data-kind="ok"] { color: #4ade80 !important; }
.wl-status[data-kind="error"] { color: #ff8a80 !important; }
.cta-replay { margin-top: 18px; font-size: 14px; color: #8d8b97; }
.cta-replay:hover { color: var(--ink); }
@media (max-width: 560px) {
  .wl-form { flex-direction: column; padding: 8px; }
  .wl-form .btn { width: 100%; }
}

/* ─── site footer (markup generated by scripts/build-legal.mjs) ─── */
.site-footer { background: #0c0c11; border-top: 1px solid #ffffff0f; padding: 56px var(--gutter) 30px; color: var(--muted); }
.sf-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #ffffff12; }
.sf-brand .brand img { width: 40px; height: 40px; }
.sf-brand .brand { color: var(--ink); }
.sf-brand .brand span { font-size: 20px; }
.sf-brand p { margin-top: 18px; max-width: 28em; font-size: 16px; line-height: 1.6; }
.sf-social { display: flex; gap: 12px; margin-top: 24px; }
.sf-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #d6d4de; background: #050507; border: 1px solid #ffffff1a; transition: color .2s, border-color .2s; }
a.sf-icon:hover { color: var(--orange-a); border-color: #ff7a2f66; }
.sf-col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; font-size: 16px; }
.sf-col h4 { margin: 4px 0 8px; font-size: 17px; font-weight: 700; color: var(--ink); }
.sf-col > a:hover { color: var(--ink); }
.sf-contact a { margin-left: 8px; color: var(--orange-b); }
.sf-contact a:hover { text-decoration: underline; }
.sf-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; font-size: 14px; }
@media (max-width: 820px) {
  .sf-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .sf-brand { grid-column: 1 / -1; }
  .sf-contact a { display: block; margin: 6px 0 0; }
}

/* ─── phones / small tablets ──────────────────────── */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav .btn-sm { margin-left: auto; }
  /* phone: copy on top, the film fills the rest of the screen (its frames are pre-cropped to 3:4) */
  .hero-stage { display: flex; flex-direction: column; }
  .hero-copy { position: relative; left: auto; top: auto; bottom: auto; width: auto; display: block; padding: 76px 16px 0; }
  .headline { margin: 10px 0 0; font-size: clamp(28px, 8.6vw, 42px); }
  .headline br { display: none; }
  .hero-sub, .hero-ctas { display: none; } /* shown again in the CTA; keeps the film on screen */
  .hero-media { position: relative; inset: auto; flex: 1; margin-top: 8px; background-position: center; }
  .hero-scrim { background: linear-gradient(180deg, #050507 0%, transparent 14%), linear-gradient(0deg, #050507 0%, transparent 20%); }
  .hero-caption { left: 16px; bottom: 70px; font-size: 26px; }
  .chapter { left: 16px; right: 16px; bottom: 24px; width: auto; }
  .chapter h2 { font-size: clamp(28px, 8.6vw, 40px); margin: 8px 0 8px; }
  .chapter p:not(.eyebrow) { font-size: 15px; }
  .chapter-rail { display: none; }
  .scroll-hint { bottom: 22px; }

  .play-stage { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 22px; padding: 70px 16px 24px; justify-items: center; }
  .captions { order: 2; width: 100%; min-height: 150px; }
  .captions .eyebrow { display: none; }
  .cap { top: 0; }
  .cap h2 { font-size: clamp(24px, 7.4vw, 34px); margin: 6px 0 8px; }
  .cap p { font-size: 15px; }
  .cabinet { --screen: min(calc((100svh - 350px) * 9 / 16), 70vw); padding: 10px 12px 12px; border-radius: 20px; }
  .cab-marquee { height: 38px; margin-bottom: 8px; }
  .cab-deck { display: none; }

  .arcade-stage { gap: 26px; }
  .card { width: 72vw; }
  .hint-hover { display: none; } .hint-touch { display: inline; }
}
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } .art { cursor: default; } }

@media (prefers-reduced-motion: reduce) {
  .marquee::before, .marquee::after, .scroll-hint span, .cta-icon { animation: none; }
}
