/* HUMANFLY — black, white, one gold. */
:root { --bg: #000; --ink: #f4f4f2; --ink2: rgba(244, 244, 242, .56); --ink3: rgba(244, 244, 242, .3); --line: rgba(255, 255, 255, .09); --line2: rgba(255, 255, 255, .18); --gold: #e6c26b; --gold2: rgba(230, 194, 107, .45); --gold3: rgba(230, 194, 107, .12); --sans: 'Instrument Sans', system-ui, sans-serif; --mono: 'DM Mono', ui-monospace, Menlo, monospace; }
* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; } button, input { font: inherit; color: inherit; background: none; border: 0; } button { cursor: pointer; }
.hide { display: none !important; } .dim { color: var(--ink3); }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.loader { position: fixed; inset: 0; z-index: 30; display: grid; place-content: center; gap: 14px; justify-items: center; background: #000; font: 300 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink2); transition: opacity .8s; }
.loader i { width: 120px; height: 1px; background: linear-gradient(90deg, transparent, #fff, transparent); animation: sweep 1.4s ease-in-out infinite; }
@keyframes sweep { 0% { transform: translateX(-60px); opacity: .2; } 50% { opacity: 1; } 100% { transform: translateX(60px); opacity: .2; } }
.loader.off { opacity: 0; pointer-events: none; }

/* ── header ─────────────────────────────────────────────────────── */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; gap: 30px; padding: 18px clamp(18px, 4vw, 48px); mix-blend-mode: difference; }
.brand { font: 600 13px/1 var(--sans); letter-spacing: .3em; }
nav { display: flex; gap: 22px; font-size: 13px; color: var(--ink2); } nav a:hover { color: #fff; }
.live { margin-left: auto; display: flex; align-items: center; gap: 8px; font: 300 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink3); } .live.on i { background: #fff; box-shadow: 0 0 8px #fff; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }

main { position: relative; z-index: 3; }

/* ── story ──────────────────────────────────────────────────────── */
.s { position: relative; min-height: 100vh; display: flex; align-items: flex-start; padding: 0 clamp(18px, 6vw, 96px); }
.s[data-s="1"], .s[data-s="2"], .s[data-s="3"] { min-height: 170vh; } .s[data-s="4"], .s[data-s="5"], .s[data-s="6"] { min-height: 130vh; }
.s .cap { position: sticky; top: 36vh; }
.s .cap.center { top: 12vh; padding-top: 0; }
.vignette { position: fixed; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55) 100%); }
.hero { justify-content: center; align-items: center; text-align: center; }
.hero-in { position: relative; z-index: 2; }
h1 { margin: 0; font: 500 clamp(44px, 9vw, 128px)/1 var(--sans); letter-spacing: .12em; color: #fff; text-shadow: 0 0 60px rgba(255, 255, 255, .15); }
.tag { margin: 18px 0 0; font-size: clamp(15px, 1.6vw, 19px); color: var(--ink2); }
.counts { display: flex; justify-content: center; align-items: stretch; gap: 0; margin: 44px auto 0; width: max-content; max-width: 100%; }
.counts > div { padding: 6px 30px; border-right: 1px solid var(--line); min-width: 150px; }
.hero-in > * { animation: rise 1.4s cubic-bezier(.2, .7, .2, 1) both; } .hero-in .tag { animation-delay: .25s; } .hero-in .counts { animation-delay: .5s; } .hero-in .cue { animation-delay: .9s; }
@keyframes rise { 0% { opacity: 0; transform: translateY(22px); filter: blur(10px); } 100% { opacity: 1; transform: none; filter: none; } }
.counts > div:last-child { border-right: 0; }
.counts b { display: block; font: 500 22px/1 var(--mono); color: #fff; } .counts span { display: block; margin-top: 6px; font: 300 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
.counts .mid b { color: var(--gold); text-shadow: 0 0 14px var(--gold2); }
.cue { position: absolute; left: 50%; bottom: -28vh; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font: 300 10px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--ink3); }
.cue i { width: 1px; height: 40px; background: linear-gradient(180deg, var(--ink2), transparent); animation: drop 1.8s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 60% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.sil { position: absolute; top: 50%; width: min(34vw, 420px); aspect-ratio: 1; transform: translateY(-50%); opacity: .11; pointer-events: none; }
.sil svg { width: 100%; height: 100%; color: #fff; }
.sil-fly { left: 5vw; } .sil-human { right: 5vw; }
.cap { max-width: 460px; padding: 0; opacity: 0; transform: translateY(26px); filter: blur(8px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1), filter .9s; }
.cap.in { opacity: 1; transform: none; filter: none; }
/* a soft dark pool behind every caption, no edges, so the words stay readable inside a bright cloud */
.cap { position: relative; z-index: 2; }
.cap::before { content: ''; position: absolute; z-index: -1; inset: -34% -22%; background: radial-gradient(closest-side, rgba(0, 0, 0, .92), rgba(0, 0, 0, .7) 45%, rgba(0, 0, 0, 0) 100%); filter: blur(12px); pointer-events: none; }
.cap h2, .cap p, .cap .n, .cap .live-line { text-shadow: 0 0 14px rgba(0, 0, 0, .9), 0 1px 3px rgba(0, 0, 0, .8); }
.cap.left { margin-right: auto; } .cap.right { margin-left: auto; text-align: right; } .cap.center { margin: 0 auto; text-align: center; }
.cap .n { font: 300 11px/1 var(--mono); letter-spacing: .3em; color: var(--ink3); }
.cap h2 { margin: 10px 0 10px; font: 500 clamp(34px, 4.6vw, 62px)/1.02 var(--sans); letter-spacing: -.02em; color: #fff; }
.cap p { margin: 0; font-size: 16px; color: rgba(244, 244, 242, .78); text-wrap: balance; }
.cap p b { color: var(--gold); font-weight: 500; }
.live-line { margin-top: 14px; font: 400 12px/1.5 var(--mono); color: var(--ink2); min-height: 18px; }
.live-line b { color: #fff; font-weight: 500; } .live-line em { font-style: normal; color: var(--gold); }

/* ── console ────────────────────────────────────────────────────── */
.console, .wallet, .holders, .how, footer { max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }
.console { padding-top: 10vh; }
.vote { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 24px; align-items: center; padding: 30px 34px; border-radius: 22px; background: radial-gradient(120% 140% at 50% 0%, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); backdrop-filter: blur(14px); }
.side { display: flex; align-items: center; gap: 14px; } .side.human { flex-direction: row-reverse; text-align: right; }
.side svg { width: 44px; height: 44px; color: #fff; opacity: .9; flex: none; }
.side b { display: block; font: 500 26px/1 var(--mono); color: #fff; } .side span { display: block; margin-top: 5px; font: 300 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.track { position: relative; height: 2px; background: var(--line2); }
.track i { position: absolute; left: 50%; top: 0; bottom: 0; width: 0; background: #fff; transition: left .6s, width .6s, background .6s, box-shadow .6s; }
.track em { position: absolute; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transform: translateX(-50%); transition: left .6s, background .6s, box-shadow .6s; }
.vote.agree .track i, .vote.trade .track i { background: var(--gold); box-shadow: 0 0 14px var(--gold2); } .vote.agree .track em, .vote.trade .track em { background: var(--gold); box-shadow: 0 0 16px var(--gold2); }
.state { margin-top: 12px; text-align: center; font: 400 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink2); }
.vote.agree .state, .vote.trade .state { color: var(--gold); }
.cgrid { display: grid; grid-template-columns: 7fr 5fr; gap: 14px; margin-top: 14px; }
.chat { border-radius: 22px; background: rgba(255, 255, 255, .025); backdrop-filter: blur(14px); display: flex; flex-direction: column; min-height: 560px; max-height: 640px; }
.chead { display: flex; justify-content: space-between; padding: 18px 24px 8px; font: 300 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.cbody { flex: 1; overflow-y: auto; padding: 12px 24px 18px; display: flex; flex-direction: column-reverse; gap: 16px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.msg { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; max-width: 78%; }
.msg svg { width: 30px; height: 30px; color: #fff; opacity: .85; }
.msg .who { font: 300 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink3); margin-bottom: 5px; }
.msg .txt { padding: 0; font-size: 16px; line-height: 1.45; color: #fff; }
.msg.human { margin-left: auto; grid-template-columns: 1fr 30px; text-align: right; } .msg.human .txt { text-align: left; }
.msg.wallet { max-width: 100%; grid-template-columns: 30px 1fr; } .msg.wallet .txt { color: var(--gold); text-shadow: 0 0 18px var(--gold3); font-family: var(--mono); font-size: 14px; }
.msg.wallet svg { color: var(--gold); }
.msg .t { font: 300 10px/1 var(--mono); color: var(--ink3); margin-top: 5px; }
.msg.new { animation: pop .7s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { 0% { transform: translateY(10px); opacity: 0; filter: blur(6px); } 100% { transform: none; opacity: 1; filter: none; } }
.msg a { color: inherit; border-bottom: 1px dotted currentColor; }
#more { padding: 14px;  font: 300 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink3); } #more:hover { color: #fff; }
.side-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.pnl { border-radius: 18px; background: rgba(255, 255, 255, .025); backdrop-filter: blur(14px); padding: 20px 22px; transition: background .3s; }
.pnl:hover { background: rgba(255, 255, 255, .04); }
.pl { font: 300 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink3); }
.big { margin-top: 10px; font: 500 26px/1 var(--mono); color: #fff; }
.sub { margin-top: 6px; font: 300 11px/1.5 var(--mono); color: var(--ink2); }
.mt { margin-top: 18px; }
.book { margin-top: 10px; display: grid; gap: 6px; font: 400 12px/1.4 var(--mono); color: var(--ink2); }
.book div { display: flex; justify-content: space-between; gap: 10px; } .book b { color: #fff; font-weight: 500; } .book .up { color: var(--gold); } .book .dn { color: var(--ink3); }

/* ── wallet, holders, how ───────────────────────────────────────── */
.sh { display: flex; align-items: baseline; gap: 14px; margin: 64px 0 14px; }
.sh h3 { margin: 0; font: 500 22px/1 var(--sans); letter-spacing: -.01em; color: #fff; } .sh span { font: 300 11px/1 var(--mono); letter-spacing: .1em; color: var(--ink3); }
.wgrid { display: grid; grid-template-columns: 5fr 7fr; gap: 14px; }
.addr { margin-top: 8px; font: 400 13px/1.5 var(--mono); color: #fff; word-break: break-all; }
.wbig { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; } .wbig b { font: 500 34px/1 var(--mono); color: #fff; } .wbig span { font: 300 11px/1 var(--mono); letter-spacing: .12em; color: var(--ink3); }
.row { display: flex; gap: 8px; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line2); font: 400 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .15s; }
.btn:hover { border-color: #fff; transform: translateY(-1px); } .btn.solid { background: #fff; color: #000; border-color: #fff; } .btn.solid:hover { box-shadow: 0 0 22px rgba(255, 255, 255, .3); }
.toks { margin-top: 8px; display: grid; gap: 6px; font: 400 12px/1.4 var(--mono); } .toks div { display: flex; justify-content: space-between; color: var(--ink2); } .toks b { color: #fff; font-weight: 500; }
.trades { margin-top: 10px; display: grid; gap: 0; max-height: 360px; overflow-y: auto; }
.trow { display: grid; grid-template-columns: 62px 50px 1fr 1fr 1fr; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font: 400 12px/1.4 var(--mono); }
.trow .t { color: var(--ink3); } .trow .side { font-weight: 500; letter-spacing: .1em; font-size: 10px; } .trow .buy { color: #fff; } .trow .sell { color: var(--ink2); } .trow .in, .trow .out { color: var(--ink3); } .trow a { color: var(--ink3); border-bottom: 1px dotted var(--ink3); }
.empty { padding: 12px 0; color: var(--ink3); font: 300 12px/1.5 var(--mono); }
.scan { display: flex; gap: 10px; } #addr { flex: 1; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .4); color: #fff; font: 400 13px var(--mono); outline: none; } #addr:focus { border-color: #fff; }
.out { margin-top: 14px; font: 300 12px/1.5 var(--mono); } .out .err { color: var(--gold); }
.sg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; } .sg div { padding: 12px 0; } .sg b { display: block; font: 500 22px/1 var(--mono); color: #fff; } .sg span { display: block; margin-top: 5px; font: 300 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); } .sg .m { color: var(--gold); }
.how-in p { margin: 0 0 12px; max-width: 760px; color: var(--ink2); } .how-in p:last-child { margin: 0; } .how-in b { color: #fff; font-weight: 500; }
footer { display: flex; flex-wrap: wrap; gap: 18px; margin: 60px auto 40px; padding-top: 16px; border-top: 1px solid var(--line); font: 300 11px/1.6 var(--mono); color: var(--ink3); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); } .reveal.in { opacity: 1; transform: none; }
@media (max-width: 960px) { .cgrid, .wgrid { grid-template-columns: 1fr; } .vote { grid-template-columns: 1fr; } .side.human { flex-direction: row; text-align: left; } .sil { display: none; } nav { display: none; } .counts > div { min-width: 0; padding: 12px 14px; } .sg { grid-template-columns: 1fr 1fr; } .trow { grid-template-columns: 56px 44px 1fr 1fr; } .trow > :nth-child(5) { display: none; } .cap.right { text-align: left; margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .cap, .reveal { transition: none; opacity: 1; transform: none; filter: none; } }
