:root {
  --paper: #ffffff;
  --ink: #141414;
  --ink-soft: #8a8a8a;
  --glass: rgba(170, 206, 242, 0.11);
  --glass-floor: rgba(214, 223, 234, 0.96);
  --drool: #9fd0f5;
  --font: "Patrick Hand", "Comic Sans MS", "Chalkboard SE", system-ui, sans-serif;
  --s: clamp(200px, min(39vh, 56vw), 390px);
  --nav-h: 64px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- top bar ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 24px;
  pointer-events: none;
}
.top > * { pointer-events: auto; }
/* paper fade under the fixed header so scrolled text slides under it cleanly */
.top::before { content: ""; position: absolute; inset: 0 0 -24px 0; z-index: -1; background: linear-gradient(#fff 60%, rgba(255,255,255,0)); pointer-events: none; }
.mark { text-decoration: none; display: inline-block; }
.mark span { display: inline-block; font-family: "Gloria Hallelujah", var(--font); font-size: 40px; line-height: 1; letter-spacing: .01em; transform: rotate(-3deg); filter: url(#boil-ui); }
.top-note { font-size: 15px; color: var(--ink-soft); }
.ink-link { position: relative; color: var(--ink); text-decoration: none; white-space: nowrap; }
.ink-link svg { position: absolute; left: -1px; right: -1px; bottom: -3px; width: calc(100% + 2px); height: 7px; overflow: visible; }
.ink-link path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 104; stroke-dashoffset: 62; transition: stroke-dashoffset .45s cubic-bezier(.6,0,.2,1); }
.ink-link:hover path, .ink-link:focus-visible path { stroke-dashoffset: 0; }

/* ---------- views ---------- */
#views { position: relative; min-height: 100vh; min-height: 100svh; }
.view {
  display: none;
  min-height: 100vh; min-height: 100svh;
  padding: 90px 24px calc(var(--nav-h) + 120px);
}
.view.is-active { display: block; }
.view[data-view="lab"] { padding-bottom: calc(var(--nav-h) + 56px); }

/* ---------- lab (home) ---------- */
.lab {
  min-height: calc(100svh - 90px - var(--nav-h) - 56px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(18px, 4vh, 40px);
}
.stage {
  position: relative;
  width: calc(var(--s) * 1.7); height: calc(var(--s) * 1.5);
  max-width: 100%;
  display: grid; place-items: center;
  perspective: calc(var(--s) * 3.4);
  touch-action: pan-y;
}
.float { width: var(--s); height: var(--s); -webkit-transform-style: preserve-3d; transform-style: preserve-3d; }
.cube {
  position: relative; width: var(--s); height: var(--s);
  transform-style: preserve-3d;
}
.face {
  position: absolute; inset: 0;
  backface-visibility: visible;
  transform-style: preserve-3d;
}
.face svg { width: 100%; height: 100%; overflow: visible; display: block; }
.face-fold { position: absolute; inset: 0; transform-origin: 50% 100%; }
.face--top .face-fold { transform-origin: 50% 0%; }
.face-draw { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.face-draw path { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.glint {
  position: absolute; inset: 12%;
  background: linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,.85) 50%, transparent 62% 100%) no-repeat;
  background-size: 250% 100%; background-position: 150% 0;
  pointer-events: none;
}
.face--front  { transform: translateZ(calc(var(--s) / 2)); }
.face--back   { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.face--right  { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.face--left   { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.face--top    { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.face--bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }

.float { position: relative; z-index: 1; }
.rig-tubes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.tube-ink { fill: none; stroke: var(--ink); stroke-linecap: round; }
.tube-core { fill: none; stroke: #fff; stroke-linecap: round; }
.tube--fluid .tube-core { stroke: #e3f1fc; }
:root { --rh: #ccff00; --rh-edge: #4f6300; }
/* Robinhood neon is the one accent: only the main tube's liquid and its arrival flash */
.tube-liquid-edge { fill: none; stroke: var(--rh-edge); stroke-linecap: round; }
.tube-liquid { fill: none; stroke: var(--rh); stroke-linecap: round; opacity: .85; }
.tube-fluid-edge { fill: none; stroke: var(--rh-edge); stroke-linecap: round; stroke-dasharray: 0.16 2; stroke-dashoffset: 0.16; }
.tube-fluid { fill: none; stroke: var(--rh); stroke-linecap: round; stroke-dasharray: 0.16 2; stroke-dashoffset: 0.16; }
@media (hover: hover) and (pointer: fine) and (min-width: 761px) { .tube-fluid { filter: drop-shadow(0 0 3px rgba(204, 255, 0, .9)); } }
/* once the intro has folded the box together, drop the extra 3D contexts and the hidden draw-on layers (fewer GPU layers) */
.cube.is-built .face { transform-style: flat; }
.cube.is-built .face-draw { display: none; }
/* the head is an SVG group in the rig layer; its breathing and wobble are driven from js/rig.js (no CSS animation
   on SVG here: that repaints the whole layer every frame) */
.subject-drop { transform-box: fill-box; }
@keyframes wobble { from { rotate: -2.5deg; } to { rotate: 2.5deg; } }
@keyframes breathe {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.012, 1.028); }
}

@keyframes drool {
  0%, 100% { transform: scaleY(1); }
  60% { transform: scaleY(1.16); }
}

/* phones: the still picture of the box, floating; the shadow breathes on the same 4s beat */
.stage.is-still { perspective: none; }
.stage.is-still .float { display: grid; place-items: center; }
.still { display: block; width: calc(var(--s) * 1.29); flex: none; animation: still-bob 4s ease-in-out infinite; }
.still img { display: block; width: 100%; height: auto; pointer-events: none; -webkit-user-select: none; user-select: none; }
.stage.is-still .ground { animation: still-shadow 4s ease-in-out infinite; }
.stage.is-paused .still, .stage.is-paused .ground { animation-play-state: paused; }
@keyframes still-bob { 0%, 100% { translate: 0 -3px; } 50% { translate: 0 4px; } }
@keyframes still-shadow { 0%, 100% { opacity: .7; scale: .94; } 50% { opacity: .95; scale: 1.02; } }
@media (prefers-reduced-motion: reduce) { .still, .stage.is-still .ground { animation: none; } }

.ground {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--s) * 1.15); height: calc(var(--s) * .16);
  transform: translate(-50%, calc(var(--s) * .68));
  background: radial-gradient(closest-side, rgba(20,20,20,.13), rgba(20,20,20,.05) 60%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.tag {
  position: absolute; z-index: 4;
  right: 0; top: 4%;
  transform: rotate(-5deg);
  font-size: 22px;
  padding: 2px 14px 4px;
  background: var(--rh, #ccff00);
  border: 2.5px solid var(--ink);
  border-radius: 14px 10px 16px 9px / 10px 15px 9px 14px;
  white-space: nowrap;
}
.tag-k { color: var(--ink); opacity: .6; }
.tag-v { display: inline-block; min-width: 1.4em; }
.tag-string {
  position: absolute; left: -54px; top: 18px; width: 56px; height: 38px;
  fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round;
}

.lab-copy { text-align: center; max-width: 640px; }
.lab-copy h1 {
  font-weight: 400; margin: 0;
  font-size: clamp(26px, 3.6vw, 40px); line-height: 1.12;
}
.lab-copy p { margin: 10px 0 0; color: var(--ink-soft); font-size: clamp(17px, 1.6vw, 21px); }

/* ---------- placeholder pages ---------- */
.page { max-width: 680px; margin: 0 auto; }
.page h2 { font-weight: 400; font-size: clamp(40px, 6vw, 64px); margin: 0 0 6px; line-height: 1; }
.page .lede { color: var(--ink-soft); margin: 0 0 40px; font-size: 21px; }
.ul-draw { display: block; width: min(260px, 70%); height: 14px; margin: 2px 0 26px; overflow: visible; }
.ul-draw path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }

.big { font-size: clamp(88px, 16vw, 160px); line-height: .9; }
.big small { font-size: .28em; color: var(--ink-soft); margin-right: .2em; }
.level { font-size: 24px; margin: 4px 0 30px; }

.track { position: relative; height: 70px; margin: 10px 0 34px; }
.track svg { width: 100%; height: 100%; overflow: visible; }
.track .line { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
.track .tick { stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.track .lbl { font-family: var(--font); font-size: 15px; fill: var(--ink-soft); text-anchor: middle; }
.track .dot { fill: var(--ink); }
.track .ring { fill: none; stroke: var(--ink); stroke-width: 2.2; }

.stats { list-style: none; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stats li { padding: 12px 0 0; border-top: 2.5px solid var(--ink); }
.stats b { display: block; font-weight: 400; font-size: 30px; }
.stats span { color: var(--ink-soft); font-size: 16px; }

.powers-h { font-weight: 400; font-size: 24px; margin: 0 0 8px; }
.powers { list-style: none; padding: 0; margin: 0; }
.powers li { display: flex; gap: 14px; align-items: baseline; padding: 9px 0; }
.powers .iq { width: 3.6em; flex: none; color: var(--ink-soft); }
.powers li.on .iq { color: var(--ink); }
.powers .power { display: flex; flex-direction: column; gap: 2px; }
.powers .note { color: var(--ink-soft); font-size: 17px; }
.peek { font-size: 21px; }
.redact { display: inline-block; vertical-align: middle; cursor: help; }
.redact--word { width: calc(var(--w) * .5em); height: .9em; margin: 0 .08em; background: var(--ink); border-radius: 3px 6px 4px 7px / 6px 3px 7px 4px; transform: rotate(-1.5deg); }
.redact--bar { height: 22px; }
.redact--bar svg { width: 100%; height: 100%; overflow: visible; display: block; }
.redact--bar path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.redact:hover, .redact:focus-visible { animation: shake .42s ease-in-out; outline: none; }
@keyframes shake {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  20% { transform: translate(-3px, 1px) rotate(-1.5deg); }
  40% { transform: translate(3px, -1px) rotate(1.5deg); }
  60% { transform: translate(-2px, 1px) rotate(-1deg); }
  80% { transform: translate(2px, 0) rotate(.6deg); }
}

.journal { list-style: none; padding: 0; margin: 0; }
.journal li { padding: 18px 0 20px; border-bottom: 2px dashed rgba(20,20,20,.18); }
.journal time { color: var(--ink-soft); font-size: 15px; }
.journal .jiq { float: right; color: var(--ink-soft); font-size: 15px; }
.journal p { margin: 4px 0 0; font-size: 21px; }

.lines { list-style: none; padding: 0; margin: 0; font-size: 22px; }
.lines li { padding: 10px 0; }
.lines li::before { content: "~ "; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.about p { font-size: 22px; margin: 0 0 18px; }

[data-rise] { opacity: 0; transform: translateY(14px); }
.view.is-in [data-rise] { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms + 60ms); }

/* ---------- doc ---------- */
.page--wide { max-width: 1100px; }
.polaroid { position: relative; margin: 26px auto 52px; width: min(760px, 100%, calc((100svh - 260px) * 1.25)); padding: 16px 16px 0; background: #fff; transform: rotate(-1.2deg); box-shadow: 0 18px 40px -22px rgba(20,20,20,.35); }
.polaroid-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.polaroid-frame path { fill: none; stroke: var(--ink); stroke-width: 2.4; }
/* the art has a transparent background; crop to it and sit it on a light lab grey */
.polaroid-photo { position: relative; overflow: hidden; aspect-ratio: 1112 / 795; background: #ebebe8; outline: 2px solid var(--ink); }
.polaroid-photo img { display: block; width: 107.91%; height: auto; margin: -4.41% 0 0 -3.96%; }
.polaroid figcaption { padding: 14px 6px 18px; text-align: center; font-size: 21px; }
.tape { position: absolute; top: -14px; width: 110px; height: 30px; background: rgba(225,225,215,.78); border: 1.5px solid rgba(20,20,20,.25); z-index: 2; }
.tape--l { left: -18px; transform: rotate(-32deg); }
.tape--r { right: -18px; transform: rotate(28deg); }
.doc-wipe { position: absolute; inset: -4% -12%; background: var(--ink); transform: translateX(-102%); pointer-events: none; }
.doc-slot { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: clamp(22px, 3vw, 32px); }
.doc-slot small { font-size: .6em; color: var(--ink-soft); }
.doc-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.doc-frame path { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-dasharray: 12 10; stroke-linecap: round; }
.doc-wipe { position: absolute; inset: -4% -12%; background: var(--ink); transform: translateX(-102%); pointer-events: none; }
.doc-text { max-width: 680px; margin: 0 auto; }
.doc-text p { font-size: 22px; margin: 0 0 16px; }
.doc-text .lede { margin-bottom: 26px; }

/* ---------- bottom nav ---------- */
.nav {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 30;
  height: var(--nav-h);
  padding: 0 10px;
  display: flex; align-items: center;
}
.nav-frame, .nav-mark { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.nav-frame path { fill: var(--paper); stroke: var(--ink); stroke-width: 2.6; stroke-linejoin: round; }
.nav-mark path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.nav-list { position: relative; list-style: none; display: flex; margin: 0; padding: 0; gap: 2px; }
.nav-list a {
  display: block; padding: 10px 15px; text-decoration: none; font-size: 21px;
  color: var(--ink-soft); transition: color .3s;
  -webkit-tap-highlight-color: transparent;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--ink); }
.nav-list a:focus-visible { outline: 2px dashed var(--ink); outline-offset: -4px; border-radius: 12px; }

/* soft paper fade behind the floating nav, so scrolling text never collides with it */
.nav-fade {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 29;
  height: calc(var(--nav-h) + 70px);
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.92) 55%, #fff);
  pointer-events: none;
}

/* ---------- page wipe ---------- */
.wipe { position: fixed; inset: 0; z-index: 50; pointer-events: none; visibility: hidden; }
.wipe svg { width: 100%; height: 100%; display: block; }
.wipe path { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.wipe.is-on { visibility: visible; pointer-events: auto; }

/* ---------- intro (krackerz-style ink flood, see js/intro.js) ---------- */
/* first paint is already flat ink, so nothing flashes before the intro mounts */
html:not(.no-intro) body.is-booting::after { content: ""; position: fixed; inset: 0; z-index: 70; background: var(--ink); }
.intro { position: fixed; inset: 0; z-index: 60; cursor: pointer; } /* catches the skip click so it never lands on the page underneath */
.intro-panel { position: absolute; inset: 0; background: var(--paper); display: grid; place-items: center; }
.intro-cover { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro-word { font-family: "Gloria Hallelujah", var(--font); font-size: clamp(56px, 12vw, 150px); line-height: 1.2; letter-spacing: .01em; position: relative; padding-bottom: .1em; transform: rotate(-3deg); filter: url(#boil-ui); }
.intro-word .i { position: relative; display: inline-block; }
.intro-word .dot { position: absolute; left: 50%; top: .12em; width: .2em; height: .2em; translate: -50% 0; border-radius: 50%; background: none; }
.intro-word .dot svg { display: none; position: absolute; left: 50%; top: 50%; width: .5em; height: .42em; translate: -50% -58%; overflow: visible; }
.intro-word.gag .dot { background: var(--paper); }
.intro-word.gag .dot svg { display: block; }
.h-w { display: inline-block; transform-origin: 50% 100%; backface-visibility: hidden; }
body.is-booting [data-intro-fade], body.is-booting [data-intro-nav], body.is-booting .top { opacity: 0; }

/* ---------- responsive ---------- */
/* ---------- hanging brain (IQ page only) ---------- */
.dangle { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 21; overflow: visible; }
.dangle-cable { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
.dangle-knot { fill: var(--ink); }
.dangle-mount { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
/* same ink weight as the box at any scale */
.dangle-brain path, .dangle-brain ellipse { vector-effect: non-scaling-stroke; }
.dangle-fill { fill: #fff; stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; }
.dangle-fold { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; }
.dangle-fissure { stroke-width: 4; }
.dangle-thin { stroke-width: 2; }
.dangle-drip { fill: none; stroke: var(--drool); stroke-width: 4; stroke-linecap: round; }
.dangle-drop { fill: var(--drool); }
@media (max-width: 640px) {
  .dangle-fill { stroke-width: 2.8; }
  .dangle-fold { stroke-width: 1.8; }
  .dangle-fissure { stroke-width: 2.2; }
  .dangle-drip { stroke-width: 2.4; }
  .dangle-cable { stroke-width: 1.8; }
  .dangle-mount { stroke-width: 2.4; }
}
.dangle { visibility: hidden; opacity: 0; transition: opacity .5s ease, visibility 0s .5s; }
.dangle.is-on { visibility: visible; opacity: 1; transition: opacity .5s ease .1s; }

/* ---------- social rail ---------- */
.social { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 25; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.social a { color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.social-icon { width: 46px; height: 46px; display: grid; place-items: center; transition: transform .25s cubic-bezier(.16,1,.3,1); }
.social-icon svg { width: 34px; height: 34px; overflow: visible; filter: url(#boil-ui); }
.social-icon path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.social-icon:hover { transform: rotate(-8deg) scale(1.08); }
.social-buy { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin-top: 6px; font-size: 21px; color: #fff !important; transform: rotate(-6deg); transition: transform .25s cubic-bezier(.16,1,.3,1); }
.social-buy .buy-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: url(#boil-ui); }
.social-buy .buy-frame path { fill: var(--ink); stroke: var(--ink); stroke-width: 2.5; }
.social-buy span { position: relative; letter-spacing: .04em; }
.social-buy:hover { transform: rotate(4deg) scale(1.07); }
.social .is-soon { cursor: default; }
.social-buy.is-soon::after { content: "soon"; position: absolute; bottom: -20px; font-size: 13px; color: var(--ink-soft); }

/* ---------- journal dashboard ---------- */
.jd-head h2 { display: flex; align-items: center; gap: 16px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 18px; padding: 3px 12px 4px; border: 2px solid var(--ink); border-radius: 14px 10px 13px 9px; transform: translateY(-6px) rotate(-3deg); }
.live i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); position: relative; }
.live i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ink); animation: ping 1.6s ease-out infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.eeg { height: 56px; margin: 6px 0 26px; border-bottom: 2px dashed rgba(20,20,20,.15); }
.eeg svg { width: 100%; height: 100%; overflow: visible; display: block; filter: url(#boil-ui); }
.eeg path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.eeg.is-hit path { animation: eeghit 1.2s ease-out; }
@keyframes eeghit { 0% { stroke-width: 3.6; } 100% { stroke-width: 2.2; } }
.jd-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.jd-side { display: grid; gap: 40px; }
.panel h3 { position: relative; display: inline-block; font-weight: 400; font-size: 26px; margin: 0 0 12px; }
.panel h3 .h-ul { position: absolute; left: 0; bottom: -4px; width: 100%; height: 8px; overflow: visible; }
.panel h3 .h-ul path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.feed { list-style: none; padding: 0; margin: 0; }
.feed > li { border-bottom: 2px dashed rgba(20,20,20,.14); overflow: hidden; }
.item-head { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; padding: 12px 2px 13px; cursor: pointer; }
.item-head:focus-visible { outline: 2px dashed var(--ink); outline-offset: 2px; border-radius: 8px; }
.item-head .tags, .item-head .status, .item-head .done-mark { grid-column: 1; }
.item-head time { grid-column: 2; grid-row: 1; color: var(--ink-soft); font-size: 15px; white-space: nowrap; }
.item-text { grid-column: 1 / -1; font-size: 20px; line-height: 1.3; }
.item-head:hover .item-text { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.item-head[aria-expanded="true"] .item-text { text-decoration: none; }
.tags { display: flex; gap: 6px; }
.src { font-size: 14px; padding: 0 8px; border: 1.5px solid rgba(20,20,20,.45); border-radius: 9px 7px 10px 6px; color: var(--ink-soft); }
.src--chain { border-color: var(--ink); color: var(--ink); }
.src--x { background: var(--ink); border-color: var(--ink); color: #fff; }
.item-more { padding: 0 2px 14px; font-size: 17px; }
.item-more p { margin: 0 0 6px; }
.item-more a, .tx { color: var(--ink); }
.tx { font-size: 15px; font-family: ui-monospace, Menlo, monospace; }
.feed > li.is-new .item-text { background: linear-gradient(transparent 62%, rgba(20,20,20,.08) 62%); }
.status { font-size: 15px; }
.status i { font-style: normal; color: var(--ink-soft); }
.status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; border: 2px solid var(--ink); vertical-align: 1px; }
.status--pending::before, .status--thinking::before { background: var(--ink); }
.status--rejected, .status--vetoed, .status--expired, .status--cancelled { color: var(--ink-soft); }
.doc-says { grid-column: 1 / -1; color: var(--ink-soft); font-size: 17px; }
.thinking { padding: 10px 2px 14px; border-bottom: 2px dashed rgba(20,20,20,.14); }
.thinking .dots b { font-weight: 400; animation: dot 1.2s infinite; }
.thinking .dots b:nth-child(2) { animation-delay: .2s; }
.thinking .dots b:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 60%, 100% { opacity: .2; } 30% { opacity: 1; } }
.tk { position: relative; display: block; min-height: 1.4em; font-size: 21px; margin-top: 2px; }
.tk-strike { position: absolute; left: 0; top: 0; height: 100%; overflow: visible; opacity: 0; pointer-events: none; }
.tk-strike path { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--ink); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.done-mark { font-size: 18px; }
.panel--done .item-head .tx { grid-column: 1; }
.done-sum { list-style: none; padding: 0; margin: 0 0 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.done-sum li { border-top: 2.5px solid var(--ink); padding-top: 8px; }
.done-sum b { display: block; font-weight: 400; font-size: 26px; line-height: 1.1; }
.done-sum span { color: var(--ink-soft); font-size: 14px; }
.jd-foot { margin-top: 30px; font-size: 16px; }
.more-btn { all: unset; cursor: pointer; margin-top: 12px; font-size: 18px; border-bottom: 2px solid var(--ink); }
.feed > li.is-older { display: none; }
.feed.show-all > li.is-older { display: block; }


/* ---------- about: how it works diagram ---------- */
.flow { margin: 10px 0 34px; width: 100%; }
.flow-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.fbox-frame { fill: #fff; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.fbox--brain .fbox-frame, .fbox--hook .fbox-frame { stroke-width: 3.6; }
.fbox-t { font-family: var(--font); fill: var(--ink); text-anchor: middle; }
.fbox-s { font-family: var(--font); fill: var(--ink-soft); text-anchor: middle; }
.fedge, .fhead { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fedge-l { font-family: var(--font); fill: var(--ink-soft); text-anchor: middle; }
.pulse-glow { fill: rgba(204, 255, 0, .55); }
.pulse-core { fill: var(--rh); stroke: var(--rh-edge); stroke-width: 1.4; }

/* ---------- tokenomics ---------- */
.tk-stamp { display: inline-flex; gap: 6px; align-items: center; margin: 2px 0 18px; padding: 3px 12px 4px; font-size: 17px; border: 2px dashed var(--ink); border-radius: 12px 9px 13px 8px; transform: rotate(-1.5deg); }
.tk-stamp span:first-child { font-weight: 400; }
.split { margin: 6px 0 14px; }
.split-bar { width: 100%; height: 120px; overflow: visible; display: block; }
.split-bar path { stroke-linejoin: round; }
.bar-room { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 7 7; opacity: .55; }
.bar-holders { fill: #fff; stroke: var(--ink); stroke-width: 3; transform-box: fill-box; transform-origin: 0 50%; }
.bar-module { fill: #cfcfcf; stroke: var(--ink); stroke-width: 3; transform-box: fill-box; transform-origin: 0 50%; }
.bar-brain { fill: var(--ink); stroke: var(--ink); stroke-width: 3; transform-box: fill-box; transform-origin: 0 50%; }
.bar-hatch path { stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; opacity: .55; }
.bar-tick { stroke: var(--ink); stroke-width: 2; }
.bar-lbl { font-family: var(--font); font-size: 15px; fill: var(--ink-soft); text-anchor: middle; }
.split-legend { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 6px; }
.leg { display: flex; align-items: baseline; gap: 8px; }
.leg b { font-weight: 400; font-size: 30px; }
.leg span { color: var(--ink-soft); font-size: 17px; }
.leg--holders b::before, .leg--brain b::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; border: 2.5px solid var(--ink); border-radius: 4px; vertical-align: 1px; background: repeating-linear-gradient(-55deg, #fff 0 3px, rgba(20,20,20,.45) 3px 4.5px); }
.leg--brain b::before { background: var(--ink); }
.leg--room b { color: var(--ink-soft); font-size: 22px; }
.slots { list-style: none; padding: 0; margin: 4px 0 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.slot { position: relative; padding: 12px 12px 10px; min-height: 84px; }
.slot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.slot svg path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 6; opacity: .5; }
.slot.is-on svg path { stroke-dasharray: none; opacity: 1; stroke-width: 2.6; }
.slot b { position: relative; display: block; font-weight: 400; font-size: 24px; color: var(--ink-soft); }
.slot.is-on b { color: var(--ink); }
.slot span { position: relative; font-size: 17px; }
.slot i { position: relative; display: block; font-style: normal; font-size: 14px; color: var(--ink-soft); }
.tk-h { font-weight: 400; font-size: 30px; margin: 46px 0 12px; }
.tk-note { margin: -4px 0 12px; font-size: 17px; }
.versions { position: relative; list-style: none; padding: 0 0 0 30px; margin: 0; }
.v-spine { position: absolute; left: 4px; top: 0; width: 10px; height: 100%; overflow: visible; }
.v-spine path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.versions li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 0 12px; padding: 8px 0 14px; }
.versions li::before { content: ""; position: absolute; left: -31px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2.6px solid var(--ink); }
.versions li:first-of-type::before { background: var(--ink); }
.v-n { font-size: 22px; }
.v-what { font-size: 20px; }
.v-what small { display: block; color: var(--ink-soft); font-size: 15px; }
.v-meta { grid-column: 2; color: var(--ink-soft); font-size: 15px; }
.v-meta a { color: var(--ink); }
.rules { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.rules li { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; font-size: 19px; break-inside: avoid; }
.rules .lock { flex: none; width: 18px; height: 18px; transform: translateY(3px); fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.checker { margin: 22px 0 6px; }
.checker label { display: block; font-size: 19px; margin-bottom: 8px; }
.ck-row { display: flex; gap: 10px; }
.ck-row input { flex: 1; min-width: 0; font: inherit; font-size: 18px; padding: 8px 12px; border: 2.5px solid var(--ink); border-radius: 12px 9px 13px 8px; background: #fff; color: var(--ink); }
.ck-row input:focus { outline: 2px dashed var(--ink); outline-offset: 2px; }
.ck-row button { position: relative; font: inherit; font-size: 19px; padding: 8px 20px; border: 0; background: none; color: #fff; cursor: pointer; }
.ck-row button svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ck-row button svg path { fill: var(--ink); }
.ck-row button span { position: relative; }
.ck-out { min-height: 1.4em; margin: 8px 0 0; color: var(--ink-soft); font-size: 17px; }
.supply { margin-top: 6px; }

/* ---------- tools: everything behind is a blur, one quiet line in the middle ---------- */
.tools-behind { filter: blur(10px); opacity: .45; pointer-events: none; user-select: none; }
.maybe { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 10; text-align: center; width: max-content; max-width: calc(100vw - 32px); }
.maybe-t { position: relative; display: inline-block; margin: 0; font-size: clamp(34px, 5vw, 52px); line-height: 1.1; }
.maybe-ul { position: absolute; left: -2%; bottom: -10px; width: 104%; height: 14px; overflow: visible; filter: url(#boil-ui); }
.maybe-ul path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.maybe-s { margin: 18px 0 0; color: var(--ink-soft); font-size: 19px; }
.view:not(.is-active) .maybe { display: none; }
.tools { position: relative; }
.stamp { position: absolute; right: 0; top: -10px; width: 170px; height: 170px; display: grid; place-items: center; text-align: center; font-size: 22px; line-height: 1.05; transform: rotate(-14deg); pointer-events: none; }
.stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: url(#boil-ui); }
.stamp path { fill: none; stroke: var(--ink); stroke-width: 3.2; }
.stamp span { text-transform: uppercase; letter-spacing: .06em; }
.tool-grid { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tool { position: relative; padding: 22px 20px 20px; min-height: 180px; display: flex; flex-direction: column; gap: 8px; }
.tool-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tool-frame path { fill: none; stroke: var(--ink); stroke-width: 2.6; }
.tool-doodle { position: relative; width: 70px; height: 52px; overflow: visible; filter: url(#boil-ui); }
.tool-doodle path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tool-name { position: relative; display: inline-block; align-self: flex-start; font-weight: 400; font-size: 24px; }
.tool-note { position: relative; color: var(--ink-soft); font-size: 17px; }
.tool--blur .tool-name, .tool--blur .tool-doodle { filter: blur(3.5px); }
.tool--blur:hover .tool-name { filter: blur(2.4px); }
.tool .scribble { position: absolute; left: -6px; top: 2px; width: calc(100% + 12px); height: 85%; overflow: visible; }
.tool .scribble path { fill: none; stroke: var(--ink); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.tool--redact .tool-name .redact--word { height: 1em; }
.tool:hover .tool-doodle { animation: shake .42s ease-in-out; }

@media (max-width: 900px) {
  .jd-grid { grid-template-columns: 1fr; gap: 34px; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .social { right: 10px; gap: 8px; }
}

@media (max-width: 640px) {
  :root { --s: clamp(190px, 58vw, 320px); --nav-h: 56px; }
  body { font-size: 18px; }
  .top { padding: 14px 16px; }
  .mark span { font-size: 34px; }
  .top { flex-wrap: wrap; row-gap: 4px; }
  .top-note { font-size: 12.5px; white-space: nowrap; flex-basis: 100%; }
  .social { top: 8px; right: 10px; transform: none; flex-direction: row; gap: 2px; }
  .social-icon { width: 36px; height: 36px; }
  .social-icon svg { width: 26px; height: 26px; }
  .social-buy { width: 54px; height: 36px; margin: 0 0 0 4px; font-size: 18px; transform: rotate(-3deg); }
  .social-buy.is-soon::after { bottom: -18px; font-size: 12px; }
  .item-text { font-size: 18px; }
  .jd-side { order: -1; }
  .jd-grid { display: flex; flex-direction: column; }
  .done-sum b { font-size: 21px; }
  .view { padding: 76px 16px calc(var(--nav-h) + 100px); }
  .nav-fade { height: calc(var(--nav-h) + 60px); }
  .view[data-view="lab"] { padding-bottom: calc(var(--nav-h) + 44px); }
  .stage { width: 100%; height: calc(var(--s) * 1.42); }
  .lab { min-height: calc(100svh - 76px - var(--nav-h) - 44px); gap: 40px; justify-content: center; padding-top: 2vh; }
  .tag { top: 2%; right: 4px; font-size: 19px; }
  .tag-string { display: none; }
  .nav { bottom: calc(12px + env(safe-area-inset-bottom)); padding: 0 6px; }
  .nav { padding: 0 9px; }
  .nav-list a { padding: 8px 6px; font-size: 14.5px; letter-spacing: -.01em; }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .rules { columns: 1; }
  .leg b { font-size: 24px; }
  .tk-h { font-size: 26px; }
  .tool-grid { grid-template-columns: 1fr; gap: 16px; }
  .tool { min-height: 0; }
  .stamp { position: relative; right: auto; top: auto; width: 116px; height: 116px; font-size: 15px; margin: -40px 0 -22px auto; }
  .tool { padding: 16px 16px 14px; }
  .tool-doodle { width: 54px; height: 40px; }
  .polaroid { padding: 10px 10px 0; margin: 18px auto 34px; }
  .tape { width: 70px; height: 22px; top: -10px; }
  .polaroid figcaption { font-size: 18px; padding: 10px 4px 12px; }
  .doc-text p { font-size: 20px; }
  .stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .live i::after, .thinking .dots b, .caret { animation: none; }
  .redact:hover, .redact:focus-visible { animation: none; }
  .subject-breath, .bl-drool { animation: none; }
  .view.is-in [data-rise] { transition: opacity .3s; transform: none; }
}
/* About: "currently" next to the live split, green with a marker underline (the numbers change over time) */
.about .now { position: relative; color: #4c9a00; text-decoration: none; white-space: nowrap; }
.about .now svg { position: absolute; left: -2px; bottom: -4px; width: calc(100% + 4px); height: 8px; overflow: visible; }
.about .now path { fill: none; stroke: var(--rh); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 .5px var(--rh-edge)); }
