/* All colour comes from tokens.css (generated from tokens.json). No colour literals here. */
:root {
  --font-display: "Big Shoulders Display", "Arial Narrow", system-ui, sans-serif;
  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-loop: cubic-bezier(0.6, 0, 0.4, 1);
  --t: 0.15s;
  --tap: 44px;
  --gutter: 32px;
  --maxw: 1200px;
  --bg: var(--ink-0);
  --fg: var(--ink-900);
  --muted: var(--ink-600);
  --line: var(--ink-200);
  --accent: var(--ink-900);
  --on-accent: var(--ink-50);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink-1000); outline-offset: 2px; }
.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; }

/* ---------- scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 50; background: var(--ink-1000); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* ---------- header ---------- */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top__in { margin: 0; padding: 17px 24px; min-height: 78px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: var(--tap); }
.brand__mark { color: var(--ink-1000); }
.brand__word { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 28px; letter-spacing: 0.06em; }
.nav { display: flex; gap: 8px; }
.nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 8px; font-family: var(--font-mono); font-size: 11px; line-height: 16.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg); transition: color var(--t) ease; }
.nav a:hover { color: var(--ink-600); }
.top__right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.social { display: flex; gap: 10px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); transition: color var(--t) ease, border-color var(--t) ease, background var(--t) ease; }
a.icon-btn:hover { color: var(--ink-1000); border-color: var(--ink-300); background: var(--veil-06); }
.icon-btn.is-inert { color: var(--ink-500); border-style: dashed; cursor: default; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 8px 20px; border-radius: 3px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; line-height: 16px; text-transform: uppercase; transition: background var(--t) ease, transform var(--t) ease; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--ink-800); }
.btn--primary:active { transform: scale(0.98); }

.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border: 1px solid var(--veil-22); border-radius: 3px; background: var(--veil-06); font-family: var(--font-sans); font-size: 12px; font-weight: 600; line-height: 16px; color: var(--ink-1000); white-space: nowrap; }
.pill__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-1000); }
.pill__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ink-1000); animation: ping 1.8s var(--ease-out) infinite; }
.pill[data-state="retry"] .pill__dot { background: transparent; box-shadow: inset 0 0 0 2px var(--ink-600); }
.pill[data-state="retry"] .pill__dot::after { background: var(--ink-600); }
.pill[data-state="syncing"] .pill__dot::after { animation-duration: 1.1s; }
.pill[data-state="inert"] .pill__dot { background: var(--ink-500); }
.pill[data-state="inert"] .pill__dot::after { animation: none; }
.pill--board { display: none; }

/* ---------- contract slot ---------- */
.ca { border-bottom: 1px solid var(--line); background: var(--ink-50); }
.ca__in { max-width: calc(var(--maxw) + 2 * 24px); margin: 0 auto; padding: 14px 24px 16px; display: flex; flex-direction: column; gap: 4px; }
.ca__label { font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.ca__value { font-family: var(--font-mono); font-weight: 600; font-size: clamp(15px, 4.1vw, 30px); line-height: 1.25; letter-spacing: 0; overflow-wrap: anywhere; word-break: break-all; color: var(--ink-1000); }
.ca__value--pending { color: var(--ink-500); font-weight: 400; word-break: normal; }
.ca__btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: var(--tap); text-align: left; padding: 4px 0; transition: background var(--t) ease; }
.ca__btn:hover .ca__act { color: var(--ink-1000); border-color: var(--ink-300); }
.ca__act { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: var(--tap); padding: 0 14px; border: 1px solid var(--line); border-radius: 3px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: color var(--t) ease, border-color var(--t) ease; }
.ca__btn[data-done] .ca__act { color: var(--ink-1000); border-color: var(--ink-1000); }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); height: 44px; display: flex; align-items: center; background: var(--bg); }
.ticker__track { display: flex; flex: none; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.tick { display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; border-right: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; line-height: 16px; white-space: nowrap; }
.tick__sym { font-weight: 600; letter-spacing: 0.04em; }
.tick__px { color: var(--muted); }
.tick--skel { height: 44px; }
.tick .logo { width: 20px; height: 20px; font-size: 10px; }

/* ---------- layout ---------- */
main { display: block; }
.hero, .paths, .readout, .board-sec, .mech, .records { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: 32px; padding-bottom: 40px; isolation: isolate; }
.hero__bg { position: absolute; inset: 0 0 -40px 0; z-index: -1; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, var(--ink-1000) 70%, transparent); mask-image: linear-gradient(to bottom, var(--ink-1000) 70%, transparent); }
.hero__bg > * { position: absolute; will-change: transform; }
.mesh { border-radius: 50%; filter: blur(60px); }
.mesh::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(closest-side, var(--veil-12), transparent); animation: drift 18s var(--ease-loop) infinite alternate; }
.mesh--a { width: 46%; height: 120%; left: -6%; top: -30%; }
.mesh--b { width: 40%; height: 100%; right: -4%; top: -10%; }
.mesh--b::before { animation-duration: 24s; animation-direction: alternate-reverse; background: radial-gradient(closest-side, var(--veil-08), transparent); }
.mesh--c { width: 30%; height: 70%; left: 36%; top: 30%; }
.mesh--c::before { animation-duration: 30s; background: radial-gradient(closest-side, var(--veil-06), transparent); }
.gridlines { inset: -10% 0; background-image: linear-gradient(to right, var(--veil-04) 1px, transparent 1px), linear-gradient(to bottom, var(--veil-04) 1px, transparent 1px); background-size: 48px 48px; }
.ghost { right: 8%; top: 4%; width: min(46vw, 420px); height: auto; color: var(--veil-04); }
.rings { right: 6%; top: -20%; width: 520px; height: 520px; color: var(--veil-12); }
.hero__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 24px; }
.hero__c { text-align: center; }
.hero__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(52px, 9vw, 124px); line-height: 0.9; letter-spacing: -0.005em; color: var(--fg); }
.hero__sub { margin-top: 18px; font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); }
.note { font-family: var(--font-mono); font-size: 11px; line-height: 16.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg); padding-top: 24px; }
.note--r { text-align: left; justify-self: start; }
.note--l { justify-self: end; }
.note__bar { display: block; width: 18px; height: 2px; margin-top: 12px; background: var(--ink-500); }

/* ---------- paths ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.path { display: flex; align-items: center; gap: 18px; min-height: 104px; padding: 0 24px 0 26px; border: 1px solid var(--veil-22); border-radius: 999px; background: var(--veil-02); transition: border-color var(--t) ease, background var(--t) ease, transform var(--t) ease; }
.path:hover { border-color: var(--veil-32); background: var(--veil-04); }
.path__ico { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--veil-08); color: var(--ink-1000); }
.path__txt { display: flex; flex-direction: column; gap: 4px; margin-right: auto; min-width: 0; }
.path__name { font-weight: 600; font-size: 22px; line-height: 26px; }
.path__sub { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.path__go { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--veil-32); border-radius: 50%; transition: transform var(--t) ease; }
.path:hover .path__go { transform: translateX(3px); }

/* ---------- readout ---------- */
.readout { display: grid; grid-template-columns: minmax(300px, 361px) 1fr; gap: 16px; margin-top: 24px; }
.panel { padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--ink-50); }
.panel__title { font-family: var(--font-mono); font-weight: 400; font-size: 14px; line-height: 21px; letter-spacing: 0.2em; margin-bottom: 8px; }
.meter-row { display: grid; grid-template-columns: 96px 1fr 76px; align-items: center; gap: 12px; min-height: var(--tap); font-family: var(--font-mono); font-size: 11px; line-height: 16px; }
.meter-row__k { color: var(--muted); }
.meter-row__v { text-align: right; font-weight: 500; color: var(--ink-1000); }
.meter { position: relative; height: 14px; display: block; }
.meter::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 1px; background: var(--ink-200); }
.meter i { position: absolute; left: 0; top: 6px; height: 2px; width: 0; border-radius: 1px; background: var(--ink-1000); transition: width 0.7s var(--ease-out); }
.meter b { position: absolute; top: 0; left: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--ink-1000); transition: left 0.7s var(--ease-out); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 120px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--ink-50); transition: border-color var(--t) ease; }
.tile:hover { border-color: var(--ink-300); }
.tile__k { font-family: var(--font-mono); font-size: 10px; line-height: 15px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.tile__v { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 40px; letter-spacing: 0.01em; color: var(--ink-1000); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile__s { font-family: var(--font-mono); font-size: 12px; line-height: 18px; color: var(--muted); }
.bar { grid-column: 1 / -1; display: block; min-height: 64px; border-radius: 999px; background: var(--accent); color: var(--on-accent); transition: background var(--t) ease, transform var(--t) ease; }
.bar:hover { background: var(--ink-800); }
.bar:active { transform: scale(0.995); }
.bar__in { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; font-family: var(--font-mono); font-size: 13px; line-height: 19.5px; letter-spacing: 0.2em; }

/* ---------- board ---------- */
.board-sec { margin-top: 32px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.sec-head__t { font-family: var(--font-mono); font-weight: 400; font-size: 17px; line-height: 25.5px; letter-spacing: 0.04em; }
.sec-head__t--lg { font-size: 22px; line-height: 33px; letter-spacing: 0.2em; }
.sec-head__s { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sec-head--stack { flex-direction: column; align-items: flex-start; gap: 6px; border-top: 0; padding: 32px 0 20px; }
.sec-head__r { display: flex; align-items: center; gap: 16px; }
.sec-head__n { font-family: var(--font-mono); font-size: 10px; line-height: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chipbtn { min-height: var(--tap); padding: 0 14px; border-radius: 3px; font-size: 12px; font-weight: 600; line-height: 16px; color: var(--muted); transition: color var(--t) ease, background var(--t) ease; }
.chipbtn:hover { color: var(--fg); }
.chipbtn.is-on { background: var(--ink-150); color: var(--fg); }
.search { position: relative; flex: 1 1 220px; display: flex; align-items: center; min-height: var(--tap); border: 1px solid var(--line); border-radius: 3px; background: var(--ink-50); color: var(--muted); transition: border-color var(--t) ease; }
.search:focus-within { border-color: var(--ink-500); }
.search svg { margin: 0 8px 0 12px; flex: none; }
.search input { flex: 1; min-width: 0; height: var(--tap); background: none; border: 0; outline: 0; font-size: 13px; color: var(--fg); }
.search input::placeholder { color: var(--ink-500); }
.order { display: flex; align-items: center; gap: 8px; }
.order__k { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.order select { min-height: var(--tap); padding: 0 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--ink-50); font-size: 12px; font-weight: 600; }
.dirbtn { display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 3px; border: 1px solid var(--line); transition: background var(--t) ease; }
.dirbtn:hover { background: var(--veil-06); }
.dirbtn svg { transition: transform var(--t) ease; }
.dirbtn[aria-pressed="false"] svg { transform: rotate(180deg); }

.board__err { margin-bottom: 12px; padding: 10px 14px; border: 1px solid var(--veil-22); border-radius: 3px; background: var(--veil-04); font-family: var(--font-mono); font-size: 12px; line-height: 18px; animation: slide-in 0.35s var(--ease-out); }
.board__err[hidden], .board__empty[hidden] { display: none; }
.board { overflow-x: clip; font-family: var(--font-mono); font-size: 12px; line-height: 18px; }
.board__head, .row { display: grid; grid-template-columns: 42px minmax(0, 2.6fr) minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 1.15fr) 68px; align-items: center; }
.board__head { min-height: 36px; border-bottom: 1px solid var(--line); font-size: 10px; line-height: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.board__head > span, .cell { padding: 10px 12px; }
.row { position: relative; min-height: 74px; border-bottom: 1px solid var(--line); transition: background var(--t) ease; }
.row .cell { padding: 16px 12px; min-width: 0; }
.row:hover { background: var(--veil-02); }
.row:not(.row--skel) { animation: row-in 0.45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
.cell--act { display: flex; justify-content: flex-end; padding-right: 4px; }
.cell--asset { display: flex; align-items: center; gap: 12px; }
.rank { color: var(--muted); }
.asset { display: flex; flex-direction: column; min-width: 0; }
.asset__sym { font-weight: 600; font-size: 13px; color: var(--ink-1000); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset__name { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo { position: relative; display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--ink-150); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--ink-800); }
.logo b { font-weight: 800; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ink-150); animation: fade-in 0.35s ease-out both; }
.num { font-variant-numeric: tabular-nums; border-radius: 2px; }
.chg::before { content: ""; display: inline-block; width: 7px; height: 6px; margin-right: 6px; background: currentColor; vertical-align: 1px; opacity: 0; }
.chg[data-dir="up"] { color: var(--ink-1000); font-weight: 600; }
.chg[data-dir="up"]::before { opacity: 1; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.chg[data-dir="down"] { color: var(--ink-600); }
.chg[data-dir="down"]::before { opacity: 1; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.copy { position: relative; flex: none; display: grid; place-items: center; width: var(--tap); height: var(--tap); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); transition: color var(--t) ease, border-color var(--t) ease, background var(--t) ease; }
.copy:hover { color: var(--ink-1000); border-color: var(--ink-300); background: var(--veil-06); }
.copy[data-done] { color: var(--ink-1000); border-color: var(--ink-1000); }
.copy[data-done]::after { content: "Copied"; position: absolute; right: 100%; margin-right: 8px; padding: 4px 8px; border-radius: 3px; background: var(--ink-1000); color: var(--ink-50); font-size: 10px; line-height: 14px; white-space: nowrap; animation: fade-in 0.15s ease-out both; }
.board__empty { padding: 32px 12px; text-align: center; color: var(--muted); }

.flash-up { animation: flash-up 0.9s var(--ease-out); }
.flash-down { animation: flash-down 0.9s var(--ease-out); }

/* skeleton */
.sk { display: block; height: 12px; border-radius: 3px; background: linear-gradient(90deg, var(--ink-150) 0%, var(--ink-200) 50%, var(--ink-150) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.sk--s { width: 14px; } .sk--m { width: 70%; max-width: 84px; } .sk--l { width: 96px; } .sk--c { width: 36px; height: 36px; border-radius: 50%; flex: none; } .sk--b { width: var(--tap); height: var(--tap); border-radius: 6px; margin-left: auto; }
.tick .sk--c { width: 20px; height: 20px; } .tick .sk--s { width: 40px; }
.row--skel .cell--asset { gap: 12px; }

/* ---------- mechanics ---------- */
.mech__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { padding: 22px; border: 1px solid var(--veil-16); border-radius: 16px; background: var(--ink-50); transition: border-color var(--t) ease; }
.card:hover { border-color: var(--veil-32); }
.card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.card__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--veil-08); color: var(--ink-1000); flex: none; }
.card__t { font-weight: 600; font-size: 22px; line-height: 26px; }
.card__s { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.ticks li { display: flex; align-items: center; gap: 14px; min-height: 44px; font-size: 14px; line-height: 20px; }
.ticks__i { flex: none; color: var(--ink-1000); }

/* ---------- records ---------- */
.chips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.chip { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 72px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-50); }
.chip.is-inert { border-style: dashed; }
.chip__label { font-family: var(--font-mono); font-size: 10px; line-height: 15px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.chip__text { font-family: var(--font-mono); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.chip.is-inert .chip__text { color: var(--ink-500); }
.records { padding-bottom: 56px; }

.cta { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--tap); margin-top: 20px; border: 1px solid var(--veil-32); border-radius: 3px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; line-height: 16px; transition: background var(--t) ease, border-color var(--t) ease; }
.cta:hover { background: var(--veil-08); border-color: var(--ink-1000); }
.sec-head__tag { position: absolute; right: 0; top: 40px; font-family: var(--font-mono); font-size: 10px; line-height: 15px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-500); }
.mech .sec-head--stack { position: relative; }
.foot__fine { max-width: calc(var(--maxw) + 2 * 24px); margin: 0 auto; padding: 14px 24px 28px; border-top: 1px solid var(--line); font-size: 11px; line-height: 16px; color: var(--ink-500); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); }
.foot__in { max-width: calc(var(--maxw) + 2 * 24px); margin: 0 auto; padding: 28px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot__brand { display: flex; flex-direction: column; gap: 4px; }
.foot__name { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 26px; letter-spacing: 0.06em; }
.foot__sub { font-size: 12px; line-height: 16px; color: var(--muted); }
.foot__nav { display: flex; gap: 8px; }
.foot__nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 8px; font-size: 12px; color: var(--muted); transition: color var(--t) ease; }
.foot__nav a:hover { color: var(--fg); }

/* ---------- spotlight ---------- */
.spot { position: relative; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--veil-08), transparent 70%); transition: opacity var(--t) ease; }
.spot:hover::before { opacity: 1; }
.row.spot::before { z-index: 0; }

/* ---------- reveal hooks (JS drives the spring) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.rv-fail) [data-rv]:not([data-rv-done]) { opacity: 0; }
}

/* ---------- keyframes ---------- */
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ping { 75%, 100% { opacity: 0; transform: scale(2.4); } }
@keyframes drift { from { transform: translate3d(-6%, -4%, 0) scale(1); } to { transform: translate3d(8%, 6%, 0) scale(1.15); } }
@keyframes slide-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes row-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes flash-up { 0% { background: var(--veil-32); color: var(--ink-1000); } 100% { background: transparent; } }
@keyframes flash-down { 0% { background: var(--shade-70); box-shadow: var(--shadow-ring); } 100% { background: transparent; box-shadow: none; } }

/* ---------- breakpoints ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .tile__v { font-size: 32px; line-height: 34px; }
}
@media (max-width: 900px) {
  .readout { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .mech__grid { grid-template-columns: 1fr; }
  .paths { grid-template-columns: 1fr; }
  .hero__in { grid-template-columns: 1fr 1fr; }
  .hero__c { grid-column: 1 / -1; grid-row: 1; }
  .note { padding-top: 8px; }
  .note--l { justify-self: start; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .top__cta { display: none; }
  .top .pill { display: none; }
  .pill--board { display: inline-flex; }
  .top__in { padding: 17px 20px; gap: 12px; }
  .ca__in { padding: 12px 20px 14px; }
  .foot__in { padding: 24px 20px; }
  .foot__fine { padding: 14px 20px 24px; }
  .sec-head__tag { display: none; }
  .brand__word { font-size: 24px; }
  .tiles { grid-template-columns: 1fr; }
  .sec-head { flex-wrap: wrap; }
  .board__head { display: none; }
  .row { grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr) var(--tap); grid-template-areas: "rk as as ac" ". pr ch ch" ". vl lq lq"; row-gap: 4px; padding: 14px 0 12px; }
  .row .cell { padding: 4px 8px; }
  .cell--rank { grid-area: rk; padding-left: 0 !important; }
  .cell--asset { grid-area: as; }
  .cell--act { grid-area: ac; padding: 0 !important; justify-content: flex-end; }
  .row .cell[data-label] { display: flex; flex-direction: column; gap: 2px; }
  .row .cell[data-label]::before { content: attr(data-label); font-size: 10px; line-height: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
  .cell--price { grid-area: pr; }
  .cell--chg { grid-area: ch; }
  .cell--vol { grid-area: vl; }
  .cell--liq { grid-area: lq; }
  .row--skel { min-height: 118px; }
  .order__k { display: none; }
  .search { flex-basis: 100%; }
}
@media (max-width: 430px) {
  .hero__in { gap: 12px; }
  .hero__sub { letter-spacing: 0.22em; }
  .path { padding: 0 16px 0 18px; gap: 14px; }
  .path__name { font-size: 20px; }
  .meter-row { grid-template-columns: 88px 1fr 70px; }
  .copy[data-done]::after { right: auto; left: auto; bottom: 100%; margin: 0 0 6px; }
}

/* ---------- reduced motion: nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker { overflow-x: auto; }
  .hero__bg > * { transform: none !important; }
}
