/* PuppyJun site mockups.
   No third-party runtime fonts, icons, or scripts are loaded. Same-site media
   may use its production URL when the asset is already self-hosted on Neocities.
   Each concept intentionally uses a different information architecture. */

@font-face {
  font-family: "PuppyJun Hand Hybrid";
  src:
    url("fonts/puppyjun-hand-hybrid.woff2") format("woff2"),
    url("fonts/puppyjun-hand-hybrid.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* -------------------------------------------------------------------------- */
/* Fiction and remaining Geist registers                                      */
/* ⚠️ GPT-introduced layout defaults for this local mockup. Review before ship. */
/* -------------------------------------------------------------------------- */

.fiction-hero,
.specimen-hero,
.geist-index-hero {
  padding: 32px clamp(24px, 8vw, 140px) 74px;
  border-bottom: 1px solid var(--night-line);
  background:
    linear-gradient(120deg, rgba(199, 214, 91, 0.055), transparent 48%),
    var(--night);
}

.fiction-hero .room-crumb,
.specimen-hero .room-crumb,
.geist-index-hero .room-crumb {
  margin-bottom: 80px;
}

.fiction-hero .eyebrow,
.specimen-hero .eyebrow,
.geist-index-hero .eyebrow {
  color: var(--acid);
}

.fiction-hero h1,
.specimen-hero h1,
.geist-index-hero h1 {
  max-width: 10ch;
  margin: 18px 0 0;
  font-family: var(--hand-display);
  font-size: clamp(4.8rem, 9vw, 9rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.04em;
}

/* ⚠️ GPT-introduced optical adjustment; human requested the tail line lower. */
.geist-delivery-title-tail {
  position: relative;
  top: 0.11em;
  display: inline-block;
}

.fiction-hero-grid,
.specimen-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.56fr);
  gap: clamp(34px, 7vw, 110px);
  align-items: end;
  margin-top: 54px;
}

.fiction-hero-grid > p,
.specimen-hero-grid > p,
.geist-index-hero > p {
  max-width: 70ch;
  margin: 0;
  color: #c8c0b3;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.7;
}

.geist-index-hero > p {
  margin-top: 32px;
}

.geist-index-hero > p a {
  border-bottom: 1px solid currentColor;
  color: var(--acid);
}

.fiction-convention {
  padding-top: 18px;
  border-top: 1px solid var(--acid);
  color: var(--night-muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.fiction-convention b {
  display: block;
  margin-bottom: 8px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fiction-placeholder-note,
.geist-reading-note,
.geist-register-tail {
  margin: 32px clamp(24px, 5vw, 80px) 0;
  padding: 16px 18px;
  border: 1px solid var(--night-line);
  border-left: 2px solid var(--acid);
  color: var(--night-muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.fiction-placeholder-note b {
  color: var(--night-text);
}

.fiction-register {
  padding: 42px clamp(24px, 5vw, 80px) 96px;
}

.fiction-register-section + .fiction-register-section {
  margin-top: 72px;
}

.fiction-register-head {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--acid);
}

.fiction-register-number,
.fiction-register-head > span:last-child {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fiction-register-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1;
}

.fiction-character-break {
  padding: 28px 0 10px 106px;
  border-bottom: 1px solid var(--night-line);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.fiction-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 36px;
  padding: 34px 0 34px 106px;
  border-bottom: 1px solid var(--night-line);
}

a.fiction-record:hover {
  background: rgba(199, 214, 91, 0.035);
}

.fiction-record-closed {
  opacity: 0.76;
}

.fiction-record-copy h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
}

.fiction-record-copy p {
  max-width: 68ch;
  margin: 0;
  color: var(--night-muted);
  line-height: 1.7;
}

.fiction-record-copy p em {
  color: var(--acid);
}

.fiction-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.fiction-tag-row span {
  padding: 4px 8px;
  border: 1px solid var(--night-line);
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fiction-tag-row .is-warning {
  border-color: rgba(164, 63, 50, 0.75);
  color: #df786b;
}

.fiction-record-meta {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 7px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.04em;
  text-align: right;
  text-transform: uppercase;
}

.fiction-record-meta b {
  color: var(--night-text);
  font-weight: 500;
}

.fiction-record-meta small:last-child,
.fiction-status.ongoing {
  color: var(--acid);
}

.fiction-status.complete {
  color: var(--night-text);
}

.specimen-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--night-line);
  background: var(--night-line);
}

.specimen-meta div {
  padding: 12px;
  background: #0d0d0c;
}

.specimen-meta dt {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.specimen-meta dd {
  margin: 4px 0 0;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.specimen-warning {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 26px;
  margin: 34px clamp(24px, 5vw, 80px);
  padding: 20px;
  border: 1px solid rgba(164, 63, 50, 0.7);
  background: rgba(164, 63, 50, 0.08);
  color: #c8c0b3;
}

.specimen-warning > span {
  color: #df786b;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.specimen-warning b {
  color: var(--night-text);
}

.specimen-toc {
  margin: 0 clamp(24px, 5vw, 80px) 36px;
  border: 1px solid var(--night-line);
}

.specimen-toc-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--night-line);
}

.specimen-toc-head > div {
  display: grid;
  gap: 4px;
}

.specimen-toc-head b {
  color: var(--night-text);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
}

.specimen-toc-head button {
  border: 1px solid var(--night-line);
  padding: 8px 11px;
  background: transparent;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.specimen-toc-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.specimen-toc-links a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border-right: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
  color: var(--night-muted);
}

.specimen-toc-links a:nth-child(2n) {
  border-right: 0;
}

.specimen-toc-links a:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.specimen-toc-links b {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.specimen-chapters {
  padding: 0 clamp(24px, 5vw, 80px) 96px;
}

.specimen-chapter {
  border-top: 1px solid var(--night-line);
}

.specimen-chapter:last-child {
  border-bottom: 1px solid var(--night-line);
}

.specimen-chapter summary {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  cursor: pointer;
  list-style: none;
}

.specimen-chapter summary::-webkit-details-marker {
  display: none;
}

.specimen-chapter-number,
.specimen-chapter summary > span:last-child {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.specimen-chapter-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.3vw, 3.4rem);
  line-height: 1;
}

.specimen-chapter-title small {
  display: block;
  margin-top: 8px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.specimen-chapter[open] summary > span:last-child {
  color: var(--night-muted);
}

.specimen-chapter-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 0 72px;
}

.speaker-block {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 34px;
}

.speaker-label {
  padding-top: 7px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.speaker-label.jun {
  color: #df786b;
}

.speaker-prose p {
  margin: 0 0 1.35em;
  color: #d2cabc;
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  line-height: 1.85;
}

.speaker-prose .dialogue {
  color: var(--night-text);
}

.speaker-prose .inner {
  color: var(--acid);
  font-style: italic;
}

.geist-index-list,
.geist-reading-list {
  padding: 34px clamp(24px, 5vw, 80px) 0;
}

.geist-index-entry {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 190px;
  gap: 34px;
  padding: 36px 0;
  border-bottom: 1px solid var(--night-line);
}

.geist-index-entry:hover {
  background: rgba(199, 214, 91, 0.035);
}

.geist-index-date,
.geist-index-meta {
  display: grid;
  align-content: start;
  gap: 7px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.geist-index-date b,
.geist-index-meta b,
.geist-index-meta small {
  color: var(--acid);
  font-size: inherit;
  font-weight: 500;
}

.geist-index-copy h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
}

.geist-index-copy p {
  max-width: 74ch;
  margin: 0;
  color: var(--night-muted);
  line-height: 1.68;
}

.geist-register-tail {
  margin-bottom: 90px;
}

.geist-reading-entry {
  display: grid;
  grid-template-columns: 110px 150px minmax(0, 1fr) 150px;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--night-line);
}

.geist-reading-date,
.geist-reading-medium,
.geist-reading-status {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.geist-reading-medium {
  display: grid;
  align-content: start;
}

.geist-reading-medium b {
  color: var(--acid);
  font-weight: 500;
}

.geist-reading-copy h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.05;
}

.geist-reading-copy p {
  margin: 0;
  color: var(--night-muted);
}

.geist-reading-copy em,
.geist-reading-copy a,
.geist-reading-status.migrated {
  color: var(--acid);
}

.geist-reading-status {
  text-align: right;
}

.geist-source-link {
  border: 1px solid var(--night-line);
  padding: 7px 10px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.geist-source-log,
.geist-source-report {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px clamp(24px, 5vw, 80px) 96px;
  color: #d2cabc;
}

.geist-source-log h2 {
  margin: 2em 0 0.35em;
  color: var(--night-text);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 400;
  line-height: 1;
}

.geist-source-log h2:first-of-type {
  margin-top: 0;
}

.geist-source-log h2 .sub {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.geist-source-log h3,
.geist-source-report h3,
.geist-source-report h4 {
  margin: 2.4em 0 0.8em;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.geist-source-log p,
.geist-source-log li,
.geist-source-report p,
.geist-source-report li {
  color: #d2cabc;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.82;
}

.geist-source-log pre,
.geist-source-report .file-list {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--night-line);
  border-left: 2px solid var(--acid);
  background: #0d0d0c;
}

.geist-source-log code,
.geist-source-report code {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.78em;
}

.geist-report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 34px clamp(24px, 5vw, 80px);
  border: 1px solid var(--night-line);
  background: var(--night-line);
}

.geist-report-summary[hidden] {
  display: none;
}

.summary-card {
  min-height: 150px;
  padding: 18px;
  background: #0d0d0c;
}

.summary-card .k {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.summary-card .v {
  margin-top: 28px;
  color: var(--night-muted);
  line-height: 1.55;
}

.geist-source-report {
  max-width: none;
}

.geist-source-report .intro-grid,
.geist-source-report .report-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 6vw, 88px);
}

.geist-source-report .intro-grid {
  margin-bottom: 72px;
}

.geist-source-report .intro-block,
.geist-source-report .report-col {
  min-width: 0;
}

.geist-source-report .lbl,
.geist-source-report .report-col > h3 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--acid);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.geist-source-report .report-block {
  margin-top: 76px;
  padding-top: 28px;
  border-top: 1px solid var(--night-line);
}

.geist-source-report .report-block > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 42px;
}

.geist-source-report .report-block h2 {
  margin: 0;
  color: var(--night-text);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1;
}

.geist-source-report .agent {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.geist-source-report a {
  border-bottom: 1px solid currentColor;
  color: var(--acid);
}

@media (max-width: 1100px) {
  .fiction-record {
    padding-left: 0;
  }

  .fiction-character-break {
    padding-left: 0;
  }

  .geist-report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .music-listen-bar {
    grid-template-columns: 1fr;
  }

  .music-platform-links {
    justify-content: flex-start;
  }

  .fiction-hero-grid,
  .specimen-hero-grid,
  .geist-source-report .intro-grid,
  .geist-source-report .report-content {
    grid-template-columns: 1fr;
  }

  .fiction-record {
    grid-template-columns: 1fr;
  }

  .fiction-record-meta {
    justify-items: start;
    text-align: left;
  }

  .geist-index-entry,
  .geist-reading-entry {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .geist-index-meta,
  .geist-reading-copy,
  .geist-reading-status {
    grid-column: 2;
  }

  .geist-reading-status {
    text-align: left;
  }

  .geist-source-report .report-block > header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .fiction-hero,
  .specimen-hero,
  .geist-index-hero,
  .fiction-register,
  .specimen-chapters,
  .geist-index-list,
  .geist-reading-list,
  .geist-source-log,
  .geist-source-report {
    padding-right: 18px;
    padding-left: 18px;
  }

  .fiction-hero .room-crumb,
  .specimen-hero .room-crumb,
  .geist-index-hero .room-crumb {
    margin-bottom: 52px;
  }

  .fiction-hero h1,
  .specimen-hero h1,
  .geist-index-hero h1 {
    font-size: clamp(4.4rem, 22vw, 6.8rem);
  }

  .fiction-placeholder-note,
  .geist-reading-note,
  .geist-register-tail,
  .specimen-warning,
  .specimen-toc,
  .geist-report-summary {
    margin-right: 18px;
    margin-left: 18px;
  }

  .fiction-register-head {
    grid-template-columns: 1fr auto;
  }

  .fiction-register-number {
    grid-column: 1 / 3;
  }

  .fiction-character-break {
    padding-top: 32px;
  }

  .specimen-warning {
    grid-template-columns: 1fr;
  }

  .specimen-toc-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .specimen-toc-links {
    grid-template-columns: 1fr;
  }

  .specimen-toc-links a,
  .specimen-toc-links a:nth-child(2n),
  .specimen-toc-links a:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--night-line);
  }

  .specimen-toc-links a:last-child {
    border-bottom: 0;
  }

  .specimen-chapter summary {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .specimen-chapter-number {
    grid-column: 1 / 3;
  }

  .speaker-block {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .geist-index-entry,
  .geist-reading-entry {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .geist-index-meta,
  .geist-reading-copy,
  .geist-reading-status {
    grid-column: 1;
  }

  .geist-report-summary {
    grid-template-columns: 1fr;
  }
}

:root {
  --paper: #f2efe7;
  --paper-2: #e6e0d5;
  --ink: #191816;
  --muted: #69635a;
  --line: rgba(25, 24, 22, 0.18);
  --oxide: #a43f32;
  --blue: #315768;
  --acid: #c7d65b;
  --night: #11110f;
  --night-2: #1c1b18;
  --night-line: rgba(244, 239, 226, 0.18);
  --night-text: #f1ecdf;
  --night-muted: #aaa295;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Inter, Aptos, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Cascadia Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --hand-display: "PuppyJun Hand Hybrid", var(--serif);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 300px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

body.map-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--oxide);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Friend-made logo placement study */

.logo-study {
  min-height: 100vh;
  background:
    linear-gradient(rgba(241, 236, 223, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 236, 223, 0.025) 1px, transparent 1px),
    var(--night);
  background-size: 48px 48px;
  color: var(--night-text);
}

.logo-study-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.logo-study-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--night-line);
}

.logo-study-head h1 {
  max-width: 720px;
  margin: 10px 0 12px;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.logo-study-head p {
  max-width: 680px;
  margin: 0;
  color: var(--night-muted);
}

.logo-study-head nav {
  display: flex;
  gap: 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-study-head nav a {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--night-line);
}

.logo-study-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 18px;
}

.logo-study-card {
  display: grid;
  grid-template-rows: auto minmax(310px, 1fr) auto;
  gap: 18px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--night-line);
  background: rgba(28, 27, 24, 0.78);
}

.logo-study-card--recommended {
  border-color: rgba(199, 214, 91, 0.48);
}

.logo-study-card--wide {
  grid-column: 1 / -1;
  grid-template-rows: auto auto auto;
}

.logo-study-card > p {
  margin: 0;
  color: var(--night-muted);
  font-size: 0.92rem;
}

.logo-study-label {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  font-family: var(--mono);
}

.logo-study-label span {
  color: var(--acid);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-study-label strong {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-station-demo {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 18px;
  min-height: 310px;
  padding: 24px;
  border: 1px solid var(--night-line);
  background: #0b0b09;
}

.logo-station-brand {
  align-self: start;
  font-family: var(--serif);
  font-size: 1.55rem;
}

.logo-station-copy {
  align-self: end;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  line-height: 1.8;
}

.logo-seal-image {
  display: block;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(36%) sepia(16%) saturate(3577%) hue-rotate(318deg) brightness(86%) contrast(96%);
}

.logo-seal-image--small {
  width: 62px;
  height: 62px;
  opacity: 0.78;
}

.logo-colophon-demo {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 310px;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
}

.logo-colophon-demo img {
  display: block;
  width: 100%;
  height: auto;
}

.logo-colophon-demo p {
  max-width: 440px;
  margin: 7px 0 0;
  color: var(--muted);
  font-family: var(--serif);
}

.logo-poster-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.5fr);
  gap: 32px;
  align-items: center;
  min-height: 360px;
  padding: clamp(28px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid rgba(164, 63, 50, 0.48);
  background: #0b0b09;
}

.logo-poster-demo h2 {
  max-width: 680px;
  margin: 10px 0 14px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.logo-poster-demo p {
  max-width: 580px;
  margin: 0;
  color: var(--night-muted);
}

.logo-seal-image--poster {
  width: 100%;
  aspect-ratio: 1;
  opacity: 0.88;
  transform: rotate(2deg);
}

.logo-study-verdict {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: baseline;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--night-line);
}

.logo-study-verdict p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
}

@media (max-width: 760px) {
  .logo-study-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 24px;
  }

  .logo-study-head,
  .logo-study-grid,
  .logo-study-verdict {
    grid-template-columns: 1fr;
  }

  .logo-study-head nav {
    justify-content: space-between;
  }

  .logo-study-card--wide {
    grid-column: auto;
  }

  .logo-poster-demo {
    grid-template-columns: 1fr;
  }

  .logo-seal-image--poster {
    width: min(72vw, 320px);
    justify-self: end;
  }
}

/* Bots / Self rooms.
   ⚠️ GPT-introduced defaults: every spacing, type-size, column ratio, and
   900px / 680px responsive breakpoint in this section is prototype-only. */

.desk.bots-self-page {
  --bs-panel: rgba(18, 18, 15, 0.76);
  --bs-panel-deep: #0b0b09;
  --bs-line: rgba(241, 236, 223, 0.17);
  --bs-line-hot: rgba(199, 214, 91, 0.44);
  background:
    linear-gradient(rgba(241, 236, 223, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 236, 223, 0.022) 1px, transparent 1px),
    var(--night);
  background-size: 48px 48px;
}

.bs-hero {
  padding: clamp(30px, 6vw, 76px) clamp(24px, 5vw, 80px) 34px;
  border-bottom: 1px solid var(--bs-line);
}

.bs-hero--compact {
  padding-top: clamp(28px, 4vw, 52px);
}

.bs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  margin-top: 22px;
}

.bs-hero h1 {
  max-width: 920px;
  margin: 8px 0 0;
  color: var(--night-text);
  font-family: var(--serif);
  font-size: clamp(2.7rem, 6vw, 6rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.bs-hero--compact h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.bs-hero-grid > p {
  margin: 0;
  color: var(--night-muted);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.bots-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  background: var(--bs-line);
  border: 1px solid var(--bs-line);
}

.bots-route-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 280px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--bs-panel-deep);
  transition: background 160ms ease, color 160ms ease;
}

.bots-route-card:hover,
.bots-route-card:focus-visible {
  background: #15150f;
}

.bots-route-card > span,
.bots-route-card > small {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bots-route-card > strong {
  margin-top: 18px;
  color: var(--night-text);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
}

.bots-route-card > p {
  max-width: 510px;
  margin: 18px 0 28px;
  color: var(--night-muted);
}

.bots-route-card--visual {
  background:
    linear-gradient(135deg, rgba(164, 63, 50, 0.18), transparent 60%),
    var(--bs-panel-deep);
}

.bots-hub-doctrine {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  margin-top: 22px;
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--bs-line);
  background: var(--bs-panel);
}

.bots-hub-doctrine h2 {
  margin: 8px 0 0;
  color: var(--night-text);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1;
}

.bots-hub-doctrine p,
.mind-doctrine-copy p {
  margin: 0 0 1em;
  color: var(--night-muted);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.65vw, 1.35rem);
}

.bots-hub-doctrine p:last-child,
.mind-doctrine-copy p:last-child {
  margin-bottom: 0;
}

.bots-hub-doctrine em,
.mind-doctrine-copy em,
.catalog-story em,
.cooking-note em,
.declaration-copy em,
.favourite-category em {
  color: var(--acid);
}

.mind-doctrine {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  margin-top: 22px;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--bs-line-hot);
  background: var(--bs-panel);
}

.mind-spec-groups {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.mind-spec-group {
  border: 1px solid var(--bs-line);
  background: var(--bs-panel-deep);
}

.mind-spec-summary,
.mind-spec-group > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px 28px;
}

.mind-spec-group > summary {
  cursor: pointer;
  list-style: none;
}

.mind-spec-group > summary::-webkit-details-marker {
  display: none;
}

.mind-spec-group > summary::after {
  content: "+";
  grid-column: 2;
  grid-row: 1;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 1.4rem;
}

.mind-spec-group[open] > summary::after {
  content: "−";
}

.mind-spec-summary h2,
.mind-spec-group > summary strong {
  display: block;
  margin: 6px 0 0;
  color: var(--night-text);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 400;
}

.mind-spec-summary small,
.mind-spec-group > summary small {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.mind-spec-group > summary small {
  grid-column: 1;
}

.mind-spec-body {
  padding: 0 28px 28px;
}

.bs-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.bs-tag {
  padding: 7px 10px;
  border: 1px solid var(--bs-line);
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.2;
}

.bs-tag--core {
  border-color: var(--bs-line-hot);
  color: var(--acid);
}

.bs-tag--rare {
  border-style: dashed;
}

.bs-tag--failed {
  color: #ca7468;
}

.mind-axis-note {
  max-width: 860px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed var(--bs-line);
  color: var(--night-muted);
  font-family: var(--serif);
}

.catalog-register {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.catalog-record {
  border: 1px solid var(--bs-line);
  background: var(--bs-panel-deep);
}

.catalog-record > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  cursor: pointer;
  list-style: none;
}

.catalog-record > summary::-webkit-details-marker {
  display: none;
}

.catalog-record h2 {
  margin: 7px 0 5px;
  color: var(--night-text);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1;
}

.catalog-record summary small {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.catalog-open-label {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.catalog-record[open] .catalog-open-label {
  font-size: 0;
}

.catalog-record[open] .catalog-open-label::after {
  content: "close story";
  font-size: 0.68rem;
}

.catalog-record-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.55fr);
  gap: clamp(28px, 5vw, 70px);
  padding: 0 clamp(24px, 4vw, 42px) clamp(28px, 5vw, 52px);
  border-top: 1px solid var(--bs-line);
}

.catalog-story {
  padding-top: 32px;
  color: var(--night-muted);
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.5vw, 1.25rem);
}

.catalog-record-body aside {
  padding-top: 32px;
}

.catalog-record dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  margin: 22px 0;
  font-family: var(--mono);
  font-size: 0.7rem;
}

.catalog-record dt {
  color: var(--night-muted);
  text-transform: uppercase;
}

.catalog-record dd {
  margin: 0;
  color: var(--night-text);
}

.catalog-link-state {
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed var(--bs-line);
  color: #ca7468;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cooking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.cooking-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--bs-line);
  background: var(--bs-panel-deep);
}

.cooking-card-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.cooking-heat {
  display: flex;
  gap: 3px;
}

.cooking-heat i {
  display: block;
  width: 14px;
  height: 5px;
  background: rgba(241, 236, 223, 0.13);
}

.cooking-heat i.is-hot {
  background: var(--oxide);
}

.cooking-card h2 {
  margin: 32px 0 8px;
  color: var(--night-text);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1;
}

.cooking-sub {
  margin: 0;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cooking-note {
  flex: 1;
  margin-top: 24px;
  color: var(--night-muted);
}

.cooking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--bs-line);
}

.cooking-meta span {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.64rem;
}

.declaration-register,
.declaration-drafts > div {
  display: grid;
  gap: 10px;
}

.declaration-register {
  margin-top: 22px;
}

.declaration-record {
  display: grid;
  grid-template-columns: 90px minmax(190px, 0.55fr) minmax(0, 1fr) 150px;
  gap: 26px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--bs-line);
  background: var(--bs-panel-deep);
}

.declaration-record h2 {
  margin: 0;
  color: var(--night-text);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.05;
}

.declaration-copy {
  color: var(--night-muted);
  font-family: var(--serif);
}

.declaration-copy p {
  margin: 0;
}

.declaration-stance {
  justify-self: end;
  padding: 6px 9px;
  border: 1px solid var(--bs-line);
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.declaration-stance--pos {
  border-color: var(--bs-line-hot);
  color: var(--acid);
}

.declaration-stance--neg {
  color: #ca7468;
}

.declaration-drafts,
.favourite-bot-register,
.link-secondary-registers details {
  margin-top: 14px;
  border: 1px dashed var(--bs-line);
  background: rgba(11, 11, 9, 0.72);
}

.declaration-drafts > summary,
.favourite-bot-register > summary,
.link-secondary-registers summary,
.favourite-category > summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
}

.declaration-drafts > summary::-webkit-details-marker,
.favourite-bot-register > summary::-webkit-details-marker,
.link-secondary-registers summary::-webkit-details-marker,
.favourite-category > summary::-webkit-details-marker {
  display: none;
}

.declaration-drafts > summary span,
.favourite-bot-register > summary span,
.link-secondary-registers summary span,
.favourite-category > summary span {
  color: var(--night-text);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.declaration-drafts > summary small,
.favourite-bot-register > summary small,
.link-secondary-registers summary small,
.favourite-category > summary small {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.declaration-drafts > div {
  padding: 0 14px 14px;
}

.declaration-record--draft {
  grid-template-columns: 90px minmax(190px, 0.55fr) minmax(0, 1fr) 150px;
  background: rgba(18, 18, 15, 0.72);
}

.declaration-record--draft > div:first-child small {
  display: block;
  margin-top: 7px;
  color: #ca7468;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.favourite-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.favourite-category {
  border: 1px solid var(--bs-line);
  background: var(--bs-panel-deep);
}

.favourite-category:nth-child(5) {
  grid-column: 1 / -1;
}

.favourite-category[open] {
  border-color: var(--bs-line-hot);
}

.favourite-category ul {
  margin: 0;
  padding: 8px 42px 28px;
  color: var(--night-muted);
}

.favourite-category li {
  margin-bottom: 11px;
  padding-left: 5px;
}

.favourite-category b {
  color: var(--night-text);
  font-weight: 400;
}

.favourite-category-note {
  margin: 0;
  padding: 8px 26px 28px;
  color: var(--night-muted);
  font-family: var(--serif);
}

.favourite-bot-note {
  margin: 0;
  padding: 0 26px 20px;
  color: var(--night-muted);
}

.favourite-bot-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--bs-line);
}

.favourite-bot-links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 18px;
  padding: 18px 22px;
  background: var(--bs-panel-deep);
}

.favourite-bot-links strong {
  color: var(--night-text);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
}

.favourite-bot-links span {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.favourite-bot-links small {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.find-me-register {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 68px);
  margin-top: 22px;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--bs-line-hot);
  background: var(--bs-panel);
}

.section-intro h2 {
  margin: 8px 0 0;
  color: var(--night-text);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 400;
}

.find-me-links {
  display: grid;
  gap: 8px;
}

.find-me-links a {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--bs-line);
}

.find-me-links a:last-child {
  border-bottom: 0;
}

.find-me-links strong {
  color: var(--night-text);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
}

.find-me-links span,
.find-me-links small {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.find-me-links small {
  color: var(--acid);
}

.link-secondary-registers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hosting-links,
.community-links {
  display: grid;
  gap: 1px;
  padding: 1px;
  background: var(--bs-line);
}

.hosting-links a,
.community-links a {
  display: grid;
  background: var(--bs-panel-deep);
}

.hosting-links a {
  grid-template-columns: minmax(110px, 0.45fr) minmax(0, 1fr) auto;
  gap: 18px;
  padding: 16px 20px;
}

.hosting-links span,
.hosting-links small {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.hosting-links strong {
  color: var(--night-text);
  font-family: var(--serif);
  font-weight: 400;
}

.hosting-links small {
  color: var(--acid);
}

.community-links a {
  gap: 7px;
  padding: 20px;
}

.community-links strong {
  color: var(--night-text);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
}

.community-by,
.community-origin {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.community-origin {
  margin-top: 5px;
  padding-top: 10px;
  border-top: 1px dashed var(--bs-line);
}

@media (max-width: 900px) {
  .bs-hero-grid,
  .bots-hub-doctrine,
  .mind-doctrine,
  .find-me-register,
  .catalog-record-body {
    grid-template-columns: 1fr;
  }

  .declaration-record,
  .declaration-record--draft {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .declaration-copy {
    grid-column: 2;
  }

  .declaration-stance {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .bots-route-grid,
  .cooking-grid,
  .favourite-categories,
  .favourite-bot-links,
  .link-secondary-registers {
    grid-template-columns: 1fr;
  }

  .favourite-category:nth-child(5) {
    grid-column: auto;
  }

  .bots-route-card {
    min-height: 230px;
  }

  .mind-spec-summary,
  .mind-spec-group > summary,
  .catalog-record > summary {
    grid-template-columns: 1fr auto;
  }

  .catalog-open-label {
    grid-column: 1 / -1;
  }

  .declaration-record,
  .declaration-record--draft {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .declaration-copy,
  .declaration-stance {
    grid-column: auto;
  }

  .find-me-links a,
  .hosting-links a {
    grid-template-columns: 1fr auto;
  }

  .find-me-links span,
  .hosting-links span {
    grid-column: 1 / -1;
  }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.micro {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.back-to-hub {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 9px 13px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* -------------------------------------------------------------------------- */
/* Shared full-site map                                                       */
/* -------------------------------------------------------------------------- */

.map-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 720px);
  visibility: hidden;
  pointer-events: none;
}

.map-shell[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
}

.map-scrim {
  border: 0;
  background: rgba(8, 8, 7, 0.62);
  opacity: 0;
  transition: opacity 180ms ease;
}

.map-shell[aria-hidden="false"] .map-scrim {
  opacity: 1;
}

.map-panel {
  height: 100%;
  overflow: auto;
  transform: translateX(100%);
  transition: transform 220ms ease;
  background: #f7f4ec;
  color: var(--ink);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 80px rgba(0, 0, 0, 0.24);
}

.map-shell[aria-hidden="false"] .map-panel {
  transform: translateX(0);
}

.map-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 22px;
  background: rgba(247, 244, 236, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.map-head h2 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 0.95;
}

.map-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 1.25rem;
}

.map-search {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.map-search input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--ink);
  padding: 10px 0;
  background: transparent;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.map-search input::placeholder {
  color: #8d867a;
}

.map-results-note {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.map-groups {
  padding: 6px 22px 48px;
}

.map-group {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.map-group h3 {
  margin: 0;
  color: var(--oxide);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 18px;
}

.map-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dotted var(--line);
}

.map-entry:hover {
  color: var(--oxide);
}

.map-entry small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
}

.map-entry[hidden],
.map-group[hidden] {
  display: none;
}

/* -------------------------------------------------------------------------- */
/* Comparison hub                                                             */
/* -------------------------------------------------------------------------- */

.hub {
  min-height: 100vh;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(25, 24, 22, 0.09) 50%, transparent 50.1%),
    var(--paper);
}

.hub-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding: 28px clamp(22px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.hub-brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
}

.hub-head .micro {
  text-align: right;
}

.hub-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.6fr);
  gap: clamp(32px, 8vw, 120px);
  padding: clamp(58px, 9vw, 120px) clamp(22px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.hub-intro h1 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 8.4rem);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.05em;
}

.hub-intro h1 em {
  color: var(--oxide);
  font-weight: 400;
}

.hub-intro aside {
  align-self: end;
  padding-top: 20px;
  border-top: 4px solid var(--ink);
}

.hub-intro aside p {
  margin: 0 0 18px;
  color: var(--muted);
}

.hub-options {
  padding: 0 clamp(22px, 5vw, 72px) 80px;
}

.hub-option {
  display: grid;
  grid-template-columns: minmax(200px, 0.7fr) minmax(280px, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.hub-option .name {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.hub-option .desc {
  max-width: 55ch;
  color: var(--muted);
}

.hub-option .open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 112px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.hub-option:hover .open {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-8deg);
}

.hub-matrix {
  overflow-x: auto;
  padding: 0 clamp(22px, 5vw, 72px) 90px;
}

.hub-matrix table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.hub-matrix caption {
  padding: 24px 0;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hub-matrix th,
.hub-matrix td {
  padding: 16px 12px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.hub-matrix th {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* Concept A: Atlas                                                           */
/* -------------------------------------------------------------------------- */

.atlas {
  background: #ebe5d9;
}

.atlas-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  min-height: 72px;
  padding: 0 clamp(20px, 4vw, 56px);
  background: rgba(235, 229, 217, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.atlas-brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
}

.atlas-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 42px);
  font-size: 0.82rem;
}

.atlas-nav a {
  padding: 23px 0 20px;
  border-bottom: 3px solid transparent;
}

.atlas-nav a:hover {
  border-color: var(--oxide);
}

.map-open-button {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 9px 14px;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.atlas-hero {
  min-height: 76vh;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.55fr);
  gap: clamp(36px, 9vw, 150px);
  align-items: end;
  padding: clamp(70px, 10vw, 150px) clamp(20px, 4vw, 56px) 54px;
  border-bottom: 1px solid var(--line);
}

.atlas-hero h1 {
  max-width: 12ch;
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 9.5vw, 10rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.055em;
}

.atlas-hero h1 em {
  color: var(--oxide);
  font-weight: 400;
}

.atlas-hero aside {
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}

.atlas-hero aside strong {
  display: block;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
}

.atlas-hero aside p {
  color: var(--muted);
}

.atlas-strip {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.atlas-strip > * {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.atlas-strip > :last-child {
  border-right: 0;
}

.atlas-strip .label {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.atlas-strip a {
  font-family: var(--serif);
  font-size: 1.08rem;
}

.atlas-domains {
  padding: 32px clamp(20px, 4vw, 56px) 90px;
}

.domain-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) minmax(0, 1fr) auto;
  gap: 28px;
  align-items: baseline;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.domain-row .num {
  color: var(--oxide);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.domain-row h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 6.8rem);
  font-weight: 400;
  line-height: 0.9;
}

.domain-row .contents {
  max-width: 34ch;
  color: var(--muted);
  text-align: right;
}

.domain-row:hover h2 {
  color: var(--oxide);
}

/* -------------------------------------------------------------------------- */
/* Concept B: Signal Desk                                                     */
/* -------------------------------------------------------------------------- */

.desk {
  background: var(--night);
  color: var(--night-text);
}

.desk .back-to-hub {
  background: var(--night-2);
}

.desk :focus-visible,
.signal-gate :focus-visible {
  outline-color: var(--acid);
}

.desk-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.desk-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
  background: #0b0b0a;
  border-right: 1px solid var(--night-line);
}

.desk-rail .brand {
  margin-bottom: 52px;
  font-family: var(--mono);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desk-rail .brand b {
  color: var(--acid);
}

.desk-menu {
  display: grid;
  gap: 3px;
}

.desk-menu a,
.desk-menu button {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--night-line);
  background: transparent;
  color: var(--night-muted);
  text-align: left;
  font-size: 0.85rem;
}

.desk-menu a:hover,
.desk-menu button:hover {
  color: var(--night-text);
}

.desk-menu .key {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.desk-rail-foot {
  margin-top: auto;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  line-height: 1.8;
}

.desk-rail-foot a {
  color: var(--acid);
}

.desk-main {
  min-width: 0;
}

.desk-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  min-height: 46vh;
  padding: clamp(48px, 8vw, 110px) clamp(22px, 5vw, 76px) 42px;
  border-bottom: 1px solid var(--night-line);
  background:
    radial-gradient(circle at 82% 30%, rgba(199, 214, 91, 0.13), transparent 28%),
    linear-gradient(135deg, transparent 60%, rgba(164, 63, 50, 0.12));
}

.desk-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 15, 0.98) 0%, rgba(17, 17, 15, 0.76) 48%, rgba(17, 17, 15, 0.38) 100%),
    url("assets/humpback-signal-gate-v1.webp") 72% 50% / cover no-repeat;
  opacity: 0.28;
  filter: saturate(0.76) contrast(1.08);
}

.desk-head h1 {
  max-width: 10ch;
  margin: 12px 0 0;
  font-family: var(--sans);
  font-size: clamp(3.5rem, 8vw, 9rem);
  font-weight: 700;
  line-height: 0.83;
  letter-spacing: -0.065em;
}

.desk-head h1 span {
  color: var(--acid);
}

.desk-head .stamp {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-align: right;
}

.signal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.signal-primary {
  padding: clamp(34px, 5vw, 72px);
  border-right: 1px solid var(--night-line);
}

.signal-primary > h2,
.signal-side > h2 {
  margin: 0 0 28px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-item {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--night-line);
  color: inherit;
  text-decoration: none;
  transition: color 0.18s, border-color 0.18s;
}

.signal-item:hover,
.signal-item:focus-visible {
  color: var(--acid);
  border-color: rgba(199, 214, 91, 0.55);
}

.signal-item:hover p,
.signal-item:focus-visible p {
  color: var(--night-text);
}

.signal-item time,
.signal-item .tag {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.signal-item h3 {
  margin: 0 0 9px;
  font-family: var(--hand-display);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1;
}

.signal-item h3.handwritten-slot {
  letter-spacing: 0.005em;
}

.signal-item p {
  max-width: 62ch;
  margin: 0;
  color: var(--night-muted);
}

.signal-side {
  padding: clamp(34px, 5vw, 56px);
}

.now-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.now-list li {
  padding: 16px 0;
  border-top: 1px solid var(--night-line);
}

.now-list small {
  display: block;
  margin-bottom: 5px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.desk-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--night-line);
}

.desk-category {
  min-height: 250px;
  padding: 28px;
  border-right: 1px solid var(--night-line);
  transition: background 160ms ease;
}

.desk-category:last-child {
  border-right: 0;
}

.desk-category:hover {
  background: #202019;
}

.desk-category .n {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.desk-category h2 {
  margin: 70px 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.7rem);
  line-height: 0.95;
}

.desk-category p {
  color: var(--night-muted);
  font-size: 0.82rem;
}

/* Signal Desk keeps the complete directory, but it must belong to the same system. */
.desk .map-panel {
  background: #0d0e0b;
  color: var(--night-text);
  border-left-color: var(--night-line);
  box-shadow: -24px 0 90px rgba(0, 0, 0, 0.62);
}

.desk .map-head {
  background: rgba(13, 14, 11, 0.96);
  border-bottom-color: var(--night-line);
}

.desk .map-head h2 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.055em;
}

.desk .map-close {
  color: var(--acid);
  border-color: var(--night-line);
}

.desk .map-search {
  border-bottom-color: var(--night-line);
}

.desk .map-search input {
  color: var(--night-text);
  border-bottom-color: var(--acid);
  font-family: var(--sans);
  font-weight: 600;
}

.desk .map-search input::placeholder,
.desk .map-results-note {
  color: var(--night-muted);
}

.desk .map-group {
  border-bottom-color: var(--night-line);
}

.desk .map-group h3 {
  color: var(--acid);
}

.desk .map-entry {
  border-bottom-color: var(--night-line);
}

.desk .map-entry:hover {
  color: var(--acid);
}

.desk .map-entry small {
  color: var(--night-muted);
}

/* -------------------------------------------------------------------------- */
/* Signal Desk entry gate                                                     */
/* -------------------------------------------------------------------------- */

.signal-gate {
  min-height: 100vh;
  overflow: hidden;
  background: #090a08;
  color: var(--night-text);
  transition: opacity 340ms ease;
}

.signal-gate.gate-leaving {
  opacity: 0;
}

.gate-stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 80px 24px;
  isolation: isolate;
}

.gate-stage::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background: url("assets/humpback-signal-gate-v1.webp") center / cover no-repeat;
  filter: saturate(0.76) contrast(1.08);
}

.gate-stage::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(9, 10, 8, 0.34), rgba(9, 10, 8, 0.84) 68%),
    linear-gradient(90deg, rgba(9, 10, 8, 0.78), rgba(9, 10, 8, 0.18) 52%, rgba(9, 10, 8, 0.68));
}

.gate-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(199, 214, 91, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 214, 91, 0.1) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle, black, transparent 72%);
}

.gate-corner {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.64rem;
  line-height: 1.8;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.gate-corner strong {
  color: var(--night-text);
  font-weight: 600;
}

.gate-corner b {
  color: var(--acid);
  font-weight: 500;
}

.gate-tl {
  top: 24px;
  left: 28px;
}

.gate-tr {
  top: 24px;
  right: 28px;
  text-align: right;
}

.gate-bl {
  bottom: 24px;
  left: 28px;
}

.gate-br {
  right: 28px;
  bottom: 24px;
  text-align: right;
}

.gate-center {
  width: min(100%, 720px);
  padding: clamp(28px, 5vw, 54px);
  background: rgba(9, 10, 8, 0.7);
  border: 1px solid var(--night-line);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  text-align: center;
}

.gate-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.gate-label::before,
.gate-label::after {
  content: "";
  width: 54px;
  height: 1px;
  background: var(--acid);
  opacity: 0.52;
}

.gate-center h1 {
  max-width: 9ch;
  margin: 28px auto 24px;
  font-family: var(--sans);
  font-size: clamp(3.4rem, 8vw, 7rem);
  font-weight: 750;
  line-height: 0.82;
  letter-spacing: -0.075em;
}

.gate-center h1 em {
  color: var(--acid);
  font-style: normal;
}

.gate-copy {
  max-width: 58ch;
  margin: 0 auto;
  color: var(--night-muted);
  font-size: 0.92rem;
}

.gate-copy strong {
  color: var(--night-text);
}

.gate-copy em {
  color: var(--acid);
}

.gate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 34px;
  border: 1px solid var(--night-line);
}

.gate-action {
  padding: 15px 18px;
  border: 0;
  background: rgba(13, 14, 11, 0.76);
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gate-action + .gate-action {
  border-left: 1px solid var(--night-line);
}

.gate-action.accept {
  color: var(--acid);
}

.gate-action:hover {
  background: var(--acid);
  color: #0a0b08;
}

.gate-state {
  margin-top: 22px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gate-state b {
  color: var(--acid);
  font-weight: 400;
}

/* -------------------------------------------------------------------------- */
/* Concept C: Cabinet                                                         */
/* -------------------------------------------------------------------------- */

.cabinet {
  background: #f6f1e6;
  color: #211d18;
}

.cabinet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px clamp(20px, 4vw, 58px);
}

.cabinet-mark {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
}

.cabinet-hero {
  min-height: 62vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.45fr);
  gap: clamp(36px, 10vw, 170px);
  align-items: center;
  padding: 32px clamp(20px, 4vw, 58px) 72px;
}

.cabinet-hero h1 {
  max-width: 10ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.4rem, 11vw, 12rem);
  font-weight: 400;
  line-height: 0.74;
  letter-spacing: -0.065em;
}

.cabinet-hero h1 em {
  display: block;
  margin-left: 0.7em;
  color: var(--blue);
  font-weight: 400;
}

.cabinet-note {
  align-self: end;
  padding-left: 18px;
  border-left: 5px solid var(--blue);
}

.cabinet-note p {
  color: var(--muted);
}

.cabinet-note a {
  border-bottom: 1px solid currentColor;
}

.cabinet-doors {
  display: grid;
  grid-template-columns: 1fr 1.25fr 0.9fr;
  min-height: 72vh;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cabinet-door {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 620px;
  padding: clamp(24px, 4vw, 52px);
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.cabinet-door:last-child {
  border-right: 0;
}

.cabinet-door::after {
  content: "";
  position: absolute;
  right: -20%;
  bottom: -28%;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.18;
  transition: transform 500ms ease;
}

.cabinet-door:hover::after {
  transform: scale(1.22) translate(-10%, -10%);
}

.cabinet-door:nth-child(2) {
  background: var(--blue);
  color: #f6f1e6;
}

.cabinet-door:nth-child(3) {
  background: #d8cfba;
}

.cabinet-door .door-id {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cabinet-door h2 {
  position: relative;
  z-index: 1;
  margin: auto 0 24px;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 7.5rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.04em;
}

.cabinet-door p {
  position: relative;
  z-index: 1;
  max-width: 30ch;
  margin: 0;
  opacity: 0.72;
}

.cabinet-shelf {
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) minmax(0, 1fr);
  gap: clamp(30px, 7vw, 110px);
  padding: 70px clamp(20px, 4vw, 58px);
}

.cabinet-shelf > h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
}

.shelf-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 38px;
}

.shelf-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.shelf-item .kind {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.shelf-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.shelf-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.cabinet-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(20px, 4vw, 58px) 90px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .map-shell {
    grid-template-columns: 1fr;
  }

  .map-scrim {
    position: absolute;
    inset: 0;
  }

  .map-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 620px);
    margin-left: auto;
  }

  .map-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hub-intro,
  .atlas-hero,
  .cabinet-hero {
    grid-template-columns: 1fr;
  }

  .hub-option {
    grid-template-columns: 1fr auto;
  }

  .hub-option .desc {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .atlas-top {
    grid-template-columns: 1fr auto;
  }

  .atlas-nav {
    display: none;
  }

  .atlas-strip {
    grid-template-columns: 1fr;
  }

  .atlas-strip > * {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .domain-row {
    grid-template-columns: 72px 1fr;
  }

  .domain-row .contents {
    grid-column: 2;
    text-align: left;
  }

  .desk-shell {
    grid-template-columns: 1fr;
  }

  .desk-rail {
    position: static;
    height: auto;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--night-line);
  }

  .desk-rail .brand {
    margin: 0 0 14px;
  }

  .desk-menu {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .desk-menu a,
  .desk-menu button {
    display: block;
    padding: 9px 4px;
    border-bottom: 0;
    text-align: center;
    font-size: 0.7rem;
  }

  .desk-menu .key,
  .desk-rail-foot {
    display: none;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .signal-primary {
    border-right: 0;
    border-bottom: 1px solid var(--night-line);
  }

  .desk-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .desk-category:nth-child(2) {
    border-right: 0;
  }

  .desk-category:nth-child(-n + 2) {
    border-bottom: 1px solid var(--night-line);
  }

  .cabinet-doors {
    grid-template-columns: 1fr;
  }

  .cabinet-door {
    min-height: 440px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .cabinet-shelf {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .map-links,
  .shelf-list {
    grid-template-columns: 1fr;
  }

  .map-head,
  .map-search,
  .map-groups {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hub-head {
    align-items: start;
  }

  .hub-head .micro {
    max-width: 18ch;
  }

  .hub-option {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hub-option .desc {
    grid-column: 1;
    grid-row: auto;
  }

  .hub-option .open {
    min-width: 0;
    min-height: 0;
    width: fit-content;
    border-radius: 999px;
    padding: 12px 18px;
  }

  .atlas-hero {
    min-height: 65vh;
  }

  .domain-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .domain-row .contents {
    grid-column: 1;
  }

  .desk-head {
    grid-template-columns: 1fr;
    min-height: 58vh;
  }

  .desk-head .stamp {
    text-align: left;
  }

  .signal-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .desk-categories {
    grid-template-columns: 1fr;
  }

  .desk-category {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid var(--night-line);
  }

  .desk-category h2 {
    margin-top: 50px;
  }

  .cabinet-hero h1 {
    font-size: clamp(4rem, 21vw, 7rem);
  }

  .cabinet-footer {
    flex-direction: column;
  }

  .gate-stage {
    min-height: 100svh;
    padding: 116px 18px 106px;
  }

  .gate-corner {
    font-size: 0.56rem;
  }

  .gate-tr,
  .gate-br {
    right: 18px;
  }

  .gate-tl,
  .gate-bl {
    left: 18px;
  }

  .gate-br {
    display: none;
  }

  .gate-center {
    padding: 28px 18px;
  }

  .gate-center h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .gate-actions {
    grid-template-columns: 1fr;
  }

  .gate-action + .gate-action {
    border-top: 1px solid var(--night-line);
    border-left: 0;
  }
}

/* -------------------------------------------------------------------------- */
/* Surface · Now / Updates / Timeline / Archive / 404                         */
/* -------------------------------------------------------------------------- */

.surface-hero {
  padding: clamp(56px, 9vw, 112px) clamp(24px, 5vw, 80px) 56px;
  border-bottom: 1px solid var(--night-line);
}

.surface-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.58fr);
  gap: clamp(44px, 9vw, 130px);
  align-items: end;
  margin-top: clamp(54px, 9vw, 118px);
}

.surface-hero h1 {
  max-width: 12ch;
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(4.8rem, 10vw, 10rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.surface-hero-copy {
  border-left: 1px solid var(--acid);
  padding-left: 22px;
  color: var(--night-muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.surface-hero-copy b {
  display: block;
  margin-top: 20px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.now-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--night-line);
}

.now-snapshot-card {
  min-height: 330px;
  padding: 30px clamp(24px, 4vw, 54px);
  background: var(--night);
}

.now-snapshot-card h2 {
  margin: 0 0 34px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.now-snapshot-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.now-snapshot-card li {
  position: relative;
  padding-left: 18px;
  color: #d2cabc;
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 1.55;
}

.now-snapshot-card li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--acid);
}

.now-snapshot-card em {
  color: var(--acid);
}

.now-health {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 760px);
  gap: 42px;
  padding: 48px clamp(24px, 5vw, 80px) 70px;
  border-top: 1px solid var(--acid);
  background: rgba(199, 214, 91, 0.05);
}

.now-health .head {
  display: none;
}

.now-health p {
  margin: 0 0 1em;
  color: var(--night-muted);
}

.now-health b,
.now-health a {
  color: var(--night-text);
}

.now-health em {
  color: var(--acid);
}

.updates-journal-bridge {
  display: flex;
  justify-content: space-between;
  gap: 34px;
  align-items: end;
  padding: 30px clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--night-line);
  background: #151411;
}

.updates-journal-bridge h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 400;
}

.updates-journal-bridge > a {
  flex: 0 0 auto;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.updates-months,
.timeline-years {
  padding: 42px clamp(24px, 5vw, 80px) 86px;
}

.surface-period {
  border-top: 1px solid var(--night-line);
}

.surface-period:last-child {
  border-bottom: 1px solid var(--night-line);
}

.surface-period > summary {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 19px 0;
  color: var(--night-muted);
  font-family: var(--mono);
  cursor: pointer;
  list-style: none;
}

.surface-period > summary::-webkit-details-marker {
  display: none;
}

.surface-period > summary b {
  color: var(--night-text);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.surface-period > summary span {
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.surface-period > summary::after {
  content: "open +";
  color: var(--acid);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.surface-period[open] > summary::after {
  content: "close −";
}

.surface-update-entry {
  display: grid;
  grid-template-columns: 160px minmax(0, 760px);
  gap: 28px;
  padding: 34px 0 44px;
  border-top: 1px solid rgba(244, 239, 226, 0.09);
}

.surface-update-when {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.7;
}

.surface-update-when b {
  display: block;
  color: var(--acid);
  font-size: 0.7rem;
  font-weight: 500;
}

.surface-update-body {
  color: #d2cabc;
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 1.76;
}

.surface-update-body b {
  color: var(--night-text);
}

.surface-update-body em,
.surface-update-body a {
  color: var(--acid);
}

.surface-update-body a {
  border-bottom: 1px solid currentColor;
}

.surface-update-body img {
  width: min(100%, 700px);
  height: auto;
  margin-top: 18px !important;
  border-color: var(--night-line) !important;
}

.surface-update-body .fires {
  display: grid;
  gap: 8px;
}

.timeline-event {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(150px, 0.28fr) minmax(0, 1fr);
  grid-template-areas:
    "date type title"
    "date type note";
  gap: 9px 28px;
  padding: 34px 0 42px 24px;
  border-top: 1px solid rgba(244, 239, 226, 0.09);
}

.timeline-event::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 0;
  width: 8px;
  height: 8px;
  border: 1px solid var(--acid);
  border-radius: 50%;
  background: var(--acid);
}

.timeline-event.is-ongoing::before {
  background: var(--night);
}

.timeline-event-date {
  grid-area: date;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.6;
}

.timeline-event-type {
  grid-area: type;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-event-title {
  grid-area: title;
  color: var(--night-text);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  line-height: 1.2;
}

.timeline-event-title em {
  color: var(--acid);
}

.timeline-event-note {
  grid-area: note;
  max-width: 850px;
  color: var(--night-muted);
  font-size: 0.9rem;
  line-height: 1.72;
}

.timeline-event-note em,
.timeline-event-note a {
  color: var(--acid);
}

.archive-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--night-line);
}

.archive-tier {
  min-height: 210px;
  padding: 32px;
  background: var(--night);
}

.archive-tier b {
  display: inline-block;
  border: 1px solid var(--acid);
  padding: 5px 8px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.archive-tier h2 {
  margin: 34px 0 0;
  color: var(--night-text);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.2;
}

.archive-empty {
  max-width: 900px;
  padding: clamp(64px, 10vw, 130px) clamp(24px, 7vw, 110px);
}

.archive-empty h2 {
  margin: 18px 0 24px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.archive-empty p {
  max-width: 62ch;
  color: var(--night-muted);
}

.not-found-page {
  min-height: 100vh;
  background: #080907;
}

.not-found-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(40px, 8vw, 110px);
  isolation: isolate;
}

.not-found-stage::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("assets/humpback-signal-gate-v1.webp") 70% center / cover no-repeat;
  filter: grayscale(0.7) contrast(1.2) brightness(0.34);
}

.not-found-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #080907 15%, rgba(8, 9, 7, 0.78) 55%, rgba(8, 9, 7, 0.46));
}

.not-found-code {
  position: absolute;
  right: 4vw;
  top: 1vw;
  color: rgba(199, 214, 91, 0.09);
  font-family: var(--sans);
  font-size: min(38vw, 580px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.12em;
}

.not-found-stage h1 {
  max-width: 12ch;
  margin: 32px 0 22px;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 8vw, 8.4rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.06em;
}

.not-found-stage h1 em {
  color: var(--acid);
}

.not-found-detail {
  max-width: 54ch;
  color: var(--night-muted);
  font-size: 1rem;
}

.not-found-actions {
  display: flex;
  gap: 1px;
  width: min(100%, 560px);
  margin-top: 36px;
  background: var(--night-line);
}

.not-found-actions a,
.not-found-actions button {
  flex: 1;
  border: 0;
  padding: 14px 18px;
  background: rgba(8, 9, 7, 0.88);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.not-found-actions a:hover,
.not-found-actions button:hover {
  background: var(--acid);
  color: var(--night);
}

.not-found-whale {
  position: absolute;
  right: 28px;
  bottom: 24px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .surface-hero-grid,
  .now-health {
    grid-template-columns: 1fr;
  }

  .now-snapshot-grid,
  .archive-tiers {
    grid-template-columns: 1fr;
  }

  .surface-update-entry {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .timeline-event {
    grid-template-columns: 120px minmax(0, 1fr);
    grid-template-areas:
      "date type"
      "date title"
      "date note";
  }
}

@media (max-width: 560px) {
  .surface-hero,
  .now-health,
  .updates-journal-bridge,
  .updates-months,
  .timeline-years {
    padding-right: 18px;
    padding-left: 18px;
  }

  .surface-hero-grid {
    gap: 34px;
  }

  .surface-hero h1 {
    font-size: clamp(4.2rem, 22vw, 7rem);
  }

  .updates-journal-bridge {
    align-items: flex-start;
    flex-direction: column;
  }

  .surface-period > summary {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .surface-period > summary span {
    grid-column: 1;
    grid-row: 2;
  }

  .surface-period > summary::after {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .surface-update-entry,
  .timeline-event {
    grid-template-columns: 1fr;
  }

  .surface-update-entry {
    gap: 18px;
  }

  .timeline-event {
    grid-template-areas:
      "date"
      "type"
      "title"
      "note";
    padding-left: 22px;
  }

  .not-found-actions {
    flex-direction: column;
  }

  .not-found-whale {
    right: 18px;
    left: 18px;
    text-align: right;
  }
}

/* -------------------------------------------------------------------------- */
/* Geist · Chamber                                                            */
/* -------------------------------------------------------------------------- */

.station-unseal-gate {
  --acid: #d65b4a;
}

.station-unseal-gate .gate-stage::before {
  filter: grayscale(0.4) saturate(0.42) contrast(1.18) brightness(0.7);
}

.station-unseal-gate .gate-stage::after {
  background:
    radial-gradient(circle at 50% 48%, rgba(9, 10, 8, 0.42), rgba(9, 10, 8, 0.9) 70%),
    linear-gradient(90deg, rgba(9, 10, 8, 0.84), rgba(41, 13, 11, 0.22) 52%, rgba(9, 10, 8, 0.78));
}

.chamber-page {
  --chamber: #d65b4a;
  --chamber-soft: #f0a092;
}

.rail-text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--chamber, var(--acid));
  font-family: var(--mono);
  font-size: inherit;
  text-align: left;
}

.chamber-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.62fr);
  gap: clamp(42px, 8vw, 120px);
  align-items: end;
  padding: clamp(54px, 9vw, 112px) clamp(24px, 5vw, 80px) 58px;
  border-bottom: 1px solid var(--night-line);
}

.chamber-hero h1 {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: clamp(4.6rem, 10vw, 9.5rem);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.075em;
}

.chamber-hero h1 em {
  color: var(--chamber);
  font-weight: 400;
}

.chamber-hero-note {
  border-left: 1px solid var(--chamber);
  padding-left: 20px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.9;
}

.chamber-hero-note b {
  color: var(--night-text);
  font-weight: 500;
}

.chamber-status {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 13px clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--chamber);
  background: rgba(214, 91, 74, 0.08);
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chamber-status b {
  color: var(--chamber-soft);
  font-weight: 600;
}

.chamber-register {
  padding: 56px clamp(24px, 5vw, 80px) 86px;
}

.chamber-register .section-head {
  border-color: var(--night-line);
}

.chamber-tape-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.chamber-tape-card {
  display: grid;
  min-height: 430px;
  grid-template-rows: 190px auto 1fr auto;
  border: 1px solid var(--night-line);
  background: #151411;
  color: var(--night-text);
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.chamber-tape-card:hover {
  border-color: var(--chamber);
  transform: translateY(-2px);
}

.chamber-reel {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--night-line);
  background:
    repeating-linear-gradient(0deg, transparent 0 19px, rgba(255, 255, 255, 0.025) 19px 20px),
    #0c0c0a;
}

.chamber-reel::before,
.chamber-reel::after {
  content: "";
  position: absolute;
  width: 88px;
  height: 88px;
  border: 2px solid rgba(240, 160, 146, 0.46);
  border-radius: 50%;
  background:
    radial-gradient(circle, #0c0c0a 0 17%, var(--chamber) 18% 22%, transparent 23%),
    conic-gradient(
      transparent 0 12%,
      rgba(240, 160, 146, 0.22) 12% 16%,
      transparent 16% 32%,
      rgba(240, 160, 146, 0.22) 32% 36%,
      transparent 36% 52%,
      rgba(240, 160, 146, 0.22) 52% 56%,
      transparent 56% 72%,
      rgba(240, 160, 146, 0.22) 72% 76%,
      transparent 76%
    );
}

.chamber-reel::before {
  left: 11%;
}

.chamber-reel::after {
  right: 11%;
}

.chamber-reel-label {
  position: relative;
  z-index: 1;
  border: 1px solid var(--night-line);
  padding: 7px 12px;
  background: #151411;
  color: var(--chamber-soft);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.chamber-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 0;
}

.chamber-card-head span {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chamber-card-head .hosting {
  color: var(--chamber);
}

.chamber-tape-card h3 {
  max-width: 18ch;
  margin: 16px 22px 20px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.chamber-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 0 22px 22px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.chamber-card-meta b {
  display: block;
  margin-bottom: 2px;
  color: var(--night-text);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chamber-card-action {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 22px;
  border-top: 1px solid var(--night-line);
  color: var(--chamber);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chamber-card-action small {
  color: var(--night-muted);
  font-size: inherit;
}

.chamber-tape-hero {
  padding: clamp(58px, 9vw, 116px) clamp(24px, 7vw, 110px) 56px;
  border-bottom: 1px solid var(--night-line);
}

.chamber-tape-hero h1 {
  max-width: 12ch;
  margin: 20px 0 32px;
  font-family: var(--serif);
  font-size: clamp(3.8rem, 8vw, 8.2rem);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.065em;
}

.chamber-tape-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chamber-tape-meta span {
  border: 1px solid var(--night-line);
  padding: 7px 10px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chamber-tape-meta b {
  color: var(--night-text);
  font-weight: 500;
}

.chamber-booth-note,
.chamber-player,
.chamber-transcript {
  margin: 0 clamp(24px, 7vw, 110px);
}

.chamber-booth-note {
  display: grid;
  grid-template-columns: 150px minmax(0, 760px);
  gap: 32px;
  padding: 38px 0;
  border-bottom: 1px solid var(--night-line);
}

.chamber-booth-note > div {
  color: #d5cdc0;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.75;
}

.chamber-booth-note .lbl-inline {
  display: none;
}

.chamber-booth-note em {
  color: var(--chamber-soft);
}

.chamber-booth-note b {
  color: var(--night-text);
  font-weight: 600;
}

.chamber-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 22px clamp(24px, 7vw, 110px);
}

.chamber-tags span {
  border: 1px solid var(--night-line);
  padding: 5px 8px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.05em;
}

.chamber-player {
  padding: 26px;
  border: 1px solid var(--night-line);
  background: #151411;
}

.chamber-player-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.63rem;
  line-height: 1.7;
}

.chamber-player-head b {
  color: var(--chamber);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.chamber-player audio {
  display: block;
  width: 100%;
}

.chamber-listen-out {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.chamber-listen-out a {
  flex: 0 0 auto;
  border: 1px solid var(--chamber);
  padding: 11px 16px;
  color: var(--chamber);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chamber-listen-out a:hover {
  background: var(--chamber);
  color: var(--night);
}

.chamber-transcript {
  padding: 44px 0 92px;
}

.chamber-script-disclosure {
  border-top: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
}

.chamber-script-disclosure summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  color: var(--chamber);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.chamber-script-disclosure summary::after {
  content: "open +";
  color: var(--night-muted);
}

.chamber-script-disclosure[open] summary::after {
  content: "close −";
}

.chamber-script-body {
  padding: 18px 0 42px;
}

.verse-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 1px;
  background: var(--night-line);
}

.verse-trio p {
  position: relative;
  min-height: 170px;
  margin: 0;
  padding: 38px 22px 24px;
  background: var(--night);
  color: #d3cbbd;
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.65;
}

.verse-trio .lang-tag {
  position: absolute;
  top: 14px;
  left: 22px;
  color: var(--chamber);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chamber-scene {
  max-width: 760px;
  border-left: 1px solid var(--chamber);
  padding-left: 24px;
}

.chamber-scene::before {
  content: "// the scene · improvised, no script";
  display: block;
  margin-bottom: 22px;
  color: var(--chamber);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chamber-scene p {
  color: #d3cbbd;
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.8;
}

.chamber-scene em {
  color: var(--chamber-soft);
}

@media (max-width: 860px) {
  .chamber-hero,
  .chamber-booth-note {
    grid-template-columns: 1fr;
  }

  .chamber-tape-grid {
    grid-template-columns: 1fr;
  }

  .verse-trio {
    grid-template-columns: 1fr;
  }

  .verse-trio p {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .chamber-hero,
  .chamber-status,
  .chamber-register,
  .chamber-tape-hero,
  .chamber-tags {
    padding-right: 18px;
    padding-left: 18px;
  }

  .chamber-hero {
    gap: 34px;
  }

  .chamber-status,
  .chamber-listen-out,
  .chamber-player-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .chamber-booth-note,
  .chamber-player,
  .chamber-transcript {
    margin-right: 18px;
    margin-left: 18px;
  }

  .chamber-tape-card {
    min-height: 0;
    grid-template-rows: 155px auto 1fr auto;
  }

  .chamber-reel::before,
  .chamber-reel::after {
    width: 68px;
    height: 68px;
  }

  .chamber-tape-hero h1 {
    font-size: clamp(3.4rem, 17vw, 5.8rem);
  }

  .chamber-listen-out a {
    width: 100%;
    text-align: center;
  }
}

/* -------------------------------------------------------------------------- */
/* Music room and direct voice archive                                        */
/* -------------------------------------------------------------------------- */

.music-doors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--night-line);
}

/* ⚠️ GPT-introduced listen-out defaults: 32px desktop gap, 7px link gap, existing 860/560px steps. */
.music-listen-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 22px clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--night-line);
  background: rgba(199, 214, 91, 0.025);
}

.music-listen-bar p {
  max-width: 72ch;
  margin: 8px 0 0;
  color: var(--night-muted);
  line-height: 1.55;
}

.music-platform-links,
.project-listen-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.music-platform-links {
  justify-content: flex-end;
}

.music-platform-links a,
.project-listen-links a,
.music-listen-out,
.track-listen {
  border: 1px solid rgba(199, 214, 91, 0.32);
  padding: 7px 9px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.music-platform-links a:hover,
.music-platform-links a:focus-visible,
.project-listen-links a:hover,
.project-listen-links a:focus-visible,
.music-listen-out:hover,
.music-listen-out:focus-visible,
.track-listen:hover,
.track-listen:focus-visible {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--night);
}

.music-door {
  position: relative;
  min-height: 290px;
  padding: 28px;
  border-right: 1px solid var(--night-line);
  background: #11110f;
  transition: background 180ms ease, color 180ms ease;
}

.music-door:last-child {
  border-right: 0;
}

.music-door:hover {
  background: #181815;
}

.music-door-key {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.music-door h2 {
  margin: 78px 0 12px;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4vw, 4.8rem);
  font-weight: 400;
  line-height: 0.95;
}

.music-door p {
  max-width: 38ch;
  margin: 0;
  color: var(--night-muted);
}

.music-door small {
  position: absolute;
  right: 28px;
  bottom: 22px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.voice-door {
  background:
    linear-gradient(135deg, rgba(199, 214, 91, 0.08), transparent 55%),
    #11110f;
}

.provenance-legend {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(36px, 7vw, 110px);
  padding: clamp(42px, 6vw, 86px) clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--night-line);
}

.provenance-legend h2 {
  max-width: 15ch;
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.3vw, 4.8rem);
  font-weight: 400;
  line-height: 1;
}

.provenance-keys {
  display: grid;
  align-content: center;
}

.provenance-keys div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--night-line);
  color: var(--night-muted);
}

.provenance-keys b {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.music-feature {
  padding: 54px clamp(24px, 5vw, 80px) 78px;
  border-bottom: 1px solid var(--night-line);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(240px, 1.1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--night-line);
  background: #0d0d0c;
}

.project-card > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  filter: saturate(0.86);
}

.project-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.project-type,
.song-card small {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-copy h3,
.song-card h3 {
  margin: auto 0 12px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.3vw, 4.1rem);
  font-weight: 400;
  line-height: 0.95;
}

.project-copy p,
.song-card p {
  color: var(--night-muted);
  line-height: 1.6;
}

.project-card-pending {
  opacity: 0.82;
}

.project-listen-links {
  margin-top: 20px;
}

.provenance-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 18px;
}

.provenance-chips span {
  border: 1px solid rgba(199, 214, 91, 0.34);
  padding: 4px 7px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

.song-strip {
  display: grid;
}

.song-card {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--night-line);
}

.song-card img {
  display: block;
  width: 138px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.song-card h3 {
  margin: 7px 0 6px;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
}

.song-card p {
  margin: 0;
}

.song-card-side {
  display: grid;
  justify-items: end;
  gap: 13px;
}

.song-card .provenance-chips {
  justify-content: flex-end;
  max-width: 170px;
  margin: 0;
}

.music-listen-out {
  display: inline-block;
}

.voice-callout {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  padding: clamp(48px, 8vw, 110px) clamp(24px, 8vw, 140px);
  background:
    linear-gradient(90deg, rgba(199, 214, 91, 0.11), transparent 60%),
    #0b0b0a;
}

.voice-callout-mark {
  border-right: 1px solid rgba(199, 214, 91, 0.45);
  padding-right: 34px;
  color: var(--acid);
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1.35;
  text-align: right;
}

.voice-callout h2 {
  margin: 12px 0 16px;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 7.6rem);
  font-weight: 400;
  line-height: 0.9;
}

.voice-callout p {
  max-width: 68ch;
  color: #c7bfb2;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.75;
}

.voice-callout a {
  display: inline-block;
  margin-top: 18px;
  border-bottom: 1px solid var(--acid);
  padding-bottom: 4px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Voice archive */

.voice-archive-head {
  position: relative;
  min-height: 72vh;
  padding: 36px clamp(24px, 6vw, 100px) 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--night-line);
  background:
    linear-gradient(90deg, rgba(199, 214, 91, 0.05), transparent 48%),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(241, 236, 223, 0.018) 28px 29px);
}

.voice-archive-title {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin-top: clamp(120px, 20vh, 230px);
}

.voice-archive-title .eyebrow {
  color: var(--acid);
}

.voice-archive-title h1 {
  max-width: 12ch;
  margin: 20px 0 28px;
  font-family: var(--hand-display);
  font-size: clamp(4.5rem, 10vw, 11rem);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.04em;
}

.voice-archive-title p {
  max-width: 68ch;
  color: var(--night-muted);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.7;
}

.voice-archive-stamp {
  position: absolute;
  top: 60px;
  right: clamp(24px, 6vw, 100px);
  color: rgba(199, 214, 91, 0.18);
  font-family: var(--mono);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 700;
  line-height: 0.78;
  text-align: right;
}

.voice-register {
  padding: 52px clamp(24px, 5vw, 80px) 76px;
}

.voice-record-row {
  display: grid;
  grid-template-columns: 72px minmax(260px, 1fr) minmax(300px, 0.8fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
}

.voice-record-number,
.voice-record-open,
.voice-record-meta {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.voice-record-number,
.voice-record-open {
  color: var(--acid);
}

.voice-record-title small {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.voice-record-title h3 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  font-weight: 400;
  line-height: 1;
}

.voice-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--night-muted);
}

.voice-record-meta span {
  border: 1px solid var(--night-line);
  padding: 5px 7px;
}

.voice-boundary {
  margin: 0 clamp(24px, 5vw, 80px) 80px;
  border-left: 3px solid var(--acid);
  padding: 18px 22px;
  background: rgba(199, 214, 91, 0.04);
  color: var(--night-muted);
}

.voice-boundary b {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voice-boundary p {
  max-width: 80ch;
  margin: 7px 0 0;
}

/* Direct recording detail */

.recording-hero {
  display: grid;
  grid-template-columns: 150px minmax(360px, 1fr) minmax(240px, 0.4fr);
  gap: clamp(30px, 6vw, 92px);
  min-height: 82vh;
  padding: clamp(34px, 6vw, 90px);
  border-bottom: 1px solid var(--night-line);
  background:
    radial-gradient(circle at 72% 24%, rgba(199, 214, 91, 0.08), transparent 26%),
    repeating-linear-gradient(0deg, transparent 0 20px, rgba(241, 236, 223, 0.018) 20px 21px);
}

.recording-label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--night-line);
  padding-right: 26px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.recording-label b {
  color: var(--acid);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 400;
  writing-mode: vertical-rl;
}

.recording-title {
  align-self: center;
}

.recording-title .eyebrow {
  color: var(--acid);
}

.recording-title h1 {
  margin: 24px 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 9.5rem);
  font-weight: 400;
  line-height: 0.85;
}

.recording-title > p {
  max-width: 58ch;
  color: #c9c1b4;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.7;
}

.recording-spec {
  align-self: end;
  display: grid;
}

.recording-spec div {
  padding: 14px 0;
  border-bottom: 1px solid var(--night-line);
}

.recording-spec small,
.recording-spec b {
  display: block;
}

.recording-spec small {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recording-spec b {
  margin-top: 5px;
  font-family: var(--serif);
  font-weight: 400;
}

.recording-player {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border-bottom: 1px solid var(--night-line);
}

.tape-index {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  padding: 28px;
  border-right: 1px solid var(--night-line);
  background:
    repeating-linear-gradient(0deg, transparent 0 12px, rgba(199, 214, 91, 0.05) 12px 13px),
    #0d0d0c;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.player-body {
  align-self: center;
  max-width: 960px;
  padding: clamp(42px, 8vw, 100px);
}

.player-body h2 {
  max-width: 16ch;
  margin: 14px 0 30px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 5.6rem);
  font-weight: 400;
  line-height: 1;
}

.player-body audio {
  width: min(100%, 760px);
  filter: sepia(0.12) saturate(0.6);
}

.player-body > p {
  max-width: 70ch;
  margin-top: 22px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.7;
}

.recording-context,
.provenance-sheet,
.lyrics-sheet {
  display: grid;
  grid-template-columns: minmax(250px, 0.65fr) minmax(360px, 1.35fr);
  gap: clamp(42px, 8vw, 120px);
  padding: clamp(50px, 8vw, 110px) clamp(24px, 7vw, 120px);
  border-bottom: 1px solid var(--night-line);
}

.recording-context h2,
.provenance-sheet h2,
.lyrics-sheet h2 {
  max-width: 10ch;
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 5.4rem);
  font-weight: 400;
  line-height: 0.98;
}

.recording-context > div:last-child {
  align-self: center;
  max-width: 64ch;
  color: #c9c1b4;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.8;
}

.provenance-sheet dl {
  margin: 0;
}

.provenance-sheet dl div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--night-line);
}

.provenance-sheet dt {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.provenance-sheet dd {
  margin: 0;
  color: #c9c1b4;
}

.lyric-pairs {
  display: grid;
}

.lyric-pairs > div {
  padding: 20px 0;
  border-bottom: 1px solid var(--night-line);
}

.lyric-pairs p {
  margin: 0;
}

.lyric-pairs p[lang="zh-Hant"] {
  color: var(--night-text);
  font-family: "Noto Serif CJK TC", "Songti TC", "PMingLiU", serif;
  font-size: 1.2rem;
}

.lyric-pairs p[lang="en"] {
  margin-top: 8px;
  color: var(--night-muted);
  font-family: var(--serif);
  font-style: italic;
}

@media (max-width: 1100px) {
  .music-doors,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .music-door {
    min-height: 230px;
    border-right: 0;
    border-bottom: 1px solid var(--night-line);
  }

  .project-card {
    grid-template-columns: minmax(220px, 0.6fr) minmax(280px, 1.4fr);
  }

  .recording-hero {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .recording-spec {
    grid-column: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 860px) {
  .provenance-legend,
  .recording-context,
  .provenance-sheet,
  .lyrics-sheet {
    grid-template-columns: 1fr;
  }

  .song-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .song-card img {
    width: 110px;
  }

  .song-card .provenance-chips {
    grid-column: 2;
    justify-content: flex-start;
    max-width: none;
  }

  .song-card-side {
    grid-column: 2;
    justify-items: start;
  }

  .voice-record-row {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .voice-record-meta {
    grid-column: 2;
  }

  .recording-player {
    grid-template-columns: 1fr;
  }

  .tape-index {
    flex-direction: row;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--night-line);
  }
}

@media (max-width: 560px) {
  .music-listen-bar {
    padding-right: 18px;
    padding-left: 18px;
  }

  .music-door {
    min-height: 210px;
    padding: 22px 18px;
  }

  .music-door h2 {
    margin-top: 56px;
  }

  .provenance-legend,
  .music-feature {
    padding-left: 18px;
    padding-right: 18px;
  }

  .project-card,
  .song-card {
    grid-template-columns: 1fr;
  }

  .project-card > img {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .song-card img {
    width: 100%;
  }

  .song-card .provenance-chips {
    grid-column: 1;
  }

  .song-card-side {
    grid-column: 1;
  }

  .voice-callout {
    grid-template-columns: 1fr;
    padding: 54px 18px;
  }

  .voice-callout-mark {
    border-right: 0;
    border-bottom: 1px solid rgba(199, 214, 91, 0.45);
    padding: 0 0 18px;
    text-align: left;
  }

  .voice-callout-mark br {
    display: none;
  }

  .voice-archive-head {
    padding: 30px 18px 44px;
  }

  .voice-archive-title {
    margin-top: 180px;
  }

  .voice-archive-stamp {
    top: 45px;
    right: 18px;
  }

  .voice-register {
    padding: 38px 18px 58px;
  }

  .voice-record-row {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .voice-record-meta {
    grid-column: 1;
  }

  .voice-boundary {
    margin-right: 18px;
    margin-left: 18px;
  }

  .recording-hero {
    grid-template-columns: 1fr;
    padding: 32px 18px 48px;
  }

  .recording-label {
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid var(--night-line);
    padding: 0 0 16px;
  }

  .recording-label b {
    font-size: 2rem;
    writing-mode: horizontal-tb;
  }

  .recording-title h1 {
    font-size: clamp(3.8rem, 19vw, 6rem);
  }

  .recording-spec {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .player-body,
  .recording-context,
  .provenance-sheet,
  .lyrics-sheet {
    padding: 44px 18px;
  }

  .provenance-sheet dl div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

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

/* -------------------------------------------------------------------------- */
/* Signal Desk content rooms                                                  */
/* -------------------------------------------------------------------------- */

body.lightbox-open {
  overflow: hidden;
}

.desk-menu .is-current {
  color: var(--acid);
  background: rgba(199, 214, 91, 0.06);
}

.content-page {
  background: var(--night);
  color: var(--night-text);
}

.room-main {
  min-width: 0;
  overflow: hidden;
}

.room-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  grid-template-areas:
    "crumb id"
    "title intro";
  gap: 30px 56px;
  min-height: 450px;
  padding: 32px clamp(24px, 5vw, 80px) 52px;
  border-bottom: 1px solid var(--night-line);
  background:
    linear-gradient(90deg, rgba(199, 214, 91, 0.035), transparent 45%),
    radial-gradient(circle at 78% 16%, rgba(199, 214, 91, 0.08), transparent 26%);
}

.room-crumb,
.room-id,
.room-count,
.local-nav,
.filter-strip,
.section-line,
.art-index,
.art-meta,
.album-facts,
.detail-badge {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ⚠️ GPT-introduced breadcrumb defaults: 0.36rem hit padding, 0.16rem gap, 150ms feedback. */
.room-crumb {
  grid-area: crumb;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.16rem;
  color: var(--night-muted);
  font-size: 0.7rem;
}

.room-crumb a {
  padding: 0.36rem 0.18rem;
  color: inherit;
  text-decoration-color: transparent;
  text-underline-offset: 0.28em;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.room-crumb a:hover,
.room-crumb a:focus-visible {
  color: var(--acid);
  text-decoration-color: currentColor;
}

.room-crumb-home {
  min-width: 1.35rem;
  font-weight: 700;
}

.room-crumb-separator,
.room-crumb-note {
  color: color-mix(in srgb, var(--night-muted) 74%, transparent);
}

.room-crumb [aria-current="page"] {
  color: var(--night-text);
}

/* ⚠️ GPT-introduced hub defaults: two-column routes, 260px cards, 760px single-column step. */
.section-hub-hero {
  padding: clamp(42px, 7vw, 90px) clamp(24px, 6vw, 92px) clamp(50px, 8vw, 104px);
  border-bottom: 1px solid var(--night-line);
  background:
    radial-gradient(circle at 78% 20%, rgba(199, 214, 91, 0.08), transparent 26%),
    linear-gradient(120deg, rgba(164, 63, 50, 0.06), transparent 52%);
}

.section-hub-hero .room-crumb {
  margin-bottom: clamp(64px, 10vw, 132px);
}

.section-hub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.55fr);
  gap: clamp(36px, 7vw, 112px);
  align-items: end;
}

.section-hub-hero h1 {
  max-width: 12ch;
  margin: 18px 0 0;
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.035em;
}

.section-hub-hero-grid > p {
  margin: 0;
  color: var(--night-muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.72;
}

.section-hub-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(22px, 4vw, 54px);
  border-bottom: 1px solid var(--night-line);
}

.section-hub-card {
  min-height: 260px;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--night-line);
  color: inherit;
  background: rgba(244, 239, 226, 0.012);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.section-hub-card:hover,
.section-hub-card:focus-visible {
  color: var(--night-text);
  border-color: var(--acid);
  background: rgba(199, 214, 91, 0.045);
}

.section-hub-card > span,
.section-hub-card > small {
  display: block;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-hub-card strong {
  display: block;
  margin-top: clamp(42px, 6vw, 82px);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  font-weight: 400;
  line-height: 0.94;
}

.section-hub-card p {
  max-width: 48ch;
  margin: 18px 0 30px;
  color: var(--night-muted);
  line-height: 1.65;
}

@media (max-width: 760px) {
  .section-hub-hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  .section-hub-hero .room-crumb {
    margin-bottom: 54px;
  }

  .section-hub-hero-grid,
  .section-hub-routes {
    grid-template-columns: 1fr;
  }

  .section-hub-hero-grid {
    gap: 30px;
  }

  .section-hub-hero h1 {
    font-size: clamp(3.4rem, 18vw, 6.2rem);
  }

  .section-hub-routes {
    padding: 18px;
  }

  .section-hub-card {
    min-height: 220px;
  }
}

.room-id {
  grid-area: id;
  color: var(--night-muted);
  font-size: 0.65rem;
  text-align: right;
}

.room-title {
  grid-area: title;
  align-self: end;
}

.room-title .eyebrow {
  color: var(--acid);
}

.room-title h1 {
  max-width: 11ch;
  margin: 18px 0 0;
  font-family: var(--hand-display);
  font-size: clamp(4rem, 8vw, 8.2rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.035em;
}

.room-intro {
  grid-area: intro;
  align-self: end;
  color: #c0b9ac;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.8vw, 1.42rem);
  line-height: 1.55;
}

.room-intro p {
  margin: 0;
}

.room-intro p + p {
  margin-top: 18px;
}

.room-intro .room-note {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.65;
  letter-spacing: 0.04em;
}

.room-tools {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  min-height: 56px;
  padding: 10px clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--night-line);
  background: rgba(17, 17, 15, 0.94);
  backdrop-filter: blur(16px);
}

.local-nav,
.room-count {
  color: var(--night-muted);
  font-size: 0.64rem;
}

.local-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.local-nav b {
  color: var(--acid);
  font-weight: 500;
}

.section-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 18px;
  align-items: baseline;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--night-line);
  color: var(--night-muted);
  font-size: 0.66rem;
}

.section-line h2 {
  margin: 0;
  color: var(--night-text);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.section-line small {
  color: var(--night-muted);
  font-size: 0.62rem;
}

/* Casting */

.casting-section,
.track-register {
  padding: 50px clamp(24px, 5vw, 80px) 72px;
}

.casting-section + .casting-section {
  border-top: 1px solid var(--night-line);
}

.casting-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 18px;
}

.cast-card {
  min-width: 0;
  border: 1px solid var(--night-line);
  background: #0d0d0c;
}

.cast-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  aspect-ratio: 1.3 / 1;
  overflow: hidden;
}

.cast-side {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #090908;
  color: var(--night-text);
}

.cast-side + .cast-side {
  border-left: 1px solid var(--night-line);
}

.cast-side img,
.cast-side video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: saturate(0.84) contrast(1.05);
  transition: transform 240ms ease, filter 240ms ease;
}

.cast-side:hover img,
.cast-side:hover video {
  transform: scale(1.025);
  filter: saturate(1) contrast(1.02);
}

.media-label {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 7px;
  background: rgba(17, 17, 15, 0.88);
  color: var(--night-text);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.media-label.real {
  background: var(--acid);
  color: var(--night);
}

.cast-side.has-video::after {
  content: "▶";
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--acid);
  color: var(--night);
  font-size: 0.7rem;
}

.cast-card footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 12px 13px 13px;
}

.cast-card footer b {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
}

.cast-card footer small {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Visual log */

.filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-strip button {
  border: 1px solid var(--night-line);
  border-radius: 999px;
  padding: 6px 11px;
  background: transparent;
  color: var(--night-muted);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.filter-strip button[aria-pressed="true"] {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--night);
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
  padding: 24px clamp(18px, 3.5vw, 54px) 80px;
}

.visual-card {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--night-line);
  background: #0d0d0c;
  color: var(--night-text);
  text-align: left;
}

.visual-card[hidden] {
  display: none;
}

button.visual-card {
  width: 100%;
}

.visual-card-wide {
  grid-column: span 2;
}

.visual-image {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #090908;
}

.visual-card-wide .visual-image {
  aspect-ratio: 2 / 1;
}

.visual-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86);
  transition: transform 260ms ease, filter 260ms ease;
}

.visual-card:hover .visual-image img {
  transform: scale(1.02);
  filter: saturate(1);
}

.visual-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px 12px;
  min-height: 54px;
  padding: 10px 12px 11px;
  font-family: var(--mono);
  font-size: 0.69rem;
  line-height: 1.45;
}

.visual-caption b {
  color: var(--night-text);
  font-weight: 600;
}

.visual-caption small {
  color: var(--night-muted);
  font-size: inherit;
}

.detail-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 5px 9px;
  background: var(--acid);
  color: var(--night);
  font-size: 0.58rem;
}

.detail-card {
  border-color: rgba(199, 214, 91, 0.5);
}

/* Art room */

.art-list {
  padding: 34px clamp(24px, 5vw, 80px) 84px;
}

.art-record {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(30px, 6vw, 92px);
  padding: clamp(34px, 6vw, 82px) 0;
  border-bottom: 1px solid var(--night-line);
}

.art-record:nth-child(even) .art-image {
  order: 2;
}

.art-image {
  align-self: start;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--night-line);
  background: #090908;
}

.art-image img {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  filter: saturate(0.82) contrast(1.04);
}

.art-copy {
  align-self: center;
  max-width: 62ch;
}

.art-index {
  margin-bottom: 20px;
  color: var(--acid);
  font-size: 0.63rem;
}

.art-copy h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4.3rem);
  font-weight: 400;
  line-height: 1;
}

.art-meta {
  margin-bottom: 30px;
  color: var(--night-muted);
  font-size: 0.62rem;
  line-height: 1.7;
}

.art-copy > p,
.translation-note p {
  color: #cbc3b6;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.85;
}

.translation-note {
  margin-top: 24px;
  border-top: 1px solid var(--night-line);
  padding-top: 13px;
}

.translation-note summary {
  color: var(--acid);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Album detail */

.album-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(34px, 7vw, 110px);
  align-items: center;
  min-height: 82vh;
  padding: clamp(30px, 5vw, 76px);
  border-bottom: 1px solid var(--night-line);
  background:
    radial-gradient(circle at 20% 46%, rgba(199, 214, 91, 0.1), transparent 27%),
    linear-gradient(135deg, #11110f, #0c0c0b);
}

.album-cover {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(199, 214, 91, 0.35);
  background: #080807;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.album-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.album-heading .room-crumb {
  margin-bottom: 54px;
}

.album-heading .eyebrow {
  color: var(--acid);
}

.album-heading h1 {
  max-width: 9ch;
  margin: 18px 0 26px;
  font-family: var(--hand-display);
  font-size: clamp(5rem, 10vw, 10rem);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.04em;
}

.album-heading > p {
  max-width: 64ch;
  color: #c8c0b3;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.7;
}

.album-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  color: var(--night-muted);
  font-size: 0.62rem;
}

.album-facts span {
  border: 1px solid var(--night-line);
  padding: 7px 10px;
}

.album-facts b {
  color: var(--acid);
}

.album-statement {
  border-bottom: 1px solid var(--night-line);
}

.album-statement > summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 24px clamp(24px, 5vw, 80px);
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.7rem);
}

.album-statement > summary::-webkit-details-marker {
  display: none;
}

.album-statement > summary::before {
  content: "+";
  margin-right: 16px;
  color: var(--acid);
  font-family: var(--mono);
}

.album-statement[open] > summary::before {
  content: "−";
}

.album-statement > summary small {
  align-self: center;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.statement-copy {
  max-width: 76ch;
  margin: 0 auto;
  padding: 24px 24px 72px;
  color: #c9c1b4;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.85;
}

.statement-signature {
  color: var(--acid);
  font-family: var(--mono);
  text-align: right;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.track-card {
  min-width: 0;
}

.track-card button {
  display: grid;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--night-line);
  background: #0d0d0c;
  color: var(--night-text);
  text-align: left;
}

.track-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(0.82);
  transition: filter 220ms ease, transform 220ms ease;
}

.track-card button:hover img {
  filter: saturate(1);
  transform: scale(1.02);
}

.track-card span {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  min-height: 56px;
  align-items: center;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 0.65rem;
  line-height: 1.35;
}

.track-card span b {
  color: var(--acid);
  font-weight: 500;
}

.track-listen {
  display: block;
  border-top: 0;
  text-align: center;
}

.track-card-final button {
  border-color: rgba(199, 214, 91, 0.55);
}

/* Brass and Stick · two-version project */
/* ⚠️ GPT-introduced responsive and spacing defaults for this new page family. */

.brass-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(420px, 1.25fr);
  min-height: 720px;
  border-bottom: 1px solid var(--night-line);
}

.brass-cover {
  position: relative;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--night-line);
  background: #090a08;
  color: var(--night-text);
  cursor: zoom-in;
}

.brass-cover img {
  width: 100%;
  height: 100%;
  min-height: 720px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
  transition: filter 0.22s, transform 0.35s;
}

.brass-cover:hover img,
.brass-cover:focus-visible img {
  filter: saturate(1) contrast(1.08);
  transform: scale(1.012);
}

.brass-cover span {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 8px 10px;
  border: 1px solid var(--night-line);
  background: rgba(9, 10, 8, 0.86);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brass-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 7vw, 110px);
}

.brass-heading .room-crumb {
  margin-bottom: auto;
}

.brass-heading > .eyebrow {
  margin-top: clamp(58px, 10vh, 120px);
}

.brass-heading h1 {
  max-width: 9ch;
  margin: 18px 0 24px;
  font-family: var(--hand-display);
  font-size: clamp(4.6rem, 10vw, 9.6rem);
  font-weight: 400;
  line-height: 0.82;
}

.brass-heading > p {
  max-width: 58ch;
  margin: 0;
  color: var(--night-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.brass-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 20px;
}

.brass-facts span {
  padding: 9px 12px;
  border: 1px solid var(--night-line);
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brass-facts b {
  color: var(--acid);
}

.brass-story-link {
  align-self: flex-start;
  margin-top: 24px;
  color: var(--night-text);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brass-story-link:hover,
.brass-story-link:focus-visible {
  color: var(--acid);
}

.brass-versions {
  padding: 64px clamp(24px, 6vw, 96px) 88px;
  border-bottom: 1px solid var(--night-line);
}

.brass-version-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.brass-version-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--night-line);
  background: rgba(255, 255, 255, 0.015);
}

.brass-version-machine {
  border-top-color: var(--acid);
}

.brass-version-natural {
  border-top-color: #d65b4a;
}

.brass-version-index b {
  display: block;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 2.4rem;
  line-height: 1;
}

.brass-version-natural .brass-version-index b {
  color: #d65b4a;
}

.brass-version-index span {
  display: block;
  margin-top: 10px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brass-version-copy h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
}

.brass-version-copy p {
  margin: 0;
  color: var(--night-muted);
  line-height: 1.65;
}

.brass-audio-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--night-line);
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.brass-version-card audio {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 10px;
}

.brass-version-card > a {
  grid-column: 1 / -1;
  justify-self: end;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brass-version-card > a:hover,
.brass-version-card > a:focus-visible {
  color: var(--acid);
}

.brass-production,
.brass-style,
.brass-lyrics {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(420px, 1.35fr);
  gap: clamp(46px, 8vw, 130px);
  padding: clamp(58px, 8vw, 110px) clamp(24px, 7vw, 120px);
  border-bottom: 1px solid var(--night-line);
}

.brass-production h2,
.brass-style h2,
.brass-lyrics h2 {
  max-width: 9ch;
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
}

.brass-production dl {
  margin: 0;
  border-top: 1px solid var(--night-line);
}

.brass-production dl div {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--night-line);
}

.brass-production dt {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brass-production dd {
  margin: 0;
  color: var(--night-text);
}

.brass-style-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.brass-style-tags span {
  padding: 9px 11px;
  border: 1px solid var(--night-line);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.brass-style details {
  margin-top: 28px;
  border-top: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
}

.brass-style summary {
  padding: 16px 0;
  color: var(--night-text);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-transform: uppercase;
}

.brass-style details p {
  margin: 0;
  padding: 0 0 22px;
  color: var(--night-muted);
  line-height: 1.7;
}

.brass-lyric-sheet {
  counter-reset: lyric-section;
}

.brass-lyric-sheet section {
  position: relative;
  padding: 0 0 34px 76px;
  border-left: 1px solid var(--night-line);
  counter-increment: lyric-section;
}

.brass-lyric-sheet section::before {
  content: counter(lyric-section, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 3px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.brass-lyric-sheet h3 {
  margin: 0 0 12px;
  color: var(--night-text);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brass-lyric-sheet p {
  margin: 0 0 14px;
  color: var(--night-text);
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.85;
}

.brass-lyric-sheet .lyric-direction {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-transform: uppercase;
}

.geist-content-note {
  display: grid;
  gap: 8px;
  margin-bottom: 32px;
  padding: 16px 18px;
  border: 1px solid rgba(199, 214, 91, 0.38);
  background: rgba(199, 214, 91, 0.035);
}

.geist-content-note b {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.geist-content-note span {
  color: var(--night-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.geist-entry-divider {
  width: 100%;
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--night-line);
}

@media (max-width: 1060px) {
  .brass-hero {
    grid-template-columns: 1fr;
  }

  .brass-cover {
    min-height: min(82vw, 720px);
    border-right: 0;
    border-bottom: 1px solid var(--night-line);
  }

  .brass-cover img {
    min-height: min(82vw, 720px);
  }

  .brass-version-grid,
  .brass-production,
  .brass-style,
  .brass-lyrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .brass-heading,
  .brass-versions,
  .brass-production,
  .brass-style,
  .brass-lyrics {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brass-heading h1 {
    font-size: clamp(4rem, 22vw, 7rem);
  }

  .brass-version-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .brass-version-card audio,
  .brass-version-card > a,
  .brass-audio-meta {
    grid-column: 1;
  }

  .brass-production dl div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .brass-lyric-sheet section {
    padding-left: 48px;
  }

  .brass-lyric-sheet section::before {
    left: 12px;
  }
}

/* Diss tracks · seven-file album register */
/* ⚠️ GPT-introduced responsive and spacing defaults for this new page family. */

.diss-hero {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(460px, 1.18fr);
  min-height: 760px;
  border-bottom: 1px solid var(--night-line);
}

.diss-album-cover {
  position: relative;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--night-line);
  background: #090907;
  color: var(--night-text);
  cursor: zoom-in;
}

.diss-album-cover img {
  width: 100%;
  height: 100%;
  min-height: 760px;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.05);
  transition: filter 0.22s, transform 0.35s;
}

.diss-album-cover:hover img,
.diss-album-cover:focus-visible img {
  filter: saturate(0.98) contrast(1.08);
  transform: scale(1.012);
}

.diss-album-cover > span,
.diss-track-media > button > span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 10px;
  border: 1px solid var(--night-line);
  background: rgba(9, 9, 7, 0.88);
  color: var(--night-text);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.diss-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 7vw, 108px);
  background:
    linear-gradient(150deg, rgba(144, 48, 39, 0.11), transparent 44%),
    #0d0d0b;
}

.diss-heading .room-crumb {
  margin-bottom: auto;
}

.diss-heading > .eyebrow {
  margin-top: clamp(56px, 9vh, 110px);
}

.diss-heading h1 {
  max-width: 9ch;
  margin: 18px 0 22px;
  font-family: var(--hand-display);
  font-size: clamp(4.8rem, 10vw, 9.8rem);
  font-weight: 400;
  line-height: 0.82;
}

.diss-heading > p {
  max-width: 62ch;
  margin: 0;
  color: var(--night-muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.diss-heading .diss-thesis {
  margin-top: 16px;
  color: var(--night-text);
}

.diss-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 20px;
}

.diss-facts span {
  padding: 9px 12px;
  border: 1px solid var(--night-line);
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.diss-facts b {
  color: var(--acid);
}

.diss-playlist-link {
  align-self: flex-start;
  margin-top: 24px;
  padding: 10px 12px;
  border: 1px solid rgba(199, 214, 91, 0.4);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diss-playlist-link:hover,
.diss-playlist-link:focus-visible {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--night);
}

.diss-advisory {
  display: grid;
  grid-template-columns: minmax(150px, 0.24fr) minmax(0, 1fr);
  gap: 24px;
  padding: 18px clamp(24px, 7vw, 120px);
  border-bottom: 1px solid rgba(161, 59, 45, 0.48);
  background: rgba(161, 59, 45, 0.055);
  color: var(--night-muted);
  line-height: 1.55;
}

.diss-advisory b {
  color: #d96c57;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
}

.diss-production {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(440px, 1.3fr);
  gap: clamp(44px, 8vw, 128px);
  padding: clamp(58px, 8vw, 108px) clamp(24px, 7vw, 120px);
  border-bottom: 1px solid var(--night-line);
}

.diss-production h2 {
  max-width: 10ch;
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5vw, 5.4rem);
  font-weight: 400;
  line-height: 0.95;
}

.diss-production dl {
  margin: 0;
  border-top: 1px solid var(--night-line);
}

.diss-production dl div {
  display: grid;
  grid-template-columns: minmax(120px, 0.38fr) minmax(0, 1fr);
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--night-line);
}

.diss-production dt {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diss-production dd {
  margin: 0;
  line-height: 1.55;
}

.diss-register {
  padding: 64px clamp(24px, 6vw, 96px) 96px;
  border-bottom: 1px solid var(--night-line);
}

.diss-track-list {
  margin-top: 28px;
  border-top: 1px solid var(--night-line);
}

.diss-track {
  scroll-margin-top: 24px;
  border-bottom: 1px solid var(--night-line);
  background: rgba(255, 255, 255, 0.008);
}

.diss-track[open] {
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 3px 0 0 var(--acid);
}

.diss-track-tail {
  background:
    linear-gradient(90deg, rgba(144, 48, 39, 0.055), transparent 42%),
    rgba(255, 255, 255, 0.008);
}

.diss-track > summary {
  display: grid;
  grid-template-columns: 48px 74px minmax(0, 1fr) 74px 86px;
  gap: 18px;
  align-items: center;
  min-height: 104px;
  padding: 14px 18px;
  list-style: none;
  cursor: pointer;
}

.diss-track > summary::-webkit-details-marker {
  display: none;
}

.diss-track > summary:hover,
.diss-track > summary:focus-visible {
  background: rgba(199, 214, 91, 0.035);
}

.diss-track-number,
.diss-track-duration,
.diss-track-action {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diss-track-number {
  color: var(--acid);
}

.diss-track > summary > img {
  width: 74px;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.62) contrast(1.03);
}

.diss-track-title {
  min-width: 0;
}

.diss-track-title b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.7vw, 2.7rem);
  font-weight: 400;
  line-height: 1.04;
}

.diss-track-title small {
  display: block;
  overflow: hidden;
  margin-top: 8px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.035em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.diss-track-duration {
  color: var(--night-muted);
  text-align: right;
}

.diss-track-action {
  color: var(--night-muted);
  text-align: right;
}

.diss-track[open] .diss-track-action {
  color: var(--acid);
}

.diss-track[open] .diss-track-action::before {
  content: "close ";
}

.diss-track[open] .diss-track-action {
  font-size: 0;
}

.diss-track[open] .diss-track-action::before {
  font-size: 0.66rem;
}

.diss-track-body {
  display: grid;
  grid-template-columns: minmax(300px, 0.65fr) minmax(480px, 1.35fr);
  gap: clamp(36px, 7vw, 100px);
  padding: 22px 22px 64px 140px;
}

.diss-track-media {
  min-width: 0;
}

.diss-track-media > button {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--night-line);
  background: #090907;
  cursor: zoom-in;
}

.diss-track-media > button img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.82);
}

.diss-audio-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 10px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.diss-track-media audio {
  width: 100%;
}

.diss-track-links {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 12px;
}

.diss-track-links a {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.diss-track-links a:hover,
.diss-track-links a:focus-visible {
  color: var(--acid);
}

.diss-style-disclosure {
  margin-top: 24px;
  border-top: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
}

.diss-style-disclosure > summary {
  padding: 14px 0;
  color: var(--night-text);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-transform: uppercase;
}

.diss-style-disclosure p {
  margin: 0;
  padding-bottom: 20px;
  color: var(--night-muted);
  line-height: 1.7;
}

.diss-lyrics {
  min-width: 0;
}

.diss-lyrics-head {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--night-line);
}

.diss-lyrics-head h3 {
  max-width: 18ch;
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.3vw, 4.8rem);
  font-weight: 400;
  line-height: 0.98;
}

.diss-lyric-sheet {
  counter-reset: diss-lyric;
}

.diss-lyric-sheet section {
  position: relative;
  padding: 0 0 30px 68px;
  border-left: 1px solid var(--night-line);
  counter-increment: diss-lyric;
}

.diss-lyric-sheet section::before {
  content: counter(diss-lyric, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 2px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.diss-lyric-sheet h4 {
  margin: 0 0 12px;
  color: var(--night-text);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.diss-lyric-sheet p {
  margin: 0 0 13px;
  color: var(--night-text);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.82;
}

.diss-lyric-sheet .lyric-direction {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.055em;
  line-height: 1.55;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .diss-hero {
    grid-template-columns: 1fr;
  }

  .diss-album-cover,
  .diss-album-cover img {
    min-height: min(84vw, 760px);
  }

  .diss-album-cover {
    border-right: 0;
    border-bottom: 1px solid var(--night-line);
  }

  .diss-production,
  .diss-track-body {
    grid-template-columns: 1fr;
  }

  .diss-track-body {
    padding-left: 92px;
  }

  .diss-track-media {
    max-width: 640px;
  }
}

@media (max-width: 760px) {
  .diss-heading,
  .diss-production,
  .diss-register {
    padding-left: 18px;
    padding-right: 18px;
  }

  .diss-heading h1 {
    font-size: clamp(4.2rem, 23vw, 7rem);
  }

  .diss-advisory {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .diss-production dl div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .diss-track > summary {
    grid-template-columns: 34px 56px minmax(0, 1fr) 52px;
    gap: 10px;
    min-height: 82px;
    padding: 12px 8px;
  }

  .diss-track > summary > img {
    width: 56px;
  }

  .diss-track-title b {
    font-size: clamp(1.15rem, 5.7vw, 1.6rem);
  }

  .diss-track-title small,
  .diss-track-action {
    display: none;
  }

  .diss-track-body {
    gap: 38px;
    padding: 16px 8px 52px 8px;
  }

  .diss-audio-meta,
  .diss-track-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .diss-lyric-sheet section {
    padding-left: 46px;
  }

  .diss-lyric-sheet section::before {
    left: 11px;
  }
}

/* Shared media viewer */

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  visibility: hidden;
  pointer-events: none;
}

.media-lightbox[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
}

.lightbox-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(5, 5, 4, 0.92);
}

.lightbox-frame {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 94vw;
  height: 92vh;
  max-width: 94vw;
  max-height: 92vh;
  padding: 18px;
}

.lightbox-content {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.lightbox-content img,
.lightbox-content video {
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-content img {
  cursor: zoom-in;
}

.media-lightbox.is-actual-size .lightbox-content {
  place-items: start;
}

.media-lightbox.is-actual-size .lightbox-content img {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.lightbox-caption {
  padding-top: 12px;
  color: var(--night-text);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--night-line);
  background: var(--night);
  color: var(--night-text);
  font-size: 1.2rem;
}

.lightbox-zoom {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--night-line);
  background: var(--night);
  color: var(--night-text);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lightbox-zoom[aria-pressed="true"] {
  color: var(--acid);
  border-color: rgba(199, 214, 91, 0.55);
}

.map-entry-pending {
  opacity: 0.5;
  cursor: default;
}

.map-entry-pending small::after {
  content: " · mapped";
  color: var(--acid);
}

@media (max-width: 1180px) {
  .casting-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visual-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .track-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .room-head {
    grid-template-columns: 1fr;
    grid-template-areas:
      "crumb"
      "id"
      "title"
      "intro";
    min-height: 0;
    gap: 16px;
    padding-top: 42px;
  }

  .room-id {
    text-align: left;
  }

  .room-title {
    margin: 52px 0 28px;
  }

  .room-tools {
    position: static;
    align-items: flex-start;
  }

  .room-count {
    max-width: 28ch;
    text-align: right;
  }

  .visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .art-record,
  .album-hero {
    grid-template-columns: 1fr;
  }

  .art-record:nth-child(even) .art-image {
    order: 0;
  }

  .art-image {
    max-width: 620px;
  }

  .album-hero {
    min-height: 0;
  }

  .album-cover {
    max-width: 580px;
  }

  .album-heading .room-crumb {
    margin-bottom: 40px;
  }
}

@media (max-width: 560px) {
  .room-head {
    padding: 30px 18px 38px;
  }

  .room-title h1 {
    font-size: clamp(3.8rem, 20vw, 6rem);
  }

  .room-intro {
    font-size: 1rem;
  }

  .room-tools {
    flex-direction: column;
    padding: 12px 18px;
  }

  .room-count {
    text-align: left;
  }

  .casting-section,
  .track-register {
    padding: 34px 14px 54px;
  }

  .section-line {
    grid-template-columns: 48px 1fr;
  }

  .section-line small {
    grid-column: 2;
  }

  .casting-grid,
  .visual-grid,
  .track-grid {
    grid-template-columns: 1fr;
  }

  .visual-grid {
    padding: 14px 12px 60px;
  }

  .visual-card-wide {
    grid-column: auto;
  }

  .visual-card-wide .visual-image {
    aspect-ratio: 1 / 1;
  }

  .art-list {
    padding: 14px 18px 60px;
  }

  .art-record {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 42px 0;
  }

  .art-copy h2 {
    font-size: 2.3rem;
  }

  .album-hero {
    padding: 30px 18px 48px;
  }

  .album-heading h1 {
    font-size: clamp(4.5rem, 24vw, 7rem);
  }

  .album-statement > summary {
    grid-template-columns: 1fr;
    padding: 20px 18px;
  }

  .album-statement > summary small {
    padding-left: 28px;
  }
}

/* -------------------------------------------------------------------------- */
/* Prompt workbench                                                           */
/* ⚠️ GPT-introduced layout defaults: 1100 / 860 / 560px responsive steps.   */
/* -------------------------------------------------------------------------- */

.prompt-room-page,
.prompt-detail-page {
  --prompt-panel: #151513;
  --prompt-panel-2: #0d0d0c;
  --prompt-faint: rgba(199, 214, 91, 0.055);
}

.prompt-room-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.28fr);
  grid-template-areas:
    "crumb status"
    "title status";
  gap: 50px;
  min-height: 520px;
  padding: 32px clamp(24px, 5vw, 80px) 70px;
  border-bottom: 1px solid var(--night-line);
  background:
    linear-gradient(120deg, var(--prompt-faint), transparent 46%),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(244, 239, 226, 0.025) 79px 80px);
}

.prompt-room-head .room-crumb {
  grid-area: crumb;
}

.prompt-room-title {
  grid-area: title;
  align-self: end;
  max-width: 920px;
}

.prompt-room-title .eyebrow,
.prompt-detail-hero .eyebrow,
.prompt-panel-head .eyebrow,
.module-copy-explainer .eyebrow,
.payload-head .eyebrow,
.build-use-grid .eyebrow,
.settings-record .eyebrow {
  color: var(--acid);
}

.prompt-room-title h1,
.prompt-detail-hero h1 {
  margin: 20px 0 24px;
  font-family: var(--hand-display);
  font-size: clamp(4rem, 8vw, 8.5rem);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.035em;
}

.prompt-room-title h1 {
  max-width: 9.4ch;
}

.prompt-room-title p,
.prompt-detail-hero p {
  max-width: 70ch;
  margin: 0;
  color: #c6beaf;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  line-height: 1.68;
}

.prompt-room-status {
  grid-area: status;
  align-self: end;
  display: grid;
  border-top: 1px solid var(--acid);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prompt-room-status span,
.prompt-room-status small {
  padding: 12px 0;
  border-bottom: 1px solid var(--night-line);
}

.prompt-room-status span {
  color: var(--night-text);
}

.prompt-room-status small {
  color: var(--night-muted);
  font-size: inherit;
}

.prompt-route-picker,
.prompt-route-panel,
.prompt-detail-hero,
.build-evidence,
.build-use-grid,
.settings-record,
.payload-surface,
.module-copy-explainer {
  padding-left: clamp(24px, 5vw, 80px);
  padding-right: clamp(24px, 5vw, 80px);
}

.prompt-route-picker {
  padding-top: 54px;
  padding-bottom: 36px;
}

.prompt-route-picker > header,
.prompt-panel-head {
  max-width: 780px;
}

.prompt-route-picker h2,
.prompt-panel-head h2,
.settings-record h2,
.payload-head h2,
.module-copy-explainer h2,
.build-use-grid h2,
.payload-pending h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
}

.prompt-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--night-line);
  background: var(--night-line);
}

.prompt-route-card {
  min-height: 238px;
  padding: 24px;
  border: 0;
  background: var(--prompt-panel-2);
  color: var(--night-text);
  text-align: left;
}

.prompt-route-card:hover {
  background: #191917;
}

.prompt-route-card[aria-selected="true"] {
  background: var(--acid);
  color: var(--night);
}

.prompt-route-card > span,
.prompt-route-card > small {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.prompt-route-card h3 {
  margin: 38px 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.5vw, 2.55rem);
  font-weight: 400;
  line-height: 1;
}

.prompt-route-card p {
  max-width: 36ch;
  margin: 0 0 22px;
  line-height: 1.55;
}

.prompt-route-card > small {
  opacity: 0.7;
}

.prompt-route-panel {
  padding-top: 52px;
  padding-bottom: 96px;
  border-top: 1px solid var(--night-line);
}

.prompt-panel-head p {
  margin: 14px 0 0;
  color: var(--night-muted);
  line-height: 1.7;
}

.build-finder {
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 76px);
  margin-top: 44px;
}

.finder-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0 0 26px;
  border: 0;
}

.finder-group + .finder-group {
  padding-top: 24px;
  border-top: 1px solid var(--night-line);
}

.finder-group legend {
  width: 100%;
  margin-bottom: 12px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finder-group button,
.payload-actions button,
.payload-pending button,
.finder-empty button {
  border: 1px solid var(--night-line);
  padding: 11px 13px;
  background: transparent;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}

.finder-group button:hover,
.payload-actions button:hover,
.finder-empty button:hover {
  border-color: var(--acid);
  color: var(--night-text);
}

.finder-group button[aria-pressed="true"] {
  border-color: var(--acid);
  background: var(--prompt-faint);
  color: var(--acid);
}

.finder-group:nth-of-type(n + 2) {
  grid-column: 1;
}

.finder-results {
  grid-column: 2;
  grid-row: 1 / span 3;
  min-width: 0;
}

.finder-results-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--night-line);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.finder-results-label small {
  color: var(--night-muted);
  font-size: inherit;
}

.finder-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.32fr);
  gap: 30px;
  min-height: 340px;
  padding: 34px;
  border: 1px solid rgba(199, 214, 91, 0.42);
  border-top: 0;
  background:
    linear-gradient(145deg, rgba(199, 214, 91, 0.08), transparent 56%),
    var(--prompt-panel-2);
}

.finder-result[hidden] {
  display: none;
}

.result-kind,
.finder-result dt,
.finder-result dd,
.finder-result > a,
.mapped-action {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-kind {
  color: var(--acid);
}

.finder-result h3 {
  margin: 20px 0 14px;
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5.2rem);
  font-weight: 400;
  line-height: 0.9;
}

.finder-result p {
  max-width: 56ch;
  color: #c5bdaf;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.7;
}

.finder-result dl {
  margin: 0;
}

.finder-result dl div {
  padding: 11px 0;
  border-bottom: 1px solid var(--night-line);
}

.finder-result dt {
  color: var(--night-muted);
}

.finder-result dd {
  margin: 4px 0 0;
  color: var(--night-text);
  line-height: 1.45;
  text-transform: none;
}

.finder-result > a,
.mapped-action {
  grid-column: 1 / -1;
  align-self: end;
  justify-self: start;
  color: var(--acid);
}

.finder-result > a {
  border-bottom: 1px solid currentColor;
}

.finder-empty {
  min-height: 280px;
  padding: 34px;
  border: 1px dashed var(--night-line);
  border-top: 0;
  color: var(--night-muted);
}

.finder-empty[hidden] {
  display: none;
}

.finder-empty b {
  color: var(--night-text);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.finder-empty p {
  max-width: 54ch;
}

.finder-empty button {
  margin-top: 18px;
  color: var(--acid);
}

.failure-search {
  margin: 42px 0 24px;
}

.failure-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.failure-search input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--acid);
  padding: 14px 0;
  background: transparent;
  color: var(--night-text);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.8rem);
}

.failure-search input::placeholder {
  color: #716b61;
}

.failure-index {
  border-top: 1px solid var(--night-line);
}

.failure-index article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.38fr);
  gap: 30px;
  align-items: center;
  padding: 23px 0;
  border-bottom: 1px solid var(--night-line);
}

.failure-index article[hidden] {
  display: none;
}

.failure-index b {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 400;
}

.failure-index p {
  margin: 4px 0 0;
  color: var(--night-muted);
}

.failure-index article > span,
.failure-no-result {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.failure-no-result {
  padding: 32px 0;
}

.module-shelves {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  border: 1px solid var(--night-line);
  background: var(--night-line);
}

.module-shelf {
  min-height: 230px;
  padding: 24px;
  background: var(--prompt-panel-2);
}

.module-shelf-featured {
  background: var(--acid);
  color: var(--night);
}

.module-shelf > span,
.module-shelf > small {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-shelf h3 {
  margin: 44px 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.3vw, 2.35rem);
  font-weight: 400;
  line-height: 1;
}

.module-shelf p {
  margin: 0;
  color: var(--night-muted);
  line-height: 1.6;
}

.module-shelf-featured p {
  color: rgba(17, 17, 15, 0.72);
}

.module-shelf > small {
  display: block;
  margin-top: 24px;
}

/* Prompt detail pages */

.prompt-detail-hero {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  grid-template-areas:
    "crumb crumb"
    "type title";
  gap: 70px;
  min-height: 570px;
  padding-top: 32px;
  padding-bottom: 70px;
  border-bottom: 1px solid var(--night-line);
  background:
    linear-gradient(120deg, var(--prompt-faint), transparent 54%),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(244, 239, 226, 0.025) 79px 80px);
}

.prompt-detail-hero .room-crumb {
  grid-area: crumb;
}

.prompt-detail-type {
  grid-area: type;
  align-self: end;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.65rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

.prompt-detail-hero > div:last-child {
  grid-area: title;
  align-self: end;
}

.prompt-detail-hero h1 {
  max-width: 10ch;
}

.build-evidence {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--night-line);
}

.build-evidence div {
  min-width: 0;
  padding: 20px 15px 20px 0;
}

.build-evidence div + div {
  padding-left: 15px;
  border-left: 1px solid var(--night-line);
}

.build-evidence small,
.build-evidence b {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.build-evidence small {
  color: var(--night-muted);
}

.build-evidence b {
  margin-top: 6px;
  color: var(--night-text);
  font-weight: 500;
}

.build-use-grid,
.module-copy-explainer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding-top: 60px;
  padding-bottom: 60px;
  background: var(--night-line);
  background-clip: content-box;
}

.build-use-grid > div,
.module-copy-explainer > div {
  padding: 34px;
  background: var(--prompt-panel-2);
}

.build-use-grid p,
.module-copy-explainer p,
.settings-record > p,
.payload-pending p {
  color: var(--night-muted);
  line-height: 1.7;
}

.build-avoid {
  border-top: 3px solid var(--oxide);
}

.build-use {
  border-top: 3px solid var(--acid);
}

.settings-record {
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
}

.settings-record header {
  max-width: 760px;
}

.settings-record dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 34px 0 0;
  background: var(--night-line);
}

.settings-record dl div {
  min-width: 0;
  padding: 18px;
  background: var(--prompt-panel-2);
}

.settings-record dt,
.settings-record dd {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

.settings-record dt {
  color: var(--night-muted);
  text-transform: uppercase;
}

.settings-record dd {
  margin: 8px 0 0;
  color: var(--acid);
}

.settings-record > p {
  max-width: 80ch;
  margin: 24px 0 0;
}

.payload-surface {
  padding-top: 66px;
  padding-bottom: 92px;
}

.payload-pending {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}

.payload-pending > div {
  max-width: 820px;
}

.payload-pending button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.module-copy-explainer {
  border-bottom: 1px solid var(--night-line);
}

.module-copy-explainer h2 {
  font-size: clamp(1.7rem, 3vw, 3rem);
}

.payload-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
}

.payload-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.payload-actions button {
  color: var(--acid);
}

.payload-code {
  margin-top: 28px;
  border: 1px solid var(--night-line);
  background: #090908;
}

.payload-code summary {
  padding: 16px 18px;
  cursor: pointer;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payload-code pre {
  max-height: 68vh;
  margin: 0;
  padding: 26px;
  overflow: auto;
  border-top: 1px solid var(--night-line);
  color: #c8c0b3;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.7;
  white-space: pre-wrap;
  tab-size: 2;
}

.prompt-room-page code,
.prompt-detail-page code {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.88em;
}

@media (max-width: 1100px) {
  .prompt-route-grid,
  .module-shelves {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .build-evidence {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .prompt-room-head {
    grid-template-columns: 1fr;
    grid-template-areas:
      "crumb"
      "title"
      "status";
    min-height: 0;
    gap: 38px;
  }

  .prompt-room-status {
    align-self: auto;
  }

  .build-finder {
    grid-template-columns: 1fr;
  }

  .finder-group:nth-of-type(n + 2),
  .finder-results {
    grid-column: 1;
    grid-row: auto;
  }

  .finder-result {
    grid-template-columns: 1fr;
  }

  .prompt-detail-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "crumb"
      "type"
      "title";
    min-height: 0;
    gap: 32px;
    padding-top: 40px;
  }

  .build-evidence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .build-use-grid,
  .module-copy-explainer,
  .settings-record dl {
    grid-template-columns: 1fr;
  }

  .payload-head,
  .payload-pending {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .payload-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .prompt-room-head,
  .prompt-route-picker,
  .prompt-route-panel,
  .prompt-detail-hero,
  .build-evidence,
  .build-use-grid,
  .settings-record,
  .payload-surface,
  .module-copy-explainer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .prompt-room-head {
    padding-bottom: 46px;
  }

  .prompt-room-title h1,
  .prompt-detail-hero h1 {
    font-size: clamp(3.6rem, 21vw, 6rem);
  }

  .prompt-route-grid,
  .module-shelves,
  .build-evidence {
    grid-template-columns: 1fr;
  }

  .prompt-route-card {
    min-height: 0;
  }

  .prompt-route-card h3,
  .module-shelf h3 {
    margin-top: 24px;
  }

  .finder-result,
  .finder-empty,
  .build-use-grid > div,
  .module-copy-explainer > div {
    padding: 22px;
  }

  .failure-index article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .payload-actions {
    display: grid;
  }

  .payload-code pre {
    padding: 18px;
    font-size: 0.66rem;
  }
}

/* Prompt source library */

.ooc-sidecar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.34fr);
  gap: 1px;
  margin: 0 clamp(24px, 5vw, 80px) 58px;
  border: 1px solid rgba(199, 214, 91, 0.42);
  background: var(--night-line);
}

.ooc-sidecar > div,
.ooc-sidecar > a {
  padding: 28px;
  background: var(--prompt-panel-2);
}

.ooc-sidecar .eyebrow {
  color: var(--acid);
}

.ooc-sidecar h2 {
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.06;
}

.ooc-sidecar p {
  max-width: 70ch;
  margin: 0;
  color: var(--night-muted);
}

.ooc-sidecar > a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--night);
  background: var(--acid);
}

.ooc-sidecar > a span,
.ooc-sidecar > a b {
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ooc-sidecar > a span {
  font-size: 0.62rem;
}

.ooc-sidecar > a b {
  margin-top: 34px;
  font-size: 0.76rem;
  font-weight: 500;
}

.prompt-detail-type {
  white-space: pre-line;
}

.library-evidence b {
  overflow-wrap: anywhere;
}

.payload-download {
  border: 1px solid var(--night-line);
  padding: 11px 13px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.payload-download:hover {
  border-color: var(--acid);
}

.library-variants,
.library-not-found {
  padding: 60px clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--night-line);
}

.library-variants > header {
  max-width: 760px;
  margin-bottom: 30px;
}

.library-variants h2,
.library-not-found h2 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1;
}

.library-variants > header > p {
  color: var(--night-muted);
  line-height: 1.7;
}

.library-variant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.library-variant-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  border: 1px solid var(--night-line);
  background: var(--prompt-panel-2);
}

.library-variant-card > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 16px 18px;
  border-bottom: 1px solid var(--night-line);
}

.library-variant-card > div span,
.library-variant-card button {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.library-variant-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
}

.library-variant-card > p {
  max-height: 360px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: #c6beaf;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.72;
  white-space: pre-wrap;
}

.library-variant-card button {
  border: 0;
  border-top: 1px solid var(--night-line);
  padding: 13px 18px;
  background: transparent;
  text-align: left;
}

.library-variant-card button:hover {
  background: var(--acid);
  color: var(--night);
}

.library-browser {
  padding: 54px clamp(24px, 5vw, 80px) 92px;
}

.library-browser-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: end;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--night-line);
}

.library-browser-tools label {
  display: block;
  margin-bottom: 7px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.library-browser-tools input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--acid);
  padding: 10px 0;
  background: transparent;
  color: var(--night-text);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 2.6rem);
}

.module-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--night-line);
  background: var(--night-line);
}

.module-library-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 300px;
  padding: 23px;
  background: var(--prompt-panel-2);
}

.module-library-card[hidden] {
  display: none;
}

.module-library-card:hover {
  background: #191917;
}

.module-library-card > div:first-child,
.module-library-card > div:last-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.module-library-card > div:first-child small {
  overflow-wrap: anywhere;
  color: inherit;
  font-size: inherit;
  text-align: right;
  text-transform: none;
}

.module-library-card[data-library-status="variant"] > div:first-child span {
  color: var(--oxide);
}

.module-library-card h2 {
  margin: 42px 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
}

.module-library-card p {
  color: var(--night-muted);
  line-height: 1.62;
}

.module-library-card > div:last-child {
  margin-top: 24px;
  padding-top: 13px;
  border-top: 1px solid var(--night-line);
}

.module-library-card > div:last-child span:last-child {
  color: var(--acid);
}

.ooc-library-list {
  padding: 18px clamp(24px, 5vw, 80px) 100px;
}

.ooc-library-record {
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 90px);
  padding: 70px 0;
  border-bottom: 1px solid var(--night-line);
}

.ooc-library-record > header {
  align-self: start;
  position: sticky;
  top: 30px;
}

.ooc-library-record > header .eyebrow {
  color: var(--acid);
}

.ooc-library-record > header h2 {
  margin: 15px 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 400;
  line-height: 0.95;
}

.ooc-library-record > header p {
  color: var(--night-muted);
  line-height: 1.7;
}

.ooc-library-record > header a {
  display: inline-block;
  margin-top: 14px;
  border-bottom: 1px solid currentColor;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ooc-library-record .library-variant-grid {
  grid-template-columns: 1fr;
}

.prompt-route-alias {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.prompt-route-alias main {
  max-width: 720px;
  border: 1px solid var(--night-line);
  padding: clamp(28px, 6vw, 72px);
}

.prompt-route-alias .eyebrow,
.prompt-route-alias a {
  color: var(--acid);
}

.prompt-route-alias h1 {
  margin: 14px 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
}

@media (max-width: 1100px) {
  .library-variant-grid,
  .module-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .ooc-sidecar,
  .library-browser-tools,
  .ooc-library-record {
    grid-template-columns: 1fr;
  }

  .ooc-library-record > header {
    position: static;
  }
}

@media (max-width: 560px) {
  .ooc-sidecar {
    margin-right: 18px;
    margin-left: 18px;
  }

  .library-variants,
  .library-not-found,
  .library-browser,
  .ooc-library-list {
    padding-right: 18px;
    padding-left: 18px;
  }

  .library-variant-grid,
  .module-library-grid {
    grid-template-columns: 1fr;
  }

  .library-variant-card > p {
    max-height: none;
  }

  .ooc-library-record {
    padding: 46px 0;
  }
}

/* -------------------------------------------------------------------------- */
/* Geist room and bilingual long-form                                         */
/* -------------------------------------------------------------------------- */

.geist-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr) minmax(190px, 0.26fr);
  grid-template-areas:
    "crumb crumb crumb"
    "title copy status";
  gap: 54px;
  min-height: 570px;
  padding: 32px clamp(24px, 5vw, 80px) 70px;
  border-bottom: 1px solid var(--night-line);
  background:
    radial-gradient(circle at 18% 60%, rgba(199, 214, 91, 0.09), transparent 27%),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(244, 239, 226, 0.024) 79px 80px);
}

.geist-hero .room-crumb {
  grid-area: crumb;
}

.geist-hero-title {
  grid-area: title;
  align-self: end;
}

.geist-hero-title .eyebrow,
.geist-section-head .eyebrow,
.journal-register-hero .eyebrow,
.geist-article-hero .eyebrow,
.geist-reading-tools .eyebrow {
  color: var(--acid);
}

.geist-hero-title h1,
.journal-register-hero h1,
.geist-article-hero h1 {
  margin: 18px 0 0;
  font-family: var(--hand-display);
  font-size: clamp(5rem, 10vw, 10rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.geist-hero-copy {
  grid-area: copy;
  align-self: end;
  color: #c8c0b3;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  line-height: 1.65;
}

.geist-hero-copy p {
  margin: 0;
}

.geist-hero-copy p + p {
  margin-top: 24px;
}

.geist-definition {
  padding-top: 18px;
  border-top: 1px solid var(--night-line);
  color: var(--night-muted);
  font-size: 0.88em;
}

.geist-definition b {
  color: var(--acid);
}

.geist-hero-status {
  grid-area: status;
  align-self: end;
  display: grid;
  border-top: 1px solid var(--acid);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.geist-hero-status span,
.geist-hero-status small {
  padding: 11px 0;
  border-bottom: 1px solid var(--night-line);
}

.geist-hero-status small {
  color: var(--night-muted);
  font-size: inherit;
  line-height: 1.5;
}

.geist-recent,
.geist-register-section {
  padding: 62px clamp(24px, 5vw, 80px) 82px;
}

.geist-register-section {
  border-top: 1px solid var(--night-line);
}

.geist-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 34px;
}

.geist-section-head h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 400;
  line-height: 1;
}

.geist-section-head > p {
  margin: 0;
  color: var(--night-muted);
  line-height: 1.7;
}

.geist-signal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--night-line);
  background: var(--night-line);
}

.geist-signal {
  display: grid;
  min-height: 280px;
  padding: 26px;
  background: #0d0d0c;
}

.geist-signal-live {
  background:
    linear-gradient(145deg, rgba(199, 214, 91, 0.11), transparent 58%),
    #0d0d0c;
}

.geist-signal > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.geist-signal h3 {
  align-self: end;
  margin: 48px 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 3.4rem);
  font-weight: 400;
  line-height: 0.98;
}

.geist-signal p {
  max-width: 52ch;
  margin: 0;
  color: var(--night-muted);
  line-height: 1.62;
}

.geist-signal > b,
.geist-signal > .mapped-action {
  align-self: end;
  justify-self: start;
  margin-top: 32px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.geist-signal-pending {
  opacity: 0.72;
}

.geist-registers {
  border-top: 1px solid var(--night-line);
}

.geist-register-card {
  display: grid;
  grid-template-columns: minmax(170px, 0.25fr) minmax(220px, 0.42fr) minmax(0, 1fr) auto;
  grid-template-areas:
    "meta title desc action"
    "meta format desc action";
  gap: 8px 30px;
  align-items: center;
  min-height: 150px;
  padding: 22px 0;
  border-bottom: 1px solid var(--night-line);
}

a.geist-register-card:hover {
  background: rgba(199, 214, 91, 0.04);
}

.geist-register-card > div {
  grid-area: meta;
  display: grid;
  gap: 6px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.geist-register-card > div small {
  color: var(--night-muted);
  font-size: inherit;
}

.geist-register-card h3 {
  grid-area: title;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.7rem);
  font-weight: 400;
  line-height: 1;
}

.geist-register-card > b {
  grid-area: format;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.geist-register-card > p {
  grid-area: desc;
  margin: 0;
  color: var(--night-muted);
  line-height: 1.62;
}

.geist-register-action {
  grid-area: action;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.geist-register-pending {
  opacity: 0.62;
}

.geist-register-advisory {
  border-left: 3px solid var(--oxide);
  padding-left: 18px;
}

/* Journal register */

.journal-register-hero,
.geist-article-hero {
  padding: 32px clamp(24px, 8vw, 140px) 74px;
  border-bottom: 1px solid var(--night-line);
  background:
    linear-gradient(120deg, rgba(199, 214, 91, 0.055), transparent 48%),
    var(--night);
}

.journal-register-hero .room-crumb,
.geist-article-hero .room-crumb {
  margin-bottom: 80px;
}

.journal-register-hero h1 {
  max-width: 8ch;
}

.journal-register-hero > p {
  max-width: 72ch;
  margin: 28px 0 0;
  color: #c8c0b3;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.7;
}

.journal-register-list {
  padding: 24px clamp(24px, 5vw, 80px) 90px;
}

.journal-register-entry {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 180px;
  gap: 34px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--night-line);
}

a.journal-register-entry:hover {
  background: rgba(199, 214, 91, 0.035);
}

.journal-entry-date,
.journal-entry-meta {
  display: grid;
  gap: 6px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.journal-entry-date b,
.journal-entry-meta b,
.journal-entry-meta small {
  color: var(--acid);
  font-size: inherit;
  font-weight: 500;
}

.journal-entry-copy h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
}

.journal-entry-copy p {
  max-width: 76ch;
  margin: 0;
  color: var(--night-muted);
  line-height: 1.68;
}

.journal-entry-pending {
  opacity: 0.62;
}

/* Bilingual article */

.geist-article-hero h1 {
  max-width: 10ch;
}

.geist-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.geist-article-meta span {
  border: 1px solid var(--night-line);
  padding: 7px 10px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.geist-article-meta b {
  color: var(--night-text);
  font-weight: 500;
}

.geist-reading-tools {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 14px clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--night-line);
  background: rgba(17, 17, 15, 0.96);
  backdrop-filter: blur(16px);
}

.geist-reading-tools p {
  margin: 4px 0 0;
  color: var(--night-muted);
  font-size: 0.82rem;
}

.geist-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.geist-mode-switch button {
  border: 1px solid var(--night-line);
  padding: 8px 11px;
  background: transparent;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
}

.geist-mode-switch button[aria-pressed="true"] {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--night);
}

.geist-article-body {
  padding: 66px clamp(24px, 8vw, 140px) 100px;
}

.geist-article-body[data-mode="compare"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 7vw, 110px);
  padding-right: clamp(24px, 5vw, 80px);
  padding-left: clamp(24px, 5vw, 80px);
}

.geist-article-column {
  max-width: 780px;
  margin: 0 auto;
}

.geist-article-body[data-mode="compare"] .geist-article-column {
  max-width: none;
  margin: 0;
}

.geist-column-label {
  margin-bottom: 36px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--acid);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.geist-article-column p {
  margin: 0 0 1.45em;
  color: #d2cabc;
  font-family: var(--serif);
  font-size: clamp(1.03rem, 1.4vw, 1.2rem);
  line-height: 1.85;
}

.geist-article-column em {
  color: var(--acid);
}

.geist-article-column a {
  border-bottom: 1px solid currentColor;
  color: var(--acid);
}

.geist-article-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(24px, 5vw, 80px);
  border-top: 1px solid var(--night-line);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .geist-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
    grid-template-areas:
      "crumb crumb"
      "title copy"
      "status status";
  }

  .geist-hero-status {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .geist-hero-status span,
  .geist-hero-status small {
    padding-right: 12px;
    border-right: 1px solid var(--night-line);
  }

  .geist-register-card {
    grid-template-columns: minmax(140px, 0.22fr) minmax(210px, 0.42fr) minmax(0, 1fr);
    grid-template-areas:
      "meta title desc"
      "meta format action";
  }
}

@media (max-width: 860px) {
  .geist-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "crumb"
      "title"
      "copy"
      "status";
    min-height: 0;
  }

  .geist-section-head,
  .geist-reading-tools {
    grid-template-columns: 1fr;
  }

  .geist-register-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "meta"
      "title"
      "format"
      "desc"
      "action";
    gap: 12px;
  }

  .journal-register-entry {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .journal-entry-meta {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .geist-reading-tools {
    position: static;
  }

  .geist-article-body[data-mode="compare"] {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .geist-hero,
  .geist-recent,
  .geist-register-section,
  .journal-register-hero,
  .journal-register-list,
  .geist-article-hero,
  .geist-reading-tools,
  .geist-article-body,
  .geist-article-body[data-mode="compare"],
  .geist-article-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .geist-hero {
    gap: 36px;
    padding-bottom: 46px;
  }

  .geist-hero-title h1,
  .journal-register-hero h1,
  .geist-article-hero h1 {
    font-size: clamp(4.6rem, 23vw, 7rem);
  }

  .geist-hero-status,
  .geist-signal-list {
    grid-template-columns: 1fr;
  }

  .geist-section-head {
    gap: 20px;
  }

  .journal-register-hero .room-crumb,
  .geist-article-hero .room-crumb {
    margin-bottom: 52px;
  }

  .journal-register-entry {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .journal-entry-meta {
    grid-column: 1;
  }

  .geist-mode-switch {
    display: grid;
    grid-template-columns: 1fr;
  }

  .geist-article-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* -------------------------------------------------------------------------- */
/* Systems desk                                                               */
/* -------------------------------------------------------------------------- */

.desk.systems-page {
  --systems-panel: rgba(18, 18, 15, 0.78);
  --systems-panel-deep: #0b0b09;
  --systems-line: rgba(241, 236, 223, 0.17);
  --systems-line-hot: rgba(199, 214, 91, 0.48);
  background:
    linear-gradient(rgba(241, 236, 223, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 236, 223, 0.025) 1px, transparent 1px),
    var(--night);
  background-size: 56px 56px;
}

.systems-page .room-crumb a {
  color: inherit;
}

.systems-page .room-crumb a:hover {
  color: var(--acid);
}

.systems-hero {
  padding: clamp(30px, 6vw, 76px) clamp(24px, 5vw, 80px) 38px;
  border-bottom: 1px solid var(--systems-line);
  background:
    linear-gradient(90deg, rgba(199, 214, 91, 0.04), transparent 54%),
    rgba(11, 11, 9, 0.62);
}

.systems-hero--compact {
  padding-bottom: 32px;
}

.systems-hero .room-crumb {
  margin-bottom: clamp(58px, 9vw, 118px);
}

.systems-hero--compact .room-crumb {
  margin-bottom: clamp(40px, 6vw, 76px);
}

.systems-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.62fr);
  gap: 48px;
  align-items: end;
}

.systems-hero .eyebrow,
.stats-vault-head .eyebrow,
.systems-boundary .eyebrow,
.reality-limits .eyebrow,
.stats-gate .eyebrow,
.stats-production-note .eyebrow {
  color: var(--acid);
}

.systems-hero h1 {
  max-width: 12ch;
  margin: 18px 0 0;
  color: var(--night-text);
  font-family: var(--serif);
  font-size: clamp(3.8rem, 7.4vw, 7.4rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.systems-hero--compact h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 6.6vw, 6.7rem);
}

.systems-hero h1 em {
  color: var(--acid);
  font-weight: 400;
}

.systems-hero-grid > p,
.systems-source-intro {
  margin: 0;
  color: var(--night-muted);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.58;
}

.systems-source-intro br + br {
  display: block;
  content: "";
  margin-top: 16px;
}

.systems-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--systems-line);
  border-bottom: 1px solid var(--systems-line);
}

.systems-route-card {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 4vw, 58px);
  background:
    linear-gradient(145deg, rgba(199, 214, 91, 0.035), transparent 58%),
    var(--systems-panel-deep);
}

.systems-route-card:hover {
  background:
    linear-gradient(145deg, rgba(199, 214, 91, 0.085), transparent 58%),
    #0d0d0a;
}

.systems-route-card--prompt::after,
.systems-route-card--sealed::after {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.systems-route-card--prompt::after {
  content: "LIVE BENCH";
}

.systems-route-card--sealed::after {
  content: "SEALED";
  color: var(--oxide);
}

.systems-route-number {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.systems-route-card strong {
  display: block;
  max-width: 12ch;
  margin-top: 30px;
  color: var(--night-text);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 0.95;
}

.systems-route-card p {
  max-width: 48ch;
  margin: 24px 0 40px;
  color: var(--night-muted);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
}

.systems-route-card small {
  margin-top: auto;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.systems-route-card--sealed small {
  color: var(--oxide);
}

.systems-boundary {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
  gap: 56px;
  padding: clamp(46px, 7vw, 92px) clamp(24px, 5vw, 80px);
  background: rgba(11, 11, 9, 0.78);
  border-bottom: 1px solid var(--systems-line);
}

.systems-boundary h2,
.reality-limits h2,
.stats-production-note h2 {
  max-width: 14ch;
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.2vw, 4.4rem);
  font-weight: 400;
  line-height: 0.98;
}

.systems-boundary p,
.stats-production-note p {
  margin: 0;
  color: var(--night-muted);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.72;
}

.room-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(24px, 5vw, 80px);
  background: #0b0b09;
  border-top: 1px solid var(--systems-line);
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.room-footer a:hover {
  color: var(--acid);
}

/* Reality patch */

.engine-index {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  border-bottom: 1px solid var(--systems-line);
  background: var(--systems-panel-deep);
}

.engine-index a {
  min-width: 0;
  padding: 18px 12px;
  border-right: 1px solid var(--systems-line);
  color: var(--night-muted);
  font-family: var(--mono);
  text-align: center;
}

.engine-index a:last-child {
  border-right: 0;
}

.engine-index a:hover {
  color: var(--night-text);
  background: rgba(199, 214, 91, 0.05);
}

.engine-index b,
.engine-index span {
  display: block;
}

.engine-index b {
  margin-bottom: 8px;
  color: var(--acid);
  font-size: 0.66rem;
}

.engine-index span {
  overflow: hidden;
  font-size: 0.58rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.engine-register {
  background: rgba(11, 11, 9, 0.76);
}

.engine-record {
  border-bottom: 1px solid var(--systems-line);
  scroll-margin-top: 24px;
}

.engine-record summary {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) minmax(150px, 0.28fr) 54px;
  gap: 22px;
  align-items: center;
  padding: 28px clamp(24px, 5vw, 80px);
  cursor: pointer;
  list-style: none;
}

.engine-record summary::-webkit-details-marker,
.thinking-entry summary::-webkit-details-marker {
  display: none;
}

.engine-record summary:hover {
  background: rgba(199, 214, 91, 0.035);
}

.engine-number {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 1.1rem;
}

.engine-name strong,
.engine-name small {
  display: block;
}

.engine-name strong {
  color: var(--night-text);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1;
}

.engine-name small {
  margin-top: 8px;
  color: var(--night-muted);
  font-family: var(--serif);
  font-size: 0.92rem;
}

.engine-count,
.engine-open {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.engine-open {
  color: var(--acid);
  text-align: right;
}

.engine-record[open] .engine-open {
  font-size: 0;
}

.engine-record[open] .engine-open::after {
  content: "close";
  font-size: 0.63rem;
}

.engine-body {
  padding: 0 clamp(24px, 5vw, 80px) clamp(40px, 6vw, 72px) 166px;
}

.engine-summary {
  max-width: 72ch;
  color: var(--night-muted);
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.65;
}

.engine-item-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  background: var(--systems-line);
  border: 1px solid var(--systems-line);
}

.engine-item {
  min-height: 170px;
  padding: 24px;
  background: var(--systems-panel-deep);
}

.engine-item h3 {
  margin: 0 0 14px;
  color: var(--night-text);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.engine-item div {
  color: var(--night-muted);
  font-family: var(--serif);
  line-height: 1.58;
}

.engine-item em,
.engine-closing em,
.reality-limits em {
  color: var(--night-text);
}

.engine-closing {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 2px solid var(--acid);
  background: rgba(199, 214, 91, 0.045);
  color: var(--night-muted);
  font-family: var(--serif);
  line-height: 1.6;
}

.reality-limits {
  padding: clamp(54px, 8vw, 104px) clamp(24px, 5vw, 80px);
  background:
    linear-gradient(125deg, rgba(164, 63, 50, 0.11), transparent 45%),
    var(--systems-panel-deep);
}

.reality-limits-head {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
}

.reality-limits-lead {
  max-width: 76ch;
  margin: 42px 0 0;
  color: var(--night-muted);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.68;
}

.reality-limit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  background: var(--systems-line);
  border: 1px solid var(--systems-line);
}

.reality-limit-grid article {
  padding: clamp(28px, 4vw, 48px);
  background: #0b0b09;
}

.reality-limit-grid h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
}

.reality-limit-grid ul {
  margin: 24px 0 0;
  padding-left: 20px;
  color: var(--night-muted);
  font-family: var(--serif);
  line-height: 1.65;
}

.reality-limit-grid li + li {
  margin-top: 18px;
}

/* Thinking archive */

.thinking-register {
  background: rgba(11, 11, 9, 0.76);
}

.thinking-page .systems-hero h1 {
  max-width: 16ch;
  line-height: 0.98;
}

.thinking-entry {
  border-bottom: 1px solid var(--systems-line);
}

.thinking-entry summary {
  display: grid;
  grid-template-columns: 42px 120px minmax(0, 1fr) 105px 48px;
  gap: 22px;
  align-items: start;
  padding: 32px clamp(24px, 5vw, 80px);
  cursor: pointer;
  list-style: none;
}

.thinking-entry summary:hover {
  background: rgba(199, 214, 91, 0.035);
}

.thinking-index,
.thinking-entry time,
.thinking-kind,
.thinking-open,
.thinking-question span,
.thinking-question small,
.thinking-speaker {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.thinking-index {
  color: var(--acid);
}

.thinking-entry time,
.thinking-kind {
  color: var(--night-muted);
}

.thinking-title strong,
.thinking-title small {
  display: block;
}

.thinking-title strong {
  max-width: 34ch;
  color: var(--night-text);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.6rem);
  font-weight: 400;
  line-height: 1.04;
}

.thinking-title small {
  max-width: 70ch;
  margin-top: 12px;
  color: var(--acid);
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.45;
}

.thinking-open {
  color: var(--acid);
  text-align: right;
}

.thinking-entry[open] .thinking-open {
  font-size: 0;
}

.thinking-entry[open] .thinking-open::after {
  content: "close";
  font-size: 0.65rem;
}

.thinking-body {
  padding: 0 clamp(24px, 5vw, 80px) clamp(46px, 7vw, 90px) 184px;
}

.thinking-question {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px 22px;
  max-width: 900px;
  padding: 22px 0;
  border-top: 1px solid var(--systems-line);
  border-bottom: 1px solid var(--systems-line);
}

.thinking-question span {
  color: var(--acid);
}

.thinking-question b {
  color: var(--night-text);
  font-family: var(--serif);
  font-size: 1.04rem;
  font-weight: 400;
}

.thinking-question small {
  grid-column: 2;
  color: var(--night-muted);
}

.thinking-transcript {
  max-width: 900px;
  margin-top: 30px;
}

.thinking-message {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px dashed var(--systems-line);
}

.thinking-speaker {
  color: var(--acid);
}

.thinking-message--llm .thinking-speaker {
  color: var(--night-muted);
}

.thinking-copy {
  color: var(--night-muted);
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.72;
}

.thinking-copy p {
  margin: 0;
}

.thinking-copy p + p {
  margin-top: 16px;
}

.thinking-copy strong,
.thinking-copy em {
  color: var(--night-text);
}

.thinking-copy code,
.thinking-essay code,
.stats-production-note code {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.86em;
}

.thinking-copy .condensed-note {
  display: inline-block;
  margin-top: 16px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thinking-essay {
  max-width: 900px;
  margin-top: 34px;
  color: var(--night-muted);
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 1.75;
}

.thinking-essay > p:first-child {
  margin-top: 0;
}

.thinking-essay strong,
.thinking-essay em {
  color: var(--night-text);
}

.thinking-essay .pipeline-steps {
  margin: 34px 0;
  padding: 0;
  counter-reset: systems-pipeline;
  list-style: none;
}

.thinking-essay .pipeline-steps li {
  counter-increment: systems-pipeline;
  display: grid;
  grid-template-columns: minmax(150px, 0.3fr) minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--systems-line);
}

.thinking-essay .pipeline-steps li::before {
  content: counter(systems-pipeline, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.thinking-essay .pipeline-steps .name {
  grid-column: 1;
  grid-row: 1;
  padding-left: 34px;
  color: var(--night-text);
}

.thinking-essay .pipeline-steps .desc {
  grid-column: 2;
}

/* Stats vault */

.stats-vault-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 44px;
  align-items: end;
  padding: clamp(30px, 6vw, 76px) clamp(24px, 5vw, 80px) 34px;
  border-bottom: 1px solid var(--systems-line);
  background:
    linear-gradient(90deg, rgba(164, 63, 50, 0.08), transparent 50%),
    rgba(11, 11, 9, 0.72);
}

.stats-vault-head .room-crumb {
  margin-bottom: clamp(52px, 8vw, 100px);
}

.stats-vault-head h1 {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: clamp(2.7rem, 6vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
}

.stats-vault-head h1 em {
  color: var(--acid);
  font-family: var(--serif);
  font-weight: 400;
}

.stats-safety {
  padding: 18px 20px;
  border: 1px solid rgba(164, 63, 50, 0.58);
  background: rgba(164, 63, 50, 0.06);
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.6;
}

.stats-safety b,
.stats-safety span {
  display: block;
}

.stats-safety b {
  color: var(--oxide);
  letter-spacing: 0.1em;
}

.stats-safety span {
  margin-top: 6px;
  color: var(--night-muted);
}

.stats-gate {
  display: grid;
  grid-template-columns: minmax(140px, 0.24fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 86px);
  min-height: 520px;
  align-items: center;
  padding: clamp(56px, 9vw, 120px) clamp(24px, 7vw, 110px);
  background: var(--systems-panel-deep);
  border-bottom: 1px solid var(--systems-line);
}

.stats-gate-mark {
  color: rgba(199, 214, 91, 0.11);
  font-family: var(--mono);
  font-size: clamp(7rem, 16vw, 16rem);
  line-height: 0.7;
}

.stats-gate h2 {
  max-width: 18ch;
  margin: 16px 0 22px;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 5.2rem);
  font-weight: 400;
  line-height: 0.94;
}

.stats-gate p {
  max-width: 66ch;
  color: var(--night-muted);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.65;
}

.stats-gate label {
  display: block;
  margin-top: 34px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-token-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 720px;
  margin-top: 10px;
}

.stats-token-row input,
.stats-token-row button,
.stats-dashboard button {
  border: 1px solid var(--systems-line);
  border-radius: 0;
  background: #080807;
  color: var(--night-text);
  font-family: var(--mono);
}

.stats-token-row input {
  min-width: 0;
  padding: 16px;
  border-right: 0;
}

.stats-token-row button {
  padding: 0 20px;
  color: var(--acid);
  cursor: pointer;
}

.stats-gate-status {
  min-height: 1.4em;
  margin-top: 12px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.64rem;
}

.stats-dashboard {
  padding: 34px clamp(24px, 5vw, 80px) clamp(58px, 8vw, 100px);
  background: var(--systems-panel-deep);
  border-bottom: 1px solid var(--systems-line);
}

.stats-dashboard-bar,
.stats-controls {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.stats-dashboard-bar {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--systems-line);
  font-family: var(--mono);
}

.stats-dashboard-bar b {
  color: var(--oxide);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.stats-dashboard-bar span {
  margin-left: 16px;
  color: var(--night-muted);
  font-size: 0.66rem;
}

.stats-dashboard-bar button {
  padding: 8px 12px;
  color: var(--night-muted);
}

.stats-controls {
  padding: 24px 0;
}

.stats-view-controls,
.stats-range-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stats-view-controls button,
.stats-range-controls button {
  padding: 8px 12px;
  color: var(--night-muted);
  font-size: 0.66rem;
  cursor: pointer;
}

.stats-view-controls button.is-active,
.stats-range-controls button.is-active {
  border-color: var(--systems-line-hot);
  color: var(--acid);
}

.stats-range-controls > span {
  align-self: center;
  margin-right: 4px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.stats-headline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--systems-line);
  border: 1px solid var(--systems-line);
}

.stats-headline article {
  min-width: 0;
  padding: 18px;
  background: #080807;
}

.stats-headline span,
.stats-headline strong {
  display: block;
}

.stats-headline span {
  min-height: 2.4em;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.stats-headline strong {
  margin-top: 14px;
  color: var(--night-text);
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 400;
}

.stats-empty {
  min-height: 260px;
  display: grid;
  place-content: center;
  margin-top: 24px;
  padding: 36px;
  border: 1px dashed var(--systems-line);
  text-align: center;
}

.stats-empty span {
  color: var(--oxide);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

.stats-empty strong {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.stats-empty p {
  max-width: 62ch;
  margin: 14px auto 0;
  color: var(--night-muted);
  font-family: var(--serif);
  line-height: 1.58;
}

.stats-production-note {
  display: grid;
  grid-template-columns: minmax(190px, 0.35fr) minmax(0, 1fr);
  gap: 54px;
  padding: clamp(50px, 7vw, 90px) clamp(24px, 5vw, 80px);
  background:
    linear-gradient(120deg, rgba(164, 63, 50, 0.1), transparent 46%),
    rgba(11, 11, 9, 0.82);
  border-bottom: 1px solid var(--systems-line);
}

.stats-production-note h2 {
  max-width: 18ch;
}

.stats-production-note p {
  max-width: 72ch;
  margin-top: 22px;
}

@media (max-width: 1100px) {
  .thinking-page .systems-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .systems-hero-grid,
  .systems-boundary,
  .reality-limits-head,
  .stats-vault-head,
  .stats-production-note {
    grid-template-columns: 1fr;
  }

  .systems-route-card {
    min-height: 280px;
  }

  .engine-index {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .engine-index a:nth-child(4) {
    border-right: 0;
  }

  .engine-index a:nth-child(-n + 4) {
    border-bottom: 1px solid var(--systems-line);
  }

  .engine-record summary {
    grid-template-columns: 60px minmax(0, 1fr) 46px;
  }

  .engine-count {
    grid-column: 2;
  }

  .engine-open {
    grid-column: 3;
    grid-row: 1;
  }

  .engine-body,
  .thinking-body {
    padding-left: clamp(24px, 5vw, 80px);
  }

  .thinking-entry summary {
    grid-template-columns: 42px 100px minmax(0, 1fr) 48px;
  }

  .thinking-kind {
    grid-column: 3;
  }

  .thinking-open {
    grid-column: 4;
    grid-row: 1;
  }

  .stats-headline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .systems-hero,
  .stats-vault-head {
    padding-right: 18px;
    padding-left: 18px;
  }

  .systems-hero .room-crumb,
  .stats-vault-head .room-crumb {
    margin-bottom: 46px;
  }

  .systems-hero-grid {
    gap: 28px;
  }

  .systems-hero h1,
  .systems-hero--compact h1 {
    font-size: clamp(3.5rem, 17vw, 5.6rem);
  }

  .systems-route-grid,
  .systems-boundary,
  .reality-limit-grid {
    grid-template-columns: 1fr;
  }

  .systems-route-card {
    min-height: 250px;
  }

  .systems-boundary,
  .reality-limits,
  .stats-production-note {
    gap: 28px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .room-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 18px;
    padding-left: 18px;
  }

  .engine-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .engine-index a:nth-child(2n) {
    border-right: 0;
  }

  .engine-index a:nth-child(-n + 6) {
    border-bottom: 1px solid var(--systems-line);
  }

  .engine-record summary,
  .thinking-entry summary {
    padding-right: 18px;
    padding-left: 18px;
  }

  .engine-record summary {
    grid-template-columns: 48px minmax(0, 1fr) 42px;
    gap: 14px;
  }

  .engine-name strong {
    font-size: 1.55rem;
  }

  .engine-count {
    font-size: 0.56rem;
  }

  .engine-body,
  .thinking-body {
    padding-right: 18px;
    padding-left: 18px;
  }

  .engine-item-list {
    grid-template-columns: 1fr;
  }

  .engine-item {
    min-height: 0;
  }

  .thinking-entry summary {
    grid-template-columns: 34px minmax(0, 1fr) 42px;
    gap: 12px;
  }

  .thinking-entry time {
    grid-column: 2;
    grid-row: 1;
  }

  .thinking-title {
    grid-column: 2 / 4;
  }

  .thinking-kind {
    grid-column: 2;
  }

  .thinking-open {
    grid-column: 3;
  }

  .thinking-question,
  .thinking-message,
  .thinking-essay .pipeline-steps li {
    grid-template-columns: 1fr;
  }

  .thinking-question small,
  .thinking-essay .pipeline-steps .name,
  .thinking-essay .pipeline-steps .desc {
    grid-column: 1;
  }

  .thinking-essay .pipeline-steps .name {
    padding-left: 34px;
  }

  .stats-gate {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-right: 18px;
    padding-left: 18px;
  }

  .stats-gate-mark {
    font-size: 7rem;
  }

  .stats-token-row {
    grid-template-columns: 1fr;
  }

  .stats-token-row input {
    border-right: 1px solid var(--systems-line);
    border-bottom: 0;
  }

  .stats-token-row button {
    min-height: 48px;
  }

  .stats-dashboard {
    padding-right: 18px;
    padding-left: 18px;
  }

  .stats-dashboard-bar,
  .stats-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-dashboard-bar span {
    display: block;
    margin: 8px 0 0;
  }

  .stats-headline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* -------------------------------------------------------------------------- */
/* Identity room                                                              */
/* ⚠️ GPT-introduced layout defaults for the restored Home content.           */
/* -------------------------------------------------------------------------- */

.identity-page {
  background:
    linear-gradient(rgba(244, 239, 226, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 226, 0.018) 1px, transparent 1px),
    var(--night);
  background-size: 56px 56px;
}

.identity-hero {
  min-height: 520px;
  padding: 32px clamp(24px, 8vw, 140px) 70px;
  border-bottom: 1px solid var(--night-line);
  background:
    radial-gradient(circle at 80% 26%, rgba(199, 214, 91, 0.08), transparent 24%),
    linear-gradient(120deg, rgba(164, 63, 50, 0.08), transparent 48%);
}

.identity-hero .room-crumb {
  margin-bottom: clamp(70px, 11vw, 150px);
}

.identity-hero .eyebrow {
  color: var(--acid);
}

.identity-hero h1 {
  max-width: 8ch;
  margin: 18px 0 0;
  font-family: var(--hand-display);
  font-size: clamp(5rem, 10vw, 10rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.identity-hero > p {
  max-width: 66ch;
  margin: 34px 0 0;
  color: var(--night-muted);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.7;
}

.identity-who {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: 74px clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--night-line);
}

.identity-section-marker {
  justify-self: center;
  color: var(--oxide);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.identity-who-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1fr);
  gap: clamp(38px, 7vw, 108px);
  align-items: start;
}

.identity-prose {
  color: #d8d0c2;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.75;
}

.identity-prose p {
  margin: 0;
}

.identity-prose p + p {
  margin-top: 28px;
}

.identity-prose p:first-of-type {
  color: var(--night-text);
  font-size: 1.18em;
  font-style: italic;
}

.identity-prose em,
.identity-plain em {
  color: var(--acid);
}

.identity-plain {
  padding: 24px 28px;
  border-left: 3px solid var(--acid);
  background: rgba(244, 239, 226, 0.04);
}

.identity-plain > span {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.identity-plain p {
  margin: 14px 0 0;
  color: #d2cabc;
  line-height: 1.8;
}

.identity-principles-section {
  padding: 0 0 90px;
}

.identity-principles-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 34px clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--night-line);
}

.identity-principles-head > span,
.identity-principles-head > small {
  color: var(--oxide);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.identity-principles-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-style: italic;
  font-weight: 400;
}

.identity-principles-head > small {
  color: var(--night-muted);
  text-align: right;
}

.identity-principles-head > small b {
  color: var(--night-text);
  font-size: 1.15em;
  font-weight: 500;
}

.identity-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 28px clamp(24px, 5vw, 80px) 0;
}

.identity-principle {
  min-height: 190px;
  padding: 26px 28px;
  border: 1px solid var(--night-line);
  background: rgba(244, 239, 226, 0.025);
}

.identity-principle > span {
  color: var(--oxide);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.1em;
}

.identity-principle h3 {
  margin: 14px 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2.3rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.05;
}

.identity-principle p {
  max-width: 62ch;
  margin: 0;
  color: var(--night-muted);
  line-height: 1.68;
}

@media (max-width: 860px) {
  .identity-who-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .identity-hero,
  .identity-who,
  .identity-principles-head,
  .identity-principles {
    padding-right: 18px;
    padding-left: 18px;
  }

  .identity-hero {
    min-height: 0;
    padding-bottom: 48px;
  }

  .identity-hero .room-crumb {
    margin-bottom: 58px;
  }

  .identity-hero h1 {
    font-size: clamp(4.6rem, 23vw, 7rem);
  }

  .identity-who {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .identity-section-marker {
    justify-self: start;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .identity-who-grid {
    gap: 34px;
  }

  .identity-plain {
    padding: 20px;
  }

  .identity-principles-head {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .identity-principles-head > small {
    grid-column: 2;
    text-align: left;
  }

  .identity-principles {
    grid-template-columns: 1fr;
  }

  .identity-principle {
    min-height: 0;
    padding: 24px 20px;
  }
}
