/* SPYTRIX — layout and motion. No colour literals here: only var(--*) / color-mix() from tokens.css.
   Structural values (radii, spacing, durations, easings) follow the studied reference layout. */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 12px);
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
  background:
    radial-gradient(950px 520px at 82% -6%, color-mix(in srgb, var(--c-amber) 8%, transparent), transparent 65%),
    radial-gradient(820px 600px at 14% 18%, color-mix(in srgb, var(--c-iris) 16%, transparent), transparent 70%),
    var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(to right, color-mix(in srgb, var(--c-ivory) 3%, transparent) 1px, transparent 1px);
  background-size: calc(100vw / 6) 100%;
}
main, footer { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0.01em; }
.amber { color: var(--amber); }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: transparent; pointer-events: none;
}
.progress i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--amber), var(--amber-bright));
  transform-origin: left; transform: scaleX(var(--sp, 0));
  box-shadow: 0 0 12px var(--amber-line);
}

/* ---------- header: nav + CA slot ---------- */
.top {
  position: sticky; top: 0; z-index: 90;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--c-bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.top.scrolled { background: color-mix(in srgb, var(--bg-deep) 94%, transparent); border-bottom-color: var(--line-strong); }
.nav { height: var(--nav-h); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; min-height: 44px; }
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px var(--line-strong); background: var(--bg); }
.brand-word { font-family: var(--f-display); font-weight: 800; font-size: 18px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-links {
  display: flex; align-items: center; gap: 4px; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 65%, transparent); flex: none;
}
.nav-links a {
  padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center;
  border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--bg-deep); background: var(--ivory); }
.nav-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.icon-link {
  width: 44px; height: 44px; border-radius: 11px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent);
  display: inline-grid; place-items: center; color: var(--muted); flex: none;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
a.icon-link:hover { color: var(--ivory); border-color: var(--line-strong); transform: translateY(-1px); }
.icon-link svg { width: 18px; height: 18px; }
.icon-link.is-inert { opacity: 0.45; cursor: not-allowed; }
.burger {
  display: none; width: 44px; height: 44px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface);
  align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 18px; height: 2px; background: var(--ivory); position: relative;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.top.open .burger span { background: transparent; }
.top.open .burger span::before { transform: translateY(6px) rotate(45deg); }
.top.open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* CA slot */
.ca-bar { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg-deep) 80%, transparent); }
.ca-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; min-height: 64px; }
.ca-meta { min-width: 0; flex: 1 1 auto; }
.ca-kicker {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber);
}
.chain-chip { padding: 1px 7px; border-radius: 4px; background: color-mix(in srgb, var(--c-ivory) 8%, transparent); color: var(--ivory-dim); }
.ca-addr {
  margin: 2px 0 0; padding: 0; border: 0; background: none; text-align: left; display: flex; align-items: center; min-height: 44px; max-width: 100%;
  font-family: var(--f-mono); font-weight: 500; font-size: clamp(14px, 2.1vw, 22px); line-height: 1.3;
  color: var(--ivory); word-break: break-all; cursor: pointer; letter-spacing: 0;
}
.ca-bar[data-state="stated"] .ca-addr:hover { color: var(--amber-bright); }
.ca-bar:not([data-state="stated"]) .ca-addr { color: var(--ivory-dim); cursor: default; word-break: normal; }
.ca-caret { display: inline-block; width: 7px; height: 16px; margin-left: 6px; vertical-align: -2px; background: var(--amber); animation: caretBlink 1s steps(2) infinite; }
.ca-copy { flex: none; min-width: 112px; }
.ca-copy[disabled] { opacity: 0.42; cursor: not-allowed; transform: none; }
.ca-copy.done { border-color: var(--up); color: var(--up); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; min-height: 44px; border-radius: 11px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ivory);
  font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease), border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--c-ivory) 36%, transparent); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 9px; }
.btn-amber { background: var(--amber); border-color: var(--amber); color: var(--on-amber); font-weight: 700; }
.btn-amber:hover { background: var(--amber-bright); border-color: var(--amber-bright); box-shadow: 0 10px 28px var(--amber-line); }
.btn-ivory { background: var(--ivory); border-color: var(--ivory); color: var(--on-amber); font-weight: 700; }
.btn-ghost { background: color-mix(in srgb, var(--surface) 55%, transparent); border-color: var(--line); color: var(--ivory-dim); }

/* ---------- spotlight ---------- */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c-amber) 14%, transparent), transparent 70%);
  opacity: 0; transition: opacity 0.3s ease;
}
.spot:hover::before { opacity: 1; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 68px 0 76px; overflow: hidden; border-bottom: 1px solid var(--line); min-height: calc(100vh - var(--hdr-h)); display: flex; align-items: center; }
.mesh { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.mesh i {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; will-change: transform;
}
.mesh i:nth-child(1) { width: 520px; height: 520px; left: -8%; top: -12%; background: color-mix(in srgb, var(--c-iris) 60%, transparent); animation: meshA 18000ms ease-in-out infinite alternate; }
.mesh i:nth-child(2) { width: 460px; height: 460px; right: -6%; top: 10%; background: color-mix(in srgb, var(--c-amber) 26%, transparent); animation: meshB 22000ms ease-in-out infinite alternate; }
.mesh i:nth-child(3) { width: 420px; height: 420px; left: 38%; bottom: -22%; background: color-mix(in srgb, var(--c-orbit) 80%, transparent); animation: meshC 26000ms ease-in-out infinite alternate; }
@keyframes meshA { to { transform: translate3d(140px, 90px, 0) scale(1.15); } }
@keyframes meshB { to { transform: translate3d(-120px, 110px, 0) scale(0.9); } }
@keyframes meshC { to { transform: translate3d(-160px, -70px, 0) scale(1.2); } }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr); gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; min-height: 30px;
  border-radius: 999px; border: 1px solid var(--amber-line); background: color-mix(in srgb, var(--c-amber) 8%, transparent);
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ivory);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: pulseDot 2s infinite; }
[data-state="live"] .dot, .pill[data-state="live"] .dot { background: var(--up); box-shadow: 0 0 12px var(--up); }
.pill[data-state="retry"] .dot { background: var(--amber); }
.pill[data-state="offline"] .dot { background: var(--dim); box-shadow: none; animation: none; }
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }
.hero h1 { margin: 22px 0 18px; font-family: var(--f-display); font-weight: 800; font-size: clamp(42px, 5.8vw, 80px); line-height: 0.98; letter-spacing: -0.03em; }
.hero h1 .serif { font-size: 1.08em; color: var(--amber); padding-right: 6px; }
.lead { margin: 0; max-width: 600px; font-size: clamp(16.5px, 1.35vw, 19px); line-height: 1.62; color: var(--muted); }
.lead b { color: var(--ivory); font-weight: 600; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.lens {
  border-radius: 18px; border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(18px);
  padding: 24px; box-shadow: 0 28px 70px var(--shadow); position: relative; overflow: hidden;
}
.lens::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--amber), transparent); }
.lens-stage { position: relative; height: 230px; display: grid; place-items: center; margin-bottom: 14px; }
.lens-stage .ring { position: absolute; border-radius: 50%; border: 1px solid var(--line-strong); }
.ring.r1 { width: 220px; height: 220px; border-color: var(--amber-line); animation: spin 28000ms linear infinite; border-style: dashed; }
.ring.r2 { width: 160px; height: 160px; }
.lens-stage img { position: relative; width: 190px; height: 190px; object-fit: contain; filter: drop-shadow(0 12px 28px var(--shadow)); }
@keyframes spin { to { transform: rotate(360deg); } }
.layer { will-change: translate; translate: var(--px, 0px) var(--py, 0px); }
.lens-rows { display: grid; gap: 10px; }
.lens-row {
  padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-deep) 72%, transparent);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.lens-row.hot { border-color: var(--amber-line); background: color-mix(in srgb, var(--c-amber) 6%, transparent); }
.lbl { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.val { font-family: var(--f-mono); font-size: 12.5px; color: var(--ivory); }
.tag { font-family: var(--f-mono); font-size: 10.5px; padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--c-mint) 13%, transparent); color: var(--up); border: 1px solid color-mix(in srgb, var(--c-mint) 30%, transparent); white-space: nowrap; }

/* ---------- marquee ---------- */
.marquee { border-bottom: 1px solid var(--line); background: var(--bg-deep); overflow: hidden; padding: 13px 0; }
.marquee-track {
  display: flex; width: max-content; gap: 38px; animation: marqueeScroll 32s linear infinite;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 38px; white-space: nowrap; }
.marquee-track span::after { content: "\2726"; color: var(--amber); font-size: 10px; }
.marquee-track .up { color: var(--up); }
.marquee-track .down { color: var(--down); }
.marquee-track .sym { color: var(--ivory); }
.marquee-track .skel-chip { width: 120px; height: 12px; border-radius: 6px; }
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 52px; flex-wrap: wrap; }
.sec-kicker { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); display: inline-flex; align-items: center; gap: 10px; }
.sec-kicker::before { content: ""; width: 22px; height: 1px; background: var(--amber); }
.sec-head h2 { margin: 12px 0 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 3.7vw, 50px); line-height: 1.06; letter-spacing: -0.025em; max-width: 720px; }
.sec-head h2 .serif { color: var(--amber); font-size: 1.08em; }
.sec-note { max-width: 400px; color: var(--muted); font-size: 15.5px; margin: 0; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card {
  padding: 28px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 85%, transparent), color-mix(in srgb, var(--bg-deep) 90%, transparent));
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card-idx { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--amber); margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.card h3 { margin: 0 0 10px; font-family: var(--f-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.62; }

/* compare */
.graph-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.graph-box { padding: 26px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.graph-box.good { border-color: var(--amber-line); background: linear-gradient(165deg, var(--surface-2), var(--bg-deep)); }
.graph-box h3 { margin: 0 0 8px; font-family: var(--f-display); font-size: 22px; }
.graph-box p { margin: 0 0 20px; font-size: 14.5px; color: var(--muted); }
.graph-tag { display: inline-block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; margin-bottom: 14px; }
.graph-tag.bad { background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-line); }
.graph-tag.ok { background: color-mix(in srgb, var(--c-mint) 12%, transparent); color: var(--up); border: 1px solid color-mix(in srgb, var(--c-mint) 30%, transparent); }
.dgm text { font-family: var(--f-mono); }
.dgm .box { fill: var(--surface); stroke: var(--line-strong); }
.dgm .box.warn { stroke: var(--amber-line); }
.dgm .box.hub { fill: var(--surface-2); stroke: var(--amber); }
.dgm .box.safe { stroke: color-mix(in srgb, var(--c-mint) 40%, transparent); }
.dgm .t1 { fill: var(--ivory); font-size: 11px; }
.dgm .t2 { fill: var(--muted); font-size: 9.5px; }
.dgm .tw { fill: var(--amber); font-size: 10px; }
.dgm .tg { fill: var(--up); font-size: 9.5px; }
.dgm .ln-bad { stroke: var(--amber); stroke-width: 2.5; stroke-dasharray: 5 5; }
.dgm .ln-hub { stroke: var(--amber); stroke-width: 2; }
.dgm .ln-ok { stroke: var(--up); stroke-width: 2; stroke-dasharray: 4 5; }
.dgm .flow { animation: dash 1400ms linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }

/* phases */
.phase { padding: 26px 24px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, transparent), color-mix(in srgb, var(--bg-deep) 95%, transparent)); position: relative; display: flex; flex-direction: column; gap: 14px; }
.phase.featured { border-color: var(--amber); box-shadow: 0 20px 52px color-mix(in srgb, var(--c-amber) 12%, transparent); }
.ribbon { position: absolute; top: -11px; right: 18px; padding: 3px 10px; border-radius: 999px; background: var(--amber); color: var(--on-amber); font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.phase .rank { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.phase .name { font-family: var(--f-display); font-size: 26px; font-weight: 800; margin: 0; }
.phase ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; color: var(--ivory-dim); }
.phase li { display: flex; gap: 9px; line-height: 1.45; }
.phase li::before { content: "\25B8"; color: var(--amber); font-family: var(--f-mono); flex: none; }

/* ---------- market board ---------- */
.board { border-radius: 20px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 0 28px 80px var(--shadow); overflow: hidden; }
.board-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--bg-deep); flex-wrap: wrap; }
.board-msg { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.06em; min-height: 18px; }
.cols, .row {
  display: grid; align-items: center; gap: 16px; padding: 0 20px;
  grid-template-columns: 36px minmax(0, 2.2fr) minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
}
.cols { min-height: 40px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line); }
.cols .r, .row .r { text-align: right; justify-content: flex-end; }
.row {
  min-height: 64px; border-bottom: 1px solid var(--line); border-left: 2px solid transparent;
  position: relative; isolation: isolate; color: var(--ivory);
  transition: background 0.25s ease, border-color 0.25s ease;
}
a.row { cursor: pointer; }
.row:last-child { border-bottom: 0; }
.row::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c-amber) 12%, transparent), transparent 70%);
  opacity: 0; transition: opacity 0.25s ease;
}
a.row:hover::before { opacity: 1; }
.row.enter { animation: rowIn 520ms var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.row.leave { opacity: 0; transition: opacity 0.25s ease; }
.row .rk { font-family: var(--f-mono); font-size: 12px; color: var(--dim); }
.tok { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tile {
  width: 36px; height: 36px; border-radius: 10px; flex: none; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 15px; color: var(--amber);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tok-t { min-width: 0; }
.sym { font-family: var(--f-display); font-weight: 700; font-size: 15px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm { font-size: 12.5px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num { font-family: var(--f-mono); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.flash-up { animation: flashUp 900ms ease-out; }
.flash-down { animation: flashDown 900ms ease-out; }
@keyframes flashUp { from { background: color-mix(in srgb, var(--c-mint) 28%, transparent); } to { background: transparent; } }
@keyframes flashDown { from { background: color-mix(in srgb, var(--c-lav) 28%, transparent); } to { background: transparent; } }
.row.own { border-left: 2px solid var(--color-accent); background: color-mix(in srgb, var(--c-amber) 5%, transparent); animation: ownPulse 2400ms ease-in-out infinite; }
.row.own.enter { animation: rowIn 520ms var(--ease) both, ownPulse 2400ms ease-in-out 520ms infinite; }
@keyframes ownPulse {
  0%, 100% { box-shadow: inset 0 0 0 0 color-mix(in srgb, var(--c-mint) 0%, transparent), 0 0 0 0 color-mix(in srgb, var(--c-mint) 0%, transparent); }
  50% { box-shadow: inset 0 0 28px 0 color-mix(in srgb, var(--c-mint) 14%, transparent), 0 0 18px 0 color-mix(in srgb, var(--c-mint) 22%, transparent); }
}
.row.placeholder { cursor: default; }
.row.placeholder .tile { padding: 4px; background: var(--bg); }
.row.placeholder .tile img { object-fit: contain; }
.own-tag { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.12em; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--amber-line); color: var(--amber); margin-left: 8px; vertical-align: 2px; }
.skel { position: relative; overflow: hidden; background: color-mix(in srgb, var(--c-ivory) 7%, transparent); border-radius: 6px; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c-ivory) 10%, transparent), transparent); transform: translateX(-100%); animation: shimmer 1400ms ease-in-out infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-line { height: 12px; width: 70%; margin-left: auto; }
.skel-line.l { margin-left: 0; width: 60%; }
.fade-in { animation: fadeIn 420ms var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- CTA + footer ---------- */
.cta-band {
  padding: 44px; border-radius: 22px; border: 1px solid var(--amber-line);
  background: radial-gradient(600px 260px at 90% 50%, color-mix(in srgb, var(--c-amber) 16%, transparent), transparent 70%), linear-gradient(135deg, var(--surface-2), var(--bg-deep));
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { margin: 8px 0 0; font-family: var(--f-display); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.08; }
.cta-band h2 .serif { color: var(--amber); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer { padding: 54px 0 42px; background: var(--bg-deep); }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 36px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-nav { display: flex; gap: 44px; flex-wrap: wrap; }
.footer-col { display: grid; gap: 4px; }
.footer-col h4 { margin: 0 0 4px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.footer-col a, .footer-col .inert { font-size: 14px; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.footer-col a:hover { color: var(--ivory); }
.footer-col .inert { opacity: 0.45; cursor: not-allowed; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11.5px; color: var(--dim); }
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 300; padding: 12px 18px; border-radius: 11px;
  border: 1px solid var(--amber-line); background: color-mix(in srgb, var(--bg-deep) 96%, transparent); color: var(--ivory);
  font-family: var(--f-mono); font-size: 12.5px; box-shadow: 0 16px 42px var(--shadow);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.22s ease, transform 0.22s ease;
}
.toast.show { opacity: 1; transform: none; }

/* ---------- reveal (spring-driven by JS) ---------- */
html.anim .reveal { opacity: 0; }

@keyframes caretBlink { 50% { opacity: 0; } }

/* ---------- hero canvas + band (reference: right 19%, clamp(110px,11vw,168px)) ---------- */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero-band {
  position: absolute; top: 0; bottom: 0; right: 19%; width: clamp(110px, 11vw, 168px); pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-shade) 72%, transparent), color-mix(in srgb, var(--surface) 85%, transparent));
  border-left: 1px solid var(--line); border-right: 1px solid var(--amber-line);
}
.hero-band::after {
  content: "BLIND SPOT · DETOUR ZONE"; position: absolute; top: 28px; left: 50%; transform: translateX(-50%) rotate(90deg); transform-origin: center;
  white-space: nowrap; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.26em; color: color-mix(in srgb, var(--c-ivory) 24%, transparent);
}

/* ---------- opening sequence (reference timings) ---------- */
html.intro-lock { overflow: hidden; }
.intro {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--hdr-h); z-index: 80; background: var(--bg-deep);
  display: grid; place-items: center; cursor: pointer; overflow: hidden;
  transition: opacity 0.55s var(--ease), visibility 0.55s var(--ease);
}
.intro.leaving { opacity: 0; pointer-events: none; }
.intro-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 26px 34px; width: min(560px, 90vw); }
.intro-logo { width: 72px; height: 72px; opacity: 0; animation: letterUp 0.45s var(--ease) 0.2s forwards; }
.intro-word { display: flex; gap: 5px; font-family: var(--f-display); font-weight: 800; font-size: clamp(32px, 5.2vw, 52px); letter-spacing: 0.26em; text-indent: 0.26em; }
.intro-word span { opacity: 0; transform: translateY(14px); animation: letterUp 0.45s var(--ease) forwards; }
.intro-sub { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--amber); opacity: 0; animation: letterUp 0.5s var(--ease) 0.95s forwards; }
.intro-bar { width: 170px; height: 2px; background: color-mix(in srgb, var(--c-ivory) 12%, transparent); overflow: hidden; border-radius: 2px; }
.intro-bar::after { content: ""; display: block; width: 100%; height: 100%; background: var(--amber); transform-origin: left; transform: scaleX(0); animation: barFill 2.05s linear forwards; }
.intro-skip { position: absolute; bottom: 28px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
@keyframes letterUp { to { opacity: 1; transform: translateY(0); } }
@keyframes barFill { to { transform: scaleX(1); } }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .graph-compare { grid-template-columns: 1fr; }
  .g4, .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 0; }
  .hero-band { opacity: 0.35; right: 8%; }
}
@media (max-width: 820px) {
  .nav-links {
    position: fixed; top: calc(var(--hdr-h) + 8px); left: 16px; right: 16px; flex-direction: column; align-items: stretch;
    border-radius: 16px; padding: 10px; background: color-mix(in srgb, var(--bg-deep) 98%, transparent); border-color: var(--line-strong); display: none;
  }
  .top.open .nav-links { display: flex; }
  .burger { display: inline-flex; }
  .g3, .g4 { grid-template-columns: 1fr; }
  .wrap { width: calc(100% - 32px); }
  section { padding: 68px 0; }
  .cta-band { padding: 28px; }
  .nav { height: 64px; }
  .brand-word { font-size: 16px; }
  .hero { padding: 44px 0 56px; }
  .cols { display: none; }
  .row {
    grid-template-columns: 28px minmax(0, 1fr) auto auto; row-gap: 4px; padding: 12px 16px;
    grid-template-areas: "rk tok price chg" ". vol liq liq";
  }
  .row .rk { grid-area: rk; }
  .row .tok { grid-area: tok; }
  .row .c-price { grid-area: price; }
  .row .c-chg { grid-area: chg; min-width: 64px; }
  .row .c-vol { grid-area: vol; text-align: left; }
  .row .c-liq { grid-area: liq; justify-self: end; }
  .row .c-vol::before { content: "VOL "; color: var(--dim); }
  .row .c-liq::before { content: "LIQ "; color: var(--dim); }
  .row .num { font-size: 12.5px; }
  .row .c-vol, .row .c-liq { font-size: 11.5px; color: var(--muted); }
  .board-bar { padding: 12px 16px; }
}
@media (max-width: 420px) {
  .ca-copy { min-width: 96px; padding-inline: 12px; }
  .row .c-price { font-size: 12px; }
  .brand-word { font-size: 14px; letter-spacing: 0.08em; }
  .brand { gap: 8px; }
  .nav-inner { gap: 8px; }
  .nav-cta { gap: 6px; }
  .brand { min-width: 0; }
}

/* ---------- reduced motion: instant, zero motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .row.own { animation: none; }
  html.anim .reveal { opacity: 1; }
  .layer { translate: none; }
  .intro { display: none; }
  .marquee { overflow-x: auto; }
}
