/* Nodeset. Paper, ink, and a node editor. */
:root {
  --paper: #0B0C0E;
  --paper-2: #1A1B20;
  --white: #121317;
  --ink: #EEEBE5;
  --ink-2: #B4B0A8;
  --mute: #84817A;
  --line: #26272D;
  --line-2: #1B1C21;
  --coral: #EE6B57;
  --green: #5BC79A;
  --ne-bg: #1C1D20;
  --ne-grid: #26282C;
  --ne-node: #2B2D31;
  --ne-line: #3A3C41;
  --ne-text: #D8D6D0;
  --ne-mute: #8B8D93;
  --sock: #3FC1A5;
  --sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --w: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #0B0C0E; color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, canvas { display: block; }
::selection { background: var(--ink); color: var(--paper); }
.mono { font-family: var(--mono); font-feature-settings: 'zero' 1; letter-spacing: -0.01em; }
.muted { color: var(--mute); }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 32px; }
#view:focus { outline: none; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { max-width: var(--w); margin: 0 auto; padding: 0 32px; height: 64px; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -0.02em; }
.brand svg { width: 26px; height: 26px; }
.brand-tick { font: 500 11px var(--mono); color: var(--mute); padding-left: 2px; }
.nav { display: flex; gap: 26px; font-size: 14px; color: var(--ink-2); }
.nav a { position: relative; padding: 4px 0; transition: color .2s; }
.nav a:hover, .nav a.on { color: var(--ink); }
.nav a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--ink); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.slot { font: 500 11.5px var(--mono); color: var(--mute); display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.slot i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: beat 2.4s infinite; }
@keyframes beat { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.menu-btn { display: none; }
.xtop { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--line); color: var(--ink); transition: border-color .2s; }
.xtop:hover { border-color: var(--ink); }

/* ---------- buttons ---------- */
/* Buttons are physical keys: a lit top face, a base edge underneath, they rise on hover and press down on click. */
.btn { --base: #000; --edge: 4px; position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 20px; border: 1px solid #000; border-radius: 10px; background: linear-gradient(180deg, #33322F 0%, #161615 55%, #0E0E0D 100%); color: #F7F5F0; font-weight: 600; font-size: 14px; letter-spacing: -0.01em; cursor: pointer; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -2px 0 rgba(0,0,0,.35), 0 var(--edge) 0 var(--base), 0 14px 24px -12px rgba(0,0,0,.55); transform: translateY(0); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s; margin-bottom: var(--edge); }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.22) 48%, transparent 66%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -2px 0 rgba(0,0,0,.35), 0 calc(var(--edge) + 2px) 0 var(--base), 0 22px 30px -14px rgba(0,0,0,.55); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(calc(var(--edge) - 1px)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 2px 6px rgba(0,0,0,.4), 0 1px 0 var(--base), 0 4px 8px -6px rgba(0,0,0,.5); transition-duration: .06s; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-line { --base: #141414; background: linear-gradient(180deg, #FFFFFF 0%, #F6F4EF 60%, #ECE9E2 100%); color: var(--ink); border-color: #141414; box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(20,20,20,.06), 0 var(--edge) 0 var(--base), 0 14px 22px -14px rgba(0,0,0,.35); }
.btn-line::after { background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.9) 48%, transparent 66%); }
.btn-line:hover { color: var(--ink); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(20,20,20,.06), 0 calc(var(--edge) + 2px) 0 var(--base), 0 22px 30px -16px rgba(0,0,0,.4); }
.btn-line:active { box-shadow: inset 0 2px 5px rgba(0,0,0,.12), 0 1px 0 var(--base); }
.btn-sm { --edge: 3px; height: 34px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn-xs { --edge: 2px; height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn-coral { --base: #8E2A1B; background: linear-gradient(180deg, #EC6A55 0%, #D64A35 60%, #C23E2A 100%); border-color: #8E2A1B; }
.btn .arr { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: -8px; border-radius: 50%; background: rgba(255,255,255,.12); transition: transform .3s var(--ease), background .3s; }
.btn-line .arr { background: rgba(20,20,20,.07); }
.btn:hover .arr { transform: translateX(3px) rotate(-45deg); background: var(--coral); color: #fff; }
.link { border-bottom: 1px solid var(--line); transition: border-color .2s; }
.link:hover { border-color: var(--ink); }

/* wallet */
.wwrap { position: relative; }
.wmenu { position: absolute; right: 0; top: 44px; min-width: 230px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(0,0,0,.25); padding: 6px; z-index: 50; }
.wmenu a, .wmenu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 10px; font-size: 13.5px; cursor: pointer; }
.wmenu a:hover, .wmenu button:hover { background: var(--paper); }
.wmenu .who { padding: 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.wmenu .who b { display: block; font: 500 12px var(--mono); }
.wmenu .who span { font-size: 12px; color: var(--mute); }

/* ---------- hero: one sticky WebGL stage behind the hero and the statement ---------- */
.scene { position: relative; background: #0B0C0E; color: #EEEBE5; overflow: clip; }
.scene::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.2px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%); }
.scene-gl { position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; z-index: 0; overflow: hidden; transition: opacity .2s linear; }
.scene-gl canvas { width: 100%; height: 100%; display: block; }
.hero { position: relative; z-index: 1; min-height: calc(100svh - 64px); display: flex; align-items: center; pointer-events: none; }
.hero a, .hero button { pointer-events: auto; }
.hero-grid { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 32px; will-change: transform, opacity; }
.hero-copy { max-width: 600px; padding: 40px 0 90px; }
.hero-copy .kick { font: 500 12px var(--mono); color: var(--mute); letter-spacing: .02em; }
.hero-copy h1 { font-size: clamp(46px, 6.6vw, 104px); line-height: .94; letter-spacing: -0.05em; font-weight: 600; margin: 18px 0 26px; }
.hero-copy h1 span { display: inline-block; }
.hero-copy p { font-size: clamp(16px, 1.35vw, 19px); color: var(--ink-2); max-width: 500px; margin: 0 0 32px; }
.hero-copy .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.rv { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
h1.rv span { opacity: 0; transform: translate3d(0, .5em, 0) rotateX(-40deg); transform-origin: 50% 100%; transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
h1.rv.in span { opacity: 1; transform: none; }
h1.rv.in span:nth-child(2) { transition-delay: .09s; } h1.rv.in span:nth-child(3) { transition-delay: .18s; }
h1.rv { opacity: 1; transform: none; perspective: 600px; }
.hero-hash { margin-top: 34px; font: 500 12px var(--mono); color: var(--mute); display: flex; gap: 12px; align-items: center; white-space: nowrap; opacity: 0; transition: opacity .6s; min-height: 22px; }
.hero-hash.in { opacity: 1; }
.hero-hash .h { color: var(--ink); }
.hero-hash .stamp { color: var(--green); border: 1px solid currentColor; padding: 2px 7px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; transform: scale(1.6) rotate(-4deg); opacity: 0; transition: transform .35s cubic-bezier(.3,1.6,.5,1), opacity .2s; }
.hero-hash .stamp.in { transform: none; opacity: 1; }
.hero-hud { position: absolute; right: max(32px, calc((100vw - var(--w)) / 2 + 32px)); bottom: 70px; display: flex; gap: 22px; align-items: center; pointer-events: none; }
.hero-hud svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-hud svg.wires path { fill: none; stroke: var(--sock); stroke-width: 1.6; stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset .8s var(--ease); }
.hero-hud.wired svg.wires path { stroke-dashoffset: 0; }
.hnode { position: relative; z-index: 1; background: var(--ne-node); color: var(--ne-text); border-radius: 5px; font: 500 10.5px var(--mono); min-width: 84px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.55); opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.hnode.in { opacity: 1; transform: none; }
.hnode b { display: block; padding: 5px 9px; border-radius: 5px 5px 0 0; font-weight: 600; color: #fff; white-space: nowrap; }
.hnode span { display: block; padding: 6px 9px 8px; color: var(--ne-mute); white-space: nowrap; }
.hnode span em { font-style: normal; color: var(--ne-text); }
.hnode::before, .hnode::after { content: ''; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--sock); border: 1.5px solid var(--ne-bg); }
.hnode::before { left: -5px; } .hnode::after { right: -5px; }
.hnode:first-child::before, .hnode:last-child::after { display: none; }
.hnode.pulse { animation: npulse 1.2s var(--ease); }
@keyframes npulse { 40% { box-shadow: 0 0 0 4px rgba(63,193,165,.45), 0 14px 30px -14px rgba(0,0,0,.5); } }
.hero-meta { position: absolute; right: max(32px, calc((100vw - var(--w)) / 2 + 32px)); bottom: 36px; display: flex; gap: 14px; font: 500 11px var(--mono); color: var(--mute); opacity: 0; transition: opacity 1s; }
.hero.built .hero-meta { opacity: 1; }
.hero-meta .hint::before { content: '↖ '; color: var(--coral); }
.skip { position: absolute; left: max(32px, calc((100vw - var(--w)) / 2 + 32px)); bottom: 28px; z-index: 3; background: none; border: 1px solid var(--line); font: 500 11px var(--mono); padding: 5px 10px; cursor: pointer; color: var(--mute); }
.skip:hover { color: var(--ink); border-color: var(--ink); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font: 500 10.5px var(--mono); color: var(--mute); letter-spacing: .12em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0; transition: opacity 1s; }
.hero.built .scroll-cue { opacity: 1; }
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--ink), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.statement { position: relative; z-index: 1; height: 190svh; pointer-events: none; }
.statement-in { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px; }
.st-big { font-size: clamp(30px, 4.4vw, 64px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 600; max-width: 18ch; margin: 0; }
.st-big span { display: inline-block; opacity: .12; will-change: opacity, transform; }
.st-small { font: 500 13px var(--mono); color: var(--ink-2); margin: 30px 0 0; opacity: 0; background: rgba(247,245,240,.8); padding: 6px 10px; }
#gl.flat { position: absolute; right: 4%; top: 12%; width: min(46vw, 640px); height: min(46vw, 640px); }

/* ---------- stats band ---------- */
.band { border-bottom: 1px solid var(--line); background: var(--paper); }
.band .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.band .st { padding: 26px 0 24px; border-left: 1px solid var(--line); padding-left: 22px; }
.band .st:first-child { border-left: 0; padding-left: 0; }
.band .st b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.band .st span { font: 500 11.5px var(--mono); color: var(--mute); }

/* ---------- sections ---------- */
.sec { padding: 120px 0; border-bottom: 1px solid var(--line); }
.sec.white { background: var(--white); }
.sec-head { display: grid; grid-template-columns: 180px 1fr; gap: 32px; margin-bottom: 56px; }
.sec-num { font: 500 12px var(--mono); color: var(--mute); padding-top: 12px; }
.sec-num b { color: var(--ink); font-weight: 500; }
.sec h2 { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; margin: 0; max-width: 17ch; }
.sec-lede { font-size: 18px; color: var(--ink-2); max-width: 560px; margin: 20px 0 0; }
.split { display: grid; grid-template-columns: 180px 1fr; gap: 32px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.steps li { padding: 20px 26px 0 0; }
.steps li b { display: block; font: 500 12px var(--mono); margin-bottom: 10px; }
.steps li p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.h-reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.h-reveal.in { opacity: 1; transform: none; }
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.fade-up.in { opacity: 1; transform: none; }

/* lineage on landing */
.lineage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin-top: 8px; }
.lineage .ln-wire { position: absolute; top: 112px; left: 12.5%; right: 12.5%; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.lineage.in .ln-wire { transform: scaleX(1); }
.ln-item { position: relative; padding: 0 14px; text-align: left; }
.ln-item .thumb { width: 100%; aspect-ratio: 1; max-width: 224px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); position: relative; z-index: 1; }
.ln-item .meta { max-width: 224px; margin: 14px auto 0; font-size: 13.5px; }
.ln-item .meta .v { font: 500 11px var(--mono); color: var(--mute); display: flex; justify-content: space-between; }
.ln-item .meta b { display: block; font-weight: 600; margin: 4px 0 2px; }
.ln-item .meta .tip { font: 500 11.5px var(--mono); color: var(--green); }

/* bounties on landing */
.bounty-rows { border-top: 1px solid var(--ink); }
.brow { display: grid; grid-template-columns: 96px 1.6fr 1fr 140px 120px 24px; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); transition: background .2s, padding .3s var(--ease); }
.brow:hover { background: var(--white); padding-left: 10px; padding-right: 10px; }
.brow .thumb { width: 96px; height: 96px; border: 1px solid var(--line); background: var(--paper); }
.brow h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.brow .lab { font-size: 13px; color: var(--mute); }
.brow .reward { font: 600 20px var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.brow .reward small { font: 500 11px var(--mono); color: var(--mute); margin-left: 4px; }
.brow .when { font: 500 12px var(--mono); color: var(--ink-2); }
.brow .go { font-size: 18px; color: var(--mute); }

/* status tags */
.tag { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 3px 0; color: var(--ink-2); white-space: nowrap; }
.tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.tag.open, .tag.voting { color: var(--green); }
.tag.open::before, .tag.voting::before { background: currentColor; }
.tag.judging, .tag.review, .tag.passed { color: #A86A12; }
.tag.building { color: #2F5E9E; }
.tag.building::before { border-style: dashed; }
.tag.awarded, .tag.merged { color: var(--ink); }
.tag.awarded::before, .tag.merged::before { background: var(--ink); }
.tag.rejected { color: var(--mute); }

/* proposals */
.props { border-top: 1px solid var(--ink); }
.prow { display: grid; grid-template-columns: 82px 1fr 300px 110px; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); transition: background .2s; }
.prow:hover { background: var(--white); }
.prow .pid { font: 500 12px var(--mono); color: var(--mute); }
.prow h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.prow .sub { font-size: 12.5px; color: var(--mute); margin-top: 3px; }
.bar { height: 6px; background: var(--paper-2); position: relative; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); width: 0; transition: width 1.4s var(--ease); }
.bar i.against { left: auto; right: 0; background: var(--line); }
.bar-l { display: flex; justify-content: space-between; font: 500 11px var(--mono); color: var(--mute); margin-top: 7px; }
.bar-l b { color: var(--ink); font-weight: 500; }

/* who gets what */
.gets { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.gets > div { padding: 22px 24px 8px 0; }
.gets > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.gets h4 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.gets ul { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.gets li { padding: 7px 0; border-bottom: 1px solid var(--line-2); }

/* CA block */
.ca-block { padding: 90px 0; background: var(--ink); color: var(--paper); }
.ca-block .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.ca-block h2 { font-size: clamp(30px, 4vw, 54px); letter-spacing: -0.04em; line-height: 1; margin: 0 0 14px; font-weight: 600; }
.ca-block p { color: #AAA79F; margin: 0; max-width: 520px; }
.ca-box { border: 1px solid #3A3A38; padding: 16px 18px; min-width: 420px; }
.ca-box .lbl { font: 500 11px var(--mono); color: #8F8C85; margin-bottom: 8px; }
.ca-box .addr { font: 500 14px var(--mono); word-break: break-all; margin-bottom: 14px; }
.ca-box .row { display: flex; gap: 8px; flex-wrap: wrap; }
.ca-box .btn { --base: #8A877F; background: linear-gradient(180deg, #FFFFFF, #E9E6DF); color: var(--ink); border-color: #8A877F; }
.ca-box .btn-line { --base: #000; background: linear-gradient(180deg, #2E2E2C, #1A1A19); color: var(--paper); border-color: #000; }

/* ---------- footer ---------- */
.foot { padding: 64px 0 28px; background: var(--paper); }
.foot-in { max-width: var(--w); margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px; }
.foot-brand p { color: var(--ink-2); max-width: 360px; font-size: 14px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: 14px; }
.foot-cols b { display: block; font: 500 11px var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.foot-cols a, .foot-cols span { display: block; padding: 4px 0; color: var(--ink-2); }
.foot-cols a:hover { color: var(--ink); }
.foot-legal { max-width: var(--w); margin: 48px auto 0; padding: 20px 32px 0; border-top: 1px solid var(--line); font: 500 11.5px var(--mono); color: var(--mute); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- page scaffolding ---------- */
.page { padding: 56px 0 120px; min-height: 70vh; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.045em; line-height: 1; margin: 8px 0 0; font-weight: 600; }
.page-head .kick { font: 500 12px var(--mono); color: var(--mute); }
.page-head p { color: var(--ink-2); max-width: 560px; margin: 14px 0 0; }
.crumbs { font: 500 12px var(--mono); color: var(--mute); margin-bottom: 18px; }
.crumbs a:hover { color: var(--ink); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.chip { height: 32px; padding: 0 12px; border: 1px solid var(--line); background: transparent; font-size: 13px; cursor: pointer; border-radius: 2px; color: var(--ink-2); transition: all .15s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search { height: 34px; border: 1px solid var(--line); background: var(--white); padding: 0 12px; min-width: 240px; font-size: 13.5px; border-radius: 2px; }
.search:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.toolbar .sp { flex: 1; }

/* setups contact sheet */
.sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 36px 24px; }
.frame { display: block; }
.frame .thumb { aspect-ratio: 1; border: 1px solid var(--line); background: var(--paper); position: relative; overflow: hidden; transition: border-color .2s; }
.frame .thumb canvas { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.frame:hover .thumb { border-color: var(--ink); }
.frame:hover .thumb canvas { transform: scale(1.035); }
.frame .thumb .badge { position: absolute; left: 10px; top: 10px; font: 500 10.5px var(--mono); background: var(--white); border: 1px solid var(--line); padding: 2px 6px; }
.frame .cap { padding-top: 12px; }
.frame .cap .t { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.frame .cap .a { font-size: 13px; color: var(--mute); margin-top: 2px; }
.frame .cap .m { display: flex; justify-content: space-between; font: 500 11px var(--mono); color: var(--mute); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); }

/* setup detail */
.sd { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; }
.viewer { position: relative; aspect-ratio: 1; border: 1px solid var(--line); background: var(--paper); }
.viewer canvas { width: 100%; height: 100%; cursor: grab; }
.viewer canvas.grabbing { cursor: grabbing; }
.viewer .vlabel { position: absolute; left: 14px; bottom: 12px; font: 500 11px var(--mono); color: var(--mute); pointer-events: none; }
.viewer .vtools { position: absolute; right: 12px; bottom: 10px; display: flex; gap: 6px; }
.viewer .vtools button { background: var(--white); border: 1px solid var(--line); height: 28px; padding: 0 9px; font: 500 11px var(--mono); cursor: pointer; }
.viewer .vtools button:hover { border-color: var(--ink); }
.viewer.dark .vlabel { color: #8B8D93; }
.sd-side h1 { font-size: 36px; letter-spacing: -0.035em; line-height: 1.05; margin: 6px 0 10px; font-weight: 600; }
.sd-side .by { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.sd-side .by a { border-bottom: 1px solid var(--line); }
.sd-side .note { color: var(--ink-2); margin: 0 0 22px; }
.kv { border-top: 1px solid var(--ink); margin: 0 0 24px; }
.kv > div { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; align-items: baseline; }
.kv dt { font: 500 11.5px var(--mono); color: var(--mute); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv dd.mono { font-size: 12.5px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.sub-h { font: 500 12px var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; margin: 56px 0 16px; display: flex; justify-content: space-between; align-items: baseline; }
.sub-h b { color: var(--ink); font-weight: 500; }

/* version list */
.versions { border-top: 1px solid var(--ink); }
.ver { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.ver .th { width: 64px; height: 64px; border: 1px solid var(--line); background: var(--paper); }
.ver .t { font-weight: 600; font-size: 14px; }
.ver .s { font: 500 11.5px var(--mono); color: var(--mute); margin-top: 3px; }
.ver.cur { background: var(--white); outline: 1px solid var(--ink); outline-offset: -1px; padding-left: 10px; padding-right: 10px; }
.ver .diff { font: 500 11px var(--mono); color: var(--ink-2); text-align: right; }
.ver .diff i { font-style: normal; color: var(--coral); }

/* remix tree */
.tree-box { border: 1px solid var(--line); background: var(--white); overflow-x: auto; padding: 20px; }
.tree-box svg { display: block; }
.tree-box .tn { cursor: pointer; }
.tree-box .tn rect { fill: var(--white); stroke: var(--line); }
.tree-box .tn:hover rect { stroke: var(--ink); }
.tree-box .tn.cur rect { stroke: var(--ink); stroke-width: 2; }
.tree-box text { font: 500 11px var(--mono); fill: var(--ink-2); }
.tree-box text.h { fill: var(--ink); font: 600 12px var(--sans); }
.tree-box path { fill: none; stroke: var(--ink); stroke-width: 1.25; }

/* tips */
.tips { border-top: 1px solid var(--ink); }
.tiprow { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.tiprow .sp { font: 500 11px var(--mono); color: var(--mute); margin-top: 3px; }
.tiprow .amt { font: 600 14px var(--mono); }
.split-bar { display: flex; height: 26px; border: 1px solid var(--ink); margin-bottom: 8px; }
.split-bar div { display: flex; align-items: center; padding: 0 8px; font: 500 11px var(--mono); white-space: nowrap; overflow: hidden; }
.split-bar div + div { border-left: 1px solid var(--ink); }
.split-bar div:first-child { background: var(--ink); color: var(--paper); }

/* ---------- node editor ---------- */
.ne { background: var(--ne-bg); color: var(--ne-text); border-radius: 4px; position: relative; overflow: hidden; background-image: linear-gradient(var(--ne-grid) 1px, transparent 1px), linear-gradient(90deg, var(--ne-grid) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; }
.ne-bar { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; background: #17181A; border-bottom: 1px solid #2B2C30; font: 500 11px var(--mono); color: var(--ne-mute); }
.ne-bar b { color: var(--ne-text); font-weight: 500; }
.ne-canvas { position: relative; display: flex; gap: 40px; justify-content: safe center; padding: 26px 26px 30px; overflow-x: auto; align-items: flex-start; }
.ne-canvas svg.wires { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.ne-canvas svg.wires path { fill: none; stroke: var(--sock); stroke-width: 2; }
.nd { position: relative; z-index: 1; background: var(--ne-node); border-radius: 6px; min-width: 176px; flex: 0 0 auto; box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); font-size: 12px; }
.nd .hd { padding: 7px 11px; border-radius: 6px 6px 0 0; font-weight: 600; font-size: 12px; color: #fff; display: flex; justify-content: space-between; }
.nd .hd small { font: 500 10px var(--mono); opacity: .7; }
.nd.fetch .hd { background: #7C3B33; }
.nd.select .hd { background: #2D5F59; }
.nd.style .hd { background: #2D5579; }
.nd.color .hd { background: #776628; }
.nd.render .hd { background: #4C3F72; }
.nd .bd { padding: 8px 11px 11px; display: grid; gap: 7px; }
.nd .io { position: absolute; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--sock); border: 2px solid var(--ne-node); }
.nd .io.in { left: -5px; } .nd .io.out { right: -5px; }
.nd label { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 8px; color: var(--ne-mute); font-size: 11.5px; }
.nd select, .nd input[type=text] { background: #1D1E21; border: 1px solid #3B3D42; color: var(--ne-text); height: 25px; border-radius: 3px; padding: 0 6px; font-size: 11.5px; width: 100%; min-width: 0; }
.nd select:focus, .nd input:focus { outline: none; border-color: var(--sock); }
.nd .val { color: var(--ne-text); font: 500 11px var(--mono); }
.nd .rng { position: relative; height: 22px; background: #1D1E21; border: 1px solid #3B3D42; border-radius: 3px; overflow: hidden; cursor: ew-resize; touch-action: none; }
.nd .rng i { position: absolute; left: 0; top: 0; bottom: 0; background: #3C5D8A; pointer-events: none; }
.nd .rng span { position: relative; display: flex; justify-content: space-between; padding: 0 7px; line-height: 20px; font: 500 10.5px var(--mono); color: var(--ne-text); pointer-events: none; }
.nd .chk { display: flex; gap: 6px; flex-wrap: wrap; }
.nd .chk button { background: #1D1E21; border: 1px solid #3B3D42; color: var(--ne-mute); height: 23px; padding: 0 7px; border-radius: 3px; font: 500 10.5px var(--mono); cursor: pointer; }
.nd .chk button.on { background: #3C5D8A; color: #fff; border-color: #4E73A7; }
.nd.ro select, .nd.ro .rng, .nd.ro .chk button { pointer-events: none; }
.nd .swatches { display: flex; gap: 3px; }
.nd .swatches i { width: 14px; height: 14px; border-radius: 2px; }
.nd.changed { box-shadow: 0 0 0 1.5px var(--coral), 0 14px 30px -14px rgba(0,0,0,.6); }

/* studio */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; }
.studio .viewer { aspect-ratio: 16 / 11; }
.pub { border-top: 1px solid var(--ink); }
.pub .hashline { font: 500 12px var(--mono); padding: 12px 0; border-bottom: 1px solid var(--line-2); word-break: break-all; }
.pub .hashline span { color: var(--mute); display: block; font-size: 11px; margin-bottom: 4px; }
.field { display: grid; gap: 6px; margin: 16px 0; }
.field > span { font: 500 11.5px var(--mono); color: var(--mute); }
.field input, .field textarea, .field select { border: 1px solid var(--line); background: var(--white); padding: 10px 12px; font-size: 14px; border-radius: 2px; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field .hint { font-size: 12px; color: var(--mute); }
.seg { display: flex; border: 1px solid var(--line); width: max-content; max-width: 100%; flex-wrap: wrap; }
.seg button { border: 0; background: var(--white); padding: 0 12px; height: 34px; font-size: 13px; cursor: pointer; border-left: 1px solid var(--line); }
.seg button:first-child { border-left: 0; }
.seg button.on { background: var(--ink); color: var(--paper); }
.parent-box { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; border: 1px solid var(--line); padding: 10px; background: var(--white); margin: 12px 0; font-size: 13px; }
.parent-box .th { width: 56px; height: 56px; border: 1px solid var(--line-2); }
.parent-box .s { font: 500 11px var(--mono); color: var(--mute); }

/* bounty detail */
.bd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; }
.brief { font-size: 18px; line-height: 1.6; color: var(--ink); max-width: 640px; margin: 0 0 30px; }
.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px 22px; }
.entry .thumb { aspect-ratio: 1; border: 1px solid var(--line); background: var(--paper); position: relative; }
.entry .thumb img { width: 100%; height: 100%; object-fit: cover; }
.entry.win .thumb { outline: 2px solid var(--ink); outline-offset: 3px; }
.entry .winlbl { position: absolute; top: 10px; left: 10px; background: var(--ink); color: var(--paper); font: 500 10.5px var(--mono); padding: 3px 7px; letter-spacing: .05em; }
.entry .kind { position: absolute; top: 10px; right: 10px; background: var(--white); border: 1px solid var(--line); font: 500 10.5px var(--mono); padding: 2px 6px; }
.entry .cap { padding-top: 10px; font-size: 13.5px; }
.entry .cap b { display: block; font-weight: 600; }
.entry .cap span { color: var(--mute); font-size: 12.5px; }
.entry .cap .row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; }
.side-box { border: 1px solid var(--ink); background: var(--white); padding: 22px; position: sticky; top: 88px; }
.side-box .big { font-size: 40px; letter-spacing: -0.04em; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.side-box .big small { font: 500 13px var(--mono); color: var(--mute); margin-left: 6px; letter-spacing: 0; }
.side-box .lbl { font: 500 11px var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.side-box .kv { margin-top: 18px; }
.side-box .btn { width: 100%; margin-top: 10px; }
.countdown { font: 500 22px var(--mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* proposal detail */
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; }
.pd-body { font-size: 17px; line-height: 1.65; max-width: 660px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 22px; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--line); }
.timeline li.done::before { background: var(--ink); border-color: var(--ink); }
.timeline li.now::before { background: var(--coral); border-color: var(--coral); box-shadow: 0 0 0 4px rgba(221,79,59,.18); }
.timeline li b { display: block; font-weight: 600; }
.timeline li span { font: 500 11.5px var(--mono); color: var(--mute); }
.voters { border-top: 1px solid var(--ink); }
.vrow { display: grid; grid-template-columns: 1fr 90px 120px; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; align-items: center; }
.vrow .c-for { color: var(--green); font: 500 11.5px var(--mono); text-transform: uppercase; }
.vrow .c-against { color: var(--coral); font: 500 11.5px var(--mono); text-transform: uppercase; }
.vrow .w { font: 500 12px var(--mono); text-align: right; }
.vote-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.big-bar { height: 12px; display: flex; background: var(--paper-2); margin: 14px 0 8px; }
.big-bar i { display: block; height: 100%; transition: width 1.2s var(--ease); width: 0; }
.big-bar i.f { background: var(--ink); }
.big-bar i.a { background: var(--coral); }

/* profile */
.prof-head { display: grid; grid-template-columns: 88px 1fr; gap: 22px; align-items: center; }
.avatar { width: 88px; height: 88px; border: 1px solid var(--line); background: var(--white); }
.prof-stats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); margin-top: 30px; }
.prof-stats div { padding: 16px 16px 0 0; }
.prof-stats div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.prof-stats b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.prof-stats span { font: 500 11px var(--mono); color: var(--mute); }
.list { border-top: 1px solid var(--ink); }
.list a, .list > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.list a:hover { background: var(--white); }
.list .r { font: 500 12px var(--mono); color: var(--ink-2); white-space: nowrap; }
.empty { padding: 26px 0; color: var(--mute); font-size: 14px; border-bottom: 1px solid var(--line-2); }

/* tx page */
.txcard { max-width: 760px; border: 1px solid var(--ink); background: var(--white); }
.txcard .hd { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.txcard .hd b { font-size: 20px; letter-spacing: -0.02em; }
.txcard .kv { margin: 0; border-top: 0; padding: 4px 24px 12px; }
.ok { color: var(--green); font: 500 12px var(--mono); display: inline-flex; gap: 6px; align-items: center; }
.ok::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(20,20,20,.38); opacity: 0; transition: opacity .25s; }
.modal.in { opacity: 1; }
.modal .box { background: var(--paper); width: min(560px, 100%); max-height: calc(100svh - 40px); overflow: auto; border: 1px solid var(--ink); box-shadow: 0 30px 80px -30px rgba(0,0,0,.5); transform: translateY(10px); transition: transform .3s var(--ease); }
.modal.in .box { transform: none; }
.modal .mh { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal .mh b { font-size: 17px; letter-spacing: -0.015em; }
.modal .mh button { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--mute); }
.modal .mb { padding: 8px 22px 22px; }
.modal .mf { display: flex; gap: 10px; justify-content: flex-end; padding: 0 22px 22px; }
.sigmsg { background: var(--white); border: 1px solid var(--line); padding: 14px; font: 500 12px/1.6 var(--mono); white-space: pre-wrap; word-break: break-all; color: var(--ink-2); margin: 14px 0 6px; }
.pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0; }
.pick button { border: 1px solid var(--line); background: var(--white); padding: 0; cursor: pointer; text-align: left; }
.pick button.on { outline: 2px solid var(--ink); outline-offset: 1px; }
.pick button canvas { width: 100%; aspect-ratio: 1; }
.pick button span { display: block; padding: 6px 8px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop { border: 1px dashed var(--line); padding: 16px; text-align: center; font-size: 13px; color: var(--mute); cursor: pointer; background: var(--white); }
.drop:hover { border-color: var(--ink); color: var(--ink); }
.drop img { max-height: 120px; margin: 0 auto 8px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 12px 16px; font-size: 13.5px; z-index: 90; opacity: 0; pointer-events: none; transition: all .3s var(--ease); max-width: calc(100vw - 32px); display: flex; gap: 14px; align-items: center; }
.toast.in { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { text-decoration: underline; text-underline-offset: 3px; }

/* launch page */
.launch-box { max-width: 560px; border: 1px solid var(--ink); background: var(--white); padding: 28px; }
.launch-box h2 { margin: 0 0 6px; letter-spacing: -0.03em; }
.launch-box .done { color: var(--green); font: 500 13px var(--mono); }

.loading { padding: 80px 0; text-align: center; font: 500 12px var(--mono); color: var(--mute); }
.err { padding: 80px 0; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav { gap: 18px; }
  .slot { display: none; }
  .sd, .bd-grid, .pd-grid, .studio { grid-template-columns: 1fr; }
  .side-box { position: static; }
  .brow { grid-template-columns: 80px 1fr 110px; }
  .brow .thumb { width: 80px; height: 80px; }
  .brow .lab2, .brow .go, .brow .when { display: none; }
  .prow { grid-template-columns: 70px 1fr 160px; }
  .prow .tagc { display: none; }
  .gets { grid-template-columns: 1fr 1fr; }
  .gets > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  .wrap, .top-in, .foot-in { padding: 0 16px; }
  .top-in { gap: 14px; height: 58px; }
  .nav { display: none; position: absolute; top: 58px; left: 0; right: 0; background: var(--paper); flex-direction: column; gap: 0; padding: 6px 16px 14px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
  .nav a.on::after { display: none; }
  .menu-btn { display: inline-flex; background: none; border: 1px solid var(--line); height: 34px; width: 38px; align-items: center; justify-content: center; cursor: pointer; }
  .brand-tick { display: none; }
  .hero { align-items: flex-end; }
  .hero-grid { padding: 0 16px; }
  .hero-copy { padding: 52vh 0 84px; }
  .hero-copy h1 { font-size: 44px; margin: 12px 0 16px; }
  .hero-copy p { font-size: 15.5px; margin-bottom: 22px; }
  .hero-hud, .hero-meta { display: none; }
  .hero-hash { font-size: 10.5px; gap: 8px; margin-top: 22px; }
  .skip { left: auto; right: 16px; bottom: 16px; }
  .scroll-cue { display: none; }
  .statement { height: 160svh; }
  .band .wrap { grid-template-columns: repeat(2, 1fr); }
  .band .st { padding: 18px 0 16px 16px; border-top: 1px solid var(--line); }
  .band .st:nth-child(odd) { border-left: 0; padding-left: 0; }
  .band .st:first-child { border-top: 0; } .band .st:nth-child(2) { border-top: 0; }
  .band .st:last-child { grid-column: 1 / -1; }
  .band .st b { font-size: 24px; }
  .sec { padding: 80px 0; }
  .sec-head, .split { grid-template-columns: 1fr; gap: 12px; }
  .sec-head { margin-bottom: 36px; }
  .sec-num { padding-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
  .lineage { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .lineage .ln-wire { display: none; }
  .ln-item { padding: 0 6px; }
  .gets { grid-template-columns: 1fr; }
  .gets > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .ca-block .wrap { grid-template-columns: 1fr; }
  .ca-box { min-width: 0; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .brow { grid-template-columns: 64px 1fr; gap: 14px; }
  .brow .thumb { width: 64px; height: 64px; }
  .brow .rw { grid-column: 2; }
  .prow { grid-template-columns: 1fr; gap: 10px; }
  .prow .pid { display: none; }
  .sheet { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .frame .cap .m { flex-direction: column; gap: 2px; }
  .search { min-width: 0; width: 100%; }
  .prof-stats { grid-template-columns: repeat(2, 1fr); }
  .prof-stats div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .ver { grid-template-columns: 52px 1fr; }
  .ver .th { width: 52px; height: 52px; }
  .ver .diff { grid-column: 2; text-align: left; }
  .vrow { grid-template-columns: 1fr 70px 90px; }
  .entries { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .kv > div { grid-template-columns: 96px 1fr; }
  .page { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- 3D motion ---------- */
.thumb, .ver .th, .parent-box .th { transition: transform .6s var(--ease), border-color .2s, box-shadow .6s var(--ease); transform-style: preserve-3d; will-change: transform; }
.thumb.tilting { transition: transform .12s linear, border-color .2s, box-shadow .3s; box-shadow: 0 30px 50px -28px rgba(20,20,20,.45); z-index: 2; }
.thumb.tilting::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.35), transparent 45%); mix-blend-mode: soft-light; }
.frame:hover .thumb canvas { transform: none; }
.r3 { opacity: 0; transform: perspective(1100px) rotateX(-16deg) translate3d(0, 34px, 0); transform-origin: 50% 0; transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.r3.in { opacity: 1; transform: none; }
.brow.r3.in:hover { padding-left: 10px; padding-right: 10px; }
.fade-up { transform: perspective(1000px) rotateX(-8deg) translate3d(0, 28px, 0); transform-origin: 50% 0; }
svg.wires path.flow { stroke: #FFFFFF; stroke-opacity: .7; stroke-width: 2; stroke-dasharray: 2 34; stroke-dashoffset: 0; animation: flow 1.8s linear infinite; transition: none; }
.hero-hud svg.wires path.flow { stroke: #FFFFFF; opacity: 0; }
.hero-hud.wired svg.wires path.flow { opacity: 1; stroke-dashoffset: 0; }
@keyframes flow { to { stroke-dashoffset: -36; } }
.lineage .ln-item .thumb { transform-style: preserve-3d; }
.ln-wire { background: linear-gradient(90deg, var(--ink) 0 40%, var(--sock) 50%, var(--ink) 60% 100%) !important; background-size: 300% 100% !important; animation: wireflow 3.2s linear infinite; }
@keyframes wireflow { from { background-position: 100% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .r3, .fade-up { opacity: 1; transform: none; } }

/* headings flip in word by word */
.h-reveal { perspective: 800px; }
.h-reveal .w { display: inline-block; opacity: 0; transform: translate3d(0, .45em, 0) rotateX(-75deg); transform-origin: 50% 100%; transition: opacity .8s var(--ease) calc(var(--i) * 55ms), transform 1s var(--ease) calc(var(--i) * 55ms); }
.h-reveal.wsplit { opacity: 1; transform: none; }
.h-reveal.in .w { opacity: 1; transform: none; }
/* live chain feed */
.feed { border-bottom: 1px solid var(--line); background: var(--ink); color: #CFCBC2; overflow: hidden; position: relative; }
.feed::before, .feed::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none; }
.feed::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.feed::after { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
.feed-track { display: flex; width: max-content; animation: feed 60s linear infinite; }
.feed:hover .feed-track { animation-play-state: paused; }
.feed-item { display: inline-flex; align-items: center; gap: 10px; padding: 13px 28px; font: 500 12px var(--mono); white-space: nowrap; border-right: 1px solid #2A2A28; }
.feed-item b { color: #fff; font-weight: 500; }
.feed-item i { width: 7px; height: 7px; border-radius: 50%; background: var(--sock); box-shadow: 0 0 0 3px rgba(63,193,165,.18); }
.feed-item i.tip { background: var(--coral); box-shadow: 0 0 0 3px rgba(221,79,59,.18); }
.feed-item i.pay { background: #E8CF6A; box-shadow: 0 0 0 3px rgba(232,207,106,.18); }
.feed-item a:hover b { text-decoration: underline; text-underline-offset: 3px; }
@keyframes feed { to { transform: translateX(-50%); } }
[data-par] { will-change: translate; }
@media (prefers-reduced-motion: reduce) { .feed-track { animation: none; } .h-reveal .w { opacity: 1; transform: none; } }

/* ---------- the 3D scene is dark: light type, glassy keys ---------- */
.scene .hero-copy .kick { color: #8E8B84; }
.scene .hero-copy h1 { color: #F4F1EA; }
.scene .hero-copy p { color: #B7B3AB; }
.scene .hero-hash { color: #807D77; }
.scene .hero-hash .h { color: #EEEBE5; }
.scene .hero-hash .stamp { color: #7FD8B5; }
.scene .hero-meta { color: #807D77; }
.scene .scroll-cue { color: #807D77; }
.scene .scroll-cue i { background: linear-gradient(#EEEBE5, transparent); }
.scene .skip { color: #8E8B84; border-color: #2E2F33; }
.scene .skip:hover { color: #fff; border-color: #fff; }
.scene .btn { --base: #6E6A63; background: linear-gradient(180deg, #FFFFFF 0%, #F1EEE8 60%, #DEDAD2 100%); color: #121212; border-color: #8A867E; box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.08), 0 var(--edge) 0 var(--base), 0 16px 34px -12px rgba(242,196,107,.35); }
.scene .btn:hover { box-shadow: inset 0 1px 0 #fff, 0 calc(var(--edge) + 2px) 0 var(--base), 0 22px 44px -14px rgba(242,196,107,.5); }
.scene .btn::after { background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.95) 48%, transparent 66%); }
.scene .btn .arr { background: rgba(0,0,0,.08); }
.scene .btn-line { --base: #000; background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.04) 100%); color: #F4F1EA; border-color: #3B3C40; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 var(--edge) 0 #000, 0 16px 30px -14px rgba(0,0,0,.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.scene .btn-line:hover { border-color: #6A6B70; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 calc(var(--edge) + 2px) 0 #000, 0 22px 40px -14px rgba(95,199,184,.35); }
.scene .btn-line::after { background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.18) 48%, transparent 66%); }
.scene .st-big { color: #F4F1EA; }
.scene .st-small { color: #B7B3AB; background: rgba(11,12,14,.7); }
.scene .hnode { box-shadow: 0 0 0 1px #2E3034, 0 18px 40px -14px rgba(0,0,0,.9); }
.top.dark { background: rgba(11,12,14,.94); border-bottom-color: rgba(255,255,255,.06); color: #EEEBE5; }
.top.dark .nav a { color: #A9A59D; } .top.dark .nav a:hover, .top.dark .nav a.on { color: #fff; }
.top.dark .nav a.on::after { background: #fff; }
.top.dark .brand svg rect[fill="#141414"] { fill: #EEEBE5; }
.top.dark .brand svg path { stroke: #EEEBE5; }
.top.dark .brand-tick, .top.dark .slot { color: #8E8B84; }
.top.dark .xtop { color: #EEEBE5; border-color: #33343A; }
.top.dark #walletBtn.btn:not(.btn-line) { --base: #6E6A63; background: linear-gradient(180deg, #FFFFFF, #E4E0D8); color: #121212; border-color: #8A867E; }
.top.dark #walletBtn.btn-line { background: rgba(255,255,255,.06); color: #EEEBE5; border-color: #3B3C40; --base: #000; }
.top.dark .menu-btn { border-color: #33343A; } .top.dark .menu-btn path { stroke: #EEEBE5; }
@media (max-width: 760px) { .top.dark .nav { background: #0B0C0E; } .top.dark .nav a { border-bottom-color: #222; } }
.top { transition: background .4s, border-color .4s, color .4s; }

/* ---------- dark site: shared background field, light keys everywhere ---------- */
#bgfield { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; display: block; pointer-events: none; }
body { background: #0B0C0E; color-scheme: dark; }
.band, .foot, .sec { background: transparent; }
.sec.white { background: rgba(255,255,255,.018); }
.feed { background: #060708; border-top: 1px solid #1A1B20; }
.feed::before { background: linear-gradient(90deg, #060708, transparent); } .feed::after { background: linear-gradient(-90deg, #060708, transparent); }
.ca-block { background: #08090B; color: #EEEBE5; border-top: 1px solid var(--line); }
.ca-box { background: rgba(255,255,255,.02); }
.top { background: rgba(11,12,14,.86); }
.btn { --base: #6E6A63; background: linear-gradient(180deg, #FFFFFF 0%, #F1EEE8 60%, #DEDAD2 100%); color: #121212; border-color: #8A867E; box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.08), 0 var(--edge) 0 var(--base), 0 16px 34px -14px rgba(242,196,107,.3); }
.btn:hover { box-shadow: inset 0 1px 0 #fff, 0 calc(var(--edge) + 2px) 0 var(--base), 0 22px 44px -14px rgba(242,196,107,.45); }
.btn:active { box-shadow: inset 0 2px 6px rgba(0,0,0,.18), 0 1px 0 var(--base); }
.btn::after { background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.95) 48%, transparent 66%); }
.btn .arr { background: rgba(0,0,0,.08); }
.btn-line { --base: #000; background: linear-gradient(180deg, rgba(255,255,255,.11) 0%, rgba(255,255,255,.035) 100%); color: #F4F1EA; border-color: #3B3C40; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 var(--edge) 0 #000, 0 16px 30px -16px rgba(0,0,0,.8); }
.btn-line:hover { color: #fff; border-color: #6A6B70; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 calc(var(--edge) + 2px) 0 #000, 0 22px 40px -14px rgba(95,199,184,.3); }
.btn-line::after { background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.18) 48%, transparent 66%); }
.btn-line .arr { background: rgba(255,255,255,.08); }
.btn-coral { --base: #8E2A1B; background: linear-gradient(180deg, #F27C67 0%, #DE5A44 60%, #C9452F 100%); color: #fff; border-color: #8E2A1B; }
.chip { border-color: var(--line); color: var(--ink-2); background: rgba(255,255,255,.02); }
.chip.on { background: #EEEBE5; color: #0B0C0E; border-color: #EEEBE5; }
.seg { border-color: var(--line); }
.seg button { background: rgba(255,255,255,.03); color: var(--ink-2); border-left-color: var(--line); }
.seg button.on { background: #EEEBE5; color: #0B0C0E; }
.search, .field input, .field textarea, .field select { background: #101115; color: var(--ink); border-color: var(--line); }
.frame .thumb, .ln-item .thumb, .brow .thumb, .ver .th, .entry .thumb, .viewer, .parent-box .th, .pick button { background: #0E0F12; border-color: #24252B; }
.frame:hover .thumb { border-color: #5A5B62; }
.brow:hover, .prow:hover, .list a:hover, .ver.cur { background: rgba(255,255,255,.03); }
.ver.cur { outline-color: #5A5B62; }
.side-box, .txcard, .launch-box, .tree-box, .parent-box, .drop, .sigmsg, .wmenu { background: #111216; border-color: #2E2F35; }
.side-box { box-shadow: 0 30px 60px -40px rgba(0,0,0,.9); }
.tree-box .tn rect { fill: #15161B; stroke: #2E2F35; }
.tree-box .tn:hover rect, .tree-box .tn.cur rect { stroke: #EEEBE5; }
.tree-box path { stroke: #5A5B62; }
.toast { background: #EEEBE5; color: #0B0C0E; }
.modal { background: rgba(0,0,0,.6); }
.modal .box { background: #111216; border-color: #2E2F35; }
.wmenu a:hover, .wmenu button:hover { background: rgba(255,255,255,.05); }
.wopt { background: #15161B !important; border-color: #2E2F35 !important; color: var(--ink); }
.split-bar { border-color: #5A5B62; } .split-bar div + div { border-left-color: #5A5B62; }
.timeline li::before { background: #0B0C0E; }
.ln-wire { background: linear-gradient(90deg, #3A3B42 0 40%, var(--sock) 50%, #3A3B42 60% 100%) !important; background-size: 300% 100% !important; }
.thumb.tilting { box-shadow: 0 30px 60px -28px rgba(0,0,0,.9), 0 0 0 1px #5A5B62; }
.thumb.tilting::after { mix-blend-mode: screen; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.12), transparent 45%); }
.frame .thumb .badge, .entry .kind { background: #15161B; border-color: #2E2F35; color: var(--ink-2); }
.st-small { background: rgba(11,12,14,.7); }
.hero-hash .stamp { color: #7FD8B5; }
@media (max-width: 760px) {
  .prof-head { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .prof-head .avatar { width: 64px; height: 64px; }
  .prof-head > div { min-width: 0; }
  .prof-head .mono { overflow-wrap: anywhere; }
}
