/* RELIC — Museum of Vanished Sounds
   relic.css — exhibition dark, bone labels, brass fittings, oxblood accent. */

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

:root {
  --noir: #121110;
  --noir-deep: #0a0908;
  --bone: #E5DFD3;
  --bone-dim: rgba(229, 223, 211, .56);
  --bone-faint: rgba(229, 223, 211, .3);
  --brass: #B08D57;
  --brass-bright: #D4AE79;
  --brass-dim: rgba(176, 141, 87, .55);
  --oxblood: #6E2B25;
  --oxblood-bright: #8A362E;
  --ease-out: cubic-bezier(.22, .61, .16, 1);
  --ease-decel: cubic-bezier(.13, .83, .34, 1);
  --ease-snap: cubic-bezier(.5, 0, .18, 1);
  --nav-h: 66px;
}

html { scroll-behavior: auto; }

body {
  background: var(--noir);
  color: var(--bone);
  font-family: 'Assistant', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  height: 100dvh;
}

::selection { background: rgba(176, 141, 87, .35); color: var(--bone); }

:focus-visible {
  outline: 1.5px solid var(--brass-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* film grain */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ================= topbar : wordmark + floor plan ================= */

.wordmark {
  position: fixed; top: 22px; left: clamp(18px, 4vw, 40px); z-index: 60;
  pointer-events: none;
}
.wordmark-text {
  font-family: 'Prata', serif; font-size: 1.05rem; letter-spacing: .28em;
  color: var(--bone); opacity: .85;
}

.floorplan {
  position: fixed; top: 0; left: 0; right: 0; z-index: 55;
  display: flex; align-items: center; gap: clamp(10px, 2vw, 26px);
  height: var(--nav-h);
  padding: 0 clamp(18px, 4vw, 44px) 0 calc(clamp(18px, 4vw, 40px) + 92px);
  background: linear-gradient(to bottom, rgba(10, 9, 8, .92) 0%, rgba(10, 9, 8, .72) 65%, transparent 100%);
  backdrop-filter: blur(4px);
  overflow-x: auto; scrollbar-width: none;
}
.floorplan::-webkit-scrollbar { display: none; }
.floorplan-track {
  position: absolute; left: clamp(18px, 4vw, 44px); right: clamp(18px, 4vw, 44px);
  bottom: 16px; height: 1px; background: rgba(176, 141, 87, .22); pointer-events: none;
}
.floorplan-fill {
  position: absolute; bottom: 13px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brass-bright); box-shadow: 0 0 8px rgba(212, 174, 121, .7);
  transform: translateX(-50%); transition: left .55s var(--ease-out); pointer-events: none;
}
.fp-btn {
  position: relative; flex: 0 0 auto; padding: 22px 2px 18px;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--bone-faint); white-space: nowrap; transition: color .3s var(--ease-out);
}
.fp-btn:hover { color: var(--bone-dim); }
.fp-btn.is-active { color: var(--brass-bright); }

/* ================= scroll hint ================= */

.scroll-hint {
  position: fixed; right: clamp(16px, 3.4vw, 36px); bottom: clamp(16px, 3.4vh, 34px); z-index: 55;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(176, 141, 87, .4);
  display: flex; align-items: center; justify-content: center;
  color: var(--brass); font-size: 1.1rem;
  background: rgba(18, 17, 16, .55); backdrop-filter: blur(3px);
  animation: hintPulse 2.6s ease-in-out infinite;
  transition: opacity .5s var(--ease-out), transform .3s var(--ease-out), border-color .3s;
}
.scroll-hint:hover { border-color: var(--brass-bright); transform: scale(1.06); }
.scroll-hint.is-hidden { opacity: 0; pointer-events: none; }
@keyframes hintPulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* ================= gallery ================= */

.gallery {
  display: flex; flex-direction: row;
  height: 100dvh; width: 100vw;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }

.room {
  flex: 0 0 100vw; height: 100dvh; width: 100vw;
  position: relative; overflow: hidden;
  scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center;
}
.room::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 32% 108%, rgba(0, 0, 0, .7), transparent 62%),
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(40, 35, 30, .35), transparent 60%),
    repeating-linear-gradient(100deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 46px),
    var(--noir);
}
.room::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  box-shadow: inset 0 0 min(18vw, 200px) rgba(0, 0, 0, .78);
}

.room-index {
  position: absolute; top: calc(var(--nav-h) + 18px); right: clamp(18px, 4vw, 44px); z-index: 2;
  font-family: 'Prata', serif; font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: rgba(229, 223, 211, .16); letter-spacing: .04em;
}
.room-index i { font-style: normal; opacity: .7; }

/* ================= spotlight cone ================= */

.spotlight {
  position: absolute; top: -8%; left: 32%; width: 62%; height: 78%;
  transform: translateX(-50%);
  clip-path: polygon(44% 0%, 56% 0%, 84% 100%, 16% 100%);
  background: radial-gradient(ellipse 60% 55% at 50% 6%, rgba(255, 240, 210, .4), rgba(255, 235, 200, .12) 45%, transparent 72%);
  filter: blur(14px);
  opacity: .32;
  z-index: 1;
  pointer-events: none;
  transition: opacity 1.15s var(--ease-out), filter 1.15s var(--ease-out);
}
.spotlight::after {
  content: ''; position: absolute; inset: 0; opacity: .55; mix-blend-mode: screen;
  background-image:
    radial-gradient(1.6px 1.6px at 22% 30%, rgba(229, 223, 211, .55), transparent),
    radial-gradient(1.2px 1.2px at 62% 58%, rgba(229, 223, 211, .45), transparent),
    radial-gradient(1.6px 1.6px at 78% 22%, rgba(229, 223, 211, .4), transparent),
    radial-gradient(1.2px 1.2px at 42% 78%, rgba(229, 223, 211, .35), transparent),
    radial-gradient(1.2px 1.2px at 85% 68%, rgba(229, 223, 211, .3), transparent);
  animation: dustDrift 16s linear infinite;
}
.room.is-active .spotlight { opacity: 1; filter: blur(20px); animation: spotBreathe 7s ease-in-out infinite; }
@keyframes spotBreathe {
  0%, 100% { opacity: .92; }
  50% { opacity: 1; }
}
@keyframes dustDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 0 -160px, 0 -110px, 0 -190px, 0 -130px, 0 -150px; }
}

/* ================= room content ================= */

.room-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(28px, 6vw, 84px);
  max-width: 1180px; width: 100%;
  padding: calc(var(--nav-h) + 8px) clamp(20px, 6vw, 64px) 40px;
  opacity: 0; transform: translateY(18px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.room.is-active .room-inner { opacity: 1; transform: translateY(0); }

.plinth-wrap {
  flex: 0 0 auto; width: min(34vw, 360px); aspect-ratio: 1 / 1;
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 15%;
}
.plinth {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 78%; height: 26%;
  background: linear-gradient(180deg, #2a2521 0%, #17140f 70%, #100e0b 100%);
  clip-path: polygon(8% 0%, 92% 0%, 100% 100%, 0% 100%);
  box-shadow: 0 26px 50px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(229, 223, 211, .08);
}
.plinth::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass-dim), transparent);
}
.plinth-plate {
  position: absolute; top: 22%; left: 50%; transform: translateX(-50%);
  font-size: .58rem; letter-spacing: .22em; color: var(--brass-dim);
}

.artifact {
  position: relative; z-index: 1;
  width: 84%; max-width: 320px;
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, .55));
}
.artifact .ink:not([fill]) { fill: none; }
.artifact .ink { stroke: var(--bone); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.artifact .ink-dim { fill: none; stroke: rgba(229, 223, 211, .32); stroke-width: 1.15; stroke-linecap: round; }
.artifact .brass-ink { stroke: var(--brass); }
.artifact .digit {
  font-family: 'Assistant', sans-serif; font-size: 9px; fill: rgba(229, 223, 211, .5);
  text-anchor: middle; dominant-baseline: middle;
}
.artifact .status-text {
  font-family: 'Assistant', sans-serif; font-weight: 600; font-size: 10.5px; letter-spacing: .1em;
  fill: var(--brass); text-anchor: middle; text-transform: uppercase; transition: opacity .3s;
}

/* --- rotary --- */
.dial-face { transform-origin: 120px 120px; }
.artifact--rotary .holes circle { transition: none; }

/* --- typewriter --- */
.carriage { transform-origin: center; }
.key { transform-origin: center; }
.key.is-down { animation: keyPress .17s var(--ease-snap); }
@keyframes keyPress {
  0% { transform: translateY(0); }
  42% { transform: translateY(4.5px); fill: rgba(229, 223, 211, .12); }
  100% { transform: translateY(0); }
}
.bell.is-ringing { animation: bellRing .55s var(--ease-out); }
@keyframes bellRing {
  0% { fill: rgba(176, 141, 87, 0); transform: scale(1); }
  22% { fill: rgba(212, 174, 121, .7); transform: scale(1.22); }
  100% { fill: rgba(176, 141, 87, 0); transform: scale(1); }
}

/* --- modem --- */
.artifact--modem .led { fill: var(--brass); opacity: .28; transition: opacity .5s; }
.artifact--modem .led.is-lit { animation: ledBlink .32s ease-out; }
@keyframes ledBlink {
  0% { opacity: .28; }
  25% { opacity: 1; filter: drop-shadow(0 0 4px var(--brass-bright)); }
  100% { opacity: .28; }
}

/* --- degauss --- */
.screen-group { transform-origin: 120px 113px; }
.screen-group.is-flash .screen { animation: crtFlash .18s ease-out; }
@keyframes crtFlash {
  0% { fill: rgba(229, 223, 211, 0); }
  30% { fill: rgba(229, 223, 211, .55); }
  100% { fill: rgba(229, 223, 211, 0); }
}
.screen-group.is-wobbling { animation: crtWobble 1.05s var(--ease-out); }
@keyframes crtWobble {
  0% { transform: scaleX(1) skewX(0deg); }
  12% { transform: scaleX(1.05) skewX(-3deg); }
  26% { transform: scaleX(.94) skewX(3deg); }
  40% { transform: scaleX(1.03) skewX(-2deg); }
  58% { transform: scaleX(.97) skewX(1.4deg); }
  76% { transform: scaleX(1.015) skewX(-.6deg); }
  100% { transform: scaleX(1) skewX(0deg); }
}
.bar { fill: rgba(176, 141, 87, 0); transition: fill .4s; }
.bar--b { fill: rgba(110, 43, 37, 0); }
.screen-group.is-wobbling .bar { fill: rgba(176, 141, 87, .38); animation: barFlicker .9s ease-in-out; }
.screen-group.is-wobbling .bar--b { fill: rgba(138, 54, 46, .4); animation: barFlicker .9s ease-in-out .06s; }
@keyframes barFlicker {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}
.artifact--degauss .scanlines { opacity: .5; }
.room.is-active .artifact--degauss .scanlines { animation: scanShimmer 5s ease-in-out infinite; }
@keyframes scanShimmer {
  0%, 100% { opacity: .35; }
  50% { opacity: .6; }
}

/* --- projector --- */
.reel { transform-box: fill-box; transform-origin: center; }
.reel.is-spinning { animation: reelSpin 1.4s linear infinite; }
@keyframes reelSpin { to { transform: rotate(360deg); } }
.filmstrip { stroke-dasharray: 3 7; }
.room.is-active .filmstrip { animation: filmFeed 1.4s linear infinite; }
@keyframes filmFeed { to { stroke-dashoffset: -20; } }
.lamp-glow { transition: opacity .4s; }
.room.is-active .lamp-glow { animation: lampPulse 2.6s ease-in-out infinite; }
@keyframes lampPulse {
  0%, 100% { opacity: .55; filter: drop-shadow(0 0 2px rgba(176, 141, 87, .3)); }
  50% { opacity: .95; filter: drop-shadow(0 0 9px rgba(212, 174, 121, .75)); }
}

/* --- telegraph --- */
.key-lever { transform-origin: 159px 150px; transition: transform .09s var(--ease-snap); }
.key-lever.is-down { transform: rotate(9deg); }
.clapper-group { transform-origin: 65px 130px; transition: transform .07s var(--ease-snap); }
.clapper-group.is-down { transform: rotate(-15deg); }

/* ================= placard ================= */

.placard {
  flex: 1 1 420px; max-width: 440px;
  padding: clamp(20px, 2.6vw, 30px) clamp(20px, 2.6vw, 32px);
  background: linear-gradient(155deg, rgba(30, 27, 23, .55), rgba(16, 14, 12, .48));
  border: 1px solid rgba(176, 141, 87, .22);
  border-left: 2px solid var(--brass-dim);
  position: relative;
}
.placard-no {
  font-size: .68rem; letter-spacing: .14em; color: var(--brass-dim);
  font-variant-numeric: tabular-nums; margin-bottom: .9rem;
}
.placard-title {
  font-family: 'Prata', serif; font-size: clamp(1.7rem, 2.9vw, 2.25rem);
  line-height: 1.08; margin-bottom: .4rem; color: var(--bone);
}
.placard-maker { font-style: italic; color: var(--bone-dim); font-size: .96rem; margin-bottom: .3rem; }
.placard-dates {
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass);
  margin-bottom: 1.15rem; padding-bottom: 1.05rem; border-bottom: 1px solid rgba(176, 141, 87, .2);
}
.placard-desc { font-size: .98rem; line-height: 1.62; color: var(--bone-dim); margin-bottom: 1.5rem; max-width: 46ch; }

.listen-row { display: flex; align-items: center; gap: 16px; margin-bottom: .85rem; flex-wrap: wrap; }

.listen-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px;
  padding: .68em 1.35em .68em 1.1em; border-radius: 999px;
  background: linear-gradient(180deg, #C39B62, var(--brass) 55%, #8f6f42);
  color: #1a1509; font-weight: 600; font-size: .86rem; letter-spacing: .04em;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), filter .25s;
}
.listen-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .4); }
.listen-btn:active { transform: translateY(0); }
.listen-icon {
  width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #1a1509;
  transition: all .2s;
}
.listen-btn.is-playing .listen-icon {
  width: 10px; height: 11px; border-style: none;
  background:
    linear-gradient(#1a1509, #1a1509) 0 0 / 3px 100% no-repeat,
    linear-gradient(#1a1509, #1a1509) 7px 0 / 3px 100% no-repeat;
  border-width: 0;
}
.listen-btn.is-playing { filter: saturate(1.15); }
.listen-label::after { content: 'Listen'; }
.listen-btn.is-playing .listen-label::after { content: 'Playing'; }

.waveform {
  flex: 1 1 150px; min-width: 130px; height: 44px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(176, 141, 87, .18);
  border-radius: 3px;
}
.placard-caption { font-size: .74rem; color: var(--bone-faint); line-height: 1.5; letter-spacing: .01em; }

/* ================= entrance hall ================= */

.room--entrance::before {
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(0, 0, 0, .75), transparent 65%),
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(50, 43, 33, .4), transparent 60%),
    var(--noir);
}
.entrance-beams { position: absolute; inset: 0; overflow: hidden; z-index: 1; pointer-events: none; }
.entrance-beams span {
  position: absolute; top: -20%; width: 26vw; height: 140%;
  background: linear-gradient(180deg, rgba(255, 240, 210, .07), transparent 75%);
  filter: blur(30px);
  transform-origin: top center;
}
.entrance-beams span:nth-child(1) { left: 8%; transform: rotate(8deg); animation: beamSway 9s ease-in-out infinite; }
.entrance-beams span:nth-child(2) { left: 42%; transform: rotate(-4deg); animation: beamSway 11s ease-in-out infinite reverse; }
.entrance-beams span:nth-child(3) { left: 74%; transform: rotate(10deg); animation: beamSway 13s ease-in-out infinite; }
@keyframes beamSway {
  0%, 100% { opacity: .5; transform: rotate(6deg); }
  50% { opacity: .9; transform: rotate(-3deg); }
}

.entrance-inner {
  position: relative; z-index: 2; max-width: 720px; text-align: center;
  padding: 0 clamp(20px, 6vw, 60px);
}
.kicker { font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: var(--brass); margin-bottom: 1.4rem; opacity: 0; animation: rise .9s var(--ease-out) forwards; animation-delay: .1s; }
.entrance-title {
  font-family: 'Prata', serif; font-size: clamp(4.2rem, 13vw, 8.6rem); line-height: .92;
  letter-spacing: .01em; color: var(--bone);
  text-shadow: 0 0 60px rgba(212, 174, 121, .22), 0 12px 40px rgba(0, 0, 0, .5);
  margin-bottom: .5rem;
  opacity: 0; animation: rise 1.1s var(--ease-out) forwards; animation-delay: .22s;
}
.entrance-sub {
  font-size: clamp(1rem, 2.1vw, 1.35rem); letter-spacing: .32em; text-transform: uppercase;
  color: var(--brass-bright); margin-bottom: 2.6rem;
  opacity: 0; animation: rise .9s var(--ease-out) forwards; animation-delay: .38s;
}
.entrance-copy {
  font-size: clamp(.98rem, 1.35vw, 1.1rem); line-height: 1.75; color: var(--bone-dim);
  max-width: 58ch; margin: 0 auto 2.6rem;
  opacity: 0; animation: rise .9s var(--ease-out) forwards; animation-delay: .5s;
}
.begin-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: .95em 2em; border: 1px solid var(--brass-dim); border-radius: 999px;
  font-size: .92rem; letter-spacing: .08em; color: var(--bone);
  background: rgba(176, 141, 87, .07);
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out), transform .3s var(--ease-out), letter-spacing .3s;
  opacity: 0; animation: rise .9s var(--ease-out) forwards; animation-delay: .64s;
}
.begin-btn:hover { background: rgba(176, 141, 87, .16); border-color: var(--brass-bright); transform: translateY(-2px); letter-spacing: .12em; }
.begin-arrow { transition: transform .3s var(--ease-out); }
.begin-btn:hover .begin-arrow { transform: translateX(5px); }
.entrance-note {
  margin-top: 2.2rem; font-size: .78rem; letter-spacing: .04em; color: var(--bone-faint);
  opacity: 0; animation: rise .9s var(--ease-out) forwards; animation-delay: .78s;
}
@keyframes rise { to { opacity: 1; transform: none; } from { transform: translateY(14px); } }

/* ================= gift shop ================= */

.room--shop {
  scroll-snap-align: start;
  align-items: flex-start;
  overflow-y: auto;
}
.room--shop::before {
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(50, 43, 33, .32), transparent 60%),
    var(--noir);
}
.shop-inner {
  position: relative; z-index: 2; width: 100%; max-width: 1100px; margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) clamp(20px, 5vw, 60px) 40px; text-align: center;
}
.shop-title { font-family: 'Prata', serif; font-size: clamp(2.4rem, 5.5vw, 3.6rem); color: var(--bone); margin-bottom: .5rem; }
.shop-sub { font-size: 1rem; color: var(--brass-bright); letter-spacing: .06em; margin-bottom: 3rem; }

.postcards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(16px, 2vw, 26px); max-width: 980px; margin: 0 auto 3rem;
  perspective: 900px;
}
.postcard {
  background: linear-gradient(160deg, #1c1915, #100e0c);
  border: 1px solid rgba(176, 141, 87, .22);
  border-radius: 6px; padding: 22px 16px 20px;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .4);
  will-change: transform;
}
.postcard:hover { border-color: var(--brass-dim); box-shadow: 0 22px 44px rgba(0, 0, 0, .55); }
.pc-art { width: 84px; height: 84px; margin: 0 auto 14px; overflow: visible; }
.pc-art .ink:not([fill]) { fill: none; }
.pc-art .ink { stroke: var(--bone); stroke-width: 2.2; stroke-linecap: round; }
.pc-art .ink-dim { fill: none; stroke: rgba(229, 223, 211, .32); stroke-width: 1.6; }
.pc-art .brass-ink { stroke: var(--brass); }
.pc-title { font-family: 'Prata', serif; font-size: 1.05rem; color: var(--bone); margin-bottom: .35rem; }
.pc-price { font-size: .76rem; color: var(--brass-dim); letter-spacing: .02em; }

.shop-closing { max-width: 54ch; margin: 0 auto 2.6rem; color: var(--bone-faint); font-size: .92rem; line-height: 1.7; }

/* ================= footer ================= */

.site-foot {
  max-width: 980px; margin: 0 auto; padding-top: 1.6rem; margin-top: 1rem;
  border-top: 1px solid rgba(176, 141, 87, .18);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem 1.6rem;
  font-size: .76rem; color: var(--bone-faint); letter-spacing: .03em;
}
.site-foot a { color: var(--bone-dim); text-decoration: none; border-bottom: 1px solid rgba(176, 141, 87, .35); padding-bottom: 1px; transition: color .3s, border-color .3s; }
.site-foot a:hover { color: var(--brass-bright); border-color: var(--brass-bright); }
.foot-links { display: flex; gap: 1.3rem; }

/* ================= responsive : tablet / small desktop ================= */

@media (max-width: 1080px) {
  .room-inner { gap: clamp(20px, 4vw, 40px); }
  .plinth-wrap { width: min(30vw, 300px); }
}

/* ================= responsive : mobile — vertical stack ================= */

@media (max-width: 860px) {
  :root { --nav-h: 58px; }
  .wordmark { top: 16px; left: 16px; }
  .wordmark-text { font-size: .82rem; letter-spacing: .22em; }
  .floorplan { padding-left: 92px; gap: 14px; }
  .fp-btn { font-size: .64rem; padding: 20px 1px 16px; }

  .gallery { flex-direction: column; height: auto; min-height: 100dvh; overflow-x: hidden; overflow-y: auto; scroll-snap-type: y mandatory; }
  .room { width: 100%; min-height: 100dvh; height: auto; flex: none; }

  .room-inner { flex-direction: column; padding-top: calc(var(--nav-h) + 20px); padding-bottom: 44px; gap: 26px; }
  .plinth-wrap { width: min(58vw, 260px); padding-bottom: 12%; }
  .placard { max-width: 440px; width: 100%; }

  .spotlight { left: 50%; width: 82%; }

  .room-index { top: calc(var(--nav-h) + 10px); right: 18px; font-size: 1.15rem; }

  .entrance-title { font-size: clamp(3.4rem, 17vw, 5rem); }
  .entrance-sub { letter-spacing: .22em; }

  .scroll-hint { width: 42px; height: 42px; bottom: 16px; }
}

@media (max-width: 480px) {
  .wordmark { display: none; }
  .floorplan { padding-left: clamp(16px, 4vw, 28px); }
}

/* ================= reduced motion ================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .room-inner, .kicker, .entrance-title, .entrance-sub, .entrance-copy, .begin-btn, .entrance-note {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
  .spotlight, .spotlight::after, .scroll-hint, .entrance-beams span,
  .lamp-glow, .filmstrip, .artifact--degauss .scanlines, .reel.is-spinning {
    animation: none !important;
  }
  .spotlight { opacity: .55; }
  .room.is-active .spotlight { opacity: .95; filter: blur(18px); }
  .key.is-down, .bell.is-ringing, .led.is-lit, .screen-group.is-flash, .screen-group.is-wobbling, .bar {
    animation: none !important;
  }
  .floorplan-fill { transition: none; }
  .listen-btn, .begin-btn, .postcard { transition: none; }
}
