/* subcultr.app — built from the Figma file "SUBCULTR Website".
   Sizes are the Figma frame's pixels times --s: the 1440×900 desktop frame (or the 390×844 phone frame under 840px)
   scaled to fit the viewport, so every scene keeps its Figma proportions. Colours and type are Figma's styles. */
:root {
  --ink: #0f2a2e; --night: #0b1c1f; --about: #163034; --cream: #efe8dc; --paper: #f7f3ec; --mist: #eef0ea;
  --coral: #f9725c; --red: #e9432e; --orange: #e8772e; --burnt: #c25a17; --green: #27a36f; --gold: #ffd27a;
  --sage: #c9d4d0; --muted: #5d6f6a; --bead: #b9b0a2; --sub: #e3ebe8; --hint: #a7bcb6;
  --serif: 'Young Serif', Georgia, serif; --sans: 'Inter', system-ui, sans-serif; --mono: 'Space Mono', ui-monospace, monospace;
  --display: 'Archivo', 'Inter', sans-serif; --hand: 'Caveat', cursive; --brandf: 'Fraunces', Georgia, serif;
  --s: min(calc(100vw / 1440), calc(100svh / 900));
  --pad: calc(115 * var(--s));
  color-scheme: dark;
}
@media (max-width: 839px) { :root { --s: min(calc(100vw / 390), calc(100svh / 844)); --pad: calc(31 * var(--s)); } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--mist); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

/* ---------- shared atoms ---------- */
.mark { width: 26px; height: 26px; flex: none; --sw: 13.5; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font: 600 19px/21px var(--brandf); letter-spacing: -.06em; }
.eyebrow { font: 400 11px/15.4px var(--mono); letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.mono { font: 700 10px/10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hand { font: 700 28px/1.1 var(--hand); }
.gold { color: var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 15px 24px; font: 800 15px/22.5px var(--display); letter-spacing: .05em; background: var(--cream); color: var(--ink); transition: transform var(--dur-fast, 150ms) var(--ease-standard, ease-out), background var(--dur-fast, 150ms) var(--ease-standard, ease-out); }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: none; color: var(--mist); box-shadow: inset 0 0 0 1.5px rgb(238 240 234 / .6); }
.btn.dark { background: var(--ink); color: var(--cream); width: 100%; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* Face atom (A09): a photo in a ring */
i[style*="--f"] { display: inline-block; flex: none; border-radius: 50%; background: var(--f) center / cover, #cfd6d2; box-shadow: 0 0 0 var(--rw, 3px) var(--rc, #fff); }

/* ---------- top bar (O01) ---------- */
.top { position: fixed; z-index: 30; inset: 0 0 auto; height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; pointer-events: none; color: var(--mist); transition: color var(--dur-slow, 400ms) var(--ease-standard, ease-out); }
.top[data-tone="dark"] { color: var(--ink); }
.top a, .top button { pointer-events: auto; }
.top-label { font: 400 11px/16.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.how { display: flex; gap: 22px; opacity: 0; }
.how li { display: flex; align-items: center; gap: 7px; font: 700 10px/10px var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .35; }
.how span { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; display: grid; place-items: center; }
@media (max-width: 1099px) { .how { display: none; } }

/* ---------- the story: a sticky stage over a tall scroll track ---------- */
.story { position: relative; height: calc(var(--beats, 50) * var(--beat, 60svh) + 100svh); }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; contain: strict; }
/* no will-change here: Safari would rasterize each layer once and stretch the bitmap (the logo zoom went blurry) */
.stage > * { position: absolute; inset: 0; }
.bg img { width: 100%; height: 100%; object-fit: cover; }
.veil { position: absolute; inset: 0; }
.b0 { background: var(--ink); }
/* while the hero photo downloads: a 32px copy of it, blurred (290 bytes, inline) */
.b0::before { content: ''; position: absolute; inset: 0; background: url(data:image/webp;base64,UklGRtIAAABXRUJQVlA4IMYAAACQBQCdASogABMAPu1krE+ppSQiMBgIATAdiWMArAHcAXoMok2ee2dQM9ob7r5/uk7bL+WhAAD6YN4df7z0U83cR3ltSWRHTdqVXEMKRLfKgdkfXz4P0IKvtIZwR30zr/xnHtFOzuJ8I3n+KiImJwffZZ1pLzScb6lqjmZ7spxd+hzHdmRudZfXF80HdmYG5dtwfm23dFR/oXI6ZQKfzjFBSpzP0E48CzITX6SJlVVQoIn26i2BvSt0YI64yFYgsDUSbtSgAAA=) center / cover; filter: blur(24px); scale: 1.1; }
.b0 img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s; }
.b0 img.on { opacity: 1; }
.b0 .veil { background: linear-gradient(rgb(15 42 46 / .55), rgb(15 42 46 / .86)); }
.b1 { top: -40px; background: var(--cream); border-radius: 40px 40px 0 0; box-shadow: 0 -20px 40px rgb(0 0 0 / .18); }
.b3 { background: var(--ink); }
.b3 .studio { position: absolute; inset: 0; opacity: 0; }
.b3 .studio-veil { background: linear-gradient(rgb(11 28 31 / .78), rgb(11 28 31 / .86)); opacity: 0; }
.b3 .lines { background: repeating-linear-gradient(transparent 0 calc(180 * var(--s)), rgb(239 232 220 / .05) calc(180 * var(--s)) calc(182 * var(--s))); top: calc(17 * var(--s)); }
.b5 { background: var(--night); }
.b5 .veil { background: linear-gradient(rgb(15 42 46 / .72), rgb(11 28 31 / .9)); }
.scene { visibility: hidden; }
.f0 { visibility: visible; } /* the hero shows before site.js arrives: on slow networks that's seconds */
.b1, .b3 { visibility: hidden; } /* later backgrounds stay off until site.js brings them in (b3 used to cover the hero) */
/* images appear once they have fully arrived, with a short fade (the class comes from a listener in <head>), never
   painting in strips. Later scenes' images are requested a few beats ahead by site.js (data-src, data-at). */
.stage img:not(.in) { visibility: hidden; }
.stage img.in { animation: img-in var(--dur-slow, 400ms) var(--ease-standard, ease-out); }
@keyframes img-in { from { opacity: 0; } }
/* paint order, back to front, as the Figma layers stack */
.b0 { z-index: 0; } .f0 { z-index: 1; } .b1 { z-index: 2; } .f1 { z-index: 3; } .c12 { z-index: 4; } .b3 { z-index: 5; }
.f3 { z-index: 6; } .lights { z-index: 7; } .c34 { z-index: 8; } .c45 { z-index: 9; }
/* curtain bands: 1.35 screens tall, their curved bottom edge clipped once by site.js; the band slides down and its
   scenes slide up by as much, so only transforms change. Promoted only while one moves. */
.cur { bottom: auto; height: 135%; visibility: hidden; }
.cur > * { position: absolute; inset: 0 0 auto; height: calc(100% / 1.35); }
.cur > .hem { width: 100%; height: 100%; translate: 0 -2px; overflow: visible; }
.cur.moving, .cur.moving > .scene, .cur.moving > .bg { will-change: transform; }

/* scene 0 · hero (O03) */
.f0 { display: grid; place-items: center; text-align: center; padding: 0 20px; }
.hero { display: flex; flex-direction: column; align-items: center; gap: calc(24 * var(--s)); }
.hero h1 { font: 400 calc(117 * var(--s))/1.04 var(--serif); letter-spacing: -.02em; color: var(--mist); text-shadow: 0 4px 30px rgb(0 0 0 / .35); }
.hero h1 > span { display: block; }
.hero .rot { color: var(--coral); display: grid; justify-items: center; margin-inline: calc(50% - 50vw); } /* screen-wide, so "New neighborhood." stays on one line on a phone */
/* the first line cycles while the hero rests, each word with its own photo behind it: the words share one cell
   and rise in and out with a blur; site.js measures the flying word from the cell, so the motion never moves its box */
.hero .rot > span { grid-area: 1 / 1; justify-self: center; white-space: nowrap; opacity: 0; translate: 0 40%; filter: blur(8px);
  transition: opacity .7s, translate .8s cubic-bezier(.2, .8, .2, 1), filter .7s; }
.hero .rot > .on { opacity: 1; translate: none; filter: none; }
.hero .rot > .out { translate: 0 -40%; }
.sub { font: 400 calc(18 * var(--s))/1.5 var(--sans); color: var(--sub); max-width: calc(500 * var(--s)); margin: 0 auto; }
.hero .actions { padding: 4px 0 9px; }
.hint { font: 400 10px/15px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--hint); }

/* scene 1 · statement + feed (O06) */
.f1 { color: var(--ink); }
.statement { position: absolute; left: var(--pad); top: calc(196 * var(--s)); width: calc(662 * var(--s)); }
.statement h2 { font: 400 calc(75.6 * var(--s))/1.04 var(--serif); letter-spacing: -.025em; }
.statement em, .chapter em, .gap-line em, .step h2 em { color: var(--red); }
.not-line { margin-top: calc(24 * var(--s)); font: 400 calc(41.4 * var(--s))/1.1 var(--serif); letter-spacing: -.015em; }
.feed { position: absolute; left: calc(930 * var(--s)); top: calc(117 * var(--s)); width: calc(380 * var(--s)); height: calc(666 * var(--s)); border-radius: calc(30 * var(--s)); background: var(--night); box-shadow: 0 30px 60px rgb(15 42 46 / .25); overflow: hidden; padding: calc(16 * var(--s)) calc(16 * var(--s)) 0; }
.feed-scroll { display: flex; flex-direction: column; gap: calc(16 * var(--s)); will-change: transform; }
.tile { border-radius: calc(16 * var(--s)); background: #13252a; padding: calc(10 * var(--s)); }
.tile .sk { display: flex; align-items: center; gap: 8px; margin-bottom: calc(8 * var(--s)); }
.tile .sk::before { content: ''; width: calc(22 * var(--s)); height: calc(22 * var(--s)); border-radius: 50%; background: #2a3e45; }
.tile .sk::after { content: ''; width: 40%; height: calc(8 * var(--s)); border-radius: 4px; background: #22343a; }
.tile img { width: 100%; border-radius: calc(10 * var(--s)); filter: blur(1.5px) saturate(.8); }
.tile .meta { margin-top: calc(8 * var(--s)); font: 700 calc(11 * var(--s))/1 var(--mono); color: #7d979f; display: flex; gap: calc(14 * var(--s)); }
.feed .fade { position: absolute; left: 0; right: 0; height: calc(78 * var(--s)); }
.feed .fade.top { top: 0; background: linear-gradient(var(--night), transparent); }
.feed .fade.bottom { bottom: 0; background: linear-gradient(transparent, var(--night)); }

/* scene 2 · beads (O14) */
.f2 { background: var(--cream); color: var(--ink); }
/* b17–b18: as the logo zooms, chapter 02 fades back into the cream */
.f2::after { content: ''; position: absolute; inset: 0; background: var(--cream); opacity: var(--dim, 0); pointer-events: none; }
.chapter { position: absolute; left: var(--pad); top: calc(108 * var(--s)); width: calc(1210 * var(--s)); font: 400 calc(66.6 * var(--s))/1.04 var(--serif); letter-spacing: -.02em; }
.chapter em { display: block; }
.statement br, .copy br { display: var(--br, inline); }
.w { display: inline-block; }
.counter { position: absolute; right: var(--pad); top: calc(301 * var(--s)); font: 400 calc(77.4 * var(--s))/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.beads { position: absolute; inset: 0; }
.beads .string { position: absolute; left: 0; right: 0; height: 2.6px; background: var(--ink); will-change: transform; }
.bead { position: absolute; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: var(--cream); box-shadow: inset 0 0 0 2px var(--bead); scale: 0; }
.bead::before, .bead::after { content: ''; position: absolute; inset: 0; border-radius: 50%; }
.bead::before { background: var(--bead); opacity: var(--v, 0); }
.bead::after { background: var(--orange); opacity: var(--l, 0); }
.bead-label, .meet { position: absolute; font: 700 calc(10 * var(--s))/1.2 var(--mono); letter-spacing: .1em; color: var(--burnt); text-transform: uppercase; white-space: nowrap; }
.meet { font-size: 11px; letter-spacing: .14em; }
.bead-label.idle { color: var(--ink); opacity: .5; font-weight: 400; }
.gap-line { position: absolute; left: var(--pad); top: calc(718 * var(--s)); font: 400 calc(33.1 * var(--s))/1.1 var(--serif); letter-spacing: -.015em; }

/* scene 3 · the steps (O07–O13) */
.f3 { color: var(--mist); }
.step > * { position: absolute; }
.copy { left: var(--pad); top: 50%; transform: translateY(-50%); width: calc(500 * var(--s)); }
.copy h2 { font: 400 calc(59.4 * var(--s))/1.04 var(--serif); letter-spacing: -.02em; }
.copy h2.pick { font-size: calc(47.5 * var(--s)); }
.copy h2.payoff { font-size: calc(43.2 * var(--s)); }
.copy h2 em { color: var(--coral); }
.copy p { margin-top: calc(16 * var(--s)); font: 400 calc(18 * var(--s))/1.5 var(--sans); color: var(--sage); max-width: calc(380 * var(--s)); }
.card { right: var(--pad); top: 50%; transform: translateY(-50%); color: var(--ink); border-radius: calc(26 * var(--s)); }
.card .mono { font-size: calc(10 * var(--s)); }

.app { width: calc(350 * var(--s)); background: #f7f3ec; padding: calc(20 * var(--s)) calc(20 * var(--s)) calc(8 * var(--s)); box-shadow: 0 30px 70px rgb(0 0 0 / .45), 0 0 0 1.5px rgb(255 255 255 / .08); }
.app-head { display: flex; justify-content: space-between; align-items: center; }
.app-brand { display: flex; align-items: center; gap: 8px; font: 600 calc(17 * var(--s))/1 var(--brandf); }
.app-brand .mark, .nbar .mark { width: calc(20 * var(--s)); height: calc(20 * var(--s)); --sw: 14; }
.chips { display: flex; gap: 6px; padding: calc(10 * var(--s)) 0; }
.chip { border-radius: 999px; padding: calc(7 * var(--s)) calc(12 * var(--s)); font: 600 calc(12 * var(--s))/1 var(--sans); box-shadow: inset 0 0 0 1.5px rgb(15 42 46 / .18); }
.chip.on { background: var(--ink); color: var(--cream); box-shadow: none; }
.grow { display: flex; align-items: center; gap: calc(10 * var(--s)); padding: calc(9 * var(--s)) 0; border-top: 1px solid rgb(15 42 46 / .1); }
.grow > img { width: calc(48 * var(--s)); height: calc(48 * var(--s)); border-radius: calc(11 * var(--s)); object-fit: cover; }
.grow > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(3 * var(--s)); }
.grow b { font: 400 calc(17 * var(--s))/1.15 var(--serif); }
.grow small { font: 400 calc(12 * var(--s))/1.5 var(--sans); color: var(--muted); }
.going { display: flex; align-items: center; font: 600 calc(11 * var(--s))/1 var(--sans); gap: 0; padding-top: 4px; }
.going i { width: calc(20 * var(--s)); height: calc(20 * var(--s)); margin-right: calc(-6 * var(--s)); --rw: 2px; --rc: #f7f3ec; }
.going i:last-of-type { margin-right: calc(12 * var(--s)); }
.join { position: relative; display: grid; border-radius: 999px; background: var(--ink); color: var(--cream); font: 800 calc(12 * var(--s))/1 var(--display); padding: calc(10 * var(--s)) calc(15 * var(--s)); min-width: calc(85 * var(--s)); text-align: center; }
.join::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--red); opacity: var(--j, 0); }
.join > span { position: relative; grid-area: 1 / 1; opacity: calc(1 - var(--j, 0)); }
.join > span + span { opacity: var(--j, 0); }
/* TapRing (A15): a coral ring that fires outward from the tapped button */
.tap { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--coral); opacity: 0; scale: .4; pointer-events: none; }

.ci { width: calc(440 * var(--s)); background: #fff; padding: calc(24 * var(--s)); box-shadow: 0 30px 60px rgb(15 42 46 / .16), 0 0 0 1px rgb(15 42 46 / .08); }
.ci-title { margin-top: calc(6 * var(--s)); font: 400 calc(30 * var(--s))/1.05 var(--serif); letter-spacing: -.015em; }
.ci-meta { margin-top: calc(6 * var(--s)); font: 400 calc(12 * var(--s))/1.5 var(--sans); color: var(--muted); }
.ci hr { border: 0; border-top: 1.5px dashed rgb(15 42 46 / .18); margin: calc(15 * var(--s)) 0 calc(16 * var(--s)); }
.people { display: flex; gap: calc(14 * var(--s)); margin-top: calc(15 * var(--s)); }
.people span { display: flex; flex-direction: column; align-items: center; gap: calc(8 * var(--s)); font: 600 calc(12 * var(--s))/1 var(--sans); width: calc(52 * var(--s)); }
.people i { position: relative; width: calc(52 * var(--s)); height: calc(52 * var(--s)); --rc: var(--green); opacity: calc(.45 + .55 * var(--ck, 0)); }
.people i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; filter: grayscale(1); box-shadow: 0 0 0 3px #fff; opacity: calc(1 - var(--ck, 0)); }
.slide { position: relative; margin-top: calc(18 * var(--s)); height: calc(60 * var(--s)); border-radius: 999px; background: var(--ink); overflow: hidden; display: grid; place-items: center; }
.slide .fill { position: absolute; inset: 0; border-radius: 999px; background: var(--green); translate: calc(60 * var(--s) - 100%) 0; }
.slide .lbl { position: relative; font: 800 calc(14 * var(--s))/1 var(--display); color: var(--cream); }
.slide .knob { position: absolute; left: calc(6 * var(--s)); top: calc(6 * var(--s)); width: calc(48 * var(--s)); height: calc(48 * var(--s)); border-radius: 50%; background: var(--cream); display: grid; place-items: center; color: var(--red); }
.slide .knob .mark { width: calc(26 * var(--s)); height: calc(26 * var(--s)); --sw: 16; }

/* the flood and the portal are discs sized in measure() and scaled down by transform; not promoted, so they repaint
   as vectors at every size and stay sharp in Safari */
.flood, .portal { position: absolute; inset: auto; left: 0; top: 0; border-radius: 50%; opacity: 0; transform: scale(0); }
.flood { background: var(--red); }
.lockc { inset: 0; }
.lockc .hand { left: 0; right: 0; top: calc(146 * var(--s)); text-align: center; color: var(--cream); font-size: calc(28 * var(--s)); }
.lock { left: 50%; top: calc(195 * var(--s)); width: calc(260 * var(--s)); height: calc(307 * var(--s)); margin-left: calc(-130 * var(--s)); color: var(--cream); filter: drop-shadow(0 16px 30px rgb(120 20 10 / .35)); overflow: visible; }
.lock .shackle { transform: translateY(-29px); }
.copy.center { left: 0; right: 0; width: auto; top: calc(621 * var(--s)); transform: none; text-align: center; }
.copy.center h2 { font-size: calc(90 * var(--s)); letter-spacing: -.03em; }
.copy.center p { margin: calc(14 * var(--s)) auto 0; color: var(--cream); opacity: .92; font-weight: 500; max-width: calc(440 * var(--s)); }

.deck { right: var(--pad); top: 50%; transform: translateY(-50%); width: calc(450 * var(--s)); display: flex; flex-direction: column; gap: calc(14 * var(--s)); }
.deck p { display: flex; align-items: center; gap: calc(14 * var(--s)); padding: calc(14 * var(--s)) calc(16 * var(--s)); background: var(--cream); color: var(--ink); border: 2px solid var(--night); border-radius: 6px; box-shadow: 6px 6px 0 var(--night); font: 400 calc(15 * var(--s))/1.35 var(--sans); }
.deck b { color: var(--red); font-weight: 600; }
.deck i { width: calc(46 * var(--s)); height: calc(46 * var(--s)); --rw: 2px; --rc: var(--ink); }

.plist { width: calc(330 * var(--s)); background: #f7f3ec; padding: calc(18 * var(--s)) calc(18 * var(--s)) calc(10 * var(--s)); box-shadow: 0 30px 60px rgb(15 42 46 / .16), 0 0 0 1px rgb(15 42 46 / .08); }
.pl-title { margin-top: calc(6 * var(--s)); font: 400 calc(22 * var(--s))/1.08 var(--serif); letter-spacing: -.015em; }
.pl-note { margin-top: calc(6 * var(--s)); font: 400 calc(12 * var(--s))/1.5 var(--sans); color: var(--muted); }
.plist ul { margin-top: calc(7 * var(--s)); }
.plist li { display: flex; align-items: center; gap: calc(10 * var(--s)); padding: calc(5 * var(--s)) 0; border-bottom: 1px solid rgb(15 42 46 / .1); }
.plist li i { width: calc(32 * var(--s)); height: calc(32 * var(--s)); --rw: 2px; --rc: rgb(15 42 46 / .12); }
.plist li b { flex: 1; font: 600 calc(15 * var(--s))/1.1 var(--sans); }
.mut { font: 800 calc(11 * var(--s))/1 var(--display); letter-spacing: .02em; background: var(--red); color: #fff; border-radius: 999px; padding: calc(5 * var(--s)) calc(10 * var(--s)); transform: rotate(-3deg) scale(0); }
.pc { position: relative; width: calc(30 * var(--s)); height: calc(30 * var(--s)); border-radius: 50%; box-shadow: inset 0 0 0 2px rgb(15 42 46 / .35); display: grid; place-items: center; color: #fff; }
.pc::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--red); opacity: var(--pk, 0); }
.pc svg { position: relative; width: 60%; height: 60%; opacity: var(--pk, 0); }
.pl-count { padding-top: calc(10 * var(--s)); border-top: 1px solid rgb(15 42 46 / .1); margin-top: -1px; }
.conn { display: flex; align-items: center; gap: calc(10 * var(--s)); margin: calc(8 * var(--s)) 0 calc(4 * var(--s)); padding: calc(10 * var(--s)) calc(12 * var(--s)); border-radius: calc(14 * var(--s)); background: var(--green); color: #fff; opacity: 0; translate: 0 8px; }
.conn i { width: calc(30 * var(--s)); height: calc(30 * var(--s)); }
.conn b { display: block; font: 600 calc(14 * var(--s))/1.15 var(--sans); }
.conn small { font: 400 calc(11.5 * var(--s))/1.5 var(--sans); }

.invw { right: var(--pad); top: 50%; transform: translateY(-50%); width: calc(320 * var(--s)); display: flex; flex-direction: column; align-items: center; gap: calc(18 * var(--s)); }
.invite { width: 100%; background: #fff; color: var(--ink); border-radius: calc(16 * var(--s)); overflow: hidden; box-shadow: 0 22px 50px rgb(0 0 0 / .4); }
.nbar { display: flex; justify-content: space-between; align-items: center; background: var(--red); color: var(--cream); padding: calc(11 * var(--s)) calc(16 * var(--s)); font: 700 calc(10 * var(--s))/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.nbar span:first-child { display: flex; align-items: center; gap: 9px; }
.invite > img { width: 100%; height: calc(90 * var(--s)); object-fit: cover; }
.inv-faces { display: flex; gap: calc(12 * var(--s)); padding: calc(19 * var(--s)) calc(20 * var(--s)) 3px; }
.inv-faces i { position: relative; width: calc(48 * var(--s)); height: calc(48 * var(--s)); --rc: var(--green); }
.inv-faces i::after { content: ''; position: absolute; right: -6px; bottom: -5px; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); box-shadow: 0 0 0 2px #fff; }
.inv-title { padding: calc(13 * var(--s)) calc(20 * var(--s)) 0; font: 400 calc(19 * var(--s))/1.12 var(--serif); }
.inv-meta { padding: calc(6 * var(--s)) calc(20 * var(--s)) calc(18 * var(--s)); font: 400 calc(11 * var(--s))/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #47625c; }
.inv-actions { display: flex; gap: 10px; padding: 0 calc(20 * var(--s)) calc(20 * var(--s)); }
.inv-actions span { position: relative; flex: 1; text-align: center; border-radius: 999px; padding: calc(13 * var(--s)) 0; font: 800 calc(14 * var(--s))/1 var(--display); }
.inv-actions .in { background: var(--red); color: #fff; }
.inv-actions .out { box-shadow: inset 0 0 0 1.5px rgb(15 42 46 / .35); }
.invw .hand { font-size: calc(28 * var(--s)); }

.lights { inset: 0 0 auto; height: calc(300 * var(--s)); opacity: 0; }
.lights path { fill: none; stroke: rgb(239 232 220 / .65); stroke-width: 1.7; vector-effect: non-scaling-stroke; }
.lights .glow { fill: url(#glow); }
.lights .bulb { fill: #fff0c9; animation: flicker 3s infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 50% { opacity: .55; } 53% { opacity: 1; } }

/* scene 4 · passions (O16) */
.f4 { background: var(--night); }
.passions { position: absolute; left: var(--pad); top: calc(99 * var(--s)); font: 400 calc(48.6 * var(--s))/1.04 var(--serif); letter-spacing: -.02em; color: var(--mist); }
.clothes { width: 100%; height: 100%; }
.clothes path { fill: none; stroke: rgb(239 232 220 / .8); stroke-width: 2.6; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.polaroids { position: absolute; inset: 0; }
.polaroids li { position: absolute; width: calc(265 * var(--s)); padding: calc(12.85 * var(--s)) calc(12.85 * var(--s)) 0; background: #fff; box-shadow: 0 14px 34px rgb(0 0 0 / .3); transform-origin: 50% 0; transform: translateY(var(--dy, -40px)) rotate(var(--r)); opacity: var(--o, 0); }
.polaroids li::before { content: ''; position: absolute; left: 50%; top: calc(-9 * var(--s)); width: calc(11 * var(--s)); height: calc(24 * var(--s)); margin-left: calc(-5.5 * var(--s)); border-radius: 3px; background: var(--cream); box-shadow: 0 0 0 1.5px rgb(15 42 46 / .3); }
.polaroids img { width: 100%; aspect-ratio: 237 / 181; object-fit: cover; }
.polaroids span { display: block; text-align: center; padding: calc(12 * var(--s)) 0 calc(14 * var(--s)); font: 700 calc(24.4 * var(--s))/1 var(--hand); color: var(--ink); }
.polaroids li:nth-child(1) { left: calc(146 * var(--s)); top: calc(213 * var(--s)); }
.polaroids li:nth-child(2) { left: calc(583 * var(--s)); top: calc(229 * var(--s)); }
.polaroids li:nth-child(3) { left: calc(1038 * var(--s)); top: calc(215 * var(--s)); }
.polaroids li:nth-child(4) { left: calc(132 * var(--s)); top: calc(475 * var(--s)); }
.polaroids li:nth-child(5) { left: calc(592 * var(--s)); top: calc(491 * var(--s)); }
.polaroids li:nth-child(6) { left: calc(1029 * var(--s)); top: calc(477 * var(--s)); }
.and-more { position: absolute; left: calc(1117 * var(--s)); top: calc(725 * var(--s)); font-size: calc(30 * var(--s)); transform: rotate(-3deg); }
.marquee { position: absolute; left: 0; right: 0; top: calc(780 * var(--s)); overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; gap: 10px; width: max-content; animation: marquee 50s linear infinite; }
.marquee span { flex: none; border-radius: 999px; padding: 10px 16px; font: 600 14px/14px var(--sans); color: var(--cream); box-shadow: inset 0 0 0 1.5px rgb(239 232 220 / .35); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* scene 5 · final (O17) */
.f5 { display: grid; place-items: center; text-align: center; }
.ring-logo { position: absolute; left: 50%; top: calc(86 * var(--s)); width: calc(170 * var(--s)); height: calc(170 * var(--s)); margin-left: calc(-85 * var(--s)); color: var(--cream); --sw: 12; }
.final { padding: 0 20px; display: flex; flex-direction: column; gap: calc(16 * var(--s)); margin-top: calc(70 * var(--s)); }
.final h2 { font: 400 calc(108 * var(--s))/1.04 var(--serif); letter-spacing: -.02em; color: var(--mist); }
.final .actions { padding-top: calc(12 * var(--s)); }

/* curtains, effects */
.hem { pointer-events: none; }
.hem path { fill: none; stroke: var(--red); stroke-width: 3; }
.fly { inset: auto; left: 0; top: 0; font: 400 calc(117 * var(--s))/1.04 var(--serif); letter-spacing: -.02em; color: var(--coral); white-space: nowrap; opacity: 0; transform-origin: 0 0; pointer-events: none; z-index: 12; }
.zoom { inset: auto; left: 0; top: 0; width: 100px; height: 100px; color: var(--orange); opacity: 0; overflow: visible; --sw: 14; z-index: 13; transform-origin: 50% 87.5%; }
.portal { background: var(--ink); z-index: 14; }

/* floating CTA (A08 Pill/Glass) */
.pill { position: fixed; z-index: 31; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 14px 26px; border-radius: 999px; background: rgb(15 42 46 / .72); color: var(--mist); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .24); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font: 600 14px/21px var(--sans); transition: opacity var(--dur-base, 250ms) var(--ease-standard, ease-out), transform var(--dur-base, 250ms) var(--ease-standard, ease-out); }
.pill.gone { opacity: 0; pointer-events: none; transform: translate(-50%, 12px); }

/* footer (O18) */
.foot { position: relative; z-index: 2; background: var(--night); border-top: 1px solid rgb(238 240 234 / .1); padding: 56px var(--pad) 40px; }
.foot-row { display: flex; justify-content: space-between; gap: 64px; flex-wrap: wrap; }
.foot-row p { margin-top: 14px; max-width: 303px; font: 400 14px/21px var(--sans); color: var(--hint); }
.foot nav { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.foot nav button, .foot nav a, .about-d .close { font: 400 11px/16.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.foot nav button:hover, .foot nav a:hover { color: var(--coral); }
.legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgb(238 240 234 / .1); font: 400 10px/15px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hint); }

/* dialogs: the waitlist sign-up, and About (O19–O25) */
dialog { border: 0; padding: 0; color: inherit; }
dialog::backdrop { background: rgb(11 28 31 / .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body:has(dialog[open]) { overflow: hidden; }
.join-d { width: min(440px, calc(100vw - 32px)); max-height: calc(100svh - 32px); border-radius: 26px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 70px rgb(0 0 0 / .45); }
.join-d form { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 24px; }
.join-d .x { position: absolute; right: 14px; top: 10px; font-size: 26px; line-height: 1; padding: 6px 10px; color: var(--muted); }
.join-d .eyebrow { color: var(--burnt); opacity: 1; }
.join-d h2 { font: 400 34px/1.05 var(--serif); letter-spacing: -.02em; margin-bottom: 4px; }
.join-d label { display: flex; flex-direction: column; gap: 6px; font: 600 12px/1 var(--sans); color: var(--muted); }
.join-d label small { font-weight: 400; }
.join-d input, .join-d select { font: 400 16px/1.3 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid rgb(15 42 46 / .18); border-radius: 12px; padding: 12px 14px; width: 100%; }
.join-d input:focus, .join-d select:focus { outline: none; border-color: var(--ink); }
.join-d .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.join-d .at { position: relative; }
.join-d .at::before { content: '@'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font: 400 16px var(--sans); color: var(--muted); }
.join-d .at input { padding-left: 32px; }
.join-d .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join-d .btn { margin-top: 4px; }
.join-d .btn:disabled { opacity: .6; }
#msg { min-height: 1.2em; font: 400 14px/1.4 var(--sans); }
#msg.err { color: var(--red); }
.done-msg { padding: 20px 0 8px; font: 400 26px/1.15 var(--serif); }

.about-d { width: 100vw; max-width: none; height: 100svh; max-height: none; margin: 0; background: var(--about); overflow-y: auto; overscroll-behavior: contain; }
.about-bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; height: 70px; padding: 0 20px; background: var(--about); border-bottom: 1px solid rgb(238 240 234 / .1); }
.about-d .close { padding: 11px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgb(238 240 234 / .5); }
.about-d section { padding: 81px var(--pad) 78px; }
.about-d .eyebrow { margin-bottom: 14px; }
.a-hero { padding-left: calc(var(--pad) * 2) !important; padding-bottom: 53px !important; }
.a-hero h2 { font: 400 clamp(46px, 6.7vw, 96px)/1.04 var(--serif); letter-spacing: -.02em; max-width: 12ch; }
.a-hero em { color: var(--coral); }
.a-body { padding-top: 0 !important; padding-left: calc(var(--pad) * 2) !important; display: flex; flex-direction: column; gap: 28px; }
.a-body p { max-width: 608px; font: 400 clamp(17px, 1.46vw, 21px)/1.55 var(--sans); color: #dfe8e4; }
.a-body b { font-weight: 600; color: var(--mist); }
.a-body .quote { font: 700 clamp(30px, 2.8vw, 40px)/1.1 var(--hand); color: var(--gold); transform: rotate(-1.5deg); max-width: 400px; }
.a-beliefs { background: var(--cream); color: var(--ink); }
.a-beliefs .eyebrow { color: #2c5d4f; opacity: 1; }
.a-beliefs h2, .a-team h2 { font: 400 clamp(38px, 4vw, 57.6px)/1.04 var(--serif); letter-spacing: -.02em; max-width: 11ch; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 32px; }
.cards article { background: #fff; border-radius: 14px; padding: 22px 22px 24px; box-shadow: 0 16px 34px rgb(15 42 46 / .14), 0 0 0 1px rgb(15 42 46 / .08); }
.cards span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 11px/1 var(--mono); }
.cards h3 { margin-top: 16px; font: 400 26px/1.1 var(--serif); letter-spacing: -.01em; }
.cards p { margin-top: 10px; font: 400 15px/1.5 var(--sans); color: #35514c; }
.a-mission { background: var(--red); text-align: center; padding-top: 90px !important; padding-bottom: 90px !important; }
.a-mission .mission { max-width: 720px; margin: 0 auto; font: 400 clamp(36px, 4.9vw, 70.4px)/1.05 var(--serif); letter-spacing: -.02em; color: var(--cream); }
.a-team { background: var(--ink); overflow: hidden; }
.a-team .sub { margin: 14px 0 0; max-width: 454px; font-size: 18px; }
.crew { position: relative; display: flex; gap: 36px; flex-wrap: wrap; padding-top: 52px; }
.crew::before { content: ''; position: absolute; left: -50vw; right: -50vw; top: 34px; height: 27px; border-top: 3px solid var(--coral); border-radius: 50%; }
.crew figure { position: relative; width: 229px; background: #fff; padding: 12px; box-shadow: 0 18px 40px rgb(0 0 0 / .4); transform: rotate(var(--r)); color: var(--ink); text-align: center; }
.crew figure::before { content: ''; position: absolute; left: 50%; top: -14px; width: 11px; height: 26px; margin-left: -5.5px; border-radius: 3px; background: var(--cream); box-shadow: 0 2px 4px rgb(0 0 0 / .3); }
.crew .ph { width: 100%; aspect-ratio: 1; object-fit: cover; }
.crew .initial { display: grid; place-items: center; background: var(--bg); font: 400 70px/1 var(--serif); }
.crew figcaption { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0 6px; }
.crew b { font: 700 32px/1 var(--hand); }
.crew small { font: 700 10px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #47625c; }
.crew .tag { background: var(--bg); border-radius: 999px; padding: 6px 12px; font: 800 13px/1.1 var(--display); box-shadow: inset 0 0 0 1.5px rgb(15 42 46 / .12); }
.a-end { background: var(--night); text-align: center; padding-top: 90px !important; padding-bottom: 56px !important; }
.a-end h2 { font: 400 clamp(44px, 5.6vw, 80px)/1.04 var(--serif); letter-spacing: -.02em; }
.a-end .sub { margin-top: 14px; margin-bottom: 26px; }

/* ---------- phone layout: the 390×844 frames ---------- */
@media (max-width: 839px) {
  .top { height: 56px; }
  .top-label { font-size: 9px; letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .top { gap: 12px; padding: 0 16px; }
  .top .brand { font-size: 17px; flex: none; }
  .top .brand .mark { width: 22px; height: 22px; }
  .hero h1 { font-size: calc(33.5 * var(--s)); }
  .hero h1 { max-width: calc(260 * var(--s)); }
  .sub { font-size: calc(15 * var(--s)); max-width: calc(330 * var(--s)); }
  .hero .actions, .f5 .actions { flex-direction: column; align-items: center; }
  .f5 .actions { flex-direction: row; }
  .statement { left: calc(23 * var(--s)); top: calc(101 * var(--s)); width: calc(343 * var(--s)); }
  .statement h2 { font-size: calc(35.1 * var(--s)); }
  .not-line { font-size: calc(23.4 * var(--s)); margin-top: calc(16 * var(--s)); }
  .feed { left: calc(31 * var(--s)); top: calc(465 * var(--s)); width: calc(328 * var(--s)); height: calc(287 * var(--s)); }
  .chapter { left: calc(31 * var(--s)); top: calc(93 * var(--s)); width: calc(328 * var(--s)); font-size: calc(28.8 * var(--s)); }
  .counter { top: calc(340 * var(--s)); right: calc(31 * var(--s)); font-size: calc(35.2 * var(--s)); }
  .bead { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; }
  .bead-label { font-size: 8.5px; }
  .gap-line { left: calc(31 * var(--s)); top: calc(650 * var(--s)); width: calc(300 * var(--s)); font-size: calc(20 * var(--s)); }
  .copy { left: calc(31 * var(--s)); top: calc(93 * var(--s)); transform: none; width: calc(328 * var(--s)); }
  .copy h2 { font-size: calc(28.9 * var(--s)); }
  .copy h2.pick, .copy h2.payoff { font-size: calc(27.3 * var(--s)); }
  .copy p { font-size: calc(14.5 * var(--s)); margin-top: calc(10 * var(--s)); }
  .card, .deck, .invw { left: calc(20 * var(--s)); right: calc(20 * var(--s)); width: auto; top: auto; transform: none; }
  .app { bottom: calc(208 * var(--s)); } .ci { bottom: calc(186 * var(--s)); } .plist { bottom: calc(155 * var(--s)); }
  .s6 .copy[data-k="h6"] { top: calc(194 * var(--s)); }
  .invw { left: calc(39 * var(--s)); right: calc(39 * var(--s)); bottom: calc(62 * var(--s)); }
  .app .grow:nth-child(5) { display: none; }
  .deck { bottom: calc(238 * var(--s)); }
  .lockc .hand { top: calc(183 * var(--s)); font-size: calc(20 * var(--s)); }
  .lock { top: calc(223 * var(--s)); width: calc(172 * var(--s)); height: calc(203 * var(--s)); margin-left: calc(-86 * var(--s)); }
  .copy.center { top: calc(620 * var(--s)); padding: 0 calc(23 * var(--s)); }
  .copy.center h2 { font-size: calc(46.8 * var(--s)); }
  .copy.center p { font-size: calc(14.5 * var(--s)); }
  .passions { left: calc(31 * var(--s)); top: calc(93 * var(--s)); width: calc(328 * var(--s)); font-size: calc(27.2 * var(--s)); }
  .polaroids li { width: calc(169 * var(--s)); padding: calc(8 * var(--s)) calc(8 * var(--s)) 0; }
  .polaroids span { font-size: calc(15.6 * var(--s)); padding: calc(8 * var(--s)) 0 calc(10 * var(--s)); }
  .polaroids li:nth-child(1) { left: calc(24 * var(--s)); top: calc(214 * var(--s)); }
  .polaroids li:nth-child(2) { left: calc(197 * var(--s)); top: calc(215 * var(--s)); }
  .polaroids li:nth-child(3) { left: calc(24 * var(--s)); top: calc(427 * var(--s)); }
  .polaroids li:nth-child(4) { left: calc(195 * var(--s)); top: calc(426 * var(--s)); }
  .polaroids li:nth-child(n+5) { display: none; }
  .and-more { left: calc(206 * var(--s)); top: calc(686 * var(--s)); font-size: calc(22 * var(--s)); }
  .marquee { top: calc(734 * var(--s)); }
  .marquee span { font-size: 12.5px; padding: 8px 13px; }
  .ring-logo { top: calc(91 * var(--s)); width: calc(139 * var(--s)); height: calc(139 * var(--s)); margin-left: calc(-69.5 * var(--s)); }
  .final { margin-top: calc(40 * var(--s)); }
  .final h2 { font-size: calc(41.6 * var(--s)); }
  .lights { height: calc(170 * var(--s)); }
  .foot { padding: 40px 24px 32px; }
  .about-d section { padding: 56px 24px; }
  .a-hero, .a-body { padding-left: 24px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee .track, .lights .bulb, .stage img.in { animation: none; }
}
