/* Qscope · post-quantum scanner for Solana
   Calm editorial palette: light black and off-white, one soft accent. No motion that competes with reading. */

@font-face { font-family: 'Geist'; src: url('/fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #121211;
  --bg-2: #171715;
  --surface: #1a1a18;
  --surface-2: #21211e;
  --line: rgba(236, 232, 223, 0.08);
  --line-2: rgba(236, 232, 223, 0.15);
  --text: #ece8df;
  --text-2: #bdb8ac;
  --muted: #8b867b;
  --dim: #5f5b53;
  --accent: #a99be0;
  --accent-ink: #121211;
  --risk: #d08b5f;
  --safe: #8fbf9f;
  --warn: #d4b36c;
  --risk-rgb: 208, 139, 95;
  --safe-rgb: 143, 191, 159;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset, 0 20px 50px -30px rgba(0, 0, 0, 0.7);
  --grain-opacity: 0.05;
  --radius: 16px;
  --serif: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; /* display face: Geist, Solana-style weights */
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f3f0e8;
  --bg-2: #ede9df;
  --surface: #faf8f3;
  --surface-2: #f2eee5;
  --line: rgba(22, 22, 21, 0.08);
  --line-2: rgba(22, 22, 21, 0.16);
  --text: #171716;
  --text-2: #3d3b36;
  --muted: #6d695f;
  --dim: #9c978b;
  --accent: #6a5bb5;
  --accent-ink: #faf8f3;
  --risk: #b4622f;
  --safe: #3f7d57;
  --warn: #946f1f;
  --risk-rgb: 180, 98, 47;
  --safe-rgb: 63, 125, 87;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 18px 40px -28px rgba(40, 32, 10, 0.25);
  --grain-opacity: 0.06;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: var(--sans); font-size: 15px; line-height: 1.6; min-height: 100vh; -webkit-font-smoothing: antialiased; transition: background-color 0.25s, color 0.25s; }
body::before { /* static paper grain, never moves */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.serif { font-family: var(--serif); font-weight: 400; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.up { color: var(--safe); } .down { color: var(--risk); }
.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.eyebrow b { color: var(--text-2); font-weight: 500; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.045em; line-height: 1.02; }
h1 em, h2 em { font-style: normal; font-weight: 300; color: var(--text); letter-spacing: -0.04em; }
h3 { font-size: 15px; font-weight: 500; letter-spacing: -0.005em; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px 32px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .name { font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: -0.035em; }
.brand .tag { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 7px; border: 1px solid var(--line-2); border-radius: 6px; margin-left: 4px; }
.nav { display: flex; gap: 2px; }
.nav button { border: 0; background: transparent; color: var(--muted); padding: 7px 14px; border-radius: 999px; font-size: 14px; transition: color 0.2s, background 0.2s; }
.nav button:hover { color: var(--text); }
.nav button.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.tools { display: flex; gap: 8px; align-items: center; justify-self: end; }
.ctl { height: 34px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); border-radius: 999px; padding: 0 12px; font-family: var(--mono); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.ctl:hover { border-color: var(--muted); }
select.ctl { appearance: none; padding-right: 26px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 14px) 15px, calc(100% - 10px) 15px; background-size: 4px 4px; background-repeat: no-repeat; }
.ctl.icon { width: 34px; justify-content: center; padding: 0; font-family: var(--sans); font-size: 14px; }

main { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 32px 80px; }
.view { display: none; }
.view.active { display: block; animation: fade 0.35s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); width: fit-content; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.exposed { color: var(--risk); border-color: rgba(var(--risk-rgb), 0.35); }
.pill.shielded { color: var(--text-2); }
.pill.protected { color: var(--safe); border-color: rgba(var(--safe-rgb), 0.35); }

.btn { border: 1px solid var(--text); background: var(--text); color: var(--bg); border-radius: 999px; padding: 11px 20px; font-size: 14px; font-weight: 500; transition: opacity 0.2s, transform 0.15s; white-space: nowrap; }
.btn:hover { opacity: 0.88; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: wait; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--muted); opacity: 1; }
.btn.sm { padding: 7px 14px; font-size: 13px; }

/* ---------- Scanner hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; padding: 72px 0 40px; }
.hero h1 { font-size: clamp(40px, 5vw, 66px); }
.hero .lede { color: var(--text-2); font-size: 17px; line-height: 1.6; max-width: 540px; margin: 22px 0 0; }
.scanbar { display: flex; gap: 8px; margin-top: 30px; padding: 6px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); max-width: 620px; transition: border-color 0.2s; }
.scanbar:focus-within { border-color: var(--muted); }
.scanbar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-family: var(--mono); font-size: 13.5px; padding: 0 16px; }
.scanbar input::placeholder { color: var(--dim); }
.examples { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.examples button { border: 0; background: none; padding: 0; color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; font-size: 13px; }
.examples button:hover { text-decoration-color: var(--text); }
.trust { margin-top: 18px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.err { color: var(--risk); font-family: var(--mono); font-size: 12.5px; margin-top: 12px; min-height: 18px; }
.art { position: relative; aspect-ratio: 1 / 1; margin: 0; }
.art canvas { width: 100%; height: 100%; display: block; }
.art figcaption { position: absolute; left: 0; bottom: -4px; font-family: var(--mono); font-size: 10.5px; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 30px; }
.facts > div { background: var(--surface); padding: 22px 24px; }
.facts .n { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 0.1em; }
.facts h3 { margin: 10px 0 6px; font-size: 16px; }
.facts p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.recent { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.recent button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.recent button:hover { border-color: var(--muted); }
.recent .v { color: var(--risk); } .recent .s { color: var(--safe); }

/* ---------- Report ---------- */
.report { margin-top: 26px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; scroll-margin-top: 90px; }
.report > * { animation: fade 0.4s ease both; }
.report-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 18px 0 6px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.report-head .addr { font-family: var(--mono); font-size: 13px; color: var(--text-2); word-break: break-all; }
.report-head .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.verdict { grid-column: span 7; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.verdict h2 { font-size: 38px; font-weight: 500; letter-spacing: -0.04em; }
.verdict p { margin: 0; color: var(--text-2); max-width: 560px; }
.verdict .note { color: var(--muted); font-size: 13.5px; }
.readiness { margin-top: 8px; }
.readiness .row { display: flex; justify-content: space-between; align-items: baseline; }
.readiness .row b { font-family: var(--mono); font-weight: 500; font-size: 13px; }
.segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.segs i { height: 6px; border-radius: 4px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.segs i.on { background: var(--safe); box-shadow: none; }
.segs i.wait { background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 10px); }
.value { grid-column: span 5; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.value .big { font-family: var(--sans); font-weight: 300; letter-spacing: -0.04em; font-size: clamp(44px, 5vw, 60px); line-height: 1; letter-spacing: -0.01em; }
.value .sub { color: var(--muted); font-size: 13px; margin-top: 8px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.kv .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.kv .v { font-family: var(--mono); font-size: 14px; margin-top: 2px; }

.holdings { grid-column: span 8; padding: 22px 22px 14px; overflow: hidden; }
.section-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; gap: 12px; }
.section-h .label { white-space: nowrap; }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--dim); text-transform: uppercase; font-weight: 400; padding: 0 8px 10px; white-space: nowrap; }
td { padding: 11px 8px; border-top: 1px solid var(--line); white-space: nowrap; }
th.r, td.r { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
tbody tr.click { cursor: pointer; transition: background 0.15s; }
tbody tr.click:hover { background: var(--surface-2); }
.tok { display: flex; align-items: center; gap: 10px; }
.tok .lg { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 9px; font-family: var(--mono); color: var(--muted); overflow: hidden; flex: none; box-shadow: inset 0 0 0 1px var(--line); }
.tok .lg img { width: 100%; height: 100%; }
.tok b { font-weight: 500; }
.tok small { display: block; color: var(--muted); font-size: 11.5px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.share { height: 2px; background: var(--text-2); opacity: 0.45; margin-top: 5px; border-radius: 2px; }
.foot-note { font-size: 12px; color: var(--muted); margin-top: 10px; font-family: var(--mono); }

.compo { grid-column: span 4; padding: 22px; }
.donut { display: grid; place-items: center; margin: 4px 0 14px; position: relative; }
.donut svg { width: 170px; height: 170px; }
.donut .c { position: absolute; text-align: center; }
.donut .c b { display: block; font-family: var(--sans); font-weight: 300; letter-spacing: -0.04em; font-size: 30px; font-weight: 400; line-height: 1; }
.donut .c span { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.legend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13px; }
.legend-list li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; }
.legend-list i { width: 10px; height: 10px; border-radius: 3px; }
.legend-list span:last-child { font-family: var(--mono); color: var(--text-2); }

.anatomy { grid-column: span 5; padding: 22px; }
.anatomy canvas { width: 100%; aspect-ratio: 1 / 0.8; display: block; }
.anatomy .hex { font-family: var(--mono); font-size: 11px; color: var(--muted); word-break: break-all; line-height: 1.6; margin-top: 10px; }
.checks-card { grid-column: span 7; padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.checks .ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; border: 1px solid var(--line-2); color: var(--muted); margin-top: 1px; }
.ic.yes { color: var(--safe); border-color: rgba(var(--safe-rgb), 0.45); }
.ic.no { color: var(--risk); border-color: rgba(var(--risk-rgb), 0.45); }
.todo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.todo b { display: block; font-weight: 500; font-size: 13.5px; margin-bottom: 4px; }
.todo p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.skeleton { grid-column: 1 / -1; height: 200px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Section heads (other views) ---------- */
.sec-head { padding: 64px 0 28px; max-width: 760px; }
.sec-head h2 { font-size: clamp(40px, 5vw, 64px); }
.sec-head p { color: var(--text-2); font-size: 16px; margin: 18px 0 0; }

/* ---------- Ecosystem ---------- */
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 6px 13px; border-radius: 999px; font-size: 13px; }
.seg button.on { background: var(--text); color: var(--bg); }
.scale { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.scale i { width: 120px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, rgba(var(--risk-rgb), .8), rgba(var(--risk-rgb), .12) 46%, rgba(var(--safe-rgb), .12) 54%, rgba(var(--safe-rgb), .8)); }
.tree { padding: 6px; }
#treemap { position: relative; height: min(600px, 68vh); min-height: 360px; }
.tile { position: absolute; display: block; color: var(--text); text-decoration: none; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--surface); overflow: hidden; transition: filter 0.15s; }
.tile:hover { filter: brightness(1.1); box-shadow: inset 0 0 0 1.5px var(--text); z-index: 2; }
.t-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; text-align: center; }
.t-in img { width: 28px; height: 28px; border-radius: 50%; margin-bottom: 6px; }
.t-in b { font-weight: 500; letter-spacing: -0.01em; line-height: 1.05; }
.t-in span { font-family: var(--mono); font-size: 11.5px; opacity: 0.8; }
.t-in small { font-family: var(--mono); font-size: 10.5px; opacity: 0.6; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-family: var(--mono); font-size: 12.5px; }
.tip { position: absolute; left: 0; top: 0; z-index: 5; width: 250px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 16px 40px -16px rgba(0,0,0,.45); pointer-events: none; font-size: 13px; }
.tip .h { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.tip .h img { width: 20px; height: 20px; border-radius: 50%; }
.tip .g { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-family: var(--mono); font-size: 12px; }
.tip .g span { color: var(--muted); } .tip .g b { text-align: right; font-weight: 400; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.stat { padding: 18px 20px; }
.stat .v { font-family: var(--sans); font-weight: 300; letter-spacing: -0.04em; font-size: 32px; line-height: 1.1; margin-top: 8px; }
.stat .d { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
.movers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.movers .card { padding: 20px 20px 10px; }
.movers table { font-size: 13px; }
.movers td { padding: 9px 6px; }

/* ---------- Market ---------- */
.mk-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.gauge { grid-column: span 5; padding: 24px; text-align: center; }
.gauge canvas { width: 100%; max-width: 380px; aspect-ratio: 2 / 1.15; display: block; margin: 8px auto 0; }
.gauge .val { font-family: var(--sans); font-weight: 300; letter-spacing: -0.04em; font-size: 64px; line-height: 1; margin-top: -4px; }
.gauge .lab { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); margin-top: 6px; }
.gauge svg { width: 100%; height: 60px; margin-top: 18px; }
.solperf { grid-column: span 7; padding: 24px; }
.solperf .head { display: flex; align-items: center; gap: 12px; }
.solperf .head img { width: 30px; height: 30px; border-radius: 50%; }
.solperf .price { font-family: var(--sans); font-weight: 300; letter-spacing: -0.04em; font-size: 46px; line-height: 1; margin: 16px 0 18px; }
.bars { display: grid; gap: 10px; }
.bars .b { display: grid; grid-template-columns: 44px 1fr 70px; gap: 12px; align-items: center; font-family: var(--mono); font-size: 12px; }
.bars .track { position: relative; height: 6px; background: var(--surface-2); border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.bars .track::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line-2); }
.bars .fill { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.bars .r { text-align: right; }
.mk-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.facts2 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fact { padding: 22px; }
.fact .claim { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(var(--risk-rgb), .7); font-size: 14px; }
.fact .truth { font-size: 15.5px; margin-top: 10px; color: var(--text); }
.fact .src { font-family: var(--mono); font-size: 11px; color: var(--dim); margin-top: 12px; }
.mood { grid-column: 1 / -1; padding: 20px 24px; font-size: 15.5px; color: var(--text-2); }
.mood b { color: var(--text); font-weight: 500; }

/* ---------- Roadmap ---------- */
.countdown { display: flex; gap: 0; margin-top: 30px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; width: fit-content; background: var(--surface); }
.countdown .u { padding: 16px 24px; border-right: 1px solid var(--line); text-align: center; min-width: 96px; }
.countdown .u:last-child { border-right: 0; }
.countdown .u b { display: block; font-family: var(--sans); font-weight: 300; letter-spacing: -0.04em; font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown .u > span { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.explain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.explain .card { padding: 18px; }
.explain canvas { width: 100%; aspect-ratio: 1 / 0.78; display: block; border-radius: 10px; background: var(--bg-2); }
.explain h3 { font-size: 16px; margin: 8px 0 6px; }
.explain p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.explain .label { margin-top: 14px; display: block; }
.timeline { position: relative; margin: 48px 0 0 6px; padding-left: 30px; border-left: 1px solid var(--line-2); }
.tl { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 0 0 26px; }
.tl::before { content: ''; position: absolute; left: -36px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--muted); }
.tl.done::before { background: var(--text-2); border-color: var(--text-2); }
.tl.today::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 20%, transparent); }
.tl.goal::before { border: 2px solid var(--safe); }
.tl .when { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.tl.today .when { color: var(--accent); }
.tl h3 { font-size: 16px; margin-bottom: 3px; }
.tl p { margin: 0; color: var(--muted); font-size: 14px; }
.sources { margin-top: 26px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- Footer, drawers ---------- */
footer { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 26px 32px 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
footer .mode { font-family: var(--mono); font-size: 11px; padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 6px; margin-left: 6px; }
.scrim { position: fixed; inset: 0; z-index: 79; background: rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); z-index: 80; background: var(--surface); border-left: 1px solid var(--line-2); transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer header { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer .body { padding: 20px 22px 40px; overflow: auto; font-size: 14px; }
.drawer .body h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; margin: 22px 0 10px; font-weight: 400; }
.drawer ul { margin: 0; padding-left: 18px; line-height: 1.8; font-family: var(--mono); font-size: 12px; }
.tk-head { display: flex; gap: 14px; align-items: center; }
.tk-head img { width: 44px; height: 44px; border-radius: 50%; }
.tk-head h3 { font-family: var(--sans); font-weight: 300; letter-spacing: -0.04em; font-size: 30px; font-weight: 400; line-height: 1; }
.tk-price { font-family: var(--sans); font-weight: 300; letter-spacing: -0.04em; font-size: 40px; margin-top: 18px; line-height: 1; }
.chg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.chg div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.chg span { display: block; font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: .1em; }
.chg b { font-family: var(--mono); font-weight: 400; font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 9px; color: var(--text-2); }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { font-size: 13px; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; text-decoration: none; }
.links a:hover { border-color: var(--muted); }
.desc { color: var(--text-2); line-height: 1.6; }
.call { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.call .h { display: flex; gap: 10px; align-items: center; padding: 9px 12px; background: var(--surface-2); font-family: var(--mono); font-size: 11.5px; }
.call .h .s { color: var(--safe); } .call .h .s.e { color: var(--risk); }
.call .h .ms { margin-left: auto; color: var(--dim); }
.call pre { margin: 0; padding: 10px 12px; font-size: 11px; line-height: 1.5; color: var(--text-2); max-height: 200px; overflow: auto; font-family: var(--mono); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 90; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 13.5px; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .top { grid-template-columns: 1fr auto; padding: 12px 18px; }
  .nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; }
  .brand .tag { display: none; }
  main { padding: 0 18px 60px; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 20px; }
  .art { max-width: 340px; margin: 0 auto; }
  .facts, .explain, .movers, .todo, .facts2 { grid-template-columns: 1fr; }
  .report > *, .mk-grid > * { grid-column: 1 / -1 !important; }
  .stats, .mk-stats { grid-template-columns: 1fr 1fr; }
  .tl { grid-template-columns: 1fr; gap: 2px; }
  .scale { margin-left: 0; }
  .countdown .u { min-width: 70px; padding: 12px 14px; }
  .countdown .u b { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ====================== Motion (slow, quiet, never looping fast) ====================== */
.reveal, .card.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.reveal.in, .card.reveal.in { opacity: 1; transform: none; }

/* headline lines rise out of a mask */
.hero h1 .ln, .sec-head h2 .ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero h1 .ln > span, .sec-head h2 .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.view.active .ln.in > span { transform: none; }

/* ambient light at the bottom of the hero, like a long exposure; breathes very slowly */
.hero { position: relative; }
.ambient { position: absolute; left: -10%; right: -10%; bottom: -120px; height: 380px; pointer-events: none; z-index: -1; filter: blur(40px); opacity: 0.55;
  background: radial-gradient(40% 60% at 30% 60%, rgba(70, 150, 100, 0.35), transparent 70%), radial-gradient(35% 55% at 75% 40%, rgba(150, 120, 230, 0.28), transparent 70%);
  animation: breathe 14s ease-in-out infinite alternate; }
:root[data-theme='light'] .ambient { opacity: 0.35; }
@keyframes breathe { from { opacity: 0.35; transform: translateX(-2%); } to { opacity: 0.6; transform: translateX(2%); } }
:root[data-theme='light'] .ambient { animation-name: breatheLight; }
@keyframes breatheLight { from { opacity: 0.12; transform: translateX(-2%); } to { opacity: 0.22; transform: translateX(2%); } }

/* ribbon that draws itself once behind the illustration */
.ribbon { position: absolute; right: -40px; bottom: -120px; width: 60%; opacity: 0.7; height: auto; pointer-events: none; z-index: -1; overflow: visible; }
.ribbon path { fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 3.2s cubic-bezier(.4,.1,.2,1) 0.4s; }
.ribbon path + path { stroke-width: 0.8; opacity: 0.6; transition-delay: 0.7s; }
.view.active .ribbon.in path { stroke-dashoffset: 0; }

/* Solana-style pill button with an arrow disc */
.btn.go { display: inline-flex; align-items: center; gap: 12px; padding: 6px 6px 6px 20px; }
.btn.go .arw { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); color: var(--text); display: grid; place-items: center; transition: transform 0.35s cubic-bezier(.2,.8,.2,1); }
.btn.go:hover .arw { transform: translateX(3px); }
.btn.go:hover { opacity: 1; }

/* report pieces */
tbody tr.row-in { animation: rowIn 0.6s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.segs i { position: relative; overflow: hidden; }
.segs i.on { background: var(--surface-2); }
.segs i.on::after { content: ''; position: absolute; inset: 0; background: var(--safe); transform-origin: left; animation: segFill 0.9s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 300ms); }
@keyframes segFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.donut circle.arc { transition: stroke-dasharray 1.2s cubic-bezier(.2,.8,.2,1); }
.bars .fill { transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.tile { animation: tileIn 0.7s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0ms); }
@keyframes tileIn { from { opacity: 0; } to { opacity: 1; } }
.card { transition: border-color 0.3s, transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s; }
.facts > div, .stat.card, .fact.card, .movers .card { transition: transform 0.4s cubic-bezier(.2,.8,.2,1), border-color 0.3s; }
.stat.card:hover, .fact.card:hover, .movers .card:hover, .explain .card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.nav button { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero h1 .ln > span, .sec-head h2 .ln > span { opacity: 1 !important; transform: none !important; }
  .ribbon path { stroke-dashoffset: 0 !important; }
}

/* roadmap motion */
.tl-fill { position: absolute; left: -1px; top: 0; width: 1px; height: 0; background: var(--text-2); transition: height 1.8s cubic-bezier(.3,.7,.2,1); }
.countdown .u b { overflow: hidden; height: 1.05em; margin-bottom: 6px; color: var(--text); }
.countdown .u b span { display: inline-block; font: inherit; color: inherit; letter-spacing: inherit; }
.countdown .u b span.tick { animation: digit 0.45s cubic-bezier(.2,.8,.2,1); }
@keyframes digit { from { transform: translateY(-40%); opacity: 0; } to { transform: none; opacity: 1; } }
.tl.today::before { animation: todayPulse 3s ease-in-out infinite; }
@keyframes todayPulse { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); } 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 6%, transparent); } }
.tl .when, .tl h3, .tl p { transition: color 0.3s; }
.tl:hover h3 { color: var(--accent); }
