/* Hallmark · shape: Radar Briefing (pitch that sells joining left, the bundle as a radar right, one viewport) · genre: atmospheric · theme: custom (brand: POSKO 618 green-black field + ZonesLab gold) · job: join · idea: "Join Posko 618 and ZonesLab, Zony and Zenchi come with it" · vibe: "command post at night, gold radar, calm"
 * paper: oklch(17% 0.02 160) · accent: oklch(74% 0.12 80) · display: Chakra Petch · body: Geist · hero: a live event line, a five-word promise, the four-step way in, one join action; the radar of what opens · nav: wordmark left, the Posko link and one sign-in icon right · footer: one quiet line · imagery: the product (a real XAUUSDT.P session with quarter boxes) and the brands' own logos · signature: the radar sweep lighting each blip, click to brief
 * axes: dark/squared-sans/gold · posture: split · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, the sweep is an ambient loop; slow, one per page, gone under reduced motion */
/* answered: radius scale = 10px controls, 16px panels, round blips and icon button; one viewport by brief (owner: no scroll either axis); sign-in is a dialog behind one icon by brief */
/* answered: F5 the two icon buttons are the owner's ask (one sign-in icon, one sound icon), ringed for a 44px touch target; 49 blip names are white-space: nowrap (.name), the role sits on its own line */

@font-face { font-family: "Chakra Petch"; src: url("/landing/chakrapetch-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("/landing/chakrapetch-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/landing/geist.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-ml: 20px; --space-lg: 24px; --space-xl: 40px;
  --space-flex-s: clamp(var(--space-xs), 1.6vh, var(--space-sm)); --space-flex-m: clamp(var(--space-sm), 2.4vh, var(--space-lg)); --space-flex-l: clamp(var(--space-md), 3.4vh, var(--space-xl));
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.125rem; --text-xl: 1.375rem;
  --text-hero: clamp(2.4rem, min(4.6vw + 0.3rem, 9.4vh), 5.2rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 480ms; --sweep: 9s;
  --container: 1440px; --gutter: 64px; --gap-columns: 40px; --top-h: clamp(56px, 9vh, 76px);
  --z-raised: 10; --z-tooltip: 600;
  --color-paper: #0a130f; --color-paper-2: #101c16; --color-paper-3: #17261e;
  --color-ink: #ece8df; --color-ink-2: #b9b5a8; --color-muted: #84907f;
  --color-rule: #25362c;
  --color-accent: #d4a548; --color-accent-hi: #e6bd63; --color-accent-ink: #0a130f; --color-focus: #f3d58c;
  --color-error: #ef8f78; --color-mask: var(--color-ink);
  --color-skin: #f1c9a0; --color-blush: #e8977a; --color-army: #5b7a45; --color-army-2: #3d5a2f; --color-wood: #7b4d27;
  --color-grid: color-mix(in oklab, var(--color-accent) 6%, transparent);
  --color-glow: color-mix(in oklab, var(--color-accent) 16%, transparent);
  --color-wash: color-mix(in oklab, var(--color-accent) 9%, transparent);
  --font-display: "Chakra Petch", ui-sans-serif, system-ui, sans-serif; --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --radius-control: 10px; --radius-panel: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.5; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); -webkit-tap-highlight-color: transparent; }
::selection { background: color-mix(in oklab, var(--color-accent) 30%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
h1, h2 { margin: 0; font-family: var(--font-display); font-synthesis: none; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

/* the field: chart paper grid fading out from the radar, like POSKO's own banner */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--color-grid) 1px, transparent 1px), linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center;
  mask-image: radial-gradient(ellipse 70% 80% at 68% 50%, var(--color-mask) 20%, transparent 75%);
  animation: fade 1.6s var(--ease-out) both;
}

body::after { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 45%), var(--color-wash), transparent 65%); }
.shell { position: relative; z-index: 1; min-height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-width: var(--container); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.top { display: flex; align-items: center; justify-content: space-between; height: var(--top-h); padding-top: env(safe-area-inset-top); animation: fade 0.8s var(--ease-out) both; }
.brand img { width: clamp(118px, 11vw, 154px); height: auto; }
.top-actions { display: flex; align-items: center; gap: var(--space-sm); }
.top-link { font-size: var(--text-sm); color: var(--color-ink-2); text-decoration: none; padding: var(--space-xs) var(--space-sm); transition: color var(--dur-short) var(--ease-out); }
.top-link:hover { color: var(--color-ink); }
/* the only way to the sign-in: one icon */
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--color-rule); border-radius: 50%; background: var(--color-paper-2); color: var(--color-ink); cursor: pointer; transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.icon-btn:hover { border-color: var(--color-accent); background: var(--color-wash); }
.icon-btn:active { transform: scale(0.95); }
.sound-btn .on, .sound-btn.is-on .off { display: none; }
.sound-btn.is-on .on { display: block; }
.sound-btn.is-on { border-color: var(--color-accent); color: var(--color-accent); }
/* sound wanted but not yet allowed (no gesture yet): a slow ring asks for the first tap */
.sound-btn::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--color-accent); opacity: 0; pointer-events: none; }
.sound-btn.is-waiting::after { animation: ping 2.4s var(--ease-out) infinite; }
.foot { display: flex; align-items: center; height: clamp(36px, 5.6vh, 52px); padding-bottom: env(safe-area-inset-bottom); font-size: var(--text-xs); color: var(--color-muted); animation: fade 1.2s 0.6s var(--ease-out) both; }

.stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-columns); align-items: center; min-height: 0; }

/* the pitch: what is on, the promise, the way in, one action */
.pitch { display: grid; gap: var(--space-flex-m); align-content: center; justify-items: start; max-width: 640px; }
.event { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2xs) var(--space-xs); max-width: 100%; padding: var(--space-xs) var(--space-md); border: 1px solid color-mix(in oklab, var(--color-accent) 40%, transparent); border-radius: 999px; background: var(--color-wash); font-size: var(--text-sm); color: var(--color-ink-2); animation: rise 0.9s var(--ease-spring) both; }
.event-name { font-weight: 600; color: var(--color-accent); }
.event-when { color: var(--color-ink); font-variant-numeric: tabular-nums; }
.event-when:empty { display: none; }
.ev-short { display: none; }
@media (max-width: 600px) { .ev-long, .cta-note { display: none; } .ev-short { display: inline; } .event { line-height: 1.4; } }
h1 { font-size: var(--text-hero); font-weight: 700; line-height: 0.98; letter-spacing: -0.015em; }
h1 .ln { display: block; animation: rise 0.9s 0.08s var(--ease-spring) both; }
h1 .ln + .ln { animation-delay: 0.2s; }
.lead { font-size: var(--text-lg); color: var(--color-ink-2); max-width: 36ch; animation: rise 0.9s 0.3s var(--ease-spring) both; }

/* the way in, as a track that fills once */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100%, 560px); margin: 0; padding: 0; list-style: none; }
.steps::before, .steps::after { content: ""; position: absolute; top: 6px; left: 6px; right: calc(25% - 6px); height: 2px; border-radius: 2px; background: var(--color-rule); }
.steps::after { background: var(--color-accent); transform-origin: left center; animation: fill 1.8s 0.6s var(--ease-out) both; }
.steps li { position: relative; font-size: var(--text-sm); line-height: 1.3; color: var(--color-ink-2); animation: lit 0.6s var(--ease-out) both; animation-delay: calc(0.7s + var(--i) * 0.42s); }
.steps button { display: grid; gap: var(--space-xs); justify-items: start; width: 100%; padding: 0 var(--space-xs) var(--space-2xs) 0; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; line-height: inherit; text-align: left; cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.steps button:hover, .steps button.is-on { color: var(--color-ink); }
.steps li:last-child button:hover, .steps li:last-child button.is-on { color: var(--color-accent-hi); }
.mark { transition: transform var(--dur-short) var(--ease-spring); }
.steps button.is-on .mark, .steps button:hover .mark { transform: scale(1.3); }
.step-note { margin-top: calc(var(--space-flex-m) * -0.6); min-height: 1.5em; font-size: var(--text-sm); color: var(--color-ink); }

/* the mission: a cute squad marches over candlestick hurdles to the treasure (owner 2026-11-25: characters, treasure, playful) */
.mission { position: relative; width: min(100%, 560px); height: auto; aspect-ratio: 560 / 150; animation: rise 0.9s 0.6s var(--ease-spring) both; }
.mission svg { width: 100%; height: 100%; overflow: visible; }
.m-ground { stroke: var(--color-rule); stroke-width: 2; stroke-dasharray: 2 6; }
.m-hill { fill: var(--color-paper-2); }
.m-candle .body.up { fill: var(--color-accent); }
.m-candle .body.dn { fill: var(--color-ink-2); }
.m-candle .wick { stroke: var(--color-ink-2); stroke-width: 1.5; }
.m-flag-far { fill: var(--color-accent); }
.m-pole { stroke: var(--color-ink-2); stroke-width: 1.5; }
/* troopers */
.trooper { cursor: pointer; animation: march 11s linear infinite; animation-delay: var(--delay); }
.trooper .hop { animation: hop 11s linear infinite; animation-delay: var(--delay); }
.trooper .leg { transform-box: fill-box; transform-origin: 50% 0; animation: stride 0.36s ease-in-out infinite alternate; }
.trooper .leg + .leg { animation-direction: alternate-reverse; }
.trooper .arm { transform-box: fill-box; transform-origin: 50% 10%; transition: transform 0.25s var(--ease-spring); }
.trooper.salute .arm.r { transform: rotate(-150deg); }
.t-skin { fill: var(--color-skin); }
.t-uniform { fill: var(--color-army); }
.t-helmet { fill: var(--color-army-2); }
.t-star { fill: var(--color-accent); }
.t-eye { fill: var(--color-paper); }
.t-cheek { fill: var(--color-blush); }
.t-boot { fill: var(--color-paper); }
.t-flag { fill: var(--color-accent); }
.t-mouth { fill: none; stroke: var(--color-paper); stroke-width: 1; stroke-linecap: round; }
/* the treasure */
.chest { cursor: pointer; }
.c-wood { fill: var(--color-wood); }
.c-trim { fill: var(--color-accent); }
.c-dark { fill: var(--color-paper); }
.c-lid { transform-box: fill-box; transform-origin: 100% 100%; animation: lid 11s var(--ease-spring) infinite; }
.c-glow { fill: var(--color-accent); opacity: 0; animation: glow 11s ease-out infinite; }
.coin { fill: var(--color-accent); stroke: var(--color-accent-hi); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; animation: coin 11s var(--ease-out) infinite; animation-delay: var(--cd, 0s); }
.loot { opacity: 0; transform-box: fill-box; transform-origin: center bottom; animation: loot 11s var(--ease-spring) infinite; animation-delay: var(--ld, 0s); }
.chest.burst .coin { animation: burst 1.1s var(--ease-out) both; animation-delay: var(--bd, 0s); }
.chest.burst .c-lid { animation: none; transform: rotate(110deg); }
.chest.burst .loot { animation: lootpop 1.4s var(--ease-spring) both; }
.steps li:last-child { color: var(--color-accent); font-weight: 600; }
.mark { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--color-accent); background: var(--color-paper); }
.steps li:last-child .mark { background: var(--color-accent); box-shadow: 0 0 0 4px var(--color-wash); }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); animation: rise 0.9s 0.45s var(--ease-spring) both; }
.cta-note { font-size: var(--text-sm); color: var(--color-muted); }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 var(--space-lg); border-radius: var(--radius-control); font-weight: 600; font-size: var(--text-md); text-decoration: none; white-space: nowrap; cursor: pointer; border: 1px solid transparent; overflow: hidden; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn-primary:hover { background: var(--color-accent-hi); }
.btn-primary:disabled { background: var(--color-paper-3); color: var(--color-ink-2); cursor: progress; transform: none; }
.btn-join { translate: var(--tx, 0) var(--ty, 0); transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out), translate 0.4s var(--ease-spring); height: clamp(48px, 7vh, 58px); padding: 0 var(--space-xl); font-family: var(--font-display); font-size: var(--text-lg); }
/* a slow sheen across the join action: the one thing on the page that asks */
.btn-join::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in oklab, var(--color-ink) 45%, transparent) 50%, transparent 70%); transform: translateX(-120%); animation: sheen 5s 2.4s var(--ease-out) infinite; pointer-events: none; }

/* the radar */
/* the radar sizes itself to the room its box has left (landing.js measures the box), so the page never scrolls */
.radar-wrap { position: relative; display: grid; grid-template-rows: minmax(0, 1fr); min-height: 0; height: 100%; padding-block: var(--space-flex-s); }
.radar-box { --fit-h: 0.76; --fit-w: 0.86; --fit-max: 620; position: relative; min-height: 0; display: grid; justify-items: center; align-items: start; }
.radar { --radar: min(58vh, 38vw, 620px); --b: calc(var(--radar) * 0.13); position: relative; width: var(--radar); aspect-ratio: 1; animation: zoom 1.2s 0.1s var(--ease-spring) both; }
.radar::before { content: ""; position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(circle, var(--color-glow), transparent 62%); pointer-events: none; }
.rings, .blips, .sweep { position: absolute; inset: 0; }
.rings { width: 100%; height: 100%; overflow: visible; transform: translate3d(calc(var(--px, 0) * -6px), calc(var(--py, 0) * -6px), 0); transition: transform 0.6s var(--ease-out); }
.rings circle, .rings path, .rings line { fill: none; vector-effect: non-scaling-stroke; }
.r-glow { stroke: var(--color-glow); stroke-width: 6; }
.r-outer { stroke: color-mix(in oklab, var(--color-accent) 55%, transparent); stroke-width: 1.5; }
.r-ticks { stroke: color-mix(in oklab, var(--color-accent) 45%, transparent); stroke-width: 5; stroke-dasharray: 1 7.93; transform-box: view-box; transform-origin: center; animation: spin 140s linear infinite; }
.r-orbit { stroke: color-mix(in oklab, var(--color-ink) 18%, transparent); stroke-width: 1; stroke-dasharray: 3 5; }
.r-inner { stroke: color-mix(in oklab, var(--color-ink) 10%, transparent); stroke-width: 1; }
.r-cross { stroke: color-mix(in oklab, var(--color-accent) 70%, transparent); stroke-width: 2; }
.links line { stroke: color-mix(in oklab, var(--color-accent) 30%, transparent); stroke-width: 1.25; stroke-dasharray: 2 5; animation: flow 1.4s linear infinite; transition: stroke var(--dur-long) var(--ease-out); }
.radar[data-active="zoneslab"] [data-link="zoneslab"], .radar[data-active="zony"] [data-link="zony"], .radar[data-active="zenchi"] [data-link="zenchi"], .radar[data-active="posko"] .links line { stroke: var(--color-accent); }
.sweep { border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 70%, color-mix(in oklab, var(--color-accent) 26%, transparent) 99.6%, color-mix(in oklab, var(--color-accent) 70%, transparent) 100%); mask-image: radial-gradient(circle, transparent 19%, var(--color-mask) 21%, var(--color-mask) 47%, transparent 49%); animation: spin var(--sweep) linear infinite; pointer-events: none; }

.ripple { position: absolute; width: 16px; height: 16px; margin: calc(var(--space-xs) * -1) 0 0 calc(var(--space-xs) * -1); border-radius: 50%; border: 1.5px solid var(--color-accent); pointer-events: none; animation: ripple 0.9s var(--ease-out) forwards; }
.blips { transform: translate3d(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 10px), 0); transition: transform 0.6s var(--ease-out); }
.blip { position: absolute; left: 50%; top: 50%; width: var(--b); height: var(--b); margin: calc(var(--b) / -2) 0 0 calc(var(--b) / -2); padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transform: rotate(var(--a)) translateX(calc(var(--r) * var(--radar) / 200)) rotate(calc(var(--a) * -1)); }
.blip-hub { --b: calc(var(--radar) * 0.32); }
.disc { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--color-paper-2); box-shadow: 0 0 0 1px var(--color-rule); transition: transform var(--dur-long) var(--ease-spring); }
.disc img { width: 56%; height: 56%; object-fit: contain; animation: pop 0.7s var(--ease-spring) both; animation-delay: calc(0.5s + var(--d) / 12); }
.disc-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.blip-hub .disc { background: radial-gradient(circle, var(--color-paper-3), var(--color-paper) 70%); box-shadow: none; }
.blip-hub .disc img { width: 100%; height: 100%; }
.blip[data-node="zoneslab"] .disc img { width: 46%; height: 46%; }
/* the sweep passes: a ring pings (same period as the sweep, delayed by the blip's bearing) */
.disc::before, .disc::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--color-accent); opacity: 0; pointer-events: none; }
.disc::after { animation: ping var(--sweep) var(--d) linear infinite; }
.blip-hub .disc::after { animation: none; }
.blip.is-active .disc::before { opacity: 1; transition: opacity var(--dur-long) var(--ease-out); }
.blip:hover .disc, .blip:focus-visible .disc { transform: scale(1.08); }
.blip.is-active:not(.blip-hub) .disc { transform: scale(1.04); }
.name { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: var(--color-ink-2); transition: color var(--dur-short) var(--ease-out); }
.blip-hub .name { top: auto; bottom: calc(100% + 4px); } /* above the hub: the card may rise over its lower edge */
.blip.is-active .name, .blip:hover .name { color: var(--color-ink); }
.name { text-align: center; line-height: 1.15; }
.name small { display: block; margin-top: var(--space-3xs); font-family: var(--font-body); font-weight: 400; font-size: 0.6875rem; color: var(--color-muted); }
.blip:focus-visible { outline-offset: 6px; }

/* the briefing card for the selected blip */
.cards { position: absolute; right: 0; bottom: var(--space-flex-s); width: min(350px, 62%); display: grid; z-index: var(--z-raised); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.5s var(--ease-out); }
.card { position: relative; align-self: end; display: grid; gap: var(--space-xs); padding: var(--space-ml) var(--space-lg); background: color-mix(in oklab, var(--color-paper-2) 94%, transparent); border: 1px solid var(--color-rule); border-radius: var(--radius-panel); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-spring), visibility 0s linear var(--dur-long); }
/* scripted: one card at a time over the radar (without a script every card shows, stacked) */
.js .card { grid-area: 1 / 1; }
.js .card:not(.is-active) { opacity: 0; transform: translateY(12px); visibility: hidden; }
.card.is-active { transition-delay: 0s; }
.card h2 { font-size: var(--text-xl); font-weight: 600; }
.card .role { margin-top: calc(var(--space-2xs) * -1); font-size: var(--text-xs); font-weight: 600; color: var(--color-accent); }
.card p { font-size: var(--text-sm); color: var(--color-ink-2); }
.ranks, .crew { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: var(--space-3xs) 0 0; padding: 0; list-style: none; }
.ranks li, .crew li { padding: var(--space-2xs) var(--space-sm); border: 1px solid var(--color-rule); border-radius: 999px; font-size: var(--text-xs); color: var(--color-ink); }
.ranks li:last-child { border-color: var(--color-accent); color: var(--color-accent); }
.card.is-active .ranks li, .card.is-active .crew li { animation: lit 0.6s var(--ease-out) both; animation-delay: calc(var(--i) * 130ms + 150ms); }
.seal { position: absolute; top: 18px; right: 20px; width: 22px; height: auto; opacity: 0.85; }
.qchart { margin: var(--space-3xs) 0 0; }
.qchart svg { width: 100%; max-width: 440px; height: auto; overflow: visible; }
.qchart figcaption { margin-top: var(--space-xs); font-size: var(--text-xs); color: var(--color-muted); }
.qb { fill: color-mix(in oklab, var(--color-accent) 7%, transparent); stroke: color-mix(in oklab, var(--color-accent) 40%, transparent); stroke-width: 0.6; }
.qb.alt { fill: color-mix(in oklab, var(--color-ink) 4%, transparent); stroke: color-mix(in oklab, var(--color-ink) 22%, transparent); }
.ql { fill: var(--color-muted); font: 600 6.5px var(--font-display); }
.wick { stroke: var(--color-ink-2); stroke-width: 0.7; }
.c.up .body { fill: var(--color-accent); }
.c.dn .body { fill: var(--color-ink-2); }
.c.up .wick { stroke: var(--color-accent); }
.to { stroke: var(--color-ink); stroke-width: 0.8; stroke-dasharray: 3 2; }
.tol { fill: var(--color-ink); font: 600 6.5px var(--font-display); }
.card.is-active .c { transform-box: fill-box; transform-origin: 50% 100%; animation: grow 0.5s var(--ease-spring) both; animation-delay: calc(var(--i) * 32ms + 120ms); }
.card.is-active .qb, .card.is-active .ql { animation: fade 0.6s var(--ease-out) both; animation-delay: calc(var(--i) * 190ms + 200ms); }
.card.is-active .to-g { animation: fade 0.5s 1.05s var(--ease-out) both; }
.chat { display: grid; gap: var(--space-xs); margin-top: var(--space-3xs); }
.bubble { padding: var(--space-xs) var(--space-sm); border-radius: 12px; font-size: var(--text-sm); line-height: 1.4; }
.card .bubble.q { justify-self: end; background: var(--color-paper-3); color: var(--color-ink); border-bottom-right-radius: 4px; }
.answer { display: flex; gap: var(--space-xs); align-items: flex-end; }
.answer img { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.card .bubble.a { min-height: 3.2em; border: 1px solid var(--color-rule); color: var(--color-ink); border-bottom-left-radius: 4px; }

/* the sign-in: a popover under the icon on wide screens, a bottom sheet on phones */
.login { position: fixed; inset: auto; top: calc(var(--top-h) + env(safe-area-inset-top)); right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); margin: 0; padding: 0; width: min(380px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - var(--top-h) - 16px); overflow: auto; border: 1px solid var(--color-rule); border-radius: var(--radius-panel); background: var(--color-paper-2); color: var(--color-ink); }
.login[open] { animation: drop 0.32s var(--ease-spring); }
.login::backdrop { background: color-mix(in oklab, var(--color-paper) 55%, transparent); backdrop-filter: blur(3px); }
.login form { display: grid; gap: var(--space-sm); padding: var(--space-lg); }
.login-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.login h2 { font-size: var(--text-xl); font-weight: 600; }
.login-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--color-ink-2); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.login-close svg { width: 18px; height: 18px; fill: currentColor; }
.login-close:hover { background: var(--color-paper-3); color: var(--color-ink); }
.field { display: grid; gap: var(--space-2xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.field input { width: 100%; height: 46px; padding: 0 var(--space-sm); background: var(--color-paper); border: 1px solid var(--color-rule); border-radius: var(--radius-control); color: var(--color-ink); font-size: max(16px, var(--text-md)); transition: border-color var(--dur-short) var(--ease-out); }
.field input:hover { border-color: var(--color-muted); }
.field input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.field input:focus:not(:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: var(--color-error); }
.pw { position: relative; display: block; }
.pw input { padding-right: 84px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); height: 34px; padding: 0 var(--space-sm); background: none; border: 0; border-radius: 8px; color: var(--color-ink-2); font-size: var(--text-xs); cursor: pointer; }
.pw-toggle:hover { color: var(--color-ink); background: var(--color-paper-3); }
.msg { font-size: var(--text-sm); color: var(--color-error); }
.msg:empty { display: none; }
.alt { font-size: var(--text-sm); color: var(--color-muted); }
.alt a { color: var(--color-ink); }
.alt a:hover { color: var(--color-accent-hi); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes zoom { from { opacity: 0; transform: scale(0.9) rotate(-8deg); } }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flow { to { stroke-dashoffset: -14; } }
@keyframes ping { 0% { opacity: 0.9; transform: scale(1); } 14% { opacity: 0; transform: scale(1.45); } 100% { opacity: 0; transform: scale(1.45); } }
@keyframes lit { from { opacity: 0.25; transform: translateY(4px); } }
@keyframes grow { from { transform: scaleY(0); opacity: 0; } }
@keyframes ripple { to { transform: scale(9); opacity: 0; } }
@keyframes march { 0% { transform: translateX(-60px); opacity: 0; } 4% { opacity: 1; } 74% { transform: translateX(384px); } 92% { transform: translateX(384px); opacity: 1; } 100% { transform: translateX(384px); opacity: 0; } }
@keyframes hop { 0%, 20%, 30%, 39%, 49%, 58%, 68%, 100% { transform: translateY(0); } 25% { transform: translateY(-24px); } 44% { transform: translateY(-28px); } 63% { transform: translateY(-20px); } }
@keyframes stride { from { transform: rotate(22deg); } to { transform: rotate(-22deg); } }
@keyframes lid { 0%, 72% { transform: rotate(0); } 76%, 94% { transform: rotate(110deg); } 100% { transform: rotate(0); } }
@keyframes glow { 0%, 74% { opacity: 0; } 78% { opacity: 0.55; } 92% { opacity: 0.25; } 100% { opacity: 0; } }
@keyframes coin { 0%, 75% { opacity: 0; transform: translate(0, 0) scale(0.4); } 79% { opacity: 1; } 88% { opacity: 1; transform: translate(var(--cx), var(--cy)) scale(1); } 96%, 100% { opacity: 0; transform: translate(var(--cx), calc(var(--cy) + 30px)) scale(0.8); } }
@keyframes loot { 0%, 77% { opacity: 0; transform: translateY(14px) scale(0.3); } 82%, 93% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-6px) scale(0.9); } }
@keyframes burst { from { opacity: 1; transform: translate(0, 0) scale(0.5); } 60% { opacity: 1; transform: translate(var(--cx), var(--cy)) scale(1.1); } to { opacity: 0; transform: translate(var(--cx), calc(var(--cy) + 40px)) scale(0.8); } }
@keyframes lootpop { from { opacity: 0; transform: translateY(14px) scale(0.3); } 30%, 80% { opacity: 1; transform: translateY(-4px) scale(1.1); } to { opacity: 1; transform: none; } }
@keyframes fill { from { transform: scaleX(0); } }
@keyframes sheen { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
@keyframes sheet { from { transform: translateY(100%); } }

/* short laptop screens */
@media (max-height: 720px) and (min-width: 861px) {
  .lead { font-size: var(--text-md); }
  .card { padding: var(--space-md) var(--space-ml); gap: var(--space-xs); }
}

/* phones and portrait tablets: pitch on top, the radar takes the room left, the card under it */
@media (max-width: 860px), (max-width: 1100px) and (orientation: portrait) {
  :root { --gutter: clamp(18px, 4vw, 48px); --text-hero: clamp(2.1rem, min(10.5vw, 6.2vh), 4.4rem); }
  .shell { height: 100dvh; min-height: 0; }
  .stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: stretch; gap: var(--space-flex-s); }
  .pitch { max-width: none; gap: var(--space-flex-s); }
  .event { font-size: var(--text-xs); padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-control); }
  .lead { font-size: var(--text-md); }
  .steps { width: 100%; }
  .steps li { font-size: 0.75rem; }
  .cta { width: 100%; display: grid; gap: var(--space-2xs); justify-items: center; }
  .btn-join { width: 100%; }
  .cta-note { font-size: var(--text-xs); }
  .radar-wrap { grid-template-rows: minmax(0, 1fr) auto; gap: var(--space-flex-s); padding-block: 0 var(--space-2xs); }
  .radar-box { --fit-h: 1; --fit-w: 1; --fit-max: 540; justify-items: center; align-items: center; padding-bottom: var(--space-ml); }
  .radar { --radar: min(30vh, 80vw, 360px); --b: calc(var(--radar) * 0.15); }
  .name { font-size: var(--text-xs); top: calc(100% + 5px); }
  .cards { position: relative; right: auto; bottom: auto; width: 100%; transform: none; }
  .card { padding: var(--space-sm) var(--space-md); gap: var(--space-2xs); }
  .card h2 { font-size: var(--text-lg); }
  .qchart svg { max-width: 280px; }
  .top-link { display: none; }
}
@media (max-width: 640px) {
  .login { top: auto; right: 0; bottom: 0; left: 0; width: 100%; max-height: 92dvh; border-bottom: 0; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .login[open] { animation: sheet 0.4s var(--ease-spring); }
  .login form { padding: var(--space-ml) var(--gutter); }
}
/* portrait tablets: the radar and its card side by side, so the radar keeps its size */
@media (min-width: 600px) and (max-width: 860px) and (min-height: 700px), (min-width: 600px) and (max-width: 1100px) and (orientation: portrait) and (min-height: 700px) {
  .radar-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 330px); grid-template-rows: minmax(0, 1fr); gap: var(--space-md); }
  .cards { align-self: center; } /* the radar box stays stretched: its size containment has no height of its own */
}
/* phones short on height: the card keeps its name and line; the steps go before the radar does */
@media (max-width: 860px) and (max-height: 959px), (min-width: 861px) and (max-height: 700px) { .extra { display: none; } }
@media (max-width: 860px) and (max-height: 700px) { .steps { display: none; } }
@media (min-width: 861px) and (max-height: 700px), (max-width: 860px) and (max-height: 779px) { .mission { display: none; } }
@media (max-width: 860px) and (max-height: 900px) { .step-note { display: none; } }
@media (max-width: 860px), (max-width: 1100px) and (orientation: portrait) { .mission { width: 100%; max-height: 12vh; } .step-note { margin-top: calc(var(--space-flex-s) * -0.5); font-size: var(--text-xs); } }
/* too little room for a radar: the four logos sit in a row instead (iPhone SE and other short screens) */
/* a small radar keeps the names, the roles wait for the card (classes set by landing.js from the box size) */
.radar-box.is-small .name small { display: none; }
.radar-box.is-dock .radar { --b: min(52px, var(--dock-b, 52px)); width: 100%; height: 100%; aspect-ratio: auto; }
.radar-box.is-dock .rings, .radar-box.is-dock .sweep, .radar-box.is-dock .radar::before { display: none; }
.radar-box.is-dock .blips { position: absolute; inset: 0 0 var(--space-ml); display: flex; justify-content: space-evenly; align-items: center; transform: none; }
.radar-box.is-dock .blip, .radar-box.is-dock .blip-hub { --b: min(52px, var(--dock-b, 52px)); position: relative; left: auto; top: auto; margin: 0; transform: none; }
.radar-box.is-dock .blip-hub .name { top: calc(100% + 5px); bottom: auto; }
.radar-box.is-dock .name small { display: block; white-space: normal; width: 78px; margin-inline: auto; }
.radar-box.is-off .radar { display: none; }
/* landscape phones: two columns, no card */
@media (max-height: 500px) and (min-width: 600px) {
  :root { --text-hero: clamp(1.8rem, 9vh, 2.6rem); }
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); align-items: center; }
  .steps, .event, .step-note, .mission { display: none; }
  .radar-wrap { height: 100%; }
  .cards { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .sweep, .disc::after, .btn-join::after { display: none; }
  .trooper { animation: none; transform: translateX(384px); } .trooper .hop, .trooper .leg { animation: none; }
  .c-lid { animation: none; transform: rotate(110deg); } .loot { animation: none; opacity: 1; } .coin, .c-glow { animation: none; }
}
