/* ══════════════════════════════════════════════════
   KEVIN DURHAM — Everything here is perfectly normal.
   ══════════════════════════════════════════════════ */

:root {
  --ink: #14110f;
  --ink-soft: #241f1b;
  --cream: #f0e7d4;
  --cream-dim: #cfc4ab;
  --red: #a32b2b;
  --red-deep: #6e1a1a;
  --gold: #c9972f;
  --gold-soft: #e0b656;
  --plum: #3c2233;
  --wall: #2a1e2b;
  --wall-light: #43304a;
  --wood: #4a2f1e;
  --wood-dark: #2e1d12;
  --tardis: #003b6f;
  --serif: "Fraunces", Georgia, serif;
  --mono: "IBM Plex Mono", monospace;
}

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

html { scroll-behavior: auto; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--serif);
  overflow-x: hidden;
  min-height: 100vh;
}

/* lights-off dims content but leaves fixed overlays functional */
body > header, body > section, body > footer { transition: filter 0.6s ease; }
body.lights-off > header,
body.lights-off > section,
body.lights-off > footer { filter: brightness(0.18) sepia(0.3); }

.mono { font-family: var(--mono); }

a { color: var(--gold-soft); }

/* ══════════════ PRELOADER ══════════════ */
#preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.pre-inner { text-align: center; }
.pre-line {
  font-family: var(--mono); font-size: 0.95rem; color: var(--cream-dim);
  margin-bottom: 1.2rem; min-height: 1.4em;
}
.pre-count {
  font-family: var(--serif); font-weight: 600; font-size: 3.4rem;
  color: var(--gold); font-variant-numeric: tabular-nums;
}

/* ══════════════ FILM GRAIN + VIGNETTE ══════════════ */
@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 1%); }
  40% { transform: translate(1%, -2%); }
  60% { transform: translate(-1%, 2%); }
  80% { transform: translate(2%, -1%); }
}
#grain {
  position: fixed; inset: -4%; z-index: 980; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain-shift 0.7s steps(4) infinite;
}
#vignette {
  position: fixed; inset: 0; z-index: 979; pointer-events: none;
  background: radial-gradient(ellipse 105% 95% at 50% 45%, transparent 62%, rgba(6, 4, 3, 0.5) 100%);
}

/* ══════════════ HERO ══════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 90% 60% at 50% 30%, #241c26 0%, var(--ink) 70%);
  overflow: hidden;
}

.hero-inner { text-align: center; position: relative; z-index: 2; padding: 0 1.5rem; }

.hero-eyebrow {
  font-size: 0.8rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--cream-dim); margin-bottom: 1.6rem; opacity: 0.7;
}

.hero-name {
  font-size: clamp(2.8rem, 9.5vw, 8rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0.09em;
  color: var(--cream);
  display: flex; flex-direction: column; gap: 0.12em;
}
.hero-word { display: block; white-space: nowrap; }

.hero-roles {
  margin-top: 2rem;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-style: italic;
  color: var(--gold-soft);
  display: flex; gap: 0.8em; justify-content: center; align-items: baseline;
}
.role { display: inline-block; }
.role-dot { color: var(--cream-dim); font-style: normal; }

.hero-sub {
  margin-top: 2.4rem;
  font-size: 0.85rem; color: var(--cream-dim);
  letter-spacing: 0.12em;
}

.hero-scrollhint {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--cream-dim); text-align: center;
  display: flex; flex-direction: column; gap: 0.5rem; align-items: center;
}
.hint-arrow { font-size: 1.1rem; }

/* dust motes */
.dust { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.mote {
  position: absolute; border-radius: 50%;
  background: rgba(240, 231, 212, 0.25);
}

/* the tiny door */
.tiny-door {
  position: absolute; bottom: 0; right: 8%;
  width: 34px; height: 52px; z-index: 3;
  background: var(--wood);
  border: 3px solid var(--wood-dark);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
}
.tiny-door-panel {
  position: absolute; inset: 6px 5px;
  border: 1.5px solid var(--wood-dark); border-radius: 2px 2px 0 0;
}
.tiny-knob {
  position: absolute; right: 5px; top: 26px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
}
.tiny-door-note {
  position: absolute; bottom: 60px; right: 6%;
  font-size: 0.72rem; color: var(--cream-dim);
  opacity: 0; pointer-events: none;
}

/* ══════════════ CORRIDOR ══════════════ */
#corridor-wrap { position: relative; }
#corridor {
  height: 100vh; overflow: hidden; position: relative;
  background:
    linear-gradient(180deg,
      var(--wall) 0%, var(--wall) 62%,
      #1c1410 62%, #1c1410 64%,
      var(--wood-dark) 64%, #171009 100%);
}
/* wallpaper stripes + picture rail */
#corridor::before {
  content: ""; position: absolute; inset: 0 0 36% 0;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 44px, rgba(201, 151, 47, 0.05) 44px 88px),
    repeating-linear-gradient(0deg,
      transparent 0 120px, rgba(0,0,0,0.08) 120px 122px);
  pointer-events: none;
}
#corridor::after {
  content: ""; position: absolute; left: 0; right: 0; top: 61.4%;
  height: 8px;
  background: linear-gradient(180deg, var(--gold) 0%, #7a5a1c 100%);
  opacity: 0.5;
}

.corridor-track {
  display: flex; align-items: flex-end;
  height: 100%;
  padding: 0 6vw;
  gap: 7vw;
  width: max-content;
  position: relative; z-index: 1; /* keeps doors above the picture rail */
}

.corridor-intro {
  align-self: center;
  min-width: 34vw;
  padding-right: 4vw;
}
.corridor-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 600; font-style: italic;
  color: var(--cream);
}
.corridor-note { margin-top: 1.4rem; color: var(--cream-dim); font-size: 0.9rem; line-height: 1.8; }

.corridor-end {
  align-self: center; min-width: 30vw; text-align: center;
  color: var(--cream-dim); font-size: 0.85rem; line-height: 1.9;
}

/* wall sconces — one above each door, flickering slightly out of sync */
@keyframes sconce-flicker {
  0%, 100% { opacity: 0.85; }
  8% { opacity: 0.6; }
  12% { opacity: 0.9; }
  44% { opacity: 0.75; }
  47% { opacity: 0.55; }
  50% { opacity: 0.88; }
  82% { opacity: 0.7; }
}
.door-unit::before {
  content: "";
  position: absolute; top: -19vh; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 90px;
  background:
    radial-gradient(circle at 50% 60%, rgba(224, 182, 86, 0.5) 0%, rgba(224, 182, 86, 0.12) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: sconce-flicker 5.5s infinite;
}
.door-unit:nth-child(odd)::before { animation-duration: 7.3s; animation-delay: 1.2s; }
.door-unit::after {
  content: "";
  position: absolute; top: -14.5vh; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 16px;
  background: linear-gradient(180deg, var(--gold-soft), #7a5a1c);
  border-radius: 5px 5px 2px 2px;
  pointer-events: none;
}
.corridor-intro::before, .corridor-intro::after,
.corridor-end::before, .corridor-end::after { display: none; }

/* sconce outage — a light occasionally gives up, then recovers */
.door-unit.sconce-out::before {
  animation: none;
  opacity: 0.06;
  transition: opacity 0.15s ease;
}

/* the peeker. nobody knows who he is. he is not explained. */
.peeker {
  position: absolute;
  top: 18%; left: 4%;
  width: 46%; height: 40%;
  z-index: 0; /* behind the slab, in the dark */
  opacity: 0;
  pointer-events: none;
}
.peeker-head {
  position: absolute; top: 0; left: 0;
  width: 58%; aspect-ratio: 1;
  background: #1d1519;
  border-radius: 50% 50% 46% 46%;
  box-shadow: inset -4px 2px 8px rgba(0,0,0,0.5);
}
.peeker-eye {
  position: absolute;
  top: 38%;
  width: 9%; height: 9%;
  border-radius: 50%;
  background: var(--gold-soft);
  opacity: 0.85;
}
.peeker-eye.l { left: 16%; }
.peeker-eye.r { left: 38%; }
.peeker-shoulder {
  position: absolute; top: 88%; left: -12%;
  width: 84%; height: 60%;
  background: #1d1519;
  border-radius: 45% 55% 0 0;
}

/* the moth. it is in love with one of the lights. */
.moth {
  position: absolute;
  width: 11px; height: 9px;
  z-index: 2; pointer-events: none;
  opacity: 0;
}
.moth::before, .moth::after {
  content: "";
  position: absolute; top: 0;
  width: 5px; height: 8px;
  background: #8d8378;
  border-radius: 60% 60% 40% 40%;
  animation: moth-flap 0.09s infinite alternate;
}
.moth::before { left: 0; transform-origin: right center; }
.moth::after { right: 0; transform-origin: left center; animation-delay: 0.045s; }
@keyframes moth-flap {
  from { transform: rotateY(12deg) scaleX(1); }
  to { transform: rotateY(70deg) scaleX(0.55); }
}

/* the corridor mouse. it has somewhere to be. */
.mouse {
  position: absolute;
  bottom: 5.5vh; left: -60px;
  width: 34px; height: 14px;
  z-index: 2; pointer-events: none;
  opacity: 0;
}
.mouse-body {
  position: absolute; right: 0; bottom: 0;
  width: 24px; height: 12px;
  background: #57504a;
  border-radius: 60% 90% 40% 40%;
}
.mouse-body::before { /* ear */
  content: ""; position: absolute; right: 4px; top: -3px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #57504a;
}
.mouse-tail {
  position: absolute; left: -10px; bottom: 2px;
  width: 14px; height: 2px;
  background: #57504a; border-radius: 2px;
  transform-origin: right center;
  transform: rotate(8deg);
}

/* door units */
.door-unit {
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 6vh;
  position: relative;
}
.door-label {
  font-size: 0.7rem; letter-spacing: 0.3em; color: var(--cream-dim);
  margin-bottom: 1rem; opacity: 0.75;
}
.door-caption {
  margin-top: 1.3rem; text-align: center;
  font-size: 0.85rem; font-style: italic; color: var(--cream-dim);
  line-height: 1.6;
}

/* the door itself */
.door {
  background: none; border: none; cursor: pointer;
  padding: 0; position: relative;
  -webkit-tap-highlight-color: transparent;
}
.door-frame {
  position: relative;
  width: 200px; height: 380px;
  background: var(--wood-dark);
  border-radius: 6px 6px 0 0;
  padding: 10px 10px 0 10px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.5),
    inset 0 0 0 2px rgba(201,151,47,0.12);
  perspective: 900px;
}
.door.small .door-frame { width: 150px; height: 290px; }

.door-dark {
  position: absolute; inset: 10px 10px 0 10px;
  background: radial-gradient(ellipse at 50% 40%, #0a070c 0%, #000 80%);
  border-radius: 3px 3px 0 0;
  z-index: 0;
}
.door-dark.brick {
  background:
    repeating-linear-gradient(0deg, #5c3a2a 0 22px, #3f2417 22px 26px),
    #5c3a2a;
  display: flex; align-items: center; justify-content: center;
}
.brick-note {
  background: var(--cream); color: var(--ink);
  font-size: 0.62rem; padding: 0.5em 0.8em;
  transform: rotate(-3deg);
  line-height: 1.5; text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.5);
}
.door-dark.starfield {
  background: radial-gradient(ellipse at 50% 45%, #071c38 0%, #000411 75%);
}

.door-slab {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  background: linear-gradient(105deg, #5a3a24 0%, var(--wood) 45%, #3a2414 100%);
  border-radius: 3px 3px 0 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  box-shadow: inset 0 0 24px rgba(0,0,0,0.35);
}
.door-slab.no-door { background: linear-gradient(105deg, #4a1d1d 0%, #5e2424 45%, #351111 100%); }
.door-slab.blue-door { background: linear-gradient(105deg, #0a4d8c 0%, var(--tardis) 45%, #002446 100%); }

.door-panel {
  position: absolute; left: 14%; right: 14%;
  border: 2px solid rgba(0,0,0,0.35);
  box-shadow: inset 2px 2px 4px rgba(255,255,255,0.06);
  border-radius: 2px;
}
.door-panel.top { top: 7%; height: 32%; }
.door-panel.bottom { bottom: 7%; height: 34%; }

.door-plaque {
  position: absolute; top: 44%; left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--ink);
  font-family: var(--serif); font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.08em;
  padding: 0.45em 0.9em;
  border-radius: 2px;
  text-align: center; line-height: 1.25;
  box-shadow: 0 2px 6px rgba(0,0,0,0.45);
  white-space: nowrap;
}
.door.small .door-plaque { font-size: 0.72rem; }
.door-slab.blue-door .door-plaque {
  background: var(--cream); font-size: 0.55rem; font-family: var(--mono); font-weight: 500;
}

.door-knob {
  position: absolute; right: 9%; top: 50%;
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-soft), #7a5a1c);
  box-shadow: 0 2px 5px rgba(0,0,0,0.55);
}

/* hover: door creaks open */
.door:hover .door-slab, .door:focus-visible .door-slab {
  transform: rotateY(-28deg);
  transition: transform 0.55s cubic-bezier(0.34, 1.3, 0.5, 1);
}
.door .door-slab { transition: transform 0.45s ease; }

/* the NO door refuses */
.door-unit[data-gag="no"] .door:hover .door-slab { transform: none; }

/* light spill under hovering doors */
.door::after {
  content: ""; position: absolute;
  left: 8%; right: 8%; bottom: -14px; height: 14px;
  background: radial-gradient(ellipse at 50% 0%, rgba(224,182,86,0.55), transparent 70%);
  opacity: 0; transition: opacity 0.4s ease;
  pointer-events: none;
}
.door:hover::after { opacity: 1; }

/* ══════════════ THROUGH THE DOOR ══════════════ */
#door-transition {
  position: relative;
  height: 100vh;
  background: radial-gradient(ellipse 90% 70% at 50% 45%, #221a24 0%, var(--ink) 75%);
  overflow: hidden;
}
.dt-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.dt-door { position: relative; will-change: transform; }
.dt-frame {
  position: relative;
  width: 240px; height: 430px;
  background: var(--wood-dark);
  border-radius: 8px 8px 0 0;
  padding: 12px 12px 0 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), inset 0 0 0 2px rgba(201,151,47,0.15);
  perspective: 1100px;
}
.dt-dark {
  position: absolute; inset: 12px 12px 0 12px;
  background: radial-gradient(ellipse at 50% 45%, #2a1e2b 0%, #0c080d 85%);
  border-radius: 4px 4px 0 0;
}
.dt-slab {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  background: linear-gradient(105deg, #5a3a24 0%, var(--wood) 45%, #3a2414 100%);
  border-radius: 4px 4px 0 0;
  transform-origin: left center;
  box-shadow: inset 0 0 28px rgba(0,0,0,0.35);
}
.dt-plaque {
  position: absolute; top: 44%; left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--ink);
  font-family: var(--serif); font-weight: 700;
  font-size: 1rem; letter-spacing: 0.1em;
  padding: 0.45em 1em; border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.45);
  white-space: nowrap;
}
.dt-knob {
  position: absolute; right: 9%; top: 50%;
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-soft), #7a5a1c);
  box-shadow: 0 2px 5px rgba(0,0,0,0.55);
}
.dt-caption {
  position: absolute; bottom: 8vh; left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem; letter-spacing: 0.18em;
  color: var(--cream-dim);
  white-space: nowrap;
}

/* ══════════════ WORKS WALL ══════════════ */
#works {
  padding: 9rem 6vw 8rem;
  background:
    linear-gradient(180deg, #171009 0%, var(--ink) 18%, var(--ink) 100%);
}
.works-title {
  font-size: clamp(2.2rem, 5vw, 4rem); font-style: italic; font-weight: 600;
  text-align: center;
}
.works-sub { text-align: center; color: var(--cream-dim); font-size: 0.85rem; margin-top: 0.8rem; }

.works-grid {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 4rem 3rem;
  max-width: 1200px; margin-left: auto; margin-right: auto;
}
.work-frame {
  cursor: pointer;
  text-align: center;
  transition: transform 0.4s ease;
}
.work-frame:hover { transform: rotate(0deg) translateY(-6px) !important; }
.work-mat {
  background: var(--cream);
  padding: 12px;
  border: 10px solid var(--wood-dark);
  outline: 2px solid rgba(201,151,47,0.35);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}
.work-mat img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.work-frame h3 {
  margin-top: 1.2rem; font-size: 1.3rem; font-weight: 600;
}
.work-frame p { color: var(--cream-dim); font-size: 0.75rem; margin-top: 0.35rem; }

/* group headers within the wall */
.works-group {
  margin-top: 5rem;
  text-align: center;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold-soft);
}
.works-group + .works-grid { margin-top: 2.5rem; }
.works-groupnote {
  text-align: center; margin-top: 0.7rem;
  font-size: 0.7rem; color: var(--cream-dim); opacity: 0.8;
}

/* veiled works — paintings not yet unveiled */
.veil-mat { position: relative; overflow: hidden; }
.veil-void {
  aspect-ratio: 4/3;
  background: radial-gradient(ellipse at 50% 45%, #17131a 0%, #0a080c 80%);
}
.veil-cloth {
  position: absolute; inset: -6% -4%;
  background:
    linear-gradient(104deg,
      #ded4bf 0%, #cfc4ab 18%, #e6dcc8 30%,
      #c8bda2 46%, #e2d8c3 60%, #cbc0a6 76%, #ddd3be 100%);
  border-radius: 0 0 42% 38% / 0 0 9% 8%;
  box-shadow: inset 0 -18px 30px rgba(0,0,0,0.25);
  transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.5, 1);
  transform-origin: top center;
}
.veiled:hover .veil-cloth {
  /* a corner lifts. it reveals nothing. */
  transform: rotate(-3deg) translateY(-9%);
}
.veiled { cursor: default; }

/* ══════════════ THE BUTTON ══════════════ */
#button-room {
  padding: 10rem 1.5rem;
  background: var(--ink);
  border-top: 1px solid rgba(201,151,47,0.15);
  border-bottom: 1px solid rgba(201,151,47,0.15);
}
.button-room-inner { text-align: center; }
.button-instructions { color: var(--cream-dim); font-size: 0.9rem; letter-spacing: 0.08em; min-height: 1.5em; }

#doNotPress {
  margin-top: 3rem;
  width: 150px; height: 150px; border-radius: 50%;
  border: none; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #d64545, var(--red) 55%, var(--red-deep));
  box-shadow:
    0 14px 0 var(--red-deep),
    0 26px 40px rgba(0,0,0,0.6);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
#doNotPress:active {
  transform: translateY(10px);
  box-shadow: 0 4px 0 var(--red-deep), 0 10px 20px rgba(0,0,0,0.6);
}
.btn-face {
  font-family: var(--mono); font-weight: 500;
  color: var(--cream); font-size: 0.9rem; letter-spacing: 0.15em;
}
.button-counter { margin-top: 2.6rem; color: var(--cream-dim); font-size: 0.78rem; min-height: 1.5em; }

/* ══════════════ FOOTER ══════════════ */
#footer {
  background: #0e0b09;
  padding: 5rem 6vw 2.5rem;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 3rem;
  max-width: 1200px; margin: 0 auto;
}
.footer-name { font-size: 2rem; font-weight: 700; letter-spacing: 0.04em; }
.footer-left p { color: var(--cream-dim); font-size: 0.8rem; margin-top: 0.5rem; }
.footer-mail {
  display: inline-block; margin-top: 1.4rem;
  font-family: var(--mono); font-size: 0.95rem;
}
.footer-right { display: flex; flex-direction: column; gap: 0.9rem; font-size: 0.85rem; }
.footer-right a { text-decoration: none; }
.footer-right a:hover { text-decoration: underline; }

.footer-legal {
  max-width: 1200px; margin: 4rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(240,231,212,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.68rem; color: var(--cream-dim); opacity: 0.8;
}
#lightSwitch, #autopilotSwitch {
  background: none; border: 1px solid var(--cream-dim); color: var(--cream);
  font-size: 0.68rem; padding: 0.1em 0.6em; cursor: pointer;
}

/* the Shirley exchange */
.shirley { margin-top: 2.2rem; }
.shirley-btn {
  background: none; border: none;
  color: var(--gold-soft); font-size: 0.85rem;
  cursor: pointer; font-style: italic;
  border-bottom: 1px dashed var(--gold-soft);
  padding: 0 0 2px;
}

/* hero letter spans (populated by JS) */
.hero-word .ch {
  display: inline-block;
  transform-style: preserve-3d;
  transition: transform 0.25s ease, color 0.25s ease;
}
.hero-word .ch:hover {
  transform: translateY(-8px) rotate(3deg);
  color: var(--gold-soft);
}

/* ══════════════ ROOM OVERLAY ══════════════ */
#room-overlay {
  position: fixed; inset: 0; z-index: 900;
  display: none;
}
#room-overlay.open { display: block; }
.room-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 8, 6, 0.85);
  backdrop-filter: blur(3px);
}
.room-panel {
  position: absolute; inset: 4vh 0 0 0;
  margin: 0 auto;
  max-width: 860px;
  background: linear-gradient(180deg, #1e1712 0%, var(--ink) 120px);
  border: 1px solid rgba(201,151,47,0.25);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  overflow-y: auto;
  padding: 2.2rem clamp(1.4rem, 5vw, 4rem) 5rem;
}
.room-close {
  background: none; border: none; color: var(--gold-soft);
  font-size: 0.8rem; cursor: pointer; letter-spacing: 0.08em;
  padding: 0.4em 0; margin-bottom: 2rem;
}
.room-close:hover { text-decoration: underline; }

.room-no { color: var(--cream-dim); font-size: 0.7rem; letter-spacing: 0.3em; }
.room-title {
  font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; font-style: italic;
  margin-top: 0.4rem;
}
.room-lede {
  margin-top: 1rem; font-size: 1.15rem; color: var(--gold-soft);
  font-style: italic; line-height: 1.5;
}
.room-work { margin-top: 3.4rem; }
.room-work h3 { font-size: 1.5rem; font-weight: 600; display: flex; flex-wrap: wrap; gap: 0.8em; align-items: baseline; }
.room-tag { font-size: 0.65rem; color: var(--cream-dim); letter-spacing: 0.15em; text-transform: uppercase; }
.room-work p { margin-top: 0.9rem; line-height: 1.75; color: #d8cfbc; font-size: 1rem; }
.room-video {
  margin-top: 1.4rem;
  aspect-ratio: 16/9;
  background: #000;
  border: 1px solid rgba(201,151,47,0.2);
}
.room-video iframe { width: 100%; height: 100%; border: none; display: block; }
/* room action buttons — brass plaques you can press */
.room-actions {
  margin-top: 2rem;
  display: flex; flex-wrap: wrap; gap: 1.2rem;
}
.room-btn {
  display: inline-flex; flex-direction: column; gap: 0.3em;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--ink);
  font-family: var(--serif); font-weight: 700;
  font-size: 1.05rem; letter-spacing: 0.05em;
  padding: 0.85em 1.4em;
  border-radius: 3px;
  text-decoration: none;
  box-shadow: 0 4px 0 #7a5a1c, 0 10px 22px rgba(0,0,0,0.45);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.room-btn:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #7a5a1c, 0 6px 14px rgba(0,0,0,0.45);
}
.room-btn-note {
  font-size: 0.62rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.75;
}

/* podcast episode list */
.ep-list {
  list-style: none;
  margin-top: 1.6rem;
}
.ep {
  padding: 1.6rem 0;
  border-top: 1px solid rgba(201, 151, 47, 0.18);
}
.ep-head {
  display: flex; align-items: baseline; gap: 1rem;
  flex-wrap: wrap;
}
.ep-date {
  font-size: 0.68rem; color: var(--cream-dim);
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.ep-title {
  font-size: 1.15rem; font-weight: 600;
  color: var(--cream);
}
.ep-desc {
  margin-top: 0.5rem;
  font-size: 0.92rem; line-height: 1.65;
  color: #c9c0ad;
}
.ep audio {
  margin-top: 0.9rem;
  width: 100%;
  height: 40px;
  filter: sepia(0.35) saturate(0.8) brightness(0.92);
  border-radius: 4px;
}

.contact-big { font-size: clamp(1.2rem, 4vw, 2rem); }
.contact-big a { text-decoration: none; border-bottom: 2px solid var(--gold); }

/* ══════════════ MOBILE ══════════════ */
@media (max-width: 820px) {
  #door-transition { display: none; }
  .door-unit::before, .door-unit::after { display: none; }
  #corridor { height: auto; overflow: visible; }
  .corridor-track {
    flex-direction: column; align-items: center;
    width: 100%; padding: 5rem 1.5rem;
    gap: 5rem;
  }
  .corridor-intro, .corridor-end { min-width: 0; text-align: center; padding: 0; }
  .door-unit { margin-bottom: 0; }
  .footer-inner { flex-direction: column; }
  .tiny-door { right: 5%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
