/* Layout, type scale and motion values are measured off the reference at 1440x900.
   No colour literals here: every colour is a token or a mix of tokens. */

@font-face {
  font-family: "Space Grotesk Variable";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 150px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
code { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
::selection { background: var(--leaf-pale); color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 16px; font-size: 14px; }
.skip:focus { top: 8px; }

/* scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--leaf), var(--brand), var(--brand-hot)); }

/* status dots and pills */
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand); opacity: 0; }
.dot-idle { background: var(--faint); }
.dot-idle::after { display: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 4px 10px; border: 1px solid var(--line); background: var(--bg);
  font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--ink); white-space: nowrap; }
.pill[data-status="live"] .dot::after { animation: pulse 2s var(--ease-out) infinite; }
.pill[data-status="loading"] .dot, .pill[data-status="retry"] .dot { background: var(--faint); animation: blink 1s ease-in-out infinite; }
.pill[data-status="error"] .dot { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.pill[data-status="stale"] .dot { background: var(--ink-soft); }
.chip { display: none; align-items: center; gap: 6px; min-height: 28px; padding: 4px 8px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; white-space: nowrap; }
.chip-k { color: var(--muted); }
.chip-v { color: var(--faint); }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 8px; height: 44px; flex: none; }
.brand img { width: 32px; height: 32px; }
.brand-word { font-size: 19px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.brand-tld { color: var(--accent-text); }
.nav { display: none; align-self: stretch; }
.nav-link { position: relative; display: inline-flex; align-items: center; padding: 0 10px; min-width: 44px; justify-content: center; font-size: 13px; color: var(--muted); transition: color var(--dur) var(--ease); }
.nav-link::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--dur) var(--ease); }
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--ink); }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.bar-right .pill { display: none; }
.socials { display: flex; align-items: center; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--ink); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
a.icon-btn:hover { background: var(--line); color: var(--brand-deep); }
.icon-btn.is-inert { color: var(--faint); cursor: default; }

/* contract address slot */
.ca { border-top: 1px solid var(--line); background: var(--accent-wash); }
.ca-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-block: 8px; min-height: 56px; }
.ca-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); flex: none; }
.ca-value { flex: 1 1 280px; min-width: 0; font-family: var(--font-mono); font-size: clamp(15px, 2.1vw, 26px); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; word-break: break-all; color: var(--ink); }
.ca-value.is-pending { color: var(--faint); font-weight: 400; letter-spacing: 0.02em; }
.ca-copy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); background: var(--bg); font-family: var(--font-mono); font-size: 12px; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.ca-copy:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ca-copy:disabled { opacity: 0.5; cursor: not-allowed; }
.ca-copy.is-copied { background: var(--brand); color: var(--paper); border-color: var(--brand); }

/* hero */
.hero { position: relative; overflow: clip; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.layer { position: absolute; inset: 0; transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0); will-change: transform; }
.mesh .blob { position: absolute; border-radius: 50%; filter: blur(64px); animation: drift 18s ease-in-out infinite alternate; }
.mesh .b1 { width: min(62vw, 880px); aspect-ratio: 1; right: -14%; top: -30%; background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--leaf) 46%, transparent), transparent 68%); }
.mesh .b2 { width: min(48vw, 680px); aspect-ratio: 1; left: -16%; bottom: -34%; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--mint-grey) 70%, transparent), transparent 68%); animation-duration: 24s; animation-delay: -6s; }
.mesh .b3 { width: min(34vw, 460px); aspect-ratio: 1; right: 22%; bottom: -18%; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--leaf-lit) 38%, transparent), transparent 70%); animation-duration: 21s; animation-delay: -12s; }
.grid-lines { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, var(--ink) 0%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, var(--ink) 0%, transparent 70%); opacity: 0.7; }
.bars { display: none; align-items: flex-end; justify-content: flex-end; gap: 14px; padding: 0 5% 0 0; }
.bars i { display: block; width: 44px; transform-origin: 50% 100%; background: linear-gradient(to top, color-mix(in srgb, var(--leaf) 4%, transparent), color-mix(in srgb, var(--leaf-lit) 24%, transparent)); border-top: 1px solid color-mix(in srgb, var(--brand) 36%, transparent); animation: bar-grow 900ms var(--ease-rise) both; }
.bars i:nth-child(1) { height: 16%; animation-delay: 80ms; } .bars i:nth-child(2) { height: 22%; animation-delay: 140ms; }
.bars i:nth-child(3) { height: 28%; animation-delay: 200ms; } .bars i:nth-child(4) { height: 36%; animation-delay: 260ms; }
.bars i:nth-child(5) { height: 44%; animation-delay: 320ms; } .bars i:nth-child(6) { height: 54%; animation-delay: 380ms; }
.bars i:nth-child(7) { height: 66%; animation-delay: 440ms; } .bars i:nth-child(8) { height: 78%; animation-delay: 500ms; }
.bars i:nth-child(9) { height: 92%; animation-delay: 560ms; }
.ring i { position: absolute; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--brand) 32%, transparent); }
.ring .ring-a { width: min(70vw, 980px); aspect-ratio: 2.6; left: 38%; top: 20%; transform: rotate(-9deg); animation: orbit 40s linear infinite; }
.ring .ring-b { width: min(52vw, 740px); aspect-ratio: 2.6; left: 46%; top: 30%; transform: rotate(7deg); border-color: color-mix(in srgb, var(--leaf) 40%, transparent); animation: orbit 56s linear infinite reverse; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-copy { padding-block: 48px 24px; }
.kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
h1 { margin-top: 24px; font-size: 44px; line-height: 1.02; font-weight: 400; letter-spacing: -0.03em; }
.lede { margin-top: 28px; max-width: 500px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.cta-row { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease); }
.btn-solid { padding: 12px 20px; background: var(--ink); color: var(--paper); font-weight: 500; }
.btn-solid:hover { background: var(--brand); }
.btn-text { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 6px; text-decoration-thickness: 1px; padding-inline: 2px; }
.btn-text:hover { text-decoration-color: var(--ink); }

.engine { padding-block: 24px 48px; }
.engine-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.engine-state { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.steps-live { position: relative; margin-top: 28px; }
.steps-live::before { content: ""; position: absolute; left: 11px; top: 28px; bottom: 28px; width: 1px; background: var(--line-strong); }
.s-step { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 20px 0; }
.s-num { font-family: var(--font-mono); font-size: 11px; color: var(--faint); padding-top: 12px; background: var(--bg); position: relative; z-index: 1; align-self: start; height: 40px; }
.s-title { font-size: 28px; line-height: 1.15; font-weight: 400; letter-spacing: -0.025em; }
.s-note { margin-top: 6px; font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--muted); }
.s-val { font-family: var(--font-mono); font-size: 13px; color: var(--faint); padding-top: 10px; text-align: right; }
.split { display: flex; height: 22px; margin-top: 12px; font-family: var(--font-mono); font-size: 10px; line-height: 22px; }
.split span { padding-inline: 8px; overflow: hidden; white-space: nowrap; }
.split-a { flex: 1 1 50%; background: var(--ink); color: var(--paper); animation: split-a 4s var(--ease) infinite; }
.split-b { flex: 1 1 50%; background: var(--brand); color: var(--paper); text-align: right; animation: split-b 4s var(--ease) infinite; }
.spin { display: inline-block; color: var(--brand); animation: spin 2.4s linear infinite; }
.engine-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.link-mono { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; transition: color var(--dur) var(--ease); }
.link-mono:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ticker */
.ticker-wrap { border-block: 1px solid var(--line); background: var(--bg); }
.ticker { position: relative; overflow: hidden; height: 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--ink) 6%, var(--ink) 94%, transparent); mask-image: linear-gradient(90deg, transparent, var(--ink) 6%, var(--ink) 94%, transparent); }
.ticker-track { display: flex; width: max-content; height: 100%; align-items: center; animation: marquee var(--marquee-dur, 70s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.tick { display: inline-flex; align-items: center; gap: 10px; padding-inline: 22px; height: 100%; font-family: var(--font-mono); font-size: 12px; white-space: nowrap; border-right: 1px solid var(--line); }
.tick-sym { font-weight: 600; }
.tick-px { color: var(--muted); }
.tick-ch.up { color: var(--accent-text); }
.tick-ch.down { color: var(--ink-soft); }
.tick.sk i { display: block; width: 130px; height: 12px; background: linear-gradient(90deg, var(--line) 0%, color-mix(in srgb, var(--ink) 4%, var(--paper)) 50%, var(--line) 100%); background-size: 480px 100%; animation: shimmer 1.4s linear infinite; }
.ticker[data-state="error"] .ticker-track { animation: none; }

/* shared section bits */
section { scroll-margin-top: 140px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.eyebrow-mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.h-26 { margin-top: 4px; font-size: 22px; line-height: 1.25; font-weight: 400; letter-spacing: -0.025em; }
.h-30 { margin-top: 16px; font-size: 26px; line-height: 1.15; font-weight: 400; letter-spacing: -0.025em; }
.h-36 { margin-top: 16px; font-size: 28px; line-height: 1.1; font-weight: 400; letter-spacing: -0.025em; }
.sub { margin-top: 14px; max-width: 540px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.sec-head { display: flex; flex-direction: column; gap: 24px; }
.sec-head-row { flex-direction: column; align-items: flex-start; }
.sec-col { flex-direction: column !important; align-items: flex-start !important; }

/* ledger */
.tape { padding-block: 32px; }
.tape-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); font-family: var(--font-mono); }
.tile-k { font-size: 11px; color: var(--muted); }
.tile-v { font-size: 15px; color: var(--faint); }
.tape-rows { border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; }
.tape-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 16px; align-items: center; min-height: 48px; padding: 12px 8px; border-bottom: 1px solid var(--line); transition: background var(--dur) var(--ease); }
.tape-row:hover { background: color-mix(in srgb, var(--leaf) 7%, transparent); }
.kind { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; }
.kind-ico { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line-strong); font-style: normal; color: var(--accent-text); }
.tape-note { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tape-amt { color: var(--faint); text-align: right; }

/* market board */
.markets { padding-block: 64px; }
.controls { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg-btn { min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--muted); transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.seg-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.seg-btn[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.sorts { display: flex; flex-wrap: wrap; gap: 0; }
.sort-btn { min-height: 44px; min-width: 44px; padding: 0 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); transition: color var(--dur) var(--ease); }
.sort-btn:hover { color: var(--ink); }
.sort-btn[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.mtable { margin-top: 32px; border-top: 1px solid var(--line); }
.mhead { display: none; }
.mrow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tok px" "vol chg" "liq cp"; gap: 6px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 14px; }
.mrow > * { position: relative; z-index: 1; }
.mrow.in { animation: rise var(--dur-rise) ease both; animation-delay: calc(var(--i, 0) * 45ms); }
.c-tok { grid-area: tok; display: flex; align-items: center; gap: 14px; min-width: 0; font-family: var(--font-sans); }
.c-px { grid-area: px; text-align: right; }
.c-chg { grid-area: chg; text-align: right; }
.c-vol { grid-area: vol; }
.c-liq { grid-area: liq; }
.c-cp { grid-area: cp; justify-self: end; }
.c-vol::before, .c-liq::before { content: attr(data-label) " "; color: var(--faint); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.logo-tile { position: relative; flex: none; width: 48px; height: 48px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; }
.logo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 300ms var(--ease-out); }
.logo-tile img.ok { opacity: 1; }
.logo-letter { font-family: var(--font-mono); font-size: 18px; font-weight: 600; color: var(--brand-deep); background: var(--accent-wash); width: 100%; height: 100%; display: grid; place-items: center; }
.tok-text { min-width: 0; display: flex; flex-direction: column; }
.tok-name { font-size: 15px; font-weight: 500; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tok-sym { font-family: var(--font-mono); font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chg { display: inline-block; padding: 2px 6px; margin-right: -6px; }
.chg.up { color: var(--accent-text); }
.chg.down { color: var(--ink-soft); }
.flash-up { animation: flash-up 900ms var(--ease-out); }
.flash-down { animation: flash-down 900ms var(--ease-out); }
.cp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; color: var(--muted); transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.cp-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cp-btn.is-copied { background: var(--brand); color: var(--paper); border-color: var(--brand); }
.cp-txt { display: none; }
.cp-btn.is-copied .cp-txt { display: inline; padding-right: 10px; }
.sk-bar { display: block; height: 14px; width: 80px; background: linear-gradient(90deg, var(--line) 0%, color-mix(in srgb, var(--ink) 4%, var(--paper)) 50%, var(--line) 100%); background-size: 480px 100%; animation: shimmer 1.4s linear infinite; }
.sk-bar.w-lg { width: 130px; }
.sk-bar.w-sm { width: 52px; }
.sk-logo { width: 48px; height: 48px; flex: none; background: var(--line); animation: blink 1.4s ease-in-out infinite; }
.dash { color: var(--faint); }
.m-error { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line-strong); background: var(--accent-wash); font-family: var(--font-mono); font-size: 12px; line-height: 1.6; }
.fine { margin-top: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); }

/* flow */
.flow { padding-block: 64px; border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 40px; }
.step { padding: 20px 16px 24px; border-top: 1px solid var(--line-strong); }
.step-n { font-family: var(--font-mono); font-size: 11px; color: var(--accent-text); }
.step h3 { margin-top: 28px; font-size: 16px; line-height: 1.5; font-weight: 500; }
.step p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* register */
.register { padding-block: 64px; border-top: 1px solid var(--line); }
.reg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 40px; }
.reg-card { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 104px; padding: 18px 20px; border: 1px solid var(--line); }
.reg-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.reg-val { font-size: 20px; letter-spacing: -0.02em; }
.reg-val.is-pending { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0; color: var(--faint); }
.reg-code { font-size: 14px; word-break: break-all; }
.reg-link { color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 28px; }
.foot { display: flex; flex-direction: column; gap: 32px; }
.foot-brand p { margin-top: 14px; max-width: 384px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.foot-cols { display: flex; flex-wrap: wrap; gap: 24px 40px; font-family: var(--font-mono); font-size: 12px; }
.foot-col { display: flex; flex-direction: column; min-width: 120px; }
.foot-col h4 { margin: 0 0 6px; font-size: 11px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.foot-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; transition: color var(--dur) var(--ease); }
a.foot-link:hover { color: var(--brand-deep); }
.foot-link.is-inert { color: var(--faint); }
.foot-pending { font-size: 10px; letter-spacing: 0.06em; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; color: var(--faint); }

/* spotlight on cards, rows and tiles */
[data-spot] { position: relative; isolation: isolate; }
[data-spot]::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity var(--dur) var(--ease);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--leaf) 24%, transparent), transparent 72%); }
[data-spot]:hover::before { opacity: 1; }

/* scroll reveal: only hidden when script is running and motion is allowed */
html.js:not(.rm) [data-reveal]:not([data-revealed]) { opacity: 0; transform: translate3d(0, 18px, 0); }

@media (min-width: 640px) {
  .bar-right .pill { display: inline-flex; }
  .tiles { grid-template-columns: repeat(4, minmax(0, auto)); gap: 16px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .nav { display: flex; }
  h1 { font-size: 56px; }
  .h-26 { font-size: 26px; }
  .h-30 { font-size: 30px; }
  .h-36 { font-size: 36px; }
  .tape-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .sec-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .sec-head-row { align-items: flex-end; }
  .controls { align-items: flex-end; }
  .mhead { display: grid; }
  .mhead, .mrow { grid-template-columns: minmax(0, 2.6fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.3fr) 56px; gap: 16px; }
  .mrow { grid-template-areas: "tok px chg vol liq cp"; padding: 20px 0; font-size: 15px; min-height: 88px; }
  .mhead { padding: 16px 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
  .mhead .r { text-align: right; }
  .c-vol, .c-liq { text-align: right; }
  .c-vol::before, .c-liq::before { display: none; }
  .tape-row { grid-template-columns: 140px minmax(0, 1fr) auto; }
  .site-footer .foot { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  .foot-base { width: 100%; }
  .bars { display: flex; }
}

@media (min-width: 1024px) {
  h1 { font-size: 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 480px; }
  .hero-copy { padding: 96px 48px 96px 0; }
  .engine { padding: 64px 0 64px 48px; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .reg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow, .register { padding-block: 80px; }
  .flow .sec-head-row { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1280px) {
  .chip-wide { display: inline-flex; }
}

@media (max-width: 479px) {
  .brand-word { font-size: 18px; }
  .bar { gap: 8px; }
  .ca-row { gap: 2px 12px; }
  .ca-label { flex: 1 1 100%; }
  .ca-value { flex: 1 1 0; }
}

/* keyframes: values read off the reference stylesheet */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes shimmer { 0% { background-position: -240px 0; } 100% { background-position: 240px 0; } }
@keyframes rise { 0% { opacity: 0; transform: translateY(6px); } 100% { opacity: 1; transform: none; } }
@keyframes split-a { 0%, 100% { flex-basis: 50%; } 50% { flex-basis: 54%; } }
@keyframes split-b { 0%, 100% { flex-basis: 50%; } 50% { flex-basis: 46%; } }
@keyframes bar-grow { 0% { transform: scaleY(0); } 100% { transform: scaleY(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(-4%, 5%, 0) scale(1.12); } }
@keyframes orbit { to { rotate: 360deg; } }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
@keyframes flash-up { 0% { background: color-mix(in srgb, var(--leaf) 45%, transparent); } 100% { background: transparent; } }
@keyframes flash-down { 0% { background: color-mix(in srgb, var(--ink) 12%, transparent); } 100% { background: transparent; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .layer { transform: none !important; }
  .ticker { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ticker-track { transform: none !important; }
  .tick[data-dup] { display: none; }
  .progress i { transition: none; }
}
