:root {
  --void: #020504;
  --black: #050908;
  --panel: rgba(8, 16, 14, 0.92);
  --panel-hot: rgba(13, 25, 21, 0.96);
  --toxic: #b8ff00;
  --toxic-dim: rgba(184, 255, 0, 0.13);
  --cyan: #00efff;
  --cyan-dim: rgba(0, 239, 255, 0.11);
  --virus: #ff2bd6;
  --virus-dim: rgba(255, 43, 214, 0.12);
  --violet: #795cff;
  --white: #eafff8;
  --ink: rgba(234, 255, 248, 0.76);
  --dim: rgba(209, 240, 230, 0.48);
  --faint: rgba(184, 255, 229, 0.23);
  --line: rgba(143, 255, 213, 0.18);
  --line-hot: rgba(184, 255, 0, 0.46);
  --font-display: "Syne", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 2px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--void); }
body {
  min-width: 320px;
  background: var(--void);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
::selection { color: var(--void); background: var(--toxic); }

.virus-field,
.scanlines,
.cursor-glow { position: fixed; inset: 0; pointer-events: none; }
.virus-field {
  z-index: -3;
  background:
    linear-gradient(rgba(0, 239, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 239, 255, 0.032) 1px, transparent 1px),
    radial-gradient(circle at 78% 24%, rgba(121, 92, 255, 0.13), transparent 25%),
    radial-gradient(circle at 18% 72%, rgba(184, 255, 0, 0.08), transparent 28%),
    var(--void);
  background-size: 56px 56px, 56px 56px, auto, auto, auto;
}
.virus-field::before,
.virus-field::after {
  content: "";
  position: absolute;
  width: 44vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--virus), transparent);
  box-shadow: 0 0 24px var(--virus);
  opacity: 0.25;
  animation: signalDrift 9s linear infinite;
}
.virus-field::before { top: 23%; left: -8%; transform: rotate(-13deg); }
.virus-field::after { right: -9%; bottom: 18%; transform: rotate(18deg); animation-delay: -4s; }
.scanlines {
  z-index: 70;
  opacity: 0.12;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0,0,0,0.38) 4px);
  mix-blend-mode: multiply;
}
.cursor-glow {
  z-index: -2;
  background: radial-gradient(circle at 50% 45%, rgba(0, 239, 255, 0.04), transparent 36%);
}
@keyframes signalDrift { 50% { transform: translateX(35vw) rotate(-3deg); opacity: 0.5; } }

.view[hidden] { display: none !important; }

/* System header */
.site-head {
  position: fixed;
  inset: 0 0 auto;
  height: 64px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 5, 4, 0.88);
  backdrop-filter: blur(18px);
}
.site-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 18%;
  height: 1px;
  background: var(--toxic);
  box-shadow: 0 0 14px var(--toxic);
}
.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.wordmark small { color: var(--dim); font-size: 0.56rem; }
.wordmark-mark { position: relative; display: inline-grid; place-items: center; width: 24px; height: 24px; }
.wordmark-mark i { position: absolute; border: 1px solid var(--toxic); border-radius: 50%; }
.wordmark-mark i:nth-child(1) { width: 22px; height: 8px; transform: rotate(28deg); }
.wordmark-mark i:nth-child(2) { width: 22px; height: 8px; transform: rotate(-28deg); border-color: var(--cyan); }
.wordmark-mark i:nth-child(3) { width: 4px; height: 4px; background: var(--virus); border: 0; box-shadow: 0 0 10px var(--virus); }
.wordmark:hover .wordmark-mark { animation: parasiteSpin 0.7s var(--ease); }
@keyframes parasiteSpin { to { transform: rotate(180deg); } }
.system-state { display: flex; gap: 26px; color: var(--dim); font-size: 0.61rem; letter-spacing: 0.13em; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--toxic); box-shadow: 0 0 9px var(--toxic); margin-right: 7px; }
.head-right { justify-self: end; display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 0.73rem; }
.head-right img { width: 28px; height: 28px; border-radius: 2px; filter: saturate(0.25) contrast(1.2); border: 1px solid var(--line); }

/* Buttons */
.btn {
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 9, 8, 0.84);
  color: var(--white);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn::after { content: ""; position: absolute; inset: 0; transform: translateX(-105%); background: linear-gradient(90deg, transparent, rgba(255,255,255,0.19), transparent); transition: transform 0.5s var(--ease); }
.btn:hover::after { transform: translateX(105%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { cursor: wait; opacity: 0.55; transform: none; }
.btn span { margin-right: 14px; opacity: 0.55; }
.btn--primary { color: var(--void); background: var(--toxic); border-color: var(--toxic); box-shadow: 0 0 30px rgba(184,255,0,0.14); }
.btn--primary:hover { box-shadow: 0 0 36px rgba(184,255,0,0.32); }
.btn--ghost:hover { color: var(--cyan); border-color: var(--cyan); box-shadow: inset 0 0 24px var(--cyan-dim); }
.btn--small { min-height: 34px; padding: 8px 12px; font-size: 0.62rem; }
.btn--toxic { background: transparent; border-color: var(--toxic); color: var(--toxic); box-shadow: inset 0 0 22px var(--toxic-dim); }
.btn--toxic:hover { color: var(--void); background: var(--toxic); box-shadow: 0 0 32px rgba(184,255,0,0.3); }

/* Landing */
.view--landing { min-height: 100svh; padding-top: 64px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-grid {
  width: min(1420px, 100%);
  margin: 0 auto;
  padding: clamp(58px, 8vh, 110px) clamp(24px, 5vw, 78px) 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.78fr);
  gap: clamp(42px, 8vw, 120px);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .feed-kicker {
  color: var(--toxic);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.23em;
  margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.6vw, 8.2rem);
  font-weight: 800;
  line-height: 0.79;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}
.hero-title > span { display: block; }
.hero-title > span:first-child { color: var(--ink); }
.hero-title > span:last-child { font-size: 0.63em; letter-spacing: -0.035em; margin-top: 0.17em; color: var(--white); }
.glitch { position: relative; color: var(--toxic); text-shadow: 0 0 26px rgba(184,255,0,0.24); }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.glitch::before { color: var(--cyan); transform: translateX(-3px); }
.glitch::after { color: var(--virus); transform: translateX(3px); }
.glitch:hover::before { opacity: 0.75; animation: glitchTop 0.44s steps(2) infinite; }
.glitch:hover::after { opacity: 0.7; animation: glitchBottom 0.35s steps(2) infinite; }
@keyframes glitchTop { 0%,100%{clip-path:inset(8% 0 63%)} 50%{clip-path:inset(48% 0 23%) } }
@keyframes glitchBottom { 0%,100%{clip-path:inset(62% 0 9%)} 50%{clip-path:inset(22% 0 53%) } }
.hero-sub { max-width: 700px; margin-top: 34px; color: var(--ink); font-size: clamp(0.87rem, 1.15vw, 1rem); line-height: 1.8; }
.hero-sub::before { content: "// "; color: var(--virus); }
.hero-ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { min-height: 20px; margin-top: 15px; color: var(--dim); font-size: 0.69rem; }

.helix-console { min-height: 540px; border: 1px solid var(--line); background: linear-gradient(155deg, rgba(5,15,12,0.83), rgba(3,7,6,0.95)); position: relative; box-shadow: inset 0 0 80px rgba(0,239,255,0.035), 0 30px 90px rgba(0,0,0,0.35); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
.helix-console::before { content: ""; position: absolute; inset: 7px; border: 1px dashed rgba(0,239,255,0.1); pointer-events: none; }
.console-head { height: 42px; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 0.6rem; letter-spacing: 0.15em; }
.console-head span:last-child { color: var(--toxic); }
.helix-wrap { height: 420px; position: relative; overflow: hidden; }
.helix-wrap::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px dashed rgba(184,255,0,0.13); }
.helix { width: 310px; height: 100%; display: block; margin: 0 auto; overflow: visible; filter: drop-shadow(0 0 8px rgba(0,239,255,0.28)); }
.helix-path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 7 8; animation: helixFlow 4s linear infinite; }
.helix-a { stroke: url(#helixA); }
.helix-b { stroke: url(#helixB); animation-direction: reverse; }
.helix-rungs path { stroke: rgba(234,255,248,0.25); stroke-width: 1; animation: rungPulse 3s ease-in-out infinite alternate; }
@keyframes helixFlow { to { stroke-dashoffset: -60; } }
@keyframes rungPulse { to { stroke: rgba(184,255,0,0.65); } }
.target-ring { position: absolute; width: 58px; height: 58px; border: 1px solid var(--virus); border-radius: 50%; box-shadow: 0 0 18px var(--virus-dim); animation: targetPulse 2.6s ease-out infinite; }
.target-ring::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--virus); font-size: 0.68rem; }
.ring-a { top: 28%; left: 23%; }
.ring-b { bottom: 22%; right: 20%; animation-delay: -1.1s; border-color: var(--cyan); }
@keyframes targetPulse { 70%,100% { transform: scale(1.5); opacity: 0; } }
.helix-label { position: absolute; padding: 3px 6px; border-left: 2px solid var(--cyan); color: var(--cyan); background: rgba(0,239,255,0.08); font-size: 0.52rem; letter-spacing: 0.12em; }
.label-a { top: 17%; left: 7%; }.label-b { top: 48%; right: 6%; border-color: var(--virus); color: var(--virus); }.label-c { bottom: 13%; left: 9%; border-color: var(--toxic); color: var(--toxic); }
.console-log { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.56rem; letter-spacing: 0.08em; }
.console-log .blink { color: var(--toxic); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.reveal-up { opacity: 0; transform: translateY(24px); animation: rise 0.75s var(--ease) forwards; }
.d1 { animation-delay: 0.05s; }.d2 { animation-delay: 0.12s; }.d3 { animation-delay: 0.2s; }.d4 { animation-delay: 0.3s; }.d5 { animation-delay: 0.4s; }.d6 { animation-delay: 0.5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: rgba(0,239,255,0.025); mask-image: linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent); }
.marquee-track { display: inline-flex; white-space: nowrap; padding: 14px 0; color: var(--dim); font-size: 0.61rem; letter-spacing: 0.08em; animation: marquee 68s linear infinite; }
.marquee-track .pair { display: inline-flex; align-items: center; margin-right: 52px; }
.marquee-track strong { color: var(--cyan); font-weight: 500; }
.marquee-track .arrow { color: var(--virus); margin: 0 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Feed headers */
.view--feed { min-height: 100svh; padding: 132px 24px 90px; }
.feed-head { width: min(1180px, 100%); margin: 0 auto 68px; position: relative; padding: 0 4px; }
.feed-head::after { content: ""; display: block; width: 100%; height: 1px; margin-top: 38px; background: linear-gradient(90deg, var(--toxic), var(--cyan) 35%, transparent 78%); opacity: 0.45; }
.feed-index { position: absolute; top: 3px; right: 0; color: var(--faint); font-size: 0.58rem; letter-spacing: 0.15em; }
.feed-title { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 6.2rem); line-height: 0.86; letter-spacing: -0.055em; font-weight: 800; }
.feed-title em { color: var(--virus); font-style: normal; text-shadow: 0 0 30px var(--virus-dim); }
.feed-sub { max-width: 700px; margin-top: 22px; color: var(--ink); font-size: 0.8rem; }
.feed-head--library { margin-bottom: 48px; }
.feed { width: min(1220px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 38px; }

/* Case files */
.specimen {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(7,15,13,0.96), rgba(3,8,7,0.98));
  box-shadow: 0 26px 80px rgba(0,0,0,0.34), inset 0 0 50px rgba(0,239,255,0.018);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.4s;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.specimen::before { content: ""; position: absolute; left: 0; top: 0; width: 84px; height: 2px; background: var(--toxic); box-shadow: 0 0 12px var(--toxic); }
.specimen::after { content: ""; position: absolute; right: 0; bottom: 0; width: 54px; height: 2px; background: var(--virus); box-shadow: 0 0 12px var(--virus); }
.specimen:hover { border-color: rgba(0,239,255,0.34); }
.specimen.in-view { opacity: 1; transform: none; }
.case-head { min-height: 38px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(0,239,255,0.025); color: var(--dim); font-size: 0.57rem; letter-spacing: 0.14em; }
.case-head strong { color: var(--cyan); font-weight: 500; }
.case-head .case-nodes { color: var(--toxic); }
.specimen-grid { display: grid; grid-template-columns: minmax(280px, 0.88fr) 112px minmax(420px, 1.35fr); min-height: 310px; }
.track { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.track--child { padding: clamp(22px,3vw,34px); border-right: 1px solid var(--line); background: linear-gradient(145deg, rgba(0,239,255,0.035), transparent 50%); }
.track-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip { display: inline-flex; min-height: 22px; align-items: center; padding: 3px 8px; border: 1px solid var(--line); color: var(--dim); background: rgba(3,8,7,0.72); font-size: 0.54rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.chip--accent { color: var(--cyan); border-color: rgba(0,239,255,0.35); background: var(--cyan-dim); }
.chip--gold, .chip--sample { color: var(--toxic); border-color: rgba(184,255,0,0.4); background: var(--toxic-dim); }
.chip--interpolation { color: var(--virus); border-color: rgba(255,43,214,0.42); background: var(--virus-dim); }
.chip--reference { color: #b59cff; border-color: rgba(121,92,255,0.5); background: rgba(121,92,255,0.13); }
.track-title { font-family: var(--font-display); font-size: clamp(1.38rem, 2.3vw, 2.2rem); line-height: 1; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.track-artist { margin-top: 6px; color: var(--ink); font-size: 0.74rem; }
.track-artist a { color: var(--cyan); text-decoration: none; border-bottom: 1px dotted rgba(0,239,255,0.48); }
.track-story { color: var(--ink); font-size: 0.7rem; line-height: 1.7; border-left: 1px solid var(--virus); padding-left: 12px; }

.lineage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; overflow: hidden; border-right: 1px solid var(--line); }
.lineage::before, .lineage::after { content: ""; position: absolute; left: 50%; width: 1px; height: 42%; background: linear-gradient(var(--cyan), transparent); opacity: 0.32; }
.lineage::before { top: 0; }.lineage::after { bottom: 0; transform: rotate(180deg); }
.lineage-label { color: var(--dim); font-size: 0.52rem; line-height: 1.55; text-align: center; letter-spacing: 0.19em; writing-mode: vertical-rl; transform: rotate(180deg); }
.lineage-core { width: 38px; height: 38px; position: relative; border: 1px solid var(--faint); border-radius: 50%; display: grid; place-items: center; }
.lineage-core::before, .lineage-core::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--cyan); opacity: 0; }
.lineage-core::before { inset: 5px; }.lineage-core::after { inset: -7px; border-color: var(--virus); }
.lineage-core span { width: 6px; height: 6px; background: var(--dim); border-radius: 50%; }
.specimen.revealed .lineage-core span { background: var(--toxic); box-shadow: 0 0 12px var(--toxic); }
.specimen.revealed .lineage-core::before { animation: nodePulse 1.8s ease-out infinite; }
.specimen.revealed .lineage-core::after { animation: nodePulse 1.8s ease-out 0.6s infinite; }
@keyframes nodePulse { 0% { opacity: 0; transform: scale(0.45); } 30% { opacity: 0.8; } 100% { opacity: 0; transform: scale(1.35); } }
.lineage-gap { max-width: 94px; color: var(--toxic); font-size: 0.52rem; letter-spacing: 0.09em; text-align: center; }

.root-zone { min-width: 0; position: relative; padding: clamp(18px,2.4vw,28px); }
.root-list { height: 100%; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; opacity: 0.06; filter: blur(8px); transform: translateX(12px); transition: opacity 0.75s var(--ease) 0.18s, filter 0.75s var(--ease) 0.18s, transform 0.75s var(--ease) 0.18s; }
.root-list.root-list--single { grid-template-columns: 1fr; }
.specimen.revealed .root-list { opacity: 1; filter: none; transform: none; }
.root-node { min-width: 0; position: relative; display: flex; flex-direction: column; gap: 11px; padding: 15px; border: 1px solid var(--line); background: rgba(7,15,13,0.84); overflow: hidden; }
.root-node::before { content: attr(data-node); position: absolute; top: 6px; right: 8px; color: var(--faint); font-size: 0.48rem; letter-spacing: 0.08em; }
.root-node[data-relation="sample"] { border-top-color: rgba(184,255,0,0.52); }
.root-node[data-relation="interpolation"] { border-top-color: rgba(255,43,214,0.55); }
.root-node[data-relation="self-reference"] { border-top-color: rgba(121,92,255,0.7); }
.root-node .track-title { font-size: clamp(1.08rem,1.65vw,1.45rem); }
.root-node .track-story { margin-top: auto; }
.root-shroud { position: absolute; inset: clamp(18px,2.4vw,28px); z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; border: 1px dashed rgba(184,255,0,0.36); background: radial-gradient(circle at 50% 50%, rgba(184,255,0,0.09), rgba(3,8,7,0.96) 60%); transition: opacity 0.45s var(--ease), visibility 0.45s; }
.specimen.revealed .root-shroud { opacity: 0; visibility: hidden; pointer-events: none; }
.shroud-virus { width: 58px; height: 58px; position: relative; animation: parasiteSpin 8s linear infinite; }
.shroud-virus i { position: absolute; inset: 25px 0 auto; height: 1px; background: var(--toxic); box-shadow: 0 0 10px var(--toxic); }
.shroud-virus i:nth-child(1) { transform: rotate(0deg); }.shroud-virus i:nth-child(2) { transform: rotate(60deg); }.shroud-virus i:nth-child(3) { transform: rotate(120deg); }
.shroud-virus::before { content: ""; position: absolute; inset: 15px; border: 1px solid var(--virus); border-radius: 50%; box-shadow: 0 0 18px var(--virus-dim); }
.shroud-hint { max-width: 310px; color: var(--dim); text-align: center; font-size: 0.61rem; letter-spacing: 0.08em; }
.reveal-cta { margin-top: 4px; }

/* Media players */
.embed { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border: 1px solid var(--line); overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed--spotify { aspect-ratio: auto; height: 152px; background: transparent; }
.yt-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; display: grid; place-items: center; cursor: pointer; background-position: center; background-size: cover; filter: saturate(0.4) contrast(1.1); }
.yt-facade::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,239,255,0.08), rgba(2,5,4,0.65)); transition: background 0.3s; }
.yt-facade:hover::before { background: rgba(2,5,4,0.25); }
.yt-facade-play { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--toxic); background: rgba(2,5,4,0.82); color: var(--toxic); box-shadow: 0 0 24px var(--toxic-dim); clip-path: polygon(15% 0,100% 0,100% 85%,85% 100%,0 100%,0 15%); }
.yt-facade-play svg { width: 18px; height: 18px; margin-left: 3px; fill: currentColor; }
.preview-player { margin-top: auto; display: grid; grid-template-columns: 42px 36px minmax(0,1fr); align-items: center; gap: 9px; min-height: 64px; padding: 8px; border: 1px solid var(--line); background: rgba(2,7,6,0.75); }
.preview-art { width: 42px; height: 42px; object-fit: cover; background: var(--panel-hot); filter: saturate(0.62) contrast(1.05); }
.preview-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--cyan); background: var(--cyan-dim); color: var(--cyan); cursor: pointer; }
.preview-btn:disabled { opacity: 0.3; cursor: wait; }
.preview-btn:not(:disabled):hover { color: var(--void); background: var(--cyan); }
.preview-btn svg { width: 13px; height: 13px; fill: currentColor; }
.preview-info { min-width: 0; }
.preview-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 0.59rem; }
.preview-sub { color: var(--dim); font-size: 0.5rem; margin-top: 2px; }
.preview-bar { height: 2px; margin-top: 7px; background: var(--line); overflow: hidden; }
.preview-bar-fill { width: 0; height: 100%; background: linear-gradient(90deg,var(--cyan),var(--toxic)); box-shadow: 0 0 6px var(--cyan); }

/* Library controls */
.source-picker { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.source-pill { min-height: 36px; padding: 8px 13px; border: 1px solid var(--line); background: rgba(3,8,7,0.78); color: var(--dim); cursor: pointer; font-size: 0.61rem; letter-spacing: 0.07em; text-align: left; transition: color 0.25s,border-color 0.25s,background 0.25s,transform 0.25s; }
.source-pill::before { content: "> "; color: var(--cyan); }
.source-pill:hover { color: var(--white); border-color: var(--cyan); transform: translateY(-1px); }
.source-pill.active { color: var(--void); border-color: var(--toxic); background: var(--toxic); }
.source-pill.active::before { color: var(--void); }
.scanbar { position: relative; width: min(680px,100%); height: 42px; margin-top: 22px; overflow: hidden; border: 1px solid var(--line); background: rgba(3,8,7,0.88); }
.scanbar-grid { position: absolute; inset: 0; background: repeating-linear-gradient(90deg,transparent 0 27px,rgba(0,239,255,0.08) 28px); }
.scanbar-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg,rgba(184,255,0,0.06),rgba(0,239,255,0.13)); border-right: 1px solid var(--toxic); box-shadow: 8px 0 24px rgba(184,255,0,0.22); transition: width 0.35s var(--ease); }
.scanbar-label { position: relative; height: 100%; padding: 0 13px; display: flex; align-items: center; color: var(--ink); font-size: 0.57rem; letter-spacing: 0.09em; }

.playlist-forge { margin-top: 20px; padding: 18px; display: grid; grid-template-columns: 1fr auto; gap: 14px 26px; align-items: center; border: 1px solid rgba(184,255,0,0.35); background: linear-gradient(100deg,rgba(184,255,0,0.09),rgba(0,239,255,0.035),transparent); position: relative; }
.playlist-forge::before { content: ""; position: absolute; left: -1px; top: 25%; bottom: 25%; width: 2px; background: var(--toxic); box-shadow: 0 0 15px var(--toxic); }
.forge-copy { display: flex; flex-direction: column; gap: 4px; }
.forge-label { color: var(--toxic); font-size: 0.54rem; letter-spacing: 0.18em; }
.forge-copy strong { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.01em; }
.forge-copy p { color: var(--dim); font-size: 0.59rem; }
.forge-actions { display: flex; align-items: center; gap: 13px; }
.forge-count { color: var(--cyan); font-size: 0.58rem; letter-spacing: 0.1em; white-space: nowrap; }
.forge-status { grid-column: 1/-1; min-height: 0; color: var(--ink); font-size: 0.6rem; }
.forge-status:empty { display: none; }
.forge-status a { color: var(--toxic); }

.feed-rest { width: min(780px,100%); margin: 54px auto 0; }
.rest-head { margin-bottom: 12px; color: var(--dim); font-size: 0.58rem; letter-spacing: 0.16em; }
.rest-row { display: grid; grid-template-columns: 34px minmax(0,0.9fr) minmax(0,1fr); align-items: center; gap: 10px; min-height: 48px; padding: 7px 10px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 0.63rem; }
.rest-row img { width: 34px; height: 34px; object-fit: cover; filter: grayscale(0.45); }
.rest-title { color: var(--ink); }
.empty-note { width: min(620px,100%); margin: 50px auto; padding: 22px; border: 1px solid var(--line); color: var(--ink); text-align: center; font-size: 0.7rem; background: var(--panel); }
.empty-note code { color: var(--toxic); }

.site-foot { width: min(1220px,calc(100% - 48px)); margin: 0 auto; padding: 36px 0 52px; display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.55rem; letter-spacing: 0.08em; }
.site-foot span { color: var(--cyan); white-space: nowrap; }
.site-foot p { max-width: 680px; text-align: right; }

@media (max-width: 1050px) {
  .system-state { display: none; }
  .site-head { grid-template-columns: 1fr auto; }
  .hero-grid { grid-template-columns: 1fr minmax(300px,0.65fr); gap: 35px; }
  .helix-console { min-height: 490px; }
  .helix-wrap { height: 370px; }
  .specimen-grid { grid-template-columns: minmax(250px,0.8fr) 70px minmax(330px,1.2fr); }
  .root-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-head { height: 56px; padding: 0 15px; }
  .wordmark small { display: none; }
  .head-right > span { display: none; }
  .view--landing { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1fr; padding: 80px 20px 42px; }
  .hero-title { font-size: clamp(3.3rem,18vw,6rem); }
  .helix-console { min-height: 430px; width: min(430px,100%); justify-self: center; }
  .helix-wrap { height: 320px; }
  .helix { width: 250px; }
  .console-log { display: none; }
  .view--feed { padding: 102px 14px 70px; }
  .feed-index { position: static; margin-bottom: 16px; }
  .feed-title { font-size: clamp(2.55rem,14vw,4.5rem); }
  .specimen-grid { grid-template-columns: 1fr; }
  .track--child { border-right: 0; border-bottom: 1px solid var(--line); }
  .lineage { min-height: 76px; flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); }
  .lineage::before, .lineage::after { top: 50%; bottom: auto; width: 38%; height: 1px; background: linear-gradient(90deg,transparent,var(--cyan)); }
  .lineage::before { left: 0; }.lineage::after { left: auto; right: 0; transform: rotate(180deg); }
  .lineage-label { writing-mode: initial; transform: none; }
  .lineage-gap { display: none; }
  .root-list { grid-template-columns: 1fr; }
  .playlist-forge { grid-template-columns: 1fr; }
  .forge-actions { justify-content: space-between; flex-wrap: wrap; }
  .site-foot { flex-direction: column; }
  .site-foot p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
