/* ─── Custom Properties ─────────────────────────────────────────────────────── */

:root {
  --color-bg:      #F5F0EB;
  --color-text:    #1A1410;
  --color-accent:  #8B6F47;
  --color-muted:   #8A7B70;
  --color-border:  #E0D8CF;

  --frame-dark:    #100A05;
  --mat-cream:     #F0EBE3;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --header-height: 60px;
  --page-pad:      clamp(1.5rem, 4vw, 3rem);
}

/* ─── Reset ─────────────────────────────────────────────────────────────────── */

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

html { font-size: 16px; }

@keyframes page-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  background: #848078;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.6;
  animation: page-fade-in 0.7s ease both;
  overflow-x: hidden;
}

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

/* ─── Header ─────────────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-pad);
  background: rgba(245, 242, 238, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.site-header__brand {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #1A1410;
}

.site-header__nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.site-header__nav a {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(60, 50, 40, 0.5);
  transition: color 0.2s;
}

.site-header__nav a:hover {
  color: rgba(30, 22, 14, 0.9);
}

/* ─── Gallery Scene ──────────────────────────────────────────────────────────── */

.gallery-scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  /* Match warm plaster wall tone so side walls read consistently */
  background: #F2EDE6;

  perspective: 1200px;
  /* perspective-origin driven by JS view state via CSS variable */
  perspective-origin: var(--scene-origin-x, 50%) var(--scene-origin-y, 28%);
  transition: perspective-origin 0.9s cubic-bezier(0.45, 0, 0.15, 1);
}

/* Soft edge vignette */
.scene-vignette {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: radial-gradient(
    ellipse 90% 85% at 50% 42%,
    transparent 40%,
    rgba(60, 55, 48, 0.28) 100%
  );
}

/* "Click to view" hint */
.scene-ui {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  pointer-events: none;
  text-align: center;
}

.scene-ui__hint {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(80, 70, 60, 0.85);
}

/* ─── Navigation Arrows ──────────────────────────────────────────────────────── */

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: opacity 0.25s;
}

.gallery-nav:hover { opacity: 1; }

.gallery-nav--left  { left: 1.25rem; }
.gallery-nav--right { right: 1.25rem; }

.gallery-nav svg {
  width: 52px;
  height: 52px;
  stroke: #1A1410;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* View indicator dots */
.gallery-nav__dots {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: 0.75rem;
  pointer-events: none;
}

.gallery-nav__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(80, 70, 60, 0.55);
  transition: background 0.3s;
}

.gallery-nav__dot.is-active {
  background: rgba(80, 70, 60, 1);
}

/* ─── 3D Room Box ────────────────────────────────────────────────────────────── */

.room {
  position: absolute;
  width: 2200px;
  height: 760px;
  top: 50%;
  left: 50%;
  /* translateZ(300px) pulls viewer inside the room so floor fills bottom of screen */
  transform: translate(-50%, -48%) translateZ(300px);
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.45, 0, 0.15, 1);
}

/* ── Back Wall ── bright white gallery surface */
.room__wall-back {
  position: absolute;
  inset: 0;
  transform: translateZ(-1900px);
  transform-style: preserve-3d;

  background:
    repeating-linear-gradient(
      90deg,
      transparent            0px,
      transparent            3px,
      rgba(140,120,95,0.13)  3px,
      rgba(140,120,95,0.13)  4px,
      transparent            4px,
      transparent            9px,
      rgba(140,120,95,0.07)  9px,
      rgba(140,120,95,0.07) 10px,
      transparent           10px,
      transparent           16px,
      rgba(140,120,95,0.10) 16px,
      rgba(140,120,95,0.10) 17px
    ),
    #F2EDE6;
  box-shadow: inset 0 0 160px rgba(0,0,0,0.04);
}

/* ── Left Wall ── white but shadowed toward open/viewer end to read as a side plane */
.room__wall-left {
  position: absolute;
  width: 1900px;
  height: 760px;
  left: 0;
  top: 0;
  transform-origin: left center;
  transform: rotateY(-90deg);
  transform-style: preserve-3d;

  background:
    repeating-linear-gradient(
      0deg,
      transparent            0px,
      transparent            3px,
      rgba(140,120,95,0.13)  3px,
      rgba(140,120,95,0.13)  4px,
      transparent            4px,
      transparent            9px,
      rgba(140,120,95,0.07)  9px,
      rgba(140,120,95,0.07) 10px,
      transparent           10px,
      transparent           16px,
      rgba(140,120,95,0.10) 16px,
      rgba(140,120,95,0.10) 17px
    ),
    #F2EDE6;
}

/* ── Right Wall ── mirror of left */
.room__wall-right {
  position: absolute;
  width: 1900px;
  height: 760px;
  right: 0;
  top: 0;
  transform-origin: right center;
  transform: rotateY(90deg);
  transform-style: preserve-3d;

  background:
    repeating-linear-gradient(
      0deg,
      transparent            0px,
      transparent            3px,
      rgba(140,120,95,0.13)  3px,
      rgba(140,120,95,0.13)  4px,
      transparent            4px,
      transparent            9px,
      rgba(140,120,95,0.07)  9px,
      rgba(140,120,95,0.07) 10px,
      transparent           10px,
      transparent           16px,
      rgba(140,120,95,0.10) 16px,
      rgba(140,120,95,0.10) 17px
    ),
    #F2EDE6;
}

/* ── Floor ── polished warm concrete */
.room__floor {
  position: absolute;
  width: 2200px;
  /* Must match back wall depth so floor reaches all the way to back wall */
  height: 1900px;
  bottom: 0;
  left: 0;
  transform-origin: bottom center;
  /* rotateX(+90deg): local Y maps to scene +Z (toward viewer), so the top
     of this panel (at y = bottom - 1900) ends up at scene z = -1900 (back wall).
     translateY(1px) nudges 1px toward viewer to win z-sorting over back wall edge. */
  transform: rotateX(90deg) translateY(1px);

  background:
    /* Fine wood grain — subtle warm striping within planks */
    repeating-linear-gradient(
      45deg,
      transparent 0px, transparent 5px,
      rgba(200,150,80,0.03) 5px, rgba(200,150,80,0.03) 6px,
      transparent 6px, transparent 11px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent 0px, transparent 5px,
      rgba(200,150,80,0.02) 5px, rgba(200,150,80,0.02) 6px,
      transparent 6px, transparent 11px
    ),
    /* Herringbone seam lines — +45° plank edges */
    repeating-linear-gradient(
      45deg,
      transparent 0px, transparent 78px,
      rgba(0,0,0,0.55) 78px, rgba(0,0,0,0.55) 80px
    ),
    /* Herringbone seam lines — -45° plank edges */
    repeating-linear-gradient(
      -45deg,
      transparent 0px, transparent 78px,
      rgba(0,0,0,0.55) 78px, rgba(0,0,0,0.55) 80px
    ),
    /* Dark walnut base — slightly lighter at back wall, deepens toward viewer */
    linear-gradient(180deg,
      #2E2216 0%,
      #261A0E 35%,
      #1E1208 70%,
      #160E06 100%
    );
}

/* ── Baseboard ── thin white strip at base of back wall */
.room__baseboard {
  position: absolute;
  width: 2200px;
  height: 10px;
  bottom: 0;
  left: 0;
  background: #E8E6E2;
  transform: translateZ(-1900px);
  box-shadow: 0 -1px 4px rgba(0,0,0,0.08);
}

/* ── Ceiling ── terracotta with warm track light pools */
.room__ceiling {
  position: absolute;
  width: 2200px;
  height: 1900px;
  top: 0;
  left: 0;
  transform-origin: top center;
  transform: rotateX(-90deg);
  transform-style: preserve-3d;

  background:
    /* Cross-room beams (x direction, 5 panels across 2200px) */
    repeating-linear-gradient(
      90deg,
      transparent                     0px,
      transparent                   420px,
      rgba(255,255,255,0.07)        420px,
      rgba(255,255,255,0.07)        422px,
      rgba(0,0,0,0.30)              422px,
      rgba(0,0,0,0.30)              438px,
      rgba(255,255,255,0.05)        438px,
      rgba(255,255,255,0.05)        440px,
      transparent                   440px
    ),
    /* Depth beams (z direction, 5 panels across 1900px depth) */
    repeating-linear-gradient(
      0deg,
      transparent                     0px,
      transparent                   360px,
      rgba(255,255,255,0.07)        360px,
      rgba(255,255,255,0.07)        362px,
      rgba(0,0,0,0.30)              362px,
      rgba(0,0,0,0.30)              378px,
      rgba(255,255,255,0.05)        378px,
      rgba(255,255,255,0.05)        380px,
      transparent                   380px
    ),
    /* Charcoal base */
    linear-gradient(180deg, #1A1614 0%, #1E1A16 60%, #232018 100%);
}

/* ── Track lighting rail on ceiling ── */
.room__track-rail {
  position: absolute;
  top: 30px;
  left: 200px;
  right: 200px;
  height: 6px;
  background: linear-gradient(90deg, #3A2E28, #4E4038, #3A2E28);
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Track light heads */
.room__track-rail::before,
.room__track-rail::after {
  content: '';
  position: absolute;
  top: -1px;
  width: 14px;
  height: 8px;
  background: #2E2420;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.room__track-rail::before { left: 25%;  }
.room__track-rail::after  { left: 65%;  }

/* ─── Floor Text ─────────────────────────────────────────────────────────────── */

.floor-text {
  position: absolute;
  left: 50%;
  top: 800px;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.floor-text__title {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 260px;
  color: #C47A5A;
  opacity: 0.45;
  letter-spacing: -0.02em;
  line-height: 1;
}

.floor-text__sub {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 110px;
  color: #C47A5A;
  opacity: 0.45;
  letter-spacing: 0.05em;
  margin-top: 20px;
}

.floor-text__hint {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 38px;
  color: #FFFFFF;
  opacity: 0.65;
  letter-spacing: 0.08em;
  margin-top: 40px;
}
.floor-text__hint--mobile { display: none; }
.floor-text__hint:first-child {
  margin-top: 0;
  margin-bottom: 30px;
  font-size: 72px;
  opacity: 0.65;
}

/* ─── Gallery Frames ─────────────────────────────────────────────────────────── */

.gallery-frame {
  position: absolute;
  cursor: pointer;
}

/* Hanging wire */
.gallery-frame::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 20px;
  background: linear-gradient(
    180deg,
    rgba(160, 150, 135, 0.2),
    rgba(140, 130, 115, 0.55)
  );
}

/* Outer thin white/silver frame */
.gallery-frame__outer {
  width: 100%;
  height: calc(100% - 28px);
  background: #F0EEE8;
  padding: 7px;
  border: 1px solid rgba(0,0,0,0.08);

  box-shadow:
    0  3px 10px rgba(0,0,0,0.12),
    0 10px 30px rgba(0,0,0,0.10),
    0 20px 50px rgba(0,0,0,0.07),
    inset  1px  1px 0 rgba(255,255,255,0.8),
    inset -1px -1px 0 rgba(0,0,0,0.06);

  transition:
    transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-frame--inverted .gallery-frame__outer {
  background: #1A1410;
  border-color: rgba(120, 85, 45, 0.55);
  box-shadow:
    0  3px 10px rgba(0,0,0,0.22),
    0 10px 30px rgba(0,0,0,0.18),
    0 20px 50px rgba(0,0,0,0.12),
    inset  1px  1px 0 rgba(255,255,255,0.06),
    inset -1px -1px 0 rgba(0,0,0,0.2);
}

.gallery-frame:hover .gallery-frame__outer,
.gallery-frame:focus-visible .gallery-frame__outer,
.gallery-frame.is-hovered .gallery-frame__outer {
  transform: translateY(-4px) scale(1.012);
  box-shadow:
    0  6px 18px rgba(0,0,0,0.18),
    0 18px 42px rgba(0,0,0,0.14),
    0 36px 70px rgba(0,0,0,0.09);
}

/* White mat inside the frame */
.gallery-frame__mat {
  width: 100%;
  height: 100%;
  background: #FAFAF8;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

/* Artwork color fill */
.gallery-frame__artwork {
  width: 100%;
  height: 100%;
}

/* Label: number + title below the frame */
.gallery-frame__label {
  position: absolute;
  bottom: 2px;
  left: 8px;
  right: 8px;
  height: 22px;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-frame:hover .gallery-frame__label,
.gallery-frame:focus-visible .gallery-frame__label,
.gallery-frame.is-hovered .gallery-frame__label {
  opacity: 1;
}

.gallery-frame__num {
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  color: rgba(80, 70, 60, 0.45);
  flex-shrink: 0;
}

.gallery-frame__title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(50, 40, 30, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Pulsing dot hotspot ── */

@keyframes dot-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(80,70,60,0.35);
  }
  60% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(80,70,60,0);
  }
}

.gallery-frame__dot {
  position: absolute;
  bottom: 30px;
  right: 5px;
  width: 8px;
  height: 8px;
  background: rgba(80, 70, 60, 0.75);
  border-radius: 50%;
  animation: dot-pulse 2.8s ease-in-out infinite;
  transition: opacity 0.25s;
}

.gallery-frame:hover .gallery-frame__dot,
.gallery-frame.is-hovered .gallery-frame__dot {
  opacity: 0;
}

/* ── 2D click overlay hotspots ── */
.gallery-hotspot {
  position: absolute;
  z-index: 10;
  cursor: pointer;
}

/* ─── Welcome Overlay ───────────────────────────────────────────────────────── */

.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 11, 8, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 1;
  transition: opacity 0.9s ease;
}

.welcome-overlay.is-hiding {
  opacity: 0;
  pointer-events: none;
}

.welcome-card {
  text-align: center;
  color: #F0EBE3;
  max-width: 520px;
  padding: 0 2rem;
}

/* Staggered fade-up for each child */
.welcome-card > * {
  opacity: 0;
  animation: welcome-item-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.welcome-card__title  { animation-delay: 0.1s; }
.welcome-card__byline { animation-delay: 0.25s; }
.welcome-card__rule   { animation-delay: 0.4s; }
.welcome-card__body   { animation-delay: 0.5s; }
.welcome-card__enter  { animation-delay: 0.65s; }

@keyframes welcome-item-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.welcome-card__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.welcome-card__byline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.6rem;
  color: rgba(240, 235, 227, 0.45);
  margin-bottom: 1.75rem;
}

.welcome-card__rule {
  width: 32px;
  height: 1px;
  background: rgba(240, 235, 227, 0.25);
  margin: 0 auto 1.75rem;
}

.welcome-card__body {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.65;
  color: rgba(240, 235, 227, 0.6);
  margin-bottom: 2.5rem;
}

.welcome-card__enter {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #F0EBE3;
  background: transparent;
  border: 1px solid rgba(240, 235, 227, 0.4);
  padding: 0.75rem 2.5rem;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.welcome-card__enter:hover {
  background: rgba(240, 235, 227, 0.1);
  border-color: rgba(240, 235, 227, 0.75);
}

.welcome-card__footnote {
  margin-top: 1.2rem;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  color: rgba(240, 235, 227, 0.4);
  letter-spacing: 0.08em;
  text-align: center;
}

/* ─── Detail Page ────────────────────────────────────────────────────────────── */

.piece-body {
  background: var(--color-bg);
  animation: page-fade-in 0.5s ease both;
}

.piece-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 1.25rem var(--page-pad);
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s;
  background: var(--color-bg);
}

.piece-back:hover { color: var(--color-text); }

.piece-back__arrow {
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.piece-back:hover .piece-back__arrow {
  transform: translateX(-3px);
}

/* ── Detail page header ── */
.piece-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-pad);
}

.piece-header__brand {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text);
}

.piece-header__nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.piece-header__nav a {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.2s;
}

.piece-header__nav a:hover { color: var(--color-text); }

/* ── Two-column layout ── */
.piece-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 60px - 48px);
}

.piece-image-panel {
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow: hidden;
}

.piece-image-panel__bg {
  width: 100%;
  height: 100%;
  position: relative;
}

.piece-image-panel__label {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.piece-image-panel__label-num {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.piece-image-panel__label-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
}

.piece-info-panel {
  padding: 4rem var(--page-pad);
  border-left: 1px solid var(--color-border);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
}

.piece-info__num {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.piece-info__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 2.5rem;
  color: var(--color-text);
}

.piece-info__meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2.5rem;
}

.piece-info__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.piece-info__meta-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  flex-shrink: 0;
}

.piece-info__meta-value {
  font-size: 0.875rem;
  color: var(--color-text);
  text-align: right;
}

.piece-info__description {
  font-size: 0.9375rem;
  line-height: 1.78;
  color: var(--color-text);
  max-width: 42ch;
  flex: 1;
}

.piece-info__enquire {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  margin-top: auto;
}

.piece-info__enquire a {
  color: var(--color-accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s;
}

.piece-info__enquire a:hover { color: var(--color-text); }

/* ── Error ── */
.piece-error {
  display: none;
  padding: 4rem var(--page-pad);
  text-align: center;
  background: var(--color-bg);
}

.piece-error p {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.piece-error a {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
  color: var(--color-text);
}

/* ─── Instant view switch (no perspective-origin animation on music page) ───── */

.gallery-scene--instant {
  transition: none !important;
}

.gallery-scene:has(.room--hallway),
.gallery-scene:has(.room--studio) {
  background: #1C1610;
}

/* ─── Narrow Hallway Room (Music Page) ──────────────────────────────────────── */
/* Overrides .room defaults to create a narrow studio corridor feel.            */

.room--hallway {
  width: 800px;
  /* Reduced translateZ so doors near the viewer don't clip past the camera */
  /* Scale is set dynamically by JS via --hallway-scale to fit any viewport */
  transform: translate(-50%, -48%) translateZ(100px) scale(var(--hallway-scale, 1));
}

.room--hallway .room__wall-back {
  transform: translateZ(-1400px);
  background: #181208;
}

.room--hallway .room__wall-left,
.room--hallway .room__wall-right {
  width: 1400px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent             0px,
      transparent             3px,
      rgba(255,200,120,0.03)  3px,
      rgba(255,200,120,0.03)  4px,
      transparent             4px,
      transparent             9px,
      rgba(255,200,120,0.02)  9px,
      rgba(255,200,120,0.02) 10px
    ),
    #1C1610;
}

.room--hallway .room__floor {
  background:
    /* Carpet runner — gold trim edges */
    linear-gradient(
      90deg,
      transparent              calc(50% - 86px),
      rgba(190,145,70,0.55)    calc(50% - 86px),
      rgba(190,145,70,0.55)    calc(50% - 80px),
      transparent              calc(50% - 80px),
      transparent              calc(50% + 80px),
      rgba(190,145,70,0.55)    calc(50% + 80px),
      rgba(190,145,70,0.55)    calc(50% + 86px),
      transparent              calc(50% + 86px)
    ),
    /* Carpet runner — deep burgundy body */
    linear-gradient(
      90deg,
      transparent  calc(50% - 80px),
      #4A1020      calc(50% - 80px),
      #5C1828      calc(50%),
      #4A1020      calc(50% + 80px),
      transparent  calc(50% + 80px)
    ),
    /* existing herringbone floor */
    repeating-linear-gradient(
      45deg,
      transparent 0px, transparent 5px,
      rgba(200,150,80,0.03) 5px, rgba(200,150,80,0.03) 6px,
      transparent 6px, transparent 11px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent 0px, transparent 5px,
      rgba(200,150,80,0.02) 5px, rgba(200,150,80,0.02) 6px,
      transparent 6px, transparent 11px
    ),
    repeating-linear-gradient(
      45deg,
      transparent 0px, transparent 78px,
      rgba(0,0,0,0.55) 78px, rgba(0,0,0,0.55) 80px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent 0px, transparent 78px,
      rgba(0,0,0,0.55) 78px, rgba(0,0,0,0.55) 80px
    ),
    linear-gradient(180deg, #2E2216 0%, #261A0E 35%, #1E1208 70%, #160E06 100%);
}

.room--hallway .room__floor,
.room--hallway .room__ceiling {
  width: 800px;
  height: 1400px;
}

.room--hallway .room__baseboard {
  width: 800px;
  transform: translateZ(-1400px);
  background: #141008;
  box-shadow: none;
}

.room--hallway .room__track-rail {
  left: 60px;
  right: 60px;
}

/* Reposition floor text for shallower depth */
.room--hallway .floor-text {
  top: 750px;
}

.room--hallway .floor-text__title {
  font-size: 140px;
}

.room--hallway .floor-text__sub {
  font-size: 60px;
}

/* ─── Studio Doors (Music Page) ─────────────────────────────────────────────── */

@keyframes on-air-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 4px #C82020, 0 0 10px rgba(200, 30, 30, 0.45);
  }
  50% {
    opacity: 0.72;
    box-shadow: 0 0 9px #C82020, 0 0 22px rgba(200, 30, 30, 0.65);
  }
}

@keyframes on-air-text-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

.studio-door {
  position: absolute;
  cursor: pointer;
}

/* Architrave / casing around door opening */
.studio-door__surround {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 18px 16px 0;
  background: linear-gradient(175deg, #1C1208 0%, #100C06 100%);
  box-shadow:
    inset  3px  0  8px rgba(0,0,0,0.55),
    inset -3px  0  8px rgba(0,0,0,0.55),
    inset  0    4px 12px rgba(0,0,0,0.65),
    0 0 0 1px rgba(0,0,0,0.7);
}

/* ON AIR indicator strip at very top of surround */
.studio-door__on-air {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
}

.studio-door__on-air-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(100, 80, 60, 0.3);
  flex-shrink: 0;
}

.studio-door__on-air-text {
  font-size: 7px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(120, 90, 70, 0.35);
}

.studio-door__on-air.is-active .studio-door__on-air-dot {
  background: #C82020;
  animation: on-air-pulse 1.6s ease-in-out infinite;
}

.studio-door__on-air.is-active .studio-door__on-air-text {
  color: rgba(200, 50, 40, 0.85);
  animation: on-air-text-pulse 1.6s ease-in-out infinite;
}

/* Door slab */
.studio-door__slab {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    /* Subtle wood grain streaks */
    repeating-linear-gradient(
      175deg,
      transparent 0px, transparent 14px,
      rgba(255,190,90,0.022) 14px, rgba(255,190,90,0.022) 15px,
      transparent 15px, transparent 28px
    ),
    repeating-linear-gradient(
      178deg,
      transparent 0px, transparent 22px,
      rgba(0,0,0,0.05) 22px, rgba(0,0,0,0.05) 23px,
      transparent 23px, transparent 46px
    ),
    linear-gradient(
      170deg,
      #55351E 0%,
      #3E2410 35%,
      #4A2A12 65%,
      #361806 100%
    );
  transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: left center;
}

.studio-door:hover .studio-door__slab,
.studio-door.is-hovered .studio-door__slab {
  transform: perspective(900px) rotateY(-5deg);
}

/* Frosted window recess */
.studio-door__window-frame {
  position: absolute;
  top: 26px;
  left: 18px;
  right: 18px;
  height: 120px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 2px 2px 0 rgba(0,0,0,0.45),
    inset -1px -1px 0 rgba(255,255,255,0.04);
  padding: 6px;
}

.studio-door__window {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    140deg,
    rgba(220, 210, 195, 0.16) 0%,
    rgba(240, 228, 210, 0.24) 40%,
    rgba(200, 190, 175, 0.13) 100%
  );
}

/* Warm glow through window when studio is on air */
.studio-door__on-air.is-active ~ .studio-door__slab .studio-door__window {
  background: linear-gradient(
    140deg,
    rgba(255, 190, 110, 0.22) 0%,
    rgba(255, 210, 140, 0.32) 45%,
    rgba(235, 170, 90, 0.18) 100%
  );
  box-shadow: inset 0 0 18px rgba(255, 170, 80, 0.14);
}

/* Inset door panels */
.studio-door__panel {
  position: absolute;
  left: 18px;
  right: 18px;
  background: rgba(0, 0, 0, 0.13);
  box-shadow:
    inset 1px 1px 0 rgba(0,0,0,0.38),
    inset -1px -1px 0 rgba(255,255,255,0.05);
}

.studio-door__panel--upper {
  top: 164px;
  height: 88px;
}

.studio-door__panel--lower {
  bottom: 36px;
  height: 215px;
}

/* Studio name plaque (between panels) */
.studio-door__nameplate {
  position: absolute;
  top: 270px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}

.studio-door__name {
  display: block;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 32px;
  color: rgba(215, 190, 155, 0.82);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.studio-door__sub {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(170, 148, 115, 0.5);
  margin-top: 5px;
}


/* City label above door */

.studio-door__city {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 44px;
  color: rgba(200, 180, 150, 0.9);
  white-space: nowrap;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  -webkit-text-stroke: 1.5px rgba(200, 180, 150, 0.6);
}

/* Large room number */
.studio-door__number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 240px;
  line-height: 1;
  color: rgba(215, 190, 155, 0.25);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
  -webkit-text-stroke: 2px rgba(215, 190, 155, 0.4);
}

/* Brass lever handle */
.studio-door__handle {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.studio-door__handle::before {
  content: '';
  position: absolute;
  right: 0;
  top: -22px;
  width: 7px;
  height: 44px;
  background: linear-gradient(90deg, #A87828, #D0A040, #BC9030, #9A7020);
  border-radius: 3px 3px 4px 4px;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.55), inset 1px 0 0 rgba(255,255,255,0.15);
}

.studio-door__handle::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  background: radial-gradient(circle at 35% 30%, #D4A840, #8A5E18);
  border-radius: 50%;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* ─── Piece Modal ────────────────────────────────────────────────────────────── */

@keyframes modal-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes info-item-in {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}

.piece-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.piece-modal.is-open {
  pointer-events: all;
  opacity: 1;
}

.piece-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 10, 0.55);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  transition: opacity 1.4s ease,
              backdrop-filter 1.4s ease,
              -webkit-backdrop-filter 1.4s ease;
}

.piece-modal.is-open .piece-modal__backdrop {
  opacity: 1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.piece-modal__card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(1300px, 96vw);
  height: min(820px, 92vh);
  background: var(--color-bg);
  box-shadow: 0 32px 80px rgba(0,0,0,0.35), 0 8px 24px rgba(0,0,0,0.2);
  overflow: hidden;
  /* origin-aware animation — set by JS */
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity  0.35s ease;
}

/* ── Image panel ── */

.piece-modal__image-panel {
  position: relative;
  overflow: hidden;
  background: #1A1410;
}

.piece-modal__image-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.piece-modal__image-panel__label {
  position: absolute;
  bottom: 1.75rem;
  left: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* ── Info panel ── */

.piece-modal__info-panel {
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--color-border);
  overflow-y: auto;
}

.piece-modal__card--inverted .piece-modal__info-panel {
  background: #100D0A;
  border-left-color: rgba(255,255,255,0.08);
}

.piece-modal__card--inverted .piece-modal__close,
.piece-modal__card--inverted .piece-modal__num,
.piece-modal__card--inverted .piece-modal__title,
.piece-modal__card--inverted .piece-modal__description {
  color: #F5F0EB;
}

.piece-modal__card--inverted .piece-modal__meta-row {
  border-bottom-color: rgba(255,255,255,0.15);
}

.piece-modal__card--inverted .piece-modal__meta dt {
  color: rgba(245,240,235,0.55);
}

.piece-modal__card--inverted .piece-modal__meta dd {
  color: #F5F0EB;
}

.piece-modal__card--inverted .piece-modal__enquire {
  color: rgba(245,240,235,0.65);
}

.piece-modal__card--inverted .piece-modal__enquire span {
  color: #F5F0EB;
  border-bottom-color: rgba(245,240,235,0.5);
}

.piece-modal__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
  line-height: 1;
}

.piece-modal__close:hover { color: var(--color-text); }

.piece-modal__num {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
  opacity: 0;
}

.piece-modal__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: 2rem;
  opacity: 0;
}

.piece-modal__meta {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
  opacity: 0;
}

.piece-modal__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.72rem;
}

.piece-modal__meta-row dt {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.piece-modal__meta-row dd {
  color: var(--color-text);
  text-align: right;
  max-width: 55%;
}

.piece-modal__description {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--color-muted);
  flex: 1;
  opacity: 0;
}

.piece-modal__enquire {
  margin-top: 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  opacity: 0;
}

.piece-modal__enquire span {
  color: var(--color-text);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* Enquire form */
.piece-modal__form {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: opacity 0.4s ease;
}

.piece-modal__input,
.piece-modal__textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 0.5rem 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s ease;
}

.piece-modal__input::placeholder,
.piece-modal__textarea::placeholder {
  color: var(--color-muted);
}

.piece-modal__input:focus,
.piece-modal__textarea:focus {
  border-bottom-color: var(--color-text);
}

.piece-modal__textarea {
  resize: none;
  height: 60px;
}

.piece-modal__purchase {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  width: fit-content;
}

.piece-modal__purchase input[type="checkbox"] {
  display: none;
}

.piece-modal__purchase span {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  padding: 0.45rem 1rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.piece-modal__purchase span::before {
  content: '○  ';
  font-size: 0.65rem;
}

.piece-modal__purchase input:checked + span {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.piece-modal__purchase input:checked + span::before {
  content: '✓  ';
}

.piece-modal__card--inverted .piece-modal__purchase span {
  color: rgba(245,240,235,0.4);
  border-color: rgba(245,240,235,0.2);
}

.piece-modal__card--inverted .piece-modal__purchase input:checked + span {
  background: rgba(245,240,235,0.15);
  color: #F5F0EB;
  border-color: rgba(245,240,235,0.6);
}

.piece-modal__submit {
  align-self: flex-start;
  margin-top: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 0.55rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.piece-modal__submit:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.piece-modal__form-sent {
  display: none;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

/* Inverted form (dark panel) */
.piece-modal__card--inverted .piece-modal__input,
.piece-modal__card--inverted .piece-modal__textarea {
  color: #F5F0EB;
  border-bottom-color: rgba(245,240,235,0.2);
}

.piece-modal__card--inverted .piece-modal__input::placeholder,
.piece-modal__card--inverted .piece-modal__textarea::placeholder {
  color: rgba(245,240,235,0.35);
}

.piece-modal__card--inverted .piece-modal__input:focus,
.piece-modal__card--inverted .piece-modal__textarea:focus {
  border-bottom-color: rgba(245,240,235,0.7);
}

.piece-modal__card--inverted .piece-modal__submit {
  color: #F5F0EB;
  border-color: rgba(245,240,235,0.3);
}

.piece-modal__card--inverted .piece-modal__submit:hover {
  background: rgba(245,240,235,0.12);
  border-color: rgba(245,240,235,0.7);
  color: #F5F0EB;
}

.piece-modal__card--inverted .piece-modal__form-sent {
  color: rgba(245,240,235,0.5);
}

/* Hide info panel items until is-revealed is applied */
.piece-modal__info-panel .piece-modal__num,
.piece-modal__info-panel .piece-modal__title,
.piece-modal__info-panel .piece-modal__meta,
.piece-modal__info-panel .piece-modal__description,
.piece-modal__info-panel .piece-modal__form {
  opacity: 0;
}

/* Stagger animation when .is-revealed is added to info panel */
.piece-modal__info-panel.is-revealed .piece-modal__num {
  animation: info-item-in 0.55s cubic-bezier(0.25,0.46,0.45,0.94) 0ms both;
}
.piece-modal__info-panel.is-revealed .piece-modal__title {
  animation: info-item-in 0.55s cubic-bezier(0.25,0.46,0.45,0.94) 100ms both;
}
.piece-modal__info-panel.is-revealed .piece-modal__meta {
  animation: info-item-in 0.55s cubic-bezier(0.25,0.46,0.45,0.94) 200ms both;
}
.piece-modal__info-panel.is-revealed .piece-modal__description {
  animation: info-item-in 0.55s cubic-bezier(0.25,0.46,0.45,0.94) 300ms both;
}
.piece-modal__info-panel.is-revealed .piece-modal__form {
  animation: info-item-in 0.55s cubic-bezier(0.25,0.46,0.45,0.94) 400ms both;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .piece-main { grid-template-columns: 1fr; }

  .piece-image-panel {
    position: relative;
    height: 65vw;
    top: 0;
  }

  .piece-info-panel {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding: 2rem 1.25rem;
  }

  /* Nav */
  .site-header__nav { display: flex; gap: 1.2rem; }

  /* Gallery — full screen single wall view */
  .gallery-scene { perspective: 1000px; }
  .room { transform: translate(-50%, -50%) translateZ(300px) scale(1.0); }

  /* Bigger, visible nav arrows on mobile */
  .gallery-nav {
    display: flex;
    opacity: 1;
    padding: 1.5rem 0.75rem;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.08));
  }
  .gallery-nav--left  { left: 0; }
  .gallery-nav--right { right: 0; }
  .gallery-nav svg {
    width: 44px;
    height: 44px;
    stroke: rgba(26,20,16,0.7);
    filter: drop-shadow(0 1px 4px rgba(255,255,255,0.4));
  }

  /* Larger dots */
  .gallery-nav__dots { bottom: 1.5rem; gap: 0.9rem; }
  .gallery-nav__dot  { width: 7px; height: 7px; }

  /* Floor text — scale for mobile */
  .floor-text__title { font-size: 140px; opacity: 0.6; }
  .floor-text__sub   { font-size: 80px; margin-top: 12px; opacity: 0.6; }
  .floor-text__hint  { font-size: 38px; margin-top: 20px; opacity: 0.75; }
  .floor-text__hint--desktop { display: none; }
  .floor-text__hint--mobile  { display: block; }

  /* Modal full screen on mobile */
  .piece-modal__card {
    grid-template-columns: 1fr;
    grid-template-rows: 55vw 1fr;
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
  }
  .piece-modal__image-panel { border-radius: 0; }
  .piece-modal__info-panel  { border-left: none; border-top: 1px solid var(--color-border); overflow-y: auto; }
  .piece-modal__card--inverted .piece-modal__info-panel { border-top-color: rgba(255,255,255,0.12); }
  /* Close button fixed top-right so it's always visible over the image */
  .piece-modal.is-open .piece-modal__close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 400;
    background: rgba(10, 8, 4, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 2px;
    padding: 0.5rem 0.65rem;
    font-size: 1rem;
  }

  /* Hallway (music.html) — keep perspective at 1200 to match JS projection math */
  .gallery-scene:has(.room--hallway) { perspective: 1200px; }

  /* Studio (studio.html) */
  .gallery-scene:has(.room--studio) { perspective: 1200px; overflow: visible; }
  .room--studio { transform: translate(-50%, -53%) translateZ(0px) scale(0.68) !important; }

  /* Finder window */
  .finder-window {
    width: calc(100vw - 32px);
    max-height: 80vh;
    overflow-y: auto;
  }

  /* Back button */
  .studio-back-btn a {
    font-size: 9px;
    padding: 8px 14px;
    white-space: nowrap;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STUDIO ROOM (studio.html)
   ═══════════════════════════════════════════════════════════════════════════ */

.room--studio {
  width: 1100px;
  transform: translate(-50%, -48%) translateZ(200px);
}
.room--studio .room__wall-back  { transform: translateZ(-900px); background: #161009; }
.room--studio .room__wall-left,
.room--studio .room__wall-right { width: 900px; background: #1C1610; }
.room--studio .room__floor,
.room--studio .room__ceiling    { width: 1100px; height: 900px; }
.room--studio .room__baseboard  { width: 1100px; transform: translateZ(-900px); background: #0E0904; box-shadow: none; }
.room--studio .room__track-rail { left: 80px; right: 80px; }

/* Connecticut — dark forest */
.room--studio-ct .room__wall-back  { background: #0A0E0A; }
.room--studio-ct .room__wall-left,
.room--studio-ct .room__wall-right { background: #0E1410; }
.room--studio-ct .room__baseboard  { background: #08100A; }

/* Miami — dark violet */
.room--studio-miami .room__wall-back  { background: #0C0610; }
.room--studio-la .monitor-screen       { background: radial-gradient(ellipse 70% 60% at 50% 40%, #3d2800 0%, #1e1200 40%, #0a0700 100%) !important; }
.room--studio-la .monitor-cta         { background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(255,160,30,0.12) 0%, transparent 70%) !important; }
.room--studio-la .monitor-cta__text   { color: rgba(255,180,40,0.92) !important; text-shadow: 0 0 20px rgba(255,160,30,0.7), 0 0 60px rgba(220,120,20,0.35), 0 0 120px rgba(180,90,10,0.15) !important; }
.room--studio-la .monitor-cta__note   { color: rgba(255,170,50,0.6) !important; }
.room--studio-la .monitor-cta__period { color: rgba(255,160,40,0.38) !important; }
.room--studio-miami .monitor-screen    { background: radial-gradient(ellipse 70% 60% at 50% 40%, #1c4020 0%, #0e2410 40%, #060e06 100%) !important; }
.room--studio-miami .monitor-cta       { background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(34,139,34,0.12) 0%, transparent 70%) !important; }
.room--studio-miami .monitor-cta__text { color: rgba(34,139,34,0.9) !important; text-shadow: 0 0 20px rgba(34,139,34,0.7), 0 0 60px rgba(34,139,34,0.3), 0 0 120px rgba(20,100,20,0.15) !important; }
.room--studio-miami .monitor-cta__note   { color: rgba(34,139,34,0.6) !important; }
.room--studio-miami .monitor-cta__period { color: rgba(34,139,34,0.4) !important; }
.room--studio-miami .room__wall-left,
.room--studio-miami .room__wall-right { background: #120A18; }
.room--studio-miami .room__baseboard  { background: #090610; }

/* ── Furniture base ────────────────────────────────────────────────────────── */
.studio-piece {
  position: absolute;
  left: 0;
  top: 0;
}

/* ── Desk top surface ──────────────────────────────────────────────────────── */
.studio-desk-top {
  background: linear-gradient(90deg, #241A0C 0%, #2E2010 50%, #241A0C 100%);
  box-shadow: inset 0 -1px 0 rgba(255,200,100,0.08);
}

/* ── Desk front panel ──────────────────────────────────────────────────────── */
.studio-desk-front {
  background: linear-gradient(180deg, #2A1E10 0%, #1A1008 60%, #120C06 100%);
  box-shadow: 0 12px 40px rgba(0,0,0,0.9);
  overflow: hidden;
  position: relative;
}
.desk-rack {
  position: absolute;
  top: 14px; left: 30px; right: 30px;
  height: 36px;
  background: #0A0604;
  border: 1px solid rgba(255,180,60,0.08);
  border-radius: 2px;
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.6),
    0 1px 0 rgba(255,180,60,0.06);
}
.desk-knobs {
  position: absolute;
  bottom: 14px; left: 40px;
  width: 200px; height: 12px;
  background: repeating-linear-gradient(
    90deg,
    rgba(200,150,60,0.55) 0px, rgba(200,150,60,0.55) 8px,
    transparent           8px, transparent           22px
  );
  border-radius: 6px;
}

/* ── Monitor ───────────────────────────────────────────────────────────────── */
.monitor-bezel {
  width: 100%;
  height: calc(100% - 50px);
  background: linear-gradient(160deg, #1A1A1A 0%, #0C0C0C 100%);
  border-radius: 10px;
  padding: 14px;
  box-sizing: border-box;
  box-shadow:
    0 0 100px rgba(40,100,255,0.10),
    0 40px 100px rgba(0,0,0,0.95),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}
.monitor-screen {
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 50%,
    #0D1A2E 0%,
    #070D1A 50%,
    #030810 100%
  );
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.monitor-cta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  /* Soft screen ambient glow */
  background: radial-gradient(ellipse 70% 60% at 50% 50%,
    rgba(80, 140, 255, 0.12) 0%,
    transparent 70%
  );
}
.monitor-cta__text {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 52px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(200, 220, 255, 0.85);
  text-shadow:
    0 0 20px rgba(100, 160, 255, 0.8),
    0 0 60px rgba(80, 130, 255, 0.4),
    0 0 120px rgba(60, 100, 220, 0.2);
  animation: cta-pulse 3s ease-in-out infinite;
  user-select: none;
}
.monitor-cta__note {
  text-align: center;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(160, 185, 230, 0.6);
}
.monitor-cta__period {
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: rgba(160, 185, 230, 0.35);
}

@keyframes cta-pulse {
  0%, 100% { opacity: 0.85; text-shadow: 0 0 20px rgba(100,160,255,0.8), 0 0 60px rgba(80,130,255,0.4), 0 0 120px rgba(60,100,220,0.2); }
  50%       { opacity: 1.0;  text-shadow: 0 0 30px rgba(120,180,255,1.0), 0 0 80px rgba(100,160,255,0.6), 0 0 160px rgba(80,130,220,0.3); }
}
.monitor-stand-neck {
  width: 30px;
  height: 30px;
  background: #111;
  margin: 0 auto;
}
.monitor-stand-base {
  width: 160px;
  height: 20px;
  background: linear-gradient(180deg, #151515, #0A0A0A);
  border-radius: 4px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

/* ── Couch (side profile silhouette) ──────────────────────────────────────── */
/* Element is 140px wide × 150px tall, facing viewer directly (no rotation).
   Left side = back of couch (tall), right side = front arm (shorter).
   Layout (left→right): back cushion | seat | front arm               */
.studio-couch {
  position: absolute;
}
/* Back cushion — tall, left edge */
.couch-side__back {
  position: absolute;
  top: 0; left: 0;
  width: 22px;
  height: 112px;
  background: linear-gradient(180deg, #3A2828 0%, #221616 60%, #160E0E 100%);
  border-radius: 6px 6px 2px 2px;
  box-shadow: inset -3px 0 8px rgba(0,0,0,0.5), 2px 0 10px rgba(0,0,0,0.4);
}
/* Seat surface — horizontal, connects back to front arm */
.couch-side__seat {
  position: absolute;
  top: 78px; left: 18px;
  width: 104px;
  height: 28px;
  background: linear-gradient(180deg, #2E1E1E 0%, #1C1010 100%);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.7);
}
/* Front arm — shorter than back, right edge */
.couch-side__arm-front {
  position: absolute;
  top: 52px; right: 0;
  width: 20px;
  height: 56px;
  background: linear-gradient(180deg, #321E1E 0%, #1E1010 100%);
  border-radius: 4px 4px 2px 2px;
  box-shadow: inset -2px 0 6px rgba(0,0,0,0.4);
}
/* Back leg */
.couch-side__leg-back {
  position: absolute;
  bottom: 0; left: 4px;
  width: 8px;
  height: 22px;
  background: linear-gradient(180deg, #1A1010, #0E0808);
  border-radius: 0 0 3px 3px;
}
/* Front leg */
.couch-side__leg-front {
  position: absolute;
  bottom: 0; right: 8px;
  width: 8px;
  height: 22px;
  background: linear-gradient(180deg, #1A1010, #0E0808);
  border-radius: 0 0 3px 3px;
}

/* ── Finder Window ────────────────────────────────────────────────────────── */
.finder-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.finder-overlay.is-open {
  display: flex;
  animation: thoughts-in 1.2s cubic-bezier(0.34, 1.1, 0.64, 1) both;
}

.finder-window {
  width: 560px;
  background: rgba(14, 10, 8, 0.96);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 200, 130, 0.12);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.8),
    0 0 0 0.5px rgba(255, 180, 80, 0.08),
    inset 0 1px 0 rgba(255, 220, 150, 0.06);
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  animation: finder-in 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes finder-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* Title bar */
.finder__titlebar {
  height: 52px;
  border-bottom: 1px solid rgba(255, 200, 130, 0.08);
  display: flex;
  align-items: center;
  padding: 0 16px;
  flex-shrink: 0;
  position: relative;
  user-select: none;
}
.finder__traffic-lights {
  display: flex;
  gap: 7px;
  z-index: 1;
}
.finder__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  outline: none;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.finder__dot:hover { opacity: 1; }
.finder__dot--close { background: #FF5F57; }
.finder__dot--min   { background: #FEBC2E; }
.finder__dot--max   { background: #28C840; }

.finder__title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}
.finder__title-main {
  display: block;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  color: rgba(220, 195, 155, 0.9);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.finder__title-sub {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: rgba(180, 155, 110, 0.45);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Column headers */
.finder__col-headers {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 200, 130, 0.07);
  flex-shrink: 0;
}
.finder__col-name {
  flex: 1;
  font-size: 10px;
  font-weight: 500;
  color: rgba(180, 155, 110, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.finder__col-date {
  width: 130px;
  text-align: right;
  font-size: 10px;
  font-weight: 500;
  color: rgba(180, 155, 110, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* File list */
.finder__files { overflow-y: auto; }

.finder__file {
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 48px;
  border-bottom: 1px solid rgba(255, 200, 130, 0.05);
  cursor: default;
  transition: background 0.15s;
}
.finder__file:hover {
  background: rgba(255, 180, 80, 0.05);
}
.finder__file:last-child { border-bottom: none; }

.finder__file-num {
  font-size: 11px;
  color: rgba(180, 150, 100, 0.3);
  letter-spacing: 0.06em;
  width: 24px;
  flex-shrink: 0;
}
.finder__file-name {
  flex: 1;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  color: rgba(225, 205, 170, 0.85);
  letter-spacing: 0.02em;
}
.finder__file-date {
  width: 130px;
  text-align: right;
  font-size: 11.5px;
  color: rgba(170, 145, 100, 0.45);
  letter-spacing: 0.03em;
}

/* Status bar */
.finder__reorder-bar {
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 200, 130, 0.07);
  display: flex;
  align-items: center;
  gap: 8px;
}
.finder__reorder-btn {
  background: none;
  border: 1px solid rgba(180, 150, 100, 0.25);
  border-radius: 4px;
  padding: 4px 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(180, 150, 100, 0.55);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.finder__reorder-btn:hover {
  color: rgba(210, 180, 130, 0.9);
  border-color: rgba(210, 180, 130, 0.5);
}
.finder__reorder-btn.is-active {
  color: rgba(210, 180, 130, 1);
  border-color: rgba(210, 180, 130, 0.7);
  background: rgba(210, 180, 130, 0.08);
}

.finder__thoughts-btn {
  background: none;
  border: 1px solid rgba(180, 150, 100, 0.25);
  border-radius: 4px;
  padding: 4px 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(180, 150, 100, 0.55);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-left: auto;
}
.finder__thoughts-btn:hover {
  color: rgba(210, 180, 130, 0.9);
  border-color: rgba(210, 180, 130, 0.5);
}

/* ─── Thoughts Overlay ───────────────────────────────────────────────────────── */
.thoughts-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}
.thoughts-overlay.is-open { display: flex; }
.thoughts-card {
  background: #1A1410;
  border: 1px solid rgba(200, 170, 110, 0.2);
  border-radius: 12px;
  padding: 2.5rem;
  width: 420px;
  max-width: 90vw;
  position: relative;
}
.thoughts-close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  background: none; border: none;
  color: rgba(200, 170, 110, 0.4);
  font-size: 16px; cursor: pointer;
}
.thoughts-close:hover { color: rgba(200, 170, 110, 0.9); }
.thoughts-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 28px;
  color: rgba(220, 195, 145, 0.95);
  margin-bottom: 0.25rem;
}
.thoughts-sub {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(200, 170, 110, 0.45);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}
.thoughts-textarea {
  width: 100%;
  height: 110px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200, 170, 110, 0.18);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(220, 200, 160, 0.9);
  resize: none;
  margin-bottom: 0.75rem;
  box-sizing: border-box;
}
.thoughts-email {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200, 170, 110, 0.18);
  border-radius: 6px;
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(220, 200, 160, 0.9);
  margin-bottom: 1rem;
  box-sizing: border-box;
}
.thoughts-textarea::placeholder,
.thoughts-email::placeholder { color: rgba(200, 170, 110, 0.3); }
.thoughts-submit {
  width: 100%;
  padding: 0.65rem;
  background: rgba(200, 170, 110, 0.1);
  border: 1px solid rgba(200, 170, 110, 0.35);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(220, 195, 145, 0.85);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.thoughts-submit:hover {
  background: rgba(200, 170, 110, 0.18);
  border-color: rgba(200, 170, 110, 0.6);
}
.thoughts-sent {
  display: none;
  text-align: center;
  margin-top: 0.75rem;
  font-size: 12px;
  color: rgba(200, 170, 110, 0.6);
  letter-spacing: 0.08em;
}

.finder__statusbar {
  height: 32px;
  border-top: 1px solid rgba(255, 200, 130, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  color: rgba(180, 150, 100, 0.3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ── Full-screen Player ──────────────────────────────────────────────────── */
.player-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.player-overlay.is-open { display: flex; }

.player-card {
  width: min(520px, 90vw);
  background: rgba(14, 10, 8, 0.97);
  border-radius: 16px;
  border: 1px solid rgba(255, 200, 130, 0.12);
  box-shadow: 0 60px 120px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,220,150,0.06);
  padding: 48px 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: player-in 1.2s cubic-bezier(0.34, 1.1, 0.64, 1);
  position: relative;
}
@keyframes player-in {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.player-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none; border: none;
  color: rgba(180, 150, 100, 0.35);
  font-size: 20px; cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.player-close:hover { color: rgba(220, 195, 155, 0.8); }

.player-city {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(180, 150, 100, 0.45);
  margin-bottom: 14px;
}

.player-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 46px;
  font-weight: 400;
  color: rgba(220, 195, 155, 0.95);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 36px;
}

.player-progress-wrap {
  width: 100%;
  margin-bottom: 10px;
  cursor: pointer;
}
.player-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 200, 130, 0.12);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.player-progress-fill {
  height: 100%;
  width: 0%;
  background: rgba(220, 195, 155, 0.6);
  border-radius: 2px;
  transition: width 0.25s linear;
}

.player-times {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(180, 150, 100, 0.35);
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 32px;
}
.player-thoughts-btn {
  margin-top: 1.5rem;
  background: none;
  border: 1px solid rgba(200, 170, 110, 0.2);
  border-radius: 4px;
  padding: 6px 18px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(200, 170, 110, 0.45);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.player-thoughts-btn:hover {
  color: rgba(210, 180, 130, 0.9);
  border-color: rgba(210, 180, 130, 0.5);
}
.player-thoughts-btn.is-active {
  color: rgba(220, 195, 145, 0.95);
  border-color: rgba(220, 195, 145, 0.55);
  background: rgba(200, 170, 110, 0.1);
}
.player-thoughts-form {
  display: none;
  margin-top: 1.25rem;
  width: 100%;
}
.player-thoughts-form.is-open {
  display: block;
  animation: thoughts-in 1.2s cubic-bezier(0.34, 1.1, 0.64, 1) both;
}
@keyframes thoughts-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.player-thoughts-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(200, 170, 110, 0.45);
  margin-bottom: 0.75rem;
}
.player-thoughts-textarea {
  width: 100%;
  height: 80px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200, 170, 110, 0.18);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(220, 200, 160, 0.9);
  resize: none;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
}
.player-thoughts-email {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200, 170, 110, 0.18);
  border-radius: 6px;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(220, 200, 160, 0.9);
  margin-bottom: 0.75rem;
  box-sizing: border-box;
}
.player-thoughts-textarea::placeholder,
.player-thoughts-email::placeholder { color: rgba(200, 170, 110, 0.3); }
.player-thoughts-send {
  width: 100%;
  padding: 0.55rem;
  background: rgba(200, 170, 110, 0.08);
  border: 1px solid rgba(200, 170, 110, 0.3);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(220, 195, 145, 0.8);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.player-thoughts-send:hover {
  background: rgba(200, 170, 110, 0.16);
  border-color: rgba(200, 170, 110, 0.55);
}
.player-thoughts-sent {
  display: none;
  text-align: center;
  margin-top: 0.6rem;
  font-size: 11px;
  color: rgba(200, 170, 110, 0.55);
  letter-spacing: 0.08em;
}
.player-btn {
  background: none; border: none;
  color: rgba(220, 195, 155, 0.55);
  font-size: 18px; cursor: pointer;
  transition: color 0.2s, transform 0.1s;
  line-height: 1;
  padding: 4px;
}
.player-btn:hover { color: rgba(220, 195, 155, 0.95); transform: scale(1.1); }
.player-btn--play {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 200, 130, 0.2) !important;
  font-size: 20px;
  color: rgba(220, 195, 155, 0.85);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.player-btn--play:hover {
  background: rgba(255, 200, 130, 0.08);
  color: rgba(220, 195, 155, 1);
  transform: scale(1.05);
}

/* ── Studio Back Button ───────────────────────────────────────────────────── */
.studio-back-btn {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}
.studio-back-btn a {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200, 175, 130, 0.7);
  border: 1px solid rgba(200, 175, 130, 0.2);
  border-radius: 2px;
  text-decoration: none;
  background: rgba(8, 6, 4, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.studio-back-btn a:hover {
  color: rgba(220, 200, 155, 0.95);
  border-color: rgba(200, 175, 130, 0.45);
  background: rgba(12, 9, 6, 0.8);
}

/* ── Studio Art ───────────────────────────────────────────────────────────── */
.studio-art {
  position: absolute;
}
.studio-art__frame {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #1E1610 0%, #120E08 60%, #1A1410 100%);
  padding: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,220,150,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.6),
    0 8px 30px rgba(0,0,0,0.8);
  border-radius: 2px;
}
.studio-art__mat {
  width: 100%;
  height: 100%;
  background: #2A2420;
  padding: 10px;
  box-sizing: border-box;
}
.studio-art__canvas {
  width: 100%;
  height: 100%;
}

/* Warm piece — LA sunset, muted */
.studio-art__canvas--warm {
  background:
    /* Edge vignette */
    radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0,0,0,0.35) 100%),
    /* Sunset gradient */
    linear-gradient(180deg,
      #12091C 0%,
      #281028 22%,
      #501A18 42%,
      #883020 60%,
      #B85418 76%,
      #C87818 90%,
      #C89030 100%
    );
  opacity: 0.75;
}

/* Cool piece — night blue, muted */
.studio-art__canvas--cool {
  background:
    /* Edge vignette */
    radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0,0,0,0.35) 100%),
    /* Night blue gradient */
    linear-gradient(180deg,
      #04060E 0%,
      #080F20 18%,
      #0C1A38 36%,
      #102450 54%,
      #163060 70%,
      #1C3C70 84%,
      #224478 100%
    );
  opacity: 0.75;
}

/* ── Persian Rug ──────────────────────────────────────────────────────────── */
.studio-rug {
  border-radius: 3px;
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(0, 0, 0, 0.4);
  background-color: #5C1520;
  background-image:
    /* Center medallion */
    radial-gradient(ellipse 32% 42% at 50% 50%,
      rgba(220, 95, 55, 0.5) 0%,
      rgba(175, 55, 35, 0.28) 45%,
      transparent 68%
    ),
    /* Secondary inner medallion ring */
    radial-gradient(ellipse 14% 18% at 50% 50%,
      rgba(230, 130, 70, 0.4) 0%,
      transparent 100%
    ),
    /* Diamond lattice */
    repeating-linear-gradient(
      45deg,
      transparent 0, transparent 24px,
      rgba(195, 150, 55, 0.16) 24px, rgba(195, 150, 55, 0.16) 26px,
      transparent 26px, transparent 50px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent 0, transparent 24px,
      rgba(195, 150, 55, 0.16) 24px, rgba(195, 150, 55, 0.16) 26px,
      transparent 26px, transparent 50px
    ),
    /* Inner ivory border lines — top */
    linear-gradient(rgba(210, 190, 135, 0.65), rgba(210, 190, 135, 0.65))
      20px 20px / calc(100% - 40px) 2px no-repeat,
    /* Inner ivory border lines — bottom */
    linear-gradient(rgba(210, 190, 135, 0.65), rgba(210, 190, 135, 0.65))
      20px calc(100% - 22px) / calc(100% - 40px) 2px no-repeat,
    /* Inner ivory border lines — left */
    linear-gradient(rgba(210, 190, 135, 0.65), rgba(210, 190, 135, 0.65))
      20px 20px / 2px calc(100% - 40px) no-repeat,
    /* Inner ivory border lines — right */
    linear-gradient(rgba(210, 190, 135, 0.65), rgba(210, 190, 135, 0.65))
      calc(100% - 22px) 20px / 2px calc(100% - 40px) no-repeat,
    /* Gold outer border — horizontal bands */
    linear-gradient(180deg,
      #A87828 0, #C49A38 6px, #A87828 14px,
      transparent 14px, transparent calc(100% - 14px),
      #A87828 calc(100% - 14px), #C49A38 calc(100% - 8px), #A87828 100%
    ),
    /* Gold outer border — vertical bands */
    linear-gradient(90deg,
      #A87828 0, #C49A38 6px, #A87828 14px,
      transparent 14px, transparent calc(100% - 14px),
      #A87828 calc(100% - 14px), #C49A38 calc(100% - 8px), #A87828 100%
    );
}

/* ── Ambient Lighting ─────────────────────────────────────────────────────── */

/* Cool blue bloom on back wall behind the monitor */
.studio-wall-glow {
  background: radial-gradient(ellipse 55% 45% at 50% 38%,
    rgba(60, 100, 200, 0.18) 0%,
    rgba(40, 70, 160, 0.10) 35%,
    transparent 70%
  );
  pointer-events: none;
}

/* Warm amber LED strip along the bottom edge of the desk */
.studio-desk-led {
  background: linear-gradient(90deg,
    transparent 2%,
    rgba(255, 160, 50, 0.6) 12%,
    rgba(255, 185, 80, 1.0) 30%,
    rgba(255, 195, 90, 1.0) 50%,
    rgba(255, 185, 80, 1.0) 70%,
    rgba(255, 160, 50, 0.6) 88%,
    transparent 98%
  );
  box-shadow:
    0 0 12px 6px rgba(255, 150, 40, 0.5),
    0 0 40px 16px rgba(255, 120, 20, 0.25);
  border-radius: 2px;
  pointer-events: none;
}

/* Warm amber pool of light on the floor under the desk */
.studio-floor-glow {
  background: radial-gradient(ellipse 70% 55% at 50% 0%,
    rgba(255, 140, 30, 0.18) 0%,
    rgba(220, 110, 20, 0.10) 45%,
    transparent 75%
  );
  pointer-events: none;
}

/* ── Studio Chair ──────────────────────────────────────────────────────────── */
.studio-chair {
  position: absolute;
}
.chair-back {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 70px;
  background: linear-gradient(180deg, #1E1414 0%, #150E0E 100%);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.7);
}
.chair-seat {
  position: absolute;
  top: 65px; left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 22px;
  background: linear-gradient(180deg, #221616 0%, #180E0E 100%);
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}
.chair-arm--left,
.chair-arm--right {
  position: absolute;
  top: 30px;
  width: 10px;
  height: 40px;
  background: #1A1010;
  border-radius: 4px;
}
.chair-arm--left  { left:  calc(50% - 42px); }
.chair-arm--right { right: calc(50% - 42px); }
.chair-column {
  position: absolute;
  top: 87px; left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 50px;
  background: linear-gradient(180deg, #2A2A2A, #111);
  border-radius: 6px;
}
.chair-base {
  position: absolute;
  top: 133px; left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 10px;
  background: linear-gradient(180deg, #222, #111);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

/* ── Save from the Vault Overlay ─────────────────────────────────────────── */
.vault-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1500;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.vault-overlay.is-open { display: flex; }

.vault-card {
  width: min(460px, 88vw);
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(14, 10, 8, 0.97);
  border-radius: 14px;
  border: 1px solid rgba(255, 200, 130, 0.12);
  box-shadow: 0 40px 100px rgba(0,0,0,0.9);
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  animation: player-in 1.2s cubic-bezier(0.34, 1.1, 0.64, 1);
}

.vault-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  color: rgba(180, 150, 100, 0.35);
  font-size: 18px; cursor: pointer;
  transition: color 0.2s;
}
.vault-close:hover { color: rgba(220, 195, 155, 0.8); }

.vault-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  color: rgba(220, 195, 155, 0.95);
  letter-spacing: 0.02em;
}

.vault-sub {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(180, 150, 100, 0.4);
  margin-top: -8px;
}

.vault-songs {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.vault-song {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 3px 0;
}
.vault-song input[type="checkbox"] {
  accent-color: rgba(200, 170, 110, 0.8);
  width: 13px;
  height: 13px;
  cursor: pointer;
  flex-shrink: 0;
}
.vault-song-name {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(210, 185, 145, 0.7);
  transition: color 0.15s;
}
.vault-song:hover .vault-song-name { color: rgba(220, 200, 160, 0.95); }

.vault-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vault-textarea {
  width: 100%;
  height: 72px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(200, 170, 110, 0.15);
  border-radius: 6px;
  padding: 0.55rem 0.85rem;
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(220, 200, 160, 0.9);
  resize: none;
  box-sizing: border-box;
}
.vault-email {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(200, 170, 110, 0.15);
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(220, 200, 160, 0.9);
  box-sizing: border-box;
}
.vault-textarea::placeholder,
.vault-email::placeholder { color: rgba(200, 170, 110, 0.28); }
.vault-send {
  width: 100%;
  padding: 0.55rem;
  background: rgba(200, 170, 110, 0.07);
  border: 1px solid rgba(200, 170, 110, 0.25);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(220, 195, 145, 0.75);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.vault-send:hover {
  background: rgba(200, 170, 110, 0.14);
  border-color: rgba(200, 170, 110, 0.5);
}
.vault-sent {
  display: none;
  text-align: center;
  font-size: 11px;
  color: rgba(200, 170, 110, 0.55);
  letter-spacing: 0.08em;
}
