/* Colour comes only from tokens.css (brand pixels + srgb mixes of them). No literals here. */
:root {
  --ink: var(--navy);
  --ink-2: var(--n-90);
  --ink-3: var(--n-80);
  --paper: var(--white);
  --panel: var(--n-4);
  --line: color-mix(in oklch, var(--navy) 12%, transparent);
  --line-2: color-mix(in oklch, var(--navy) 8%, transparent);
  --veil: color-mix(in oklch, var(--white) 82%, transparent);
  --shadow-s: 0 10px 30px color-mix(in oklch, var(--navy) 7%, transparent);
  --shadow-m: 0 16px 40px color-mix(in oklch, var(--navy) 14%, transparent);
  --shadow-l: 0 28px 70px color-mix(in oklch, var(--navy) 20%, transparent);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tap: 44px;
  --f-display: "Clash Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body: "Satoshi", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gut: 20px;
  }
@media (min-width: 640px) { :root { --gut: 32px; } }
@media (min-width: 1024px) { :root { --gut: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr, 140px) + 8px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.5; overflow-x: clip; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 999px; }
.skip:focus { top: 8px; }
.display { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.03em; line-height: 0.98; }
.mono { font-family: var(--f-mono); }
.wrap { max-width: 1100px; margin-inline: auto; }
.eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.lead { margin-top: 16px; max-width: 480px; font-size: 15px; line-height: 24px; color: var(--ink-2); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--veil); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-2); }
.top-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px var(--gut); min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: -0.03em; text-decoration: none; }
.mark { display: block; width: auto; height: 22px; color: var(--navy); flex: none; }
.top-right { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.top-nav { display: none; align-items: center; gap: 4px; margin-right: 12px; }
.top-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.top-nav a:hover { color: var(--ink); }
@media (min-width: 860px) { .top-nav { display: flex; } }
.socials { display: flex; align-items: center; gap: 4px; }
.social { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border-radius: 999px; color: var(--ink); text-decoration: none; transition: background-color 0.2s var(--ease); }
a.social:hover { background: var(--n-8); }
.social.is-inert { color: var(--n-55); cursor: not-allowed; }

/* ---------- contract slot ---------- */
.ca { border-top: 1px solid var(--line-2); background: var(--n-4); }
.ca-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: center; padding: 8px var(--gut) 10px; max-width: 1440px; margin-inline: auto; }
.ca-k { grid-column: 1 / -1; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.ca-v { grid-column: 1; margin: 0; font-family: var(--f-mono); font-weight: 500; font-size: clamp(1rem, 0.55rem + 1.55vw, 1.75rem); line-height: 1.25; letter-spacing: 0; overflow-wrap: anywhere; word-break: break-all; color: var(--ink); }
.ca-v-none { font-family: var(--f-display); letter-spacing: -0.02em; color: var(--n-55); font-size: clamp(1.25rem, 0.8rem + 1.6vw, 1.75rem); }
@media (min-width: 760px) {
  .ca-in { display: flex; align-items: center; gap: 20px; }
  .ca-k { flex: none; }
  .ca-v { flex: 1; min-width: 0; }
  .ca-date { order: 3; flex: none; }
  .ca-copy { order: 4; flex: none; }
}
.ca-copy { grid-column: 2; grid-row: 2; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: var(--tap); min-height: var(--tap); padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; transition: background-color 0.2s var(--ease), transform 0.2s var(--ease); }
.ca-copy:hover { background: var(--n-95); }
.ca-copy:active { transform: scale(0.97); }
.ca-copy.is-done { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.ca-copy.is-inert { background: var(--n-12); color: var(--n-70); cursor: not-allowed; }
.ca-copy.is-inert:hover, .ca-copy.is-inert:active { background: var(--n-12); transform: none; }
.ca-date { grid-column: 1 / -1; font-size: 13px; line-height: 1.3; color: var(--ink-3); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero-copy { position: relative; z-index: 30; display: flex; flex-direction: column; align-items: center; max-width: 760px; margin-inline: auto; padding: 72px var(--gut) 0; text-align: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14px; color: var(--ink-2); box-shadow: 0 1px 0 var(--line-2); }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--n-40); }
.chip[data-feed="live"] .dot { background: var(--ink); animation: pulse 1.8s ease-in-out infinite; }
.chip[data-feed="offline"] .dot { background: var(--n-24); box-shadow: inset 0 0 0 1.5px var(--n-70); }
.hero-title { margin-top: 24px; font-size: clamp(2.7rem, 6.4vw, 4.75rem); line-height: 1.02; font-weight: 600; letter-spacing: -0.045em; font-family: var(--f-display); }
.hero-em { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }
.hero-sub { margin-top: 16px; max-width: 480px; font-size: 15px; line-height: 24px; color: var(--ink-2); }
@media (min-width: 640px) { .hero-sub { font-size: 16px; } }
.hero-cta { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
@media (min-width: 640px) { .hero-cta { flex-direction: row; } }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.btn-lg { min-height: 48px; padding: 0 24px; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--n-95); }
.btn-line { border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.btn-line:hover { background: var(--n-4); }

.fan { position: relative; margin-top: 40px; height: 500px; pointer-events: none; }
@media (min-width: 640px) { .fan { margin-top: 48px; height: 560px; } }
.fan-rows { position: absolute; inset: 6% 0 auto 0; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .fan-rows { gap: 20px; } }
.fan-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, var(--navy) 8% 92%, transparent); mask-image: linear-gradient(90deg, transparent, var(--navy) 8% 92%, transparent); }
.fan-track { display: flex; width: max-content; will-change: transform; animation: marquee 58s linear infinite; }
.fan-track.is-reverse { animation-direction: reverse; }
.fan-card { position: relative; flex: none; width: 236px; height: 78px; margin-right: 16px; }
.fan-live, .fan-ghost { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 16px; }
.fan-live { background: var(--paper); border: 1px solid var(--line-2); box-shadow: var(--shadow-s); opacity: var(--live, 1); }
.fan-ghost { background: color-mix(in oklch, var(--white) 80%, transparent); opacity: calc(1 - var(--live, 1)); }
.fan-mono { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--n-8); font-family: var(--f-display); font-weight: 600; font-size: 20px; color: var(--ink); }
.fan-ghost .fan-mono { background: var(--n-12); }
.fan-bars { display: flex; flex-direction: column; gap: 8px; }
.fan-bars span { display: block; height: 10px; width: 96px; border-radius: 999px; background: var(--n-12); }
.fan-bars span + span { height: 8px; width: 64px; background: var(--n-8); }
.fan-t { min-width: 0; }
.fan-name { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fan-det { margin-top: 2px; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spire { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; width: 100%; height: 88%; }
.stop-a { stop-color: var(--n-90); } .stop-b { stop-color: var(--n-40); } .stop-c { stop-color: var(--n-8); }
.sheen-a { stop-color: var(--white); stop-opacity: 0.72; } .sheen-b { stop-color: var(--white); stop-opacity: 0; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- statement ---------- */
.statement { display: flex; align-items: center; min-height: 70vh; padding: 112px var(--gut); }
@media (min-width: 1024px) { .statement { padding-block: 160px; } }
.statement-text { font-size: clamp(2.6rem, 5.6vw, 5rem); line-height: 1.05; letter-spacing: -0.035em; }
.rot { position: relative; display: inline-grid; vertical-align: bottom; }
.rot-ghost { grid-area: 1 / 1; visibility: hidden; padding: 0 0.08em; }
.rot-view { grid-area: 1 / 1; position: relative; overflow: hidden; height: 1.08em; text-decoration: underline; text-decoration-thickness: 0.05em; text-underline-offset: 0.1em; }
.rot-item { position: absolute; inset: 0 0 auto 0; transition: transform 0.5s var(--ease); }

/* ---------- inside (sticky tabs) ---------- */
.inside { position: relative; height: calc(100vh + 255vh); height: calc(100svh + 255svh); }
.inside-stick { position: sticky; top: var(--hdr, 72px); display: flex; flex-direction: column; justify-content: center; height: calc(100svh - var(--hdr, 72px)); overflow: hidden; padding: 24px var(--gut) 24px; }
.inside-in { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; max-width: 1680px; margin-inline: auto; }
.inside-h { flex: none; font-size: clamp(2rem, 4vw, 3.15rem); }
.inside-grid { display: grid; flex: 1; min-height: 0; margin-top: 20px; gap: 16px; grid-template-rows: auto minmax(0, 1fr); }
@media (min-width: 1024px) { .inside-grid { grid-template-columns: 340px minmax(0, 1fr); grid-template-rows: none; } }
.tabs { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.tab { display: block; width: 100%; min-height: var(--tap); padding: 14px 22px; border-radius: 18px; background: var(--panel); text-align: left; }
.tab-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tab-title { font-size: 15px; line-height: 1.35; }
.tab[aria-selected="true"] .tab-title { font-weight: 700; }
.tab-body { display: none; margin-top: 6px; font-size: 14px; line-height: 24px; color: var(--ink-2); }
.tab[aria-selected="true"] .tab-body { display: block; }
.caret { flex: none; width: 14px; height: 14px; margin-top: 4px; color: var(--ink-3); transition: transform 0.2s var(--ease); }
.tab[aria-selected="true"] .caret { transform: rotate(180deg); }
.stage { position: relative; min-height: 280px; overflow: hidden; border-radius: 18px; background: var(--n-12); background-image: linear-gradient(160deg, var(--n-8), var(--n-24)); }
@media (min-width: 1024px) { .stage { min-height: 0; } }
.stage-track { display: flex; width: 400%; height: 100%; will-change: transform; }
.slide { position: relative; width: 25%; height: 100%; }
.slide-in { display: flex; align-items: center; justify-content: center; height: 100%; padding: 0 20px 56px; }
@media (min-width: 640px) { .slide-in { padding: 0 40px 56px; } }
.win { width: 100%; max-width: 520px; padding: 16px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow-l); }
@media (min-width: 640px) { .win { padding: 20px; } }
.win-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 11px; color: var(--ink-3); }
.win-dots { display: flex; gap: 4px; } .win-dots i { width: 7px; height: 7px; border-radius: 999px; background: var(--n-12); }
.win-title { margin-left: auto; }
.win-h { margin-bottom: 16px; font-size: 1.875rem; }
.win-big { margin-top: 4px; font-size: 2.25rem; }
.mini-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.rows { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--n-4); font-size: 14px; animation: rise 0.7s var(--ease) both; }
.row:nth-child(2) { animation-delay: 120ms; } .row:nth-child(3) { animation-delay: 240ms; }
.row span:first-child { color: var(--ink-3); } .row span:last-child { font-weight: 500; text-align: right; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--n-4); font-size: 14px; font-weight: 500; animation: rise 0.7s var(--ease) both; }
.steps li:nth-child(2) { animation-delay: 180ms; } .steps li:nth-child(3) { animation-delay: 360ms; }
.step-n { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 11px; }
.draw { display: block; width: 100%; height: 96px; margin-top: 12px; }
.draw path { stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; }
.ring { position: absolute; left: 50%; bottom: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow-m); transform: translateX(-50%); pointer-events: none; }
.ring svg { width: 36px; height: 36px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 2; }
.ring-bg { stroke: var(--n-12); } .ring-fg { stroke: var(--ink); stroke-linecap: round; stroke-dasharray: 88; stroke-dashoffset: 88; }

.inside.is-static { height: auto; }
.inside.is-static .inside-stick { position: static; height: auto; padding-block: 64px; overflow: visible; }
.inside.is-static .stage-track { width: 100%; flex-direction: column; gap: 16px; }
.inside.is-static .slide { width: 100%; height: auto; }
.inside.is-static .slide-in { padding-block: 24px; }
.inside.is-static .stage { background: none; min-height: 0; }
.inside.is-static .ring { display: none; }

/* ---------- typing ---------- */
.typing { position: relative; overflow: hidden; background: var(--paper); padding: 96px var(--gut); }
@media (min-width: 1024px) { .typing { padding-block: 112px; } }
.typing-in { position: relative; z-index: 2; max-width: 760px; margin-inline: auto; text-align: center; }
.typing-text { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.02; }
.caret-bar { display: inline-block; width: 0.045em; height: 0.78em; margin-left: 0.06em; vertical-align: -0.06em; background: currentColor; animation: blink 1s step-end infinite; }
.typing .spire { position: relative; display: block; margin: 24px auto 0; height: 224px; max-width: 980px; }
@media (min-width: 640px) { .typing .spire { height: 288px; } }

/* ---------- check ---------- */
.check { padding: 80px var(--gut); }
@media (min-width: 1024px) { .check { padding-block: 112px; } }
.h2 { margin-top: 12px; font-size: clamp(2rem, 4vw, 3.4rem); }
.gate { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-top: 32px; }
@media (min-width: 640px) { .gate { flex-direction: row; } }
.gate-input { flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-family: var(--f-mono); font-size: 16px; color: var(--ink); }
.gate-input::placeholder { color: var(--n-55); font-family: var(--f-body); }
.gate-input:focus-visible { outline-offset: 2px; }
.gate .btn { min-height: 52px; padding: 0 28px; }
.gate-out { max-width: 760px; margin-top: 20px; padding: 20px 22px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line-2); }
.gate-out[data-verdict="match"] { background: var(--paper); border: 2px solid var(--ink); }
.gate-out[data-verdict="mismatch"] { background: var(--n-12); border: 2px dashed var(--ink); }
.gate-line { font-family: var(--f-display); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.2; }
.gate-sub { margin-top: 8px; font-size: 14px; line-height: 22px; color: var(--ink-2); overflow-wrap: anywhere; }
.gate-sub code { font-family: var(--f-mono); font-size: 13px; }

/* ---------- feature stack ---------- */
.stack { padding: 80px var(--gut); }
@media (min-width: 1024px) { .stack { padding-block: 112px; } }
.stack-h { max-width: 7em; font-size: clamp(2.8rem, 6vw, 5.2rem); }
.stack-list { display: flex; flex-direction: column; gap: 24px; margin-top: 48px; }
.feat { display: grid; overflow: hidden; border-radius: 28px; background: var(--panel); }
.feat { min-height: 70vh; }
@media (min-width: 1024px) { .feat { grid-template-columns: 1fr 1fr; } .feat-flip .feat-art { order: 2; } }
.feat-art { position: relative; min-height: 320px; overflow: hidden; background-image: linear-gradient(150deg, var(--n-12), var(--n-40)); }
.feat-ui { position: absolute; left: 20px; right: 20px; bottom: 20px; max-width: 320px; padding: 16px; border-radius: 16px; background: color-mix(in oklch, var(--white) 95%, transparent); box-shadow: var(--shadow-m); font-size: 14px; }
.mini-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.mini-rows > div + div { border-top: 1px solid var(--line-2); }
.mini-rows span:first-child { font-weight: 500; } .mini-rows span:last-child { color: var(--ink-3); text-align: right; }
.mono-s { font-size: 13px; }
.feat-text { display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; }
@media (min-width: 640px) { .feat-text { padding: 48px; } }
.feat-h { margin-top: 12px; font-size: clamp(2.2rem, 4vw, 3.6rem); }
.feat-p { margin-top: 16px; max-width: 28rem; font-size: 16px; line-height: 28px; color: var(--ink-2); }

/* ---------- board ---------- */
.board { padding: 80px var(--gut); }
@media (min-width: 1024px) { .board { padding-block: 112px; } }
.board-card { padding: 24px; border-radius: 28px; background: var(--panel); }
@media (min-width: 640px) { .board-card { padding: 48px; } }
.tabs-h { display: flex; gap: 4px; margin-top: 28px; padding: 4px; width: fit-content; max-width: 100%; overflow-x: auto; border-radius: 999px; background: var(--n-8); }
.tab-h { flex: none; min-height: var(--tap); padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background-color 0.22s var(--ease), color 0.22s var(--ease); }
.tab-h[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.panel { margin-top: 20px; }
.panel[hidden] { display: none; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { padding: 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line-2); min-width: 0; }
.tile-k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.tile-v { margin-top: 8px; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile-v-sm { font-size: 1.125rem; }
.tile-s { margin-top: 6px; font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
.tiles.is-inert .tile-v { color: var(--n-40); }
.panel-note { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.link { text-underline-offset: 3px; }
.table { overflow: hidden; border-radius: 22px; border: 1px solid var(--line-2); background: var(--paper); }
.tr { display: grid; align-items: center; gap: 8px; padding: 14px 14px; border-bottom: 1px solid var(--line-2); grid-template-columns: minmax(0, 1fr) auto auto; }
@media (min-width: 640px) { .tr { gap: 12px; padding: 14px 16px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto minmax(0, 0.9fr) 120px; } }
.tr:last-child { border-bottom: 0; }
.tr.th { padding-block: 12px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.tr.empty { display: block; padding: 28px 16px; font-size: 14px; color: var(--ink-2); }
.r { text-align: right; }
.hide-s { display: none; }
@media (min-width: 640px) { .hide-s { display: block; } }
.tk { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tk-n { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-s { display: block; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.num { font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .num { font-size: 14px; } }
.sp { grid-column: 1 / -1; }
.spark { display: block; width: 100%; height: 28px; }
@media (min-width: 640px) { .sp { grid-column: auto; } .spark { width: 112px; } }
.spark path { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* ---------- cards ---------- */
.cards { padding: 64px var(--gut); }
@media (min-width: 1024px) { .cards { padding-block: 96px; } }
.cards-grid { display: grid; gap: 20px; max-width: 1100px; margin-inline: auto; }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.card { overflow: hidden; height: 100%; border-radius: 28px; background: var(--panel); }
.card-art { position: relative; height: 256px; overflow: hidden; background-image: linear-gradient(150deg, var(--n-12), var(--n-40)); }
.card-glyph { position: absolute; left: 20px; top: 16px; font-family: var(--f-display); font-weight: 600; font-size: 5rem; letter-spacing: -0.05em; color: color-mix(in oklch, var(--white) 70%, transparent); }
.card-note { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 12px 16px; border-radius: 16px; background: color-mix(in oklch, var(--white) 95%, transparent); box-shadow: var(--shadow-m); font-size: 14px; font-weight: 500; animation: rise 0.7s var(--ease) both; }
.card-body { padding: 24px; }
.card-h { font-size: 1.875rem; }
.card-p { margin-top: 12px; font-size: 14px; line-height: 24px; color: var(--ink-2); }

/* ---------- faq ---------- */
.faq { padding: 80px var(--gut); }
@media (min-width: 1024px) { .faq { padding-block: 112px; } }
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 0.7fr 1.3fr; } }
.faq-h { font-size: clamp(2.4rem, 5vw, 4rem); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 64px; padding: 16px 0; text-align: left; }
.faq-qt { font-size: 1.25rem; line-height: 1.1; letter-spacing: -0.02em; }
@media (min-width: 640px) { .faq-qt { font-size: 1.5rem; } }
.faq-pm { flex: none; width: var(--tap); text-align: center; font-size: 1.25rem; color: var(--ink-3); }
.faq-a { max-width: 36rem; padding-bottom: 20px; font-size: 16px; line-height: 28px; color: var(--ink-2); }
.faq-a[hidden] { display: none; }
.faq-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 56px; }
@media (min-width: 640px) { .faq-cta { flex-direction: row; } }

/* ---------- footer ---------- */
.foot { position: relative; overflow: hidden; color: var(--paper); background-image: linear-gradient(170deg, var(--n-55), var(--n-95) 70%, var(--navy)); }
.foot-wrap { padding: 12px 12px 0; }
@media (min-width: 640px) { .foot-wrap { padding: 16px 16px 0; } }
.foot-panel { display: flex; flex-direction: column; justify-content: space-between; padding: 24px 20px; border-radius: 28px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow-l); }
@media (min-width: 640px) { .foot-panel { min-height: 420px; padding: 32px; border-radius: 32px; } }
.foot-top { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 1024px) { .foot-top { flex-direction: row; align-items: flex-start; justify-content: space-between; } }
.pill-brand { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 292px; height: 48px; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 32px color-mix(in oklch, var(--navy) 12%, transparent); }
@media (min-width: 640px) { .pill-brand { max-width: 328px; } }
.pill-brand { gap: 10px; }
.pill-brand .mark { height: 20px; }
.pill-name { font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.foot-links { display: flex; flex-direction: column; }
.foot-links a { display: inline-flex; align-items: center; min-height: var(--tap); font-size: 14px; color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-bottom { display: grid; gap: 8px; margin-top: 40px; font-size: 14px; color: var(--ink-2); }
@media (min-width: 640px) { .foot-bottom { margin-top: 64px; grid-template-columns: 1fr 2fr; align-items: center; } }
.foot-big { padding: 48px 16px 16px; text-align: center; }
@media (min-width: 640px) { .foot-big { padding-top: 80px; padding-bottom: 24px; } }
.foot-tag { font-size: 14px; }
.foot-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.foot-chips span { padding: 6px 12px; border-radius: 999px; background: color-mix(in oklch, var(--white) 25%, transparent); font-size: 14px; }
.foot-word { margin-top: 32px; font-size: clamp(3.5rem, 16vw, 16rem); line-height: 1; letter-spacing: -0.045em; }
@media (min-width: 640px) { .foot-word { font-size: clamp(5.5rem, 18vw, 16rem); } }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .fan-track { animation: none; }
  .fan-rows { display: flex; }
  .fan-row { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .fan-track { flex-wrap: wrap; justify-content: center; width: auto; padding: 0 20px; row-gap: 12px; }
  .fan-row:nth-child(n+2) { display: none; }
  .fan-track .fan-card:nth-child(n+7) { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .draw path { stroke-dashoffset: 0; }
  .caret-bar { animation: none; }
  .row, .steps li, .card-note { animation: none; }
}

/* ---------- loading / failure states for tiles ---------- */
.is-wait { color: var(--n-70); animation: pulse 1.6s ease-in-out infinite; }
.is-fail { color: var(--n-80); animation: none; font-size: 1.125rem; }
.tile-v.is-wait, .tile-v.is-fail { font-size: 1.25rem; letter-spacing: -0.01em; }
.win-big.is-wait { font-size: 1.5rem; }
.tile-s.is-wait { animation: none; color: var(--n-80); }

/* ---------- hero entrance: staggered rise on load, same easing as the reveals ---------- */
.rise-in > * { animation: rise 0.9s var(--ease) both; }
.rise-in > *:nth-child(2) { animation-delay: 90ms; }
.rise-in > *:nth-child(3) { animation-delay: 180ms; }
.rise-in > *:nth-child(4) { animation-delay: 270ms; }
@media (prefers-reduced-motion: reduce) { .rise-in > * { animation: none; } .is-wait { animation: none; } }
