/* =====================================================================================================================
   v2 look: one accent (electric indigo), a living hero, motion with restraint. Loaded after app.css.
   ===================================================================================================================== */
:root { --accent: #b8407a; --accent2: #d9739a; --accent-bg: #fbf0f5; --glow: rgba(184, 64, 122, .15); --plum: #5a1c39; }
:root[data-theme="dark"] { --accent: #e0699c; --accent2: #f2a3c3; --accent-bg: rgba(224, 105, 156, .12); --glow: rgba(224, 105, 156, .18); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --accent: #e0699c; --accent2: #f2a3c3; --accent-bg: rgba(224, 105, 156, .12); --glow: rgba(224, 105, 156, .18); } }

/* page transition */
.pagein { animation: pagein .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes pagein { from { opacity: 0; transform: translateY(8px); } }

/* staggered reveals */
.rv { transition-delay: var(--d, 0ms); }

/* buttons: arrow nudge, shine sweep */
.btn svg { transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.btn:hover svg { transform: translateX(3px); }
.btn.shine { position: relative; overflow: hidden; box-shadow: 0 10px 28px -10px var(--glow), 0 0 0 1px var(--ink); }
.btn.shine::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60%; left: -80%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 62% { left: -80%; } 100% { left: 140%; } }

/* pointer spotlight */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 55%); }
.spot:hover::before { opacity: 1; }

/* ---------- hero v2 ---------- */
.hero2 { position: relative; padding: 76px 0 56px; overflow: hidden; isolation: isolate; }
.hero2 .neural { position: absolute; inset: 0 0 auto; width: 100%; height: 760px; z-index: -1;
  mask-image: radial-gradient(ellipse 65% 70% at 50% 30%, #000 25%, transparent 78%); -webkit-mask-image: radial-gradient(ellipse 65% 70% at 50% 30%, #000 25%, transparent 78%); }
.hero2::before { content: ""; position: absolute; left: 50%; top: -260px; width: 1100px; height: 700px; transform: translateX(-50%); z-index: -2; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent 75%); }
.hcenter { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 6px; border: 1px solid var(--line2); border-radius: 999px; background: color-mix(in srgb, var(--card) 80%, transparent); backdrop-filter: blur(8px);
  font-size: 13px; color: var(--ink2); transition: border-color .2s, box-shadow .2s; }
.pill:hover { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-bg); }
.pill .pdot { width: 22px; height: 22px; border-radius: 50%; background: var(--live-bg); color: var(--live); display: grid; place-items: center; }
.pill .psep { width: 1px; height: 14px; background: var(--line2); }
.pill .pmore { display: inline-flex; align-items: center; gap: 4px; padding-right: 8px; color: var(--ink); font-weight: 500; }
.hero2 h1 { font-size: clamp(46px, 7.4vw, 92px); letter-spacing: -.055em; line-height: 1; margin: 26px 0 22px; }
.rot { display: inline-grid; vertical-align: bottom; text-align: left; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.rot span { justify-self: start; white-space: nowrap; }
.rot > span { grid-area: 1 / 1; opacity: 0; transform: translateY(.42em); filter: blur(6px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1), filter .6s;
  background: linear-gradient(92deg, var(--accent), var(--accent2) 60%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .1em; }
.rot span.on { opacity: 1; transform: none; filter: none; }
.rot span.out { opacity: 0; transform: translateY(-.42em); filter: blur(6px); }
.hero2 .lede { max-width: 620px; margin: 0 auto 32px; }
.hero2 .ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.stagewrap { max-width: 1240px; margin: 64px auto 0; padding: 0 24px; }
.stage { position: relative; perspective: 1600px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 3fr) minmax(0, 1.25fr); align-items: center; }
.stage .main { position: relative; z-index: 2; min-width: 0; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.stage .main .win { box-shadow: 0 40px 90px -30px rgba(60, 10, 30, .3), 0 0 0 1px var(--line2), 0 0 0 8px color-mix(in srgb, var(--card) 70%, transparent); }
.stage .main .win.swap { animation: swapin .7s cubic-bezier(.2,.7,.2,1); }
@keyframes swapin { from { opacity: 0; transform: scale(.985); filter: blur(4px); } }
.stage .side { position: relative; z-index: 1; opacity: .9; transition: transform .5s, opacity .3s; min-width: 0; }
.stage .side.l { transform: translateX(14%) scale(.92) rotateY(18deg); transform-origin: right center; }
.stage .side.r { transform: translateX(-14%) scale(.92) rotateY(-18deg); transform-origin: left center; }
.stage .side:hover { opacity: 1; }
.win.mini { display: block; box-shadow: 0 24px 60px -24px rgba(15, 15, 40, .3); }
.win.mini .chrome { height: 30px; padding: 0 10px; gap: 8px; }
.win.mini .lights i { width: 7px; height: 7px; }
.win.mini .addr { height: 20px; font-size: 10.5px; }
.win.mini .mcap2 { display: flex; align-items: center; gap: 6px; padding: 9px 10px; border-top: 1px solid var(--line); font-size: 12px; }
.win.mini .mcap2 span { margin-left: auto; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chipf { position: absolute; z-index: 3; display: flex; gap: 10px; align-items: center; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow2); padding: 10px 12px; font-size: 12.5px; max-width: 270px; animation: bob 7s ease-in-out infinite; text-align: left; }
.chipf small { display: block; color: var(--mute); font-size: 11.5px; }
.chipf b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 210px; }
.chipf.c1 { left: 1%; top: -4%; } .chipf.c2 { right: 0; top: -2%; animation-delay: -2.5s; } .chipf.c3 { right: 6%; bottom: -6%; animation-delay: -4.5s; }
.ficon.a { background: var(--accent-bg); color: var(--accent); }

/* ticker */
.ticker { margin-top: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); height: 52px; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq var(--dur, 60s) linear infinite; }
.mq-track:hover { animation-play-state: paused; }
.mq-set { display: flex; flex: none; }
@keyframes mq { to { transform: translateX(-50%); } }
.mq.rev .mq-track { animation-direction: reverse; }
.tk { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 28px; border-right: 1px solid var(--line); font-size: 13.5px; white-space: nowrap; color: var(--ink2); transition: background .2s; }
.tk:hover { background: var(--card); }
.tk b { color: var(--ink); font-weight: 600; }
.tkind { font: 500 11px var(--mono); padding: 2px 7px; border-radius: 999px; background: var(--bg3); color: var(--mute); }
.tkind.finding { background: var(--accent-bg); color: var(--accent); }
.tkind.post { background: var(--ink); color: var(--bg); }
.tt { max-width: 560px; overflow: hidden; text-overflow: ellipsis; }

/* stats v2 */
.stats2 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 56px; }
.stats2 > div { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 20px 22px; overflow: hidden; transition: border-color .2s, transform .25s; }
.stats2 > div:hover { border-color: var(--line2); transform: translateY(-2px); }
.stats2 small { display: block; color: var(--mute); font-size: 13px; margin-bottom: 8px; }
.stats2 b { font: 600 30px/1.05 var(--sans); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.live2 { position: absolute; top: 18px; right: 18px; display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); color: var(--live); text-transform: uppercase; letter-spacing: .04em; }
.shead h2 { margin-top: 10px; }

/* how it works v2 */
.steps2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step2 { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 12px 12px 22px; transition: border-color .2s, transform .25s, box-shadow .25s; }
.step2:hover { border-color: var(--line2); transform: translateY(-3px); box-shadow: var(--shadow2); }
.step2 .art2 { height: 150px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); margin-bottom: 18px; overflow: hidden; display: grid; place-items: center;
  background-image: radial-gradient(var(--line2) 1px, transparent 1px); background-size: 14px 14px; }
.step2 .art2 svg { width: 100%; height: 100%; overflow: visible; }
.step2 .n { font: 500 12px var(--mono); color: var(--accent); padding: 0 8px; }
.step2 h3 { font-size: 19px; margin: 6px 8px 8px; }
.step2 p { margin: 0 8px; color: var(--mute); font-size: 14px; line-height: 1.55; }
.s-card { fill: var(--card); stroke: var(--line2); } .s-soft { fill: var(--bg3); } .s-ink { fill: var(--ink); } .s-line { fill: var(--line2); } .s-hair { stroke: var(--line); fill: none; }
.s-live { fill: var(--live); } .s-tick { stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.s-path { stroke: var(--line2); stroke-width: 1.5; fill: none; stroke-dasharray: 3 4; }
.t-btn { font: 600 9px var(--sans); fill: var(--bg); } .t-mono { font: 400 8px var(--mono); fill: var(--mute); } .t-ink { font: 500 8.5px var(--mono); fill: var(--ink); } .t-bar { font: 500 8px var(--mono); fill: var(--mute); }
/* launch: press, ripple, done */
.a-btn { transform-box: fill-box; transform-origin: center; animation: press 3.6s ease-in-out infinite; }
@keyframes press { 0%, 38% { transform: none; } 42% { transform: scale(.94); } 48%, 100% { transform: none; } }
.a-ripple { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ripple 3.6s ease-out infinite; }
@keyframes ripple { 0%, 40% { opacity: 0; transform: scale(.4); } 44% { opacity: .9; } 70%, 100% { opacity: 0; transform: scale(3.2); } }
.a-done { opacity: 0; transform-box: fill-box; transform-origin: center; animation: done 3.6s cubic-bezier(.2,.9,.3,1.4) infinite; }
@keyframes done { 0%, 52% { opacity: 0; transform: scale(.3); } 60%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* fees: particles flow into the vault, bars fill */
.a-p { fill: var(--accent); offset-path: path("M20 40 C 70 40, 80 40, 110 40"); animation: flow 2.4s linear infinite; opacity: 0; }
.a-p.p1 { animation-delay: .4s; } .a-p.p2 { animation-delay: .8s; } .a-p.p3 { animation-delay: 1.2s; } .a-p.p4 { animation-delay: 1.6s; } .a-p.p5 { animation-delay: 2s; }
@keyframes flow { 0% { offset-distance: 0%; opacity: 0; } 15% { opacity: 1; } 90% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.a-fill { transform-box: fill-box; transform-origin: left; animation: fill 4.8s ease-in-out infinite; }
.a-fill.f1 { fill: var(--ink); --to: .8; } .a-fill.f2 { fill: var(--accent); animation-delay: .5s; --to: .2; }
@keyframes fill { 0% { transform: scaleX(.04); } 60%, 85% { transform: scaleX(var(--to, .7)); } 100% { transform: scaleX(.04); } }
/* browse: lines type in, highlight moves, cursor follows */
.a-type { transform-box: fill-box; transform-origin: left; animation: typeL 5s ease-out infinite; }
.a-type.t2 { animation-delay: .25s; } .a-type.t3 { animation-delay: .5s; } .a-type.t4 { animation-delay: .75s; }
@keyframes typeL { 0% { transform: scaleX(0); } 25%, 100% { transform: scaleX(1); } }
.a-hl { fill: var(--accent-bg); stroke: var(--accent); stroke-width: 1.2; animation: hl 5s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes hl { 0%, 30% { transform: translateY(0); opacity: 0; } 35%, 55% { transform: translateY(0); opacity: 1; } 65%, 85% { transform: translateY(22px); opacity: 1; } 100% { transform: translateY(22px); opacity: 0; } }
.a-cur { animation: cur 5s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes cur { 0% { transform: translate(176px, 112px); } 30%, 55% { transform: translate(150px, 62px); } 65%, 85% { transform: translate(122px, 84px); } 100% { transform: translate(176px, 112px); } }
/* act: each step lights up in turn */
.a-ok { fill: var(--line2); }
.a-node { animation: nodeOn 4.8s infinite; } .a-node .a-ok { animation: okOn 4.8s infinite; }
.a-node.n1, .a-node.n1 .a-ok { animation-delay: .9s; } .a-node.n2, .a-node.n2 .a-ok { animation-delay: 1.8s; } .a-node.n3, .a-node.n3 .a-ok { animation-delay: 2.7s; }
@keyframes nodeOn { 0%, 100% { opacity: .5; } 8%, 70% { opacity: 1; } }
@keyframes okOn { 0%, 6% { fill: var(--line2); } 12%, 70% { fill: var(--live); } 100% { fill: var(--line2); } }
.a-flow { stroke: var(--accent); stroke-dasharray: 3 4; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -14; } }

/* registry, economics, security */
.cap { transition: background .2s; }
.cap:hover { background: var(--bg2); }
.bbar .t { background: var(--accent); color: #fff; border-color: transparent; }
.band .bbar { transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.in .band .bbar { transform: none; }
.safe { transition: border-color .2s, transform .25s, box-shadow .25s, opacity .7s cubic-bezier(.2,.7,.2,1); }
.safe:hover { border-color: var(--line2); transform: translateY(-3px); box-shadow: var(--shadow2); }
.safe .ficon { transition: background .25s, color .25s, transform .4s cubic-bezier(.2,.9,.3,1.4); }
.safe:hover .ficon { background: var(--accent); color: #fff; transform: rotate(-8deg) scale(1.08); }

/* model labs marquee */
.labsmq { display: grid; gap: 10px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.labsmq .mq { overflow: hidden; }
.labsmq .mq-set { gap: 10px; padding-right: 10px; }
.chip.lg { height: 40px; padding: 0 16px 0 10px; font-size: 14px; gap: 9px; background: var(--card); }
.chip.lg .lab { width: 22px; height: 22px; border-radius: 6px; font-size: 11px; }

/* cta v2 */
.cta2 { position: relative; overflow: hidden; margin-top: 112px; border-radius: 24px; background: #0e0509; color: #fff; text-align: center; padding: 92px 32px; isolation: isolate; }
.cta2 .neural { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; --accent: #d06a8a; }
.cta2::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(640px 320px at 50% 115%, rgba(182, 74, 116, .55), transparent 70%); pointer-events: none; }
.cta2 h2 { font-size: clamp(34px, 5.4vw, 64px); letter-spacing: -.05em; margin-top: 14px; }
.cta2 p { color: rgba(255,255,255,.62); font-size: 17px; margin: 14px auto 30px; max-width: 480px; }
.cta2 .btn { background: #fff; color: #0a0a0a; border-color: #fff; }

/* cards: a slow light runs round the edge on hover; the screenshot eases in */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.mcard::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: conic-gradient(from var(--ang), transparent 0 70%, var(--accent) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin2 3s linear infinite; }
.mcard:hover::after { opacity: 1; }
@keyframes spin2 { to { --ang: 360deg; } }
.mcard .shot img { transition: transform 6s cubic-bezier(.2,.7,.2,1); }
.mcard:hover .shot img { transform: scale(1.06); }
.meter.live i { background: linear-gradient(90deg, var(--live), color-mix(in srgb, var(--live) 55%, #fff), var(--live)); background-size: 200% 100%; animation: meterShine 2.4s linear infinite; }
@keyframes meterShine { to { background-position: -200% 0; } }

/* live window */
.caret::after { background: var(--accent); }
.win.live .scan { background: linear-gradient(90deg, transparent, var(--accent), transparent); }

/* nav underline */
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1.5px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.on::after { transform: scaleX(0); }

/* coin page touches */
.compute .gauge i { transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.ev.new { animation: evin2 .6s cubic-bezier(.2,.7,.2,1); }
@keyframes evin2 { from { opacity: 0; transform: translateY(-6px); background: var(--accent-bg); } }
.mrow.on { background: var(--accent-bg); } .mrow.on .radio { border-color: var(--accent); } .mrow.on .radio::after { background: var(--accent); }
.theme.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 24px -12px var(--glow); }
.lsec > .lh .n { background: var(--accent); }
.input:focus, .search input:focus, .tin:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }

@media (max-width: 1080px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .stage .side { display: none; }
  .chipf.c1 { left: -8px; } .chipf.c2 { right: -8px; } .chipf.c3 { display: none; }
  .stats2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero2 { padding-top: 44px; }
  .stagewrap { margin-top: 44px; padding: 0 16px; }
  .chipf { display: none; }
  .stats2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .steps2 { grid-template-columns: minmax(0, 1fr); }
  .stats2 > div:last-child { grid-column: span 2; }
  .stats2 b { font-size: 24px; }
  .pill .psep, .pill .pmore { display: none; } .pill { padding-right: 12px; }
  .cta2 { padding: 56px 20px; margin-top: 80px; }
  .tt { max-width: 260px; }
}
@media (prefers-reduced-motion: reduce) { .band .bbar { transform: none; } .rot span { transition: none; } .mq-track { animation: none; } }

/* ---------- the mind: 3D brain section ---------- */
.mindsec { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; border: 1px solid var(--line); border-radius: 24px; background: var(--card); overflow: hidden; padding: 12px 48px 12px 12px; }
.brainbox { position: relative; height: 520px; border-radius: 18px; background: #0b0407; overflow: hidden; isolation: isolate; cursor: grab; }
.brainbox canvas { position: relative; z-index: 1; display: block; width: 100% !important; height: 100% !important; }
.brainglow { position: absolute; inset: 0; z-index: 0; background: radial-gradient(420px 320px at 50% 52%, rgba(182, 74, 116, .45), transparent 70%), radial-gradient(800px 400px at 50% 120%, rgba(90, 28, 57, .7), transparent 70%); }
.brainbox::after { content: ""; position: absolute; inset: 0; z-index: 0; opacity: .35; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 18px 18px; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); }
.brainbox.nobrain { background: #0b0407 url(/assets/brand/pfp.png) center / contain no-repeat; }
.mindcopy h2 { font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -.05em; margin: 12px 0 16px; }
.mindcopy .lede { font-size: 16.5px; margin: 0 0 24px; }
.halves { display: grid; gap: 12px; }
.half { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, transform .25s; }
.half:hover { border-color: var(--accent); transform: translateX(4px); }
.half h4 { font-size: 15.5px; margin: 0 0 4px; letter-spacing: -.02em; } .half p { margin: 0; color: var(--mute); font-size: 13.5px; line-height: 1.55; }
.hic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.hic svg { width: 18px; height: 18px; }
.hic.org { background: var(--accent-bg); color: var(--accent); } .hic.mac { background: #140409; color: #f2a3c3; }
@media (max-width: 1080px) { .mindsec { grid-template-columns: minmax(0, 1fr); padding: 12px 12px 28px; gap: 28px; } .mindcopy { padding: 0 16px; } .brainbox { height: 420px; } }
@media (max-width: 760px) { .brainbox { height: 340px; } }

/* ---------- first-launch state ---------- */
.brainwin .brainscreen { background: #0b0407; position: relative; }
.brainwin .brainscreen .brainglow { position: absolute; inset: 0; background: radial-gradient(380px 260px at 50% 55%, rgba(182, 74, 116, .45), transparent 70%), radial-gradient(800px 360px at 50% 125%, rgba(90, 28, 57, .7), transparent 70%); }
.brainwin .brainhost { position: absolute; inset: 0; }
.brainwin .brainhost canvas { width: 100% !important; height: 100% !important; display: block; }
.brainwin .caption { align-items: center; }
.brainwin .caption .say b { display: inline; margin-right: 6px; }
.emptycard { grid-column: 1 / -1; border: 1px dashed var(--line2); border-radius: var(--r); padding: 36px 28px; text-align: center; display: grid; justify-items: center; gap: 8px; background: var(--card); }
.emptycard .ec-art { width: 240px; height: 140px; margin-bottom: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); background-image: radial-gradient(var(--line2) 1px, transparent 1px); background-size: 14px 14px; overflow: hidden; }
.emptycard .ec-art svg { width: 100%; height: 100%; }
.emptycard b { font-size: 17px; letter-spacing: -.02em; }
.emptycard p { margin: 0 0 10px; color: var(--mute); font-size: 14px; max-width: 360px; }
.chipf.c3 { bottom: -28px !important; right: 4% !important; }
@media (max-width: 760px) { .brainwin .caption { flex-wrap: wrap; } .brainwin .caption .btn { margin-left: 0 !important; } }

/* logo: the brain mark */
.logo .mark { width: 30px; height: 30px; border-radius: 8px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 2px 10px -2px rgba(182, 74, 116, .45); transition: transform .3s cubic-bezier(.2,.9,.3,1.4); }
.logo:hover .mark { transform: rotate(-6deg) scale(1.06); }

/* ---------- hero constellation: the brain wired to every lab ---------- */
.constel { position: relative; max-width: 1240px; margin: 36px auto 0; padding: 0 24px; height: 640px; }
.clines { position: absolute; left: 24px; top: 0; overflow: visible; pointer-events: none; }
.constel .clines { left: 0; }
.cl-base { fill: none; stroke: var(--line2); stroke-width: 1.2; transition: stroke .3s, stroke-width .3s, opacity .3s; }
.cl-flow { fill: none; stroke: url(#cl-g); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 6 120; opacity: .85; animation: clflow linear infinite; }
@keyframes clflow { from { stroke-dashoffset: 126; } to { stroke-dashoffset: 0; } }
.cl-dot { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }
.cl-end { fill: var(--accent); opacity: .55; }
.constel.focus .cl:not(.on) { opacity: .25; }
.cl { transition: opacity .3s; }
.cl.on .cl-base { stroke: var(--accent); stroke-width: 2; }
.cl.on .cl-flow { stroke-width: 2.4; opacity: 1; }

.cbrain { position: absolute; z-index: 2; aspect-ratio: 327 / 345; animation: cfloat 7s ease-in-out infinite; }
.cbrain img { position: relative; z-index: 2; width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 40px rgba(90, 28, 57, .35)) drop-shadow(0 0 1px rgba(0,0,0,.2)); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.constel.focus .cbrain img { transform: scale(1.03); }
@keyframes cfloat { 50% { transform: translateY(-8px); } }
.cring { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 1; }
.cring.r1 { width: 135%; height: 128%; background: radial-gradient(closest-side, var(--glow), transparent 75%); animation: cbreath 5s ease-in-out infinite; }
.cring.r2 { width: 160%; height: 152%; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); animation: cpulse 4.5s ease-out infinite; }
.cring.r3 { width: 160%; height: 152%; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); animation: cpulse 4.5s ease-out 2.25s infinite; }
@keyframes cbreath { 50% { opacity: .55; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes cpulse { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.72); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.12); } }

.cnodes { position: absolute; inset: 0; z-index: 3; }
.cnode { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; text-decoration: none; animation: nodein .7s cubic-bezier(.2,.9,.3,1.2) both; animation-delay: var(--d, 0ms); }
@keyframes nodein { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } }
.cnode .clogo { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--card); color: var(--ink);
  border: 1px solid var(--line2); box-shadow: 0 10px 30px -14px rgba(60, 10, 30, .35), 0 1px 2px rgba(0,0,0,.04); transition: transform .3s cubic-bezier(.2,.9,.3,1.3), border-color .2s, box-shadow .3s; }
.cnode .clogo svg, .cnode .clogo img { width: 28px; height: 28px; display: block; }
.cnode .clabel { display: grid; justify-items: center; line-height: 1.25; white-space: nowrap; }
.cnode .clabel b { font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.cnode .clabel small { font: 400 11px var(--mono); color: var(--mute); }
.cnode.above { grid-template-areas: "label" "logo"; } .cnode.above .clabel { grid-area: label; } .cnode.above .clogo { grid-area: logo; }
.cnode .ctip { position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); opacity: 0; pointer-events: none; white-space: nowrap;
  background: var(--ink); color: var(--bg); font-size: 12px; line-height: 1.5; padding: 8px 12px; border-radius: 10px; box-shadow: var(--shadow2); transition: opacity .2s, transform .2s; z-index: 5; text-align: center; }
.cnode.above .ctip { top: auto; bottom: calc(100% + 8px); }
.cnode:hover .clogo, .cnode.on .clogo { transform: scale(1.12); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-bg), 0 14px 34px -14px var(--glow); }
.cnode:hover .ctip { opacity: 1; transform: translate(-50%, 0); }
.constel.focus .cnode:not(.on) { opacity: .5; }
.cnode { transition: opacity .3s; }
.ccap { text-align: center; color: var(--mute); font-size: 14px; margin: 6px auto 0; max-width: 560px; padding: 0 16px; }
.ccap b { color: var(--ink); font-weight: 600; }
:root[data-theme="dark"] .cbrain img { filter: drop-shadow(0 24px 48px rgba(182, 74, 116, .35)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cbrain img { filter: drop-shadow(0 24px 48px rgba(182, 74, 116, .35)); } }
@media (max-width: 700px) {
  .constel { margin-top: 20px; padding: 0 8px; }
  .cnode .clogo { width: 44px; height: 44px; border-radius: 14px; } .cnode .clogo svg, .cnode .clogo img { width: 22px; height: 22px; }
  .cnode .clabel small { display: none; } .cnode .clabel b { font-size: 11px; } .cnode .ctip { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cl-dot { display: none; } }
/* side nodes: label beside the logo so neighbours never collide */
.cnode.sl, .cnode.sr { grid-template-areas: none; grid-auto-flow: column; align-items: center; gap: 12px; }
.cnode.sl .clabel { order: -1; justify-items: end; text-align: right; } .cnode.sr .clabel { justify-items: start; }
.cnode.sl, .cnode.sr { grid-template-columns: auto auto; }
.cnode.sl .clogo, .cnode.sr .clogo { grid-area: auto; } .cnode.sl .clabel, .cnode.sr .clabel { grid-area: auto; }
.cnode.sl { transform: translate(calc(-100% + 29px), -50%); } .cnode.sr { transform: translate(-29px, -50%); }
@keyframes nodein-s { from { opacity: 0; } }
.cnode.sl, .cnode.sr { animation-name: nodein-s; }
@media (max-width: 760px) {
  .doc .tbl { display: block; overflow-x: auto; }
  .doc .tbl td:first-child { white-space: normal; min-width: 110px; }
  .doc .tbl code { white-space: normal; word-break: break-word; }
}

/* launch: the locked website */
.input.locked { display: flex; align-items: center; gap: 8px; background: var(--bg2); color: var(--mute); cursor: not-allowed; font: 400 12.5px var(--mono); overflow: hidden; white-space: nowrap; }
.input.locked svg { width: 14px; height: 14px; flex: none; color: var(--accent); }
.input.locked span { overflow: hidden; text-overflow: ellipsis; }
.input.locked i { font-style: normal; color: var(--accent); }

/* launch: sites it explores */
.sitebox { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1px solid var(--line2); border-radius: 9px; padding: 6px; background: var(--card); }
.sitebox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.sitechips { display: contents; }
.sitechip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 4px 0 10px; border-radius: 999px; background: var(--accent-bg); color: var(--ink); font: 400 12.5px var(--mono); max-width: 100%; }
.sitechip b { font: 600 10px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.sitechip button { width: 20px; height: 20px; border-radius: 50%; color: var(--mute); font-size: 15px; line-height: 1; }
.sitechip button:hover { background: var(--card); color: var(--ink); }
.sitebox input { flex: 1; min-width: 180px; border: 0; outline: 0; background: none; height: 28px; padding: 0 6px; font-size: 14px; }
.sitebox .btn { height: 28px; padding: 0 12px; font-size: 13px; }
