/* The only file that holds colour literals. Every value is achromatic: OKLCH with chroma 0 and no hue.
   Swap this ramp when brand assets land; nothing else in the project names a colour. */
:root {
  --g-black: oklch(0 0 0);
  --g-0: oklch(0.07 0 0);
  --g-1: oklch(0.11 0 0);
  --g-2: oklch(0.15 0 0);
  --g-3: oklch(0.2 0 0);
  --g-4: oklch(0.26 0 0);
  --g-5: oklch(0.34 0 0);
  --g-6: oklch(0.44 0 0);
  --g-7: oklch(0.56 0 0);
  --g-8: oklch(0.68 0 0);
  --g-9: oklch(0.8 0 0);
  --g-10: oklch(0.89 0 0);
  --g-11: oklch(0.94 0 0);
  --g-12: oklch(0.975 0 0);
  --g-white: oklch(1 0 0);

  /* spacing, radii, layout */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --pad: 20px;
  --r-card: 20px; --r-inner: 12px; --r-pill: 999px; --r-panel: 56px;
  --header-h: 60px;
  --tap: 44px;

  /* motion: hover 120ms, state 200ms, bar 300ms, skeleton 1.2s, tape 80s linear, reveal 600ms */
  --t-hover: 120ms; --t-state: 200ms; --t-bar: 300ms; --t-pulse: 1.2s; --t-tape: 80s; --t-reveal: 600ms;
  --ease: ease;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* type */
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* Dark tone (default) and light tone. Panels set data-tone; everything below reads these names only. */
:root, [data-tone='dark'] {
  --bg: var(--g-1);
  --bg-deep: var(--g-0);
  --surface: var(--g-2);
  --surface-2: var(--g-3);
  --line: var(--g-4);
  --line-strong: var(--g-6);
  --ink: var(--g-12);
  --muted: var(--g-8);
  --accent: var(--g-12);
  --accent-ink: var(--g-0);
  --glow: var(--g-white);
  color-scheme: dark;
}
[data-tone='light'] {
  --bg: var(--g-11);
  --bg-deep: var(--g-10);
  --surface: var(--g-white);
  --surface-2: var(--g-11);
  --line: var(--g-10);
  --line-strong: var(--g-8);
  --ink: var(--g-1);
  --muted: var(--g-6);
  --accent: var(--g-1);
  --accent-ink: var(--g-12);
  --glow: var(--g-black);
  color-scheme: light;
}

/* Base: reset, type, controls. Colours come from tokens.css variables only. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--top-h, 140px); }
body {
  margin: 0; background: var(--g-0); color: var(--ink);
  font: 400 15px/22px var(--font); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, svg, canvas { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--bg); }

.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 80; padding: 12px 16px; border-radius: var(--r-pill); background: var(--g-white); color: var(--g-0); font-weight: 700; transition: top var(--t-state) var(--ease); }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }

/* type */
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.display em { font-style: italic; }
.eyebrow { font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* buttons, chips, controls */
.btn { min-height: var(--tap); padding: 0 20px; border-radius: var(--r-pill); font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); white-space: nowrap; background: var(--accent); color: var(--accent-ink); border: 1px solid transparent; transition: opacity var(--t-hover) var(--ease), transform var(--t-hover) var(--ease), box-shadow var(--t-state) var(--ease); }
.btn:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 10px 30px -8px color-mix(in oklab, var(--glow) 45%, transparent); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }

.chip { display: inline-flex; align-items: center; flex: none; width: max-content; height: 22px; padding: 0 8px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); font: 600 11px/1 var(--font-mono); letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; }
.chip-btn { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: border-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease); }
.chip-btn:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); background: color-mix(in oklab, var(--ink) 8%, transparent); }
.chip-btn:active { transform: scale(0.97); }

.tabs { display: inline-flex; padding: 4px; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { min-height: var(--tap); min-width: var(--tap); padding: 0 18px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; border: 1px solid transparent; flex: 1 0 auto; transition: color var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease); }
.tabs button:hover { color: var(--ink); }
.tabs button:active { transform: scale(0.97); }
.tabs button[aria-selected='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tabs.block { display: flex; }

.input { width: 100%; height: var(--tap); padding: 0 var(--s4); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); outline: none; transition: border-color var(--t-hover) var(--ease), box-shadow var(--t-state) var(--ease); }
.input::placeholder { color: var(--muted); }
.input:hover { border-color: var(--line-strong); }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in oklab, var(--ink) 12%, transparent); }

.icon-btn { width: var(--tap); height: var(--tap); display: inline-grid; place-items: center; flex: none; border: 1px solid var(--line-strong); border-radius: var(--r-pill); color: var(--muted); background: transparent; transition: color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease); }
a.icon-btn:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); background: color-mix(in oklab, var(--ink) 10%, transparent); }
a.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { transition: transform var(--t-state) var(--ease-out); }
a.icon-btn:hover svg { transform: scale(1.12) rotate(-6deg); }
.icon-btn.is-inert { border-style: dashed; opacity: 0.55; cursor: not-allowed; }
.icon-btn.is-inert:hover { opacity: 0.8; }

/* live dot and health pill */
.dot { position: relative; display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--ink); }
.health { display: inline-flex; align-items: center; gap: var(--s2); height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font: 500 12px/1 var(--font-mono); letter-spacing: 0.04em; white-space: nowrap; transition: border-color var(--t-state) var(--ease), color var(--t-state) var(--ease); }
.health[data-state='live'] .dot::after, [data-health='live'] .readout .dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--ink); animation: ping 1.6s ease-out infinite; }
.health[data-state='connecting'] .dot, [data-health='connecting'] .readout .dot { background: transparent; border: 1.5px solid var(--ink); animation: blink var(--t-pulse) ease-in-out infinite; }
.health[data-state='offline'] { color: var(--muted); border-style: dashed; }
.health[data-state='offline'] .dot, [data-health='offline'] .readout .dot { background: transparent; border: 1.5px solid var(--muted); }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes blink { 50% { opacity: 0.3; } }

/* skeleton, flash, toast */
.skeleton { display: block; background: var(--surface-2); border-radius: var(--r-inner); animation: pulse var(--t-pulse) ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }
.flash { animation: flash 700ms ease-out; border-radius: 6px; }
@keyframes flash { 0% { background-color: color-mix(in oklab, var(--ink) 30%, transparent); text-shadow: 0 0 18px var(--glow); } 100% { background-color: transparent; text-shadow: 0 0 0 transparent; } }
.toast { position: fixed; left: 50%; bottom: calc(var(--s5) + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; background: var(--g-white); color: var(--g-0); padding: 12px 18px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; max-width: calc(100vw - 32px); animation: toast-in var(--t-state) var(--ease-out); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--g-white); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 14px var(--g-white); }

/* reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out), border-color var(--t-hover) var(--ease), box-shadow var(--t-state) var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal='1'].is-in { transition-delay: 80ms, 80ms, 0s, 0s; }
.js [data-reveal='2'].is-in { transition-delay: 160ms, 160ms, 0s, 0s; }
.js [data-reveal='3'].is-in { transition-delay: 240ms, 240ms, 0s, 0s; }
.js [data-reveal='4'].is-in { transition-delay: 320ms, 320ms, 0s, 0s; }

/* parallax depth, driven by --sy from script */
[data-depth] { transform: translate3d(0, calc(var(--sy, 0) * var(--d, 0) * 1px), 0); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  [data-depth] { transform: none; will-change: auto; }
  .tape { overflow-x: auto; }
}

/* Sections and layout. Alternating dark and light panels, each overlapping the one above with a rounded edge. */

/* ---------- header and contract bar ---------- */
.header { position: sticky; top: 0; z-index: 41; background: color-mix(in oklab, var(--g-0) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); color: var(--ink); }
.header .container { height: var(--header-h); display: flex; align-items: center; gap: var(--s5); }
.wordmark { display: inline-flex; align-items: center; min-height: var(--tap); }
.wm { display: inline-flex; align-items: baseline; font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.wm em { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 24px; line-height: 1; letter-spacing: -0.01em; margin-left: 1px; }
.nav { display: flex; gap: var(--s1); }
.nav a, .foot-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--muted); transition: color var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease); }
.nav a:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 10%, transparent); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
.social { display: flex; gap: var(--s1); }

.ca { position: sticky; top: var(--header-h); z-index: 40; border-bottom: 1px solid var(--line); background: color-mix(in oklab, var(--g-0) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); }
.ca-inner { padding-block: var(--s3); display: grid; gap: var(--s2); }
.ca-meta { display: flex; align-items: center; gap: var(--s3); }
.ca-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); width: 100%; min-height: 60px; padding: var(--s2) var(--s2) var(--s2) var(--s4); border: 1px solid var(--line-strong); border-radius: var(--r-inner); background: var(--surface); text-align: left; transition: border-color var(--t-hover) var(--ease), box-shadow var(--t-state) var(--ease), transform var(--t-hover) var(--ease); }
button.ca-row:hover { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in oklab, var(--ink) 10%, transparent), 0 14px 40px -14px color-mix(in oklab, var(--glow) 40%, transparent); }
button.ca-row:active { transform: scale(0.995); }
.ca-code { min-width: 0; font: 700 clamp(15px, 2.4vw, 30px)/1.25 var(--font-mono); letter-spacing: -0.01em; overflow-wrap: anywhere; word-break: break-all; }
.ca-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-width: var(--tap); height: var(--tap); padding: 0 16px; border-radius: var(--r-pill); background: var(--g-white); color: var(--g-0); font: 700 13px/1 var(--font-mono); letter-spacing: 0.04em; transition: transform var(--t-hover) var(--ease); }
button.ca-row:hover .ca-btn { transform: scale(1.05); }
button.ca-row[data-copied='yes'] { border-color: var(--ink); }
.ca-row.is-inert { cursor: not-allowed; border-style: dashed; }
.ca-row.is-inert .ca-code { color: var(--muted); font-weight: 500; }
.ca-row.is-inert .ca-btn { background: var(--surface-2); color: var(--muted); }

/* ---------- ticker tape ---------- */
.tape { border-bottom: 1px solid var(--line); overflow: hidden; background: var(--g-1); color: var(--ink); }
.tape-run { display: flex; width: max-content; animation: tape var(--t-tape) linear infinite; }
.tape:hover .tape-run { animation-play-state: paused; }
.tape-set { display: flex; }
.tape-item { display: inline-flex; align-items: center; gap: var(--s2); height: 34px; padding: 0 var(--s4); border-right: 1px solid var(--line); font: 500 12px/16px var(--font-mono); white-space: nowrap; transition: color var(--t-hover) var(--ease); }
.tape-item b { font-weight: 700; }
.tape-item:hover { color: var(--g-white); }
.tape-item .delta-down { color: var(--muted); }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- panels ---------- */
main { flex: 1; }
.panel { position: relative; isolation: isolate; background: var(--bg); color: var(--ink); padding-block: var(--s9); }
.panel[data-tone='light'] { background: linear-gradient(180deg, var(--g-12), var(--g-11) 60%, var(--g-10)); }
.panel + .panel { margin-top: calc(var(--r-panel) * -1); padding-top: calc(var(--s9) + var(--r-panel)); border-radius: var(--r-panel) var(--r-panel) 0 0; box-shadow: 0 -30px 70px -30px color-mix(in oklab, var(--g-white) 22%, transparent); }
.panel[data-tone='light'] + .panel, .panel + .panel[data-tone='light'] { box-shadow: 0 -26px 60px -26px color-mix(in oklab, var(--g-black) 60%, transparent); }
.panel + .panel::before { content: ''; position: absolute; inset: 0 var(--r-panel) auto; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); z-index: 1; }
.panel[data-tone='dark']:not(.hero) { background: radial-gradient(120% 70% at 50% 0%, color-mix(in oklab, var(--g-white) 7%, var(--g-1)), var(--g-1) 60%, var(--g-0)); }
.section-head { display: grid; gap: var(--s2); margin-bottom: var(--s6); justify-items: center; text-align: center; }
.section-head h2 { font-size: 52px; }
.section-head p { font-size: 17px; line-height: 24px; max-width: 560px; margin-inline: auto; }

/* ---------- hero ---------- */
.hero { padding-block: var(--s7) calc(var(--s9) + var(--r-panel)); overflow: clip; background: var(--g-0); }
.matrix { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0.75; -webkit-mask-image: linear-gradient(to bottom, var(--g-white) 0%, var(--g-white) 50%, transparent 98%); mask-image: linear-gradient(to bottom, var(--g-white) 0%, var(--g-white) 50%, transparent 98%); }
.hero-glow { position: absolute; left: -10%; right: -10%; top: -10%; height: 90%; z-index: -1; background: radial-gradient(ellipse at 50% 35%, color-mix(in oklab, var(--g-white) 16%, transparent), transparent 62%); pointer-events: none; }
.home-hero { display: grid; justify-items: center; text-align: center; gap: var(--s5); padding-top: var(--s6); position: relative; }
.home-hero h1 { font-size: clamp(46px, 8.4vw, 124px); line-height: 0.94; text-shadow: 0 0 60px color-mix(in oklab, var(--g-white) 28%, transparent); }
.h1-a { font-family: var(--font); font-weight: 800; letter-spacing: -0.05em; }
.home-hero h1 em { color: var(--g-9); }
.lede { font-size: 18px; line-height: 28px; color: var(--muted); max-width: 640px; }

.readout { width: 100%; max-width: 680px; display: flex; align-items: center; gap: var(--s4); padding: 6px 6px 6px var(--s5); border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: color-mix(in oklab, var(--surface) 80%, transparent); backdrop-filter: blur(8px); transition: border-color var(--t-hover) var(--ease), box-shadow var(--t-state) var(--ease); }
.readout:hover { border-color: var(--ink); box-shadow: 0 0 60px -14px color-mix(in oklab, var(--g-white) 50%, transparent); }
.readout-label { display: inline-flex; align-items: center; gap: var(--s2); font: 500 11px/16px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.readout-value { flex: 1; min-width: 0; text-align: right; font: 700 clamp(18px, 2.4vw, 26px)/1 var(--font-mono); letter-spacing: -0.02em; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }

.lineup { width: 100%; max-width: 1040px; display: grid; grid-template-columns: 1fr 1.18fr 1.4fr 1.18fr 1fr; gap: var(--s3); align-items: end; margin-top: var(--s4); }
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-card) var(--r-card); border: 1px solid var(--line-strong); overflow: hidden; background: var(--g-1); box-shadow: inset 0 0 40px color-mix(in oklab, var(--g-white) 8%, transparent); }
.arch > i { position: absolute; inset: -20%; animation: drift 14s linear infinite; }
.a1 > i { background: repeating-linear-gradient(45deg, color-mix(in oklab, var(--g-white) 22%, transparent) 0 2px, transparent 2px 14px); }
.a2 > i { background: repeating-radial-gradient(circle at 50% 100%, color-mix(in oklab, var(--g-white) 26%, transparent) 0 2px, transparent 2px 18px); }
.a3 > i { background: radial-gradient(circle at 50% 38%, color-mix(in oklab, var(--g-white) 60%, transparent) 0 6%, transparent 7%), repeating-radial-gradient(circle at 50% 38%, color-mix(in oklab, var(--g-white) 32%, transparent) 0 1.5px, transparent 1.5px 22px); animation-duration: 22s; }
.a4 > i { background: repeating-linear-gradient(0deg, color-mix(in oklab, var(--g-white) 22%, transparent) 0 3px, transparent 3px 16px); animation-direction: reverse; }
.a5 > i { background: conic-gradient(from 45deg at 50% 50%, color-mix(in oklab, var(--g-white) 22%, transparent) 0 25%, transparent 0 50%, color-mix(in oklab, var(--g-white) 22%, transparent) 0 75%, transparent 0); background-size: 28px 28px; }
@keyframes drift { to { transform: translate3d(28px, 28px, 0); } }
.lineup-note { font: 500 11px/16px var(--font-mono); letter-spacing: 0.06em; color: var(--muted); }

/* ---------- stats ---------- */
.home-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line-strong); }
.home-stats > div { position: relative; display: grid; justify-items: center; gap: var(--s1); padding: var(--s6) var(--s3); border-left: 1px solid var(--line-strong); text-align: center; overflow: hidden; transition: background-color var(--t-state) var(--ease); }
.home-stats > div:first-child { border-left: 0; }
.home-stats > div:hover { background: color-mix(in oklab, var(--ink) 5%, transparent); }
.home-stats b { font-family: var(--font-display); font-weight: 400; font-size: 52px; line-height: 56px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; max-width: 100%; }
.home-stats b[data-dash], .readout-value[data-dash] { color: var(--muted); }

/* ---------- board ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.toolbar .input { width: 280px; }
.grid-cards { display: grid; gap: var(--s4); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--pad); overflow: hidden; }
.card::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklab, var(--glow) 12%, transparent), transparent 70%); transition: opacity var(--t-state) var(--ease); }
.card:hover::before { opacity: 1; }
.inf { display: flex; flex-direction: column; gap: var(--s4); min-height: 176px; transition: border-color var(--t-hover) var(--ease), transform var(--t-state) var(--ease-out), box-shadow var(--t-state) var(--ease); }
a.inf:hover, a.inf:focus-visible { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 20px 50px -22px color-mix(in oklab, var(--glow) 45%, transparent); }
a.inf:active { transform: translateY(-1px) scale(0.99); }
.inf.is-new { animation: card-in var(--t-reveal) var(--ease-out) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(18px); } }
.inf-head { display: flex; align-items: center; gap: var(--s3); position: relative; }
.logo { width: 44px; height: 44px; flex: none; border-radius: var(--r-inner); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo-letter { font: 700 16px/1 var(--font-mono); }
.inf-id { min-width: 0; flex: 1; display: grid; }
.inf-name { font-size: 16px; line-height: 22px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tick { font: 500 12px/16px var(--font-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.delta { flex: none; height: 24px; padding: 0 8px; border-radius: var(--r-pill); display: inline-flex; align-items: center; font: 700 12px/16px var(--font-mono); background: color-mix(in oklab, currentColor 12%, transparent); color: var(--muted); }
.delta[data-dir='up'] { color: var(--ink); }
.delta[data-dir='down'] { color: var(--muted); border: 1px dashed var(--line-strong); }
.quote { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s2); margin-top: auto; position: relative; }
.quote-right { text-align: right; }
.quote-v { display: block; font-size: 20px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em; }
.quote-v.sm { font-size: 16px; line-height: 24px; }
.quote-l { display: block; font-size: 11px; line-height: 14px; color: var(--muted); }
.curve-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s2); font-size: 11px; line-height: 14px; color: var(--muted); position: relative; }
.meter { height: 4px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.meter > i { display: block; height: 100%; width: 2%; background: var(--ink); border-radius: inherit; transition: width var(--t-bar) var(--ease); }
.is-skeleton { pointer-events: none; }
.sk-logo { width: 44px; height: 44px; flex: none; }
.sk-stack { flex: 1; display: grid; gap: var(--s2); }
.sk-line { height: 14px; }
.sk-line.short { width: 55%; }
.sk-block { height: 34px; margin-top: auto; }
.is-dash { justify-content: center; align-items: center; text-align: center; color: var(--muted); }
.board-note { margin-top: var(--s4); text-align: center; color: var(--muted); }

/* ---------- method ---------- */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.how > li { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--s3); padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; transition: border-color var(--t-hover) var(--ease), transform var(--t-state) var(--ease-out), box-shadow var(--t-state) var(--ease); }
.how > li::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklab, var(--glow) 10%, transparent), transparent 70%); transition: opacity var(--t-state) var(--ease); }
.how > li:hover::before { opacity: 1; }
.js .how > li.is-in:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 22px 50px -26px color-mix(in oklab, var(--glow) 55%, transparent); }
.how .n { font: 500 12px/16px var(--font-mono); letter-spacing: 0.1em; }
.how h3 { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 34px; letter-spacing: -0.01em; }
.how p { color: var(--muted); }
.how .demo { min-height: 84px; display: grid; align-content: center; gap: var(--s2); padding: var(--s3) var(--s4); border-radius: var(--r-inner); background: var(--surface-2); font-size: 13px; line-height: 18px; }
.how .demo code { font: 700 15px/20px var(--font-mono); overflow-wrap: anywhere; }
.how .demo .row { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.how .demo .ok::before { content: '\2713'; font-weight: 700; margin-right: var(--s2); }

/* ---------- parts card ---------- */
.fee-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: center; padding: var(--s6); border-radius: var(--r-card); }
.fee-copy { display: grid; gap: var(--s4); }
.fee-copy h2 { font-size: 44px; }
.fee-copy p { color: var(--muted); }
.layer-note { min-height: 48px; color: var(--ink) !important; font-size: 15px; }
.splitter { display: grid; gap: var(--s4); }
.splitbar { display: flex; gap: 4px; height: 56px; }
.seg { display: block; flex: 1; min-width: 2px; border-radius: var(--r-inner); border: 1px solid var(--line-strong); opacity: 0.45; transition: flex-grow var(--t-state) var(--ease), opacity var(--t-state) var(--ease), box-shadow var(--t-state) var(--ease); }
.seg.is-on { flex-grow: 2.4; opacity: 1; box-shadow: 0 0 30px -4px color-mix(in oklab, var(--glow) 55%, transparent); }
.seg-store { background: var(--g-5); }
.seg-timing { background: var(--g-8); }
.seg-verifier { background: var(--g-11); }
.legend { display: grid; gap: 0; }
.legend > div { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: var(--s3); min-height: var(--tap); padding: 10px var(--s2); border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; cursor: pointer; border-radius: var(--r-inner); transition: background-color var(--t-hover) var(--ease); }
.legend > div:first-child { border-top: 0; }
.legend > div:hover, .legend > div.is-on { background: color-mix(in oklab, var(--ink) 8%, transparent); }
.legend i { width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--line-strong); }
.legend dd { font: 700 13px/18px var(--font-mono); }
.legend small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }

/* ---------- info tiles ---------- */
.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); padding: var(--s6); }
.tile-info { position: relative; display: grid; gap: var(--s3); align-content: start; padding: var(--s4); border-radius: var(--r-inner); transition: background-color var(--t-state) var(--ease); overflow: hidden; }
.tile-info:hover { background: color-mix(in oklab, var(--ink) 5%, transparent); }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.tile-value { font: 800 24px/30px var(--font); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.tile-value.is-mono { font: 700 15px/22px var(--font-mono); letter-spacing: -0.01em; }
.tile-sub { font-size: 13px; line-height: 18px; color: var(--muted); }

/* ---------- band and footer ---------- */
.band-panel { padding-block: var(--s8) var(--s9); }
.band { display: grid; justify-items: center; gap: var(--s5); padding: var(--s8) var(--s5); border: 1px solid var(--line-strong); border-radius: var(--r-card); background: radial-gradient(90% 120% at 50% 0%, color-mix(in oklab, var(--g-white) 12%, var(--surface)), var(--surface)); text-align: center; }
.band h2 { font-size: clamp(40px, 6vw, 80px); }
.footer { background: var(--g-0); border-top: 1px solid var(--line); color: var(--ink); position: relative; }
.footer .container { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; padding-block: var(--s5); font-size: 13px; line-height: 18px; color: var(--muted); }
.foot-col { display: grid; gap: var(--s2); max-width: 420px; }
.foot-right { text-align: right; justify-items: end; }
.foot-brand .wm { color: var(--ink); }
.foot-nav { display: none; gap: var(--s2); }
.foot-nav a { padding: 0 10px; text-decoration: underline; text-underline-offset: 2px; }
.foot-nav a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1099px) { .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 959px) {
  .fee-card { grid-template-columns: minmax(0, 1fr); padding: var(--s5); gap: var(--s5); }
  .fee-copy h2 { font-size: 36px; }
  .details { grid-template-columns: minmax(0, 1fr); gap: var(--s2); padding: var(--s4); }
}
@media (max-width: 819px) {
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how { grid-template-columns: minmax(0, 1fr); }
  .section-head h2 { font-size: 40px; }
  .home-stats b { font-size: 40px; line-height: 44px; }
  .foot-right { text-align: left; justify-items: start; }
  .nav { display: none; }
  .foot-nav { display: flex; }
}
@media (max-width: 639px) {
  :root { --pad: 16px; --s9: 72px; --r-panel: 36px; }
  .container { padding-inline: 16px; }
  .header { position: static; }
  .ca { top: 0; }
  .ca-inner { padding-block: var(--s2); gap: 6px; }
  .header .container { gap: var(--s2); }
  .readout { flex-direction: column; align-items: stretch; border-radius: var(--r-card); padding: var(--s4); gap: var(--s3); text-align: center; }
  .readout-label { justify-content: center; }
  .readout-value { text-align: center; font-size: 28px; }
  .readout .btn { width: 100%; }
  .lede { font-size: 16px; line-height: 24px; }
  .home-hero h1 { font-size: clamp(46px, 12.5vw, 60px); }
  .lineup { grid-template-columns: 1fr 1.3fr 1fr; gap: var(--s2); }
  .lineup .a1, .lineup .a5 { display: none; }
  .home-stats { grid-template-columns: minmax(0, 1fr); }
  .home-stats > div { border-left: 0; border-top: 1px solid var(--line-strong); padding: var(--s5) var(--s3); }
  .home-stats > div:first-child { border-top: 0; }
  .home-stats b { font-size: 44px; line-height: 48px; }
  .toolbar .input { width: 100%; }
  .toolbar .tabs { display: flex; width: 100%; }
  .how > li { padding: var(--s4); }
  .tile-value { font-size: 22px; }
}
@media (max-width: 519px) {
  .grid-cards { grid-template-columns: minmax(0, 1fr); }
  .section-head h2 { font-size: 36px; }
  .band { padding: var(--s7) var(--s4); }
}
@media (max-width: 389px) {
  .health { padding: 0 10px; }
  .ca-btn { padding: 0 12px; }
}
