/* LYCHEETAH · THE OBSIDIAN ANIMUS CORRIDOR (Isolated Preview)
   Zero generic boxes. Living obsidian void, receding Lycheetah arches,
   hairline bone telemetry, Road ink light shifts, and 100% zero-JS fallback. */

@font-face {
  font-family: "Cormorant";
  src: url("media/fonts/cg.woff") format("woff");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("media/fonts/cgi.woff") format("woff");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("media/fonts/eb.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("media/fonts/ebi.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("media/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #050507;
  --ink: #0a0a0b;
  --bone: #e8dec8;
  --ivory: #f3ede0;
  --dim: rgba(232, 222, 200, 0.58);
  --hair: rgba(232, 222, 200, 0.14);
  --hair-strong: rgba(232, 222, 200, 0.34);

  /* Five Steps of the Road Ink System */
  --umbra: #785296;
  --ignis: #c84a22;
  --vera: #78a0c8;
  --aurea: #c9a96a;
  --gold: #c9a96a;
  --lumen: #f5e4b8;

  --accent: var(--aurea);
  --accent-rgb: 201, 169, 106;

  --display: "Cormorant", Georgia, "Times New Roman", serif;
  --text: "EB Garamond", Georgia, "Times New Roman", serif;
  --label: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.75, 0.15, 1);
}

[hidden] {
  display: none !important;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--void);
  color: var(--ivory);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

:focus-visible {
  outline: 1.5px solid var(--accent);
  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;
}

/* ==========================================================================
   PROGRESSIVE ENHANCEMENT: ZERO-JS STATIC FALLBACK vs LIVE CORRIDOR
   ========================================================================== */

.corridor-app {
  display: none;
}

html.js body.corridor-body {
  overflow: hidden;
  height: 100dvh;
  width: 100vw;
}

html.js .static-corridor {
  display: none;
}

html.js .corridor-app {
  display: block;
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: var(--void);
}

/* Static Zero-JS View (Passes mobile no-JS gate cleanly!) */
.static-corridor {
  min-height: 100vh;
  background: radial-gradient(80% 45% at 50% 0%, rgba(201, 169, 106, 0.12), transparent 65%), var(--void);
  color: var(--ivory);
  padding: 32px clamp(20px, 5vw, 72px) 72px;
}

.static-wrap {
  max-width: 960px;
  margin: 0 auto;
}

.static-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hair);
  font: 600 0.68rem/1 var(--label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.static-nav a {
  color: var(--bone);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}
.static-nav a:hover {
  border-bottom-color: var(--aurea);
}

.static-hero {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--hair);
}

.eyebrow {
  font: 600 0.66rem/1.3 var(--label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.static-hero h1 {
  font: 400 clamp(2.6rem, 7vw, 5.2rem) / 0.92 var(--display);
  margin: 0 0 18px;
}

.static-hero h1 em {
  font-style: italic;
  color: var(--aurea);
}

.static-hero p {
  max-width: 58ch;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--bone);
  margin: 0 0 14px;
}

.static-presences {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--hair);
}

.static-presence {
  padding-left: 16px;
  border-left: 1px solid var(--hair-strong);
}

.static-presence h2 {
  font: 400 1.9rem/1 var(--display);
  margin: 6px 0 10px;
}

.static-presence p {
  margin: 0;
  color: var(--dim);
  line-height: 1.55;
}

.static-creed {
  padding-top: 32px;
  color: var(--dim);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ==========================================================================
   FULL-BLEED DUAL-LAYER GPU SHADER + SACRED GEOMETRY CANVAS
   ========================================================================== */

#animus-gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

#animus-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  cursor: crosshair;
  touch-action: none;
}

/* Subtle organic obsidian film vignette — zero borders */
.corridor-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse 85% 75% at 50% 42%, transparent 32%, rgba(5, 5, 7, 0.72) 100%),
    linear-gradient(to bottom, rgba(5, 5, 7, 0.76) 0%, transparent 16%, transparent 56%, rgba(5, 5, 7, 0.95) 100%);
}

/* ==========================================================================
   ANIMUS CRYSTALLINE SYNC ENTRY VEIL
   ========================================================================== */

.sync-veil {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: var(--void);
  transition: opacity 0.75s var(--ease), transform 0.85s var(--ease), visibility 0.85s;
}

.sync-veil.is-synced {
  opacity: 0;
  transform: scale(1.045);
  visibility: hidden;
  pointer-events: none;
}

.sync-lattice {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(30deg, transparent 49.3%, rgba(232, 222, 200, 0.32) 49.7%, rgba(232, 222, 200, 0.32) 50.3%, transparent 50.7%),
    linear-gradient(-30deg, transparent 49.3%, rgba(201, 169, 106, 0.28) 49.7%, rgba(201, 169, 106, 0.28) 50.3%, transparent 50.7%);
  background-size: 92px 54px;
  mask-image: radial-gradient(circle at 50% 50%, #000 18%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 18%, transparent 72%);
  animation: syncDrift 2.4s linear infinite;
}

@keyframes syncDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 54px, 0 -54px;
  }
}

.sync-core {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
  max-width: 520px;
}

.sync-sigil {
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  position: relative;
}

.sync-sigil::before,
.sync-sigil::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 169, 106, 0.72);
  transform: rotate(45deg);
  animation: syncPulse 1.8s var(--ease) infinite;
}

.sync-sigil::after {
  inset: 11px;
  border-color: rgba(232, 222, 200, 0.55);
  animation-delay: -0.9s;
}

@keyframes syncPulse {
  0%,
  100% {
    transform: rotate(45deg) scale(0.92);
    opacity: 0.45;
  }
  50% {
    transform: rotate(45deg) scale(1.06);
    opacity: 1;
  }
}

.sync-code {
  font: 600 0.64rem/1.4 var(--label);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--aurea);
  margin: 0 0 10px;
}

.sync-title {
  font: 400 clamp(2rem, 5vw, 3.3rem) / 1 var(--display);
  letter-spacing: 0.02em;
  margin: 0 0 18px;
}

.sync-title em {
  font-style: italic;
  color: var(--aurea);
}

.sync-bar {
  width: min(260px, 70vw);
  height: 1px;
  background: var(--hair);
  margin: 0 auto 20px;
  overflow: hidden;
  position: relative;
}

.sync-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--aurea), var(--ivory));
  transform-origin: left;
  animation: syncFill 0.85s var(--ease) forwards;
}

@keyframes syncFill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.sync-skip {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--hair-strong);
  padding: 4px 2px;
  cursor: pointer;
  font: 600 0.62rem/1 var(--label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}
.sync-skip:hover {
  color: var(--ivory);
  border-bottom-color: var(--aurea);
}

/* ==========================================================================
   TOP HAIRLINE TELEMETRY BAR (ZERO HEAVY HEADER BOX)
   ========================================================================== */

.hud-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 58px;
  padding: 0 clamp(16px, 3vw, 36px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(232, 222, 200, 0.08);
  pointer-events: auto;
}

.hud-brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}

.hud-wordmark {
  font: 600 0.72rem/1 var(--label);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ivory);
  white-space: nowrap;
}

.hud-telemetry {
  font: 500 0.6rem/1 var(--label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-doors {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
}

.hud-door {
  position: relative;
  padding: 8px 0;
  font: 600 0.64rem/1 var(--label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.3s var(--ease);
  white-space: nowrap;
}

.hud-door::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.hud-door:hover,
.hud-door[aria-current="page"] {
  color: var(--ivory);
}

.hud-door[aria-current="page"]::after,
.hud-door:hover::after {
  transform: scaleX(1);
}

.hud-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.hud-btn {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 6px 0;
  cursor: pointer;
  font: 600 0.6rem/1 var(--label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.25s, border-color 0.25s;
}

.hud-btn:hover,
.hud-btn[aria-pressed="true"] {
  color: var(--ivory);
  border-bottom-color: var(--accent);
}

.hud-dot {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--dim);
  transition: background 0.3s, box-shadow 0.3s;
}

.hud-btn[aria-pressed="true"] .hud-dot {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.9);
}

/* ==========================================================================
   LEFT VERTICAL ROAD DEPTH RAIL (5 STEPS OF THE ROAD)
   ========================================================================== */

.road-rail {
  position: fixed;
  left: clamp(16px, 2.8vw, 34px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.road-step {
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--dim);
  transition: color 0.3s var(--ease);
}

.road-step-pip {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border: 1px solid rgba(232, 222, 200, 0.42);
  transition: background 0.35s, border-color 0.35s, transform 0.35s, box-shadow 0.35s;
}

.road-step-label {
  font: 600 0.58rem/1 var(--label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.56;
  transition: opacity 0.3s;
}

.road-step:hover,
.road-step.is-active {
  color: var(--ivory);
}

.road-step:hover .road-step-label,
.road-step.is-active .road-step-label {
  opacity: 1;
}

.road-step.is-active .road-step-pip {
  background: var(--step-color, var(--accent));
  border-color: var(--step-color, var(--accent));
  transform: rotate(45deg) scale(1.25);
  box-shadow: 0 0 12px var(--step-color, var(--accent));
}

/* ==========================================================================
   RIGHT SUBTLE WALK HINT / DEPTH TELEMETRY
   ========================================================================== */

.corridor-hint {
  position: fixed;
  right: clamp(16px, 2.8vw, 34px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  writing-mode: vertical-rl;
  font: 600 0.56rem/1 var(--label);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(232, 222, 200, 0.36);
  pointer-events: none;
  user-select: none;
}

/* Ephemeral Animus Memory Threshold Whisper */
.landmark-whisper {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  z-index: 16;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  max-width: min(560px, 82vw);
}

.landmark-whisper.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.landmark-whisper strong {
  display: block;
  font: 600 0.58rem/1.2 var(--label);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.landmark-whisper span {
  font: 400 1.02rem/1.35 var(--display);
  font-style: italic;
  color: rgba(232, 222, 200, 0.86);
  text-shadow: 0 2px 18px rgba(5, 5, 7, 0.95);
}

/* ==========================================================================
   5-SCENE GUIDED JOURNEY WALKTHROUGH OVERLAY (CINEMA MODE, ZERO BOXES)
   ========================================================================== */

body.is-journey .corridor-console {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(18px);
}

.corridor-console {
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.journey-stage {
  position: fixed;
  left: 50%;
  bottom: clamp(26px, 5vh, 54px);
  transform: translateX(-50%) translateY(14px);
  z-index: 22;
  width: min(740px, calc(100vw - 36px));
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

body.is-journey .journey-stage {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.journey-eyebrow {
  font: 600 0.62rem/1.3 var(--label);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(243, 237, 224, 0.88);
  text-shadow: 0 2px 14px rgba(5, 5, 7, 0.96);
  margin: 0 0 10px;
}

.journey-title {
  font: 400 clamp(2.1rem, 5vw, 3.6rem) / 0.96 var(--display);
  margin: 0 0 14px;
  color: var(--ivory);
  text-shadow: 0 4px 28px rgba(5, 5, 7, 0.96);
}

.journey-title em {
  font-style: italic;
  color: var(--accent);
}

.journey-copy {
  max-width: 52ch;
  margin: 0 auto 24px;
  font: 400 clamp(1.06rem, 1.45vw, 1.24rem) / 1.56 var(--text);
  color: rgba(243, 237, 224, 0.9);
  text-shadow: 0 2px 20px rgba(5, 5, 7, 0.98);
}

.journey-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 26px;
}

.journey-btn {
  background: none;
  border: 1px solid rgba(232, 222, 200, 0.34);
  padding: 11px 22px;
  cursor: pointer;
  font: 600 0.64rem/1 var(--label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.journey-btn.is-primary {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.16);
}

.journey-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #050507;
}

.journey-btn.is-quiet {
  border: 0;
  border-bottom: 1px solid rgba(232, 222, 200, 0.26);
  padding: 8px 2px;
  color: var(--dim);
}

.journey-btn.is-quiet:hover {
  background: none;
  color: var(--ivory);
  border-bottom-color: var(--accent);
}

.journey-progress {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.journey-progress i {
  width: 24px;
  height: 1.5px;
  background: rgba(232, 222, 200, 0.22);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}

.journey-progress i.is-lit {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* Human Neural Narration Strip (Aura · Woman / Sol · Wise Elder) */
.journey-voice-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(232, 222, 200, 0.14);
  background: rgba(5, 5, 7, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.voice-bar-label {
  font: 600 0.56rem/1 var(--label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 222, 200, 0.56);
  margin-right: 4px;
}

.voice-pill {
  background: transparent;
  border: 1px solid rgba(232, 222, 200, 0.2);
  color: rgba(232, 222, 200, 0.78);
  padding: 6px 12px;
  cursor: pointer;
  font: 600 0.58rem/1 var(--label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.voice-pill:hover {
  color: var(--ivory);
  border-color: var(--accent);
}

.voice-pill.is-active {
  background: rgba(var(--accent-rgb), 0.18);
  border-color: var(--accent);
  color: var(--ivory);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.24);
}

.voice-pill.voice-replay {
  border-color: rgba(201, 169, 106, 0.45);
  color: var(--gold);
}

.voice-pill.voice-replay.is-speaking {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

/* ==========================================================================
   SMALL ATMOSPHERIC BACKGROUND SOUND JUKEBOX (OPT-IN · MUTED BY DEFAULT)
   ========================================================================== */

.jukebox {
  position: fixed;
  right: clamp(14px, 2.2vw, 28px);
  bottom: clamp(14px, 2.4vh, 24px);
  z-index: 26;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.jukebox-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  background: rgba(8, 8, 11, 0.84);
  border: 1px solid rgba(232, 222, 200, 0.22);
  color: var(--ivory);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font: 600 0.6rem/1 var(--label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.jukebox-pill:hover,
.jukebox-pill[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.22);
}

.jb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(232, 222, 200, 0.35);
  transition: background 0.3s, box-shadow 0.3s;
}

.jukebox.is-playing .jb-dot {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: jbPulse 2.2s ease-in-out infinite;
}

@keyframes jbPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.jukebox-panel {
  width: 274px;
  padding: 14px;
  background: rgba(7, 7, 10, 0.92);
  border: 1px solid rgba(232, 222, 200, 0.2);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.78), 0 0 28px rgba(var(--accent-rgb), 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeRise 0.28s var(--ease) both;
}

.jukebox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(232, 222, 200, 0.12);
}

.jukebox-kicker,
.jb-sublabel {
  font: 600 0.54rem/1 var(--label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.jukebox-close {
  background: none;
  border: 0;
  color: var(--dim);
  cursor: pointer;
  font: 400 1.2rem/1 var(--label);
  padding: 0 4px;
}

.jukebox-close:hover {
  color: var(--ivory);
}

.jukebox-tracks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jb-track {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  padding: 8px 10px;
  text-align: left;
  background: rgba(232, 222, 200, 0.02);
  border: 1px solid rgba(232, 222, 200, 0.1);
  color: rgba(232, 222, 200, 0.76);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.jb-track strong {
  font: 600 0.62rem/1.15 var(--label);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory);
}

.jb-track span {
  font: 400 0.8rem/1.25 var(--text);
  font-style: italic;
  color: var(--dim);
}

.jb-track:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
}

.jb-track.is-active {
  background: rgba(var(--accent-rgb), 0.14);
  border-color: var(--accent);
}

.jb-track.is-active strong {
  color: var(--accent);
}

.jukebox-controls {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.jb-play-btn {
  padding: 7px 11px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--ivory);
  cursor: pointer;
  font: 600 0.58rem/1 var(--label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}

.jb-play-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--ink);
}

.jb-vol-wrap {
  display: flex;
  align-items: center;
}

.jb-vol {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: rgba(232, 222, 200, 0.25);
  outline: none;
  cursor: pointer;
}

.jb-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  background: var(--accent);
  border: 1px solid var(--ivory);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.55);
  cursor: pointer;
}

.jb-vol::-moz-range-thumb {
  width: 11px;
  height: 11px;
  background: var(--accent);
  border: 1px solid var(--ivory);
  border-radius: 0;
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.55);
  cursor: pointer;
}

.jukebox-voices {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid rgba(232, 222, 200, 0.12);
}

.jb-voice-row {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 6px;
}

.jb-voice-row .voice-pill {
  padding: 6px 6px;
  text-align: center;
  font-size: 0.54rem;
  letter-spacing: 0.12em;
}

.jukebox-echoform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(232, 222, 200, 0.12);
  text-decoration: none;
  font: 600 0.56rem/1 var(--label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 222, 200, 0.65);
  transition: color 0.25s;
}

.jukebox-echoform:hover {
  color: var(--gold);
}

/* ==========================================================================
   OPEN-SPACE PRESENCE STAGE & MEMORY STREAM (ZERO CARD BOXES!)
   ========================================================================== */

.corridor-console {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 18;
  width: min(820px, calc(100vw - 32px));
  padding: 16px 0 clamp(18px, 3vh, 30px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.corridor-console > * {
  pointer-events: auto;
}

/* Presence Switcher Row — pure typography & glowing hairline indicator */
.presence-tabs {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: clamp(18px, 4vw, 48px);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(232, 222, 200, 0.12);
}

.presence-tab {
  background: none;
  border: 0;
  padding: 6px 2px 10px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--dim);
  transition: color 0.3s var(--ease);
}

.presence-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 1.5px;
  background: var(--p-color, var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
  box-shadow: 0 0 12px var(--p-color, var(--accent));
}

.presence-tab strong {
  font: 400 clamp(1.35rem, 2.6vw, 1.85rem) / 1 var(--display);
  letter-spacing: 0.04em;
  font-weight: 400;
}

.presence-tab span {
  font: 600 0.54rem/1 var(--label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.65;
}

.presence-tab:hover,
.presence-tab.is-active {
  color: var(--ivory);
}

.presence-tab.is-active strong {
  font-style: italic;
  color: var(--p-color, var(--accent));
}

.presence-tab.is-active::after {
  transform: scaleX(1);
}

/* Open-space streaming log — NO box background, NO borders */
.memory-stream {
  max-height: min(21dvh, 176px);
  overflow-y: auto;
  padding: 4px 6px 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 222, 200, 0.22) transparent;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 100%);
}

.stream-entry {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  animation: fadeRise 0.4s var(--ease) both;
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stream-speaker {
  font: 600 0.58rem/1.4 var(--label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: right;
  color: var(--entry-color, var(--accent));
  padding-top: 3px;
}

.stream-entry.is-user .stream-speaker {
  color: rgba(232, 222, 200, 0.48);
}

.stream-text {
  font: 400 clamp(1rem, 1.35vw, 1.16rem) / 1.52 var(--text);
  color: var(--ivory);
  text-shadow: 0 2px 16px rgba(5, 5, 7, 0.95);
  margin: 0;
}

.stream-entry.is-user .stream-text {
  color: rgba(232, 222, 200, 0.78);
  font-style: italic;
}

/* Quick Memory Prompts — minimal hairline links */
.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

.prompt-chip {
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(232, 222, 200, 0.18);
  padding: 4px 0;
  cursor: pointer;
  font: 500 0.62rem/1.2 var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 222, 200, 0.68);
  transition: color 0.25s, border-color 0.25s;
}

.prompt-chip:hover {
  color: var(--ivory);
  border-bottom-color: var(--accent);
}

/* Open Hairline Input Line — zero rounded box */
.corridor-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(232, 222, 200, 0.3);
  padding: 6px 0 8px;
  transition: border-color 0.3s;
}

.corridor-form:focus-within {
  border-bottom-color: var(--accent);
}

.corridor-input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  font: 400 1.08rem/1.3 var(--text);
  color: var(--ivory);
}

.corridor-input::placeholder {
  color: rgba(232, 222, 200, 0.42);
  font-style: italic;
}

.corridor-send {
  background: none;
  border: 0;
  padding: 6px 2px;
  cursor: pointer;
  font: 600 0.64rem/1 var(--label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.25s, transform 0.25s;
}

.corridor-send:hover {
  color: var(--ivory);
  transform: translateX(3px);
}

.corridor-footnote {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font: 500 0.56rem/1.3 var(--label);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(232, 222, 200, 0.36);
}

/* ==========================================================================
   MOBILE & REDUCED-MOTION ADAPTATIONS
   ========================================================================== */

@media (max-width: 820px) {
  .hud-top {
    grid-template-columns: auto 1fr;
    height: 52px;
  }
  .hud-telemetry,
  .corridor-hint,
  .road-step-label {
    display: none;
  }
  .hud-doors {
    justify-self: end;
    gap: 14px;
  }
  .hud-controls {
    position: fixed;
    top: 62px;
    right: 14px;
    z-index: 16;
  }
  .jukebox {
    top: 96px;
    left: 14px;
    right: auto;
    bottom: auto;
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .jukebox-pill {
    padding: 7px 10px;
    font-size: 0.54rem;
  }
  .jukebox-panel {
    width: min(274px, calc(100vw - 28px));
  }
  .road-rail {
    left: 6px;
    top: 42%;
    gap: 4px;
  }
  .road-step {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }
  .corridor-console {
    width: calc(100vw - 24px);
    padding-bottom: 14px;
    gap: 9px;
  }
  .memory-stream {
    max-height: 27dvh;
  }
  .stream-entry {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
  }
  .prompt-chips {
    gap: 6px 12px;
  }
  .corridor-footnote {
    font-size: 0.5rem;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sync-veil {
    display: none !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
