:root {
  color-scheme: dark;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: #05070D;
  color: #E9E5DC;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
button, input { font: inherit; }

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, #071946, #05070D 70%);
}

.experience { width: min(100vw, 1680px); padding: clamp(12px, 2vw, 28px); }

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  isolation: isolate;
  background: #05070D;
  border: 1px solid #1B1D28;
  box-shadow: 0 24px 100px #000b;
}

#legacy-visual, #midi-signal, .stage-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
#legacy-visual { z-index: 0; border: 0; display: block; background: #05070D; pointer-events: none; }
.stage.audio10-terminal-interactive #legacy-visual { pointer-events: auto; }
.stage.audio10-terminal-interactive #player { pointer-events: none; }
.stage.audio10-terminal-interactive #player :is(button, input, a, .lyrics-panel) { pointer-events: auto; }
#midi-signal { z-index: 1; display: block; pointer-events: none; }

.stage-shade {
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, #05070D88 0%, transparent 35%, transparent 68%, #05070D55 100%),
              linear-gradient(0deg, #05070Dd9 0%, #05070D55 24%, transparent 58%);
}

.record-art {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 20%;
  width: clamp(220px, 26vw, 400px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  filter: drop-shadow(0 18px 32px #0009);
  pointer-events: none;
}
.record-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.record-art[hidden] { display: none; }

.installation, .player { position: absolute; z-index: 3; }

.installation {
  left: clamp(24px, 7vw, 110px);
  top: 50%;
  width: min(460px, 78%);
  transform: translateY(-50%);
}

.eyebrow, .clock-label, .track-index {
  margin: 0;
  color: #B08AE8;
  font-size: clamp(10px, 0.8vw, 13px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 12px 0;
  font-size: clamp(30px, 4.1vw, 64px);
  line-height: 1.08;
  letter-spacing: 0.015em;
  font-weight: 500;
}

.intro-copy, .clock-note {
  max-width: 42ch;
  color: #E9E5DC;
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.55;
}

.album-subtitle {
  margin: 0;
  color: #A6F29A;
  font-size: 11px;
  letter-spacing: .12em;
}

.primary-button {
  margin-top: 18px;
  padding: 14px 20px;
  border: 1px solid #A6F29A;
  border-radius: 2px;
  color: #A6F29A;
  background: #08090E;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.primary-button:hover { transform: translateY(-1px); color: #05070D; background: #A6F29A; }
.landing-actions { display: grid; justify-items: start; gap: 8px; }
.landing-actions > .primary-button { width: 184px; text-align: center; }
.browse-audio-button { margin-top: 0; border-color: #B08AE8; color: #B08AE8; }
.browse-audio-button:hover { color: #05070D; background: #B08AE8; }
.memorial-note {
  max-width: 34ch;
  margin: 10px 0 0;
  color: #625F68;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: .045em;
}
.audio-index { display: flex; flex-direction: column; align-items: flex-start; min-height: 0; }
.audio-index[hidden], #landing-home[hidden] { display: none; }
.audio-index h1 { margin-bottom: 8px; font-size: clamp(27px, 3.2vw, 46px); }
.audio-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  max-height: min(48vh, 360px);
  margin: 14px 0 12px;
  overflow-y: auto;
  padding: 2px 5px 2px 2px;
  scrollbar-color: #5B5963 transparent;
}
.audio-index-button {
  display: flex;
  min-width: 0;
  min-height: 46px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 6px 9px;
  border: 1px solid #A6F29A;
  border-radius: 2px;
  color: #A6F29A;
  background: #08090E;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.audio-index-number { font-size: 9px; letter-spacing: .1em; }
.audio-index-title { overflow: hidden; width: 100%; color: #E9E5DC; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.audio-index-button:hover { color: #05070D; background: #A6F29A; }
.audio-index-button:hover .audio-index-title { color: #05070D; }
.audio-index-button:focus-visible, .index-back-button:focus-visible { outline: 2px solid #E9E5DC; outline-offset: 3px; }
.audio-index-button:disabled { border-color: #45434D; color: #77747D; background: #08090E99; cursor: not-allowed; }
.audio-index-button:disabled .audio-index-title { color: #77747D; }
.index-back-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #8C8990;
  border-radius: 2px;
  color: #C6C2C8;
  background: #08090E;
  font-size: 9px;
  letter-spacing: .08em;
  cursor: pointer;
}
.index-back-button:hover { border-color: #A6F29A; color: #A6F29A; }
.site-link { display: inline-block; margin-top: 8px; color: #E9E5DC; font-size: 12px; letter-spacing: .04em; text-decoration-color: #B08AE8; text-underline-offset: 4px; }
.site-link:hover { color: #A6F29A; }
.primary-button:focus-visible, .play-button:focus-visible, .choice-button:focus-visible, input:focus-visible { outline: 2px solid #E9E5DC; outline-offset: 4px; }

.player {
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 4vw, 58px);
}

.player-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.void-clock { display: grid; justify-items: end; gap: 5px; font-variant-numeric: tabular-nums; }
.void-clock time { color: #A6F29A; font-size: clamp(18px, 2.4vw, 34px); letter-spacing: 0.04em; }
.clock-label { color: #8C8990; font-size: 10px; }

.track-block { margin-top: auto; margin-bottom: clamp(24px, 4vw, 58px); }
.track-index { color: #8C8990; }
.track-block h1 { max-width: 14ch; font-size: clamp(32px, 5vw, 76px); }
.audio-message { min-height: 1em; margin: 10px 0 0; color: #8C8990; font-size: 12px; }
.player.done-mode .track-index, .player.done-mode .audio-message {
  min-height: 0;
  margin: 0;
  color: #8C8990;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .06em;
}

.transport { display: grid; grid-template-columns: minmax(0, 1fr) 54px; align-items: center; gap: 18px; max-width: 720px; }
.seek-row { display: grid; grid-template-columns: 42px minmax(80px, 1fr) 42px; gap: 12px; align-items: center; color: #8C8990; font-size: 12px; font-variant-numeric: tabular-nums; }
.seek-row time:last-child { text-align: right; }
input[type="range"] { width: 100%; accent-color: #A6F29A; cursor: pointer; }

.play-button {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid #A6F29A;
  border-radius: 2px;
  color: #A6F29A;
  background: #08090E;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 0 18px #A6F29A22;
}

.clock-note { margin: 12px 0 0; color: #8C8990; font-size: 11px; }
.player-links { display: flex; align-self: flex-start; align-items: center; gap: 8px; margin-top: 10px; }
.track-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: clamp(12px, 2vw, 30px);
  display: grid;
  gap: 7px;
  transform: translateY(-50%);
}
.track-nav[hidden] { display: none; }
.stage.lyrics-open .track-nav,
.stage.about-open .track-nav { z-index: 2; }
.track-nav-link {
  display: inline-flex;
  min-width: 108px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #8C8990;
  border-radius: 2px;
  color: #C6C2C8;
  background: #08090EED;
  font-size: 9px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.track-nav-link:hover { border-color: #A6F29A; color: #A6F29A; background: #08090E; }
.track-nav-link:focus-visible { outline: 2px solid #E9E5DC; outline-offset: 3px; }
.read-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #A6F29A;
  border-radius: 2px;
  color: #A6F29A;
  background: #08090E;
  font-size: 9px;
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}
.home-button { cursor: pointer; font: inherit; font-size: 9px; }
.captions-toggle[hidden] { display: none; }
.captions-toggle[aria-pressed="false"] { border-color: #B08AE8; color: #B08AE8; }
.captions-toggle[aria-pressed="false"]:hover { color: #05070D; background: #B08AE8; }
.previous-audio-button { width: 28px; padding: 0; font-size: 13px; }
.previous-audio-button[hidden] { display: none; }
.info-download-button { flex: 0 0 auto; align-self: flex-start; margin-top: 12px; text-decoration: none; }
.read-button:hover { color: #05070D; background: #A6F29A; }
.read-button:focus-visible { outline: 2px solid #E9E5DC; outline-offset: 4px; }
.lyrics-panel {
  position: absolute;
  z-index: 6;
  top: clamp(88px, 11vh, 130px);
  right: clamp(20px, 4vw, 58px);
  bottom: clamp(88px, 12vh, 126px);
  display: flex;
  flex-direction: column;
  width: min(420px, 42vw);
  min-height: 0;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid #34333F;
  background: #05070DF2;
  box-shadow: 0 18px 54px #0009;
}
.lyrics-panel[hidden] { display: none; }
.lyrics-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #282832; }
.lyrics-heading-titles { display: grid; gap: 4px; }
.lyrics-heading h2 { margin: 0; color: #E9E5DC; font-size: 12px; line-height: 1.5; font-weight: 500; letter-spacing: .03em; }
.lyrics-subtitle { margin: 0; color: #B08AE8; font-size: 12px; line-height: 1.5; font-weight: 500; letter-spacing: .03em; }
.lyrics-close { flex: 0 0 28px; width: 28px; height: 28px; border: 1px solid #5B5963; color: #E9E5DC; background: transparent; cursor: pointer; font-size: 18px; line-height: 1; }
.lyrics-close:hover { border-color: #A6F29A; color: #A6F29A; }
.lyrics-close:focus-visible { outline: 2px solid #E9E5DC; outline-offset: 3px; }
.lyrics-body { min-height: 0; margin-top: 12px; overflow-y: auto; padding-right: 8px; color: #C6C2C8; scrollbar-color: #5B5963 transparent; }
.lyrics-body p { margin: 0; font-size: 12px; line-height: 1.6; }
.lyrics-body p + p { margin-top: 14px; }
.lyrics-body hr { margin: 20px 0; border: 0; border-top: 1px solid #34333F; }
.about-copy ol { margin: 8px 0 0; padding-left: 22px; font-size: 12px; line-height: 1.6; }
.about-copy li + li { margin-top: 8px; }
.about-copy .about-team-title { margin-top: 20px; color: #B08AE8; letter-spacing: .08em; }
.about-copy blockquote { margin: 16px 0 0; padding-left: 12px; border-left: 1px solid #B08AE8; color: #E9E5DC; font-size: 12px; line-height: 1.6; }
.about-copy .about-social { margin: 18px 0 4px; color: #A6F29A; letter-spacing: .08em; }
.about-copy .about-social a { color: #A6F29A; text-decoration-color: #B08AE8; text-underline-offset: 3px; }
.about-copy .about-social a:hover { color: #E9E5DC; }
.player[hidden], .installation[hidden] { display: none; }
.player.choice-mode .track-index, .player.choice-mode .clock-note { display: none; }

.choice-actions {
  position: absolute;
  z-index: 5;
  top: 64%;
  left: 50%;
  display: flex;
  gap: clamp(10px, 2vw, 24px);
  transform: translate(-50%, -50%);
}
.choice-actions[hidden] { display: none; }
.end-actions {
  position: absolute;
  z-index: 7;
  top: 50%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 14px;
  transform: translate(-50%, -50%);
}
.end-actions[hidden] { display: none; }
#audio13-escape-actions { top: calc(50% + clamp(4rem, 8vw, 6rem)); }
.escape-sequence-result {
  margin: 0;
  color: #A6F29A;
  font-size: clamp(10px, 1.4vw, 12px);
  line-height: 1.8;
  letter-spacing: .04em;
  text-align: center;
  white-space: pre-line;
  text-shadow: 0 0 12px #A6F29A66;
}
.escape-sequence-result[hidden] { display: none; }
.end-countdown { margin: 0; color: #8C8990; font-size: 11px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.end-action-buttons { display: flex; align-items: center; justify-content: center; gap: 12px; }
.next-song, .shuffle-song {
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid #A6F29A;
  border-radius: 2px;
  color: #A6F29A;
  background: #08090E;
  box-shadow: 0 0 24px #05070D99;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .05em;
  transition: color 160ms ease, background 160ms ease;
}
.next-song:hover { color: #05070D; background: #A6F29A; }
.escape-sequence-action:not(.is-found) { animation: escapeSequenceBlink 1.25s steps(2, start) infinite; }
.escape-sequence-action.is-found { border-color: #A6F29A; color: #A6F29A; }
.escape-goodbye-button { min-width: min(100%, 240px); border-color: #E9E5DC; color: #E9E5DC; }
.escape-goodbye-button:hover { border-color: #A6F29A; }
.escape-goodbye-button[hidden] { display: none; }
@keyframes escapeSequenceBlink { 0%, 48% { opacity: 1; } 49%, 100% { opacity: .3; } }
.next-song:disabled, .next-song:disabled:hover {
  border-color: #45434D;
  color: #77747D;
  background: #08090E;
  cursor: not-allowed;
}
.shuffle-song { border-color: #B08AE8; color: #B08AE8; }
.shuffle-song:hover { color: #05070D; background: #B08AE8; }
.next-song:focus-visible, .shuffle-song:focus-visible { outline: 2px solid #E9E5DC; outline-offset: 4px; }
.choice-button {
  min-width: clamp(112px, 13vw, 180px);
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid #8C8990;
  border-radius: 2px;
  color: #E9E5DC;
  background: #08090Eeb;
  box-shadow: 0 0 20px #05070D88;
  cursor: pointer;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.choice-button span { margin-left: 8px; font-size: .78em; letter-spacing: .12em; }
.choice-button:hover { transform: translateY(-2px); }
.choice-accept { border-color: #A6F29A; color: #A6F29A; }
.choice-accept:hover { color: #05070D; background: #A6F29A; }
.choice-decline { border-color: #F04F78; color: #F04F78; }
.choice-decline:hover { color: #05070D; background: #F04F78; }
.choice-actions:not([hidden]) .choice-button {
  animation: choice-attention 1.15s ease-in-out infinite;
}
.choice-actions:not([hidden]) .choice-decline { animation-delay: .18s; }
@keyframes choice-attention {
  0%, 100% { opacity: 1; filter: brightness(1); box-shadow: 0 0 20px #05070D88; }
  50% { opacity: .72; filter: brightness(1.35); box-shadow: 0 0 24px currentColor; }
}

@media (max-width: 620px) {
  body { display: block; }
  .experience { width: 100%; padding: 0; }
  .stage { height: min(100svh, 940px); min-height: 560px; aspect-ratio: auto; }
  #legacy-visual, #midi-signal { top: 0; height: 56.25vw; max-height: 48svh; }
  .stage-shade { top: 0; height: 56.25vw; max-height: 48svh; background: linear-gradient(0deg, #05070D66, #05070D08 70%); }
  .installation { left: 24px; top: calc(min(56.25vw, 48svh) + 28px); bottom: auto; transform: none; width: calc(100% - 48px); }
  .installation.browse-open { top: calc(min(56.25vw, 48svh) + 18px); bottom: 14px; display: flex; flex-direction: column; overflow: hidden; }
  .album-subtitle { text-align: center; }
  .landing-actions { justify-items: center; }
  .memorial-note { margin: 12px auto 0; text-align: center; }
  .primary-button { display: block; margin: 18px auto 0; }
  .browse-audio-button { margin-top: 0; }
  .audio-index { flex: 1; width: 100%; }
  .audio-index .eyebrow { font-size: 9px; }
  .audio-index h1 { margin: 6px 0; font-size: 25px; }
  .audio-index-grid { flex: 1; max-height: none; min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin: 8px 0; }
  .audio-index-button { min-height: 38px; padding: 4px 7px; }
  .audio-index-number { font-size: 8px; }
  .audio-index-title { font-size: 9px; }
  .index-back-button { flex: 0 0 30px; }
  .record-art {
    top: min(28.125vw, 24svh);
    right: auto;
    left: 50%;
    width: min(40vw, 180px);
    transform: translate(-50%, -50%);
  }
  .choice-actions { top: min(36vw, 30.72svh); gap: 8px; width: max-content; max-width: calc(100% - 24px); }
  .choice-button { min-width: 0; min-height: 42px; padding: 8px 12px; font-size: 11px; }
  .end-actions { gap: 10px; width: max-content; max-width: calc(100% - 36px); }
  .end-action-buttons { flex-direction: column; gap: 10px; width: 100%; }
  .next-song, .shuffle-song { width: 100%; min-height: 48px; padding: 0 14px; font-size: 11px; }
  .player { top: min(56.25vw, 48svh); right: 0; bottom: 0; left: 0; min-height: 0; padding: 20px 24px; }
  .player-topline { align-items: flex-start; }
  .track-nav {
    top: 50%;
    right: auto;
    left: 50%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    width: max-content;
    max-width: calc(100% - 24px);
    transform: translate(-50%, -50%);
  }
  .track-nav-link { min-width: 88px; min-height: 32px; font-size: 8px; }
  .track-block { margin-bottom: 12px; }
  .transport { grid-template-columns: minmax(0, 1fr) 48px; gap: 12px; }
  .play-button { width: 48px; height: 48px; }
  .lyrics-panel { top: 14px; right: 14px; bottom: 96px; left: 14px; width: auto; padding: 14px; }
  .lyrics-body p { font-size: 12px; }
}

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