/* mcmotion marketing homepage. Tokens mirror studio/client/src/tokens.css (maxcheapai look, see client/DESIGN.md). */
:root {
  color-scheme: dark;
  --s-0: #0b0b0b; --s-1: #080808; --s-2: #101010; --s-3: #161616; --s-4: #1c1c1c; --s-glass: #0a0a0ae6;
  --l-1: #ffffff0d; --l-2: #2a2a2a; --l-3: #00ff8859;
  --t-1: #ffffff; --t-2: #c8c8c8; --t-3: #8a8a8a; --t-4: #626262; --t-on-accent: #0c0c0c;
  --brand: #00ff88; --brand-hi: #4dffab; --brand-a10: #00ff881a; --brand-a20: #00ff8833; --brand-a50: #00ff8880;
  --orange: #ff8800; --orange-a: #ff880020; --sky: #4cc9ff; --lime: #b6ff3c; --violet: #b98cff; --coral: #ff5c39;
  --text-grad: linear-gradient(95deg, var(--brand) 0%, var(--lime) 100%);
  --grid-bg: linear-gradient(#ffffff07 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, #ffffff07 1px, transparent 1px) 0 0 / 48px 48px;
  --font-ui: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --r-sm: 3px; --r-lg: 4px; --r-xl: 6px;
  --e-3: 0 18px 50px #000c; --e-4: 0 30px 80px #000e;
  --glow: 0 0 14px #00ff8840; --glow-strong: 0 0 10px #00ff8866, 0 0 28px #00ff8830;
  --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-in-out: cubic-bezier(.65, 0, .35, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --d-fast: 120ms; --d-base: 180ms; --d-slow: 320ms; --d-enter: 700ms;
  --nav-h: 60px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--s-0); color: var(--t-1); font: 16px/1.55 var(--font-display); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
.num { font-family: var(--font-ui); font-variant-numeric: tabular-nums; }
.grow { flex: 1; }
.label { margin: 0; font: 600 12px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.label.orange { color: var(--orange); }
::selection { background: var(--brand); color: var(--t-on-accent); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* film grain + scroll progress */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 30; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--brand); box-shadow: var(--glow-strong); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: var(--r-sm); border: 1px solid var(--l-2); background: var(--s-2); color: var(--t-1); font: 600 13px/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: transform var(--d-fast), background var(--d-base), border-color var(--d-base), box-shadow var(--d-base); }
.btn:hover { border-color: var(--l-3); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 12px; }
.btn.lg { height: 54px; padding: 0 26px; font-size: 14px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--t-on-accent); }
.btn.primary:hover { background: var(--brand-hi); box-shadow: var(--glow-strong); }
.btn.glow { box-shadow: var(--glow); }
.btn.ghost { background: transparent; }
.btn.google { background: #fff; color: #111; border-color: #fff; text-transform: none; letter-spacing: 0; font: 600 15px/1 var(--font-display); }
.btn.google:hover { background: #f1f1f1; box-shadow: 0 0 0 4px #ffffff22; }
.btn.google svg { width: 20px; height: 20px; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--l-2); border-radius: var(--r-sm); background: var(--s-2); color: var(--t-2); cursor: pointer; transition: border-color var(--d-base), color var(--d-base); }
.icon-btn:hover { border-color: var(--l-3); color: var(--t-1); }
.icon-btn svg { width: 16px; height: 16px; }
.link { font: 500 13px var(--font-ui); color: var(--t-2); letter-spacing: .03em; }
.link:hover { color: var(--t-1); }
/* the ping ring scales a pseudo element (compositor only) instead of animating box-shadow (a repaint every frame) */
.signal { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
.signal::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand-a50); animation: ping 1.8s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(3.3); opacity: 0; } }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; transition: background var(--d-slow), border-color var(--d-slow), transform var(--d-slow) var(--ease-out); border-bottom: 1px solid transparent; }
.nav.solid { background: var(--s-glass); border-color: var(--l-1); }
.nav.hide { transform: translateY(-100%); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.logo { display: flex; align-items: center; gap: 10px; font: 700 15px/1 var(--font-ui); letter-spacing: .14em; color: var(--brand); }
.logo i { width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--brand) url(/assets/logo.png) center / 118% no-repeat; box-shadow: var(--glow); }
.nav .links { display: flex; gap: 24px; }
.nav .links a { font: 500 13px var(--font-ui); color: var(--t-3); letter-spacing: .03em; transition: color var(--d-base); }
.nav .links a:hover { color: var(--t-1); }
@media (max-width: 860px) { .nav .links { display: none; } }
@media (max-width: 420px) { .nav .signin { display: none; } .logo span { display: none; } }

/* ================= hero ================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 90px; overflow: hidden; isolation: isolate; }
.wall { position: absolute; inset: -10% -20% -10% 30%; z-index: -3; perspective: 1400px; }
.wall-inner { position: absolute; inset: 0; display: flex; gap: 16px; transform: rotateX(18deg) rotateY(-22deg) rotateZ(6deg) translate3d(var(--mx, 0px), var(--my, 0px), 0); transform-style: preserve-3d; transition: transform 1.2s var(--ease-out); }
.col { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; animation: colUp var(--dur, 60s) linear infinite; will-change: transform; }
.col.down { animation-name: colDown; }
@keyframes colUp { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
@keyframes colDown { from { transform: translate3d(0, -50%, 0); } to { transform: translate3d(0, 0, 0); } }
.tile { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; background: var(--s-2) center / cover no-repeat; box-shadow: 0 0 0 1px #ffffff14, 0 20px 40px -10px #000; flex: none; }
.tile.v { aspect-ratio: 9 / 13; }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.tile video.on { opacity: 1; }
.tile span { position: absolute; left: 8px; bottom: 8px; font: 600 10px/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; background: #0b0b0bc0; padding: 5px 7px; border-radius: 2px; color: var(--t-2); }
.tile span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 1px; margin-right: 6px; background: var(--c, var(--brand)); vertical-align: 1px; }
.hero-fade { position: absolute; inset: 0; z-index: -2; pointer-events: none; background:
  radial-gradient(900px 600px at 18% 50%, #0b0b0bf5 30%, #0b0b0bb0 60%, transparent 85%),
  linear-gradient(90deg, #0b0b0b 0%, #0b0b0be0 30%, #0b0b0b40 70%, #0b0b0b80 100%),
  linear-gradient(180deg, #0b0b0b 0%, transparent 18%, transparent 75%, #0b0b0b 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grid-bg); mask-image: radial-gradient(70% 80% at 25% 50%, #000 20%, transparent 80%); -webkit-mask-image: radial-gradient(70% 80% at 25% 50%, #000 20%, transparent 80%); pointer-events: none; }
/* scan line: a band that moves with transform (no repaint, no blend mode over the moving wall) */
.hero-scan { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; opacity: .7; }
.hero-scan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100%; background: linear-gradient(180deg, transparent 44%, #00ff8810 48%, #00ff8828 50%, transparent 52%); animation: scan 7s linear infinite; will-change: transform; }
@keyframes scan { from { transform: translate3d(0, -56%, 0); } to { transform: translate3d(0, 56%, 0); } }
.hero-copy { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 7px 12px; border: 1px solid var(--l-2); border-radius: var(--r-sm); background: #101010e0; font: 600 11px/1 var(--font-ui); letter-spacing: .1em; color: var(--t-2); }
.eyebrow b { color: var(--brand); font-weight: 700; }
.hero h1 { margin: 0; font-weight: 700; font-size: clamp(46px, 8.4vw, 116px); line-height: .94; letter-spacing: -.045em; max-width: 11ch; }
.hero h1 .line { display: block; }
.hero h1 em { font-style: normal; }
.hero h1 em .w > span { background: var(--text-grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.hero h1 em .w { filter: drop-shadow(0 0 24px #00ff8840); }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: 0 100%; transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 55ms + 150ms); }
.split .w em, .split .w > span em { display: inline-block; }
.ready .split .w > span { transform: none; }
.rotator { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .45em; margin: 26px 0 0; font: 600 clamp(17px, 2.2vw, 24px)/1.3 var(--font-ui); letter-spacing: -.01em; min-height: 1.3em; }
.r-what { color: var(--t-1); }
.r-in { color: var(--t-4); }
.r-style { color: var(--rc, var(--brand)); text-shadow: 0 0 24px color-mix(in srgb, var(--rc, var(--brand)) 45%, transparent); transition: color .3s; }
.caret { display: inline-block; width: .55em; height: 1.05em; background: var(--brand); vertical-align: -.15em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lede { margin: 22px 0 0; max-width: 540px; color: var(--t-2); font-size: clamp(16px, 1.6vw, 19px); }
.lede strong { color: var(--t-1); font-weight: 600; }
.prompt { margin-top: 32px; display: flex; align-items: center; gap: 10px; max-width: 620px; padding: 7px 7px 7px 16px; background: #101010ee; border: 1px solid var(--l-2); border-radius: var(--r-xl); box-shadow: var(--e-3); transition: border-color var(--d-base), box-shadow var(--d-base); }
.prompt:focus-within, .prompt:hover { border-color: var(--l-3); box-shadow: var(--e-3), 0 0 0 4px var(--brand-a10); }
.prompt-tag { font: 700 15px var(--font-ui); color: var(--brand); }
.prompt input { flex: 1; min-width: 0; height: 44px; background: none; border: 0; outline: 0; color: var(--t-1); font: 500 15px var(--font-ui); }
.prompt input::placeholder { color: var(--t-2); opacity: 1; }
.hero-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 18px; }
.hero-ctas.center { justify-content: center; }
.fine { font: 500 12px var(--font-ui); color: var(--t-3); letter-spacing: .02em; }
.fine .num { color: var(--brand); }
.reveal-h { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--dl, 0ms); }
.ready .reveal-h { opacity: 1; transform: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 22px; height: 36px; margin-left: -11px; border: 1px solid var(--l-2); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; background: var(--brand); border-radius: 2px; animation: cue 1.8s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@media (max-width: 860px) {
  .hero { align-items: flex-end; padding-bottom: 72px; }
  .wall { inset: -6% -40% 30% -40%; }
  .wall-inner { transform: rotateX(28deg) rotateZ(-8deg) translate3d(0, 0, 0); }
  .hero-fade { background: linear-gradient(180deg, #0b0b0b 0%, #0b0b0b44 10%, #0b0b0bb8 24%, #0b0b0bee 40%, #0b0b0b 60%); }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .prompt { padding-left: 12px; }
  .prompt .btn span { display: none; }
  .prompt .btn { width: 46px; padding: 0; }
  .hero-ctas .btn.google { width: 100%; }
}

/* ================= ticker ================= */
.ticker { padding: 28px 0; border-block: 1px solid var(--l-1); background: var(--s-1); overflow: hidden; display: grid; gap: 12px; }
.tick-row { display: flex; width: max-content; animation: tick 70s linear infinite; }
.tick-row.rev { animation-direction: reverse; animation-duration: 85s; }
.ticker:hover .tick-row { animation-play-state: paused; }
.tick-row > div { display: flex; gap: 12px; padding-right: 12px; }
.tick-row a { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px; border: 1px solid var(--l-2); border-radius: var(--r-sm); font: 500 13px var(--font-ui); color: var(--t-2); white-space: nowrap; transition: border-color var(--d-base), color var(--d-base), background var(--d-base); }
.tick-row a::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); }
.tick-row a:hover { color: var(--t-1); border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.tick-row a i { font-style: normal; font-size: 10px; font-weight: 700; color: var(--orange); }
@keyframes tick { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ================= stats ================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 96px; margin-bottom: 40px; background: var(--l-2); border: 1px solid var(--l-2); border-radius: var(--r-xl); overflow: hidden; }
.stat { background: var(--s-0); padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; }
.stat b { font-size: clamp(36px, 4.6vw, 60px); line-height: 1; font-weight: 700; letter-spacing: -.04em; color: var(--t-1); }
.stat b small { font-size: .45em; color: var(--t-3); letter-spacing: 0; }
.stat span { font: 500 12px var(--font-ui); color: var(--t-3); letter-spacing: .03em; }
.stat:first-child b { color: var(--brand); text-shadow: 0 0 30px #00ff8855; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; margin-top: 64px; } .stat { padding: 22px 18px; } }
.stats.no3d { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .stats.no3d { grid-template-columns: 1fr 1fr; } .stats.no3d .stat:last-child { grid-column: span 2; } }

/* ================= sections ================= */
section { position: relative; }
h2 { margin: 12px 0 0; font-weight: 700; font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: -.04em; }
h3 { font-weight: 700; letter-spacing: -.02em; }
.sub { margin: 0; max-width: 460px; color: var(--t-3); font-size: 17px; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; flex-wrap: wrap; margin-bottom: 40px; }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--d-enter) var(--ease-out), transform var(--d-enter) var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* ================= how it works (pinned) ================= */
.how { height: 420vh; margin-top: 60px; }
.how-pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.how-pin::before { content: ""; position: absolute; inset: 0; background: var(--grid-bg); mask-image: radial-gradient(60% 70% at 70% 50%, #000, transparent 80%); -webkit-mask-image: radial-gradient(60% 70% at 70% 50%, #000, transparent 80%); opacity: .8; pointer-events: none; }
.how-grid { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.how h2 { font-size: clamp(30px, 4vw, 52px); }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 6px; }
.steps li { display: flex; gap: 18px; padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid transparent; opacity: .38; transition: opacity var(--d-slow), border-color var(--d-slow), background var(--d-slow); cursor: pointer; }
.steps li.on { opacity: 1; border-color: var(--l-2); background: #10101099; }
.steps .n { font: 700 12px/1.9 var(--font-ui); color: var(--t-4); transition: color var(--d-slow); }
.steps li.on .n { color: var(--brand); }
.steps b { display: block; font-size: 19px; letter-spacing: -.01em; }
.steps p { margin: 4px 0 0; color: var(--t-3); font-size: 15px; display: grid; grid-template-rows: 0fr; }
.steps li p { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease-out); }
.steps li.on p { max-height: 120px; }
.how-bar { margin-top: 22px; height: 2px; background: var(--l-2); border-radius: 2px; overflow: hidden; }
.how-bar i { display: block; height: 100%; background: var(--brand); box-shadow: var(--glow); transform-origin: 0 50%; transform: scaleX(var(--hp, 0)); }

.how-stage { position: relative; }
.win { position: relative; border: 1px solid var(--l-2); border-radius: var(--r-xl); background: var(--s-1); box-shadow: var(--e-4), 0 0 0 1px #00000080, 0 0 80px -20px #00ff8820; overflow: hidden; transform: perspective(1600px) rotateY(calc(var(--tilt, 1) * -6deg)) rotateX(calc(var(--tilt, 1) * 3deg)); transition: transform 1s var(--ease-out); }
.win-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--l-1); background: var(--s-2); }
.win-bar > i { width: 10px; height: 10px; border-radius: 50%; background: var(--s-4); }
.win-bar > i:first-child { background: #ff5f57; } .win-bar > i:nth-child(2) { background: #febc2e; } .win-bar > i:nth-child(3) { background: #28c840; }
.win-title { margin-left: 12px; font: 500 11px var(--font-ui); color: var(--t-3); letter-spacing: .04em; }
.win-title b { color: var(--t-1); font-weight: 600; }
.win-hp { margin-left: auto; font-size: 11px; color: var(--brand); border: 1px solid var(--brand-a20); padding: 3px 7px; border-radius: 2px; }
.win-body { position: relative; aspect-ratio: 16 / 11; }
.scene { position: absolute; inset: 0; padding: 22px; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.985); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), visibility 0s .5s; }
.how-stage[data-step="0"] .s0, .how-stage[data-step="1"] .s1, .how-stage[data-step="2"] .s2, .how-stage[data-step="3"] .s3 { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* s0 prompt */
.s0 { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.s0-styles { display: flex; flex-wrap: wrap; gap: 8px; }
.s0-styles span { font: 500 11px var(--font-ui); padding: 7px 10px; border: 1px solid var(--l-2); border-radius: var(--r-sm); color: var(--t-3); display: inline-flex; align-items: center; gap: 7px; }
.s0-styles span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.s0-styles span.on { border-color: var(--c); color: var(--t-1); background: color-mix(in srgb, var(--c) 12%, transparent); }
.s0-styles i { font-style: normal; font-size: 9px; color: var(--orange); font-weight: 700; }
.s0-box { min-height: 120px; padding: 18px; border: 1px solid var(--l-3); border-radius: var(--r-lg); background: var(--s-2); font: 500 clamp(15px, 1.8vw, 20px)/1.45 var(--font-display); box-shadow: 0 0 0 4px var(--brand-a10); }
.s0-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip { font: 500 11px var(--font-ui); padding: 6px 9px; border-radius: var(--r-sm); background: var(--s-3); color: var(--t-2); }
.go { font: 700 11px var(--font-ui); letter-spacing: .06em; text-transform: uppercase; padding: 9px 12px; border-radius: var(--r-sm); background: var(--brand); color: var(--t-on-accent); box-shadow: var(--glow); position: relative; }
.go::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--glow-strong); animation: pulseGo 2s infinite; pointer-events: none; }
@keyframes pulseGo { 50% { opacity: 0; } }

/* s1 storyboard */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; height: 100%; align-content: center; }
.frame { border: 1px solid var(--l-2); border-radius: var(--r-lg); background: var(--s-2); overflow: hidden; opacity: 0; transform: translateY(24px) rotate(-3deg) scale(.92); transition: opacity .5s var(--ease-out), transform .7s var(--ease-spring); }
.how-stage[data-step="1"] .frame { opacity: 1; transform: none; }
.frame:nth-child(1) { transition-delay: .05s; } .frame:nth-child(2) { transition-delay: .13s; } .frame:nth-child(3) { transition-delay: .21s; } .frame:nth-child(4) { transition-delay: .29s; } .frame:nth-child(5) { transition-delay: .37s; } .frame:nth-child(6) { transition-delay: .45s; }
.frame p { margin: 0; padding: 8px 10px 10px; font-size: 11.5px; line-height: 1.35; color: var(--t-2); }
.art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #6fa8ff; }
.art i, .art b, .art s { position: absolute; display: block; }
.a-sun { background: linear-gradient(#7fb5ff, #b9d6ff); } .a-sun i { width: 34%; aspect-ratio: 1; border-radius: 50%; left: 33%; top: 18%; background: #ffd84a; box-shadow: 0 0 0 8px #ffd84a55; animation: spin 8s linear infinite; } .a-sun b { left: 0; right: 0; bottom: 0; height: 22%; background: #3dcf9a; }
.a-prism { background: #1b2340; } .a-prism i { left: 38%; top: 22%; width: 0; height: 0; border: 22px solid transparent; border-bottom: 40px solid #e8eefc; border-top: 0; } .a-prism b { left: 0; top: 52%; width: 40%; height: 3px; background: #fff; } .a-prism s { left: 58%; top: 40%; width: 42%; height: 30%; background: linear-gradient(#ff5c39, #ffd84a, #3dcf9a, #4cc9ff, #b98cff); clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 60%); }
.a-wave { background: #23315e; } .a-wave i { left: -10%; right: -10%; height: 16%; border-radius: 50%; border: 3px solid #4cc9ff; border-color: #4cc9ff transparent transparent; animation: wv 2.4s var(--ease-in-out) infinite; } .a-wave i:nth-child(1) { top: 20%; } .a-wave i:nth-child(2) { top: 45%; animation-delay: .3s; } .a-wave i:nth-child(3) { top: 70%; animation-delay: .6s; }
.a-sky { background: linear-gradient(#3b7bff, #9cc4ff); } .a-sky i { width: 30%; height: 18%; left: 12%; top: 26%; border-radius: 99px; background: #fff; box-shadow: 40px 10px 0 -4px #fff; animation: drift 6s ease-in-out infinite alternate; } .a-sky b { left: 0; right: 0; bottom: 0; height: 26%; background: #2e7d5b; border-radius: 50% 50% 0 0 / 30% 30% 0 0; }
.a-sunset { background: linear-gradient(#ff8a3d, #ff5c39 55%, #6b2a5e); } .a-sunset i { width: 30%; aspect-ratio: 1; border-radius: 50%; left: 35%; top: 45%; background: #ffd84a; } .a-sunset b { left: 0; right: 0; bottom: 0; height: 30%; background: #2b1838; }
.a-eye { background: #f2efe6; } .a-eye i { left: 25%; top: 25%; width: 50%; height: 50%; border-radius: 50% 0; transform: rotate(45deg); background: #fff; border: 3px solid #1b2340; } .a-eye b { left: 43%; top: 37%; width: 14%; aspect-ratio: 1; border-radius: 50%; background: #3b7bff; box-shadow: inset 0 0 0 4px #1b2340; animation: look 3s ease-in-out infinite; }
@keyframes spin { to { rotate: 360deg; } }
@keyframes wv { 50% { transform: translateX(8%) scaleY(1.4); } }
@keyframes drift { to { transform: translateX(40%); } }
@keyframes look { 0%, 100% { transform: translateX(-30%); } 50% { transform: translateX(30%); } }

/* s2 voice timeline */
.s2, .s3 { display: flex; flex-direction: column; gap: 14px; }
.prev { position: relative; flex: 1; min-height: 0; border-radius: var(--r-lg); overflow: hidden; background: #000; border: 1px solid var(--l-2); }
.prev video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cap { position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%); margin: 0; width: max-content; max-width: 86%; text-align: center; padding: 6px 12px; border-radius: var(--r-sm); background: #000000b0; font-size: clamp(12px, 1.4vw, 16px); font-weight: 600; transition: opacity .25s; }
.cap.out { opacity: 0; }
.tl { position: relative; overflow: hidden; display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--l-2); border-radius: var(--r-lg); background: var(--s-2); }
.track { display: flex; align-items: center; gap: 10px; height: 22px; }
.tl-l { width: 52px; flex: none; font: 600 9px var(--font-ui); letter-spacing: .1em; color: var(--t-4); }
.wave { flex: 1; height: 100%; display: flex; align-items: center; gap: 2px; }
.wave i { flex: 1; background: var(--brand); border-radius: 1px; height: calc(var(--h) * 100%); opacity: .85; transform-origin: 50% 50%; }
.blocks { flex: 1; display: flex; gap: 3px; height: 100%; }
.blocks i { flex: 1; border-radius: 2px; background: var(--s-4); position: relative; overflow: hidden; }
.blocks i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #6fa8ff, #4cc9ff); transform-origin: 0 50%; transform: scaleX(0); }
.how-stage[data-step="2"] .blocks i::after { animation: fill 4.8s var(--ease-in-out) infinite; }
.blocks i:nth-child(2)::after { animation-delay: .25s !important; } .blocks i:nth-child(3)::after { animation-delay: .5s !important; } .blocks i:nth-child(4)::after { animation-delay: .75s !important; } .blocks i:nth-child(5)::after { animation-delay: 1s !important; } .blocks i:nth-child(6)::after { animation-delay: 1.25s !important; }
@keyframes fill { 0% { transform: scaleX(0); } 40%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: .9; } }
.sfxs { flex: 1; position: relative; height: 100%; }
.sfxs i { position: absolute; top: 2px; font: 500 9px/1 var(--font-ui); font-style: normal; color: var(--orange); background: var(--orange-a); border: 1px solid #ff880055; padding: 4px 6px; border-radius: 2px; }
/* the playhead box spans the track; its line sits on the left edge and the box slides by its own width (transform only) */
.playhead { position: absolute; top: 4px; bottom: 4px; left: 74px; right: 14px; pointer-events: none; }
.playhead::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--t-1); box-shadow: 0 0 10px #fff8; }
.how-stage[data-step="2"] .playhead { animation: play 6s linear infinite; }
@keyframes play { from { transform: translateX(0); } to { transform: translateX(100%); } }

/* s3 chat edit */
.swap video { transition: clip-path .9s var(--ease-in-out); }
.swap .v-b { clip-path: inset(0 0 0 100%); }
.swap.b .v-b { clip-path: inset(0 0 0 0); }
.wipe { position: absolute; top: 0; bottom: 0; left: 100%; width: 3px; background: var(--brand); box-shadow: var(--glow-strong); transition: left .9s var(--ease-in-out); }
.swap.b .wipe { left: 0; }
.chat { display: grid; gap: 8px; font-size: 13px; }
.chat p { margin: 0; padding: 9px 12px; border-radius: var(--r-lg); max-width: 88%; opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease-out), transform .5s var(--ease-out); }
.chat .me { justify-self: end; background: var(--brand); color: var(--t-on-accent); font-weight: 600; }
.chat .ai { display: flex; gap: 9px; align-items: center; background: var(--s-3); border: 1px solid var(--l-2); color: var(--t-2); }
.chat .done { font: 500 11px var(--font-ui); color: var(--t-3); padding: 0 2px; }
.chat .done b { color: var(--brand); }
.chat[data-n="1"] .me, .chat[data-n="2"] .me, .chat[data-n="2"] .ai, .chat[data-n="3"] p { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .how { height: 460vh; margin-top: 30px; }
  .how-pin { align-items: flex-start; padding-top: calc(var(--nav-h) + 8px); }
  .how-grid { grid-template-columns: 1fr; gap: 18px; }
  .how-copy { order: 2; }
  .how h2, .how .label { display: none; }
  .steps { margin: 0; }
  .steps li { display: none; padding: 0 2px; opacity: 1; border: 0; background: none !important; }
  .steps li.on { display: flex; animation: stepIn .5s var(--ease-out); }
  .steps li.on p { max-height: none; }
  .how-bar { margin-top: 14px; }
  .win { transform: none; }
  .win-body { aspect-ratio: 4 / 4.4; }
  .board { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .frame p { font-size: 10.5px; padding: 6px 8px 8px; }
  .scene { padding: 14px; }
}
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 860px) and (max-height: 700px) { .board .frame:nth-child(n+5) { display: none; } .win-body { aspect-ratio: 4 / 3.6; } }

/* ================= featured film ================= */
.featured { padding: 120px 0 40px; }
.film-track { padding: 0 16px; }
.film { position: relative; margin: 0 auto; width: min(1400px, 100%); aspect-ratio: 16 / 9; max-height: 82svh; border-radius: var(--r-xl); overflow: hidden; background: #000; cursor: pointer; clip-path: inset(var(--ci, 12%) var(--cx, 14%) var(--ci, 12%) var(--cx, 14%) round 10px); transform: scale(var(--fs, 1)); will-change: clip-path; box-shadow: var(--e-4); }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 50%, transparent 60%, #00000055); pointer-events: none; }
.film-cap { display: grid; grid-template-columns: auto 1fr; gap: 6px 40px; align-items: end; padding-top: 26px; opacity: var(--fo, 0); transform: translateY(calc((1 - var(--fo, 0)) * 20px)); }
.film-cap .label { grid-column: 1 / -1; }
.film-cap h3 { margin: 4px 0 0; font-size: clamp(24px, 3.4vw, 44px); line-height: 1; letter-spacing: -.03em; max-width: 16ch; }
.film-cap p { margin: 0; color: var(--t-3); max-width: 460px; font-size: 16px; justify-self: end; }
@media (max-width: 720px) { .film-cap { grid-template-columns: 1fr; } .film-cap p { justify-self: start; } }
.bigplay { position: absolute; z-index: 1; right: clamp(14px, 3vw, 32px); top: clamp(14px, 3vw, 32px); display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 14px; border-radius: var(--r-sm); background: var(--brand); color: var(--t-on-accent); font: 700 12px var(--font-ui); letter-spacing: .06em; text-transform: uppercase; box-shadow: var(--glow-strong); opacity: var(--fo, 0); transition: transform var(--d-base); }
.bigplay svg { width: 18px; height: 18px; }
.film:hover .bigplay { transform: scale(1.04); }
@media (max-width: 720px) { .bigplay { height: 40px; } .film { aspect-ratio: 16 / 10; } }

/* ================= rail ================= */
.rail-sec { padding: 100px 0 40px; }
.rail-nav { display: flex; gap: 8px; align-items: center; }
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(16px, (100% - 1200px) / 2) 24px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rcard { flex: none; width: clamp(270px, 32vw, 420px); scroll-snap-align: start; scroll-margin-left: max(16px, (100vw - 1200px) / 2); border: 1px solid var(--l-2); border-radius: var(--r-xl); overflow: hidden; background: var(--s-2); transition: border-color var(--d-slow), transform var(--d-slow) var(--ease-out); cursor: pointer; }
.rcard:hover { border-color: color-mix(in srgb, var(--c) 70%, var(--l-2)); transform: translateY(-4px); }
.rmedia { position: relative; aspect-ratio: 16 / 10; background: #000 center / cover no-repeat; overflow: hidden; }
.rmedia video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.rmedia video.on { opacity: 1; }
.rcard.v .rmedia video { object-fit: contain; background: #000; }
.rmedia .d3 { position: absolute; left: 10px; top: 10px; font: 700 10px/1 var(--font-ui); padding: 5px 7px; border-radius: 2px; background: var(--orange); color: var(--t-on-accent); }
.rbody { padding: 14px 16px 16px; }
.rbody .rs { display: flex; align-items: center; gap: 8px; font: 600 11px var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--t-3); }
.rbody .rs::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.rbody h3 { margin: 8px 0 0; font-size: 18px; line-height: 1.2; letter-spacing: -.01em; }
.rail-sec .icon-btn { display: inline-grid; }
@media (max-width: 720px) { .rail-sec .icon-btn { display: none; } }

/* ================= styles ================= */
.styles { padding: 110px 0 40px; }
.cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 22px; padding: 0 16px; }
.cats::-webkit-scrollbar { display: none; }
.cats button { flex: none; height: 36px; padding: 0 13px; border: 1px solid var(--l-2); border-radius: var(--r-sm); background: transparent; color: var(--t-3); font: 500 12px var(--font-ui); cursor: pointer; transition: color var(--d-base), border-color var(--d-base), background var(--d-base); }
.cats button:hover { color: var(--t-1); border-color: var(--l-3); }
.cats button.on { background: var(--t-1); color: var(--s-0); border-color: var(--t-1); }
.cats button small { opacity: .55; margin-left: 6px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; min-height: 300px; }
.stile { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--s-2) center / cover no-repeat; border: 1px solid var(--l-2); cursor: pointer; opacity: 0; transform: translateY(20px) scale(.96); animation: tileIn .6s var(--ease-out) forwards; animation-delay: calc(var(--i) * 45ms); transition: border-color var(--d-base); }
.stile:hover { border-color: var(--c); }
.stile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #000000e0, transparent 55%); }
.stile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.stile:hover video.on { opacity: 1; }
.stile b { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; font-size: 15px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.stile b::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.stile .d3 { position: absolute; z-index: 1; right: 10px; top: 10px; font: 700 10px/1 var(--font-ui); padding: 4px 6px; border-radius: 2px; background: var(--orange); color: var(--t-on-accent); }
.stile.more { display: grid; place-items: center; background: var(--s-2); text-align: center; font: 600 13px var(--font-ui); color: var(--t-2); }
.stile.more::after { display: none; }
.stile.more strong { display: block; font: 700 34px/1 var(--font-display); color: var(--brand); margin-bottom: 6px; letter-spacing: -.03em; }
@keyframes tileIn { to { opacity: 1; transform: none; } }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; } .stile b { font-size: 13px; left: 10px; bottom: 8px; } }
.lab { margin-top: 30px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 26px; border: 1px dashed #ff880066; border-radius: var(--r-xl); background: linear-gradient(110deg, var(--orange-a), transparent 60%); }
.lab h3 { margin: 8px 0 6px; font-size: 26px; }
.lab p { margin: 0; color: var(--t-3); max-width: 560px; }
.lab-art { position: relative; width: 110px; height: 80px; }
.lab-art span { position: absolute; width: 56px; height: 40px; border-radius: 3px; border: 1px solid var(--l-2); animation: fan 4s var(--ease-in-out) infinite; }
.lab-art span:nth-child(1) { background: #e8553b; left: 0; top: 30px; } .lab-art span:nth-child(2) { background: #ffd84a; left: 18px; top: 20px; animation-delay: .2s; } .lab-art span:nth-child(3) { background: #3b6fd9; left: 36px; top: 10px; animation-delay: .4s; } .lab-art span:nth-child(4) { background: #3dcf9a; left: 54px; top: 0; animation-delay: .6s; }
.lab-art b { position: absolute; right: -6px; bottom: -4px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 3px; background: var(--orange); color: #111; font: 700 20px/1 var(--font-ui); box-shadow: 0 0 16px #ff880066; }
@keyframes fan { 50% { transform: translateY(-6px) rotate(-4deg); } }
@media (max-width: 720px) { .lab { grid-template-columns: 1fr; gap: 18px; } .lab .btn { justify-self: start; } }

/* ================= bento ================= */
.bento-sec { padding: 110px 0 40px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.b { grid-column: span 2; position: relative; padding: 22px; border: 1px solid var(--l-2); border-radius: var(--r-xl); background: var(--s-2); overflow: hidden; transition: border-color var(--d-slow); }
.b:hover { border-color: var(--l-3); }
.b-voice, .b-sfx { grid-column: span 3; }
.b-caps, .b-split { grid-column: span 3; }
.b h3 { margin: 18px 0 6px; font-size: 20px; }
.b p { margin: 0; color: var(--t-3); font-size: 15px; }
.b-viz { height: 130px; border-radius: var(--r-lg); background: var(--s-1); border: 1px solid var(--l-1); display: grid; place-items: center; overflow: hidden; position: relative; }
.bars { display: flex; align-items: center; gap: 3px; height: 70%; width: 86%; }
.bars i { flex: 1; height: 100%; border-radius: 2px; background: var(--brand); transform: scaleY(var(--h)); animation: eq 1.1s var(--ease-in-out) infinite alternate; animation-delay: var(--d); opacity: .9; }
@keyframes eq { from { transform: scaleY(var(--h)); } to { transform: scaleY(calc(var(--h) * .25 + .05)); } }
.capline { margin: 0; padding: 10px 16px; border-radius: var(--r-sm); background: #000; font: 600 18px var(--font-display); max-width: 90%; text-align: center; }
.capline span { display: inline-block; animation: capIn .5s var(--ease-out); }
@keyframes capIn { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
.cast { display: flex; gap: 18px; align-items: flex-end; }
.cast i { display: block; width: 44px; height: 70px; border-radius: 22px 22px 6px 6px; position: relative; animation: bob 2.2s var(--ease-in-out) infinite; }
.cast i::before { content: ""; position: absolute; left: 50%; top: -30px; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: inherit; filter: brightness(1.15); }
.cast i::after { content: ""; position: absolute; left: 50%; top: -20px; width: 16px; height: 4px; margin-left: -8px; border-radius: 2px; background: #111; box-shadow: 0 0 0 0 #111; }
.cast .c1 { background: #ff6b5b; } .cast .c2 { background: #6fa8ff; height: 84px; animation-delay: .3s; } .cast .c3 { background: #ffd84a; animation-delay: .6s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.sfx-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 90%; }
.sfx-cloud span { font: 500 12px var(--font-ui); padding: 6px 10px; border-radius: var(--r-sm); border: 1px solid #ff880055; color: var(--orange); background: var(--orange-a); animation: hit 2.4s infinite; }
.sfx-cloud span:nth-child(2n) { animation-delay: .3s; } .sfx-cloud span:nth-child(3n) { animation-delay: .9s; } .sfx-cloud span:nth-child(5n) { animation-delay: 1.5s; }
@keyframes hit { 0%, 70%, 100% { transform: none; box-shadow: none; } 78% { transform: scale(1.12); box-shadow: 0 0 18px #ff880066; color: #fff; } }
.res { font-size: 64px; font-weight: 800; letter-spacing: -.05em; background: var(--text-grad); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .2s, transform .2s; }
.res.flip { opacity: 0; transform: translateY(-10px); }
.lanes { display: grid; gap: 5px; width: 86%; }
.lanes i { display: block; height: 8px; border-radius: 2px; background: var(--s-4); position: relative; overflow: hidden; }
.lanes i::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform-origin: 0 50%; animation: lane 3.6s var(--ease-in-out) infinite; }
.lanes i:nth-child(2)::after { animation-duration: 3.4s; } .lanes i:nth-child(3)::after { animation-duration: 3.9s; } .lanes i:nth-child(4)::after { animation-duration: 3.2s; } .lanes i:nth-child(5)::after { animation-duration: 3.7s; } .lanes i:nth-child(6)::after { animation-duration: 3.5s; } .lanes i:nth-child(7)::after { animation-duration: 3.8s; } .lanes i:nth-child(8)::after { animation-duration: 3.3s; }
@keyframes lane { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr 1fr; } .b, .b-voice, .b-sfx, .b-caps, .b-split { grid-column: span 1; } .b-voice, .b-split { grid-column: span 2; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .b, .b-voice, .b-split { grid-column: span 1; } .b-viz { height: 110px; } }

/* ================= pricing ================= */
.pricing { padding: 110px 0 40px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan { position: relative; padding: 24px; border: 1px solid var(--l-2); border-radius: var(--r-xl); background: var(--s-2); }
.plan.hot { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 0 50px -12px #00ff8855; background: linear-gradient(180deg, var(--brand-a10), var(--s-2) 50%); }
.p-tag { position: absolute; right: 16px; top: 16px; font: 700 10px/1 var(--font-ui); padding: 5px 7px; border-radius: 2px; background: var(--orange); color: var(--t-on-accent); }
.p-name { margin: 0; font: 600 12px var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--t-3); }
.plan.hot .p-name { color: var(--brand); }
.p-price { margin: 14px 0 4px; display: flex; align-items: baseline; gap: 4px; }
.p-price b { font-size: 44px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.p-price span { color: var(--t-3); font: 500 13px var(--font-ui); }
.p-hp { margin: 0; color: var(--brand); font-size: 12px; }
.plan ul { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--l-1); display: grid; gap: 8px; font-size: 14.5px; color: var(--t-2); }
.plan li::before { content: "▸"; color: var(--brand); margin-right: 8px; font-size: 12px; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }

/* ================= final ================= */
.final { padding: 140px 0 120px; margin-top: 60px; overflow: hidden; text-align: center; }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 60%, #00ff8818, transparent 70%), var(--grid-bg); mask-image: radial-gradient(60% 70% at 50% 55%, #000, transparent 80%); -webkit-mask-image: radial-gradient(60% 70% at 50% 55%, #000, transparent 80%); pointer-events: none; }
.mega { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); pointer-events: none; opacity: .9; }
.mega-row { display: flex; width: max-content; animation: tick 40s linear infinite; }
.mega-row span { font: 800 clamp(90px, 17vw, 260px)/1 var(--font-display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px #ffffff14; white-space: nowrap; }
.final-copy { position: relative; }
.final h2 { font-size: clamp(38px, 6vw, 80px); }
.final .sub { margin: 16px auto 34px; max-width: 520px; }
@media (max-width: 560px) { .final .btn { width: 100%; } }

/* footer */
.foot { border-top: 1px solid var(--l-1); background: var(--s-1); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot .wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font: 500 12px var(--font-ui); color: var(--t-3); }
.foot a:not(.logo):hover { color: var(--t-1); }
.foot .copy { color: var(--t-4); }

/* lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1200px, 94vw); width: 100%; color: var(--t-1); overflow: visible; }
.lightbox::backdrop { background: #000000e6; backdrop-filter: blur(6px); }
.lightbox[open] { animation: lbIn .4s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } }
.lightbox video { width: 100%; max-height: 82svh; border-radius: var(--r-xl); background: #000; box-shadow: var(--e-4); }
.lb-x { position: absolute; right: 0; top: -46px; width: 38px; height: 38px; border: 1px solid var(--l-2); border-radius: var(--r-sm); background: var(--s-2); color: var(--t-1); font-size: 22px; cursor: pointer; }
.lb-cap { margin: 12px 2px 0; font: 500 13px var(--font-ui); color: var(--t-3); }

/* reduced motion: keep the page, drop the movement */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .col { animation: none !important; }
  .tick-row, .mega-row { animation: none !important; }
  .film { clip-path: none !important; }
}

/* off-screen sections stop their CSS motion (home.js toggles .idle as sections leave and enter the viewport) */
.idle, .idle *, .idle *::before, .idle *::after { animation-play-state: paused !important; }
/* scroll-driven values are set on the element that uses them and do not inherit, so a scroll frame restyles
   one element instead of the whole subtree under it */
@property --sp { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --hp { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --tilt { syntax: "<number>"; inherits: false; initial-value: 1; }
@property --ci { syntax: "<percentage>"; inherits: false; initial-value: 12%; }
@property --cx { syntax: "<percentage>"; inherits: false; initial-value: 14%; }
