/* Layout and motion. No color literals here: everything resolves through tokens.css. */
:root {
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 16px;
  --r-sm: 12px;
  --r-lg: 22px;
  --max: 1480px;
  --gut: 40px;
  --top-h: 0px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font-family: var(--display); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; font-variation-settings: "wdth" 100; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.display { font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96, "wdth" 92; letter-spacing: -0.045em; line-height: 0.88; margin: 0; }
.mono-label, .lbl { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--ink-3); font-weight: 400; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.r { text-align: right; }
.row { display: flex; align-items: center; gap: 8px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

/* top: CA slot + nav */
.top { position: sticky; top: 0; z-index: 50; background: var(--veil); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.ca { display: flex; align-items: center; gap: 16px; max-width: var(--max); margin: 0 auto; padding: 8px var(--gut); min-height: 60px; border-bottom: 1px solid var(--rule); }
.ca-label { font: 500 12px var(--mono); letter-spacing: 0.08em; color: var(--paper); background: var(--ink); border-radius: 999px; padding: 6px 12px; flex: none; }
.ca-copy { display: flex; align-items: center; gap: 16px; min-width: 0; min-height: 44px; padding: 4px 14px; border: 0; border-radius: var(--r-sm); background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); text-align: left; transition: box-shadow 0.15s ease, background 0.15s ease; }
.ca-copy:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.ca-addr { font: 500 clamp(17px, 2vw, 26px) / 1.15 var(--mono); letter-spacing: -0.02em; overflow-wrap: anywhere; word-break: break-all; min-width: 0; }
.ca-fb { flex: none; font: 600 12px var(--mono); color: var(--ink-3); padding: 6px 10px; border-radius: 999px; background: var(--paper-2); transition: background 0.15s ease, color 0.15s ease; }
.ca-copy.copied .ca-fb { background: var(--ink); color: var(--paper); }
.ca-pending { font: 500 clamp(17px, 2vw, 26px) / 1.15 var(--mono); letter-spacing: -0.02em; color: var(--ink-3); }
.nav-in { height: 72px; display: flex; align-items: center; gap: 22px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; font-size: 25px; letter-spacing: -0.045em; font-variation-settings: "opsz" 96; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.bm-ink { fill: var(--ink); }
.bm-orange { fill: var(--c-orange); }
.bm-yellow { fill: var(--c-yellow); }
.bm-green { fill: var(--c-green); }
.bm-blue { fill: var(--c-blue); }
.bm-magenta { fill: var(--c-magenta); }
.bm-ring { fill: var(--ring); }
.nav-links { display: flex; gap: 2px; margin-left: auto; padding: 4px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px; border-radius: 999px; font-weight: 500; font-size: 14.5px; transition: background 0.15s ease; }
.nav-links a:hover { background: var(--paper-2); }
.nav-links a.active { background: var(--ink); color: var(--paper); }
.nav-right { display: flex; align-items: center; gap: 4px; }
.socials { display: flex; align-items: center; gap: 2px; }
.soc { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; color: var(--ink); transition: background 0.15s ease; }
a.soc:hover { background: var(--paper-2); }
.soc.is-inert { color: var(--ink-3); opacity: 0.55; cursor: default; }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.2s ease; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.mnav { padding: 6px var(--gut) 14px; display: grid; gap: 4px; border-top: 1px solid var(--rule); }
.mnav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-sm); font-weight: 600; font-size: 16px; background: var(--card); }

/* status */
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex: none; animation: livepulse 2.2s ease-in-out infinite; box-shadow: 0 0 0 0 var(--live-ring); }
html[data-mstatus="down"] .dot, html[data-mstatus="pending"] .dot { background: var(--rule-2); animation: none; }
html[data-mstatus="retry"] .dot { animation-duration: 0.8s; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 var(--live-ring); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--paper-2); font: 500 12px var(--mono); color: var(--ink-2); white-space: nowrap; }

/* ticker */
.tape { border-bottom: 1px solid var(--rule); height: 36px; display: flex; align-items: center; overflow: hidden; position: relative; font: 12px var(--mono); }
.tape-tag { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px; height: 100%; color: var(--ink-3); background: var(--paper); z-index: 2; box-shadow: 8px 0 12px -6px var(--paper); }
.tape-view { overflow: hidden; flex: 1; min-width: 0; }
.tape-track { display: flex; width: max-content; white-space: nowrap; animation: tape 90s linear infinite; will-change: transform; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-run { display: inline-flex; flex: none; }
.tape-item { display: inline-flex; align-items: center; gap: 7px; padding: 0 16px; color: var(--ink-3); }
.tape-item b { color: var(--ink); font-weight: 500; }
.tape-item .up { color: var(--on-up); }
.tape-item .dn { color: var(--on-down); }
@keyframes tape { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* buttons */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px / 1 var(--display); letter-spacing: -0.01em; border: 0; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; white-space: nowrap; }
.b:active { transform: translateY(1px); }
.b-ink { background: var(--ink); color: var(--paper); }
.b-ink:hover { background: var(--ink-hover); }
.b-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule-2); }
.b-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.b.sm { height: 44px; padding: 0 18px; font-size: 14px; }
.row-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; box-shadow: inset 0 0 0 1.5px var(--rule-2); font: 600 13px var(--display); transition: background 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.copied { background: var(--ink); color: var(--paper); box-shadow: none; }

/* hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 300px; grid-template-rows: auto 1fr auto; min-height: min(940px, calc(100vh - 64px)); max-width: var(--max); margin: 0 auto; padding: 40px var(--gut) 28px; gap: 0 24px; }
.mesh { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.mesh i { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.mesh i:nth-child(1) { width: 52%; height: 60%; left: -8%; top: -10%; background: radial-gradient(circle, var(--mesh-a), transparent 70%); animation: drift1 22s ease-in-out infinite alternate; }
.mesh i:nth-child(2) { width: 46%; height: 56%; right: 12%; top: 8%; background: radial-gradient(circle, var(--mesh-b), transparent 70%); animation: drift2 26s ease-in-out infinite alternate; }
.mesh i:nth-child(4) { width: 36%; height: 44%; right: -6%; bottom: 4%; background: radial-gradient(circle, var(--mesh-d), transparent 70%); animation: drift2 24s ease-in-out infinite alternate-reverse; }
.mesh i:nth-child(3) { width: 40%; height: 50%; left: 30%; bottom: -20%; background: radial-gradient(circle, var(--mesh-c), transparent 70%); animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(14%, 10%, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-12%, 14%, 0) scale(0.9); } }
@keyframes drift3 { to { transform: translate3d(10%, -16%, 0) scale(1.2); } }
.hero-copy { grid-column: 1; grid-row: 1 / 3; position: relative; z-index: 2; padding-top: 28px; }
.hero-copy .display { font-size: clamp(64px, 7.6vw, 132px); margin-top: 18px; }
.lede { font-size: 18.5px; line-height: 1.5; color: var(--ink-2); max-width: 470px; margin: 30px 0; letter-spacing: -0.005em; }
.hint { display: flex; align-items: center; gap: 10px; margin-top: 26px; font: 13px var(--mono); color: var(--ink-3); }
.hint-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--ring-soft); animation: pulse 2.2s ease-in-out infinite; flex: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.hero-stage { position: absolute; inset: -30px 330px -30px 34%; z-index: 1; touch-action: pan-y; }
.stage-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.stage-svg [data-depth] { will-change: transform; }
.dotfill { fill: var(--rule-2); }
.ring { fill: none; stroke: var(--rule); stroke-width: 1.2; }
.rack { fill: var(--card); stroke: var(--rule); stroke-width: 1.2; filter: drop-shadow(0 30px 40px var(--edge)); }
.rack-strip { fill: var(--paper-2); }
.jack-o { fill: var(--paper-2); stroke: var(--rule-2); stroke-width: 3; transition: stroke 0.25s ease; }
.jack-i { fill: var(--ink); transition: fill 0.25s ease; }
.jack[data-jack="0"].on .jack-i, .plug[data-jack="0"] { fill: var(--c-orange); }
.jack[data-jack="1"].on .jack-i, .plug[data-jack="1"] { fill: var(--c-blue); }
.jack[data-jack="2"].on .jack-i, .plug[data-jack="2"] { fill: var(--c-yellow); }
.jack[data-jack="3"].on .jack-i, .plug[data-jack="3"] { fill: var(--c-green); }
.jack[data-jack="4"].on .jack-i, .plug[data-jack="4"] { fill: var(--c-magenta); }
.jack[data-jack="5"].on .jack-i { fill: var(--ink); }
.jack.on .jack-o { stroke: var(--ink); }
.cable { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; opacity: 0.12; transition: opacity 0.3s ease; }
.plug { fill: var(--ink); opacity: 0.12; transition: opacity 0.3s ease; }
.cable.on, .plug.on { opacity: 1; }
.sway { transform-box: fill-box; transform-origin: 50% 0; animation: sway 7s ease-in-out infinite alternate; }
.sway.s1 { animation-duration: 8.5s; animation-delay: -2s; }
.sway.s2 { animation-duration: 6.4s; animation-delay: -4s; }
.sway.s3 { animation-duration: 9s; animation-delay: -1s; }
.sway.s4 { animation-duration: 7.7s; animation-delay: -3s; }
.sway.s5 { animation-duration: 8s; animation-delay: -5s; }
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
.tags { position: absolute; inset: 0; pointer-events: none; }
.cable-tag { position: absolute; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px; border: 0; background: var(--card); color: var(--ink); font: 600 13px var(--display); white-space: nowrap; box-shadow: var(--shadow-tag); transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease; z-index: 3; pointer-events: auto; }
.cable-tag i, .chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); display: inline-block; box-shadow: inset 0 0 0 1.5px var(--rule-2); }
.cable-tag.hov { transform: translate(-50%, -2px); box-shadow: var(--shadow-tag-hi); }
.cable-tag.off, .chip.off { opacity: 0.55; }
.cable-tag:not(.off) i, .chip:not(.off) i { box-shadow: 0 0 0 3px var(--ring-soft); }
.readout { grid-column: 3; grid-row: 2; align-self: center; position: relative; z-index: 2; }
.readout-title { display: flex; align-items: center; gap: 10px; font: 800 28px / 1.1 var(--display); letter-spacing: -0.03em; margin: 10px 0; }
.readout-title i { width: 11px; height: 11px; border-radius: 50%; flex: none; background: var(--ink); }
.readout-text { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin: 0 0 18px; min-height: 90px; }
.jack-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.jack-list li { display: block; border-bottom: 1px solid var(--rule); }
.jack-list button { width: 100%; min-height: 44px; display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border: 0; background: transparent; text-align: left; font: 13px var(--mono); color: var(--ink-3); transition: color 0.25s ease; }
.jack-list button.on { color: var(--ink); }
.jack-dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--rule-2); transition: background 0.25s ease, box-shadow 0.25s ease; }
.jack-list button.on .jack-dot { background: var(--ink); box-shadow: 0 0 0 3px var(--ring-soft); }
.jack-val { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.readout-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font: 12px var(--mono); color: var(--ink-3); gap: 12px; }
.module-row { grid-column: 1 / -1; grid-row: 3; display: none; gap: 8px; flex-wrap: wrap; position: relative; z-index: 2; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 15px; border-radius: 999px; border: 0; background: var(--card); font: 600 13.5px var(--display); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }

/* sections */
.sec { max-width: var(--max); margin: 0 auto; padding: 150px var(--gut) 40px; }
.sec-head { display: block; max-width: 760px; margin-bottom: 48px; }
.h2 { font: 800 clamp(44px, 5.4vw, 88px) / 0.92 var(--display); font-variation-settings: "opsz" 96, "wdth" 92; letter-spacing: -0.045em; margin: 16px 0 22px; }
.sec-lede { font-size: 19px; line-height: 1.5; color: var(--ink-2); margin: 0; max-width: 640px; }
.sec.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.sec.split .sec-head { margin: 0; }
.sec-head .row-btns { margin-top: 30px; }
.card { background: var(--card); border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 3.5px var(--ink); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper-2); }
.seg button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; font: 600 13.5px var(--display); color: var(--ink-2); transition: background 0.15s ease, color 0.15s ease; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px var(--edge); }
.seg.sm button { padding: 0 13px; font-size: 12.5px; }
.seg.dark { background: var(--ink-hover); }
.seg.dark button { color: var(--code-dim); }
.seg.dark button.on { background: var(--ink-2); color: var(--card); box-shadow: none; }

/* spotlight */
[data-spot] { position: relative; }
[data-spot]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.25s ease; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 62%); }
[data-spot]:hover::after { opacity: 1; }
tr[data-spot]::after { display: none; }
tr[data-spot]:hover { background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--spot-row), transparent 70%); }

/* reveal */
html.anim [data-reveal]:not(.in) { opacity: 0; }

/* trace */
.trace { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; }
.trace-steps { padding: 6vh 0 30vh; }
.trace-step { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.3; transition: opacity 0.35s ease; }
.trace-step.on { opacity: 1; }
.trace-step h3 { font: 800 32px / 1.05 var(--display); letter-spacing: -0.03em; margin: 12px 0; }
.trace-step p { font-size: 17px; line-height: 1.55; color: var(--ink-2); margin: 0; max-width: 440px; }
.trace-sticky { position: sticky; top: 170px; align-self: start; padding-top: 4vh; }
.trace-card { padding: 22px; }
.trace-svg { width: 100%; height: auto; margin: 26px 0 10px; overflow: visible; }
.tl { fill: none; stroke: var(--rule-2); stroke-width: 4; stroke-linecap: round; }
.tl-on { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; transition: d 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tn circle { fill: var(--card); stroke: var(--rule-2); stroke-width: 3; transition: fill 0.25s ease, stroke 0.25s ease; }
.tn text { font: 12px var(--mono); fill: var(--ink-3); transition: fill 0.25s ease; }
.tn.on circle { fill: var(--ink); stroke: var(--ink); }
.tn.on text { fill: var(--ink); }
.receipt { margin: 0; border-top: 1.5px solid var(--ink); }
.receipt > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font: 13.5px var(--mono); }
.receipt dt { color: var(--ink-3); }
.receipt dd { margin: 0; text-align: right; }

/* board */
.statline { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 28px; margin-bottom: 40px; }
.statline > div { border-top: 1.5px solid var(--ink); padding: 12px 0 0; min-width: 0; }
.statline .v { font: 800 32px / 1.05 var(--display); letter-spacing: -0.04em; margin-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 14px; min-height: 60px; flex-wrap: wrap; }
.card-h > b { font: 700 19px / 1.15 var(--display); letter-spacing: -0.025em; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { font: 12px var(--mono); letter-spacing: 0.02em; color: var(--ink-3); font-weight: 400; text-align: left; padding: 10px 14px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.tbl th.r { text-align: right; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--rule); white-space: nowrap; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th:first-child, .tbl td:first-child { padding-left: 22px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 22px; }
.tbl tbody tr { transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.12s ease; }
.tbl tbody tr.enter { opacity: 0; transform: translateY(8px); }
.tbl td.num { font-size: 13.5px; }
.pair { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pair-name { font: 700 16px / 1.2 var(--display); letter-spacing: -0.02em; }
.pair-sub { font: 12px var(--mono); color: var(--ink-3); margin-top: 2px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.ticon { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 500 12px var(--mono); color: var(--ink); flex: none; overflow: hidden; box-shadow: inset 0 0 0 1px var(--edge); background: var(--tint-yellow); }
.ticon.lg { width: 48px; height: 48px; font-size: 16px; }
.ticon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ticon[data-tone="1"] { background: var(--tint-orange); }
.ticon[data-tone="2"] { background: var(--tint-green); }
.ticon[data-tone="3"] { background: var(--tint-blue); }
.ticon[data-tone="4"] { background: var(--tint-magenta); }
.chg { font-weight: 500; color: var(--on-up); }
.chg.dn { color: var(--on-down); }
.skel { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--skel-a), var(--skel-b), var(--skel-a)); background-size: 200% 100%; animation: sk 1.2s infinite; }
.skel.circle { width: 32px; height: 32px; border-radius: 50%; }
.skel.w1 { width: 90px; } .skel.w2 { width: 60px; margin-left: auto; } .skel.w3 { width: 44px; margin-left: auto; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.flash { animation: flash 0.9s ease-out; border-radius: 4px; }
.flash.fl-up { animation-name: flash-up; }
.flash.fl-dn { animation-name: flash-down; }
@keyframes flash-up { 0% { background-color: var(--flash-up); } 100% { background-color: transparent; } }
@keyframes flash-down { 0% { background-color: var(--flash-down); } 100% { background-color: transparent; } }
@keyframes flash { 0% { background-color: var(--flash); } 100% { background-color: transparent; } }
.note-line { padding: 12px 22px 16px; font: 12.5px var(--mono); color: var(--ink-3); min-height: 44px; display: flex; align-items: center; }
.note-line.err { color: var(--ink); }

/* scope list */
.coins { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.coin-col { background: var(--card); border-radius: var(--r-lg); padding: 10px 26px 16px; box-shadow: var(--shadow); }
.col-h { padding: 16px 0 10px; }
.coin-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--rule); }
.coin-row b { display: block; font: 700 18px var(--display); letter-spacing: -0.02em; }
.coin-row span { font: 12.5px var(--mono); color: var(--ink-3); }
.coin-row em { font-style: normal; font-size: 13.5px; color: var(--ink-2); max-width: 220px; text-align: right; }
.plug-ico { width: 30px; height: 30px; border-radius: 50%; background: var(--paper-3); position: relative; box-shadow: inset 0 0 0 4px var(--rule-2); display: block; }
.plug-ico::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--ink); }
.coin-row.ok .plug-ico { background: var(--ink); box-shadow: inset 0 0 0 4px var(--ink-2); }
.coin-row.ok .plug-ico::after { background: var(--card); }
.coin-row.no .plug-ico::before { content: ""; position: absolute; left: -3px; right: -3px; top: 13px; height: 3px; background: var(--ink); transform: rotate(-40deg); z-index: 1; border-radius: 2px; }
.coin-row.no b { color: var(--ink-2); }

/* gauges */
.mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mod { background: var(--card); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.mod header { display: flex; align-items: center; gap: 9px; font: 700 17px var(--display); letter-spacing: -0.02em; flex-wrap: wrap; }
.mod header i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--ink)); }
.mod header .mono-label { width: 100%; font-size: 11px; }
.mod-big { font: 800 44px / 1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.mod p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); flex: 1; }
.meter { height: 8px; border-radius: 8px; background: var(--paper-2); overflow: hidden; }
.meter b { display: block; height: 100%; width: 0; background: var(--c, var(--ink)); border-radius: 8px; transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* spotlight card */
.nft-stage { perspective: 1100px; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 30px 0; }
.nft { width: min(420px, 100%); border-radius: 26px; padding: 26px; display: flex; flex-direction: column; gap: 18px; background: radial-gradient(120% 80% at 10% 0%, var(--nft-a), var(--nft-b) 45%, var(--nft-c)); box-shadow: var(--shadow-nft); transition: transform 0.2s ease-out; transform-style: preserve-3d; min-height: 460px; }
.nft-top { display: flex; justify-content: space-between; align-items: center; }
.lock { font: 12px var(--mono); padding: 6px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.lock.on { background: var(--ink); color: var(--paper); }
.sp-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nft-name { display: flex; flex-direction: column; min-width: 0; }
.nft-name b { font: 700 18px var(--display); letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nft-name span { font: 12px var(--mono); color: var(--ink-3); }
.nft-pair { font: 800 56px / 0.95 var(--display); letter-spacing: -0.045em; margin-top: auto; overflow-wrap: anywhere; }
.range-bar { position: relative; height: 12px; border-radius: 12px; background: var(--paper-2); overflow: hidden; }
.range-bar b { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: var(--ink); border-radius: 12px; transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.range-labels { display: flex; justify-content: space-between; margin-top: 10px; }
.nft-dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid var(--rule); padding-top: 14px; }
.nft-dl dt { font: 11px var(--mono); color: var(--ink-3); }
.nft-dl dd { margin: 4px 0 0; font: 700 15px var(--mono); overflow: hidden; text-overflow: ellipsis; }
.nft-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.nft-msg { font: 13px var(--mono); color: var(--ink-2); min-height: 18px; }

/* depth filter */
.caps-card { padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.caps-row { display: flex; gap: 40px; flex-wrap: wrap; }
.caps-row > div { display: flex; flex-direction: column; gap: 6px; }
.caps-row b { font: 800 48px / 1 var(--display); letter-spacing: -0.04em; }
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; }
.slider::-webkit-slider-runnable-track { height: 2px; background: var(--rule-2); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); margin-top: -12px; cursor: grab; box-shadow: 0 0 0 5px var(--card); }
.slider::-moz-range-track { height: 2px; background: var(--rule-2); }
.slider::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); border: 0; }
.cap-track { position: relative; height: 14px; border-radius: 14px; background: var(--paper-2); overflow: hidden; }
.cap-track b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 14px; background: var(--ink); transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.verdict { font: 700 20px var(--display); letter-spacing: -0.02em; }

/* roadmap */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow-step { position: relative; background: var(--card); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
.flow-step:not(:last-child)::after { content: ""; position: absolute; right: -16px; top: 50%; width: 16px; height: 4px; background: var(--ink); border-radius: 4px; z-index: 1; }
.flow-step h3 { font: 800 26px var(--display); letter-spacing: -0.03em; margin: 30px 0 8px; }
.flow-step p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.recs { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 48px; }
.rec { display: flex; flex-direction: column; gap: 6px; border-top: 1.5px solid var(--ink); padding-top: 12px; }
.rec b { font: 800 30px / 1 var(--display); letter-spacing: -0.04em; }
.rec[data-state="absent"] b, .rec[data-state="unconfirmed"] b { color: var(--ink-3); }

/* code */
.code-card { background: var(--code-bg); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow-code); min-width: 0; }
.code-card pre { margin: 14px 6px 6px; overflow-x: auto; }
.code-card code { font: 13.5px / 1.7 var(--mono); color: var(--code-ink); white-space: pre; }
.code-card .k { color: var(--code-key); font-weight: 500; }
.code-card .c { color: var(--code-dim); }

.closing { max-width: var(--max); margin: 0 auto; padding: 170px var(--gut) 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 34px; }
.closing .display { font-size: clamp(80px, 13vw, 230px); }
.foot { border-top: 1px solid var(--rule); }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 18px var(--gut); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font: 12.5px var(--mono); color: var(--ink-3); }
.brand-sm { font: 800 18px var(--display); letter-spacing: -0.04em; color: var(--ink); }
.foot-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 10px; margin-left: auto; color: var(--ink); }

@media (max-width: 1240px) { .mods { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto 520px auto auto; padding: 24px 20px; min-height: 0; }
  .hero-copy { grid-row: 1; padding-top: 8px; }
  .hero-stage { position: relative; inset: auto; grid-row: 2; margin: 0 -20px; }
  .readout { grid-column: 1; grid-row: 4; margin-top: 10px; }
  .module-row { display: flex; grid-row: 3; }
  .tags { display: none; }
  .sec { padding: 96px 20px 20px; }
  .sec.split, .trace { grid-template-columns: 1fr; gap: 36px; }
  .trace-sticky { position: sticky; top: 140px; z-index: 2; order: -1; }
  .trace-step { min-height: 34vh; }
  .coins, .flow { grid-template-columns: 1fr; }
  .flow-step:not(:last-child)::after { display: none; }
  .closing { padding: 110px 20px 80px; }
  .coin-row { grid-template-columns: 34px 1fr; }
  .coin-row em { grid-column: 2; text-align: left; max-width: none; }
}
@media (max-width: 960px) {
  :root { --gut: 20px; }
  .nav-links { display: none; }
  .burger { display: inline-block; }
  .nav-right { margin-left: auto; }
  .nav-in { height: 60px; gap: 12px; }
  html { scroll-padding-top: 130px; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  .ca { gap: 10px; padding: 6px var(--gut); }
  .ca-copy { gap: 10px; padding: 4px 10px; }
  .ca-label { padding: 5px 9px; }
  .nav-in { height: 56px; }
  .brand { font-size: 22px; }
  .mods { grid-template-columns: 1fr; }
  .lede { font-size: 17px; }
  .sec-lede { font-size: 17px; }
  .trace-sticky { top: 120px; }
  .hero { grid-template-rows: auto 440px auto auto; }
  .stack thead { display: none; }
  .stack, .stack tbody { display: block; }
  .stack tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
  .stack td { display: flex; justify-content: space-between; align-items: center; padding: 0; border: 0; white-space: normal; min-height: 22px; }
  .stack td.r { text-align: left; }
  .stack td:first-child, .stack td:last-child { padding: 0; }
  .stack td[data-l]::before { content: attr(data-l); font: 11px var(--mono); color: var(--ink-3); margin-right: 8px; }
  .stack td.rk { display: none; }
  .stack td.tk { grid-column: 1 / -1; }
  .stack td.ad { grid-column: 1 / -1; justify-content: flex-start; }
  .caps-row b { font-size: 38px; }
  .nft-pair { font-size: 44px; }
  .closing .display { font-size: clamp(64px, 24vw, 120px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.anim [data-reveal]:not(.in) { opacity: 1; }
  .tape-view { overflow-x: auto; }
  .tape-track { width: max-content; }
}

/* hero cables take their socket colour */
.cable[data-jack="0"] { stroke: var(--c-orange); }
.cable[data-jack="1"] { stroke: var(--c-blue); }
.cable[data-jack="2"] { stroke: var(--c-yellow); }
.cable[data-jack="3"] { stroke: var(--c-green); }
.cable[data-jack="4"] { stroke: var(--c-magenta); }
.plug[data-jack="5"] { fill: var(--ink); }
.cable-tag[data-jack="0"] i, .chip[data-jack="0"] i, .jack-list [data-jack="0"] .jack-dot { --dot: var(--c-orange); }
.cable-tag[data-jack="1"] i, .chip[data-jack="1"] i, .jack-list [data-jack="1"] .jack-dot { --dot: var(--c-blue); }
.cable-tag[data-jack="2"] i, .chip[data-jack="2"] i, .jack-list [data-jack="2"] .jack-dot { --dot: var(--c-yellow); }
.cable-tag[data-jack="3"] i, .chip[data-jack="3"] i, .jack-list [data-jack="3"] .jack-dot { --dot: var(--c-green); }
.cable-tag[data-jack="4"] i, .chip[data-jack="4"] i, .jack-list [data-jack="4"] .jack-dot { --dot: var(--c-magenta); }
.cable-tag[data-jack="5"] i, .chip[data-jack="5"] i, .jack-list [data-jack="5"] .jack-dot { --dot: var(--ink); }
.cable-tag:not(.off) i, .chip:not(.off) i { background: var(--dot, var(--ink)); }
.jack-list button.on .jack-dot { background: var(--dot, var(--ink)); }
.readout-title i { background: var(--dot, var(--ink)); transition: background 0.3s ease; }
.wire { fill: var(--card); stroke: var(--ink); stroke-width: 3; opacity: 0; transition: opacity 0.25s ease; }
.wire.on { opacity: 1; }
.mod-pend { font: 500 15px / 1 var(--mono); letter-spacing: 0.02em; color: var(--ink-3); padding: 14px 0 15px; }
.flow-step::before { content: ""; position: absolute; left: 24px; top: 24px; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--ink)); }
.flow-step .flow-n { padding-left: 20px; }

/* volume curve card */
.clock { padding: 24px 26px 18px; margin-bottom: 24px; }
.lc-top { display: flex; align-items: flex-end; gap: 32px; margin-bottom: 18px; flex-wrap: wrap; }
.lc-time { font: 800 64px / 1 var(--display); letter-spacing: -0.04em; margin-top: 6px; overflow-wrap: anywhere; }
.lc-price { display: flex; flex-direction: column; gap: 6px; }
.lc-price b { font: 600 20px var(--mono); }
.lc-chart svg { width: 100%; height: 190px; display: block; }
.lc-chart .area { fill: var(--tint-blue); opacity: 0.55; }
.lc-chart .ln { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lc-chart .ln-v { stroke: var(--ink); }
.lc-chart .ln-d { stroke: var(--c-blue); }
.lc-chart .cur { stroke: var(--rule-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.lc-chart { position: relative; }
.lc-chart .pt { position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--card); transform: translate(-50%, -50%); transition: left 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease; pointer-events: none; }
.receipt dd.pend { color: var(--ink-3); }
.lc-legend { display: flex; gap: 18px; margin-top: 6px; font: 12px var(--mono); color: var(--ink-3); }
.lc-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; background: var(--c-blue); }
.lc-legend i.k { background: var(--ink); }

@media (max-width: 1100px) { .lc-time { font-size: 44px; } }

/* ---------- visual upgrade ---------- */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.2; mix-blend-mode: multiply; 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='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>"); }
.particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* typography */
.display { letter-spacing: -0.055em; font-weight: 800; }
.h2 { letter-spacing: -0.05em; }
.lede, .sec-lede { font-weight: 420; }
.mono-label { font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }

/* hero depth */
.mesh i { filter: blur(90px); }
.mesh i:nth-child(1) { background: radial-gradient(circle, var(--fx-1), transparent 68%); }
.mesh i:nth-child(2) { background: radial-gradient(circle, var(--fx-2), transparent 68%); }
.mesh i:nth-child(3) { background: radial-gradient(circle, var(--fx-3), transparent 68%); }
.mesh i:nth-child(4) { background: radial-gradient(circle, var(--fx-4), transparent 68%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 0%, transparent 40%, var(--fx-5) 100%); }

/* CTA */
.b-cta { position: relative; overflow: hidden; isolation: isolate; height: 60px; padding: 0 34px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; background: var(--ink); color: var(--paper); box-shadow: 0 18px 40px -16px var(--fx-6); transition: box-shadow 0.25s ease, background 0.2s ease; will-change: transform; }
.b-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, var(--fx-7) 50%, transparent 70%); transform: translateX(-120%); }
.b-cta:hover { background: var(--ink); box-shadow: 0 0 0 4px var(--fx-8), 0 0 38px 4px var(--fx-8), 0 22px 44px -16px var(--fx-9); }
.b-cta:hover::before { animation: shimmer 0.9s ease; }
.b-cta .arr { display: inline-block; transition: transform 0.25s ease; }
.b-cta:hover .arr { transform: translateX(5px); }
.b-cta .rip { position: absolute; z-index: -1; border-radius: 50%; background: var(--fx-10); transform: scale(0); animation: ripple 0.65s ease-out forwards; pointer-events: none; }
@keyframes shimmer { to { transform: translateX(120%); } }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.hero-copy .row-btns { align-items: center; gap: 14px; }

/* cards */
.mod, .flow-step, .coin-col, .caps-card, .clock { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease; }
.mod:hover, .flow-step:hover, .coin-col:hover, .caps-card:hover, .clock:hover { transition: transform 0.08s linear, box-shadow 0.3s ease; box-shadow: 0 0 0 1.5px var(--glow-ring), 0 0 34px -6px var(--glow-soft), var(--shadow-lift); }
[data-spot]::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--fx-11), transparent 62%); }

/* load sequence */
html.anim .top, html.anim .tape { animation: loadin 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
html.anim .tape { animation-delay: 0.12s; }
html.anim .hero .mesh { animation: meshin 1.4s ease both; }
html.anim .hero-stage { animation: stagein 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s both; }
@keyframes loadin { from { opacity: 0; transform: translateY(-14px); } }
@keyframes meshin { from { opacity: 0; transform: scale(1.12); } }
@keyframes stagein { from { opacity: 0; transform: scale(0.94) translateY(24px); } }

/* CA slot animated border */
@property --ca-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ca-copy { background: linear-gradient(var(--card), var(--card)) padding-box, conic-gradient(from var(--ca-a), var(--c-orange), var(--c-yellow), var(--c-green), var(--c-blue), var(--c-magenta), var(--c-orange)) border-box; border: 2px solid transparent; box-shadow: none; animation: caspin 6s linear infinite; }
.ca-copy:hover { box-shadow: 0 0 22px -4px var(--fx-12); }
@keyframes caspin { to { --ca-a: 360deg; } }

/* status pill */
.dot { position: relative; animation: livepulse2 1.8s ease-out infinite; }
.dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--live); opacity: 0; animation: ringout 1.8s ease-out infinite; }
html[data-mstatus="down"] .dot, html[data-mstatus="pending"] .dot { animation: none; box-shadow: none; }
html[data-mstatus="down"] .dot::after, html[data-mstatus="pending"] .dot::after { display: none; }
html[data-mstatus="retry"] .dot, html[data-mstatus="retry"] .dot::after { animation-duration: 0.7s; }
.pill { box-shadow: inset 0 0 0 1px var(--rule), 0 0 18px -6px var(--live-ring); }
@keyframes livepulse2 { 0% { box-shadow: 0 0 0 0 var(--live-ring), 0 0 8px 1px var(--live-ring); } 70% { box-shadow: 0 0 0 9px transparent, 0 0 12px 2px var(--live-ring); } 100% { box-shadow: 0 0 0 0 transparent, 0 0 8px 1px var(--live-ring); } }
@keyframes ringout { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }

@media (hover: none) { .mod, .flow-step, .coin-col, .caps-card, .clock { transform: none; } }
@media (max-width: 640px) { .b-cta { width: 100%; } .grain { opacity: 0.14; } }

@media (prefers-reduced-motion: reduce) {
  .particles, .b-cta .rip, .grain { display: none !important; }
  .mod, .flow-step, .coin-col, .caps-card, .clock { transform: none !important; }
  .ca-copy { animation: none !important; }
  .dot::after { display: none; }
  html.anim .top, html.anim .tape, html.anim .hero .mesh, html.anim .hero-stage { animation: none !important; opacity: 1; transform: none; }
}
