/* FOREVER — one system for every page: paper ground, ink, one red. Marble renders, one line-icon family, tabular numbers.
   Motion: 160–260ms on a single ease, transform/opacity only, nothing loops unless it reports something live. */
@font-face { font-family: 'Geist'; src: url("") format('woff2'); font-weight: 100 900; font-display: swap }
:root {
  --paper: #f4f4f1; --paper-2: #ededea; --card: #fbfbf9; --white: #fff; --ink: #151514; --ink-2: #3a3a37; --soft: #6e6e69; --faint: #a3a39d; --line: #e2e2dd; --line-2: #d4d4ce;
  --red: #ef4a36; --red-ink: #c8331f; --red-wash: #ef4a3612; --up: #13804f; --up-wash: #13804f12; --down: #c23b2c; --down-wash: #c23b2c10; --gold: #b8863b;
  --f: 'Helvetica Neue', 'Geist', Helvetica, Arial, sans-serif;
  --t1: clamp(44px, 4.6vw, 80px); --t2: clamp(28px, 2.2vw, 40px); --t3: clamp(20px, 1.2vw, 24px); --t4: 17px; --t5: 15px; --t6: 13px;
  --e: cubic-bezier(.2, .9, .25, 1); --e-out: cubic-bezier(.16, 1, .3, 1); --fast: 160ms; --mid: 240ms; --slow: 520ms;
  --r1: 6px; --r2: 12px; --r3: 18px; --r4: 26px; --gut: clamp(18px, 3.2vw, 48px); --max: 1360px;
  --sh1: 0 1px 0 #1515140a, 0 1px 3px #15151408; --sh2: 0 1px 0 #1515140a, 0 8px 24px -12px #15151424; --sh3: 0 2px 0 #1515140a, 0 24px 60px -24px #15151438;
  color-scheme: light;
}
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t4)/1.5 var(--f); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; text-rendering: optimizeLegibility; overflow-x: hidden }
a { color: inherit; text-decoration: none }
button, input, select, textarea { font: inherit; color: inherit }
button { background: none; border: 0; padding: 0; cursor: pointer }
button:disabled { cursor: not-allowed; opacity: .42 }
img, svg, canvas { display: block }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; padding: 0 }
ol, ul { list-style: none }
[hidden] { display: none !important }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 8px }
::selection { background: #ef4a3630 }
.ic { width: var(--is, 18px); height: var(--is, 18px); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none }
.up { color: var(--up) } .down { color: var(--down) } .red { color: var(--red) } .soft { color: var(--soft) }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 10px; transition: top var(--fast) var(--e) }
.skip:focus { top: 12px }
.wrap { width: min(var(--max), 100% - 2 * var(--gut)); margin-inline: auto }
.num { font-feature-settings: 'tnum' 1, 'lnum' 1; letter-spacing: -.01em }

/* ── header */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow var(--mid) var(--e) }
.top.raised { box-shadow: 0 1px 0 var(--line) }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px }
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; letter-spacing: .16em }
.brand img { width: 24px; height: 27px; object-fit: contain }
.nav { position: relative; display: flex; gap: 2px; margin-inline: auto; padding: 4px; border-radius: 999px; background: #15151406 }
.nav a { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: 999px; font-size: var(--t5); color: var(--soft); transition: color var(--fast) var(--e) }
.nav a:hover { color: var(--ink) }
.nav a[aria-current] { color: var(--ink) }
.nav .pill { position: absolute; z-index: 0; top: 4px; left: 0; height: 36px; border-radius: 999px; background: var(--white); box-shadow: var(--sh1); transition: transform var(--mid) var(--e-out), width var(--mid) var(--e-out), opacity var(--fast) }
.nav a .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 #ef4a3660; animation: beat 2.4s var(--e) infinite }
@keyframes beat { 0% { box-shadow: 0 0 0 0 #ef4a3660 } 70%, 100% { box-shadow: 0 0 0 7px #ef4a3600 } }
.top-r { display: flex; align-items: center; justify-content: end; gap: 10px; min-width: 180px; flex: none }
.ticker { display: inline-flex; flex: none; white-space: nowrap; align-items: center; gap: 9px; height: 38px; padding: 0 14px 0 8px; border-radius: 999px; background: #15151406; font-size: var(--t6); transition: background var(--fast) } .ticker:hover { background: #1515140d } .ticker img { border-radius: 50%; width: 22px; height: 22px; flex: none } .ticker span:nth-child(2) { font-weight: 500; color: var(--ink) } .tick-s { color: var(--soft) }
.clock { display: flex; align-items: center; gap: 2px; height: 36px; padding: 3px; border-radius: 999px; background: #15151406; font-size: var(--t6); color: var(--soft) }
.clock button { height: 30px; min-width: 34px; padding: 0 9px; border-radius: 999px; transition: background var(--fast), color var(--fast) }
.clock button[aria-pressed=true] { background: var(--white); color: var(--ink); box-shadow: var(--sh1) }
.clock .when { padding: 0 9px 0 6px; white-space: nowrap }
.menu-b { display: none; width: 40px; height: 40px; border-radius: 12px; place-items: center }

/* ── buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: 999px; font-size: var(--t5); font-weight: 500; letter-spacing: -.005em; background: var(--ink); color: var(--paper); transition: transform var(--fast) var(--e), background var(--fast), box-shadow var(--mid) var(--e), opacity var(--fast); white-space: nowrap; user-select: none }
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 24px -12px #15151480 }
.btn:active:not(:disabled) { transform: translateY(0) scale(.98); transition-duration: 60ms }
.btn.red { background: var(--red); color: #fff } .btn.red:hover:not(:disabled) { box-shadow: 0 10px 26px -10px #ef4a36aa }
.btn.ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2) }
.btn.ghost:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--ink-2), 0 8px 20px -14px #15151460 }
.btn.quiet { background: transparent; color: var(--ink-2); height: 40px; padding: 0 12px } .btn.quiet:hover:not(:disabled) { background: #15151408; box-shadow: none; transform: none }
.btn.sm { height: 36px; padding: 0 14px; font-size: var(--t6) }
.btn .ic { --is: 17px; transition: transform var(--mid) var(--e-out) }
.btn:hover .ic.go { transform: translateX(3px) }
.btn.busy { pointer-events: none; opacity: .7 }
.btn.busy .ic { animation: spin .8s linear infinite }
@keyframes spin { to { transform: rotate(1turn) } }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: var(--t6); background: #15151409; color: var(--ink-2); white-space: nowrap }
.chip.live { background: var(--up-wash); color: var(--up) } .chip.live:before, .chip.red:before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor }
.chip.live:before { animation: beat 2.4s var(--e) infinite; box-shadow: 0 0 0 0 #13804f50 }
.chip.red { background: var(--red-wash); color: var(--red-ink) } .chip.wind { background: #b8863b14; color: #8a6224 } .chip.done { background: #15151408; color: var(--soft) } .chip.paused { background: #15151414; color: var(--ink) }

/* ── surfaces */
.card { background: var(--card); border-radius: var(--r3); box-shadow: var(--sh1), inset 0 0 0 1px #15151406 }
.card.hov { transition: transform var(--mid) var(--e-out), box-shadow var(--mid) var(--e-out) }
.card.hov:hover { transform: translateY(-2px); box-shadow: var(--sh3) }
.sec { padding: clamp(40px, 6vw, 88px) 0 }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px }
.sec-h h2 { font-size: var(--t2); font-weight: 300; letter-spacing: -.035em; line-height: 1.05 }
.sec-h p { color: var(--soft); max-width: 46ch }
.big { font-size: var(--t1); font-weight: 300; letter-spacing: -.055em; line-height: .95 }
.lbl { font-size: var(--t6); color: var(--soft) }
.val { font-size: var(--t3); letter-spacing: -.02em }

/* tokens */
.tk { --s: 28px; position: relative; display: inline-grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%; background: var(--c, #151514); color: #fff; flex: none; box-shadow: 0 0 0 2px var(--card); overflow: hidden }
.tk img { width: 100%; height: 100%; object-fit: cover }
.tk svg { width: 64%; height: 64%; fill: currentColor }
.tk.mono { background: #e9e9e4; color: var(--ink-2) } .tk.mono b { font-size: max(12px, calc(var(--s) * .3)); font-weight: 600; letter-spacing: -.02em }
.tk-pair { display: inline-flex } .tk-pair .tk + .tk { margin-left: calc(var(--s) * -.32) }

/* agent emblem */
.em { --s: 56px; position: relative; display: inline-block; vertical-align: middle; width: var(--s); height: var(--s); border-radius: calc(var(--s) * .3); background: #fff; overflow: hidden; flex: none; box-shadow: inset 0 0 0 1px #15151408 }
.em img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform var(--slow) var(--e-out) }
.card.hov:hover .em img, a:hover > .em img, .em.on img { transform: scale(1.16) rotate(-2deg) }

/* reveal */
.rv { opacity: 0; transform: translateY(14px); transition: opacity var(--slow) var(--e-out), transform var(--slow) var(--e-out); transition-delay: calc(var(--i, 0) * 50ms) }
.rv.in { opacity: 1; transform: none }

/* load-in for lists rendered at once */
.in-a { animation: ina var(--slow) var(--e-out) both; animation-delay: calc(var(--i, 0) * 45ms) }
@keyframes ina { from { opacity: 0; transform: translateY(10px) } }

/* skeleton */
.sk { display: inline-block; height: .9em; border-radius: 6px; background: linear-gradient(90deg, #15151408 25%, #1515140f 50%, #15151408 75%) 0 0 / 200% 100%; animation: sk 1.2s linear infinite; vertical-align: middle }
@keyframes sk { to { background-position: -200% 0 } }

/* toast */
.toasts { position: fixed; z-index: 90; right: 20px; bottom: 20px; display: grid; gap: 6px; width: min(360px, calc(100vw - 40px)); pointer-events: none }
.toast { display: flex; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 16px; background: var(--ink); color: var(--paper); box-shadow: var(--sh3); font-size: var(--t5); animation: tin var(--mid) var(--e-out) }
.toast .ic { margin-top: 2px; color: #ffffffb0 } .toast.bad .ic { color: #ff8a7a } .toast.ok .ic { color: #7fdcae }
.toast small { display: block; color: #ffffff90; font-size: var(--t6); margin-top: 2px }
.toast.out { animation: tout var(--mid) var(--e) forwards }
@keyframes tin { from { opacity: 0; transform: translateY(10px) scale(.98) } }
@keyframes tout { to { opacity: 0; transform: translateY(6px) } }

/* sheet (slide-over) */
.scrim { position: fixed; inset: 0; z-index: 60; background: #15151430; backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity var(--mid) var(--e) }
.scrim.on { opacity: 1; pointer-events: auto }
.sheet { position: fixed; z-index: 61; top: 10px; right: 10px; bottom: 10px; width: min(520px, calc(100vw - 20px)); overflow: auto; overscroll-behavior: contain; border-radius: var(--r4); background: var(--paper); box-shadow: var(--sh3); transform: translateX(calc(100% + 20px)); transition: transform var(--slow) var(--e-out) }
.sheet.on { transform: none }
.sheet-h { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px) }
.sheet-h h3 { font-size: var(--t3); font-weight: 400; letter-spacing: -.02em; margin-right: auto }
.x { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: background var(--fast) } .x:hover { background: #15151410 }
.sheet-b { padding: 4px 20px 28px }

/* fields */
.field { display: grid; gap: 7px } .field > span { font-size: var(--t6); color: var(--soft) }
.input { height: 48px; width: 100%; padding: 0 14px; border-radius: 14px; border: 0; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow var(--fast) }
.input:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--ink) }
textarea.input { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical }
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: #1515140a }
.seg button { position: relative; z-index: 1; height: 34px; padding: 0 14px; border-radius: 999px; font-size: var(--t6); color: var(--soft); transition: color var(--fast) }
.seg button[aria-pressed=true] { color: var(--ink) }
.seg .on { position: absolute; top: 4px; height: 34px; border-radius: 999px; background: var(--white); box-shadow: var(--sh1); transition: transform var(--mid) var(--e-out), width var(--mid) var(--e-out) }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; --p: 50% }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ink) var(--p), var(--line-2) var(--p)) }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 1px var(--line-2), 0 3px 8px -2px #15151440; transition: transform var(--fast) var(--e) }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12) }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2) } input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ink) }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 1px var(--line-2), 0 3px 8px -2px #15151440 }

/* footer */
.foot { margin-top: 72px; background: var(--ink); color: #f1f1ec; overflow: hidden }
.foot-run { position: relative; height: 58px; border-bottom: 1px solid #ffffff12 }
.foot-run i { position: absolute; bottom: 9px; left: -80px; width: 62px; height: 36px; background: url("gallop-ink.webp") 0 0 / 1984px 36px no-repeat; filter: invert(1); opacity: .85; animation: run .9s steps(32) infinite, cross 15s linear infinite; animation-play-state: paused }
.foot.in .foot-run i { animation-play-state: running }
.foot-run i:nth-child(2) { bottom: 15px; scale: .7; opacity: .4; animation-duration: .9s, 21s; animation-delay: 0s, -7s } .foot-run i:nth-child(3) { bottom: 7px; scale: .85; opacity: .6; animation-duration: .9s, 17s; animation-delay: 0s, -12s }
@keyframes run { to { background-position: -1984px 0 } } @keyframes cross { to { left: calc(100% + 20px) } }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: end; padding: 44px 0 30px }
.foot-word { font-size: clamp(64px, 13vw, 210px); font-weight: 300; letter-spacing: -.07em; line-height: .78; color: #f1f1ec }
.foot nav { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 36px; font-size: var(--t5) }
.foot nav a { color: #f1f1ecb0; transition: color var(--fast) } .foot nav a:hover { color: #fff }
.foot-base { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0 26px; border-top: 1px solid #ffffff12; font-size: var(--t6); color: #f1f1ec70 }
.foot-base a { color: #f1f1ecc0; text-decoration: underline; text-underline-offset: 3px } .foot-base button { color: #f1f1ec90; text-decoration: underline; text-underline-offset: 3px } .foot-base button:hover { color: #fff }

@media (max-width: 980px) {
  .nav { position: fixed; z-index: 50; top: 74px; left: 10px; right: 10px; display: grid; padding: 8px; border-radius: 22px; background: var(--white); box-shadow: var(--sh3); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity var(--mid) var(--e), transform var(--mid) var(--e-out) }
  .nav.open { opacity: 1; transform: none; pointer-events: auto } .nav a { height: 48px; font-size: var(--t4) } .nav .pill { display: none } .nav a[aria-current] { background: #15151408 }
  .menu-b { display: grid } .clock .when { display: none }
  .foot-in { grid-template-columns: 1fr }
}
@media (max-width: 560px) { .top-r .btn { display: none } .tick-s { display: none } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important } .rv { opacity: 1; transform: none } .foot-run i { animation: none !important; left: 30% } .foot-run i:nth-child(2) { left: 55% } .foot-run i:nth-child(3) { left: 75% } }

/* ── one page anatomy for every page: context line, title, sentence, stats; the page's one visual on the right */
:root { --t-page: clamp(44px, 4.8vw, 76px); --t-sec: clamp(26px, 2vw, 34px); --t-stat: clamp(26px, 2.2vw, 36px) }
.ph { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(0, 1.25fr); gap: 20px 48px; align-items: center; min-height: min(640px, calc(100dvh - 68px)); padding: 28px 0 20px }
.ph.compact { min-height: 0; padding: 30px 0 26px; grid-template-columns: 1fr auto; align-items: end }
.ph-ctx { display: flex; align-items: center; gap: 12px; min-height: 36px; font-size: var(--t6); color: var(--soft) }
.ph-t { margin-top: 18px; font-size: var(--t-page); font-weight: 300; letter-spacing: -.055em; line-height: .96; text-wrap: balance; animation: ina .8s var(--e-out) both }
.ph-d { margin-top: 18px; max-width: 34ch; font-size: var(--t3); line-height: 1.4; color: var(--ink-2); letter-spacing: -.015em; animation: ina .8s var(--e-out) .06s both } .ph-d b { font-weight: 500; color: var(--ink) }
.ph-stats { display: flex; flex-wrap: wrap; gap: 18px 36px; margin-top: 34px; animation: ina .8s var(--e-out) .12s both }
.ph-stats > div { display: grid; gap: 2px } .ph-stats dt, .ph-stats .lbl { font-size: var(--t6); color: var(--soft) } .ph-stats dd, .ph-stats b { font-size: var(--t-stat); font-weight: 300; letter-spacing: -.04em; line-height: 1.05 }
.ph-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; animation: ina .8s var(--e-out) .18s both }
.ph-art { position: relative; min-width: 0; animation: ina 1s var(--e-out) .05s both }
.sec-h h2 { font-size: var(--t-sec) }
.panel { background: var(--card); border-radius: 20px; box-shadow: var(--sh1), inset 0 0 0 1px #15151406; min-width: 0 }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px 8px } .panel-h h2, .panel-h h3 { font-size: var(--t3); font-weight: 400; letter-spacing: -.02em }
.em img { object-fit: contain; transform: scale(.96) } .card.hov:hover .em img, a:hover > .em img, .em.on img { transform: scale(1.04) rotate(-2deg) }
@media (max-width: 1080px) { .ph { grid-template-columns: 1fr; min-height: 0 } .ph.compact { grid-template-columns: 1fr; align-items: start } }

/* guided tour */
.tour-ring { position: fixed; z-index: 80; border-radius: 24px; box-shadow: 0 0 0 2px var(--red), 0 0 0 9999px #15151433; pointer-events: none; transition: left var(--slow) var(--e-out), top var(--slow) var(--e-out), width var(--slow) var(--e-out), height var(--slow) var(--e-out) }
.tour { position: fixed; z-index: 81; display: grid; gap: 8px; padding: 18px 18px 14px; border-radius: 20px; background: var(--paper); box-shadow: var(--sh3), inset 0 0 0 1px #15151408; animation: tin var(--mid) var(--e-out); transition: left var(--slow) var(--e-out), top var(--slow) var(--e-out) }
.tour b { font-size: var(--t4); font-weight: 500; letter-spacing: -.015em } .tour p { font-size: var(--t5); color: var(--ink-2); line-height: 1.45 }
.tour-k { font-size: var(--t6); color: var(--red-ink) } .tour-a { display: flex; gap: 6px; justify-content: end; margin-top: 6px } .tour-a .btn.quiet { margin-right: auto; padding: 0 8px }
.tour-dots { display: flex; gap: 5px; justify-content: center; padding-top: 4px } .tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: #15151420; transition: background var(--mid), width var(--mid) var(--e-out) } .tour-dots i.on { width: 18px; border-radius: 6px; background: var(--red) } .tour-dots i.done { background: var(--ink-2) }
.foot-team { display: inline-flex; gap: 16px } .foot-team a { color: #f1f1ec70 !important; text-decoration: none !important }

/* The voting header shares the existing Privy wallet connection. */
.header-wallet-connect { justify-content: center; padding: 0 14px; font-weight: 500; min-width: 112px }
@media(max-width:560px) {
 .has-wallet-connect .brand span { display: none }
 .has-wallet-connect .top-in { gap: 10px }
 .has-wallet-connect .top-r { gap: 6px; margin-left: auto; min-width: 0 }
 .has-wallet-connect .header-wallet-connect { min-width: 104px; padding-inline: 10px }
 .has-wallet-connect .ticker { gap: 6px }
}
