/* Stage Proof home page: one dark venue, lit as you scroll. Self-contained; the other pages keep style.css.
   Scroll rule: a pinned scene never sits still for long (see home.js). */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-regular.woff2?v=c008db4e") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-italic.woff2?v=26082c73") format("woff2"); }
:root {
  --bg: #050605;
  --ink: #f2f5f1;
  --muted: #a3ada6;
  --dim: #6f7a73;
  --green: #2ec27e;
  --green-hi: #8ff5c0;
  --amber: #ffb547;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --hero-pw: clamp(220px, 21vw, 310px);
  --practice-pw: min(calc((100svh - 140px) * .46), 330px);
  --stage-pw: clamp(190px, 19vw, 270px);
  --pay-pw: min(30svh, 230px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--green-hi); }
:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 4px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--green); color: #000; padding: .5rem 1rem; border-radius: 8px; }
.skip:focus { left: 16px; }
main { position: relative; z-index: 1; }

/* film grain */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)} 60%{transform:translate(-4%,-1%)} 80%{transform:translate(3%,3%)} }

/* ── nav ── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav .container { display: flex; align-items: center; gap: 2rem; height: 64px; padding: 0 max(16px, 3vw); }
.nav.solid { background: rgba(5, 6, 5, .62); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-color: rgba(255,255,255,.06); }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.05rem; margin-right: auto; }
.logo img { width: 30px; height: 30px; border-radius: 7px; }
.logo span { color: var(--green); }
.nav-links { display: flex; gap: 1.6rem; list-style: none; font-size: .92rem; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { background: var(--ink); color: #000; font-weight: 650; font-size: .88rem; padding: .5rem 1rem; border-radius: 999px; transition: background .2s; }
.nav-cta:hover { background: var(--green-hi); }
@media (max-width: 760px) { .nav .container { gap: 1rem; } .nav-links li:not(.keep) { display: none; } .nav-links { gap: 1rem; } }
@media (max-width: 420px) { .nav-links { display: none; } }

/* ── device frame ── */
.device { position: relative; width: var(--pw); padding: calc(var(--pw) * .028); border-radius: calc(var(--pw) * .16);
  background: linear-gradient(150deg, #6b7075, #202326 22%, #0b0c0d 60%, #43484c);
  box-shadow: 0 0 0 1px rgba(0,0,0,.9) inset, 0 0 0 1.5px rgba(255,255,255,.08), 0 50px 100px -20px rgba(0,0,0,.9); }
.device .screen { position: relative; aspect-ratio: 640 / 1391; border-radius: calc(var(--pw) * .135); overflow: hidden; background: #000; }
.device .screen > img, .device .screen > video { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ── spotlight rig: fixed to the viewport, lights the hero, stays while you start
      scrolling, then swings out to the sides over the first scene ── */
.rig { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: var(--rig, 1); }
.rig.gone { visibility: hidden; }
/* .bw: scroll swing (JS)  ›  .bo: switch-on flicker  ›  .beam: idle sway + flicker, like the app's breathing spotlight */
.bw { position: absolute; top: 0; left: var(--x); width: 0; height: 0; transform: rotate(calc(var(--a) + var(--swing, 0deg) * var(--dir))); }
.bo { opacity: 0; animation: beamOn 2s var(--d) forwards; }
.beam { position: absolute; top: 0; left: -23vw; width: 46vw; height: 130vh; transform-origin: 50% 0; mix-blend-mode: screen;
  background: linear-gradient(rgba(190,255,222,.30), rgba(46,194,126,.10) 45%, transparent 85%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); filter: blur(14px);
  animation: sway var(--sw) ease-in-out infinite alternate, flick var(--fl) linear infinite; }
.beam.wide { left: -28vw; width: 56vw; }
@keyframes sway { from { transform: rotate(-3.5deg); } to { transform: rotate(3.5deg); } }
@keyframes flick { 0%, 40%, 44%, 76%, 100% { opacity: 1; } 41% { opacity: .55; } 42% { opacity: .95; } 43% { opacity: .7; } 60% { opacity: .9; } 78% { opacity: .82; } }
.lamp { position: absolute; top: -18px; left: calc(var(--x) - 35px); width: 70px; height: 34px; border-radius: 0 0 40px 40px; background: radial-gradient(60% 80% at 50% 100%, #fff, #c9ffe4 30%, rgba(46,194,126,.3) 70%, transparent); filter: blur(1px); opacity: 0; animation: lampOn 1.4s var(--d) forwards, flick var(--fl) 1.6s linear infinite; }
.floor { position: absolute; left: 0; right: 0; bottom: 0; height: 36%; background: radial-gradient(50% 60% at 62% 100%, rgba(46,194,126,.18), transparent 70%); opacity: 0; animation: fadeIn 2s 1s forwards; }
@keyframes lampOn { 0%{opacity:0} 8%{opacity:1} 14%{opacity:.2} 22%{opacity:1} 30%{opacity:.5} 100%{opacity:1} }
@keyframes beamOn { 0%{opacity:0} 10%{opacity:.9} 16%{opacity:.2} 26%{opacity:1} 100%{opacity:1} }
@keyframes fadeIn { to { opacity: 1; } }

/* ── Scene 1 · hero ── */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 96px max(16px, 5vw) 64px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: center; max-width: 1240px; width: 100%; margin: 0 auto; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; font: 600 .74rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); opacity: 0; animation: rise 1s .5s forwards; }
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 12px #ff3b30; animation: rec 1.6s infinite; }
@keyframes rec { 50% { opacity: .25; } }
.hero h1 { margin-top: 1.4rem; font-size: clamp(3rem, 7.4vw, 7.2rem); font-weight: 800; line-height: .92; letter-spacing: -.055em; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: block; transform: translateY(105%); animation: lineUp 1.1s cubic-bezier(.2,.8,.2,1) forwards; }
.hero h1 .ln:nth-child(1) > span { animation-delay: .7s; } .hero h1 .ln:nth-child(2) > span { animation-delay: .82s; } .hero h1 .ln:nth-child(3) > span { animation-delay: .94s; }
.hero h1 em { font-size: 1.12em; letter-spacing: -.02em; line-height: .8; }
@keyframes lineUp { to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.lead { margin-top: 1.8rem; max-width: 33rem; font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: var(--muted); opacity: 0; animation: rise 1s 1.25s forwards; }
.cta-row { margin-top: 2.2rem; display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; opacity: 0; animation: rise 1s 1.45s forwards; }
.store img { height: 54px; width: auto; transition: transform .2s; }
.store:hover img { transform: translateY(-2px); }
.cta-note { color: var(--dim); font-size: .92rem; }
.hero-phone { position: relative; justify-self: center; opacity: 0; animation: phoneIn 1.8s .9s cubic-bezier(.2,.8,.2,1) forwards; will-change: transform; }
.hero-phone .device { box-shadow: 0 0 0 1px rgba(0,0,0,.9) inset, 0 0 0 1.5px rgba(255,255,255,.1), 0 60px 120px -20px rgba(0,0,0,.95), 0 0 140px rgba(46,194,126,.22); transform: rotate(-4deg); }
.reflection { position: absolute; left: 10%; right: 10%; bottom: -60px; height: 60px; background: radial-gradient(50% 50% at 50% 0, rgba(46,194,126,.35), transparent 70%); filter: blur(10px); }
@keyframes phoneIn { from { opacity: 0; transform: translateY(80px) scale(.94); } to { opacity: 1; transform: none; } }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: .5rem; font: 600 .66rem var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--dim); opacity: 0; animation: fadeIn 1s 2.2s forwards; }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--green), transparent); animation: drip 2s infinite; transform-origin: top; }
@keyframes drip { 0%{transform:scaleY(0)} 50%{transform:scaleY(1)} 100%{transform:scaleY(1); opacity:0} }
@media (max-width: 860px) {
  .hero { padding-top: 104px; align-items: start; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero h1 { font-size: clamp(2.9rem, 13.5vw, 4.6rem); }
  :root { --hero-pw: min(64vw, 260px); }
  .scroll-cue { display: none; }
}

/* ── generic scroll scene ── */
.scene { position: relative; }
.js .scene { height: var(--h, 300vh); }
.js .sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.act { font: 600 .72rem/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--green); }
.demo-note { font: 500 .66rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* ── Scene 2 · problem ── */
.problem { --h: 150vh; }
.problem .lyric { translate: 0 calc((.75 - var(--pp, .75)) * 14vh); scale: calc(1 + var(--pp, 0) * .06); }
.problem-head { opacity: calc(1 - var(--tail, 0) * .45); }
.problem .sticky { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-content: center; padding: 96px max(16px, 6vw) 48px; text-align: center; }
.problem .act { margin-bottom: 1.2rem; }
.problem-head { font-size: clamp(1.5rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; max-width: 22ch; text-wrap: balance; }
.lyric { align-self: center; margin: 2rem 0; font-family: var(--serif); font-size: clamp(1.9rem, 4.3vw, 4.6rem); line-height: 1.12; letter-spacing: -.01em; max-width: 1300px; }
.lyric .l { display: flex; flex-wrap: wrap; justify-content: center; column-gap: calc(.26em * (1 - var(--c, 0)) + .42em * var(--c, 0)); }
@media (min-width: 861px) { .lyric .l { flex-wrap: nowrap; } }
.lyric .w { display: inline-flex; white-space: pre; }
.lyric .f { color: color-mix(in srgb, var(--ink), var(--green-hi) calc(var(--c, 0) * 100%)); text-shadow: 0 0 calc(var(--c, 0) * 28px) rgba(46,194,126,.8); }
.lyric .mid .r { filter: blur(calc(var(--k, 0) * 7px)); }
.lyric .r { display: inline-block; overflow: hidden; vertical-align: bottom; opacity: calc(1 - var(--k, 0));  transform: translateY(calc(var(--k, 0) * -.15em)); max-width: calc(var(--rw, 10em) * (1 - var(--c, 0))); }
.problem-tail { font-size: clamp(1rem, 1.6vw, 1.3rem); color: var(--muted); opacity: var(--tail, 0); transform: translateY(calc((1 - var(--tail, 0)) * 20px)); max-width: 36rem; }
.problem-tail strong { color: var(--ink); font-weight: 650; }
.problem .demo-note { position: absolute; bottom: 18px; right: max(16px, 3vw); }

/* ── Scene 3 · practice ── */
.practice { --h: 260vh; }
.practice .sticky { display: grid; grid-template-columns: minmax(0, 1fr) auto 120px; align-items: center; gap: 4vw; padding: 64px max(16px, 5vw) 0; max-width: 1400px; margin: 0 auto; }
.practice .sticky::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 55% at 62% 50%, rgba(46,194,126,var(--glow, .08)), transparent 70%); }
.chapters { position: relative; min-height: 24rem; }
.chap { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .7s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.chap.on { opacity: 1; transform: none; pointer-events: auto; }
.chap.past { transform: translateY(-30px); }
.chap .num { font: 600 .74rem var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--green); }
.chap h2 { margin-top: 1rem; font-size: clamp(2.3rem, 4.6vw, 4.4rem); font-weight: 800; letter-spacing: -.05em; line-height: .98; text-wrap: balance; }
.chap h2 em { font-size: 1.1em; }
.chap p:not(.num) { margin-top: 1.3rem; font-size: clamp(1rem, 1.3vw, 1.18rem); color: var(--muted); max-width: 30rem; }
.ready-meter { position: absolute; z-index: 3; right: calc(50% + var(--practice-pw) * .5 + 1.4rem); top: 68%; display: flex; align-items: baseline; gap: .1rem; pointer-events: none; opacity: 0; transform: translateY(-40%); transition: opacity .5s, transform .7s cubic-bezier(.2,.8,.2,1); }
.ready-meter.on { opacity: 1; transform: translateY(-50%); }
.ready-num { font-family: var(--serif); font-size: clamp(6rem, 13vw, 12rem); line-height: .8; color: var(--green-hi); font-variant-numeric: tabular-nums; text-shadow: 0 0 calc(20px + var(--rd, 0) * 60px) rgba(46,194,126,calc(.3 + var(--rd, 0) * .5)), 0 4px 30px rgba(0,0,0,.9); }
.ready-pct { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.4rem); color: var(--green); }
.practice-phone { position: relative; display: grid; justify-items: center; transform: translateY(calc((.5 - var(--pp, 0)) * 5vh)) rotate(calc((var(--pp, 0) - .5) * 2.4deg)); will-change: transform; }
.chapters { translate: 0 calc((.5 - var(--pp, 0)) * 3vh); }
.pbar { position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--pp, 0) * 100%); background: var(--green); box-shadow: 0 0 10px var(--green); opacity: .8; }
.practice-phone .device { box-shadow: 0 0 0 1px rgba(0,0,0,.9) inset, 0 0 0 1.5px rgba(255,255,255,.1), 0 60px 120px -20px rgba(0,0,0,.95), 0 0 120px rgba(46,194,126,var(--glow, .1)); }
.shots .st { position: absolute; inset: 0; opacity: 0; transform: scale(1.02); transition: opacity .45s, transform .6s cubic-bezier(.2,.8,.2,1); }
.shots .st.on { opacity: 1; transform: none; }
.shots .st > img, .shots img.st { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* keystrokes drawn over the real practice screenshot (640×1391 coordinates, --u = 1 screenshot px) */
.ov { position: absolute; inset: 0; }
.ov > i { position: absolute; display: grid; place-items: center; font-style: normal; }
.ov .mask { background: #2c2c30; border-radius: calc(var(--u) * 9px); color: rgba(255,255,255,.85); font: 600 calc(var(--u) * 26px) var(--mono); }
.ov .mask.cur { background: #27272b; box-shadow: 0 0 0 calc(var(--u) * 2.5px) #30d158 inset; }
.ov .mask.off { display: none; }
.ov .bar { background: #2a2a2e; }
.ov .key { background: #f2f2f7; color: #111; border-radius: calc(var(--u) * 9px); font: 400 calc(var(--u) * 40px) var(--sans); box-shadow: 0 calc(var(--u) * 6px) calc(var(--u) * 18px) rgba(0,0,0,.6); opacity: 0; transform: translateY(calc(var(--u) * -14px)) scale(1.25); transition: opacity .35s; }
.ov .key.hit { opacity: 1; transition: none; }
.rail { list-style: none; display: grid; gap: 1.3rem; font: 600 .7rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.rail li { position: relative; padding-left: 1.4rem; transition: color .4s; }
.rail li::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; border: 1px solid currentColor; transition: background .4s, box-shadow .4s; }
.rail li.on { color: var(--ink); }
.rail li.on::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 12px var(--green); }
.rail li.done { color: var(--green); }
.rail li.done::before { background: var(--green); border-color: var(--green); }
@media (max-width: 900px) {
  .practice { --h: 250vh; }
  :root { --practice-pw: min(calc((100svh - 330px) * .46), 260px); }
  .practice .sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 0; padding-top: 76px; }
  .chapters { min-height: 0; height: 205px; }
  .chap h2 { font-size: clamp(1.8rem, 8.2vw, 2.6rem); margin-top: .5rem; }
  .chap p:not(.num) { margin-top: .6rem; font-size: .93rem; line-height: 1.42; }
  .chap[data-ch="3"] p:not(.num) { display: none; }
  .ready-meter { right: auto; left: 50%; top: -1.2rem; translate: -50% 0; }
  .ready-num { font-size: 5.4rem; } .ready-pct { font-size: 2.4rem; }
  .practice-phone { align-self: center; }
  .rail { display: none; }
}

/* ── Scene 4 · on stage (vertical beats) ── */
.stage { position: relative; padding: 18vh max(16px, 6vw) 10vh; background: radial-gradient(60% 40% at 50% 0%, rgba(46,194,126,.07), transparent 70%); }
.stage-head { max-width: 1150px; margin: 0 auto 6vh; }
.stage-head h2 { margin-top: 1.2rem; font-size: clamp(2.6rem, 6vw, 5.8rem); font-weight: 800; letter-spacing: -.05em; line-height: .95; max-width: 14ch; }
.beat { max-width: 1150px; margin: 0 auto; min-height: 88vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 5vw; }
.beat.flip .bcopy { order: 2; }
.bcopy { opacity: calc(.15 + var(--r, 0) * .85); transform: translateY(calc((1 - var(--r, 0)) * 40px)); }
.idx { display: block; font-family: var(--serif); font-size: clamp(5rem, 10vw, 9rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(143,245,192,.4); margin-bottom: .6rem; }
.bcopy h3 { font-size: clamp(1.9rem, 3.4vw, 3.2rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; text-wrap: balance; }
.bcopy p { margin-top: 1rem; max-width: 28rem; color: var(--muted); font-size: clamp(.98rem, 1.2vw, 1.1rem); }
.bcopy strong { color: var(--ink); font-weight: 650; }
.beta { display: inline-block; vertical-align: middle; font: 700 .62rem var(--mono); letter-spacing: .18em; text-transform: uppercase; padding: .35rem .55rem; border-radius: 999px; border: 1px solid rgba(143,245,192,.4); color: var(--green-hi); }
.bphones { position: relative; height: calc(var(--stage-pw) * 2.3); }
.bphones .device { position: absolute; top: 50%; left: 50%; }
.bphones .front { z-index: 2; transform: translate(calc(-50% + var(--stage-pw) * .3), calc(-50% + (1 - var(--r, 0)) * 140px)) rotate(calc(4deg - var(--r, 0) * 2deg)); box-shadow: 0 0 0 1px rgba(0,0,0,.9) inset, 0 0 0 1.5px rgba(255,255,255,.1), 0 50px 100px -20px rgba(0,0,0,.95), 0 0 90px rgba(46,194,126,.16); }
.bphones .back { transform: translate(calc(-50% - var(--stage-pw) * .35), calc(-56% + (1 - var(--r, 0)) * 60px)) rotate(calc(-9deg + var(--r, 0) * 3deg)) scale(.9); filter: brightness(.6); }
@media (max-width: 860px) {
  :root { --stage-pw: min(46vw, 210px); }
  .stage { padding-top: 12vh; }
  .beat { grid-template-columns: 1fr; min-height: 0; gap: 2.4rem; padding: 6vh 0 8vh; }
  .beat.flip .bcopy { order: 0; }
  .idx { font-size: 4rem; }
  .bcopy h3 { font-size: 1.9rem; }
}

/* ── Scene 5 · payoff ── */
.payoff { --h: 220vh; }
.payoff .sticky { display: grid; place-items: center; background: #040404; }
.venue { position: absolute; inset: 0; overflow: hidden; transform: scale(calc(1.12 - var(--pz, 0) * .12)); transform-origin: 50% 30%; will-change: transform; }
.warm { position: absolute; inset: 0; opacity: var(--lit, 0);
  background: radial-gradient(60% 45% at 50% 18%, rgba(255,181,71,.45), transparent 70%), radial-gradient(40% 50% at 15% 30%, rgba(255,79,123,.35), transparent 70%), radial-gradient(40% 50% at 85% 25%, rgba(120,90,255,.35), transparent 70%), linear-gradient(#1a0c10, #0a0507 60%, #040404); }
.vbeam { position: absolute; top: -5%; width: 30vw; height: 115%; left: calc(var(--x) - 15vw); transform-origin: 50% 0; transform: rotate(calc(var(--a) + var(--sway, 0deg))); opacity: calc(var(--lit, 0) * .9);
  background: linear-gradient(var(--c), transparent 80%); clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%); filter: blur(10px); mix-blend-mode: screen; }
.v1 { --x: 12%; --a: -22deg; --c: rgba(255,79,123,.55); }
.v2 { --x: 32%; --a: -8deg; --c: rgba(255,200,120,.55); }
.v3 { --x: 50%; --a: 0deg; --c: rgba(255,240,210,.65); width: 38vw; left: calc(50% - 19vw); }
.v4 { --x: 68%; --a: 9deg; --c: rgba(255,200,120,.55); }
.v5 { --x: 88%; --a: 22deg; --c: rgba(130,110,255,.55); }
.haze { position: absolute; inset: 40% -10% 0; background: radial-gradient(60% 50% at 50% 60%, rgba(255,210,170,.16), transparent 70%); opacity: var(--lit, 0); filter: blur(20px); }
.crowd { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 48%; transform: translateY(calc((1 - var(--crowd, 0)) * 60%)); }
.crowd .ppl { fill: #050304; }
.crowd .ppl2 { fill: #0e0709; }
.crowd .lt { fill: #fff6e0; filter: drop-shadow(0 0 6px rgba(255,240,200,.9)); animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .35; } }
@media (max-width: 700px) { .crowd { height: 30%; } }
.pay-copy { position: relative; z-index: 3; text-align: center; padding: 0 max(16px, 5vw); display: grid; justify-items: center; }
.pay-copy .act { color: var(--amber); opacity: var(--ha, 0); }
.pay-copy h2 { margin-top: 1.2rem; font-size: clamp(2.4rem, 6.6vw, 6.8rem); font-weight: 800; letter-spacing: -.055em; line-height: .95; }
.pay-copy h2 span { display: block; }
.pay-copy .a { opacity: var(--ha, 0); transform: translateY(calc((1 - var(--ha, 0)) * 30px)); color: color-mix(in srgb, var(--ink) calc(100% - var(--hb, 0) * 55%), transparent); }
.pay-copy .b { opacity: var(--hb, 0); transform: translateY(calc((1 - var(--hb, 0)) * 30px)); text-shadow: 0 0 60px rgba(255,181,71,.35); }
.pay-copy .b em { color: #ffd89a; font-size: 1.1em; }
.pay-cta { margin-top: 2.4rem; display: flex; gap: 1rem; align-items: center; opacity: var(--cta, 0); transform: translateY(calc((1 - var(--cta, 0)) * 20px)); }
.pay-cta .cta-note { color: rgba(255,230,200,.6); }

/* ── finale ── */
.finale { position: relative; overflow: hidden; padding: 14vh 0 0; text-align: center; background: linear-gradient(#040404, #000); }
.finale-line { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.6rem); color: var(--muted); }
.wordmark { margin-top: 4vh; display: flex; justify-content: center; gap: .14em; font-size: 21vw; font-weight: 800; letter-spacing: -.065em; line-height: .78; transform: translateY(12%);
  -webkit-mask-image: linear-gradient(#000 40%, transparent 96%); mask-image: linear-gradient(#000 40%, transparent 96%); }
.wordmark .g { color: var(--green); text-shadow: 0 0 80px rgba(46,194,126,.35); }

/* ── wallpaper download ── */
.wall { position: relative; background: #000; padding: 12vh max(16px, 5vw) 14vh; border-top: 1px solid rgba(255,255,255,.05); overflow: hidden; }
.wall::before { content: ""; position: absolute; left: 50%; top: 0; width: 900px; height: 600px; transform: translateX(-70%); pointer-events: none;
  background: radial-gradient(45% 50% at 50% 30%, rgba(46,194,126,.14), transparent 75%); }
.wall-in { position: relative; max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4rem; align-items: center; }
.wall-phones { position: relative; height: clamp(360px, 44vw, 520px); }
.wp { position: absolute; top: 0; height: 100%; width: auto; border-radius: 9% / 4.2%; box-shadow: 0 0 0 1.5px rgba(255,255,255,.12), 0 40px 80px -20px rgba(0,0,0,.95); }
.wp.back { left: 46%; transform: rotate(7deg) scale(.88); transform-origin: 50% 100%; opacity: .75; }
.wp.front { left: 8%; transform: rotate(-4deg); box-shadow: 0 0 0 1.5px rgba(255,255,255,.14), 0 50px 100px -20px rgba(0,0,0,.95), 0 0 120px rgba(46,194,126,.2); }
.wall-k { font: 600 .74rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.wall h2 { margin-top: 1rem; font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 800; line-height: .98; letter-spacing: -.045em; }
.wall h2 em { font-size: 1.1em; }
.wall-sub { margin-top: 1.2rem; max-width: 30rem; color: var(--muted); font-size: 1.02rem; }
.wall-dl { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.wall-btn { display: inline-flex; align-items: center; gap: .55rem; padding: .78rem 1.25rem; border-radius: 999px; font-weight: 650; font-size: .95rem; background: var(--ink); color: #000; transition: background .2s, color .2s, border-color .2s; }
.wall-btn::before { content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v8M4.5 6.8 8 10.3l3.5-3.5M2.5 13.5h11'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v8M4.5 6.8 8 10.3l3.5-3.5M2.5 13.5h11'/%3E%3C/svg%3E") center / contain no-repeat; }
.wall-btn:hover { background: var(--green-hi); }
.wall-btn.ghost { background: transparent; color: var(--ink); border: 1px solid rgba(255,255,255,.22); }
.wall-btn.ghost:hover { border-color: var(--green-hi); color: var(--green-hi); background: transparent; }
.wall-hint { margin-top: 1rem; color: var(--dim); font-size: .82rem; }
@media (max-width: 760px) {
  .wall-in { grid-template-columns: 1fr; gap: 2.5rem; }
  .wall-phones { height: 380px; width: min(100%, 340px); margin: 0 auto; }
  .wp.front { left: 4%; } .wp.back { left: 38%; }
  .wall-copy { text-align: center; } .wall-sub { margin-inline: auto; } .wall-dl { justify-content: center; }
}
.foot { position: relative; z-index: 1; background: #000; border-top: 1px solid rgba(255,255,255,.06); }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 36px max(16px, 5vw) 44px; display: grid; grid-template-columns: auto 1fr; gap: 1rem 2rem; align-items: center; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: flex-end; font-size: .9rem; }
.foot ul a { color: var(--muted); } .foot ul a:hover { color: var(--ink); }
.foot p { grid-column: 1 / -1; color: var(--dim); font-size: .8rem; }
@media (max-width: 700px) { .foot-in { grid-template-columns: 1fr; } .foot ul { justify-content: flex-start; } }

/* ── reduced motion: every scene still tells the story, without movement ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}

/* ── no JS: stack everything plainly ── */
html:not(.js) .problem-tail { opacity: 1; transform: none; }
html:not(.js) .chap { position: static; opacity: 1; transform: none; margin-bottom: 3rem; }
html:not(.js) .shots .st[data-s="type"] { opacity: 1; }
html:not(.js) .bcopy { opacity: 1; transform: none; }
html:not(.js) .pay-copy * { opacity: 1 !important; transform: none !important; }
html:not(.js) .payoff .sticky { min-height: 100vh; }
