:root {
  --bg: #000;
  --fg: #ededed;
  --dim: #8a8a8a;
  --faint: #4a4a4a;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.22);
  --accent: #2f6bff;
  --accent-soft: rgba(47, 107, 255, 0.14);
  --ok: #2f6bff;
  --warn: #e8e8e8;
  --err: #ff5a5a;
  --sans: 'Special Elite', 'Courier Prime', 'Courier New', 'Courier 10 Pitch', monospace;
  --mono: 'Special Elite', 'Courier Prime', 'Courier New', 'Courier 10 Pitch', monospace;
  --top: 60px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
html, body { margin: 0; color: var(--fg); font-family: var(--sans); font-weight: 400; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--fg); }
.mono, .num { font-family: var(--mono); font-feature-settings: 'tnum' 1; }
.dim { color: var(--dim); }
.accent { color: var(--accent); }
.err { color: var(--err); }
::selection { background: var(--accent); color: #fff; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; height: var(--top); display: flex; align-items: center; gap: 28px; padding: 0 24px; z-index: 20;
  background: linear-gradient(#000 60%, rgba(0,0,0,0)); transition: background .3s; }
.top.solid { background: rgba(0,0,0,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: 0.32em; font-size: 12px; white-space: nowrap; }
.mark { width: 20px; height: 20px; }
.nav { display: flex; gap: 22px; font-size: 13px; color: var(--dim); }
.nav a { position: relative; padding: 4px 0; transition: color .2s; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--fg); }
.nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ca { display: flex; align-items: center; gap: 8px; height: 38px; border: 1px solid var(--line-2); background: #000; padding: 0 12px; font-size: 12px; transition: border-color .2s; }
.ca:hover { border-color: var(--accent); }
.ca-label { color: var(--dim); letter-spacing: .12em; font-size: 10px; }
.x-link { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-2); background: #000; }
.x-link:hover { border-color: var(--fg); }
.x-link { cursor: pointer; }
.x-link svg { width: 14px; height: 14px; fill: var(--fg); }
.menu-btn { display: none; width: 32px; height: 32px; position: relative; }
.menu-btn span { position: absolute; left: 7px; right: 7px; height: 1px; background: var(--fg); }
.menu-btn span:first-child { top: 12px; } .menu-btn span:last-child { top: 19px; }

/* ---------- buttons / inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 18px; font-size: 13px; letter-spacing: .02em;
  border: 1px solid var(--fg); background: var(--fg); color: #000; transition: all .2s; white-space: nowrap; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:disabled { opacity: .35; pointer-events: none; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { background: transparent; border-color: var(--accent); color: var(--fg); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.input, textarea.input, select.input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 10px 0; outline: none; border-radius: 0; transition: border-color .2s; }
.input:focus { border-bottom-color: var(--accent); }
textarea.input { resize: vertical; min-height: 70px; }
.hint { font-size: 12px; color: var(--dim); }

/* ---------- layout ---------- */
.page { padding: calc(var(--top) + 48px) 24px 96px; max-width: 1180px; margin: 0 auto; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.eyebrow { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
h1 { font-weight: 400; font-size: clamp(30px, 4.6vw, 50px); letter-spacing: -0.01em; margin: 0; line-height: 1.05; }
h2 { font-weight: 400; font-size: 18px; margin: 0 0 18px; letter-spacing: -0.005em; }
h3 { font-weight: 500; font-size: 14px; margin: 0; }
p { line-height: 1.65; color: #cfcfcf; }
.lead { color: var(--dim); max-width: 560px; margin: 14px 0 0; }
.section { margin-top: 56px; }
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid > * { background: var(--bg); }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.stat { padding: 22px 20px; }
.stat .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.stat .v { font-family: var(--mono); font-size: 24px; font-weight: 300; margin-top: 10px; }
.stat .s { font-size: 12px; color: var(--dim); margin-top: 6px; font-family: var(--mono); }
.empty { border: 1px dashed var(--line-2); padding: 48px 24px; text-align: center; color: var(--dim); font-size: 14px; }
.empty a { color: var(--accent); }

/* ---------- tables / rows ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 400; color: var(--dim); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: rgba(255,255,255,.02); }
.table-wrap { overflow-x: auto; }
.tx { font-family: var(--mono); font-size: 12px; color: var(--dim); border-bottom: 1px solid var(--faint); }
.tx:hover { color: var(--accent); border-color: var(--accent); }

.coin-chip { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.coin-chip img, .avatar { width: 28px; height: 28px; object-fit: cover; border: 1px solid var(--line); background: #0a0a0a; flex: none; }
.coin-chip .sym { font-family: var(--mono); font-size: 13px; }
.coin-chip .nm { color: var(--dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border: 1px solid var(--line-2); color: var(--dim); white-space: nowrap; }
.tag.ORBITING { color: var(--dim); }
.tag.APPROACHING { color: var(--fg); border-color: var(--fg); }
.tag.READY, .tag.CONVERGING { color: var(--accent); border-color: var(--accent); }
.tag.CONVERGED { color: #fff; background: var(--accent); border-color: var(--accent); }
.tag.dot::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag.CONVERGING::before { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }

.bar { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--fg); }
.bar.full > i { background: var(--accent); }

/* ---------- orbit (home) ---------- */
.orbit-wrap { position: fixed; inset: 0; }
#orbit { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.orbit-hud { position: fixed; left: 24px; bottom: 28px; z-index: 5; pointer-events: none; max-width: 420px; }
.orbit-hud h1 { font-size: clamp(30px, 4.4vw, 48px); }
.orbit-hud .lead { margin-top: 10px; }
.orbit-hud .row { display: flex; gap: 28px; margin-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--dim); flex-wrap: wrap; }
.orbit-hud .row b { display: block; color: var(--fg); font-weight: 400; font-size: 18px; margin-top: 4px; }
.orbit-hud .cta { margin-top: 24px; pointer-events: auto; display: flex; gap: 10px; }
.feed { position: fixed; right: 24px; top: calc(var(--top) + 20px); bottom: 28px; width: 300px; z-index: 5; display: flex; flex-direction: column; }
.feed h3 { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .16em; color: var(--dim); text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.feed h3::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: blink 1.6s infinite; }
.feed-list { overflow-y: auto; scrollbar-width: none; mask-image: linear-gradient(#000 85%, transparent); }
.feed-item { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 12px; align-items: flex-start; animation: fade .4s; }
.feed-item img { width: 26px; height: 26px; object-fit: cover; border: 1px solid var(--line); }
.feed-item .t { color: var(--dim); font-family: var(--mono); font-size: 10px; margin-top: 3px; }
.feed-item .m { line-height: 1.45; }
.feed-item .m b { font-family: var(--mono); font-weight: 400; }
.feed-item.conv .m b { color: var(--accent); }
.tooltip { position: fixed; z-index: 30; pointer-events: none; background: #000; border: 1px solid var(--line-2); padding: 12px 14px; font-size: 12px; min-width: 200px; display: none; }
.tooltip .tt-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tooltip .tt-head img { width: 30px; height: 30px; object-fit: cover; }
.tooltip dl { display: grid; grid-template-columns: auto auto; gap: 5px 18px; margin: 0; font-family: var(--mono); }
.tooltip dt { color: var(--dim); } .tooltip dd { margin: 0; text-align: right; }
.legend { position: fixed; left: 50%; transform: translateX(-50%); bottom: 26px; z-index: 5; display: flex; gap: 18px; font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
.legend i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* ---------- launch ---------- */
.launch { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; }
.launch form { display: flex; flex-direction: column; gap: 26px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-2); padding: 7px 12px; font-size: 12px; color: var(--dim); transition: all .15s; }
.chip:hover { color: var(--fg); border-color: var(--fg); }
.chip.on { color: #fff; border-color: var(--accent); background: var(--accent); }
.drop { border: 1px dashed var(--line-2); display: flex; align-items: center; gap: 18px; padding: 16px; cursor: pointer; transition: border-color .2s; }
.drop:hover { border-color: var(--accent); }
.drop .pv { width: 72px; height: 72px; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; color: var(--faint); font-size: 22px; flex: none; }
.drop .pv img { width: 100%; height: 100%; object-fit: cover; }
.summary { border: 1px solid var(--line); padding: 24px; position: sticky; top: calc(var(--top) + 24px); }
.summary .line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.summary .line:last-of-type { border: 0; }
.steps { list-style: none; padding: 0; margin: 20px 0 0; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; padding: 8px 0; font-size: 13px; color: var(--dim); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--faint); padding-top: 2px; }
.steps li.on { color: var(--fg); } .steps li.on::before { color: var(--accent); }
.steps li.done { color: var(--dim); text-decoration: line-through; text-decoration-color: var(--faint); }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { border: 1px solid var(--line); background: var(--bg); padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: background .2s; }
.card:hover { background: #050505; }
.card .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card .kv { display: flex; justify-content: space-between; font-size: 12px; font-family: var(--mono); }
.card .kv span:first-child { color: var(--dim); }
.countdown { font-family: var(--mono); font-size: 22px; font-weight: 300; }

/* ---------- convergence rows ---------- */
.conv { display: grid; grid-template-columns: 1fr auto 1fr auto 1.2fr; align-items: center; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.conv .x { color: var(--faint); font-family: var(--mono); }
.conv .arrow { width: 56px; height: 1px; background: linear-gradient(90deg, var(--faint), var(--accent)); position: relative; }
.conv .arrow::after { content: ''; position: absolute; right: -1px; top: -3px; border: 3.5px solid transparent; border-left: 5px solid var(--accent); }
.conv-meta { grid-column: 1 / -1; display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--dim); }

/* ---------- lineage ---------- */
.search { display: flex; gap: 10px; max-width: 560px; }
.tree { margin-top: 36px; overflow-x: auto; padding-bottom: 20px; }
.tnode { display: flex; align-items: center; gap: 0; }
.tnode > .self { flex: none; }
.tnode > .kids { display: flex; flex-direction: column; gap: 12px; padding-left: 36px; position: relative; }
.tnode > .kids::before { content: ''; position: absolute; left: 0; top: 50%; width: 18px; height: 1px; background: var(--line-2); }
.tnode > .kids > .tnode { position: relative; }
.tnode > .kids > .tnode::before { content: ''; position: absolute; left: -18px; top: 50%; width: 18px; height: 1px; background: var(--line-2); }
.tnode > .kids::after { content: ''; position: absolute; left: 18px; top: 25%; bottom: 25%; width: 1px; background: var(--line-2); }
.node { border: 1px solid var(--line-2); padding: 10px 12px; display: flex; gap: 10px; align-items: center; min-width: 190px; background: var(--bg); transition: border-color .2s; }
.node:hover { border-color: var(--accent); }
.node.root { border-color: var(--accent); }
.node img { width: 34px; height: 34px; object-fit: cover; }
.node .g { font-family: var(--mono); font-size: 10px; color: var(--dim); }
.path { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.path .sep { width: 26px; height: 1px; background: var(--accent); }

/* ---------- coin page ---------- */
.coin-head { display: flex; gap: 24px; align-items: center; }
.coin-head img { width: 84px; height: 84px; object-fit: cover; border: 1px solid var(--line-2); }
.chart { width: 100%; height: 280px; border: 1px solid var(--line); display: block; }
.progress-big { margin-top: 28px; }
.progress-big .bar { height: 3px; margin-top: 10px; }
.links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- how ---------- */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.how ol { padding: 0; list-style: none; counter-reset: h; margin: 0; }
.how ol li { counter-increment: h; padding: 20px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 6px; }
.how ol li::before { content: counter(h, decimal-leading-zero); font-family: var(--mono); color: var(--accent); font-size: 12px; padding-top: 2px; }
.how ol li h3 { margin-bottom: 6px; }
.how ol li p { margin: 0; font-size: 14px; color: var(--dim); grid-column: 2; }
.diagram { width: 100%; border: 1px solid var(--line); }
.diagram text { font-family: var(--mono); fill: var(--fg); font-size: 11px; }


/* ---------- landing ---------- */
.landing { position: relative; height: 100vh; min-height: 640px; overflow: hidden; background: radial-gradient(circle at 50% 40%, rgba(47,107,255,.10), transparent 45%); }
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.landing-text { position: absolute; left: 0; right: 0; bottom: 70px; text-align: center; padding: 0 20px; z-index: 2; animation: fade .8s ease; }
.landing-text h1 { font-size: clamp(30px, 5.2vw, 64px); }
.landing-text .lead { margin: 14px auto 0; max-width: 620px; }
.landing-text .cta { display: flex; gap: 10px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.landing-stats { position: absolute; left: 24px; top: calc(var(--top) + 24px); display: flex; flex-direction: column; gap: 18px; font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .08em; z-index: 2; }
.landing-stats b { display: block; color: var(--fg); font-weight: 400; font-size: 20px; margin-top: 4px; letter-spacing: 0; }
.landing-feed { position: absolute; bottom: auto; height: 42vh; }
.anno { position: absolute; z-index: 2; max-width: 210px; font-size: 12px; color: var(--dim); line-height: 1.5; pointer-events: none; animation: fade 1.2s ease; }
.anno b { display: block; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .18em; color: var(--fg); margin-bottom: 4px; }
.anno::before { content: ''; position: absolute; top: 6px; width: 60px; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.anno-a, .anno-child { text-align: right; } .anno-a::before, .anno-child::before { right: -72px; background: linear-gradient(90deg, transparent, var(--line-2)); }
.anno-b::before, .anno-core::before { left: -72px; }
.anno-a { right: calc(50% + 190px); top: 13vh; }
.anno-b { left: calc(50% + 190px); top: 13vh; }
.anno-core { left: calc(50% + 190px); top: 35vh; } .anno-core b { color: var(--accent); }
.anno-child { right: calc(50% + 190px); top: 52vh; }
.scroll-cue { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.scroll-cue i { width: 1px; height: 22px; background: linear-gradient(var(--accent), transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.l-sec { max-width: 1180px; margin: 0 auto; padding: 120px 24px; border-top: 1px solid var(--line); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
.l-intro { border-top: 0; max-width: 1340px; }
.big { font-size: clamp(16px, 1.55vw, 20px); font-weight: 400; line-height: 1.85; color: #d6d6d6; max-width: none; margin: 0; letter-spacing: 0; }
.l-h { font-size: clamp(28px, 3.6vw, 44px); font-weight: 300; letter-spacing: -.015em; line-height: 1.1; margin: 0 0 32px; }
.l-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.l-cols > div { background: var(--bg); padding: 28px 24px; }
.l-cols h3 { font-size: 17px; font-weight: 400; margin: 14px 0 12px; }
.l-cols p { font-size: 14px; line-height: 1.7; color: var(--dim); margin: 0; }
.l-num { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .2em; }
.l-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; }
.l-split p { font-size: 15.5px; line-height: 1.8; }
.l-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.l-facts div { background: var(--bg); padding: 22px 20px; }
.l-facts span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.l-facts b { display: block; font-family: var(--mono); font-weight: 300; font-size: 26px; margin-top: 10px; }
.l-gen { display: flex; align-items: center; gap: 18px; margin: 12px 0 40px; flex-wrap: wrap; }
.gen { flex: 1; min-width: 160px; border: 1px solid var(--line); padding: 22px 18px; display: flex; flex-direction: column; gap: 8px; }
.gen i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #fff; margin-right: 6px; }
.gen.g1 i { background: var(--accent); width: 13px; height: 13px; }
.gen.g2 i { background: var(--accent); width: 17px; height: 17px; box-shadow: 0 0 18px rgba(47,107,255,.6); }
.gen.g3 { border-color: var(--accent); } .gen.g3 i { background: var(--accent); width: 21px; height: 21px; box-shadow: 0 0 28px rgba(47,107,255,.9); }
.gen span { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; }
.gen p { font-size: 13px; color: var(--dim); margin: 0; }
.gen-arrow { width: 28px; height: 1px; background: linear-gradient(90deg, var(--faint), var(--accent)); }
.l-wide { font-size: 16px; line-height: 1.85; max-width: 860px; }
.l-bars { display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); padding: 28px; }
.l-bars > div { display: grid; grid-template-columns: 150px 1fr 48px; gap: 14px; align-items: center; font-size: 13px; }
.l-bars span { color: var(--dim); } .l-bars b { font-family: var(--mono); font-weight: 400; text-align: right; }
.l-bars .bar { height: 3px; }
.l-bars .sep { display: block; height: 1px; background: var(--line); margin: 6px 0; }
.l-final { text-align: center; padding-bottom: 160px; }
.l-final h2 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 300; line-height: 1.2; margin: 0; }
.final-mark { width: 84px; height: 84px; margin: 0 auto 28px; }
.final-mark .logo { width: 100%; height: 100%; }
@media (max-width: 1100px) { .anno { display: none; } .l-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .landing-stats { flex-direction: row; left: 16px; right: 16px; justify-content: space-between; gap: 10px; }
  .landing-stats b { font-size: 15px; }
  .landing-feed { display: none; }
  .landing-text { bottom: 56px; }
  .landing-text .lead { font-size: 14px; }
  .l-sec { padding: 80px 18px; }
  .l-split { grid-template-columns: 1fr; gap: 40px; }
  .l-cols { grid-template-columns: 1fr; }
  .gen-arrow { display: none; }
  .l-bars > div { grid-template-columns: 110px 1fr 40px; }
}


/* ---------- landing: convergence effects ---------- */
#tunnel { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.cv-head .cv-w { display: inline-block; white-space: nowrap; }
.cv-head .cv-ch { display: inline-block; transform: translate(var(--dx), var(--dy)) scale(.6); opacity: 0; filter: blur(6px);
  transition: transform 1.6s cubic-bezier(.16,1,.3,1) var(--d), opacity 1.2s ease var(--d), filter 1.4s ease var(--d); }
.cv-head.go .cv-ch { transform: none; opacity: 1; filter: none; }
.hud-corners i { position: absolute; width: 22px; height: 22px; border-color: var(--line-2); border-style: solid; z-index: 2; pointer-events: none; }
.hud-corners i:nth-child(1) { left: 16px; top: calc(var(--top) + 8px); border-width: 1px 0 0 1px; }
.hud-corners i:nth-child(2) { right: 16px; top: calc(var(--top) + 8px); border-width: 1px 1px 0 0; }
.hud-corners i:nth-child(3) { left: 16px; bottom: 16px; border-width: 0 0 1px 1px; }
.hud-corners i:nth-child(4) { right: 16px; bottom: 16px; border-width: 0 1px 1px 0; }
.telemetry { position: absolute; left: 50%; top: calc(var(--top) + 14px); transform: translateX(-50%); display: flex; gap: 22px; font-size: 10px; letter-spacing: .12em; color: var(--dim); z-index: 2; white-space: nowrap; }
.telemetry b { color: var(--fg); font-weight: 400; display: inline-block; min-width: 46px; }
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 16px 0; display: flex; flex-direction: column; gap: 10px;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.mq { display: flex; width: max-content; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--dim); }
.mq span { padding-right: 28px; white-space: nowrap; } .mq em { font-style: normal; color: var(--accent); }
.mq-l { animation: mqL 60s linear infinite; } .mq-r { animation: mqR 60s linear infinite; }
@keyframes mqL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mqR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.eq-sec { position: relative; border-top: 1px solid var(--line); }
.eq-sticky { display: flex; flex-direction: column; justify-content: center; max-width: 1180px; margin: 0 auto; padding: 110px 24px 100px; }
.eq-head .l-h { margin-bottom: 8px; }
.eq-svg { width: 100%; height: auto; max-height: 56vh; overflow: visible; transition: none; }
.eq-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; fill: var(--dim); }
.accent-t { fill: var(--accent); }
.eq-formula { text-align: center; font-size: clamp(18px, 2.6vw, 30px); font-weight: 300; color: var(--dim); margin-top: 6px; transition: color .6s, text-shadow .6s; }
.eq-formula sub { font-size: .5em; }
.eq-sec.done .eq-formula { color: var(--fg); text-shadow: 0 0 24px rgba(47,107,255,.55); }
.eq-read { display: flex; justify-content: center; gap: 36px; margin-top: 18px; font-size: 11px; letter-spacing: .14em; color: var(--dim); flex-wrap: wrap; }
.eq-read b { color: var(--fg); font-weight: 400; }
.cv-rule { display: flex; align-items: center; max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 1px; }
.cv-rule i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2)); transform: scaleX(0); transition: transform 1.4s cubic-bezier(.16,1,.3,1); }
.cv-rule i:first-child { transform-origin: left; } .cv-rule i:last-child { transform-origin: right; background: linear-gradient(270deg, transparent, var(--line-2)); }
.cv-rule b { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0; transform: scale(0); transition: all .5s ease 1.1s; box-shadow: 0 0 14px var(--accent); }
.cv-rule.in i { transform: scaleX(1); } .cv-rule.in b { opacity: 1; transform: scale(1); }
.cv-rule.reveal { opacity: 1; transform: none; }
.cv-rule + .l-sec { border-top: 0; }
.conv-cols > div { transition: transform 1.1s cubic-bezier(.16,1,.3,1), opacity 1.1s ease; opacity: 0; }
.conv-cols > div:nth-child(1) { transform: translateX(-80px); } .conv-cols > div:nth-child(2) { transform: translateX(-40px); transition-delay: .1s; }
.conv-cols > div:nth-child(3) { transform: translateX(40px); transition-delay: .1s; } .conv-cols > div:nth-child(4) { transform: translateX(80px); }
.reveal.in .conv-cols > div { transform: none; opacity: 1; }
.tree-conv svg { width: 100%; height: auto; max-height: 340px; margin: 4px 0 28px; }
.tc-path { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 1.2; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 2.2s ease .2s; }
.reveal.in .tc-path { stroke-dashoffset: 0; }
.tc-sing { filter: drop-shadow(0 0 12px #2f6bff); animation: singp 2.4s ease-in-out infinite; transform-origin: 448px 275px; }
@keyframes singp { 50% { transform: scale(1.25); } }
@media (max-width: 1100px) { .telemetry { display: none; } }
@media (max-width: 900px) { .eq-sticky { padding: 70px 18px 60px; } .eq-read { gap: 18px; } .hud-corners { display: none; } }

/* ---------- floating mathematics ---------- */
.math-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.mf { position: absolute; white-space: nowrap; display: inline-flex; align-items: center; gap: .25em; color: rgba(255,255,255,.62);
  font-family: 'STIX Two Math', 'Cambria Math', 'Latin Modern Math', 'Times New Roman', serif; font-style: italic; letter-spacing: .01em;
  animation: mfLife var(--life, 7s) ease-in-out forwards; }
.mf.hot { color: rgba(110,150,255,.85); text-shadow: 0 0 14px rgba(47,107,255,.45); }
.mf sub, .mf sup { font-size: .68em; }
.mf .op { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; font-style: normal; margin: 0 .1em; }
.mf .op small { font-size: .6em; font-style: italic; }
.mf .op .big { font-size: 1.55em; line-height: .95; }
.mf .fr { display: inline-flex; flex-direction: column; align-items: center; font-size: .82em; line-height: 1.15; margin: 0 .12em; }
.mf .fr span:first-child { border-bottom: 1px solid currentColor; padding: 0 .2em; }
.mf .fr span { padding: 0 .2em; }
@keyframes mfLife {
  0% { opacity: 0; filter: blur(6px); transform: translate(0, 0) scale(.96); }
  18% { opacity: 1; filter: blur(0); }
  78% { opacity: 1; filter: blur(0); }
  100% { opacity: 0; filter: blur(4px); transform: translate(var(--tx), var(--ty)) scale(.9); }
}

/* ---------- story ---------- */
.story { max-width: 1240px; }
.story-hero { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: center; min-height: calc(78vh - var(--top)); }
.story-hero .lead { max-width: 620px; font-size: 16px; }
.logo-stage { position: relative; height: 380px; }
#logo3d { width: 100%; height: 100%; display: block; }
.logo-spin { width: 220px; height: 220px; transform-style: preserve-3d; animation: spinY 8s linear infinite; }
.logo-spin .logo { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 22px rgba(47,107,255,.25)); }
@keyframes spinY { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
.logo-floor { position: absolute; bottom: 70px; width: 200px; height: 18px; border-radius: 50%; background: radial-gradient(ellipse, rgba(47,107,255,.28), transparent 70%); left: 50%; margin-left: -100px; animation: floor 4s ease-in-out infinite; }
@keyframes floor { 0%,100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.75); opacity: .5; } }
.story-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; margin-top: 40px; align-items: start; }
.story-stage { position: sticky; top: calc(var(--top) + 20px); }
.stage-box { position: relative; border: 1px solid var(--line); height: min(78vh, 640px); background: radial-gradient(circle at 50% 50%, rgba(47,107,255,.06), transparent 60%); }
#story-canvas { width: 100%; height: 100%; display: block; }
.stage-cap { position: absolute; left: 20px; right: 20px; bottom: 18px; }
.stage-cap.swap { animation: fade .5s ease; }
.cap-title { font-size: 11px; letter-spacing: .18em; color: var(--accent); }
.cap-text { font-size: 14px; color: #d8d8d8; margin-top: 6px; max-width: 460px; line-height: 1.5; }
.cap-dots { display: flex; gap: 6px; margin-top: 12px; }
.cap-dots i { width: 18px; height: 2px; background: var(--line-2); transition: background .3s; }
.cap-dots i.on { background: var(--accent); }
.chapters { display: flex; flex-direction: column; }
.chapter { padding: 48px 0; border-top: 1px solid var(--line); opacity: .35; transform: translateY(10px); transition: opacity .6s, transform .6s; }
.chapter.in { opacity: 1; transform: none; }
.chapter .ch-num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .2em; margin-bottom: 14px; }
.chapter h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 300; letter-spacing: -.01em; margin-bottom: 18px; }
.chapter p { font-size: 15.5px; line-height: 1.8; margin: 0 0 14px; color: #cfcfcf; }
.plain { margin-top: 22px; border-left: 1px solid var(--accent); padding: 4px 0 4px 16px; font-size: 13.5px; line-height: 1.65; color: var(--dim); }
.plain span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg); margin-bottom: 6px; }
.plain b { color: var(--fg); font-weight: 500; }
.plain a { color: var(--accent); }
.finale { text-align: left; }
.finale .logo-mini { width: 64px; height: 64px; margin-bottom: 20px; }
.finale .logo-mini .logo { width: 100%; height: 100%; }
.cta-row { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .story-hero { grid-template-columns: 1fr; gap: 8px; min-height: 0; }
  .logo-stage { height: 300px; }
  .logo-spin { width: 170px; height: 170px; }
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-stage { position: sticky; top: var(--top); z-index: 3; background: #000; padding-bottom: 8px; }
  .stage-box { height: 46vh; }
  .cap-text { font-size: 12.5px; }
  .chapter { opacity: 1; transform: none; }
}

/* ---------- admin ---------- */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.admin-grid section { background: var(--bg); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.admin-grid h2 { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.switch { width: 38px; height: 20px; border: 1px solid var(--line-2); position: relative; transition: all .2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; background: var(--dim); transition: all .2s; }
.switch.on { border-color: var(--err); } .switch.on::after { left: 21px; background: var(--err); }
.seg { display: flex; border: 1px solid var(--line-2); }
.seg button { flex: 1; padding: 8px 6px; font-size: 12px; color: var(--dim); }
.seg button.on { background: var(--fg); color: #000; }
.log { font-family: var(--mono); font-size: 11px; max-height: 460px; overflow: auto; border: 1px solid var(--line); }
.log div { padding: 7px 10px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 150px 60px 120px 1fr; gap: 10px; }
.log .error { color: var(--err); } .log .warn { color: #e7c35a; }
.save-bar { position: sticky; bottom: 0; background: linear-gradient(transparent, #000 30%); padding: 28px 0 20px; display: flex; gap: 12px; align-items: center; justify-content: flex-end; }

/* ---------- toast / modal ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; background: var(--fg); color: #000; padding: 10px 16px; font-size: 13px; z-index: 50; transition: all .25s; pointer-events: none; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--err); color: #fff; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.8); z-index: 40; display: grid; place-items: center; padding: 20px; }
.modal-card { background: #000; border: 1px solid var(--line-2); padding: 28px; width: 100%; max-width: 380px; }
.wallet-opt { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.wallet-opt:hover { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { position: fixed; top: var(--top); left: 0; right: 0; flex-direction: column; gap: 0; background: #000; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a.active::after { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 900px) {
  .launch, .how { grid-template-columns: 1fr; gap: 40px; }
  .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: 1fr; }
  .feed { display: none; }
  .conv { grid-template-columns: 1fr auto 1fr; }
  .conv .arrow { display: none; }
  .conv > .child { grid-column: 1 / -1; }
  .summary { position: static; }
}
@media (max-width: 600px) {
  .top { padding: 0 14px; gap: 12px; }
  .brand span { display: none; }
  .ca-label { display: none; }
  .ca { padding: 0 10px; }
  .page { padding: calc(var(--top) + 28px) 16px 80px; }
  .row2, .g2 { grid-template-columns: 1fr; }
  .orbit-hud { left: 16px; right: 16px; bottom: 52px; }
  .orbit-hud .lead { display: none; }
  .orbit-hud .row { margin-top: 14px; gap: 20px; }
  .orbit-hud .cta { margin-top: 16px; }
  .legend { bottom: 18px; gap: 10px; }
  .log div { grid-template-columns: 1fr; gap: 2px; }
  .coin-head img { width: 60px; height: 60px; }
}
