/* Mirage marketing site. Every value traces to the design language:
   design/places-tokens.md, design/mirage-brand.md, the app's palette.ts,
   geometry.ts and type.ts, and store-screenshots/sources/frame.html. */

@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ground: #290f2c;        /* nightCard: the club's aubergine */
  --lift: #3a1a3f;          /* MembershipCard / Activation gradient start */
  --foot: #1d0a20;          /* card.tsx FOOT_AUBERGINE */
  --night: #211e19;         /* the app's dark ground, inside the phone */
  --ink: #f7f2e7;           /* ivoryOnDark */
  --muted: rgba(247, 242, 231, 0.65);   /* onNightMuted */
  --faint: rgba(247, 242, 231, 0.5);    /* onNightFaint */
  --bone: #efeae0;          /* dark.ink, the word in the lockup */
  --gold: #caa034;
  --gold-hover: #e0bb54;    /* dark.primaryHover / goldInk */
  --on-gold: #1d1710;
  --gold-line: rgba(202, 160, 52, 0.35);   /* nightCardEdge */
  --outline: rgba(239, 234, 224, 0.45);    /* dark.outlineOnCreamStrong */
  --hairline: rgba(255, 255, 255, 0.10);
  --hairline-strong: rgba(255, 255, 255, 0.15);
  --destructive: #d98570;   /* dark.destructive */
  --scrim: rgba(29, 23, 20, 0.45);          /* darkBarDeep at the dialog's 0.45 */
  --bezel: #0f0e0c; --rim: #4a4236; --rim-edge: #5d5446;   /* frame.html, dark theme */
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);     /* the logo fill's curve */
  --ease-pin: cubic-bezier(0.65, 0, 0.35, 1); /* PIN_GROW_EASING */
  --ease-dissolve: cubic-bezier(0.45, 0, 0.25, 1); /* the screen and text dissolve: slow in, soft out */
  --header-h: 64px;
  --t-out: 900ms;          /* the old text fades out; the screen crossfade begins at the same moment */
  --t-in: 1600ms;          /* the new text fades in; the screen crossfade spans both numbers */
  --beat-len: 1.75;       /* viewport heights of scroll per beat */
  --margin: 24px;
  --max: 1200px;
  --phone-h: min(86svh, 912px);
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='14' viewBox='0 0 44 14'%3E%3Cpath d='M 0 7 q 5.5 -4 11 0 t 11 0 t 11 0 t 11 0' fill='none' stroke='%23caa034' stroke-opacity='0.16' stroke-width='1'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html, body { margin: 0; background: var(--ground); color: var(--ink); }
body { font-family: var(--sans); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* The skip link shows itself when a keyboard reaches it. */
a.visually-hidden:focus-visible { position: fixed; top: 10px; left: 10px; z-index: 30; width: auto; height: auto; margin: 0; padding: 12px 18px; clip: auto; overflow: visible; border-radius: 14px; background: var(--gold); color: var(--on-gold); font-weight: 700; text-decoration: none; }

/* Shine level B: the membership card's gradient at page scale. */
html[data-shine="b"] body { background: linear-gradient(160deg, var(--lift) 0%, var(--ground) 55%, var(--foot) 100%) fixed; }

/* ---------- Type ---------- */
.eyebrow { font-family: var(--mono); font-weight: 900; font-size: 12px; line-height: 16px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.display { margin: 0; font-weight: 800; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; color: var(--ink); }
.display .punct { margin-inline-start: -0.06em; }
.display--sm { font-size: clamp(32px, 3.4vw, 44px); }
.lede { margin: 0; font-size: 20px; line-height: 1.4; color: var(--muted); max-width: 32ch; }
.lede--wide { max-width: 64ch; }
.nowrap { white-space: nowrap; }
.quiet { margin: 0; font-size: 14.5px; line-height: 1.35; color: var(--muted); }
.text-link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; transition: color 250ms var(--ease); }
.text-link:hover { color: var(--ink); }

/* ---------- Pills (Button.tsx: entry CTA 54/18/700 16, commit 52/17/600 15) ---------- */
.pill { display: inline-block; box-sizing: border-box; height: 54px; line-height: 54px; text-align: center; padding: 0 28px; border-radius: 18px; border: 0; background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background 250ms var(--ease), opacity 250ms var(--ease), color 250ms var(--ease); }
.pill:hover { background: var(--gold-hover); }
.pill:active { opacity: 0.92; }
.pill--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--outline); }
.pill--outline:hover { background: var(--hairline-strong); }
.pill--commit { height: 52px; line-height: 52px; border-radius: 17px; font-weight: 600; font-size: 15px; padding: 0 24px; }
/* The apple sits on the text baseline, so its bottom lines up with the D in every browser; the leaf rises above. */
.pill .apple { height: 1em; width: auto; fill: currentColor; vertical-align: baseline; margin-right: 10px; }
.pill--small { height: 44px; line-height: 44px; border-radius: 15px; font-size: 15px; padding: 0 20px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 20; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--margin); background: rgba(41, 15, 44, 0.92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
@media (prefers-reduced-transparency: reduce) { .header { background: var(--ground); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.lockup { display: inline-flex; align-items: center; color: var(--gold); --lockup-word: var(--bone); text-decoration: none; min-height: 44px; }
.lockup svg { height: 28px; width: auto; display: block; }
.header__actions { display: flex; align-items: center; gap: 22px; }
.header__link { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Beats: one pinned stage, text and screen crossfading in place ---------- */
.beats { position: relative; overflow-x: clip; }
.beats__stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); height: calc(100dvh - var(--header-h)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; align-items: center; max-width: var(--max); margin: 0 auto; padding: 0 var(--margin); z-index: 1; }
/* dvh follows the phone browsers' collapsing bars, so the stage fills the screen whether they are showing or not. */
.beats__track { height: calc(4.5 * var(--beat-len) * (100vh - var(--header-h))); height: calc(4.5 * var(--beat-len) * (100svh - var(--header-h))); height: calc(4.5 * var(--beat-len) * (100dvh - var(--header-h))); }
.beats__copy { display: grid; grid-template-rows: auto auto; position: relative; z-index: 2; }
/* The eyebrow stays put through every beat; only the headline and line change. */
.beats__eyebrow { grid-area: 1 / 1; margin-bottom: 20px; }
/* One timeline: out together, then in together. */
.copy { grid-area: 2 / 1; display: grid; align-content: start; gap: 20px; max-width: 560px; opacity: 0; visibility: hidden; transition: opacity var(--t-out) var(--ease), visibility 0s var(--t-out); }
.copy.is-active { opacity: 1; visibility: visible; transition: opacity var(--t-in) var(--ease-dissolve) var(--t-out), visibility 0s var(--t-out); }
.copy__cta { display: grid; gap: 14px; justify-items: start; margin-top: 8px; }
.beats__media { position: relative; z-index: 1; display: grid; place-items: center; height: 100%; }
.beats__media::before { content: ""; position: absolute; inset: -20% -60%; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 42% 40% at 50% 50%, var(--lift) 0%, rgba(58, 26, 63, 0) 100%); }

/* The phone: frame.html's geometry (20 px bezel, island), dark-ground colours. */
.phone { display: inline-block; padding: 20px; border-radius: calc(var(--r) + 20px); background: var(--bezel); box-shadow: 0 0 0 3px var(--rim), 0 0 0 4px var(--rim-edge); --r: 50px; }
.screen { position: relative; height: calc(var(--phone-h) - 40px); aspect-ratio: 440 / 956; border-radius: var(--r); overflow: hidden; background: var(--night); }
.layer { position: absolute; inset: 0; opacity: 0; z-index: 0; }
.layer.is-prev { z-index: 1; }
.layer.is-active { z-index: 2; }
/* One rule for every beat: the new screen, its moment included, fades in over the old one as the old text leaves and finishes with the new text. */
.layer { transition: none; }
.layer.is-active { opacity: 1; transition: opacity calc(var(--t-out) + var(--t-in)) var(--ease-dissolve); }
.layer.is-prev, .layer.is-settled { opacity: 1; transition: none; }
@keyframes appear { to { opacity: 1; } }
.layer > picture, .layer > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.island { position: absolute; top: 3.9%; left: 50%; width: 28.4%; height: 3.84%; transform: translateX(-50%); border-radius: 999px; background: #000; z-index: 5; pointer-events: none; }

/* Overlays live in the screen's own 440 x 956 space, scaled as one. */
.ov-layer { position: absolute; left: 0; top: 0; width: 440px; height: 956px; transform: scale(var(--s, 1)); transform-origin: 0 0; pointer-events: none; }
.ov { position: absolute; box-sizing: border-box; }
@keyframes breathe { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes land { from { transform: scale(1.28); opacity: 0.6; } to { transform: scale(1); opacity: 0; } }
@keyframes warm { 0%, 100% { color: #bbb5aa; } 40%, 60% { color: var(--gold-hover); } }

/* The moment on each screen plays once the crossfade is done: T = out + in. */
/* 01 map: a gold dot at Gallery DeFi grows into its oval, then the label settles under it. */
.ov-dot01 { left: 215px; top: 392.33px; width: 10px; height: 10px; border-radius: 5px; background: var(--gold); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); opacity: 0; }
@keyframes dotin { to { opacity: 1; } }
@keyframes dotout { to { opacity: 0; } }
.ov-oval { left: 194px; top: 322.33px; width: 52px; height: 75px; transform-origin: 26px 75px; opacity: 0; }
.ov-oval .halo { position: absolute; left: 0; top: 0; width: 52px; height: 66px; border-radius: 26px; background: #efeae0; }
.ov-oval .frame { position: absolute; left: 3px; top: 3px; width: 46px; height: 60px; border-radius: 23px; background: var(--gold); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.ov-oval .frame img { position: absolute; left: 4px; top: 4px; width: 38px; height: 52px; border-radius: 19px; object-fit: cover; }
.ov-oval .tail { position: absolute; left: 18px; top: 65px; }
.is-active .ov-oval, .is-played .ov-oval { animation: grow 560ms var(--ease-pin) calc(var(--t-out) + var(--t-in)) forwards; }
@keyframes grow { from { transform: scale(0.19); opacity: 1; } to { transform: scale(1); opacity: 1; } }
.ov-label { left: 150px; top: 402.86px; width: 140px; height: 19.2px; font-family: var(--sans); font-weight: 600; font-size: 16px; line-height: 19.2px; color: #efeae0; text-shadow: 0 0 4px #211e19; text-align: center; white-space: nowrap; opacity: 0; }
.is-active .ov-label, .is-played .ov-label { animation: appear 300ms var(--ease) calc(var(--t-out) + var(--t-in) + 520ms) forwards; }
.ov-halo { left: 194px; top: 322.33px; width: 52px; height: 66px; border-radius: 26px; box-shadow: 0 0 14px 3px rgba(202, 160, 52, 0.45); opacity: 0; }
.is-active .ov-halo, .is-played .ov-halo { animation: breathe 2400ms ease-in-out calc(var(--t-out) + var(--t-in) + 800ms) infinite; }
/* On load the map's moment starts almost at once. */
.is-settled .ov-dot01 { animation-delay: 150ms, 500ms; }
.is-settled .ov-oval { animation-delay: 500ms; }
.is-settled .ov-label { animation-delay: 1020ms; }
.is-settled .ov-halo { animation-delay: 1300ms; }
/* 02 venue: the carousel advances to the next photograph, then the Request pill lifts. */
.ov-next { left: 0; top: 0; width: 440px; height: 300px; overflow: hidden; opacity: 0; }
.ov-next img { position: absolute; left: 0; top: 0; width: 440px; height: 956px; max-width: none; }
.is-active .ov-next, .is-played .ov-next { animation: appear 700ms var(--ease-dissolve) calc(var(--t-out) + var(--t-in) + 600ms) forwards; }
.ov-request { left: 94px; top: 856px; width: 84px; height: 56px; border-radius: 15px; background: rgba(255, 255, 255, 0.18); box-shadow: 0 0 18px 4px rgba(202, 160, 52, 0.35); opacity: 0; }
.is-active .ov-request, .is-played .ov-request { animation: breathe 1400ms ease-in-out calc(var(--t-out) + var(--t-in) + 1600ms) 2; }
/* 03 confirmation: the summary's values slide in one after another, then Accepted warms. */
.ov-val { left: 200px; width: 198px; height: 45px; line-height: 45px; text-align: right; font-family: var(--sans); font-weight: 600; font-size: 15px; color: #efeae0; opacity: 0; transform: translateX(20px); }
.is-active .ov-val, .is-played .ov-val { animation: slidein 450ms var(--ease) calc(var(--t-out) + var(--t-in) + 120ms * var(--k)) forwards; }
@keyframes slidein { to { opacity: 1; transform: none; } }
.ov-accepted { opacity: 0; left: 24px; top: 391px; width: 70px; height: 15px; background: var(--night); font-family: var(--mono); font-weight: 500; font-size: 11px; line-height: 14px; letter-spacing: 0.88px; text-transform: uppercase; color: #bbb5aa; padding-top: 1px; }
.is-active .ov-accepted, .is-played .ov-accepted { animation: appear calc(var(--t-out) + var(--t-in)) var(--ease-dissolve) forwards, warm 2400ms ease-in-out calc(var(--t-out) + var(--t-in) + 700ms) 1; }
/* 04 run of show: the route draws itself from the member to the venue, then the puck breathes. */
.ov-route { left: 24px; top: 230.16px; width: 392px; height: 160px; overflow: visible; }
.is-active .ov-route .wipe, .is-played .ov-route .wipe { animation: draw 1200ms var(--ease) calc(var(--t-out) + var(--t-in)) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ov-puck { left: 223.73px; top: 349.66px; width: 33px; height: 33px; border-radius: 50%; background: rgba(202, 160, 52, 0.22); box-shadow: 0 0 14px 5px rgba(202, 160, 52, 0.3); opacity: 0; }
.is-active .ov-puck, .is-played .ov-puck { animation: breathe 1400ms ease-in-out calc(var(--t-out) + var(--t-in) + 1200ms) 2; }
/* 05 passport: the map is already there; the venues light up one after another. */
.ov-neon { left: 0; top: 124px; width: 440px; height: 399px; overflow: hidden; }
.ov-neon svg { display: block; width: 100%; height: 100%; }
.ov-neon .faint { opacity: 0; }
.is-active .ov-neon .faint, .is-played .ov-neon .faint { animation: appear 500ms var(--ease) calc(var(--t-out) + var(--t-in)) forwards; }
.ov-neon .lit { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.2); }
.is-active .ov-neon .lit, .is-played .ov-neon .lit { animation: ping 600ms var(--ease) forwards; animation-delay: calc(var(--t-out) + var(--t-in) + 180ms * var(--k)); }
@keyframes ping { to { opacity: 1; transform: scale(1); } }

/* Motion modes (the review panel sets these; production keeps one). */
html[data-motion="none"] .ov { animation: none !important; }
html[data-motion="none"] html[data-motion="none"] .ov { opacity: 0 !important; }

/* ---------- Closing ---------- */
.closing-band { position: relative; isolation: isolate; z-index: 2; background: var(--ground); }
.closing-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wave) 0 0 / 44px 14px repeat; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 72%, transparent 100%); pointer-events: none; }
.closing { position: relative; max-width: var(--max); margin: 0 auto; padding: 120px var(--margin) 96px; display: grid; gap: 24px; justify-items: start; }
.closing__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.badge { display: inline-block; height: 54px; }
.badge img { height: 100%; width: auto; }

/* ---------- Footer ---------- */
.footer { padding: 24px var(--margin) 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; max-width: var(--max); margin: 0 auto; width: 100%; font-size: 13px; line-height: 1.4; color: var(--faint); }
.footer a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer a:hover { color: var(--ink); }
.footer__links { display: flex; gap: 20px; align-items: center; }
.footer__legal { margin: 0; flex: 1 1 560px; min-width: 0; }

/* ---------- Contact dialog (ConfirmDialog: radius 28, 24 margins, 45% scrim) ---------- */
.dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; }
.dialog::backdrop { background: var(--scrim); }
.dialog[open] { display: grid; place-items: center; position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; margin: 0; }
.dialog__card { width: min(480px, calc(100vw - 48px)); background: var(--lift); border: 1px solid var(--gold-line); border-radius: 28px; padding: 28px 24px 24px; display: grid; gap: 18px; }
.dialog__card { background: linear-gradient(160deg, var(--lift) 0%, var(--ground) 55%, var(--foot) 100%); }
.dialog__head { display: grid; gap: 6px; }
.dialog form > .dialog__head { margin-bottom: 12px; }
.dialog__title { margin: 0; font-weight: 800; font-size: 27px; line-height: 1.08; letter-spacing: -0.01em; }
.dialog__intro { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--muted); }
.dialog__intro em { font-style: italic; color: var(--ink); }
.dialog__head[data-copy-general], .dialog__head[data-copy-partnership], .dialog__head[data-copy-testflight] { display: none; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-weight: 500; font-size: 11px; line-height: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--ground); border: 1px solid var(--hairline); border-radius: 16px; padding: 0 16px; height: 52px; outline: 0; transition: border-color 250ms var(--ease); }
.field textarea { height: auto; min-height: 132px; padding: 14px 16px; resize: vertical; line-height: 1.4; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--destructive); }
.field__error { font-size: 13.5px; line-height: 1.4; color: var(--destructive); margin: 0; }
.dialog__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.quiet-button { background: none; border: 0; padding: 0 4px; min-height: 44px; font-weight: 500; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.quiet-button:hover { color: var(--ink); }
.dialog__status { margin: 0; font-size: 15px; line-height: 1.42; color: var(--muted); }
.dialog__status.is-error { color: var(--destructive); }
.dialog__done { display: grid; gap: 16px; justify-items: start; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.pill .spinner { display: inline-block; vertical-align: -3px; margin-right: 10px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(29, 23, 20, 0.3); border-top-color: var(--on-gold); animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Secondary pages ---------- */
.page { max-width: var(--max); margin: 0 auto; padding: 72px var(--margin) 96px; }
.page__head { display: grid; gap: 16px; max-width: 720px; margin-bottom: 40px; }
.article { max-width: 720px; display: grid; gap: 22px; font-size: 15.5px; line-height: 1.45; color: var(--muted); }
.article h2 { margin: 18px 0 0; font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--ink); }
.article p { margin: 0; }
.article a { color: var(--ink); }
.article .updated { font-family: var(--mono); font-weight: 500; font-size: 11px; line-height: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }

/* Partners */
/* Partners: a still hero with the venue screen, then the pitch, the seven steps and one partner's word. */
.hero-band { overflow-x: clip; }
.hero { position: relative; max-width: var(--max); margin: 0 auto; padding: 24px var(--margin) 40px; min-height: calc(100svh - var(--header-h)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; align-items: center; }
.hero__copy { display: grid; gap: 20px; max-width: 560px; justify-items: start; position: relative; z-index: 2; }
.hero__text { margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 50ch; }
.hero__actions { margin-top: 8px; }
.hero__media { position: relative; z-index: 1; display: grid; place-items: center; height: 100%; }
.hero__media::before { content: ""; position: absolute; inset: -20% -60%; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 42% 40% at 50% 50%, var(--lift) 0%, rgba(58, 26, 63, 0) 100%); }
.pitch { max-width: var(--max); margin: 0 auto; padding: 80px var(--margin) 40px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 64px; align-items: start; border-top: 1px solid var(--hairline); }
.pitch__head { display: grid; gap: 16px; }
.pitch__text { margin: 0; font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 60ch; }
/* A member's word, beneath the hero's button. */
.hero__word { margin: 12px 0 0; padding-top: 22px; border-top: 1px solid var(--hairline); display: grid; gap: 14px; max-width: 50ch; }
.hero__quote { margin: 0; font-weight: 500; font-size: 16.5px; line-height: 1.5; color: var(--ink); }
.hero__quote em { font-style: italic; color: var(--gold); }
.word__by { display: flex; align-items: center; gap: 14px; margin: 0; }
.word__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--gold-line); }
.word__who { display: grid; gap: 3px; font-family: var(--mono); font-size: 11px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.members { max-width: var(--max); margin: 0 auto; padding: 72px var(--margin) 72px; display: grid; gap: 36px; border-top: 1px solid var(--hairline); }
.members__head { display: grid; gap: 16px; max-width: 640px; }
.members__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.facts { display: grid; gap: 0; align-content: start; }
.facts__title { margin: 0 0 6px; font-family: var(--mono); font-weight: 500; font-size: 11px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts__list { list-style: none; margin: 0; padding: 0; display: grid; }
.fact { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--hairline); }
.fact__key { font-weight: 700; font-size: 18px; line-height: 1.2; letter-spacing: -0.01em; }
.fact__val { font-size: 15.5px; line-height: 1.5; color: var(--muted); max-width: 44ch; }
.steps { max-width: var(--max); margin: 0 auto; padding: 24px var(--margin) 72px; display: grid; gap: 36px; }
.steps__head { display: grid; gap: 16px; max-width: 640px; }
/* The five steps read left to right along one hairline, like a timeline. */
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 32px; }
.step { display: grid; gap: 10px; padding: 24px 0 8px; border-top: 1px solid var(--hairline); align-content: start; }
.step__num { font-family: var(--mono); font-weight: 700; font-size: 13px; line-height: 20px; letter-spacing: 0.12em; color: var(--gold); }
.step__name { margin: 0; font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
.step__text { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 1023px) and (min-width: 768px) { .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; } .step { padding: 24px 0 28px; } }
.story { max-width: var(--max); margin: 0 auto; padding: 24px var(--margin) 96px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.story__photo { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 1px var(--gold-line); background: var(--night); }
.story__photo img { display: block; width: 100%; height: auto; }
.story__body { display: grid; gap: 22px; justify-items: start; }
.story__body .eyebrow { margin: 0; }
.story__quote { margin: 0; font-weight: 500; font-size: 26px; line-height: 1.32; letter-spacing: -0.01em; color: var(--ink); max-width: 24ch; }
.story__quote em { font-style: italic; color: var(--gold); }
.story__by { display: grid; gap: 4px; font-family: var(--mono); font-size: 11px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.story__name { color: var(--ink); font-weight: 700; }
.story__by .venue__badge { margin-top: 6px; font-family: var(--sans); letter-spacing: 0; text-transform: none; }
.venue__badge { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 600; font-size: 13px; }
.venue__badge svg { width: 12px; height: 17.45px; }
.venue__badge em { font-style: italic; }

/* 404 */
.lost { max-width: var(--max); margin: 0 auto; padding: 120px var(--margin); display: grid; gap: 20px; justify-items: start; min-height: calc(100svh - var(--header-h)); align-content: center; }


/* ---------- Mobile ---------- */
/* The phone is sized by the viewport's height; on narrow two-column layouts its column's width caps it instead. */
@media (min-width: 768px) {
  .beats__media, .hero__media { container-type: inline-size; }
  .beats__media .screen, .hero__media .screen { height: min(calc(var(--phone-h) - 40px), calc((100cqw - 40px) * 956 / 440)); }
}
@media (max-width: 767px) {
  :root { --phone-h: min(46svh, 420px); }
  .display { font-size: clamp(36px, 10vw, 44px); }
  .display--sm { font-size: clamp(28px, 8vw, 34px); }
  .lede { font-size: 17px; }
  .beats__stage { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 0; align-items: start; }
  .beats__eyebrow { margin: 28px 0 14px; }
  .copy { gap: 14px; max-width: none; }
  .beats__media { align-self: stretch; height: 100%; min-height: 0; padding: 16px 0 24px; place-items: end center; }
  .beats__media::before { inset: -40% -60% 0; background: radial-gradient(ellipse 50% 45% at 50% 60%, var(--lift) 0%, rgba(58, 26, 63, 0) 100%); }
  .beats__media { container-type: size; }
  .phone { --r: 28px; padding: 11px; border-radius: calc(var(--r) + 11px); box-shadow: 0 0 0 2px var(--rim), 0 0 0 3px var(--rim-edge); height: 100%; max-width: 100%; }
  .screen { height: calc(100% - 22px); max-width: calc(100vw - 70px); }
  /* The screen takes whichever is smaller, the free height or the width, and the bezel wraps it evenly on every side. */
  @supports (height: 1cqh) {
    .phone { height: auto; }
    .screen { height: min(calc(100cqh - 22px), calc((100cqw - 30px) * 956 / 440)); max-width: none; }
  }
  .header__link { display: none; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); min-height: calc(100svh - var(--header-h)); padding: 28px var(--margin) 24px; align-items: start; }
  .hero__copy { gap: 14px; max-width: none; }
  .hero__media { container-type: size; height: 100%; min-height: min(60svh, 420px); max-height: 72svh; padding: 20px 0 0; place-items: end center; }
  .hero__media::before { inset: -40% -60% 0; background: radial-gradient(ellipse 50% 45% at 50% 60%, var(--lift) 0%, rgba(58, 26, 63, 0) 100%); }
  .pitch { grid-template-columns: 1fr; padding: 56px var(--margin) 32px; gap: 20px; }
  .hero__text { font-size: 16px; }
  .hero__word { max-width: none; }
  .hero__quote { font-size: 16px; }
  .pitch__text { font-size: 17px; }
  .members { padding: 48px var(--margin) 40px; gap: 28px; }
  .members__cols { grid-template-columns: 1fr; gap: 32px; }
  .fact { padding: 14px 0; }
  .fact__key { font-size: 17px; }
  .steps { padding: 16px var(--margin) 48px; gap: 28px; }
  .steps__list { grid-template-columns: 1fr; }
  .step { padding: 18px 0 22px; grid-template-columns: 40px minmax(0, 1fr); gap: 6px 12px; }
  .step__text { grid-column: 2; }
  .step__name { font-size: 20px; }
  .story { grid-template-columns: 1fr; gap: 28px; padding: 16px var(--margin) 64px; }
  .story__quote { font-size: 22px; max-width: none; }
  .closing { padding: 80px var(--margin) 64px; }
  /* Download on top, Partners and Contact side by side beneath it. */
  .closing__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
  .closing__actions .pill:first-child { grid-column: 1 / -1; }
  .closing__actions .pill:nth-child(2):last-child { grid-column: 1 / -1; }
  .closing__actions .pill { padding-left: 16px; padding-right: 16px; }
  .dialog[open] { align-items: end; }
  .dialog__card { width: 100vw; border-radius: 28px 28px 0 0; border-bottom: 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
@media (max-width: 767px) and (max-height: 700px) { :root { --phone-h: 50svh; } }
@media (max-height: 560px) {
  .beats__stage { position: static; height: auto; padding-top: 24px; padding-bottom: 24px; }
  .beats__track { display: none; }
  .beats__copy { display: block; }
  .copy { opacity: 1; visibility: visible; margin-bottom: 32px; }
  .beats__media { height: auto; padding: 24px 0; }
}
/* A sideways phone: the media box has no height of its own here, so the screen sizes from the viewport instead. */
@media (max-width: 767px) and (max-height: 560px) { .beats__media { container-type: normal; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .layer, .layer.is-active, .copy, .copy.is-active { transition: none !important; }
  .ov { animation: none !important; }
  .ov { opacity: 0 !important; }
  .layer picture, .layer.is-active picture { opacity: 1; transition: none; }
}

/* No JavaScript: every beat shows its text and its own screen inline. */
.no-js .beats__stage { position: static; height: auto; display: block; padding-top: 48px; }
.no-js .beats__track, .no-js .beats__media { display: none; }
.no-js .beats__copy { display: block; }
.no-js .copy { opacity: 1; visibility: visible; margin-bottom: 48px; }
.no-js .beats__eyebrow { margin-bottom: 24px; }
.no-js .copy__shot { display: block; margin-top: 24px; max-width: 280px; border-radius: 20px; overflow: hidden; }
.copy__shot { display: none; }
