/* =============================================================================
   SOLFALL — the site in the game's UI 2 language ("SOLFALL LIGHT").

   The language itself (tokens, KEY, CARD, TAG, PIP, FIELD, STRIP, motion) is
   the game's own src/ui/light.ts, compiled to js/light.js and injected at
   boot. This file only lays the site out with it: the chrome, the hero, the
   section gates, the pitch sections, the peoples, the signup and Jamie.

   Laws carried over from the game: HOLO (cyan) is what you read, SUN (gold)
   is what you press; motion is transform / opacity / clip only and never
   stepped; pixel art scales by whole numbers.
   ========================================================================== */

/* Everything here is scoped to the SolFall page (body.live-dive, #dive.lt):
   the other pages keep their old look until they get their own pass. */
#dive.lt, #jamie.lt { color: var(--ink); font-family: var(--f-body); font-size: var(--fs-body); line-height: var(--lh-body); -webkit-font-smoothing: auto; }
#dive.lt em, #jamie em { font-style: normal; }
body.ui2 { -webkit-font-smoothing: auto; }

/* ------------------------------------------------------------- CHROME --- */
.brand .brand-new { display: none; }
body.ui2 .brand .brand-old { display: none; }
body.ui2 .brand .brand-new { display: block; width: 192px; image-rendering: auto; filter: drop-shadow(0 0 18px rgba(92, 225, 255, 0.25)); }
@media (max-width: 1100px) { body.ui2 .brand .brand-new { width: 160px; } }
@media (max-width: 760px) { body.ui2 .brand .brand-new { width: 120px; } }



.depth { font-family: var(--f-label); font-weight: 600; font-size: 13px; letter-spacing: 0.16em; color: var(--ink-3); line-height: 1.2; }
.depth .lt-num { font-size: 15px; color: var(--ink-3); }
.depth i { font-family: var(--f-label); font-weight: 700; font-size: 19px; letter-spacing: 0.12em; color: var(--holo); text-shadow: 0 0 12px var(--holo-dim); }
.depth i.swap { animation: rise 420ms var(--ease-out) both; }


/* --------------------------------------------------------------- DIVE --- */
#dive { padding: 0 40px 0; }
#dive h1, #dive h2 { text-shadow: none; }
.sf-h2 { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-display); line-height: 0.92; letter-spacing: 0.01em;
  text-transform: uppercase; color: var(--ink); margin: 0; -webkit-text-stroke: 0.6px currentColor; paint-order: stroke fill; text-wrap: balance; }
.sf-h2 em { color: var(--holo); text-shadow: 0 0 22px var(--holo-dim); }
.sf-h2 .ch { display: inline-block; white-space: pre; }
.sf-h2.ign .ch { animation: ignite 560ms var(--ease-out) both; animation-delay: calc(var(--i) * 26ms); }
.sf-h2:not(.ign) .ch { opacity: 0; }
.sf-whisper { font-family: var(--f-label); font-weight: 500; font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin: 18px 0 0; }
.sf-kicker { margin: 0; font-family: var(--f-label); font-weight: 600; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; width: max-content; max-width: 100%; }
.sf-lede { font-family: var(--f-body); font-size: clamp(21px, 0.7vw + 15px, 26px); line-height: 1.32; color: var(--ink-2); margin: 0; max-width: 44ch; }

/* ---------------------------------------------------------------- HERO --- */
.sf-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  max-width: 1320px; margin: 0 auto; padding: 110px 0 90px; }
.sf-stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; will-change: opacity; }
.sf-stage.asleep { visibility: hidden; }
.sf-pool { position: absolute; inset: 0;
  background: radial-gradient(38% 52% at 74% 50%, rgba(92, 225, 255, 0.10), transparent 70%),
              radial-gradient(30% 34% at 70% 78%, rgba(255, 150, 70, 0.08), transparent 70%); }
.sf-layer { position: absolute; inset: 0; }
.sf-far { z-index: 0; } .sf-near { z-index: 1; } .sf-fx { z-index: 6; }
.sf-orbit { position: absolute; inset: 0; }                   /* no z-index: its ships interleave with Jamie */

.sf-jamie { --js: 2; position: absolute; z-index: 2; right: max(2vw, calc((100vw - 1440px) / 2 + 60px)); bottom: 4vh;
  width: calc(216px * var(--js)); height: calc(384px * var(--js)); transform-origin: 50% 60%; will-change: transform; }
.sf-jamie img { width: 100%; height: 100%; image-rendering: pixelated; display: block;
  filter: drop-shadow(var(--js-px, 2px) 0 0 rgba(92, 225, 255, 0.55)) drop-shadow(calc(var(--js-px, 2px) * -1) 0 0 rgba(255, 140, 60, 0.35)) drop-shadow(0 0 40px rgba(92, 225, 255, 0.18)); }
body:not(.arrived) .sf-jamie { opacity: 0; }
body.arrived .sf-jamie img { animation: jamie-in 1100ms var(--ease-out) both 120ms; }
@keyframes jamie-in { from { opacity: 0; transform: translateY(40px) scale(0.96); } to { opacity: 1; transform: none; } }

.sf-rock { position: absolute; left: 0; top: 0; image-rendering: pixelated; will-change: transform; }
.sf-ship { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.sf-ship img { position: relative; width: 100%; height: 100%; image-rendering: pixelated; display: block; }
/* pixel art effects: tiny canvases drawn in whole blocks, never smoothed, no soft glow */
.sf-flame { position: absolute; image-rendering: pixelated; pointer-events: none; }
.sf-shield { position: absolute; image-rendering: pixelated; opacity: 0; pointer-events: none; }
.sf-shield.on { animation: shield 420ms linear both; }
@keyframes shield { 0% { opacity: 1; } 30% { opacity: 0.35; } 45% { opacity: 1; } 100% { opacity: 0; } }
.sf-bolt { position: absolute; left: 0; top: 0; width: 3px; height: 9px; margin: -4px 0 0 -1px; background: #fff3f4; box-shadow: 0 0 0 1px #ff4a5a; will-change: transform; }
.sf-muzzle { position: absolute; left: 0; top: 0; width: 3px; height: 3px; margin: -1px 0 0 -1px; background: #fff;
  box-shadow: 3px 0 0 #ffc247, -3px 0 0 #ffc247, 0 3px 0 #ffc247, 0 -3px 0 #ffc247; }
.sf-spark { position: absolute; left: 0; top: 0; width: 3px; height: 3px; background: #c6f4ff; animation: spark 440ms linear both; }
@keyframes spark { 0% { transform: translate(var(--x0), var(--y0)); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--x1), var(--y1)); opacity: 0; } }

.sf-copy { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 22px; max-width: 640px; will-change: transform, opacity; }
.sf-logo { position: relative; margin: 6px 0 0; line-height: 0; width: max-content; max-width: 100%; overflow: hidden; }
.sf-logo img { width: 768px; max-width: 100%; height: auto; image-rendering: pixelated; display: block;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.55)); }
@media (max-width: 1400px) { .sf-logo img { width: 576px; } }
@media (max-width: 700px) { .sf-logo img { width: 384px; } }
@media (max-width: 420px) { .sf-logo img { image-rendering: auto; } }
.sf-sheen { position: absolute; inset: -10% auto -10% 0; width: 30%; pointer-events: none; mix-blend-mode: screen; transform: translateX(-140%) skewX(-16deg);
  background: linear-gradient(90deg, transparent, rgba(198, 244, 255, 0.35) 45%, rgba(255, 231, 173, 0.3) 55%, transparent); }
body.arrived .sf-sheen { animation: sheen 5.5s var(--ease-out) 900ms infinite; }
@keyframes sheen { 0% { transform: translateX(-140%) skewX(-16deg); } 22%, 100% { transform: translateX(420%) skewX(-16deg); } }
body:not(.arrived) .sf-logo img { clip-path: inset(0 100% 0 0); }
body.arrived .sf-logo img { animation: logo-in 900ms var(--ease-out) both 150ms; }
@keyframes logo-in { from { clip-path: inset(0 100% 0 0); opacity: 0.3; } to { clip-path: inset(0 0 0 0); opacity: 1; } }

.sf-slogan { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(40px, 3.6vw + 16px, 78px); line-height: 0.92;
  text-transform: uppercase; color: var(--ink); -webkit-text-stroke: 0.6px currentColor; paint-order: stroke fill; }
.sf-slogan .b { color: var(--sun); text-shadow: 0 0 26px rgba(255, 194, 71, 0.45); }
.sf-slogan .ch { display: inline-block; white-space: pre; opacity: 0; }
body.arrived .sf-slogan .ch { animation: ignite 620ms var(--ease-out) both; animation-delay: calc(700ms + var(--i) * 34ms); }
body:not(.arrived) .sf-copy > :not(.sf-logo):not(.sf-slogan) { opacity: 0; }
body.arrived .sf-copy > .sf-kicker { animation: rise 520ms var(--ease-out) both 450ms; }
body.arrived .sf-copy > .sf-lede { animation: rise 600ms var(--ease-out) both 1250ms; }
body.arrived .sf-copy > .sf-keys { animation: pop 520ms var(--ease-out) both 1500ms; }
.sf-keys { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.sf-keys .lt-key { text-decoration: none; }

.sf-cue { position: absolute; z-index: 3; left: 0; bottom: 34px; display: flex; align-items: center; gap: 12px;
  font-family: var(--f-label); font-weight: 600; font-size: 14px; letter-spacing: 0.2em; color: var(--ink-3); }
.sf-cue i { width: 3px; height: 34px; background: rgba(255, 255, 255, 0.1); position: relative; overflow: hidden; }
.sf-cue i::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--holo); box-shadow: 0 0 8px var(--holo);
  animation: cue 1.6s var(--ease-out) infinite; }
@keyframes cue { from { transform: translateY(-14px); } to { transform: translateY(36px); } }

/* -------------------------------------------------------------- GATES ---- */
/* A section's name, in the gap before it. It lights as it crosses the middle
   of the screen; the sky jumps with it. Never laid over words. */
.sf-gate { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 16vh 0 9vh; display: flex; align-items: center; gap: 18px;
  font-family: var(--f-label); font-weight: 700; letter-spacing: 0.16em; color: var(--ink-3); pointer-events: none; }
.sf-gate::before, .sf-gate::after { content: ''; height: 6px; flex: 1 1 0; transform: scaleX(0.15); opacity: 0.35;
  background: repeating-linear-gradient(to right, var(--holo) 0 6px, transparent 6px 9px); transition: transform 900ms var(--ease-out), opacity 900ms; }
.sf-gate::before { flex: 0 0 56px; transform-origin: right; }
.sf-gate::after { transform-origin: left; background: linear-gradient(90deg, var(--holo), transparent);
  -webkit-mask: repeating-linear-gradient(to right, #000 0 6px, transparent 6px 9px); mask: repeating-linear-gradient(to right, #000 0 6px, transparent 6px 9px); }
.sf-gate b { font-family: var(--f-num); font-weight: 800; font-size: 26px; color: var(--ink-3); letter-spacing: 0.04em; transition: color 400ms; }
.sf-gate span { font-size: clamp(22px, 1.2vw + 14px, 32px); opacity: 0.45; transition: opacity 400ms, color 400ms; }
.sf-gate.on::before, .sf-gate.on::after { transform: none; opacity: 1; }
.sf-gate.on b { color: var(--holo); text-shadow: 0 0 14px var(--holo-dim); }
.sf-gate.on span { opacity: 1; color: var(--ink); }
.sf-gate.on span .ch { display: inline-block; white-space: pre; animation: ignite 520ms var(--ease-out) both; animation-delay: calc(var(--i) * 30ms); }

/* ------------------------------------------------------------- PITCHES --- */
.sf-pitch { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; min-height: 70vh; display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
.sf-pitch.sf-solo { min-height: 0; padding-bottom: 6vh; }
.sf-head { position: sticky; top: 120px; }
.sf-say > p { margin: 0 0 28px; font-size: clamp(21px, 0.6vw + 16px, 25px); line-height: 1.36; color: var(--ink-2); max-width: 38ch; }
.sf-say > p::first-line { color: var(--ink); }
.sf-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: relative; }
.sf-facts.sf-four { grid-template-columns: repeat(2, 1fr); }
.sf-facts .lt-card { --bw: 3px; padding: 20px 18px 22px; }
.sf-facts .lt-stack { display: flex; flex-direction: column; gap: 8px; }
.sf-facts b { font-family: var(--f-title); font-weight: 700; font-size: 22px; letter-spacing: 0.1em; color: var(--ink); line-height: 1.1; }
.sf-facts span { font-family: var(--f-body); font-size: 19px; line-height: 1.25; color: var(--ink-2); }
.sf-ic { display: block; width: 32px; height: 32px; background: var(--lamp); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--lamp) 60%, transparent)); margin-bottom: 4px; }
.sf-facts .lt-card:not(.lt-lit) { opacity: 0; }
/* a card that is lit keeps a slow breath of its own light, so a finished section is still alive */
.sf-facts .lt-card.lt-lit .sf-ic { animation: ic-breathe 3.2s ease-in-out infinite; animation-delay: calc(var(--n, 0) * 0.5s); }
@keyframes ic-breathe { 50% { opacity: 0.55; transform: translateY(-2px); } }

/* the supply chain: a light runs card to card */
.sf-chain::before { content: ''; position: absolute; left: 8%; right: 8%; top: 50%; height: 6px; margin-top: -3px; z-index: 0;
  background: repeating-linear-gradient(to right, rgba(255, 194, 71, 0.22) 0 6px, transparent 6px 9px); }
.sf-chain > .sf-comet { position: absolute; left: 8%; top: 50%; width: 84%; height: 6px; margin-top: -3px; z-index: 0; overflow: hidden; pointer-events: none; container-type: inline-size;
  -webkit-mask: repeating-linear-gradient(to right, #000 0 6px, transparent 6px 9px); mask: repeating-linear-gradient(to right, #000 0 6px, transparent 6px 9px); }
.sf-chain > .sf-comet::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 120px;
  background: linear-gradient(90deg, transparent, var(--sun) 70%, #fff); animation: rail-comet 2.2s linear infinite; }

/* the one-map chip: a little galaxy everyone is on */
.sf-map { display: block; width: 336px; height: 224px; margin-top: 34px; image-rendering: pixelated; opacity: 0.95; }

/* --------------------------------------------------------------- BEAT ---- */
.sf-beat { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; min-height: 80vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 22px; pointer-events: none; }
.sf-beat .sf-big { font-size: clamp(48px, 5vw + 20px, 112px); }
.sf-beat em { color: var(--bad); text-shadow: 0 0 26px rgba(255, 107, 122, 0.45); }
#lossBeat .sf-hud { position: relative; z-index: 7; gap: 0; clip-path: var(--stair-sm); container-type: normal; width: max-content; }
.sf-hud b { font-size: 22px; color: var(--holo); margin-left: 8px; }
#lossBeat.firing .sf-hud { --frame: var(--holo); }
.sf-beat.killed .sf-hud b { color: var(--bad); }
.sf-beat .hudline { font-family: var(--f-label); font-weight: 600; font-size: 15px; letter-spacing: 0.16em; color: var(--holo); margin: 0; min-height: 1.4em;
  text-shadow: 0 0 14px var(--holo-dim); position: relative; z-index: 7; }
.sf-beat.killed .hudline { color: var(--sun-2); }
.sf-beat > * { position: relative; z-index: 7; }

/* ------------------------------------------------------------- PEOPLES --- */
#dive .power { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; min-height: 92vh; display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center; padding: 0; }
#dive .power .halo { position: absolute; inset: 10% -10% 10% 30%; pointer-events: none; opacity: 0; transition: opacity 900ms;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--fc) 16%, transparent), transparent); }
#dive .power.seen .halo { opacity: 1; }
#dive .power .words { position: relative; max-width: 520px; padding: 0; border: 0; }
#dive .power .words::before { display: none; }
#dive .power .banner { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 9px; clip-path: var(--stair-sm);
  font-family: var(--f-label); font-weight: 600; font-size: 15px; letter-spacing: 0.16em; color: var(--fc);
  background: color-mix(in srgb, var(--fc) 50%, #0a1019); margin: 0 0 20px; }
#dive .power .banner::before { content: ''; position: absolute; inset: 3px; z-index: -1; clip-path: var(--stair-sm); background: var(--dither), color-mix(in srgb, var(--fc) 12%, rgba(8, 13, 22, 0.94)); }
#dive .power .name { font-family: var(--f-display); font-weight: 800; font-size: clamp(56px, 5vw + 20px, 120px); line-height: 0.88; letter-spacing: 0.01em;
  color: var(--fc); text-shadow: 0 0 34px color-mix(in srgb, var(--fc) 40%, transparent); margin: 0 0 22px; -webkit-text-stroke: 0.6px currentColor; paint-order: stroke fill; }
#dive .power .name::after { display: none; }
#dive .power .line { font-family: var(--f-body); font-size: clamp(21px, 0.6vw + 16px, 25px); line-height: 1.36; color: var(--ink-2); margin: 0; max-width: 34ch; }
#dive .power .stage3d { position: relative; justify-self: center; display: flex; align-items: flex-end; justify-content: center; }
#dive .power .stage3d img { --ps: 5; width: calc(var(--w) * var(--ps) * 1px); height: calc(var(--h) * var(--ps) * 1px); image-rendering: pixelated; display: block; }
/* the glow lives on the wrapper: on the image, the build's clip cut it into a hard-edged box */
#dive .power .stage3d { filter: drop-shadow(0 0 40px color-mix(in srgb, var(--fc) 22%, transparent)); }
#dive .power .stage3d::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: -10px; height: 18px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--fc) 30%, transparent), transparent); }
/* THE ARRIVAL: the floor lights, the pair builds up from it behind a scan
   line in the people's colour, a burst of their pixel weather (js/peoples.js),
   then they idle with a slow float */
#dive .power .stage3d { will-change: transform; }
#dive .power .stage3d .pf { position: absolute; left: 4%; right: 4%; bottom: -6px; height: 6px; transform: scaleX(0); opacity: 0;
  background: repeating-linear-gradient(to right, var(--fc) 0 6px, transparent 6px 9px); }
#dive .power .stage3d .sl { --ps: 5; position: absolute; left: -4%; right: -4%; bottom: 0; height: 6px; background: #fff; opacity: 0; box-shadow: 0 3px 0 var(--fc), 0 -3px 0 var(--fc); }
#dive .power .stage3d img { clip-path: inset(100% 0 0 0); }
#dive .power.seen .stage3d .pf { animation: pf-on 600ms var(--ease-out) both 100ms; }
#dive .power.seen .stage3d img { animation: pair-build 1000ms linear both 500ms, pair-float 6s ease-in-out 1600ms infinite; }
#dive .power.seen .stage3d .sl { animation: pair-scan 1000ms linear both 500ms; }
@keyframes pf-on { from { transform: scaleX(0); opacity: 1; } to { transform: scaleX(1); opacity: 0.8; } }
@keyframes pair-build { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pair-scan { 0% { opacity: 1; transform: translateY(0); } 94% { opacity: 1; } 100% { opacity: 0; transform: translateY(calc(var(--h) * var(--ps) * -1px)); } }
@keyframes pair-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
#dive .power .peoplefx { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; z-index: 0; }
#dive .power .ghostword { position: absolute; left: 50%; top: 50%; z-index: 0; pointer-events: none; margin-left: -50vw; width: 100vw; height: auto;
  image-rendering: pixelated; opacity: 0; transition: opacity 900ms; will-change: transform; }
#dive .power.seen .ghostword { opacity: 1; }
#dive .power > .words, #dive .power > .stage3d { z-index: 1; }
#dive .power .banner, #dive .power .line { opacity: 0; }
#dive .power.seen .banner { animation: rise 500ms var(--ease-out) both; }
#dive .power.seen .line { animation: rise 600ms var(--ease-out) both 380ms; }
#dive .power .name .ch { display: inline-block; opacity: 0; }
#dive .power.seen .name .ch { animation: ignite 600ms var(--ease-out) both; animation-delay: calc(160ms + var(--i) * 40ms); }
/* the Swarm is not a people: centred, no figures, its art is the migration */
#dive .power.swarm { grid-template-columns: 1fr; text-align: center; justify-items: center; }
#dive .power.swarm .words { max-width: 620px; }
#dive .power.swarm .line { margin: 0 auto; }
#dive .power.swarm .halo { inset: 10% 20%; }
@media (max-width: 1100px) { #dive .power .stage3d img, #dive .power .stage3d .sl { --ps: 4; } }

/* ------------------------------------------------------------- SIGNAL ---- */
.sf-signal { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 4vh 0 200px; }
.sf-signup { width: min(760px, 100%); --bw: 3px; padding: 44px 48px 40px; }
.sf-signup .lt-stack { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.sf-signup .sf-big { font-size: clamp(48px, 4.6vw + 18px, 104px); }
.sf-signup .sf-h2 em { color: var(--sun); text-shadow: 0 0 26px rgba(255, 194, 71, 0.45); }
.sf-signup .sf-lede { max-width: 40ch; }
#signup { display: flex; gap: 18px; align-items: flex-end; width: 100%; margin: 8px 0 0; }
#signup .sf-field { flex: 1 1 auto; }
#signup .sf-field input { background: transparent; border: 0; box-shadow: 0 3px 0 0 rgba(255, 255, 255, 0.16); width: 100%; height: auto; padding: 6px 2px 10px;
  font-family: var(--f-body); font-size: 28px; color: var(--ink); caret-color: var(--sun); outline: none; }
#signup .sf-field input:focus { box-shadow: 0 3px 0 0 var(--sun), 0 14px 28px -14px var(--sun); }
#signup .lt-key { flex: none; }
.sf-signup .formnote { font-family: var(--f-label); font-weight: 600; font-size: 15px; letter-spacing: 0.14em; color: var(--ink-3); margin: 0; min-height: 1.3em; }
.sf-signup .formnote.ok { color: var(--ok); } .sf-signup .formnote.bad { color: var(--bad); }
.sf-signup:not(.lt-lit) { opacity: 0; }

/* ---------------------------------------------------------------- JAMIE -- */
/* The projection over the corner: the game's HoloAvatar, and under her a
   light card that asks for one thing. */
#jamie { --jw: min(380px, calc(100vw - 32px)); position: fixed; z-index: 60; right: 28px; bottom: 24px; width: var(--jw); display: flex; flex-direction: column;
  pointer-events: none; }
/* THE WINDOW SPAWNS HER: the card lights, an emitter line runs along its top
   edge, a beam rises out of it, and she builds up inside the beam from the
   bottom, behind a bright scan line. */
#jamie .jm-proj { position: relative; width: 100%; height: var(--jh, 420px); margin-bottom: -6px; pointer-events: none; }
#jamie .jm-holo { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); }
#jamie .jm-beam { position: absolute; left: 8%; right: 8%; bottom: 0; height: 100%; transform-origin: 50% 100%; transform: scaleY(0); opacity: 0;
  background: linear-gradient(to top, rgba(92, 225, 255, 0.26), rgba(92, 225, 255, 0.08) 55%, transparent);
  clip-path: polygon(14% 100%, 86% 100%, 100% 0, 0 0);
  -webkit-mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
#jamie .jm-emit { position: absolute; left: 6%; right: 6%; bottom: -2px; height: 3px; background: var(--holo-2); transform: scaleX(0); opacity: 0;
  box-shadow: 0 0 0 1px var(--holo); }
#jamie .jm-scan { position: absolute; left: 4%; right: 4%; bottom: 0; height: 3px; background: #fff; opacity: 0; transform: translateY(0);
  -webkit-mask: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
#jamie.on .jm-emit { animation: jm-emit 1400ms var(--ease-out) both 650ms; }
#jamie.on .jm-beam { animation: jm-beam 1100ms var(--ease-out) both 950ms; }
#jamie.on .jm-holo { animation: jm-build 900ms linear both 1150ms; }
#jamie.on .jm-scan { animation: jm-scan 900ms linear both 1150ms; }
@keyframes jm-emit { 0% { transform: scaleX(0); opacity: 1; } 30% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0.55; } }
@keyframes jm-beam { 0% { transform: scaleY(0); opacity: 1; } 45% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0.45; } }
@keyframes jm-build { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes jm-scan { 0% { opacity: 1; transform: translateY(0); } 92% { opacity: 1; } 100% { opacity: 0; transform: translateY(calc(var(--jh, 420px) * -1)); } }
/* the projector's own running sweep and flicker are full-width rectangles: fade their sides so they have no hard edges */
#jamie .holo-av > .holo-av-sweep, #jamie .holo-av > .holo-av-flick {
  -webkit-mask: radial-gradient(48% 50% at 50% 50%, #000 35%, transparent 100%); mask: radial-gradient(48% 50% at 50% 50%, #000 35%, transparent 100%); }
#jamie .lt-card { width: 100%; pointer-events: auto; --bw: 3px; padding: 20px 22px 18px; }
#jamie .lt-card:not(.lt-lit) { opacity: 0; }
#jamie .lt-stack { display: flex; flex-direction: column; gap: 12px; }
#jamie .jm-ttl { font-family: var(--f-title); font-weight: 700; font-size: 26px; letter-spacing: 0.06em; line-height: 1; color: var(--ink); text-transform: uppercase; margin: 0; }
#jamie .jm-ttl em { color: var(--holo); }
#jamie .jm-say { font-family: var(--f-body); font-size: 19px; line-height: 1.28; color: var(--ink-2); margin: 0; }
#jamie form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
#jamie input { width: 100%; background: transparent; border: 0; outline: none; padding: 4px 2px 8px; font-family: var(--f-body); font-size: 22px; color: var(--ink);
  caret-color: var(--sun); box-shadow: 0 3px 0 0 rgba(255, 255, 255, 0.16); }
#jamie input:focus { box-shadow: 0 3px 0 0 var(--holo), 0 14px 28px -14px var(--holo); }
#jamie .jm-row { display: flex; gap: 10px; align-items: center; }
#jamie .jm-row .lt-key.lt-sun { flex: 1 1 auto; }
#jamie .jm-note { font-family: var(--f-label); font-weight: 600; font-size: 13px; letter-spacing: 0.14em; color: var(--ink-3); min-height: 1.2em; margin: 0; }
#jamie .jm-note.bad { color: var(--bad); } #jamie .jm-note.ok { color: var(--ok); }
#jamie.done .jm-ttl em { color: var(--ok); }
#jamie.off { animation: jm-out 420ms var(--ease-out) both; }
@keyframes jm-out { to { opacity: 0; transform: translateY(30px); } }

/* -------------------------------------------------------------- PHONE ---- */
@media (max-width: 980px) {
  #dive { padding: 0 16px; }
  .sf-hero { padding: 96px 0 80px; justify-content: flex-start; }
  .sf-copy { gap: 18px; }
  .sf-jamie { left: 0; top: 0; right: auto; bottom: auto; }
  .sf-jslot { display: block; height: var(--slot-h, 480px); margin-top: 6px; }
  .sf-pitch { grid-template-columns: 1fr; gap: 26px; min-height: 0; }
  .sf-head { position: static; }
  .sf-facts { grid-template-columns: 1fr; }
  .sf-facts.sf-four { grid-template-columns: 1fr 1fr; }
  .sf-chain::before, .sf-chain > .sf-comet { left: 50%; right: auto; top: 6%; bottom: 6%; width: 6px; height: auto; margin: 0 0 0 -3px;
    background: repeating-linear-gradient(to bottom, rgba(255, 194, 71, 0.22) 0 6px, transparent 6px 9px); }
  .sf-chain > .sf-comet { display: none; }
  .sf-map { width: 252px; height: 168px; }
  .sf-gate { padding: 10vh 0 5vh; }
  #dive .power { grid-template-columns: 1fr; min-height: 0; padding: 8vh 0; gap: 26px; }
  #dive .power .stage3d { order: -1; }
  #dive .power .stage3d img, #dive .power .stage3d .sl { --ps: 3; }
  .sf-signup { padding: 28px 20px 24px; }
  #signup { flex-direction: column; align-items: stretch; }
  #jamie { right: 16px; bottom: 16px; }
}
@media (max-width: 760px) { .sf-cue { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .sf-slogan .ch, .sf-h2 .ch, .sf-gate span .ch, #dive .power .name .ch { opacity: 1 !important; animation: none !important; }
  .sf-chain > .sf-comet, .sf-sheen, .sf-cue i::after { animation: none !important; }
  #dive .power .stage3d img { clip-path: none !important; animation: none !important; }
}

/* ---------------------------------------------- old-sheet neutralisers ---
   site.css still styles bare <button>, <input type=email>, <form> and the old
   .power parts. These undo exactly what leaks into the new surfaces. */
.lt .lt-key:hover:not(.lt-pressing):not(.lt-down) { transform: none; }
.lt .lt-key:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
#signup input[type=email], #jamie input[type=email] { flex: none; min-width: 0; border: 0; border-radius: 0; }
#dive .power .halo { translate: none; width: auto; aspect-ratio: auto; filter: none; border-radius: 0; right: auto; top: auto; }
#dive .power .words { display: block; border-left: 0; padding-left: 0; }
#dive .power .banner { width: max-content; max-width: 100%; }
/* "2D" in the pixel display face reads as "20": the kicker speaks in the reading face */
.sf-kicker span { font-family: var(--f-body); font-weight: 400; font-size: 18px; letter-spacing: 0.08em; }


@media (max-width: 760px) {
  .sf-kicker span { font-size: 15px; letter-spacing: 0.04em; }
  /* a pool of dark behind the words, so the belt never fights the copy on a small screen */
  .sf-copy::before { content: ''; position: absolute; inset: -40px -16px -30px -16px; z-index: -1; pointer-events: none;
    background: radial-gradient(70% 60% at 40% 50%, rgba(3, 5, 12, 0.7), rgba(3, 5, 12, 0.4) 60%, transparent 100%); }
  .sf-copy:has(.sf-jslot)::before { bottom: calc(var(--slot-h, 480px) + 10px); }
}

/* a word of lit letters never breaks across lines */
.wd { display: inline-block; white-space: nowrap; }

/* =============================================================== PHONES ===
   The mobile pass (2026-10-23), audited at 360, 390 and 430 wide: every tap
   target at least 44px, no reading text under 14px, Jamie folds away. */
#jamie .jm-open { display: none; }
@media (min-width: 981px) { .sf-jslot { display: none; } }
@media (max-width: 760px) {
  body.ui2 .brand { min-height: 44px; }
  .sf-whisper { font-size: 15px; }
  .sf-signup .lt-label, .sf-signup .formnote { font-size: 14px; }
  /* Jamie, compact: a smaller projection, no paragraph, keys a thumb can hit */
  #jamie .lt-card { padding: 14px 16px 14px; }
  #jamie .jm-ttl { font-size: 22px; }
  #jamie .lt-key { min-height: 44px !important; font-size: 14px; }
  #jamie input { min-height: 44px; font-size: 20px; }
  #jamie .jm-note { font-size: 14px; }
  /* folded: one slim bar at the foot of the screen */
  #jamie.mini .jm-proj, #jamie.mini form, #jamie.mini .jm-note { display: none; }
  #jamie.mini .lt-stack { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  #jamie.mini .jm-ttl { font-size: 18px; }
  #jamie.mini .jm-open { display: inline-flex; flex: none; }
  #jamie.mini .lt-card { padding: 8px 10px 8px 16px; }
}

/* ================================================================ FRAMES ===
   NO EDGE BARS ANYWHERE (owner, 2026-10-23: "I hate these underline highlights
   above or below elements"). Every plate, tab, tag and key on the pages in the
   new language wears one full 3px frame that follows its stair cut, or none.
   The frame is the frame colour behind a fill cut by the same stair 3px in. */
.sf-framed, body.ui2 .switch a, .sf-sound, .lt .lt-tag, #lossBeat .sf-hud { position: relative; isolation: isolate; background: var(--frame, color-mix(in srgb, var(--holo) 30%, #0a1019)); clip-path: var(--stair-sm); }
.sf-framed::before, body.ui2 .switch a::before, .sf-sound::before, .lt .lt-tag::before, #lossBeat .sf-hud::after { content: ''; position: absolute; inset: 3px; z-index: -1; clip-path: var(--stair-sm);
  background: var(--dither), var(--fill, rgba(8, 13, 22, 0.94)); }

/* THE MENU: three framed tabs; the one you are on lights its whole frame, never a line under it */
body.ui2 .switch { height: auto; gap: 8px; padding: 0; background: none; backdrop-filter: none; box-shadow: none; clip-path: none; border: 0; }
body.ui2 .switch .glide { display: none; }
body.ui2 .switch a { --frame: color-mix(in srgb, var(--holo) 22%, #0a1019); min-height: 44px; padding: 0 20px; display: flex; align-items: center;
  font-family: var(--f-label); font-weight: 600; font-size: 17px; letter-spacing: 0.14em; color: var(--ink-3); text-shadow: none; transition: color 180ms; }
body.ui2 .switch a:hover { color: var(--ink); --frame: color-mix(in srgb, var(--holo) 45%, #0a1019); }
body.ui2 .switch a.on, body.ui2 .switch a.on:hover { color: var(--ink); --frame: var(--holo); --fill: color-mix(in srgb, var(--holo) 16%, rgba(8, 13, 22, 0.94)); }
@media (max-width: 760px) { body.ui2 .switch { gap: 6px; } body.ui2 .switch a { flex: 1 1 0; justify-content: center; padding: 0 8px; font-size: 15px; } }

/* THE TAGS: framed in their own light, no lamp on the left edge */
.lt .lt-tag { box-shadow: none; --frame: color-mix(in srgb, var(--lamp) 45%, #0a1019); }
/* THE KEYS keep their face and their depth, but lose the lit strip along the top */
.lt .lt-key::before { display: none; }
/* the combat readout: framed, not ruled */
#lossBeat .sf-hud { border-top: 0; background: var(--frame); --frame: color-mix(in srgb, var(--holo) 30%, #0a1019); }
#lossBeat .sf-hud::after { z-index: -1; }

/* ================================================================= SOUND ===
   One framed plate: a speaker, the word, the state. With the theme playing a
   second row opens inside the same frame and runs the track's credit. */
.sf-sound { display: none; }
body.ui2 .sf-sound { position: fixed; z-index: 12; top: 22px; right: 30px; width: 214px; display: flex; flex-direction: column; --frame: color-mix(in srgb, var(--holo) 24%, #0a1019); }
body.ui2 .sf-sound.on { --frame: var(--holo); --fill: color-mix(in srgb, var(--holo) 10%, rgba(8, 13, 22, 0.94)); }
body.ui2 .sf-sound .soundtoggle { position: static; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px !important; padding: 0 14px; margin: 0;
  background: none; border: 0; box-shadow: none; clip-path: none; transform: none; animation: none; cursor: pointer;
  font-family: var(--f-label); font-weight: 600; font-size: 16px; letter-spacing: 0.14em; color: var(--ink-2); }
body.ui2 .sf-sound .soundtoggle:hover { color: var(--ink); box-shadow: none; transform: none; }
body.ui2 .sf-sound .soundtoggle b { margin-left: auto; font-weight: 700; color: var(--ink-3); background: none; padding: 0; }
body.ui2 .sf-sound.on .soundtoggle b { color: var(--holo); }
body.ui2 .soundtoggle[data-loading="1"] b { color: var(--sun); animation: blink 0.8s ease-in-out infinite; }
.sf-sndic { width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: url(/assets/icons/px/volume-x.svg) center / contain no-repeat; mask: url(/assets/icons/px/volume-x.svg) center / contain no-repeat; }
.sf-sound.on .sf-sndic { color: var(--holo); -webkit-mask-image: url(/assets/icons/px/volume-3.svg); mask-image: url(/assets/icons/px/volume-3.svg); }
body.ui2 .sf-np { display: none; position: static; text-decoration: none; padding: 0 14px 10px; color: var(--ink-2); }
body.ui2 .sf-sound.on .sf-np { display: block; animation: rise 360ms var(--ease-out) both; }
.sf-nplab { display: block; font-family: var(--f-label); font-weight: 600; font-size: 13px; letter-spacing: 0.18em; color: var(--holo); margin-bottom: 2px; }
.sf-nprun { display: block; overflow: hidden; white-space: nowrap; font-family: var(--f-body); font-size: 18px; line-height: 1.3;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.sf-nprun .run { display: inline-flex; animation: np-run 12s linear infinite; }
.sf-nprun .run span { padding-right: 40px; }
@keyframes np-run { to { transform: translateX(-50%); } }
body.ui2 .sf-np:hover { color: var(--ink); }
body.ui2 .sf-np:hover .run { animation-play-state: paused; }
@media (max-width: 980px) {
  body.ui2 .sf-sound { top: 8px; right: 12px; width: auto; min-width: 116px; }
  body.ui2 .sf-sound.on { width: 210px; }
  body.ui2 .sf-sound .sf-sndl { display: none; }
  body.ui2 .sf-sound .soundtoggle { font-size: 15px; padding: 0 12px; gap: 8px; }
  .sf-nplab { font-size: 12px; } .sf-nprun { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .sf-nprun .run { animation: none; } }

/* JAMIE'S CARD: a transmission header, two short sentences, one field */
#jamie .jm-head { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-label); font-weight: 600; font-size: 13px; letter-spacing: 0.2em; color: var(--holo); }
#jamie .jm-head .lt-pip { width: 8px; height: 8px; }
#jamie .jm-say + .jm-say { margin-top: -4px; }
#jamie .lt-stack { gap: 10px; }
#jamie.mini .jm-head, #jamie.mini .jm-say, #jamie.mini .jm-go { display: none; }
#jamie .jm-go .lt-key { text-decoration: none; }
@media (max-width: 760px) { #jamie .jm-head { font-size: 14px; } #jamie .jm-say { font-size: 17px; } }

/* the section readout sits under the sound plate, not behind it */
body.ui2 .depth { top: 82px; }
@media (max-width: 1240px) { body.ui2 .depth { display: none; } }

/* ========================================================== PERFORMANCE ===
   Same look, far fewer GPU layers (2026-10-23 profile: 460 layers, 41 screens
   of layer area, once the page had been scrolled).
   - A card is only promoted to its own layer while the pointer tilts it; at
     rest it is flat (the tilt is 0deg then anyway).
   - One-off animations hand their end state over to plain styles when they
     finish (js/site.js settle), so the layer each one needed is released. */
.lt .lt-card { will-change: auto; transform-style: flat; }
.lt .lt-card:not(:hover) { transform: none; }
.lt .lt-ignite > i { will-change: auto; }
.settled { animation: none !important; }

/* THE HEADER FLOOR, without an edge. The old one was a solid band with a
   30 px fade (a hard solid block on the yards page), and the logo's glow ran
   straight into its edge. Now it fades out over its whole height with an
   eased curve, on every page, so there is no line to see. */
body.ui2::before, body.ui2.deckmode::before, body.ui2.hallmode::before {
  height: 150px;
  background: linear-gradient(180deg,
    rgba(3, 5, 12, 0.94) 0%, rgba(3, 5, 12, 0.9) 22%, rgba(3, 5, 12, 0.78) 40%, rgba(3, 5, 12, 0.58) 56%,
    rgba(3, 5, 12, 0.36) 70%, rgba(3, 5, 12, 0.18) 83%, rgba(3, 5, 12, 0.06) 93%, rgba(3, 5, 12, 0) 100%);
}
@media (max-width: 980px) { body.ui2::before, body.ui2.deckmode::before, body.ui2.hallmode::before { height: 170px; } }
