/* Measured off the reference stylesheet: ease .16,1,.3,1; hero grid 5fr/6fr with 56px gap;
   h1 56px/.98 with -.04em tracking (44px on narrow); stat value 24px over 13px label;
   pill tabs 36px high; section heads 24px/1.15; skeleton breathe 1.4s; ticker loop linear;
   radii 18/12/10/999; page 1200px, gutters 24px then 16px. Colours come from tokens.css only. */
:root {
  --bg: var(--ink);
  --surface: color-mix(in srgb, var(--bone) 5%, var(--ink));
  --surface-2: color-mix(in srgb, var(--bone) 9%, var(--ink));
  --text: var(--bone);
  --text-2: var(--dust);
  --rule: color-mix(in srgb, var(--bone) 14%, transparent);
  --rule-2: color-mix(in srgb, var(--bone) 26%, transparent);
  --up: var(--pale-gold);
  --down: var(--dust);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --page: 1200px;
  --gut: 24px;
  --r-card: 18px; --r-plate: 12px; --r-input: 10px; --r-pill: 999px;
  --tap: 44px;
}
@media (max-width: 680px) { :root { --gut: 16px; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--font); font-variant-numeric: tabular-nums; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: 100%; max-width: calc(var(--page) + var(--gut) * 2); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.fine { font-size: 13px; color: var(--text-2); }
.r { text-align: right; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

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

/* header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ink) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); }
.top-in { max-width: calc(var(--page) + var(--gut) * 2); margin: 0 auto; padding: 8px var(--gut); display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.03em; text-decoration: none; min-height: var(--tap); }
.brand img { border-radius: 50%; background: var(--orange); }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); justify-content: center; font-size: 16px; font-weight: 500; text-decoration: none; padding: 0 4px; border-bottom: 2px solid transparent; color: var(--text-2); transition: color .2s var(--ease), border-color .2s var(--ease); }
.nav a:hover { color: var(--text); border-bottom-color: var(--orange); }
.social { margin-left: auto; display: flex; gap: 4px; }
.icon-btn { width: var(--tap); height: var(--tap); display: inline-grid; place-items: center; border-radius: var(--r-pill); color: var(--text); border: 1px solid var(--rule); background: transparent; transition: background .2s var(--ease), border-color .2s var(--ease), transform .3s var(--ease); }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
a.icon-btn:hover { background: var(--surface-2); border-color: var(--orange); transform: translateY(-1px); }
.icon-btn.inert { opacity: .38; cursor: default; border-style: dashed; }

/* contract slot */
.ca-band { border-top: 1px solid var(--rule); background: var(--surface); }
.ca-in { max-width: calc(var(--page) + var(--gut) * 2); margin: 0 auto; padding: 10px var(--gut); display: flex; align-items: center; gap: 14px; min-height: 56px; }
.ca-label { flex: none; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.ca-val { flex: 1; min-width: 0; font: 700 clamp(16px, 4.8vw, 24px)/1.25 var(--mono); letter-spacing: -.01em; overflow-wrap: anywhere; text-align: left; color: var(--text); }
.ca-val.pending { color: var(--text-2); font-family: var(--font); font-weight: 600; letter-spacing: .02em; }
button.ca-in { all: unset; box-sizing: border-box; width: 100%; max-width: calc(var(--page) + var(--gut) * 2); margin: 0 auto; padding: 10px var(--gut); display: flex; align-items: center; gap: 14px; min-height: 56px; cursor: pointer; }
button.ca-in:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
button.ca-in:hover .ca-val { color: var(--orange); }
.ca-fb { flex: none; min-width: 72px; text-align: right; font-size: 13px; font-weight: 600; color: var(--text-2); }
.ca-fb.ok { color: var(--pale-gold); }
@media (max-width: 680px) { .ca-in, button.ca-in { flex-wrap: wrap; gap: 4px 12px; } .ca-val { flex-basis: 100%; order: 3; } .ca-fb { margin-left: auto; } }

/* ticker */
.ticker { height: 40px; border-bottom: 1px solid var(--rule); overflow: hidden; position: relative; color: var(--text-2); font-weight: 500; font-size: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 24px calc(100% - 32px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, black 24px calc(100% - 32px), transparent 100%); }
.tk-track { display: flex; width: max-content; height: 100%; animation: tk-roll var(--tk-dur, 40s) linear infinite; }
.ticker:hover .tk-track, .ticker:focus-within .tk-track { animation-play-state: paused; }
.tk-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; height: 100%; white-space: nowrap; }
.tk-item b { color: var(--text); font-weight: 700; }
.tk-item .tile { width: 20px; height: 20px; font-size: 10px; }
.tk-item .up { color: var(--up); } .tk-item .down { color: var(--down); }
.tk-item .skeleton { width: 110px; }
@keyframes tk-roll { to { transform: translateX(-50%); } }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 56px; align-items: stretch; padding-top: 56px; padding-bottom: 72px; position: relative; overflow-x: clip; }
.hero-copy { display: grid; align-content: center; gap: 22px; position: relative; z-index: 1; }
.hero h1 { margin: 0; font-size: 56px; line-height: .98; letter-spacing: -.04em; text-wrap: balance; font-weight: 800; }
.lede { margin: 0; font-size: 18px; color: var(--text-2); max-width: 46rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 18px; border-radius: var(--r-pill); font: 700 15px/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .35s var(--ease), background .2s, border-color .2s; }
.btn.lg { height: 52px; padding: 0 22px; font-size: 16px; }
.btn.primary { background: var(--orange); color: var(--ink); }
.btn.primary:hover { transform: translateY(-2px); background: var(--gold); }
.btn.ghost { border-color: var(--rule-2); color: var(--text); }
.btn.ghost:hover { border-color: var(--orange); transform: translateY(-2px); }
.hero-stats { margin: 4px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 12px; }
.stat { display: flex; flex-direction: column; min-width: 120px; padding: 10px 14px; border-radius: var(--r-plate); border: 1px solid var(--rule); background: var(--surface); }
.stat dd { order: 1; margin: 0; font-size: 24px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; min-height: 28px; }
.stat dt { order: 2; font-size: 13px; color: var(--text-2); }

.hero-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: end; }
.hero-art > * { position: absolute; will-change: transform; }
.mesh { inset: -8%; border-radius: 50%; filter: blur(8px);
  background: radial-gradient(40% 40% at 30% 30%, var(--orange), transparent 70%), radial-gradient(45% 45% at 72% 38%, var(--amber), transparent 70%), radial-gradient(50% 50% at 52% 78%, var(--deep-ember), transparent 72%), radial-gradient(30% 30% at 62% 20%, var(--gold), transparent 70%);
  background-size: 140% 140%; animation: drift 16s ease-in-out infinite alternate; opacity: .9; }
@keyframes drift { to { background-position: 100% 80%; rotate: 14deg; scale: 1.05; } }
.art-logo { left: 18%; top: 18%; width: 64%; height: auto; filter: drop-shadow(0 18px 40px color-mix(in srgb, var(--night) 70%, transparent)); }
.orbit { inset: 0; width: 100%; height: 100%; color: var(--pale-gold); opacity: .8; }
.orbit.o1 { rotate: -18deg; animation: spin 38s linear infinite; }
.orbit.o2 { color: var(--gold); opacity: .55; rotate: 24deg; animation: spin 52s linear infinite reverse; }
@keyframes spin { to { rotate: 360deg; } }
.spark { width: 28px; height: 28px; color: var(--pale-gold); animation: twinkle 3.2s ease-in-out infinite; }
.spark.s1 { left: 78%; top: 8%; } .spark.s2 { left: 10%; top: 80%; width: 20px; height: 20px; animation-delay: -1.4s; }
@keyframes twinkle { 50% { opacity: .3; scale: .7; } }
.bead { border-radius: 50%; background: var(--pale-gold); box-shadow: 0 0 18px var(--gold); animation: twinkle 4s ease-in-out infinite; }
.bead.b1 { left: 20%; top: 24%; width: 14px; height: 14px; } .bead.b2 { left: 90%; top: 52%; width: 18px; height: 18px; animation-delay: -2s; } .bead.b3 { left: 70%; top: 88%; width: 10px; height: 10px; animation-delay: -1s; }

/* chips */
.state-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--rule); background: var(--surface); width: fit-content; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dust); flex: none; position: relative; }
.state-chip.live .dot { background: var(--orange); }
.state-chip.live .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--orange); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* sections */
.sec { padding-top: 56px; padding-bottom: 24px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; padding-bottom: 14px; }
.sec-head h2 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 14px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text-2); font: 500 15px/1 var(--font); cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; position: relative; }
.tabs button[aria-selected="true"] { background: var(--orange); color: var(--ink); font-weight: 700; }
.tabs button:hover:not([aria-selected="true"]) { background: var(--surface-2); color: var(--text); }

/* board */
.board { border-top: 1px solid var(--rule-2); }
.b-head, .b-row { display: grid; grid-template-columns: 2.5rem minmax(0, 2fr) minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1.1fr) var(--tap); align-items: center; gap: 12px; padding: 0 8px; }
.b-head { height: 40px; font-size: 13px; color: var(--text-2); border-bottom: 1px solid var(--rule); }
.b-row { position: relative; min-height: 64px; border-bottom: 1px solid var(--rule); font-size: 15px; transition: background .25s var(--ease); overflow: hidden; }
.b-row > * { min-width: 0; }
.b-row.in { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes rise { 0% { opacity: 0; transform: translateY(8px); } }
.b-row .rank { color: var(--text-2); font-size: 13px; }
.tok { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tok-t { min-width: 0; display: grid; }
.tok-t b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tok-t small { color: var(--text-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); color: var(--orange); font-weight: 800; font-size: 14px; border: 1px solid var(--rule); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.brand { background: transparent; border-color: transparent; }
.num { white-space: nowrap; }
.num.up { color: var(--up); } .num.down { color: var(--down); }
.flash-up { animation: flash-up .9s var(--ease); } .flash-down { animation: flash-down .9s var(--ease); }
@keyframes flash-up { 0% { background: color-mix(in srgb, var(--gold) 38%, transparent); } }
@keyframes flash-down { 0% { background: color-mix(in srgb, var(--smoke) 70%, transparent); } }
.copy-btn { width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: var(--r-pill); border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.copy-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.copy-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--rule-2); }
.copy-btn.done { color: var(--pale-gold); border-color: var(--pale-gold); }
.copy-ph { width: var(--tap); height: var(--tap); }

/* own lane */
.b-row.own { border-left: 2px solid var(--color-mint); background: color-mix(in srgb, var(--color-mint) 5%, transparent); animation: ownPulse 2s ease-in-out infinite; }
@keyframes ownPulse { 50% { background: color-mix(in srgb, var(--color-mint) 14%, transparent); } }
.b-row.own.in { animation: rise .55s var(--ease) both, ownPulse 2s ease-in-out .6s infinite; animation-delay: calc(var(--i, 0) * 45ms), .6s; }
.b-row.own .dots { letter-spacing: .3em; color: var(--text-2); }
a.b-row.own { text-decoration: none; color: inherit; }

/* skeleton */
.skeleton { display: block; background: color-mix(in srgb, var(--bone) 8%, transparent); border-radius: 6px; animation: breathe 1.4s ease-in-out infinite; height: 14px; }
.sk-num { width: 70px; height: 24px; }
@keyframes breathe { 50% { opacity: .45; } }
.board-note { margin: 0; padding: 14px 8px; color: var(--text-2); font-size: 14px; }
.board-note b { color: var(--orange); }

/* spotlight */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .3s var(--ease); pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--orange) 22%, transparent), transparent 70%); }
.spot:hover::before { opacity: 1; }
.b-row.spot::before { border-radius: 0; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { padding: 22px; border-radius: var(--r-card); border: 1px solid var(--rule); background: var(--surface); transition: transform .4s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-3px); border-color: var(--rule-2); }
.card h3 { margin: 8px 0; font-size: 20px; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--text-2); }
.idx { font: 700 13px var(--mono); color: var(--orange); }
.records { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 12px; }
.rec { padding: 16px 18px; border-radius: var(--r-plate); border: 1px solid var(--rule); background: var(--surface); display: grid; gap: 4px; }
.rec small { color: var(--text-2); font-size: 13px; }
.rec b { font-size: 18px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.rec.inert { border-style: dashed; } .rec.inert b { color: var(--text-2); font-weight: 600; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule-2); }
.faq summary { min-height: var(--tap); padding: 14px 0; cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 22px; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--text-2); max-width: 40rem; }
.foot { padding-top: 56px; padding-bottom: 48px; display: grid; gap: 10px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--rule); padding-top: 24px; }
.foot .brand { font-size: 18px; }
.foot p { margin: 0; }

/* reveal (spring driven from JS) */
.js .reveal { opacity: 0; }

/* responsive */
@media (max-width: 1099px) { .hero { column-gap: 32px; } .hero h1 { font-size: 48px; } .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 32px; } .hero-art { justify-self: center; max-width: 420px; order: -1; } .nav { display: none; } .hero h1 { font-size: 44px; letter-spacing: -.035em; } }
@media (max-width: 720px) {
  .hide-m { display: none; }
  .b-head, .b-row { grid-template-columns: 2rem minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .8fr) var(--tap); gap: 8px; }
  .b-row { min-height: 68px; font-size: 14px; }
  .tile { width: 36px; height: 36px; }
}
@media (max-width: 480px) { .hero h1 { font-size: 38px; } .cards { grid-template-columns: 1fr; } .lede { font-size: 16px; } .stat { flex: 1 1 100%; flex-direction: row; justify-content: space-between; align-items: center; } .stat dd { order: 2; } .stat dt { order: 1; } }
@media (max-width: 380px) { .brand { font-size: 20px; } .b-head, .b-row { grid-template-columns: 1.6rem minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .8fr) var(--tap); gap: 6px; padding: 0 4px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
