/* Doobly. Colour comes from tokens.css only. No literals here. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-800.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/poppins-900.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-var.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/geist-mono-var.woff2") format("woff2"); }

:root {
  --bg: var(--c-ink);
  --fg: var(--c-cream);
  --muted: var(--c-mist);
  --rule: var(--c-oliveDark);
  --marker: var(--c-yellow);
  --sheet-bg: color-mix(in srgb, var(--c-raise) 38%, var(--c-ink));
  --font-display: "Poppins", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0, 0, .2, 1);
  --ease-std: cubic-bezier(.4, 0, .2, 1);
  --ease-pop: cubic-bezier(.2, .8, .3, 1.1);
  --stair-h: clamp(28px, 5vw, 72px);
  --top-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 9rem; -webkit-tap-highlight-color: transparent; }
body { margin: 0; min-height: 100vh; font-family: var(--font-sans); font-size: 1rem; line-height: 1.5; font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; overflow-x: clip; background: radial-gradient(1200px 500px at 50% -120px, rgb(var(--c-yellow-rgb) / .07), transparent 70%) no-repeat, var(--bg); }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }
.display { font-family: var(--font-display); font-weight: 900; letter-spacing: -.04em; line-height: .92; }
.tabular { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .wrap { padding-inline: 1.5rem; } }

:focus-visible { outline: 2px solid var(--marker); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: .5rem; top: -4rem; z-index: 100; background: var(--marker); color: var(--c-ink); padding: .75rem 1rem; border-radius: 999px; font-weight: 700; }
.skip:focus { top: .5rem; }

/* scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--c-reflect), var(--marker), var(--c-neon)); box-shadow: 0 0 12px rgb(var(--c-yellow-rgb) / .7); }

/* sticky top stack: header + contract slot */
.top { position: sticky; top: 0; z-index: 50; background: rgb(var(--c-ink-rgb) / .78); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); border-bottom: 1px solid var(--rule); transition: background .2s var(--ease-std), border-color .2s var(--ease-std); }
.top.is-scrolled { background: rgb(var(--c-ink-rgb) / .92); border-bottom-color: rgb(var(--c-yellow-rgb) / .25); }
.wrap-wide { max-width: 96rem; }
.bar-in { display: flex; align-items: center; gap: .75rem; height: 3.5rem; }
@media (min-width: 640px) { .bar-in { height: 4rem; } }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; text-decoration: none; flex-shrink: 0; border-radius: 10px; transition: transform .12s ease; }
.brand:hover { transform: translateY(-1px); }
.brand:active { transform: translateY(1px) scale(.98); }
.brand-mark { width: 40px; height: 30px; }
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; letter-spacing: -.04em; line-height: 1; }
.brand-sym { display: none; font-size: .875rem; color: var(--muted); }
@media (min-width: 640px) { .brand-sym { display: inline; } }
.nav { display: none; margin-left: auto; align-items: center; gap: .25rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; border-radius: 999px; font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--muted); transition: color .15s var(--ease-std), background .15s var(--ease-std); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--fg); background: rgb(var(--c-cream-rgb) / .07); }
.nav a[aria-current="true"] { color: var(--marker); }
@media (min-width: 768px) { .nav { display: flex; } }
.bar-pill { display: none; margin-left: auto; }
@media (min-width: 640px) { .bar-pill { display: block; } }
@media (min-width: 768px) { .bar-pill { margin-left: 0; } }
.socials { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
@media (min-width: 640px) { .socials { margin-left: 0; } }
.social { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--fg); text-decoration: none; transition: transform .12s ease, background .15s ease, color .15s ease, box-shadow .15s ease; }
.social svg { width: 20px; height: 20px; fill: currentColor; }
a.social:hover { transform: translateY(-2px); background: rgb(var(--c-yellow-rgb) / .12); color: var(--marker); box-shadow: 0 8px 22px -10px rgb(var(--c-yellow-rgb) / .6); }
a.social:active { transform: translateY(1px) scale(.96); }
.social.is-inert { color: var(--c-reflect); opacity: .55; cursor: default; }

/* contract slot */
.ca { border-top: 1px solid var(--rule); background: linear-gradient(90deg, rgb(var(--c-yellow-rgb) / .08), transparent 60%), rgb(var(--c-ink-rgb) / .6); }
.ca-in { display: grid; grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "label copy" "addr copy"; align-items: center; column-gap: .75rem; padding-block: .5rem; }
@media (min-width: 768px) { .ca-in { grid-template-columns: auto minmax(0, 1fr) 44px; grid-template-areas: "label addr copy"; column-gap: 1rem; padding-block: .55rem; } }
.ca-label { grid-area: label; font-family: var(--font-mono); font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: .5rem; }
.ca-label::before { content: ""; width: 8px; height: 8px; background: var(--marker); box-shadow: 0 0 10px rgb(var(--c-yellow-rgb) / .8); }
.ca[data-state="absent"] .ca-label::before { background: var(--c-reflect); box-shadow: none; }
.ca-addr { grid-area: addr; font-family: var(--font-mono); font-weight: 600; font-size: clamp(.8125rem, 2.9vw, 1.375rem); line-height: 1.25; letter-spacing: -.01em; color: var(--marker); overflow-wrap: anywhere; word-break: break-all; text-shadow: 0 0 22px rgb(var(--c-yellow-rgb) / .35); }
.ca[data-state="absent"] .ca-addr { color: var(--muted); text-shadow: none; word-break: normal; font-weight: 500; }
.ca-wait { display: inline-flex; align-items: center; gap: .75rem; }
.ca-wait i { width: 3.5rem; height: .5rem; border-radius: 999px; background: linear-gradient(90deg, var(--c-oliveDark), var(--c-olive), var(--c-oliveDark)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.ca-copy { grid-area: copy; position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--rule); border-radius: 12px; background: rgb(var(--c-cream-rgb) / .04); cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.ca-copy svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ca-copy:hover:not([aria-disabled="true"]) { transform: translateY(-1px); border-color: var(--marker); background: rgb(var(--c-yellow-rgb) / .12); box-shadow: 0 6px 22px -8px rgb(var(--c-yellow-rgb) / .6); }
.ca-copy:active:not([aria-disabled="true"]) { transform: translateY(1px) scale(.96); }
.ca-copy[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.ca-fb { position: absolute; right: 0; top: calc(100% + 6px); padding: .3rem .6rem; border-radius: 8px; background: var(--marker); color: var(--c-ink); font: 700 .75rem var(--font-mono); white-space: nowrap; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .15s var(--ease-std), transform .15s var(--ease-std); }
.ca-copy.is-copied { border-color: var(--marker); background: rgb(var(--c-yellow-rgb) / .2); }
.ca-copy.is-copied .ca-fb { opacity: 1; transform: none; }

/* pills and dots */
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem; min-height: 32px; border-radius: 999px; background: var(--c-ink); border: 1px solid var(--rule); font: 600 .8125rem var(--font-mono); color: var(--fg); white-space: nowrap; transition: border-color .2s var(--ease-std), color .2s var(--ease-std); }
.pill-lg { font-size: 1rem; padding: .5rem 1rem; min-height: 44px; }
.dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--c-cream); flex-shrink: 0; }
.pill[data-status="live"] { border-color: rgb(var(--c-yellow-rgb) / .55); color: var(--marker); }
.pill[data-status="live"] .dot { background: var(--marker); animation: ping 2s var(--ease-std) infinite; }
.pill[data-status="connecting"] { color: var(--c-cream); }
.pill[data-status="connecting"] .dot { animation: pulse 1s var(--ease-std) infinite; }
.pill[data-status="offline"] { color: var(--muted); border-color: var(--c-olive); }
.pill[data-status="offline"] .dot { background: transparent; box-shadow: inset 0 0 0 2px var(--c-olive); }
.dot-live { background: var(--marker); animation: ping 2s var(--ease-std) infinite; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 1.125rem; text-decoration: none; cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-marker { background: var(--marker); color: var(--c-ink); box-shadow: 0 0 0 0 rgb(var(--c-yellow-rgb) / 0); }
.btn-marker:hover { box-shadow: 0 6px 28px -6px rgb(var(--c-yellow-rgb) / .55); background: var(--c-neon); }
.btn-plain { background: rgb(var(--c-cream-rgb) / .04); color: var(--fg); border-color: var(--c-olive); }
.btn-plain:hover { border-color: var(--marker); background: rgb(var(--c-yellow-rgb) / .08); }

/* mobile nav strip */
.m-nav { display: flex; border-bottom: 1px solid var(--rule); background: rgb(var(--c-ink-rgb) / .9); }
.m-nav a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: .8125rem; font-weight: 500; text-decoration: none; color: var(--muted); transition: color .15s var(--ease-std), background .15s var(--ease-std); }
.m-nav a:hover, .m-nav a:active { color: var(--marker); background: rgb(var(--c-yellow-rgb) / .08); }
@media (min-width: 768px) { .m-nav { display: none; } }

/* ticker */
.ticker { overflow: hidden; background: var(--c-raise); border-bottom: 1px solid var(--rule); font-size: .8125rem; color: var(--fg); }
.ticker-track { display: inline-flex; white-space: nowrap; padding-block: .4rem; animation: ticker 40s linear infinite; will-change: transform; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk-set { display: inline-flex; }
.tk-item { display: inline-flex; align-items: center; gap: .5rem; padding-inline: 1.5rem; }
.pip { width: 6px; height: 6px; background: var(--marker); }
.tk-k { color: rgb(var(--c-cream-rgb) / .6); }
.tk-v { font-weight: 600; color: var(--marker); }

/* hero */
.hero { position: relative; isolation: isolate; padding-block: 2.5rem 3rem; background: radial-gradient(900px 520px at 78% 20%, rgb(var(--c-yellow-rgb) / .09), transparent 70%), linear-gradient(180deg, var(--c-forest), var(--c-ink) 90%); overflow: clip; }
@media (min-width: 768px) { .hero { padding-block: 4rem 4.5rem; } }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.hero-vignette { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(ellipse at 50% 38%, transparent 25%, rgb(var(--c-ink-rgb) / .72) 100%), linear-gradient(180deg, transparent 70%, var(--c-ink)); }
.px { position: absolute; z-index: -1; width: 12px; height: 12px; background: var(--marker); box-shadow: 0 0 18px rgb(var(--c-yellow-rgb) / .8); translate: 0 var(--py, 0px); opacity: .85; pointer-events: none; }
.px-a { left: 7%; top: 14%; } .px-b { right: 9%; top: 11%; width: 16px; height: 16px; } .px-c { left: 46%; top: 5%; width: 8px; height: 8px; } .px-d { right: 4%; top: 52%; width: 10px; height: 10px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .hero-grid { grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); } }
@media (min-width: 1024px) { .hero-grid { gap: 4rem; } }
.hero-copy { order: 1; min-width: 0; }
.hero-panel-col { order: 2; position: relative; min-width: 0; translate: 0 var(--py, 0px); }
@media (min-width: 768px) { .hero-panel-col { order: 1; } .hero-copy { order: 2; } }
.glow-back { position: absolute; inset: 0; background: radial-gradient(closest-side, rgb(var(--c-yellow-rgb) / .2), transparent); filter: blur(24px); pointer-events: none; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--marker); margin-bottom: 1.25rem; }
.pixel-bullet { width: 10px; height: 10px; background: var(--marker); box-shadow: 0 0 12px rgb(var(--c-yellow-rgb) / .9); }
.h1 { font-size: clamp(2.75rem, 10.2vw, 6.75rem); line-height: .9; text-wrap: balance; text-shadow: 0 6px 40px rgb(var(--c-ink-rgb) / .8); }
.lead { margin-top: 1.5rem; max-width: 34rem; font-size: 1.125rem; color: var(--muted); }
.lead .mono { color: var(--marker); font-weight: 600; }
.cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.sheet { position: relative; background: linear-gradient(180deg, rgb(var(--c-cream-rgb) / .025), rgb(var(--c-cream-rgb) / 0) 60%), var(--sheet-bg); border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; }
.spot::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgb(var(--c-yellow-rgb) / .12), transparent 70%); transition: opacity .2s var(--ease-std); }
.spot:hover::after { opacity: 1; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .625rem 1rem; background: var(--c-raise); font-size: .875rem; }
.panel-title { font-weight: 600; }
.panel-status { display: inline-flex; align-items: center; gap: .5rem; color: rgb(var(--c-cream-rgb) / .6); }
.panel-body { padding: 1rem; }
@media (min-width: 640px) { .panel-body { padding: 1.25rem; } }
.bubble { position: relative; min-height: 5.5rem; padding: .75rem 1rem; border: 1px solid var(--rule); border-radius: 16px; background: var(--c-ink); }
.bubble-text { font-size: 1.0625rem; line-height: 1.35; }
.caret { display: inline-block; width: .5em; height: 1em; margin: 0 0 -.12em .15em; background: var(--marker); animation: pulse 2s var(--ease-std) infinite; }
.bubble-tail { position: absolute; left: 50%; bottom: -11px; width: 20px; height: 20px; background: var(--c-ink); border: solid var(--rule); border-width: 0 1px 1px 0; transform: translateX(-50%) rotate(45deg); }
.screen { position: relative; margin: 1.5rem auto 0; border-radius: 14px; border: 1px solid var(--c-olive); background: repeating-linear-gradient(180deg, rgb(var(--c-ink-rgb) / .35) 0 1.5px, transparent 1.5px 12px), radial-gradient(closest-side at 50% 55%, rgb(var(--c-yellow-rgb) / .18), transparent 80%), var(--c-forest); padding: 1rem .75rem; transition: transform .2s var(--ease-std), box-shadow .2s var(--ease-std); box-shadow: 0 0 0 1px var(--c-ink), inset 0 0 40px rgb(var(--c-ink-rgb) / .6); }
.screen:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--c-ink), 0 14px 40px -16px rgb(var(--c-yellow-rgb) / .5), inset 0 0 40px rgb(var(--c-ink-rgb) / .6); }
.screen-logo { width: 100%; height: auto; filter: drop-shadow(0 0 18px rgb(var(--c-yellow-rgb) / .35)); }
.meter-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: .9rem; font-size: .875rem; }
.meter-k { color: var(--muted); }
.meter-v { font-weight: 600; }
.meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: .25rem; margin-top: .4rem; }
.meter i { height: 8px; border-radius: 999px; background: var(--c-oliveDark); transition: background .2s var(--ease-std), box-shadow .2s var(--ease-std); }
.meter i.on { background: var(--marker); box-shadow: 0 0 10px rgb(var(--c-yellow-rgb) / .6); }
.meter[data-status="connecting"] i.on { animation: pulse 1s var(--ease-std) infinite; }
.meter-note { margin-top: .5rem; font-size: .875rem; color: var(--muted); }

.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.5rem; }
@media (min-width: 768px) { .stat-strip { margin-top: 3.5rem; } }
.stat { padding: 1rem .75rem; transition: background .2s var(--ease-std); }
.stat + .stat { border-left: 1px solid var(--rule); }
.stat:hover { background: rgb(var(--c-yellow-rgb) / .06); }
.stat dt { font-size: .75rem; color: var(--muted); }
@media (min-width: 640px) { .stat { padding: 1.25rem 1.5rem; } .stat dt { font-size: .875rem; } }
.stat-num { margin-top: .25rem; font-size: clamp(2.25rem, 7vw, 3.75rem); color: var(--marker); }

/* sections */
.sec { position: relative; padding-block: calc(var(--stair-h) + 3rem) 4rem; }
@media (min-width: 768px) { .sec { padding-block: calc(var(--stair-h) + 4rem) 5rem; } }
.stair::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--stair-h) * -1 + 1px); height: var(--stair-h); background: inherit; clip-path: var(--stair-clip); pointer-events: none; }
.sec-forest { background: var(--c-forest); border-top: 1px solid var(--rule); }
.sec-raise { background: var(--c-raise); }
.sec-ink { background: var(--c-ink); }
.sec-light { background: var(--c-cream); color: var(--c-ink); }
.sec-light .sec-sub, .sec-light .fine { color: var(--c-slate); }
.h2 { font-size: clamp(2.25rem, 6.4vw, 3.75rem); line-height: .95; text-wrap: balance; }
.h2-s { font-size: clamp(2rem, 5vw, 3.25rem); }
.sec-head { display: grid; gap: .75rem; align-items: end; }
@media (min-width: 768px) { .sec-head { grid-template-columns: 1fr minmax(0, 28rem); gap: 2rem; } }
.sec-sub { margin-top: .75rem; max-width: 30rem; color: var(--muted); }
.sec-head .sec-sub { margin-top: 0; }
.fine { margin-top: 1.25rem; font-size: .875rem; color: var(--muted); }

/* flow */
.flow-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .flow-grid { grid-template-columns: minmax(0, 1fr) 21rem; gap: 3.5rem; } }
.steps { margin-top: 2.5rem; display: grid; gap: 2rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; } }
.step { position: relative; border-top: 1px solid var(--rule); padding-top: 1rem; transition: border-color .2s var(--ease-std); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--marker); transition: width .7s var(--ease-out); }
.step:hover { border-top-color: var(--c-olive); }
.step:hover::before, .step.in::before { width: 3.5rem; }
.step-n { display: block; font-size: 3.75rem; color: var(--c-olive); line-height: 1; transition: color .2s var(--ease-std), transform .2s var(--ease-pop); }
.step:hover .step-n { color: var(--marker); transform: translateX(4px); }
.step h3 { margin-top: .75rem; font-size: 1.125rem; font-weight: 700; }
.step p { margin-top: .25rem; color: var(--muted); }
.step .mono { color: var(--marker); font-size: .9em; }
.flow-side { position: relative; margin-top: .5rem; }
@media (min-width: 1024px) { .flow-side { margin-top: 4rem; } }
.card { position: relative; overflow: hidden; background: var(--c-raise); border: 1px solid var(--rule); border-radius: 20px; padding: 1.5rem; transition: transform .2s var(--ease-pop), border-color .2s var(--ease-std), box-shadow .2s var(--ease-std); }
.card:hover { transform: translateY(-3px); border-color: var(--c-olive); box-shadow: 0 18px 50px -24px rgb(var(--c-yellow-rgb) / .45); }
.card-eyebrow { font-size: .875rem; color: var(--muted); }
.card-title { margin-top: .25rem; font-size: 2.25rem; }
.kv { margin-top: 1.25rem; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .75rem 1rem; font-size: .9375rem; }
.kv dt { color: var(--muted); }
.kv .mono { color: var(--marker); font-size: .9em; }
.stamp { position: absolute; top: -1.5rem; right: -.25rem; display: inline-block; padding: .2em .5em; color: var(--marker); border: 3px solid var(--marker); border-radius: 6px; font: 800 1.5rem var(--font-display); letter-spacing: .04em; text-transform: uppercase; transform: rotate(-8deg); background: rgb(var(--c-ink-rgb) / .5); -webkit-mask-image: radial-gradient(circle at 30% 40%, var(--c-ink) 60%, rgb(var(--c-ink-rgb) / .75) 61%, var(--c-ink) 75%); mask-image: radial-gradient(circle at 30% 40%, var(--c-ink) 60%, rgb(var(--c-ink-rgb) / .75) 61%, var(--c-ink) 75%); }
.stamp-animate { animation: stamp-in .42s cubic-bezier(.2, .8, .3, 1.2) .6s both; }

/* lanes */
.sec-light .sheet { background: rgb(var(--c-ink-rgb) / .045); border-color: rgb(var(--c-ink-rgb) / .16); }
.lanes { margin-top: 2.5rem; display: grid; }
@media (min-width: 768px) { .lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lane { position: relative; display: flex; flex-direction: column; align-items: stretch; min-height: 44px; padding: 1.5rem; text-align: left; background: transparent; border: 0; cursor: pointer; color: var(--c-ink); transition: background .2s var(--ease-std), transform .12s ease; }
.lane + .lane { border-top: 1px solid rgb(var(--c-ink-rgb) / .16); }
@media (min-width: 768px) { .lane + .lane { border-top: 0; border-left: 1px solid rgb(var(--c-ink-rgb) / .16); } }
.lane::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c-ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease-out); }
.lane:hover { background: rgb(var(--c-ink-rgb) / .05); }
.lane:active { transform: scale(.995); }
.lane[aria-selected="true"] { background: var(--c-ink); color: var(--c-cream); }
.lane[aria-selected="true"]::before { transform: scaleX(1); background: var(--marker); }
.lane-top { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.lane-name { font-size: 1.875rem; letter-spacing: -.035em; }
.lane-tag { font-size: .875rem; opacity: .7; }
.lane-desc { margin-top: .5rem; opacity: .75; }
.lane-slot { margin-top: auto; padding-top: 1.5rem; font-size: 4rem; line-height: 1; transition: color .2s var(--ease-std); }
.lane[aria-selected="true"] .lane-slot { color: var(--marker); }
.lane-foot { margin-top: .25rem; font: 500 .8125rem var(--font-mono); opacity: .65; }
.lane-panel { margin-top: 1rem; padding: 1.25rem; border: 1px dashed rgb(var(--c-ink-rgb) / .3); border-radius: 16px; }
.lane-panel-k { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-slate); }
.chips { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips[hidden] { display: none; }
.chips li { padding: .5rem .9rem; border-radius: 12px; background: var(--c-ink); color: var(--c-cream); font-size: .9375rem; transition: transform .12s ease, background .15s ease, color .15s ease; }
.chips li:hover { transform: translateY(-2px); background: var(--c-olive); }
.chips.swap li { animation: memo-in .4s var(--ease-pop) both; animation-delay: calc(var(--k, 0) * 50ms); }

/* ranks */
.ladder { margin-top: 2.5rem; display: flex; flex-direction: column; gap: .5rem; }
@media (min-width: 768px) { .ladder { flex-direction: row; align-items: flex-end; } }
.rung { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; padding: .875rem 1rem; min-height: 44px; border: 1px solid var(--rule); border-radius: 16px; background: var(--sheet-bg); transition: transform .2s var(--ease-pop), border-color .2s var(--ease-std), background .2s var(--ease-std); }
@media (min-width: 768px) { .rung { flex: 1; flex-direction: column; justify-content: space-between; align-items: stretch; padding: .75rem; } }
.rung:hover { transform: translateY(-4px); border-color: var(--marker); background: color-mix(in srgb, var(--c-yellow) 8%, var(--sheet-bg)); }
.rung-name { font-weight: 600; line-height: 1.2; }
.rung-sub { font-size: .875rem; color: var(--muted); white-space: nowrap; }
.rung-bar { display: none; border-radius: 10px; background: linear-gradient(0deg, var(--marker), rgb(var(--c-yellow-rgb) / .2)); height: 0; margin-top: .75rem; transition: height .7s var(--ease-out); }
@media (min-width: 768px) { .rung-bar { display: block; } }

/* pulse */
.tiles { margin-top: 2.5rem; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tiles + .tiles { margin-top: 1rem; }
.tile { padding: 1.25rem; min-width: 0; transition: background .2s var(--ease-std); }
.tile + .tile { border-top: 1px solid rgb(var(--c-ink-rgb) / .16); }
@media (min-width: 768px) { .tile + .tile { border-top: 0; border-left: 1px solid rgb(var(--c-ink-rgb) / .16); } }
.tile:hover { background: rgb(var(--c-yellow-rgb) / .18); }
.tile dt { font-size: .875rem; color: var(--c-slate); }
.tile-v { margin-top: .5rem; font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1.05; overflow-wrap: anywhere; min-height: 2.4rem; display: flex; align-items: center; }
.tile-v.mono { font: 600 clamp(1.05rem, 2.6vw, 1.5rem) var(--font-mono); letter-spacing: -.02em; }
.tile-note { margin-top: .5rem; font-size: .8125rem; color: var(--c-slate); }
.flash { animation: flash .7s var(--ease-std); }

.board { margin-top: 1rem; }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.25rem .5rem; flex-wrap: wrap; }
.board-title { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.board-meta { font-size: .75rem; color: var(--c-slate); }
.board-scroll { overflow-x: auto; }
.board-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.board-table th { padding: .5rem .75rem; font: 500 .8125rem var(--font-mono); text-align: left; color: var(--c-slate); border-bottom: 1px solid rgb(var(--c-ink-rgb) / .16); white-space: nowrap; }
.board-table td { padding: .7rem .75rem; border-bottom: 1px solid rgb(var(--c-ink-rgb) / .09); white-space: nowrap; }
.board-table tr:last-child td { border-bottom: 0; }
.board-table tbody tr { transition: background .15s var(--ease-std); }
.board-table tbody tr:hover { background: rgb(var(--c-yellow-rgb) / .2); }
.board-table .c-rank { width: 2.5rem; padding-left: 1.25rem; color: var(--c-slate); font-family: var(--font-mono); }
.board-table .c-num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.board-table th:last-child, .board-table td:last-child { padding-right: 1.25rem; }
.tok { display: inline-flex; align-items: center; gap: .6rem; min-width: 0; }
.tok-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--c-ink); flex-shrink: 0; }
.tok-fallback { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-ink); color: var(--marker); font: 700 .75rem var(--font-mono); flex-shrink: 0; }
.tok-sym { font-weight: 700; }
.tok-name { color: var(--c-slate); font-size: .8125rem; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; display: none; }
@media (min-width: 640px) { .tok-name { display: inline; } }
.up { color: var(--c-olive); font-weight: 600; } .down { color: var(--c-ink); font-weight: 600; }
.c-move { display: none; }
@media (min-width: 560px) { .c-move { display: table-cell; } }
.board-foot { padding: .75rem 1.25rem 1.25rem; font-size: .8125rem; color: var(--c-slate); }
.sk { display: inline-block; height: .9rem; border-radius: 999px; background: linear-gradient(90deg, rgb(var(--c-ink-rgb) / .08), rgb(var(--c-ink-rgb) / .2), rgb(var(--c-ink-rgb) / .08)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; vertical-align: middle; }
.sk-s { width: 1.25rem; } .sk-m { width: 4.5rem; } .sk-c { width: 28px; height: 28px; border-radius: 50%; }
.board-fail { padding: 1.5rem 1.25rem; color: var(--c-slate); font-family: var(--font-mono); }

/* rails */
.rails { padding: 1.25rem; }
@media (min-width: 640px) { .rails { padding: 1.75rem; } }
.route { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .875rem; }
.route li { display: flex; align-items: center; gap: .5rem; }
.route-pill { display: inline-flex; align-items: center; min-height: 36px; padding: .375rem .85rem; border-radius: 999px; font-weight: 600; background: var(--c-raise); transition: transform .12s ease, background .15s ease; }
.route-pill:hover { transform: translateY(-2px); background: var(--c-olive); }
.route-end { background: var(--marker); color: var(--c-ink); }
.route-end:hover { background: var(--c-neon); }
.route-arrow { font-style: normal; color: var(--muted); }
.rail-tiles { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 1024px) { .rail-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rail-tile { position: relative; min-width: 0; border: 1px solid var(--rule); border-radius: 16px; padding: 1rem; transition: transform .2s var(--ease-pop), border-color .2s var(--ease-std), box-shadow .2s var(--ease-std), background .2s var(--ease-std); }
.rail-tile:hover { transform: translateY(-3px); border-color: var(--marker); background: rgb(var(--c-yellow-rgb) / .05); box-shadow: 0 14px 36px -22px rgb(var(--c-yellow-rgb) / .6); }
.rail-tile dt { font-size: .875rem; color: var(--muted); }
.rail-tile .display { margin-top: .25rem; font-size: clamp(1.25rem, 3.4vw, 1.875rem); line-height: 1.02; overflow-wrap: anywhere; }
.rail-tile .mono { font-weight: 600; color: var(--marker); font-size: .8em; letter-spacing: 0; }
.rail-note { margin-top: .5rem; font-size: .75rem; color: var(--muted); }
.rails .fine { margin-top: 1.25rem; font-size: .75rem; }

/* footer */
.foot { border-top: 1px solid var(--rule); background: var(--c-ink); }
.foot-in { display: grid; gap: 1.5rem; padding-block: 2rem 3rem; font-size: .875rem; }
@media (min-width: 768px) { .foot-in { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.foot-note { max-width: 40rem; color: var(--muted); }
.foot-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; color: var(--c-reflect); font-size: .8125rem; }

/* motion primitives */
html.js .reveal { opacity: 0; }
html.js .reveal.in { animation: memo-in .5s var(--ease-pop) both; animation-delay: calc(var(--i, 0) * 90ms); }
[data-i="1"] { --i: 1; } [data-i="2"] { --i: 2; } [data-i="3"] { --i: 3; } [data-i="4"] { --i: 4; } [data-i="5"] { --i: 5; }
@keyframes memo-in { 0% { opacity: 0; transform: translateY(32px) rotate(-1.2deg); } 100% { opacity: 1; transform: none; } }
@keyframes stamp-in { 0% { opacity: 0; transform: rotate(-8deg) scale(2.2); } 70% { opacity: 1; transform: rotate(-8deg) scale(.94); } 100% { opacity: 1; transform: rotate(-8deg) scale(1); } }
@keyframes pulse { 50% { opacity: .5; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(var(--c-yellow-rgb) / .6); } 70%, 100% { box-shadow: 0 0 0 8px rgb(var(--c-yellow-rgb) / 0); } }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes flash { 0% { background: rgb(var(--c-yellow-rgb) / .8); box-shadow: 0 0 0 6px rgb(var(--c-yellow-rgb) / .8); border-radius: 6px; } 100% { background: rgb(var(--c-yellow-rgb) / 0); box-shadow: 0 0 0 6px rgb(var(--c-yellow-rgb) / 0); border-radius: 6px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; }
  .btn:hover, .btn:active, .card:hover, .rung:hover, .rail-tile:hover, .screen:hover, .chips li:hover, .route-pill:hover, a.social:hover { transform: none; }
  .ticker { overflow-x: auto; }
  .ticker-track { transform: none; }
  .rung-bar { transition: none; }
  .step::before { width: 3.5rem; }
  .px { translate: none; }
  .hero-panel-col { translate: none; }
}
