/* =========================================================
   MANDY KANE / mandykane.com
   Brutalist site stylesheet — single source.
   Visual lineage extends the Virtual MK CRT terminal:
   black ground, phosphor green text, amber accents,
   monospace body + a hard sans display face.
   No gradients. No rounded corners. No drop shadows
   beyond CRT glow. Hard rules. Exposed grid.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=VT323&family=Space+Mono:wght@400;700&family=Archivo+Black&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* palette — same family as the chatbot */
  --bg:           #060806;
  --bg-2:         #0a0d0a;
  --ink:          #d8e8d4;        /* primary text — phosphor at rest */
  --ink-hi:       #e8ffe4;        /* highlight phosphor */
  --ink-dim:      #6a8868;        /* dim phosphor (rules, captions) */
  --ink-faint:    #2c3a2b;        /* hairline rules */
  --amber:        #ffcc55;        /* accent — singular */
  --amber-dim:    rgba(255, 204, 85, 0.45);
  --rule:         1px solid var(--ink-dim);
  --rule-hair:    1px solid var(--ink-faint);
  --rule-thick:   2px solid var(--ink);

  /* type */
  --mono:    'Space Mono', 'VT323', ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: 'Archivo Black', 'Space Mono', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --crt:     'VT323', 'Space Mono', monospace;

  /* layout */
  --gutter: clamp(16px, 2.4vw, 28px);
  --max:    1280px;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0.01em;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* very subtle scanline veil — keeps continuity with chatbot
   without dominating. Disabled at small sizes for legibility. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.18) 3px,
    rgba(0, 0, 0, 0.18) 4px
  );
  pointer-events: none;
  z-index: 200;
  mix-blend-mode: multiply;
}

@media (max-width: 640px) {
  body::before { display: none; }
}

/* ---------- TYPE ---------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 900;
  color: var(--ink-hi);
  letter-spacing: -0.01em;
  line-height: 0.92;
  text-transform: uppercase;
}

p { max-width: 64ch; }

a {
  color: var(--ink-hi);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--ink-dim);
}

a:hover, a:focus {
  color: var(--amber);
  text-decoration-color: var(--amber);
}

a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

::selection { background: var(--amber); color: var(--bg); }

hr {
  border: 0;
  border-top: var(--rule);
  margin: 0;
}

small, .micro {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.amber { color: var(--amber); }
.dim   { color: var(--ink-dim); }
.crt   { font-family: var(--crt); }

/* ---------- LAYOUT PRIMITIVES ---------- */

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.bar {
  border-top: var(--rule);
  border-bottom: var(--rule);
}

.hair {
  border-top: var(--rule-hair);
}

/* ---------- HEADER (shared across pages) ---------- */

.site-head {
  border-bottom: var(--rule);
  padding: 14px 0 12px;
  position: relative;
}

.site-head .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-hi);
  text-decoration: none;
  line-height: 1;
}

.brand .slash {
  color: var(--amber);
  margin: 0 6px;
}

.brand .cred {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  text-transform: none;
  margin: 5px 0 0 0;
  padding: 0;
  border: 0;
}

/* xAI brand convention — small lowercase x glued to AI.
   !important is needed because .essay .side and .site-meta span
   both upper-case their contents at higher specificity. */
.brand-x {
  text-transform: lowercase !important;
  display: inline-block;
  font-size: 0.78em;
  letter-spacing: -0.02em;
  margin-right: 0.04em;
  vertical-align: baseline;
  position: relative;
  top: -0.02em;
}

.site-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.site-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 6px 0;
  border-bottom: var(--rule-hair);
}

.site-meta .blip {
  color: var(--amber);
  animation: blip 2.6s ease-in-out infinite;
}

@keyframes blip {
  0%, 88%, 100% { opacity: 1; }
  92%           { opacity: 0.15; }
}

/* ---------- LANDING ---------- */

.lede {
  padding: clamp(28px, 6vw, 72px) 0 clamp(20px, 4vw, 48px);
  border-bottom: var(--rule);
}

.lede h1 {
  font-size: clamp(48px, 12vw, 200px);
  line-height: 0.82;
  letter-spacing: -0.03em;
  word-break: break-word;
  overflow-wrap: break-word;
}

.lede h1 .slash {
  color: var(--amber);
  display: inline-block;
  transform: translateY(-0.04em);
}

/* Reactive hero — each letter is its own animatable element. */
.hero-mark .letter {
  display: inline-block;
  transform-origin: 50% 75%;        /* root toward the letter's lower stem */
  will-change: transform, color;
  transition:
    transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1),
    color    0.18s ease-out;
}

.hero-mark .letter.slash {
  /* keep the amber slash, but allow JS to override transform with its own */
  transform-origin: 50% 75%;
}

.hero-mark .letter.glitch {
  color: var(--amber);
  text-shadow: 0 0 14px rgba(255, 204, 85, 0.45);
}

@media (hover: none) {
  .hero-mark .letter { transition: none; }
}

.lede .sub {
  margin-top: clamp(18px, 3vw, 32px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  align-items: end;
}

.lede .sub .who {
  grid-column: 1 / span 7;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.5;
  max-width: 60ch;
}

.lede .sub .stat {
  grid-column: 9 / span 4;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: right;
}

.lede .sub .stat span {
  display: block;
  color: var(--ink-hi);
  font-size: 13px;
  margin-bottom: 2px;
}

@media (max-width: 720px) {
  .lede .sub { grid-template-columns: 1fr; }
  .lede .sub .who,
  .lede .sub .stat { grid-column: 1 / -1; text-align: left; }
}

/* three-section gateway */
.gateway {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: var(--rule);
}

.gateway .door {
  display: block;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 2.4vw, 28px);
  text-decoration: none;
  color: var(--ink);
  border-right: var(--rule);
  position: relative;
  min-height: clamp(220px, 30vw, 340px);
  transition: background 0.12s ease, color 0.12s ease;
}

.gateway .door:last-child { border-right: none; }

.gateway .door:hover,
.gateway .door:focus {
  background: var(--bg-2);
  color: var(--ink-hi);
}

.gateway .door .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--amber);
  display: block;
  margin-bottom: 10px;
}

.gateway .door h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 0.9;
  margin-bottom: 14px;
}

.gateway .door .desc {
  font-size: 13px;
  color: var(--ink-dim);
  max-width: 36ch;
}

.gateway .door .arrow {
  position: absolute;
  bottom: clamp(16px, 2vw, 24px);
  right: clamp(16px, 2vw, 28px);
  font-family: var(--mono);
  font-size: 22px;
  color: var(--ink-dim);
}

.gateway .door:hover .arrow { color: var(--amber); }

@media (max-width: 880px) {
  .gateway { grid-template-columns: 1fr; }
  .gateway .door {
    border-right: none;
    border-bottom: var(--rule);
  }
  .gateway .door:last-child { border-bottom: none; }
}

/* landing dispatches block */
.dispatches {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: clamp(28px, 4vw, 56px) 0;
  border-bottom: var(--rule);
}

.dispatches .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border-top: var(--rule-thick);
  padding-top: 8px;
}

.dispatches ul {
  list-style: none;
  display: grid;
  gap: 0;
}

.dispatches li {
  padding: 12px 0;
  border-top: var(--rule-hair);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: baseline;
}

.dispatches li:first-child { border-top: var(--rule); }

.dispatches li .when {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.dispatches li .what {
  font-size: 14px;
  color: var(--ink-hi);
}

@media (max-width: 720px) {
  .dispatches { grid-template-columns: 1fr; gap: 14px; }
  .dispatches li { grid-template-columns: 90px 1fr; gap: 12px; }
}

/* ---------- PAGE TITLE BLOCK (interior pages) ---------- */

.page-title {
  padding: clamp(36px, 7vw, 88px) 0 clamp(20px, 3vw, 40px);
  border-bottom: var(--rule);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.page-title .crumb {
  grid-column: 1 / span 8;
  grid-row: 1;
  align-self: start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0;
}

.page-title .blurb {
  grid-column: 1 / span 8;
  grid-row: 2;
  align-self: start;
  font-size: 14px;
  color: var(--ink-dim);
  max-width: 60ch;
  margin: 12px 0 0;
}

.page-title h1 {
  grid-column: 1 / -1;
  grid-row: 3;
  font-size: clamp(44px, 9vw, 140px);
  line-height: 0.82;
  letter-spacing: -0.03em;
  margin-top: clamp(28px, 4vw, 56px);
  /* Archivo Black has a heavy left side-bearing — pull the first
     glyph left so the h1 lines up flush with the crumb above. */
  margin-left: -0.09em;
  text-indent: -0.04em;
  hyphens: none;
  /* never break a word mid-letter — wrap at spaces only */
  overflow-wrap: normal;
  word-break: normal;
}

/* Tablets and mid-size viewports — including iPad Pro landscape (up
   to 1366px wide). Width breakpoint OR coarse touch pointer. The
   coarse-pointer check ensures iPads in landscape get tablet styles
   even though they exceed the width limit. */
@media (max-width: 1024px),
       (pointer: coarse) and (max-width: 1400px) {
  .shell {
    padding-left: clamp(22px, 4vw, 40px);
    padding-right: clamp(22px, 4vw, 40px);
  }
  .page-title h1 {
    font-size: clamp(42px, 8.4vw, 110px);
    /* small negative pull so the visible T edge aligns with the
       crumb's "/" above instead of sitting inset to the right */
    margin-left: -0.04em;
    text-indent: -0.02em;
    padding-left: 0;
  }
}

@media (max-width: 880px) {
  .page-title .crumb,
  .page-title .blurb,
  .page-title h1 {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* ---------- MUSIC PAGE ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(28px, 4vw, 56px) 0;
  border-bottom: var(--rule);
  align-items: start;
}

.feature .cover-wrap {
  position: relative;
}

.feature .cover-wrap .latest-tag {
  position: absolute;
  top: -10px;
  left: -10px;
  background: var(--amber);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  padding: 5px 9px;
  font-weight: 700;
  z-index: 2;
}

.feature .meta-line {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 14px;
}

.feature h2 {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.9;
  margin-bottom: 18px;
}

.feature .concept {
  font-size: 15px;
  margin-bottom: 18px;
  max-width: 60ch;
}

.feature .tracks {
  list-style: none;
  border-top: var(--rule-hair);
  margin-top: 18px;
}

.feature .tracks li {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 14px;
  padding: 9px 0;
  border-bottom: var(--rule-hair);
  font-family: var(--mono);
  font-size: 13px;
}

.feature .tracks li .n {
  color: var(--amber);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.feature .tracks li .dur {
  color: var(--ink-dim);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.feature .links {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
}

/* CSS-drawn cover blocks */
.cover {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--bg-2);
  border: var(--rule-thick);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  font-family: var(--mono);
  color: var(--ink-hi);
}

.cover::before {
  /* texture: hatched lines */
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 6px,
    rgba(216, 232, 212, 0.04) 6px,
    rgba(216, 232, 212, 0.04) 7px
  );
  pointer-events: none;
}

.cover .cv-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  position: relative;
  z-index: 1;
}

/* trailing letter-spacing pushes the last char past the box edge — pull it back */
.cover .cv-top span:last-child,
.cover .cv-bottom span:last-child {
  margin-right: -0.22em;
}

.cover .cv-title {
  font-family: var(--display);
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
  padding-right: 4px;
  hyphens: none;
  overflow-wrap: normal;
}

.cover .cv-bottom {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* variant covers — different schemes per release */
.cover.cv-amber {
  background: var(--amber);
  color: var(--bg);
  border-color: var(--amber);
}
.cover.cv-amber .cv-top,
.cover.cv-amber .cv-bottom { color: var(--bg); }
.cover.cv-amber::before {
  background: repeating-linear-gradient(
    45deg, transparent 0, transparent 6px,
    rgba(0,0,0,0.08) 6px, rgba(0,0,0,0.08) 7px);
}

.cover.cv-outline {
  background: var(--bg);
  color: var(--ink-hi);
  border-color: var(--ink);
}

.cover.cv-block {
  background: var(--ink-hi);
  color: var(--bg);
  border-color: var(--ink-hi);
}
.cover.cv-block .cv-top,
.cover.cv-block .cv-bottom { color: var(--bg); }
.cover.cv-block::before {
  background: repeating-linear-gradient(
    0deg, transparent 0, transparent 5px,
    rgba(0,0,0,0.08) 5px, rgba(0,0,0,0.08) 6px);
}

.cover.cv-stripe {
  background: var(--bg);
  border-color: var(--ink-dim);
}
.cover.cv-stripe::before {
  background: repeating-linear-gradient(
    90deg, transparent 0, transparent 14px,
    var(--amber) 14px, var(--amber) 15px);
  opacity: 0.45;
}

/* discography grid */
.disco {
  padding: clamp(28px, 4vw, 56px) 0;
  border-bottom: var(--rule);
}

.disco h3 {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}

.disco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(28px, 3.4vw, 44px);
}

.release {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.release .cover { width: 100%; }

.release .info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: var(--rule-hair);
}

.release .info .yr {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.release .info .ttl {
  font-family: var(--display);
  font-size: clamp(18px, 1.5vw, 22px);
  text-transform: uppercase;
  color: var(--ink-hi);
  letter-spacing: 0.005em;
  line-height: 1.05;
  margin-top: 2px;
}

.release .info .lab {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-dim);
  margin-top: 6px;
}

/* LATEST badge — sits on the Runestones cover */
.release.is-latest .latest-tag {
  position: absolute;
  top: -10px;
  left: -10px;
  background: var(--amber);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  padding: 5px 9px;
  font-weight: 700;
  z-index: 3;
  pointer-events: none;
}

/* 25 Seconds cover variant — Numan-coded vertical bands */
.cover.cv-numan {
  background: var(--bg);
  color: var(--ink-hi);
  border-color: var(--ink);
}
.cover.cv-numan::before {
  background:
    repeating-linear-gradient(90deg,
      transparent 0, transparent 22px,
      rgba(216, 232, 212, 0.06) 22px, rgba(216, 232, 212, 0.06) 23px),
    repeating-linear-gradient(0deg,
      transparent 0, transparent 36px,
      rgba(255, 204, 85, 0.08) 36px, rgba(255, 204, 85, 0.08) 37px);
  opacity: 1;
}
.cover.cv-numan .cv-title { color: var(--amber); }

.release .info a {
  text-decoration: none;
  color: inherit;
}

.release .info a:hover .ttl { color: var(--amber); }

/* clickable cover button — sits around .cover, no chrome */
.release .cover-btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.release .cover-btn .cover {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.release .cover-btn:hover .cover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 -2px var(--ink-faint);
}

.release .cover-btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

/* and a click affordance hint on hover — small "VIEW" tag */
.release .cover-btn::after {
  content: 'VIEW \25B6';
  position: absolute;
  right: 0;
  bottom: -22px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--amber);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}
.release .cover-btn:hover::after,
.release .cover-btn:focus-visible::after { opacity: 1; }

/* info caption is also clickable (button reset) */
.release .info-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.release .info-btn:hover .ttl { color: var(--amber); }
.release .info-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* === RELEASE DETAIL MODAL === */
.rd-modal {
  padding: 0;
  border: var(--rule-thick);
  background: var(--bg);
  color: var(--ink);
  width: min(720px, 92vw);
  max-width: 720px;
  max-height: 88vh;
  overflow: hidden;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.rd-modal::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(2px);
}

.rd-modal .rd-close {
  position: absolute;
  top: 6px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  color: var(--ink-dim);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  font-family: var(--mono);
  z-index: 2;
}
.rd-modal .rd-close:hover { color: var(--amber); }
.rd-modal .rd-close:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.rd-modal .rd-body {
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(22px, 4vw, 38px);
}

.rd-modal .rd-body::-webkit-scrollbar { width: 8px; }
.rd-modal .rd-body::-webkit-scrollbar-thumb { background: var(--ink-faint); }
.rd-modal .rd-body::-webkit-scrollbar-track { background: var(--bg-2); }

.rd .rd-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 14px;
  padding-right: 32px;
}

.rd .rd-title {
  font-family: var(--display);
  font-size: clamp(32px, 5.4vw, 60px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--ink-hi);
}

.rd .rd-concept {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 14px;
  max-width: 60ch;
  color: var(--ink);
}

.rd .rd-singles {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 12px;
  margin-bottom: 4px;
}

.rd .rd-dedication {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 12px;
  font-style: italic;
}

.rd .rd-tracks {
  list-style: none;
  border-top: var(--rule-hair);
  margin-top: 18px;
  padding: 0;
}

.rd .rd-tracks li {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 14px;
  padding: 9px 0;
  border-bottom: var(--rule-hair);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}

.rd .rd-tracks li .n {
  color: var(--amber);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.rd .rd-tracks li .dur {
  color: var(--ink-dim);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.rd .rd-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 14px;
}

.rd .rd-links {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* singles list */
.singles {
  padding: clamp(28px, 4vw, 56px) 0;
  border-bottom: var(--rule);
}

.singles table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
}

.singles caption {
  text-align: left;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 32px);
  text-transform: uppercase;
  color: var(--ink-hi);
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}

.singles th,
.singles td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: var(--rule-hair);
  vertical-align: top;
}

.singles th {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border-bottom: var(--rule);
  font-weight: 400;
}

.singles td .peak {
  color: var(--amber);
  font-weight: 700;
}

.singles tr:hover td { background: var(--bg-2); }

@media (max-width: 600px) {
  .singles th:nth-child(4), .singles td:nth-child(4) { display: none; }
}

/* ---------- TECH PAGE ---------- */

.essay {
  padding: clamp(28px, 4vw, 56px) 0;
  border-bottom: var(--rule);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.essay .side {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border-top: var(--rule-thick);
  padding-top: 10px;
  position: sticky;
  top: 20px;
}

.essay .side .yr {
  display: block;
  color: var(--amber);
  font-size: 13px;
  margin-bottom: 4px;
}

.essay h2 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 0.9;
  margin-bottom: 22px;
}

.essay p {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 18px;
  max-width: 64ch;
}

.essay p:last-child { margin-bottom: 0; }

.essay .pull {
  font-family: var(--display);
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink-hi);
  border-left: 3px solid var(--amber);
  padding: 8px 0 8px 20px;
  margin: 28px 0;
  max-width: 36ch;
}

@media (max-width: 760px) {
  .essay { grid-template-columns: 1fr; }
  .essay .side { position: static; }
}

/* ---------- VIRTUAL MK PAGE ---------- */

.vmk-art {
  padding: clamp(28px, 4vw, 56px) 0;
  border-bottom: var(--rule);
}

.vmk-art .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

@media (max-width: 760px) {
  .vmk-art .grid { grid-template-columns: 1fr; }
}

.vmk-art h2 {
  font-size: clamp(36px, 6vw, 80px);
  line-height: 0.85;
  margin-bottom: 22px;
}

.vmk-art p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.vmk-art .open {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 22px;
  border: 2px solid var(--amber);
  background: var(--bg);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}

.vmk-art .open:hover {
  background: var(--amber);
  color: var(--bg);
}

/* CRT preview window — visual quotation of the chatbot */
.crt-preview {
  background: #020402;
  border: 2px solid var(--ink-dim);
  padding: 18px 16px;
  font-family: var(--crt);
  color: #b8ffb0;
  font-size: 22px;
  line-height: 1.4;
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.crt-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent 0, transparent 3px,
    rgba(0,0,0,0.13) 3px, rgba(0,0,0,0.13) 4px);
  pointer-events: none;
}

.crt-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}

.crt-preview .head {
  font-size: 16px;
  letter-spacing: 0.12em;
  color: #e8ffe4;
  border-bottom: 1px solid #3a6a38;
  padding-bottom: 8px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.crt-preview .head span { color: #ffcc55; }

.crt-preview .line { margin-bottom: 10px; position: relative; z-index: 1; }
.crt-preview .pfx-mk { color: #ffcc55; }
.crt-preview .pfx-u  { color: #3a6a38; }
.crt-preview .body { color: #e8ffe4; }
.crt-preview .you  { color: #7dff7a; }

.crt-preview .blink {
  display: inline-block;
  width: 9px;
  height: 16px;
  background: #ffcc55;
  vertical-align: -2px;
  margin-left: 4px;
  animation: blip 1s step-end infinite;
}

/* embed iframe */
.vmk-embed {
  margin-top: 0;
  border-top: var(--rule);
  padding: clamp(28px, 4vw, 56px) 0;
}

.vmk-embed h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  margin-bottom: 18px;
}

.vmk-embed .frame {
  border: 2px solid var(--ink-dim);
  background: #020402;
  height: clamp(520px, 80vh, 760px);
  width: 100%;
}

.vmk-embed .frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* placeholder shown when chatbot URL isn't wired in yet */
.vmk-embed .frame-placeholder {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.vmk-embed .frame-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg,
      transparent 0, transparent 3px,
      rgba(216, 232, 212, 0.04) 3px, rgba(216, 232, 212, 0.04) 4px);
  pointer-events: none;
}
.vmk-embed .ph-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: var(--mono);
}
.vmk-embed .ph-status {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
}
.vmk-embed .ph-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  margin-right: 8px;
  animation: blip 2.6s ease-in-out infinite;
  vertical-align: 1px;
}
.vmk-embed .ph-msg {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 34px);
  text-transform: uppercase;
  color: var(--ink-hi);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.vmk-embed .ph-sub {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.vmk-embed .note {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- VIDEOS ---------- */

.videos {
  padding: clamp(28px, 4vw, 56px) 0;
  border-bottom: var(--rule);
}

.videos .section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}

.videos .section-head h3 {
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 0.01em;
  margin: 0;
}

.yt-channel {
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease;
}
.yt-channel:hover { color: var(--amber); border-color: var(--amber-dim); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(24px, 3vw, 36px);
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  position: relative;
}

/* outer 16:9 stage that holds either the poster button or the embedded iframe */
.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border: var(--rule-thick);
  overflow: hidden;
  background: var(--bg-2);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.video-card:hover .video-stage {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 -2px var(--ink-faint);
}

/* the click-to-play poster button */
.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-2);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-thumb .vt-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: contrast(1.05) saturate(0.6) brightness(0.78);
  transition: filter 220ms ease;
}

.video-thumb:hover .vt-poster,
.video-thumb:focus-visible .vt-poster {
  filter: contrast(1.1) saturate(0.85) brightness(1);
}

.video-thumb:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: -2px;
}

/* base scanline texture sits over the poster, under the play button */
.video-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0, transparent 2px,
    rgba(216, 232, 212, 0.05) 2px, rgba(216, 232, 212, 0.05) 3px
  );
  pointer-events: none;
  z-index: 1;
}

/* swapped-in YouTube iframe */
.video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg);
  z-index: 5;
}

.video-thumb .vt-play {
  font-size: 44px;
  color: var(--amber);
  text-shadow: 0 0 16px rgba(255, 204, 85, 0.55);
  position: relative;
  z-index: 3;
  transform: translateX(2px);
  transition: transform 220ms ease, text-shadow 220ms ease;
}

.video-thumb .vt-year {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  z-index: 3;
}

.video-thumb .vt-tag {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--amber);
  z-index: 3;
  max-width: 60%;
  text-align: right;
}

.video-card:hover .vt-play {
  text-shadow: 0 0 22px rgba(255, 204, 85, 0.85);
  transform: translateX(2px) scale(1.08);
}

/* title turns amber when stage is being interacted with */
.video-card:hover .v-ttl { color: var(--amber); }

.video-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: var(--rule-hair);
  padding-top: 10px;
}

.video-meta .v-ttl {
  font-family: var(--display);
  font-size: 17px;
  text-transform: uppercase;
  color: var(--ink-hi);
  letter-spacing: 0.005em;
  line-height: 1.05;
  transition: color 160ms ease;
}

.video-meta .v-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 3px;
}

/* slight vignette over real video posters so they sit in the brutalist palette */
.video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
  z-index: 2;
}

/* ---------- COLLABORATORS / CREDITS BLOCKS ---------- */

.collab {
  padding: clamp(28px, 4vw, 56px) 0;
  border-bottom: var(--rule);
}

.collab h3 {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 22px;
}

.collab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
  border-top: var(--rule-hair);
}

.collab-grid .c {
  padding: 14px 14px 14px 0;
  border-bottom: var(--rule-hair);
  border-right: var(--rule-hair);
}

.collab-grid .c:nth-child(3n) { border-right: none; }

.collab-grid .c .nm {
  font-family: var(--display);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--ink-hi);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.collab-grid .c .rl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 6px;
}

.collab-grid .c .nt {
  font-size: 12px;
  color: var(--ink);
}

@media (max-width: 880px) {
  .collab-grid { grid-template-columns: repeat(2, 1fr); }
  .collab-grid .c:nth-child(3n) { border-right: var(--rule-hair); }
  .collab-grid .c:nth-child(2n) { border-right: none; }
}

@media (max-width: 540px) {
  .collab-grid { grid-template-columns: 1fr; }
  .collab-grid .c { border-right: none; }
}

/* ---------- BUTTONS / LINKS ---------- */

.btn {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--ink-dim);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.1s, border-color 0.1s;
}

.btn:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.btn-amber {
  border-color: var(--amber);
  color: var(--amber);
}
.btn-amber:hover { background: var(--amber); color: var(--bg); }

/* ---------- FOOTER ---------- */

.site-foot {
  border-top: var(--rule);
  padding: clamp(24px, 3vw, 40px) 0 60px;
  margin-top: 0;
}

.site-foot .row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.site-foot h4 {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  margin-bottom: 10px;
  font-family: var(--mono);
  text-transform: uppercase;
  font-weight: 400;
}

.site-foot ul {
  list-style: none;
}

.site-foot li {
  margin-bottom: 6px;
  font-size: 13px;
}

.site-foot a {
  text-decoration: none;
  color: var(--ink);
}

.site-foot a:hover { color: var(--amber); }

.site-foot .colophon {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 28px;
  padding-top: 16px;
  border-top: var(--rule-hair);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 720px) {
  .site-foot .row { grid-template-columns: 1fr; }
}

/* ---------- UTILITY ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--amber);
  color: var(--bg);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 9999;
}

.skip-link:focus {
  left: 8px;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.section-head .micro { color: var(--ink-dim); }

/* ── Sigil field ───────────────────────────────────────
   Sparse SVG grid sitting behind all content. Glyphs face
   the cursor and brighten very slightly as it nears them.
   Tuned to read as ambient texture, not a UI element.
   ==================================================== */
#sigil-field {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  color: #a8c8a4;                 /* between rule-dim and highlight */
  filter: drop-shadow(0 0 1.5px rgba(184, 255, 176, 0.25));
}
#sigil-field g {
  transition:
    transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity   0.40s ease-out;     /* slower = calmer */
}

/* ── Oscilloscope ──────────────────────────────────────
   Full-viewport canvas. Phosphor waveform sits across the
   lower portion; cursor plucks it. Sits behind interactive
   content (z-index 1, pointer-events none).
   ==================================================== */
#scope {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  display: block;
}

/* keep #scope (oscilloscope) off on small / no-hover screens, but
   #sigil-field stays — it now has touch + ambient drift built in. */
@media (max-width: 700px), (hover: none) {
  #scope { display: none; }
}

/* ── Phosphor field ────────────────────────────────────
   Full-viewport WebGL canvas behind everything. The cursor
   warms the phosphor; warmth bleeds + decays. Pure ambient
   layer — no pointer events, no influence on layout.
   ==================================================== */
#phosphor {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  display: block;
  /* sit above body bg, under all content */
}

/* Make sure content stacks above the canvas without changing layout */
.site-head, main, .site-foot, .shell { position: relative; z-index: 1; }

@media (max-width: 700px), (hover: none) {
  #phosphor { display: none; }
}

/* ── Site-wide glitch character ────────────────────────
   Brief amber flash applied by glitch.js when one
   character on the page is swapped to a rune.
   ==================================================== */
.glitch-char {
  color: var(--amber);
  text-shadow: 0 0 8px rgba(255, 204, 85, 0.55);
  display: inline-block;
}

/* ── Floating terminal pill + slide-in drawer ──────────
   Persistent on every page. Pill bottom-right; click opens
   a right-side drawer with the live chatbot iframe. The
   iframe is mounted lazily on first open.
   ==================================================== */
#term-pill {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 100;
  background: var(--bg);
  border: 2px solid var(--amber);
  color: var(--amber);
  padding: 11px 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.12s, color 0.12s, transform 0.12s;
  box-shadow: 0 2px 0 rgba(255, 204, 85, 0.22);
}

#term-pill:hover {
  background: var(--amber);
  color: var(--bg);
  transform: translateY(-1px);
}

#term-pill:hover .term-dot { background: var(--bg); animation: none; }
#term-pill:hover .term-arrow { color: var(--bg); }

.term-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 50%;
  animation: term-blink 1.4s ease-in-out infinite;
  flex: 0 0 auto;
}

.term-arrow {
  color: var(--amber);
  font-size: 11px;
  transition: color 0.12s;
}

@keyframes term-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

/* backdrop dim layer */
#term-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease-out;
}
#term-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* drawer */
#term-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 92vw);
  background: var(--bg);
  border-left: 2px solid var(--ink-dim);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.45);
}
#term-drawer.show {
  transform: translateX(0);
}

.term-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ink-dim);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--amber);
  text-transform: uppercase;
}

.term-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.term-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.term-pop, .term-close {
  background: transparent;
  border: 1px solid var(--ink-dim);
  color: var(--ink-hi);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.12s, border-color 0.12s;
}
.term-pop:hover, .term-close:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.term-body {
  flex: 1 1 auto;
  background: #020402;
  position: relative;
}

#term-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #020402;
}

/* lock body scroll while drawer is open */
body.term-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  #term-pill {
    bottom: 12px;
    right: 12px;
    padding: 10px 13px;
    font-size: 11px;
  }
  .term-pill-label { letter-spacing: 0.18em; }
  #term-drawer {
    width: 100vw;
    border-left: 0;
  }
}

/* ── Whispers ──────────────────────────────────────────
   Local-LLM transmitter. Sits between Dispatches and the
   voice pull on the landing page. CRT vocabulary, but the
   panel is wider and quieter than the chatbot quotation
   on virtual-mk.html.
   ==================================================== */
.whispers {
  padding: clamp(28px, 4vw, 56px) 0;
  border-bottom: var(--rule-hair);
}

.whispers-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.whispers-head .micro { color: var(--ink-dim); }

.whispers-term {
  background: #020402;
  border: 2px solid var(--ink-dim);
  padding: 18px 18px 16px;
  font-family: var(--crt);
  color: #b8ffb0;
  font-size: 20px;
  line-height: 1.45;
  position: relative;
  min-height: 220px;
  max-height: 360px;
  overflow-y: auto;
}

.whispers-term::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent 0, transparent 3px,
    rgba(0,0,0,0.13) 3px, rgba(0,0,0,0.13) 4px);
  pointer-events: none;
}

.whispers-term::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.whispers-term .wh-line,
.whispers-term .wh-sys {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}

.whispers-term .wh-sys {
  color: #6a8868;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.whispers-term .wh-pfx {
  color: var(--amber);
  margin-right: 4px;
}

.whispers-term .wh-body {
  color: #e8ffe4;
}

/* control row */
.whispers-ctl {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  flex-wrap: wrap;
  position: relative;
}

.btn-tune {
  background: transparent;
  border: 2px solid var(--amber);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.btn-tune:hover:not(:disabled) {
  background: var(--amber);
  color: var(--bg);
}

.btn-tune:disabled {
  opacity: 0.6;
  cursor: progress;
}

.whispers-bar {
  display: none;
  flex: 1 1 100%;
  height: 4px;
  background: var(--bg-2);
  border: 1px solid var(--ink-dim);
  position: relative;
  overflow: hidden;
  --p: 0%;
}

.whispers-bar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p);
  background: var(--amber);
  transition: width 0.2s linear;
}

#whispers-status {
  color: var(--ink-dim);
}

@media (max-width: 700px) {
  .whispers-term {
    font-size: 18px;
    min-height: 180px;
  }
}
