:root {
  color-scheme: dark;
  --bg: #09090b;
  --ink: #f7efd8;
  --muted: #c8b892;
  --line: rgba(247, 239, 216, 0.2);
  --amber: #ffcf57;
  --teal: #7ee7e1;
  --red: #ff654a;
  --blue: #1e3a8a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-font: "Aref Ruqaa", "Scheherazade New", "Amiri", "Palatino Linotype", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 45%, rgba(126, 231, 225, 0.16), transparent 28rem),
    radial-gradient(circle at 82% 64%, rgba(255, 207, 87, 0.11), transparent 25rem),
    var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
a {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 0.8rem;
  background: var(--amber);
  color: #161006;
  font-weight: 900;
}

.skip-link:focus {
  top: 1rem;
}

.room-shell {
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
}

.room-intro {
  position: fixed;
  left: clamp(1rem, 4vw, 3rem);
  top: clamp(1rem, 4vw, 2.5rem);
  z-index: 4;
  max-width: min(35rem, calc(100vw - 2rem));
  padding: 1rem 1.1rem;
  border: 1px solid rgba(247, 239, 216, 0.12);
  border-radius: 0.55rem;
  background: linear-gradient(135deg, rgba(9, 9, 11, 0.58), rgba(9, 9, 11, 0.2));
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  pointer-events: none;
  animation: fadeUp 900ms ease both 250ms;
}

.eyebrow,
.window-label {
  margin: 0 0 0.4rem;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.6rem;
  font-family: var(--display-font);
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.38);
}

.room-intro p:last-child {
  max-width: 33rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.16rem);
  line-height: 1.45;
}

.bedroom-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}

.bedroom-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 22%, transparent 72%, rgba(0, 0, 0, 0.42)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 26%, transparent 76%, rgba(0, 0, 0, 0.35)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 5px);
  opacity: 0.55;
}

.bedroom-art {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  object-fit: cover;
  filter: drop-shadow(0 24px 70px rgba(0, 0, 0, 0.58));
  opacity: 0;
  animation: roomFade 1400ms ease forwards;
}

.constellation-lines {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  opacity: 0.28;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.constellation-lines line {
  stroke: rgba(255, 230, 141, 0.68);
  stroke-width: 1.4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 0.45rem rgba(126, 231, 225, 0.34));
}

.room-shell.pins-on .constellation-lines,
.bedroom-stage:has(.avatar-hub:hover) .constellation-lines,
.bedroom-stage:has(.avatar-hub:focus-visible) .constellation-lines {
  opacity: 0.82;
}

.avatar-hub {
  position: absolute;
  left: 61.5%;
  top: 58.5%;
  z-index: 5;
  display: grid;
  width: clamp(4.4rem, 8vw, 7.25rem);
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  border: 2px solid rgba(255, 247, 211, 0.92);
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 207, 87, 0.28), transparent 30%),
    rgba(9, 9, 11, 0.76);
  box-shadow:
    0 0 0 0.45rem rgba(9, 9, 11, 0.34),
    0 0 2.4rem rgba(126, 231, 225, 0.35);
  color: var(--ink);
  cursor: pointer;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
  text-decoration: none;
  transition: box-shadow 180ms ease, filter 180ms ease, transform 180ms ease;
}

.avatar-hub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.28) contrast(1.28);
  transition: filter 180ms ease;
}

.avatar-hub:hover,
.avatar-hub:focus-visible,
.room-shell.pins-on .avatar-hub {
  box-shadow:
    0 0 0 0.45rem rgba(9, 9, 11, 0.34),
    0 0 3rem rgba(255, 207, 87, 0.35),
    0 0 2.8rem rgba(126, 231, 225, 0.38);
  transform: translate(-50%, -50%) scale(1.03);
}

.avatar-hub:hover img,
.avatar-hub:focus-visible img,
.room-shell.pins-on .avatar-hub img {
  filter: grayscale(0) brightness(1) contrast(1.02);
}

.scene-object {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
}

.scene-object {
  padding: 0;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid rgba(255, 247, 211, 0.95);
  border-radius: 50%;
  background: var(--amber);
  color: var(--amber);
  cursor: pointer;
  box-shadow:
    0 0 0 0 rgba(255, 207, 87, 0.4),
    0 0 18px rgba(255, 207, 87, 0.36);
  transform: translate(-50%, -50%);
  animation: pulsePin 1800ms ease-out infinite;
  transition: box-shadow 160ms ease, filter 160ms ease, transform 160ms ease;
}

.scene-object::after {
  content: "";
  position: absolute;
  inset: -0.5rem;
  border-radius: 50%;
}

.scene-object span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  opacity: 0;
  padding: 0.35rem 0.55rem;
  border-radius: 0.25rem;
  background: rgba(9, 9, 11, 0.75);
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 900;
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-50%, 0.35rem);
  transition: opacity 160ms ease;
}

.scene-object:hover,
.scene-object:focus-visible {
  box-shadow:
    0 0 0 0.5rem rgba(255, 207, 87, 0.14),
    0 0 24px rgba(126, 231, 225, 0.48);
  filter: saturate(1.1);
  transform: translate(-50%, -50%) scale(1.14);
}

.room-shell.pins-on .scene-object {
  box-shadow:
    0 0 0 0.45rem rgba(255, 207, 87, 0.14),
    0 0 26px rgba(126, 231, 225, 0.48);
  filter: saturate(1.2);
  animation-duration: 1100ms;
}

.scene-object:hover span,
.scene-object:focus-visible span {
  opacity: 1;
}

.tv {
  left: 20.5%;
  top: 45.5%;
}

.art-pin {
  left: 61.5%;
  top: 82.5%;
}

.proud-fools {
  left: 33.5%;
  top: 37%;
}

.ape-rock-pin {
  left: 25.5%;
  top: 72.5%;
}

.dante-pin {
  left: 74.5%;
  top: 18%;
}

.stereo {
  left: 37.5%;
  top: 56.5%;
}

.shelf {
  left: 59.7%;
  top: 26.5%;
}

.pc {
  left: 78.5%;
  top: 43%;
}

.essay-stack {
  left: 83.6%;
  top: 62%;
}

.quick-links {
  position: fixed;
  left: 50%;
  bottom: clamp(1rem, 4vw, 2rem);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: min(42rem, calc(100vw - 2rem));
  transform: translateX(-50%);
}

.quick-links a,
.quick-link-button,
.menu-group summary,
.button,
.icon-button {
  min-height: 2.4rem;
  border: 1px solid rgba(247, 239, 216, 0.18);
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.62);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.quick-links a,
.quick-link-button,
.menu-group summary,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.9rem;
}

.quick-links a:hover,
.quick-link-button:hover,
.menu-group summary:hover,
.button:hover {
  border-color: rgba(126, 231, 225, 0.75);
  background: rgba(28, 50, 52, 0.82);
}

.quick-link-button {
  cursor: pointer;
}

.menu-group {
  position: relative;
}

.menu-group summary {
  list-style: none;
  cursor: pointer;
}

.menu-group summary::-webkit-details-marker {
  display: none;
}

.submenu {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  display: grid;
  min-width: 13rem;
  gap: 0.35rem;
  padding: 0.45rem;
  border: 1px solid rgba(247, 239, 216, 0.16);
  border-radius: 0.65rem;
  background: rgba(9, 9, 11, 0.84);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.34);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.menu-group:not([open]) .submenu {
  display: none;
}

.submenu a {
  justify-content: flex-start;
  width: 100%;
}

.modal {
  width: min(58rem, calc(100vw - 1.5rem));
  max-height: min(46rem, calc(100vh - 1.5rem));
  padding: 0;
  border: 2px solid #f7efd8;
  border-radius: 0.35rem;
  background: #151318;
  color: var(--ink);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.7);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: #202027;
}

.modal-bar h2 {
  margin: 0;
  font-size: 1.4rem;
}

.icon-button {
  width: 2.4rem;
  padding: 0;
  color: var(--amber);
  cursor: pointer;
}

.tv-modal {
  width: min(52rem, calc(100vw - 1.5rem));
  border-color: #3d3429;
  background: #16100c;
}

.tv-frame {
  padding: clamp(1rem, 4vw, 2rem);
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 207, 87, 0.08), transparent 16rem),
    #120e0b;
}

.tv-cabinet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7rem;
  gap: clamp(0.75rem, 2vw, 1.2rem);
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 0.45rem solid #3d2d22;
  border-radius: 1.4rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(#6f4b31, #2b1d16);
  box-shadow:
    inset 0 0 0 0.22rem rgba(255, 231, 167, 0.08),
    0 24px 70px rgba(0, 0, 0, 0.5);
}

.tv-screen {
  position: relative;
  overflow: hidden;
  padding: clamp(0.7rem, 2vw, 1rem);
  border: 0.5rem solid #1b1714;
  border-radius: 1rem / 1.4rem;
  background: #050607;
  box-shadow:
    inset 0 0 42px rgba(126, 231, 225, 0.18),
    inset 0 0 0 0.18rem rgba(255, 255, 255, 0.05);
}

.ch-display {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  padding: 0.22rem 0.42rem;
  border: 1px solid rgba(126, 231, 225, 0.45);
  border-radius: 0.15rem;
  background: rgba(4, 7, 7, 0.74);
  color: #9bfff7;
  font-family: "Courier New", monospace;
  font-size: clamp(0.72rem, 2vw, 0.95rem);
  font-weight: 900;
  letter-spacing: 0.04rem;
  text-shadow: 0 0 8px rgba(126, 231, 225, 0.7);
}

.video-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.45rem / 0.7rem;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 6px),
    radial-gradient(circle, rgba(126, 231, 225, 0.25), transparent 58%),
    #050607;
}

.video-frame iframe,
.video-frame video,
.video-frame img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

.video-frame img {
  object-fit: cover;
}

.tv-controls {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.8rem;
  padding: 0.7rem;
  border-radius: 1rem;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0 2px, transparent 2px 7px),
    rgba(20, 13, 9, 0.58);
}

.tv-dial {
  display: grid;
  width: 4.4rem;
  height: 4.4rem;
  place-items: center;
  border: 0.2rem solid #1c1511;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(145deg, #6a655f, #24201d);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow:
    inset -0.2rem -0.2rem 0.45rem rgba(0, 0, 0, 0.45),
    inset 0.16rem 0.16rem 0.3rem rgba(255, 255, 255, 0.12);
}

.tv-dial:hover,
.tv-dial:focus-visible {
  border-color: var(--amber);
  color: var(--amber);
}

.tv-dial.primary {
  width: 5rem;
  height: 5rem;
}

.link-dial {
  width: 3.5rem;
  height: 3.5rem;
  color: var(--teal);
}

.modal-actions,
.album-grid,
.book-list,
.desktop-menu,
.player-display {
  padding: 1rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.button {
  cursor: pointer;
}

.button.ghost {
  color: var(--teal);
}

.poster-viewer {
  display: grid;
  place-items: center;
  overflow: auto;
  min-height: min(34rem, 68vh);
  max-height: 70vh;
  padding: clamp(1rem, 3vw, 2rem);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 0, 0, 0.07) 1px, transparent 1px),
    #e7dfcf;
  background-size: 3rem 3rem;
}

.empty-art-message {
  display: grid;
  gap: 0.45rem;
  min-height: 20rem;
  place-content: center;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

.empty-art-message strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.05;
}

.poster-viewer img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 62vh;
  margin: 0 auto;
  background: #111;
  box-shadow:
    0 1.2rem 3rem rgba(0, 0, 0, 0.28),
    0 0 0 0.55rem #f8f3e7,
    0 0 0 0.7rem #17110d;
  transform-origin: center;
  transition: transform 160ms ease;
}

.gallery-modal {
  width: min(88rem, calc(100vw - 1.5rem));
}

.image-lightbox {
  width: min(82rem, calc(100vw - 1.5rem));
  max-height: min(52rem, calc(100vh - 1.5rem));
}

.lightbox-body {
  display: grid;
  place-items: center;
  min-height: min(32rem, 70vh);
  padding: clamp(1rem, 3vw, 1.5rem);
  background:
    radial-gradient(circle at 50% 20%, rgba(126, 231, 225, 0.12), transparent 18rem),
    #09090b;
}

.lightbox-body img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(74vh, 43rem);
  object-fit: contain;
  border: 1px solid rgba(247, 239, 216, 0.18);
  border-radius: 0.35rem;
  background: #050607;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.45);
}

#posterZoom {
  width: 100%;
  margin: 1rem 0 0;
}

.art-gallery-layout {
  display: grid;
  grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr);
  min-height: min(42rem, calc(100vh - 8rem));
  background: #d7c9b3;
}

.gallery-viewing-room {
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.poster-strip {
  align-content: start;
  max-height: min(42rem, calc(100vh - 8rem));
  overflow: auto;
  border-right: 1px solid rgba(42, 24, 14, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 18rem),
    #24170f;
}

.poster-strip.media-grid {
  grid-template-columns: 1fr;
  gap: 0.65rem;
  padding: 0.8rem;
}

.poster-strip .media-card {
  padding: 0.55rem;
  border-color: rgba(255, 239, 196, 0.16);
  background: rgba(17, 12, 9, 0.76);
}

.poster-strip .media-card img {
  aspect-ratio: 1;
  object-fit: cover;
}

.poster-strip .media-card strong {
  font-size: 0.78rem;
}

.media-grid,
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.9rem;
  padding: 1rem;
}

.media-card,
.album {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  min-height: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: #211d20;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
  text-decoration: none;
}

.media-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.35rem;
  background: rgba(9, 9, 11, 0.42);
}

.media-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.media-card:hover,
.media-card:focus-visible,
.media-card.is-active,
.album.is-active {
  border-color: var(--amber);
  box-shadow: 0 0 28px rgba(255, 207, 87, 0.2);
}

.album-grid .media-card img {
  aspect-ratio: 1;
}

.book-list .media-card img,
.essay-card img {
  aspect-ratio: 4 / 5;
}

.media-card strong,
.essay-card strong {
  color: var(--ink);
  line-height: 1.1;
}

.books-modal {
  background: #15100c;
}

.novel-shelf {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  align-items: end;
  gap: clamp(1rem, 4vw, 2rem);
  padding: clamp(1.4rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem) clamp(2.3rem, 5vw, 3.2rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0 0.15rem, transparent 0.15rem 4rem),
    #2a180e;
}

.novel-shelf::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.05rem;
  height: 1.1rem;
  border-top: 2px solid rgba(255, 220, 157, 0.26);
  border-bottom: 3px solid rgba(0, 0, 0, 0.4);
  background: linear-gradient(#6b3f20, #3a2113);
  content: "";
}

.book-card {
  position: relative;
  z-index: 1;
  justify-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.book-card img {
  width: min(100%, 13.5rem);
  aspect-ratio: 5 / 8;
  object-fit: contain;
  border-radius: 0.16rem 0.35rem 0.35rem 0.16rem;
  background: #080706;
  box-shadow:
    -0.45rem 0 0 #120d0b,
    0 1.2rem 2rem rgba(0, 0, 0, 0.45);
  transform: perspective(30rem) rotateY(-8deg);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.book-card:hover,
.book-card:focus-visible {
  box-shadow: none;
}

.book-card:hover img,
.book-card:focus-visible img {
  transform: perspective(30rem) rotateY(0deg) translateY(-0.35rem);
  box-shadow:
    -0.35rem 0 0 #120d0b,
    0 1.5rem 2.4rem rgba(0, 0, 0, 0.55),
    0 0 2rem rgba(255, 207, 87, 0.16);
}

.book-card strong,
.book-card span {
  display: block;
  margin-top: 0.45rem;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

.player-display {
  margin: 0 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #09090b;
}

.cd-modal {
  width: min(72rem, calc(100vw - 1.5rem));
}

.cd-system {
  display: grid;
  grid-template-columns: minmax(14rem, 21rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.35rem);
  padding: clamp(1rem, 3vw, 1.35rem);
  background:
    radial-gradient(circle at 76% 22%, rgba(126, 231, 225, 0.16), transparent 18rem),
    radial-gradient(circle at 18% 84%, rgba(255, 207, 87, 0.08), transparent 16rem),
    linear-gradient(145deg, #17110d, #07080a);
}

.cd-tower {
  display: grid;
  align-content: start;
  gap: 0;
  padding: 0.9rem 0.7rem 1rem;
  border: 0.5rem solid #201812;
  border-radius: 0.25rem;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.09), transparent 18%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 2.75rem),
    #0d0b0a;
  box-shadow:
    inset 0 0 0 1px rgba(247, 239, 216, 0.08),
    inset 0 -1.2rem 1.5rem rgba(0, 0, 0, 0.34),
    0 1.4rem 3rem rgba(0, 0, 0, 0.35);
  transform: perspective(42rem) rotateY(2deg);
}

.rack-label {
  margin: 0 0 0.55rem;
  padding: 0.32rem 0.5rem;
  border: 1px solid rgba(247, 239, 216, 0.16);
  border-radius: 0.18rem;
  background: rgba(0, 0, 0, 0.34);
  color: var(--teal);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cd-spine {
  position: relative;
  min-height: 2.75rem;
  margin: -1px 0 0;
  padding: 0.35rem 0.65rem 0.35rem 1rem;
  border: 1px solid rgba(247, 239, 216, 0.24);
  border-left: 0.42rem solid var(--teal);
  border-radius: 0.05rem;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 12%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(0, 0, 0, 0.22)),
    #242228;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
  box-shadow:
    inset 0.35rem 0 0 rgba(255, 255, 255, 0.06),
    inset -0.2rem 0 0 rgba(0, 0, 0, 0.32),
    0 0.2rem 0 rgba(0, 0, 0, 0.36);
  transform-origin: left center;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cd-spine::before,
.cd-spine::after {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.cd-spine::before {
  left: 0.45rem;
}

.cd-spine::after {
  right: 0.42rem;
  background: rgba(0, 0, 0, 0.32);
}

.cd-spine span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cd-spine:nth-child(3n) {
  border-left-color: var(--amber);
}

.cd-spine:nth-child(3n + 2) {
  border-left-color: var(--red);
}

.cd-spine:hover,
.cd-spine:focus-visible,
.cd-spine.is-active {
  border-color: var(--amber);
  border-left-color: var(--amber);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent 14%),
    linear-gradient(180deg, rgba(255, 207, 87, 0.13), rgba(0, 0, 0, 0.18)),
    #312c30;
  box-shadow:
    inset 0.35rem 0 0 rgba(255, 255, 255, 0.08),
    0 0 1.1rem rgba(255, 207, 87, 0.18);
  transform: translateX(0.24rem);
}

.cd-player {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0.9rem;
  min-height: 31rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid rgba(247, 239, 216, 0.15);
  border-radius: 1.4rem;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.16), transparent 11rem),
    radial-gradient(circle at 50% 20%, rgba(78, 197, 236, 0.08), transparent 15rem),
    linear-gradient(145deg, #35353a, #101114 58%, #050607);
  box-shadow:
    inset 0 0.25rem 0.5rem rgba(255, 255, 255, 0.12),
    inset 0 -0.75rem 2rem rgba(0, 0, 0, 0.52),
    0 1.8rem 4rem rgba(0, 0, 0, 0.42);
}

.cd-player::before {
  content: "";
  position: absolute;
  inset: 0.85rem;
  border: 1px solid rgba(247, 239, 216, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.cd-player::after {
  content: "OPEN";
  position: absolute;
  right: 1.25rem;
  top: 1.1rem;
  color: rgba(247, 239, 216, 0.52);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 900;
}

.discman-badge {
  justify-self: start;
  margin: 0 0 -0.2rem 0.35rem;
  color: rgba(247, 239, 216, 0.76);
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
}

.discman-lid {
  display: grid;
  width: min(17rem, 52vw);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(247, 239, 216, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.16) 0 34%, transparent 35%),
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.18), transparent 19%),
    linear-gradient(145deg, rgba(247, 239, 216, 0.12), rgba(0, 0, 0, 0.28));
  box-shadow:
    inset 0 0 2rem rgba(0, 0, 0, 0.46),
    0 0.8rem 1.6rem rgba(0, 0, 0, 0.28);
}

.spinning-cd {
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #050505 0 8%, #d9f8ff 9% 12%, transparent 13%),
    conic-gradient(from 45deg, #f6ffff, #4ec5ec, #7e5cff, #ffd36b, #f6ffff);
  box-shadow:
    inset 0 0 1.4rem rgba(0, 0, 0, 0.35),
    0 0 2rem rgba(78, 197, 236, 0.18);
  animation: cdSpin 3.8s linear infinite;
}

.cd-readout {
  display: grid;
  gap: 0.15rem;
  width: min(100%, 28rem);
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(126, 231, 225, 0.32);
  border-radius: 0.25rem;
  background: #06100f;
  color: #9bfff7;
  font-family: "Courier New", monospace;
  text-align: center;
  text-shadow: 0 0 8px rgba(126, 231, 225, 0.5);
}

.readout-label {
  color: rgba(155, 255, 247, 0.7);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.cd-readout span,
.radio-note {
  color: var(--muted);
}

.discman-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.discman-controls span {
  width: 2.4rem;
  height: 0.72rem;
  border: 1px solid rgba(247, 239, 216, 0.15);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 40%),
    #17181c;
  box-shadow: inset 0 -0.12rem 0.25rem rgba(0, 0, 0, 0.5);
}

.cd-player iframe {
  width: min(100%, 22rem);
  height: 22rem;
  border: 0;
}

.cd-player iframe[src*="tracklist=false"],
.cd-player iframe[src*="size=small"] {
  width: 100%;
  height: 7.5rem;
}

.cd-player iframe[src*="redcircle.com"],
.redcircle-player {
  width: 100%;
  height: min(34rem, 70vh);
  border: 0;
  border-radius: 0.35rem;
  background: #fff;
}

.cd-player audio {
  width: 100%;
}

.cd-player a {
  color: var(--teal);
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(247, 239, 216, 0.22);
  border-radius: 0.35rem;
  background: #09090b;
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 0.8rem;
}

.player-display audio {
  display: block;
  width: 100%;
  margin: 0.75rem 0;
}

.player-display iframe {
  display: block;
  width: 100%;
  height: clamp(18rem, 62vh, 34rem);
  max-height: calc(100vh - 14rem);
  margin: 0.75rem 0;
  border: 0;
}

.player-display p {
  color: var(--muted);
}

.player-display a,
.book-list a,
.desktop-menu a {
  color: var(--teal);
  font-weight: 900;
}

.essay-card {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: #211d20;
  text-decoration: none;
}

.essay-card span {
  color: var(--muted);
}

.donate-body {
  padding: 1rem;
}

.donate-body p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.donate-body strong {
  color: var(--ink);
}

.essay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.9rem;
  padding: 1rem;
}

.essay-card {
  color: var(--ink);
}

.essay-card img {
  width: 100%;
  object-fit: cover;
  border-radius: 0.25rem;
}

.crazy-wall-modal {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 207, 87, 0.12), transparent 18rem),
    linear-gradient(135deg, #231a14, #141013);
}

.crazy-wall-modal .modal-bar {
  background: #251a13;
}

.crazy-wall {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  min-height: 24rem;
  padding: clamp(1.25rem, 4vw, 2.4rem);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #2a1d15;
  background-size: 4rem 4rem;
}

.crazy-wall::before,
.crazy-wall::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.crazy-wall::before {
  inset: 1rem;
  border: 1px solid rgba(255, 207, 87, 0.16);
}

.crazy-wall::after {
  left: 14%;
  top: 1.1rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow:
    18rem 5rem 0 var(--red),
    9rem 15rem 0 var(--amber),
    31rem 12rem 0 var(--teal);
}

.thread {
  position: absolute;
  z-index: 0;
  height: 2px;
  background: rgba(238, 65, 52, 0.7);
  transform-origin: left center;
}

.thread-a {
  left: 15%;
  top: 13%;
  width: 22rem;
  transform: rotate(17deg);
}

.thread-b {
  left: 27%;
  bottom: 25%;
  width: 28rem;
  transform: rotate(-19deg);
}

.thread-c {
  right: 10%;
  top: 26%;
  width: 17rem;
  transform: rotate(112deg);
}

.folder-card {
  position: relative;
  z-index: 1;
  padding-top: 1.35rem;
  border-color: rgba(104, 77, 40, 0.55);
  background: #d8b56e;
  color: #21150b;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
  transform: rotate(-1.5deg);
}

.folder-card:nth-of-type(even) {
  transform: rotate(2deg);
}

.folder-card::before {
  position: absolute;
  left: 0.85rem;
  top: -0.58rem;
  width: 45%;
  height: 1rem;
  border-radius: 0.25rem 0.25rem 0 0;
  background: #e3c47f;
  content: "";
}

.folder-card::after {
  position: absolute;
  left: 50%;
  top: 0.38rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0.18rem rgba(255, 255, 255, 0.18);
  content: "";
  transform: translateX(-50%);
}

.folder-card strong {
  color: #21150b;
}

.folder-card span {
  color: #4d3823;
}

.win95-title {
  background: linear-gradient(90deg, #000080, #1084d0);
}

.pc-modal {
  width: min(46rem, calc(100vw - 1.5rem));
  border-color: #fff #404040 #404040 #fff;
  background: #c0c0c0;
  color: #050505;
  font-family: "Courier New", monospace;
}

.computer-shell {
  padding: 0.6rem;
  background: #c0c0c0;
}

.computer-screen {
  min-height: 27rem;
  padding: 1rem;
  border: 3px solid;
  border-color: #404040 #fff #fff #404040;
  border-radius: 0;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.05) 75%),
    #008080;
  background-size: 0.5rem 0.5rem;
}

.computer-base {
  display: none;
}

.desktop-menu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  align-content: start;
  gap: 1rem 0.8rem;
  padding: 0;
  background: transparent;
}

.desktop-menu a {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  min-height: 5.9rem;
  padding: 0.35rem;
  border: 1px dotted transparent;
  background: transparent;
  color: #fff;
  font-size: 0.76rem;
  text-decoration: none;
  text-align: center;
  text-shadow: 1px 1px 0 #000;
}

.desktop-menu a:hover,
.desktop-menu a:focus-visible {
  border-color: #fff;
  background: rgba(0, 0, 128, 0.62);
  outline: none;
}

.desktop-icon::before {
  display: block;
  width: 3rem;
  height: 2.55rem;
  border: 2px solid #805000;
  background:
    linear-gradient(#ffd978 0 30%, #f4b94f 30% 100%);
  box-shadow:
    inset -3px -3px 0 rgba(0, 0, 0, 0.18),
    3px 3px 0 rgba(0, 0, 0, 0.22);
  content: "";
  clip-path: polygon(0 22%, 32% 22%, 40% 0, 100% 0, 100% 100%, 0 100%);
  image-rendering: pixelated;
}

.desktop-icon span {
  display: inline-block;
  max-width: 6.5rem;
  padding: 0.08rem 0.18rem;
  line-height: 1.12;
}

.video-icon::before {
  border-color: #202020;
  background:
    linear-gradient(90deg, transparent 0 18%, #202020 18% 23%, transparent 23% 40%, #202020 40% 45%, transparent 45% 62%, #202020 62% 67%, transparent 67%),
    linear-gradient(#4bd7ff 0 62%, #17385c 62%);
  clip-path: none;
}

.music-icon::before {
  border-radius: 50%;
  border-color: #c0c0c0;
  background:
    radial-gradient(circle, #111 0 16%, #f5f5f5 17% 22%, transparent 23%),
    conic-gradient(#d8ffff, #7070ff, #ffe58a, #d8ffff);
  clip-path: none;
}

.animation-icon::before {
  border-color: #2b1a14;
  background:
    radial-gradient(circle at 50% 32%, #5f3628 0 18%, transparent 19%),
    radial-gradient(circle at 33% 32%, #111 0 4%, transparent 5%),
    radial-gradient(circle at 67% 32%, #111 0 4%, transparent 5%),
    linear-gradient(#b46f3d, #5b3327);
  clip-path: polygon(18% 8%, 82% 8%, 100% 44%, 70% 100%, 30% 100%, 0 44%);
}

.dante-icon::before {
  border-color: #26190f;
  border-radius: 50% 50% 44% 44%;
  background:
    radial-gradient(circle at 45% 34%, #19100a 0 5%, transparent 6%),
    radial-gradient(circle at 58% 41%, #8c4b35 0 9%, transparent 10%),
    linear-gradient(145deg, transparent 0 17%, #b22323 18% 47%, transparent 48%),
    linear-gradient(90deg, transparent 0 45%, #d8af7b 46% 72%, transparent 73%),
    linear-gradient(#f0c690, #9f6142);
  clip-path: polygon(36% 0, 78% 8%, 92% 40%, 74% 72%, 53% 100%, 28% 82%, 12% 46%, 18% 16%);
}

.doc-icon::before {
  border-color: #202020;
  background:
    linear-gradient(135deg, transparent 0 16%, #c0c0c0 17% 28%, transparent 29%),
    repeating-linear-gradient(180deg, #fff 0 0.38rem, #d8d8d8 0.38rem 0.48rem);
  clip-path: polygon(0 0, 74% 0, 100% 26%, 100% 100%, 0 100%);
}

.store-icon::before {
  border-color: #202020;
  background:
    linear-gradient(90deg, #ff4242 0 24%, #f8f087 24% 48%, #35c36a 48% 72%, #4f8cff 72%),
    #c0c0c0;
  clip-path: none;
}

.mail-icon::before {
  border-color: #202020;
  background:
    linear-gradient(35deg, transparent 47%, #202020 48% 52%, transparent 53%),
    linear-gradient(-35deg, transparent 47%, #202020 48% 52%, transparent 53%),
    #f4f0dc;
  clip-path: polygon(0 12%, 100% 12%, 100% 88%, 0 88%);
}

@keyframes roomFade {
  from {
    opacity: 0;
    transform: scale(1.025);
    filter: blur(8px) drop-shadow(0 24px 70px rgba(0, 0, 0, 0.58));
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0) drop-shadow(0 24px 70px rgba(0, 0, 0, 0.58));
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulsePin {
  0% {
    box-shadow:
      0 0 0 0 rgba(255, 207, 87, 0.38),
      0 0 18px rgba(255, 207, 87, 0.36);
  }
  72% {
    box-shadow:
      0 0 0 0.85rem rgba(255, 207, 87, 0),
      0 0 18px rgba(255, 207, 87, 0.36);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(255, 207, 87, 0),
      0 0 18px rgba(255, 207, 87, 0.36);
  }
}

@keyframes cdSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  .room-shell {
    padding: 0;
  }

  .room-intro {
    position: relative;
    left: auto;
    top: auto;
    padding: 1rem;
  }

  .bedroom-stage {
    min-height: 100vh;
    overflow-x: auto;
    justify-content: start;
  }

  .bedroom-art {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
  }

  @media (max-aspect-ratio: 1 / 1) {
    .bedroom-stage {
      background: #050607;
      justify-content: center;
      overflow-x: hidden;
    }

    .bedroom-art {
      object-fit: contain;
    }
  }

  .quick-links {
    left: 0.75rem;
    right: 0.75rem;
    justify-content: flex-start;
    transform: none;
  }

  .avatar-hub {
    width: 4.4rem;
  }

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

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

  .art-gallery-layout {
    grid-template-columns: 1fr;
  }

  .poster-strip {
    grid-auto-flow: column;
    grid-auto-columns: minmax(7rem, 8rem);
    max-height: none;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(42, 24, 14, 0.28);
  }

  .poster-strip.media-grid {
    grid-template-columns: none;
  }

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

  .cd-system {
    grid-template-columns: 1fr;
  }

  .cd-tower {
    transform: none;
  }

  .cd-player {
    min-height: 24rem;
  }

  .discman-lid {
    width: min(13rem, 58vw);
  }

  .tv-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tv-dial,
  .tv-dial.primary,
  .link-dial {
    width: 3.8rem;
    height: 3.8rem;
  }
}

.detail-page {
  overflow: auto;
}

.detail-shell {
  min-height: 100vh;
  padding: clamp(1rem, 4vw, 3rem);
  background:
    linear-gradient(90deg, rgba(9, 9, 11, 0.82), rgba(9, 9, 11, 0.5)),
    url("assets/bedroom-hero.png") center / cover fixed;
}

.back-link {
  display: inline-flex;
  margin-bottom: clamp(3rem, 10vw, 7rem);
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 26rem);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-width: 76rem;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid rgba(247, 239, 216, 0.14);
  border-radius: 0.6rem;
  background: rgba(9, 9, 11, 0.68);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.detail-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
}

.detail-copy h1 {
  margin-bottom: 1.25rem;
}

.detail-copy .eyebrow {
  margin-bottom: 1rem;
}

.detail-art {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.detail-art img,
.detail-art video {
  width: 100%;
  max-height: min(68vh, 42rem);
  object-fit: contain;
  border: 1px solid rgba(247, 239, 216, 0.16);
  border-radius: 0.55rem;
  background: rgba(9, 9, 11, 0.42);
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.36);
}

.stacked-art img + img {
  max-height: 12rem;
  padding: 1rem;
  background: rgba(247, 239, 216, 0.92);
}

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

.bio-art img {
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.project-shell {
  display: grid;
  gap: clamp(1.2rem, 4vw, 2.5rem);
}

.project-hero {
  width: min(76rem, 100%);
}

.project-section {
  width: min(76rem, 100%);
  padding: clamp(1rem, 4vw, 1.6rem);
  border: 1px solid rgba(247, 239, 216, 0.14);
  border-radius: 0.6rem;
  background: rgba(9, 9, 11, 0.72);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(247, 239, 216, 0.14);
  padding-bottom: 0.8rem;
}

.section-header h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.listening-grid,
.album-showcase,
.video-gallery,
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.audio-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1rem;
  border: 1px solid rgba(247, 239, 216, 0.14);
  border-radius: 0.45rem;
  background: rgba(19, 17, 20, 0.78);
}

.audio-card.wide {
  grid-column: span 2;
}

.audio-card h3 {
  margin: 0;
  color: var(--ink);
}

.audio-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.25);
}

.audio-card audio {
  width: 100%;
}

.audio-card .bandcamp-player {
  width: 100%;
  height: clamp(20rem, 56vh, 35rem);
  border: 0;
}

.track-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.5rem;
}

.track-list audio {
  grid-column: 1 / -1;
}

.track-list button {
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(247, 239, 216, 0.12);
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--teal);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
}

.track-list button:hover,
.track-list button:focus-visible {
  border-color: var(--amber);
  color: var(--amber);
}

.video-gallery video,
.video-gallery iframe,
.image-gallery img {
  width: 100%;
  border: 1px solid rgba(247, 239, 216, 0.14);
  border-radius: 0.45rem;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.video-gallery video,
.video-gallery iframe,
.video-embed {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(247, 239, 216, 0.14);
  border-radius: 0.45rem;
  background: rgba(0, 0, 0, 0.35);
  object-fit: contain;
}

.detail-art .video-embed {
  width: 100%;
  min-height: 18rem;
}

.embed-card {
  display: grid;
  min-height: 30rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(247, 239, 216, 0.14);
  border-radius: 0.45rem;
  background: rgba(0, 0, 0, 0.35);
}

.tiktok-card {
  min-height: 42rem;
}

.tiktok-embed {
  margin: 0 !important;
}

.facebook-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(247, 239, 216, 0.14);
  border-radius: 0.45rem;
  background: rgba(0, 0, 0, 0.35);
}

.facebook-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.facebook-frame.square-video {
  aspect-ratio: 1;
}

.facebook-frame.vertical-video {
  aspect-ratio: 267 / 476;
  width: min(100%, 18rem);
  justify-self: center;
}

.image-gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-gallery .feature-tile {
  grid-column: span 2;
}

.image-gallery .feature-tile img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #050607;
}

.receipt-gallery img {
  object-fit: contain;
  background: #f7f1e5;
}

.motion-gallery img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.discography-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
}

.discography-grid iframe {
  width: min(100%, 22rem);
  height: 22rem;
  justify-self: center;
  border: 0;
}

.live-banner img {
  aspect-ratio: 16 / 9;
  max-height: min(60vh, 30rem);
  object-fit: cover;
  object-position: center 58%;
  background: #050607;
}

.proud-gallery img {
  object-position: center;
}

.proposal-card {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.proposal-card img {
  width: 100%;
  border-radius: 0.45rem;
  background: #08090b;
}

.proposal-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.emplant-page .detail-shell {
  background:
    radial-gradient(circle at 74% 18%, rgba(255, 76, 54, 0.22), transparent 22rem),
    radial-gradient(circle at 16% 58%, rgba(25, 122, 118, 0.22), transparent 26rem),
    linear-gradient(120deg, rgba(5, 20, 21, 0.96), rgba(10, 9, 11, 0.88)),
    url("assets/page-art/EMPLANT_Cover_Cover_Apr2025.png") center / cover fixed;
}

.proud-fools-page .detail-shell {
  background:
    radial-gradient(circle at 20% 14%, rgba(20, 232, 210, 0.19), transparent 20rem),
    radial-gradient(circle at 80% 48%, rgba(255, 61, 108, 0.22), transparent 24rem),
    linear-gradient(120deg, rgba(5, 5, 12, 0.95), rgba(18, 4, 13, 0.9)),
    url("assets/page-art/proud fools Pretty as shit.png") center / cover fixed;
}

.black-dove-page .detail-shell {
  background:
    radial-gradient(circle at 82% 42%, rgba(255, 109, 39, 0.2), transparent 24rem),
    linear-gradient(120deg, rgba(16, 8, 6, 0.96), rgba(9, 9, 11, 0.88)),
    url("assets/page-art/Legend of Black Dove Cover.png") center / cover fixed;
}

.dante-page .detail-shell {
  background:
    radial-gradient(circle at 18% 30%, rgba(192, 34, 28, 0.24), transparent 24rem),
    linear-gradient(120deg, rgba(34, 20, 11, 0.96), rgba(9, 9, 11, 0.88));
}

.ape-rock-page .detail-shell {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 207, 87, 0.18), transparent 20rem),
    radial-gradient(circle at 80% 62%, rgba(118, 229, 97, 0.16), transparent 24rem),
    linear-gradient(120deg, rgba(15, 22, 8, 0.96), rgba(9, 9, 11, 0.88));
}

@media (max-width: 820px) {
  .detail-hero,
  .detail-art-grid {
    grid-template-columns: 1fr;
  }

  .audio-card.wide {
    grid-column: auto;
  }

  .image-gallery .feature-tile {
    grid-column: auto;
  }

  .section-header {
    display: block;
  }

  .proposal-card {
    grid-template-columns: 1fr;
  }
}
