/* Contory public site. Self-hosted fonts, no remote requests, no inline styles (CSP: style-src 'self').
   Tokens: charcoal #111110, lime #b8ff2e. The 3D story needs site.js + GSAP; without JS or with
   prefers-reduced-motion everything below renders as a plain static page. */

@font-face { font-family: "League Gothic"; src: url("/fonts/LeagueGothic-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/fonts/Outfit-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/fonts/SpaceMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
/* Metric-matched fallback so the swap to Inter does not move the layout. */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.5%; line-gap-override: 0%; }

:root {
  --bg: #111110;
  --bg-2: #161615;
  --raised: #1b1b19;
  --raised-2: #252522;
  --line: #2e2e2a;
  --text: #f2f1ec;
  --muted: #a9a9a0;
  --lime: #b8ff2e;
  --lime-ink: #0d1400;
  --display: "League Gothic", "Arial Narrow", Impact, sans-serif;
  --head: "Outfit", "Avenir Next", system-ui, sans-serif;
  --body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --hdr: 64px;
  --maxw: 76rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hdr) + 12px);
}

body {
  margin: 0;
  font: 400 1rem/1.6 var(--body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--lime); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
strong { color: #fff; font-weight: 400; }

.skip {
  position: absolute; left: .75rem; top: -4rem; z-index: 100;
  background: var(--lime); color: var(--lime-ink); font: 700 .95rem/1 var(--head);
  padding: .85rem 1.1rem; border-radius: .6rem; text-decoration: none;
}
.skip:focus { top: .75rem; outline-color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 50rem; }
.center { text-align: center; }

/* ------------------------------------------------------------ header */
.top {
  position: sticky; top: 0; z-index: 50; height: var(--hdr);
  background: rgba(17, 17, 16, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.bar { max-width: var(--maxw); height: 100%; margin: 0 auto; padding: 0 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font: 700 1.25rem/1 var(--head); letter-spacing: .01em; }
.mark { display: block; width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.foot-brand .mark { width: 24px; height: 24px; border-radius: 6px; }
.brand:hover { text-decoration: none; }
.nav { display: none; gap: 1.75rem; margin-left: auto; margin-right: 1.5rem; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; padding: .5rem 0; }
.nav a:hover { color: var(--lime); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 1.6rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--lime); color: var(--lime-ink);
  font: 700 1rem/1 var(--head); text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -10px rgba(184, 255, 46, .6); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline-color: #fff; }
.btn-sm { min-height: 44px; padding: 0 1.05rem; font-size: .875rem; }
.btn-lg { min-height: 60px; padding: 0 2.2rem; font-size: 1.15rem; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px #4a4a44; }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1.5px var(--lime); color: #fff; }

/* ------------------------------------------------------------ type */
.kicker { margin: 0 0 .9rem; font: 400 .8rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1 {
  font: 400 clamp(3.7rem, 14.5vw, 8.4rem)/.9 var(--display);
  text-transform: uppercase; letter-spacing: .005em; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--lime); }
h2 {
  font: 400 clamp(2.5rem, 8vw, 4.6rem)/.96 var(--display);
  text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; max-width: 22ch;
}
h3 { font: 700 1.25rem/1.25 var(--head); }
.lede { margin: 1.4rem 0 0; font-size: clamp(1.05rem, 2.4vw, 1.2rem); line-height: 1.6; color: var(--muted); max-width: 34rem; }
.sub { margin: 1.1rem 0 0; font-size: 1.1rem; color: var(--muted); max-width: 40rem; }
.center .sub, .center h2 { margin-left: auto; margin-right: auto; }
section { overflow-x: clip; }

/* ------------------------------------------------------------ hero */
.hero { padding: clamp(1.75rem, 5vw, 3.5rem) 0 clamp(2rem, 5vw, 4rem); background: radial-gradient(60rem 36rem at 80% 30%, rgba(184, 255, 46, .08), transparent 60%); }
.hero-in { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.fine { margin: 1.1rem 0 0; font-size: .875rem; color: var(--muted); }

/* ------------------------------------------------------------ 3D scene: phone + floating scene cards */
.persp { position: relative; display: grid; place-items: center; perspective: 1100px; perspective-origin: 50% 42%; }
.world { position: relative; transform-style: preserve-3d; }

.hstage { position: relative; height: clamp(26rem, 118vw, 33rem); overflow-x: clip; }
.hstage .persp { position: absolute; inset: 0; }
.hstage .world { --pw: min(54vw, 14.5rem); --fx: -28%; --fw: .42; transform: rotateX(8deg) rotateY(-24deg); }

.phone {
  position: relative; width: var(--pw); aspect-ratio: 9 / 19; transform-style: preserve-3d;
  font-size: calc(var(--pw) / 22);
}
.phone .edge, .phone .face { position: absolute; inset: 0; border-radius: calc(var(--pw) * .15); }
.phone .edge { background: #2d2d29; }
.phone .e1 { transform: translateZ(-2px); }
.phone .e2 { transform: translateZ(-5px); background: #262623; }
.phone .e3 { transform: translateZ(-8px); background: #1d1d1b; }
.phone .e4 { transform: translateZ(-11px); background: #141413; box-shadow: 0 30px 70px -10px rgba(0, 0, 0, .8), 0 0 90px -20px rgba(184, 255, 46, .35); }
.phone .face { background: #080808; box-shadow: inset 0 0 0 calc(var(--pw) * .008) #4a4a44, inset 0 0 0 calc(var(--pw) * .02) #0b0b0b; }
.screen {
  position: absolute; inset: calc(var(--pw) * .03); border-radius: calc(var(--pw) * .12);
  overflow: hidden; background: #131312; color: var(--text); font-family: var(--body); line-height: 1.3;
}
.island { position: absolute; z-index: 6; top: 2.4%; left: 50%; width: 28%; height: 3%; margin-left: -14%; border-radius: 99px; background: #000; }
.scr { position: absolute; inset: 0; padding-top: 7.5%; display: flex; flex-direction: column; }
.appbar { display: flex; align-items: center; gap: .6em; padding: 0 1.1em; height: 3.2em; font: 700 1.05em/1 var(--head); flex: none; }
.appbar small { margin-left: auto; font: 400 .72em/1 var(--mono); color: var(--muted); }
.appbar .dot { width: .8em; height: .8em; border-radius: 50%; background: var(--lime); }

.composer { margin: auto 1em 1.2em; display: flex; align-items: center; gap: .6em; padding: .75em .9em; border-radius: 99px; background: var(--raised-2); color: var(--muted); font-size: .85em; flex: none; }
.composer span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mic { width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--lime); position: relative; flex: none; }
.mic::after { content: ""; position: absolute; left: 50%; top: 50%; width: .5em; height: .9em; margin: -.55em 0 0 -.25em; border-radius: .3em; background: var(--lime-ink); }

/* chat */
.msgs { display: flex; flex-direction: column; justify-content: flex-end; flex: 1; min-height: 0; padding: .4em 0 .2em; }
.msg { margin: .4em 1em; padding: .7em .9em; max-width: 86%; font-size: .98em; line-height: 1.35; border-radius: 1.1em; }
.msg.me { align-self: flex-end; background: var(--lime); color: var(--lime-ink); border-bottom-right-radius: .3em; }
.msg.ai { align-self: flex-start; background: var(--raised-2); border-bottom-left-radius: .3em; }
.chips { display: flex; flex-wrap: wrap; gap: .4em; margin-top: .6em; }
.chips b { font: 400 .85em/1 var(--body); padding: .4em .7em; border: 1px solid #55554d; border-radius: 99px; color: var(--text); }
.chips b.pick { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }

/* beat list */
.beats { list-style: none; margin: .5em 0 0; padding: 0 1em; display: grid; gap: .8em; }
.beat { display: grid; grid-template-columns: 3.2em 1fr; gap: .5em; align-items: center; padding: 1.05em .95em; background: var(--raised); border: 1px solid #34342f; border-radius: .9em; }
.beat .t { font: 400 .78em/1 var(--mono); color: var(--lime); }
.beat b { display: block; font: 700 1.1em/1.2 var(--head); }
.beat i { display: block; font-style: normal; font-size: .9em; color: var(--muted); }
.go { margin: auto 1em 1.2em; padding: .95em; text-align: center; border-radius: 99px; background: var(--lime); color: var(--lime-ink); font: 700 .95em/1 var(--head); flex: none; }

/* scene grid */
.sgrid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: .7em; padding: .3em 1em; }
.sc { position: relative; aspect-ratio: 9 / 13; border-radius: .8em; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.sc.sel { box-shadow: inset 0 0 0 .2em var(--lime); }
.lbl { position: absolute; left: .6em; bottom: .5em; font: 400 .62em/1 var(--mono); letter-spacing: .06em; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); z-index: 2; }
.tr { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%); padding: .35em .7em; border-radius: 99px; background: var(--lime); color: var(--lime-ink); font: 400 .7em/1 var(--mono); }

/* tiny generated "motion graphics" thumbnails (pure CSS) */
.g { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.g em { position: relative; font: 400 2.5em/.9 var(--display); font-style: normal; letter-spacing: .02em; text-align: center; }
.g1 { background: #191917; }
.g1::before { content: ""; position: absolute; left: -20%; right: -20%; top: 38%; height: 26%; background: var(--lime); transform: rotate(-12deg); }
.g1 em { color: var(--lime-ink); }
.g2 { background: linear-gradient(165deg, #ff9d4d 0%, #d9467a 55%, #33286b 100%); }
.g2::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; left: 50%; top: 62%; margin-left: -35%; background: rgba(255, 255, 255, .16); }
.play { position: relative; width: 0; height: 0; border-style: solid; border-width: .9em 0 .9em 1.5em; border-color: transparent transparent transparent #fff; margin-left: .3em; }
.g3 { background: #191917; }
.g3::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 56%, transparent 0 .7em, rgba(184, 255, 46, .85) .7em .85em); opacity: .75; }
.g3 em { color: #fff; font-size: 2.1em; }
.g4 { background: var(--lime); }
.g4 em { color: var(--lime-ink); }
.gbg { background: #1a1a18 linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 1.4rem 1.4rem, linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 1.4rem 1.4rem; }
.gtxt { background: rgba(21, 21, 19, .55); }
.gtxt em { color: #fff; font-size: clamp(2.2rem, 7vw, 3.1rem); line-height: .9; }

/* edit panel + render screen */
.edit { position: absolute; left: 0; right: 0; bottom: 0; padding: 1em 1em 1.4em; background: #1a1a18; border-top: 1px solid #3a3a35; border-radius: 1.3em 1.3em 0 0; display: grid; gap: .7em; }
.eh { font: 400 .68em/1 var(--mono); letter-spacing: .08em; color: var(--lime); }
.field { padding: .7em .8em; border-radius: .7em; background: var(--raised-2); font-size: .9em; box-shadow: inset 0 0 0 1px var(--lime); }
.slider { position: relative; height: .35em; border-radius: 99px; background: #3a3a35; }
.slider i { position: absolute; left: 0; top: 0; bottom: 0; width: 58%; border-radius: 99px; background: var(--lime); }
.slider i::after { content: ""; position: absolute; right: -.5em; top: 50%; width: 1em; height: 1em; margin-top: -.5em; border-radius: 50%; background: #fff; }
.btns { display: flex; gap: .6em; }
.btns b { flex: 1; text-align: center; padding: .75em .4em; border-radius: 99px; font: 700 .82em/1 var(--head); box-shadow: inset 0 0 0 1px #55554d; }
.btns .primary { background: var(--lime); color: var(--lime-ink); box-shadow: none; }

.scr-render { justify-content: center; padding: 8% 1.6em 0; text-align: center; }
.rl { display: grid; gap: .9em; }
.rt { font: 400 .8em/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pct { font: 400 6em/.9 var(--display); color: #fff; }
.rbar { display: block; height: .7em; border-radius: 99px; background: #2c2c28; overflow: hidden; }
.rbar i { display: block; height: 100%; background: var(--lime); transform-origin: 0 50%; transform: scaleX(0); }
.meta2 { font: 400 .7em/1 var(--mono); color: var(--muted); }
.done { position: absolute; left: 1.4em; right: 1.4em; bottom: 2.4em; display: flex; align-items: center; justify-content: center; gap: .6em; padding: .9em; border-radius: 99px; background: var(--lime); color: var(--lime-ink); font: 700 1em/1 var(--head); opacity: 0; }

/* floating scene cards (depth layers around the phone) */
.fl { outline: 3px solid transparent; outline-offset: -2px; position: absolute; width: calc(var(--pw) * var(--fw)); aspect-ratio: 9 / 12; border-radius: .7rem; overflow: hidden; font-size: calc(var(--pw) / 22); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .14); background: #191917; }
.fl em { font-size: 2em; }
.fl .play { border-width: .7em 0 .7em 1.2em; }
.f1 { left: var(--fx); top: 6%; }
.f2 { right: var(--fx); top: 20%; }
.f3 { left: var(--fx); top: 55%; }
.f4 { right: var(--fx); top: 66%; }

/* ------------------------------------------------------------ story (how it works) */
.story { padding: clamp(3rem, 8vw, 6rem) 0 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.story .intro { padding-bottom: 2rem; }
.steps { list-style: none; margin: 0; padding: 0 1.25rem; max-width: var(--maxw); margin-inline: auto; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.step { background: var(--raised); border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.4rem; }
.step .num { display: block; font: 400 .8rem/1 var(--mono); letter-spacing: .12em; color: var(--lime); }
.step h3 { margin: .7rem 0 .5rem; font: 400 2rem/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.step p { margin: 0; color: var(--muted); font-size: 1rem; }
.rail, .device { display: none; }
.chapters { padding-bottom: 3rem; }

/* live (pinned, scroll-driven) mode: class added by site.js only when motion is allowed */
.story.live { padding-bottom: 0; }
.story.live .intro { padding-bottom: 1.2rem; }
.story.live .track { height: 540vh; height: 540svh; }
.story.live .stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding-top: var(--hdr); overflow: clip; }
.story.live .stage-grid { height: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
.story.live .device { display: grid; place-items: center; grid-row: 1; position: relative; min-height: 0; perspective: 1200px; perspective-origin: 50% 45%; }
.story.live .device .world { --pw: min(54vw, 24svh); --fx: -28%; --fw: .42; transform: rotateX(6deg) rotateY(-20deg); }
.story.live .chapters { grid-row: 2; position: relative; padding: .4rem 0 1.1rem; }
.story.live .steps { display: block; position: relative; padding: 0; min-height: 13.6rem; }
.story.live .step { position: absolute; left: 0; right: 0; top: 0; background: none; border: 0; padding: 0; opacity: 0; }
.story.live .step:first-child { opacity: 1; }
.story.live .step h3 { font-size: clamp(2.1rem, 9vw, 2.9rem); }
.story.live .step p { font-size: .98rem; line-height: 1.5; }
.story.live .rail { display: flex; gap: .4rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.story.live .rail li { flex: 1; height: 4px; border-radius: 4px; background: #34342f; transition: background-color .3s; overflow: hidden; }
.story.live .rail li.on, .story.live .rail li.past { background: var(--lime); }
.story.live .rail li span, .story.live .rail li b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ------------------------------------------------------------ why */
.why { padding: clamp(4rem, 9vw, 7rem) 0; border-top: 1px solid var(--line); }
.split { display: grid; gap: 2rem; margin: 3rem 0 3.5rem; align-items: center; }
.split-copy h3 { font: 400 clamp(2rem, 6vw, 3rem)/1 var(--display); text-transform: uppercase; }
.split-copy p { margin: 1rem 0 0; color: var(--muted); font-size: 1.05rem; max-width: 34rem; }
.ticks { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.7rem; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .8rem; height: .8rem; border-radius: .2rem; background: var(--lime); }

.explode { position: relative; height: clamp(17rem, 82vw, 24rem); display: grid; place-items: center; perspective: 1500px; overflow-x: clip; }
.stack { position: relative; width: min(42vw, 11rem); aspect-ratio: 9 / 13; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-34deg); }
.slab { position: absolute; inset: 0; border-radius: .9rem; overflow: hidden; background: #161614; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 24px 40px -18px rgba(0, 0, 0, .8); }
.slab.s1 { transform: translateZ(0); }
.slab.s2 { transform: translateZ(40px); }
.slab.s3 { transform: translateZ(80px); background: transparent; }
.slab.s4 { transform: translateZ(120px); background: transparent; }
.slab .tag { position: absolute; z-index: 3; left: .55rem; top: .5rem; padding: .25rem .45rem; border-radius: .3rem; background: var(--lime); color: var(--lime-ink); font: 400 .62rem/1 var(--mono); letter-spacing: .06em; }
.ring::before { opacity: 1; }
.slab.s3 .g3 { background: transparent; }

.cards { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); perspective: 1000px; }
.card { background: var(--raised); border: 1px solid var(--line); border-radius: 1.3rem; padding: 1.5rem; transition: border-color .25s, transform .25s var(--ease); transform-style: preserve-3d; }
.card:hover { border-color: rgba(184, 255, 46, .5); transform: translateY(-4px); }
.card .num { font: 400 .8rem/1 var(--mono); letter-spacing: .12em; color: var(--lime); }
.card h3 { margin: .9rem 0 .5rem; font: 400 2rem/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.card p { margin: 0; color: var(--muted); }

.nots { margin-top: 3.5rem; padding: 1.6rem; border-radius: 1.3rem; border: 1px dashed #4a4a44; }
.nots-title { font: 400 .8rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nots ul { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
.nots li strong { display: block; font: 400 clamp(1.7rem, 5vw, 2.3rem)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.nots li strong em { font-style: normal; color: var(--lime); }
.nots li span { display: block; margin-top: .4rem; color: var(--muted); max-width: 26rem; }

/* ------------------------------------------------------------ faq */
.faq { padding: clamp(4rem, 9vw, 6.5rem) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.faq h2 { margin-bottom: 2rem; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.6rem; padding: 1rem 0; font: 700 1.1rem/1.35 var(--head); color: var(--text); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: linear-gradient(var(--lime-ink), var(--lime-ink)) center / .8rem 2px no-repeat, linear-gradient(var(--lime-ink), var(--lime-ink)) center / 2px .8rem no-repeat, var(--lime); transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
summary:hover { color: var(--lime); }
.ans { padding: 0 0 1.3rem; color: var(--muted); max-width: 42rem; }
.ans p { margin: 0; }

/* ------------------------------------------------------------ final + footer */
.final { padding: clamp(4.5rem, 10vw, 8rem) 0; text-align: center; background: radial-gradient(50rem 24rem at 50% 100%, rgba(184, 255, 46, .13), transparent 70%); border-top: 1px solid var(--line); }
.final .btn { margin-top: 2rem; }
.foot { border-top: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: .92rem; }
.foot-in { max-width: var(--maxw); margin: 0 auto; padding: 2.2rem 1.25rem 2.6rem; display: grid; gap: 1.5rem; }
.foot-brand p { margin: .8rem 0 0; max-width: 24rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.foot-nav a { color: var(--muted); text-decoration: none; padding: .45rem 0; }
.foot-nav a:hover { color: var(--lime); text-decoration: underline; }
.foot .legal { margin: 0; }

/* ------------------------------------------------------------ legal pages (static, no JS) */
body.doc { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; min-height: 100vh; min-height: 100svh; }
.doc main { padding: 2.5rem 0 4rem; }
.doc main .wrap { max-width: 46rem; }
.doc h1 { font: 400 clamp(3rem, 11vw, 4.8rem)/.92 var(--display); margin-bottom: .6rem; }
.doc h2 { font: 700 1.3rem/1.3 var(--head); text-transform: none; letter-spacing: 0; max-width: none; margin: 2.4rem 0 .6rem; padding-top: .4rem; }
.doc h3 { font: 700 1.05rem/1.3 var(--head); margin: 1.6rem 0 .4rem; }
.doc p, .doc ul, .doc ol, .doc table { margin: 0 0 1rem; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: .35rem; }
.doc strong { color: #fff; }
.meta { color: var(--muted); font-size: .92rem; margin: 0 0 2rem; }
.review { background: rgba(184, 255, 46, .13); border-radius: .25rem; padding: 0 .3rem; font-weight: 400; color: #fff; }
.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-weight: 700; white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--lime); }
.doc main strong { font-family: var(--head, 'Outfit', system-ui, sans-serif); font-weight: 700; }
.legal-nav { display: flex; gap: 1.2rem; margin-right: 0; }
.doc .notice { background: var(--raised); border: 1px solid var(--line); border-left: 4px solid var(--lime); border-radius: .5rem; padding: .9rem 1.1rem; margin: 1.2rem 0; }
.doc .notice > :first-child { margin-top: 0; }
.doc .notice > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ breakpoints */
@media (min-width: 40rem) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 60rem) {
  .nav { display: flex; }
  .hero-in { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; min-height: calc(100vh - var(--hdr) - 5rem); min-height: calc(100svh - var(--hdr) - 5rem); gap: 2rem; }
  .hstage { height: clamp(32rem, 76svh, 44rem); overflow: visible; }
  .hstage .world { --pw: clamp(13rem, 22vw, 18.5rem); --fx: -48%; --fw: .46; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
  .explode { height: 34rem; }
  .stack { width: 17rem; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nots ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .foot-in { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .foot .legal { grid-column: 1 / -1; padding-top: 1.2rem; border-top: 1px solid var(--line); }

  .story.live .stage-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: minmax(0, 1fr); gap: 1rem; }
  .story.live .chapters { grid-row: 1; grid-column: 1; align-self: center; padding: 0; }
  .story.live .device { grid-row: 1; grid-column: 2; }
  .story.live .device .world { --pw: min(37svh, 21rem, 25vw); --fx: -46%; --fw: .46; }
  .story.live .steps { min-height: 19rem; }
  .story.live .step h3 { font-size: clamp(3rem, 5.2vw, 4.6rem); margin: .8rem 0 .8rem; }
  .story.live .step p { font-size: 1.1rem; max-width: 30rem; }
  .story.live .rail { display: grid; gap: .5rem; margin: 1.5rem 0 0; }
  .story.live .rail li { display: flex; align-items: center; gap: .8rem; height: auto; background: none; font: 400 .8rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #8c8c84; overflow: visible; transition: color .3s; }
  .story.live .rail li span, .story.live .rail li b { position: static; width: auto; height: auto; overflow: visible; clip-path: none; font-weight: 400; }
  .story.live .rail li span::after { content: ""; display: inline-block; width: 1.6rem; height: 2px; margin-left: .7rem; vertical-align: middle; background: currentColor; opacity: .5; transition: width .3s var(--ease); }
  .story.live .rail li.on { color: var(--lime); background: none; }
  .story.live .rail li.on span::after { width: 3.2rem; opacity: 1; }
  .story.live .rail li.past { color: #a9a9a0; background: none; }
}

/* ------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  @keyframes pop { from { opacity: 0; transform: scale(.94) translateY(30px); } to { opacity: 1; transform: none; } }
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(1) { animation-delay: .05s; }
  .hero-copy > :nth-child(2) { animation-delay: .15s; }
  .hero-copy > :nth-child(3) { animation-delay: .27s; }
  .hero-copy > :nth-child(4) { animation-delay: .38s; }
  .hero-copy > :nth-child(5) { animation-delay: .46s; }
  .hstage .persp { animation: pop 1.1s var(--ease) .2s both; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, details summary::after { transition: none; }
}

@media print {
  html { background: #fff; color: #000; }
  a { color: #000; }
  .top, .foot-nav, .hstage, .device { display: none; }
}
