.entrance-actions {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(100%, 32rem);
  align-items: end;
  gap: 1.5rem;
  margin-top: clamp(3rem, 8vh, 6rem);
}

.entrance-actions .enter-button { margin-top: 0; }

.explore-entry {
  flex: 0 0 auto;
  padding: 1rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.explore-entry:hover { color: var(--bone); border-color: var(--bone); }

.immersive-gallery {
  padding-bottom: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(198, 117, 66, 0.08), transparent 30rem),
    #0e0e0c;
}

.visit-mode {
  display: flex;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(10, 10, 8, 0.72);
}

.mode-button {
  min-height: 2.4rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 99px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mode-button.active { color: var(--ink); background: var(--bone); }

.museum-experience {
  max-width: 1500px;
  margin: 0 auto;
}

.museum-room {
  position: relative;
  min-height: min(76vh, 820px);
  overflow: hidden;
  border: 1px solid rgba(238, 230, 212, 0.16);
  background: #171713;
  isolation: isolate;
}

.museum-room::after {
  content: "";
  position: absolute;
  z-index: 15;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 7rem rgba(0, 0, 0, 0.6);
}

.museum-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 1100px;
}

.museum-set {
  position: absolute;
  inset: 0;
  transform-origin: 50% 48%;
  transition: transform 950ms cubic-bezier(.18,.72,.18,1);
}

.museum-set:not([data-focus="overview"]) {
  transform: translate(var(--camera-x), var(--camera-y)) scale(var(--camera-scale));
}

.architecture { position: absolute; pointer-events: none; }

.architecture-ceiling {
  z-index: -4;
  inset: 0 0 72% 0;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%);
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(238, 230, 212, 0.06) 50%, transparent 50.2%),
    repeating-linear-gradient(90deg, transparent 0 12%, rgba(238, 230, 212, 0.04) 12.2% 12.35%),
    linear-gradient(#121210, #2d2b26);
}

.architecture-floor {
  z-index: -4;
  inset: 72% 0 0 0;
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
  background:
    repeating-linear-gradient(90deg, transparent 0 11.9%, rgba(238, 230, 212, 0.07) 12% 12.15%),
    linear-gradient(#2b2923, #11110f);
}

.architecture-left,
.architecture-right {
  z-index: -3;
  top: 0;
  bottom: 0;
  width: 20%;
  background: linear-gradient(90deg, #11110f, #2d2b26);
}

.architecture-left { left: 0; clip-path: polygon(0 0, 100% 15%, 100% 85%, 0 100%); }
.architecture-right { right: 0; clip-path: polygon(100% 0, 0 15%, 0 85%, 100% 100%); }

.museum-set::before {
  content: "";
  position: absolute;
  z-index: -5;
  inset: 15% 20% 15%;
  background:
    radial-gradient(ellipse at 68% 30%, rgba(255, 238, 198, 0.12), transparent 28%),
    linear-gradient(#33312b, #24231f);
  box-shadow: inset 0 0 5rem rgba(0, 0, 0, 0.25);
}

.back-wall-title {
  position: absolute;
  z-index: -1;
  left: 24%;
  top: 21%;
  display: grid;
  color: rgba(238, 230, 212, 0.28);
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 0.95;
}

.back-wall-title span:last-child { color: rgba(198, 117, 66, 0.55); font-style: italic; }

.display-stations { position: absolute; inset: 0; }

.display-station {
  position: absolute;
  cursor: pointer;
  transition: opacity 500ms ease, filter 500ms ease, transform 950ms cubic-bezier(.18,.72,.18,1);
}

.museum-set:not([data-focus="overview"]) .display-station:not(.is-active) {
  opacity: 0.2;
  filter: saturate(0.4) brightness(0.6);
  pointer-events: none;
}

.station-focus {
  position: absolute;
  z-index: 8;
  display: grid;
  gap: 0.15rem;
  min-width: 9rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(238, 230, 212, 0.28);
  color: var(--bone);
  background: rgba(13, 13, 10, 0.88);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.28);
  cursor: pointer;
  text-align: left;
}

.station-focus:hover,
.display-station.is-active .station-focus { border-color: var(--copper); }

.station-focus span:first-child {
  color: var(--copper);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.station-focus span:last-child { font-family: var(--serif); font-size: 0.88rem; }

.station-coin-tray {
  z-index: 5;
  left: 11%;
  top: 57%;
  width: 37%;
  height: 27%;
  transform: perspective(650px) rotateX(56deg) rotateZ(-3deg);
  transform-origin: 50% 100%;
}

.station-coin-tray .station-focus {
  left: -2%;
  bottom: -19%;
  transform: rotateZ(3deg) rotateX(-10deg);
}

.coin-cabinet {
  position: absolute;
  inset: 0;
  padding: 4.5% 5%;
  border: clamp(6px, 1vw, 15px) solid #60402b;
  border-bottom-color: #382418;
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 8px),
    #8a5e3d;
  box-shadow:
    0 2rem 3rem rgba(0, 0, 0, 0.58),
    inset 0 0 0 2px rgba(225, 174, 109, 0.35);
}

.tray-grid {
  display: grid;
  height: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 7%;
}

.coin-recess {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  padding: 12%;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #a31622;
  box-shadow:
    inset 0 0 0 5px #4a2f20,
    inset 0 0 1rem rgba(0, 0, 0, 0.8);
  cursor: zoom-in;
}

.coin-recess:nth-child(n + 4) { transform: translateY(16%); }
.empty-recess { cursor: default; }

.station-glass-case {
  z-index: 2;
  left: 50%;
  top: 22%;
  width: 37%;
  height: 39%;
}

.station-glass-case .station-focus { right: 4%; bottom: -16%; }

.glass-case {
  position: absolute;
  inset: 0;
  padding: 8% 8% 10%;
  border: clamp(5px, 0.75vw, 11px) solid #181915;
  background: rgba(56, 55, 49, 0.78);
  box-shadow:
    0 1.6rem 3rem rgba(0,0,0,0.48),
    inset 0 0 0 1px rgba(199, 221, 214, 0.35),
    inset 0 2rem 2rem rgba(255, 241, 205, 0.07);
}

.glass-case::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(205, 232, 228, 0.26);
  background: linear-gradient(112deg, rgba(255,255,255,0.09), transparent 24% 68%, rgba(255,255,255,0.035));
}

.glass-case::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 3%;
  height: 3px;
  border-radius: 50%;
  background: #e8d9b6;
  box-shadow: 0 0 1.8rem 0.7rem rgba(244, 228, 188, 0.22);
}

.case-interior {
  position: relative;
  z-index: 1;
  display: grid;
  height: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 10%;
}

.mounted-paper {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1.25;
  padding: 4%;
  border: 0;
  background: rgba(212, 204, 185, 0.07);
  box-shadow: 0 0.6rem 1rem rgba(0,0,0,0.28);
  cursor: zoom-in;
  transform: rotate(-1deg);
}

.mounted-paper:nth-child(even) { transform: translateY(13%) rotate(1.3deg); }
.mounted-paper:hover { outline: 1px solid var(--copper); outline-offset: 5px; }

.station-interpretive-panel {
  z-index: 1;
  left: 23%;
  top: 30%;
  width: 22%;
  height: 24%;
}

.station-interpretive-panel .station-focus { left: 8%; bottom: -29%; }

.interpretive-panel {
  position: absolute;
  inset: 0;
  padding: 8%;
  border-left: 3px solid var(--copper);
  background: #ddd3be;
  color: #201f1b;
  box-shadow: 0 1rem 2rem rgba(0,0,0,0.3);
}

.interpretive-panel p { margin: 0 0 0.4rem; color: #7b4228; font-size: 0.45rem; letter-spacing: 0.12em; text-transform: uppercase; }
.interpretive-panel h3 { margin: 0; font-family: var(--serif); font-size: clamp(0.72rem, 1.2vw, 1.2rem); font-weight: 400; line-height: 1.05; }

.panel-thumbnails { display: flex; gap: 5%; margin-top: 9%; }
.panel-object { flex: 1; aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; background: #28251f; cursor: zoom-in; }

.tour-card {
  position: absolute;
  z-index: 25;
  right: clamp(1rem, 3vw, 3rem);
  bottom: clamp(1rem, 3vw, 3rem);
  width: min(31rem, 38vw);
  padding: clamp(1.2rem, 2.4vw, 2.3rem);
  border: 1px solid var(--line);
  background: rgba(17, 17, 14, 0.93);
  box-shadow: 0 2rem 5rem rgba(0,0,0,0.52);
  backdrop-filter: blur(18px);
}

.tour-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tour-count { margin: 0; color: var(--muted); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; }
.overview-button { padding: 0; border: 0; border-bottom: 1px solid var(--line); color: var(--muted); background: transparent; cursor: pointer; font-size: 0.65rem; }
.overview-button:hover { color: var(--bone); border-color: var(--bone); }
.tour-kicker { margin: 1.5rem 0 0.6rem; color: var(--copper); font-size: 0.63rem; font-weight: 650; letter-spacing: 0.17em; text-transform: uppercase; }
.tour-title { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 3rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1; }
.tour-narration { margin: 1rem 0 0; color: var(--paper); font-family: var(--serif); font-size: clamp(0.9rem, 1.25vw, 1.08rem); line-height: 1.62; }
.group-object-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 1.1rem;
}
.group-object-actions[hidden] { display: none; }
.group-object-actions button {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.45rem;
  overflow: hidden;
  border: 1px solid var(--line);
  color: var(--paper);
  background: rgba(255,255,255,0.025);
  cursor: pointer;
  text-align: left;
}
.group-object-actions button:hover { border-color: var(--copper); color: var(--bone); background: rgba(198,117,66,0.08); }
.group-object-thumbnail {
  display: grid;
  width: 2.2rem;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(238, 230, 212, 0.16);
  border-radius: 50%;
  background: #151410;
}
.group-object-title { font-family: var(--serif); font-size: 0.72rem; line-height: 1.15; white-space: normal; }
.group-object-arrow { color: var(--copper); }
.tour-actions { display: grid; grid-template-columns: 2.7rem 1fr; gap: 0.6rem; margin-top: 1.3rem; }
.tour-actions button { min-height: 2.7rem; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.tour-next { display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; border-color: var(--copper) !important; }
.tour-actions button:hover:not(:disabled) { color: var(--ink); background: var(--bone); }
.tour-actions button:disabled { opacity: 0.28; cursor: default; }

.museum-experience[data-mode="explore"] .tour-actions { display: none; }
.museum-experience[data-mode="explore"] .tour-card:not(.has-group) { opacity: 0; pointer-events: none; transform: translateY(1rem); }

.room-map {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-top: 0;
}

.map-overview,
.map-stop {
  display: grid;
  gap: 0.28rem;
  min-height: 4.6rem;
  align-content: center;
  padding: 0.8rem 1rem;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: rgba(20,20,16,0.82);
  cursor: pointer;
  text-align: left;
}

.map-overview { min-width: 7.5rem; }
.map-stop span:first-child { font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase; }
.map-stop span:last-child { overflow: hidden; font-family: var(--serif); text-overflow: ellipsis; white-space: nowrap; }
.map-overview.active,
.map-stop.active { color: var(--bone); background: rgba(198, 117, 66, 0.08); box-shadow: inset 0 2px var(--copper); }

.object-index-section {
  padding: clamp(5rem, 9vw, 9rem) 0;
}

.object-index-heading {
  display: grid;
  grid-template-columns: 1fr minmax(16rem, 28rem);
  gap: 3rem;
  align-items: end;
  margin-bottom: 2rem;
}

.object-index-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 4rem); font-weight: 400; }
.object-index-heading > p { margin: 0; color: var(--muted); line-height: 1.65; }

.object-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.object-card {
  display: grid;
  min-width: 0;
  padding: 1rem;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--bone);
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.object-card-image { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #090907; }
.object-card-number { position: absolute; left: 0.7rem; top: 0.7rem; padding: 0.35rem 0.45rem; color: var(--bone); background: rgba(12,12,9,0.82); font-size: 0.56rem; }
.object-card-copy { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; padding: 1rem 0.2rem 0.35rem; }
.object-card h3 { margin: 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.object-card p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.7rem; line-height: 1.45; }
.object-card-arrow { color: var(--copper); }

@media (max-width: 900px) {
  .museum-room { min-height: 720px; }
  .tour-card { width: calc(100% - 2rem); right: 1rem; bottom: 1rem; }
  .museum-set { transform-origin: 50% 42%; }
  .museum-set:not([data-focus="overview"]) { transform: translate3d(var(--camera-x), var(--camera-y), 100px) scale(var(--camera-scale)); }
  .station-coin-tray { left: 7%; width: 43%; top: 54%; }
  .station-glass-case { left: 48%; width: 43%; }
  .station-interpretive-panel { left: 20%; width: 25%; }
  .room-help { display: none !important; }
}

@media (max-width: 700px) {
  .entrance-actions { align-items: stretch; flex-direction: column; gap: 0.5rem; }
  .explore-entry { align-self: start; }
  .gallery-heading { align-items: start; flex-direction: column; gap: 1rem; }
  .museum-room { min-height: 700px; }
  .museum-viewport { height: 56%; }
  .museum-room::after { bottom: 44%; }
  .museum-set:not([data-focus="overview"]) { transform: translate3d(var(--camera-x), var(--camera-y), 60px) scale(var(--camera-scale)); }
  .back-wall-title { display: none; }
  .station-coin-tray { left: 5%; top: 57%; width: 47%; }
  .station-glass-case { left: 47%; top: 23%; width: 47%; height: 42%; }
  .station-interpretive-panel { left: 17%; top: 27%; width: 28%; }
  .station-focus { min-width: 7rem; padding: 0.5rem; }
  .station-focus span:last-child { font-size: 0.7rem; }
  .tour-card { top: 56%; bottom: 0; left: 0; right: 0; width: 100%; border-inline: 0; border-bottom: 0; overflow: auto; }
  .museum-experience[data-mode="explore"] .tour-card:not(.has-group) { display: none; }
  .room-map { grid-template-columns: repeat(4, minmax(8.5rem, 1fr)); overflow-x: auto; }
  .map-overview { min-width: 8.5rem; }
  .object-index-heading { grid-template-columns: 1fr; gap: 1rem; }
  .object-index { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .museum-set,
  .display-station { transition: none; }
}

/* The room is the primary experience; the catalog follows it. */
.immersive-gallery {
  position: relative;
  min-height: 100svh;
  padding: 72px 0 0;
}

.immersive-gallery .gallery-heading {
  position: absolute;
  z-index: 40;
  top: calc(72px + clamp(1rem, 2.4vw, 2rem));
  left: clamp(1rem, 3vw, 3rem);
  right: clamp(1rem, 3vw, 3rem);
  max-width: none;
  margin: 0;
  pointer-events: none;
}

.immersive-gallery .gallery-heading > * { pointer-events: auto; }
.immersive-gallery .gallery-kicker { color: #d49a70; }

.museum-experience {
  position: relative;
  max-width: none;
}

.museum-room {
  width: 100%;
  height: calc(100svh - 72px);
  min-height: 34rem;
  max-height: none;
  border: 0;
  border-top: 1px solid rgba(238, 230, 212, 0.1);
}

.museum-room::before {
  content: "";
  position: absolute;
  z-index: 14;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 4, 0.48), transparent 22% 68%, rgba(5, 5, 4, 0.42)),
    radial-gradient(ellipse at 68% 32%, rgba(249, 224, 171, 0.08), transparent 24%);
}

.museum-room::after { box-shadow: inset 0 0 10rem rgba(0, 0, 0, 0.72); }

.museum-set::before {
  background:
    radial-gradient(ellipse at 66% 24%, rgba(255, 238, 198, 0.18), transparent 25%),
    linear-gradient(#3a3831, #272620);
}

.architecture-floor {
  background:
    repeating-linear-gradient(90deg, transparent 0 11.9%, rgba(238, 230, 212, 0.08) 12% 12.15%),
    repeating-linear-gradient(165deg, transparent 0 14%, rgba(0, 0, 0, 0.1) 14.2% 14.5%),
    linear-gradient(#302e27, #11110f);
}

.display-station { filter: drop-shadow(0 2rem 2rem rgba(0, 0, 0, 0.3)); }

.station-glass-case {
  left: 52%;
  top: 24%;
  width: 34%;
  height: 36%;
}

.station-coin-tray {
  left: 8%;
  top: 55%;
  width: 42%;
  height: 31%;
}

.station-interpretive-panel {
  left: 23%;
  top: 32%;
  width: 22%;
  height: 23%;
}

.tray-grid {
  grid-template-columns: repeat(var(--tray-columns, 3), minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 5%;
}

.coin-recess:nth-child(n + 4) { transform: none; }
.coin-recess:nth-child(n + 5) { transform: translateY(8%); }

.mounted-paper.kind-coin {
  width: min(100%, 10rem);
  aspect-ratio: 1;
  justify-self: center;
  padding: 5%;
  overflow: hidden;
  border: 1px solid rgba(238, 230, 212, 0.16);
  border-radius: 50%;
  background: radial-gradient(circle, #25241f 60%, #0d0d0b);
  box-shadow: 0 1rem 1.8rem rgba(0, 0, 0, 0.45), inset 0 0 1.2rem rgba(0, 0, 0, 0.48);
}

.panel-object.kind-coin { border-radius: 50%; }

.room-map {
  position: absolute;
  z-index: 32;
  left: clamp(1rem, 3vw, 3rem);
  right: clamp(1rem, 3vw, 3rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(238, 230, 212, 0.2);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(18px);
}

.map-overview,
.map-stop {
  min-height: 3.8rem;
  background: rgba(12, 12, 9, 0.84);
}

.tour-card {
  right: clamp(1rem, 3vw, 3rem);
  bottom: clamp(6rem, 9vw, 7.5rem);
  width: min(29rem, 36vw);
}

.object-index-section {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 8vw, 8rem) clamp(1rem, 3vw, 3rem);
  background: #0e0e0c;
}

/* Close examination: the selected object lifts out of its display. */
.image-inspector {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 50% 43%, rgba(198, 117, 66, 0.1), transparent 30rem),
    #090907;
}

.inspection-toolbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-height: 2.8rem;
  border-bottom: 1px solid var(--line);
}

.inspection-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.view-switch { display: flex; align-items: stretch; height: 2.8rem; }
.view-button {
  padding: 0 0.9rem;
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.view-button.active { border-color: var(--copper); color: var(--bone); }

.image-stage {
  perspective: 1000px;
  touch-action: none;
  background:
    radial-gradient(ellipse at 50% 78%, rgba(0, 0, 0, 0.62), transparent 43%),
    radial-gradient(circle at 50% 45%, rgba(238, 230, 212, 0.045), transparent 52%);
}

.object-lift {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --light-x: 35%;
  --light-y: 25%;
  position: relative;
  width: min(60vmin, 36rem);
  aspect-ratio: 1;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(1px);
  transform-style: preserve-3d;
  transition: transform 140ms ease-out;
}

.object-shadow {
  position: absolute;
  inset: 13% 6% 0;
  border-radius: 50%;
  background: #000;
  filter: blur(2.2rem);
  opacity: 0.7;
  transform: translate3d(1.2rem, 2.2rem, -45px) scale(0.88);
}

.object-surface {
  position: absolute;
  inset: 4%;
  overflow: hidden;
  border: 1px solid rgba(238, 230, 212, 0.16);
  border-radius: 50%;
  background: #25231e;
  box-shadow:
    0 2.5rem 5rem rgba(0, 0, 0, 0.62),
    inset -1.2rem -1.3rem 2.2rem rgba(0, 0, 0, 0.25),
    inset 0.7rem 0.7rem 1.5rem rgba(255, 242, 210, 0.1);
  transform: translateZ(20px);
}

.surface-light {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at var(--light-x) var(--light-y), rgba(255, 247, 222, 0.22), transparent 21%),
    linear-gradient(125deg, rgba(255,255,255,0.06), transparent 38% 62%, rgba(0,0,0,0.15));
  mix-blend-mode: soft-light;
}

.image-inspector[data-view="photo"] .object-lift {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  transform: none;
}
.image-inspector[data-view="photo"] .object-shadow,
.image-inspector[data-view="photo"] .surface-light { display: none; }
.image-inspector[data-view="photo"] .object-surface {
  inset: 1.25rem 1%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.turn-object {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.8rem;
  padding: 0 1rem;
  border: 1px solid rgba(238, 230, 212, 0.35);
  border-radius: 99px;
  color: var(--bone);
  background: rgba(12, 12, 9, 0.82);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.38);
  cursor: pointer;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}
.turn-object:hover { border-color: var(--copper); background: var(--bone); color: var(--ink); }

.image-inspector[data-view="object"] .image-step { display: none; }
.image-inspector[data-view="object"] .image-caption { margin-top: 0; }

@media (max-width: 900px) {
  .museum-room { min-height: 34rem; }
  .tour-card { width: min(29rem, calc(100% - 2rem)); bottom: 5.8rem; }
  .room-map { left: 1rem; right: 1rem; bottom: 1rem; }
}

@media (max-width: 700px) {
  .immersive-gallery { padding-top: 62px; }
  .immersive-gallery .gallery-heading {
    top: 74px;
    left: 1rem;
    right: 1rem;
  }
  .immersive-gallery .gallery-heading h2 { font-size: 1.45rem; }
  .visit-mode { margin-top: 0.25rem; }
  .museum-room {
    height: calc(100svh - 62px);
    min-height: 42rem;
  }
  .museum-viewport { height: 62%; }
  .museum-room::after { bottom: 38%; }
  .museum-experience[data-mode="explore"] .museum-viewport { height: 100%; }
  .museum-experience[data-mode="explore"] .museum-room::after { bottom: 0; }
  .tour-card { top: 62%; bottom: 0; }
  .room-map { display: none; }
  .station-coin-tray { left: 4%; top: 61%; width: 51%; height: 18%; }
  .station-glass-case { left: 49%; top: 26%; width: 46%; height: 32%; }
  .station-interpretive-panel { left: 14%; top: 33%; width: 31%; }
  .object-index-section { padding-inline: 1rem; }
  .inspection-toolbar p { display: none; }
  .object-lift { width: min(78vw, 27rem); }
  .turn-object { bottom: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .object-lift { transition: none; }
}

/* A shallow collector's drawer: restrained perspective and a registered felt grid. */
.station-coin-tray {
  transform: rotateZ(-0.5deg);
}

.station-coin-tray .station-focus {
  bottom: -17%;
  transform: rotateZ(0.5deg);
}

.coin-cabinet {
  padding: 3.5%;
  border: clamp(7px, 0.85vw, 13px) solid #5a3824;
  border-top-color: #81583a;
  border-right-color: #3a2317;
  border-bottom-color: #2a190f;
  background:
    repeating-linear-gradient(2deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 7px),
    linear-gradient(105deg, #68452e, #442b1d 55%, #60402b);
  box-shadow:
    0 2.2rem 3.5rem rgba(0, 0, 0, 0.62),
    inset 0 0 0 1px rgba(226, 174, 111, 0.34),
    inset 0 0 1.2rem rgba(0, 0, 0, 0.35);
}

.tray-grid {
  padding: 4.5% 5%;
  gap: 8% 6%;
  border: 1px solid rgba(41, 8, 11, 0.8);
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% 30%, rgba(184, 46, 51, 0.13), transparent 55%),
    #6d1118;
  box-shadow:
    inset 0 0 1.7rem rgba(23, 3, 6, 0.72),
    inset 0 0 0 3px rgba(39, 10, 11, 0.46);
}

.coin-recess,
.coin-recess:nth-child(n + 4),
.coin-recess:nth-child(n + 5) {
  width: 100%;
  height: auto;
  max-width: 100%;
  align-self: center;
  justify-self: stretch;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  padding: 0;
  transform: none;
  background: #861923;
  box-shadow:
    inset 0 0 0 clamp(2px, 0.35vw, 5px) #3b1717,
    inset 0 0 0 clamp(4px, 0.55vw, 8px) rgba(120, 18, 27, 0.9),
    inset 0 0 1rem rgba(0, 0, 0, 0.74),
    0 1px 0 rgba(231, 102, 104, 0.18);
}

/* The entrance perspective contains live exhibit imagery instead of an empty panel. */
.intro-panel::before { display: none; }

.intro-preview {
  position: absolute;
  z-index: 1;
  inset: 14% 4% 10% 54%;
  overflow: hidden;
  border: 1px solid rgba(238, 230, 212, 0.2);
  background:
    linear-gradient(90deg, rgba(0,0,0,0.5), transparent 23% 76%, rgba(0,0,0,0.48)),
    linear-gradient(#26251f, #171713);
  box-shadow: -4rem 4rem 8rem rgba(0,0,0,0.48), inset 0 0 6rem rgba(0,0,0,0.6);
  transform: perspective(850px) rotateY(-10deg);
  transform-origin: right center;
  padding: 0;
  color: var(--bone);
  cursor: pointer;
  text-align: left;
  transition: border-color 300ms ease, filter 300ms ease, transform 500ms ease;
}

.intro-panel::after { pointer-events: none; }

.intro-copy,
.entrance-actions,
.intro-footer { z-index: 2; }

.intro-copy { max-width: 46vw; }
.intro-copy h1 { font-size: clamp(3.5rem, 7vw, 7.5rem); }
.intro-copy .summary { max-width: min(100%, 29rem); }

.intro-preview:hover { border-color: rgba(198, 117, 66, 0.72); filter: brightness(1.08); }
.intro-preview:focus-visible { outline-offset: -5px; }

.intro-preview::before,
.intro-preview::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  width: 19%;
  background: linear-gradient(90deg, #10100e, #302f29);
}
.intro-preview::before { left: 0; clip-path: polygon(0 0, 100% 15%, 100% 86%, 0 100%); }
.intro-preview::after { right: 0; clip-path: polygon(100% 0, 0 15%, 0 86%, 100% 100%); }

.preview-light {
  position: absolute;
  left: 50%;
  top: -12%;
  width: 70%;
  height: 72%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255, 234, 186, 0.17), transparent 64%);
  filter: blur(12px);
}

.preview-objects {
  position: absolute;
  z-index: 2;
  inset: 27% 19% 23%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 2.5vw, 2.6rem);
}

.preview-object {
  position: relative;
  display: grid;
  width: min(26%, 9rem);
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(238, 230, 212, 0.16);
  border-radius: 50%;
  overflow: hidden;
  background: #171713;
  box-shadow: 0 1.4rem 2rem rgba(0,0,0,0.52), 0 0 2rem rgba(232, 204, 155, 0.06);
}

.preview-object:nth-child(2) { transform: translateY(-12%); }

.preview-threshold {
  position: absolute;
  z-index: 3;
  left: 12%;
  right: 12%;
  bottom: 8%;
  height: 13%;
  border-top: 1px solid rgba(238, 230, 212, 0.12);
  background: linear-gradient(180deg, #29271f, #0b0b09);
  transform: perspective(500px) rotateX(68deg);
}

.preview-invitation {
  position: absolute;
  z-index: 5;
  left: 7%;
  bottom: 6%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #d7b28f;
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.preview-invitation > span { font-size: 1rem; }

.glass-case,
.coin-cabinet,
.interpretive-panel { cursor: pointer; }

.glass-case:hover,
.coin-cabinet:hover,
.interpretive-panel:hover { filter: brightness(1.07); }

@media (max-width: 800px) {
  .intro-preview { inset: 27% -17% 8% 42%; opacity: 0.62; }
  .intro-copy { max-width: 88vw; }
  .preview-objects { inset-inline: 18%; gap: 0.65rem; }
  .preview-object { width: 29%; }
}

/* Storyboard flow: one viewport, four legible states, no page-length journey. */
body[data-exhibit-type="curated"] {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body[data-exhibit-type="curated"] .experience {
  position: relative;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
}

body[data-exhibit-type="collection"],
body[data-exhibit-type="home"] {
  width: 100%;
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body[data-exhibit-type="collection"] .experience,
body[data-exhibit-type="home"] .experience {
  position: relative;
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

.intro-panel,
.immersive-gallery {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  transition:
    opacity 650ms ease,
    transform 850ms cubic-bezier(.18,.72,.18,1),
    visibility 0s linear 650ms;
}

.intro-panel { z-index: 2; }
.immersive-gallery { z-index: 3; }

.experience[data-stage="threshold"] .intro-panel {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition-delay: 0s;
}

.experience:not([data-stage="threshold"]) .intro-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.035) translateY(-1.5%);
}

.experience[data-stage="threshold"] .immersive-gallery {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.965) translateY(2%);
}

.experience:not([data-stage="threshold"]) .immersive-gallery {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition-delay: 0s;
}

.curatorial-panel,
.exhibit-footer { display: none; }

.gallery-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.threshold-button,
.open-index {
  min-height: 2.7rem;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: rgba(10, 10, 8, 0.72);
  cursor: pointer;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.threshold-button:hover,
.open-index:hover { border-color: var(--copper); color: var(--bone); }

.object-index-section {
  position: absolute;
  z-index: 70;
  top: 72px;
  right: 0;
  bottom: 0;
  width: min(58rem, 88vw);
  padding: clamp(2rem, 4vw, 4rem);
  overflow: auto;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 0, rgba(198, 117, 66, 0.1), transparent 28rem),
    rgba(14, 14, 12, 0.985);
  box-shadow: -3rem 0 8rem rgba(0,0,0,0.58), 0 0 0 100vmax rgba(2,2,1,0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(102%);
  transition:
    transform 620ms cubic-bezier(.18,.72,.18,1),
    opacity 400ms ease,
    visibility 0s linear 620ms;
}

.object-index-section.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
}

.object-index-heading {
  position: relative;
  grid-template-columns: 1fr auto;
  align-items: start;
}

.experience[data-stage="display"] .museum-viewport { cursor: zoom-out; }
.experience[data-stage="display"] .display-station.is-active { cursor: default; }
.experience[data-stage="display"] .display-station.is-active .glass-case,
.experience[data-stage="display"] .display-station.is-active .coin-cabinet,
.experience[data-stage="display"] .display-station.is-active .interpretive-panel { cursor: default; }

.close-index {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 1.4rem;
}

.close-index:hover { border-color: var(--copper); color: var(--copper); }
.object-index-section .object-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1120px) {
  .gallery-actions { gap: 0.35rem; }
  .threshold-button { font-size: 0; width: 2.7rem; padding: 0; }
  .threshold-button::before { content: "←"; font-size: 0.9rem; }
}


@media (max-width: 700px) {
  .gallery-actions { width: 100%; justify-content: space-between; }
  .open-index { margin-left: auto; }
  .object-index-section { top: 62px; width: 100vw; padding: 1.5rem 1rem 3rem; }
  .object-index-heading { grid-template-columns: 1fr auto; gap: 1rem; }
  .object-index-heading > p { grid-column: 1 / -1; grid-row: 2; }
  .object-index-section .object-index { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-panel,
  .immersive-gallery,
  .object-index-section { transition: none; }
}

/* Standard full-collection exhibit */
body[data-exhibit-type="collection"] .experience { min-height: 100vh; }
body[data-exhibit-type="collection"] .site-header { background: rgba(15, 15, 12, 0.9); }

.collection-exhibit {
  min-height: 100vh;
  padding-top: 72px;
  background:
    linear-gradient(rgba(238, 230, 212, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 230, 212, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 78% 12%, rgba(198, 117, 66, 0.12), transparent 28rem),
    #11110e;
  background-size: 5rem 5rem, 5rem 5rem, auto, auto;
}

.collection-hero {
  display: grid;
  min-height: min(70vh, 760px);
  grid-template-columns: minmax(0, 0.9fr) minmax(30rem, 1.1fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: center;
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 7vw, 8rem);
  border-bottom: 1px solid var(--line);
}

.collection-hero-copy { max-width: 42rem; }

.collection-kicker,
.collection-catalog-heading p,
.collection-card-type {
  color: var(--copper);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.collection-hero h1 {
  max-width: 10ch;
  margin: 0.65rem 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(3.8rem, 8vw, 7.8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.collection-summary {
  max-width: 34rem;
  margin: 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.45;
}

.collection-introduction {
  max-width: 36rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.collection-measure {
  display: flex;
  gap: 1.1rem;
  margin-top: 2.4rem;
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.collection-measure span + span {
  padding-left: 1.1rem;
  border-left: 1px solid var(--line);
}

.collection-hero-preview {
  position: relative;
  display: grid;
  min-height: 30rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.5vw, 1.1rem);
  padding: clamp(0.8rem, 1.8vw, 1.4rem);
  border: 1px solid var(--line);
  background: rgba(8, 8, 6, 0.66);
  box-shadow: 0 2.8rem 5rem rgba(0, 0, 0, 0.38);
}

.collection-hero-preview::before {
  content: "";
  position: absolute;
  inset: 0.7rem;
  border: 1px solid rgba(198, 117, 66, 0.18);
  pointer-events: none;
}

.collection-preview-object {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(238, 230, 212, 0.08), transparent 55%),
    #0a0a08;
}

.collection-preview-object:nth-child(2),
.collection-preview-object:nth-child(3) { background-color: #161510; }

.collection-catalog {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) clamp(1.2rem, 4vw, 4rem);
}

.collection-catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.collection-catalog-heading p { margin: 0 0 0.5rem; }

.collection-catalog-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.collection-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(0.85rem, 1.5vw, 1.25rem);
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 17, 14, 0.74);
  cursor: zoom-in;
  text-align: left;
  transition: background 220ms ease;
}

.collection-card:hover { background: rgba(238, 230, 212, 0.045); }

.collection-card-image {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(238, 230, 212, 0.075), transparent 58%),
    #080806;
}

.collection-card-number,
.collection-card-views {
  position: absolute;
  top: 0.7rem;
  padding: 0.34rem 0.45rem;
  color: var(--paper);
  background: rgba(9, 9, 7, 0.82);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.collection-card-number { left: 0.7rem; }
.collection-card-views { right: 0.7rem; }

.collection-card-copy {
  display: flex;
  min-height: 13rem;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem 0.25rem 0.35rem;
}

.collection-card-type { display: block; }

.collection-card h3 {
  margin: 0.6rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.16;
}

.collection-card-description {
  display: -webkit-box;
  margin-top: 0.9rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.collection-card-action {
  margin-top: auto;
  padding-top: 1.3rem;
  color: var(--copper);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.collection-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1.5rem, 7vw, 8rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

@media (max-width: 1000px) {
  .collection-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }
  .collection-hero-preview { min-height: 34rem; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  body[data-exhibit-type="collection"] .room-status { display: none; }
  .collection-exhibit { padding-top: 62px; }
  .collection-hero { padding: 3.5rem 1rem; }
  .collection-hero h1 { font-size: clamp(3.4rem, 18vw, 5.2rem); }
  .collection-hero-preview { min-height: 24rem; }
  .collection-catalog { padding-inline: 1rem; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-card-copy { min-height: 11rem; }
  .collection-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .collection-card,
  .collection-card-image > .artifact-media__stage { transition: none; }
}

/* Collection catalog navigation */
.collection-jump-control {
  display: grid;
  min-width: min(100%, 19rem);
  gap: 0.5rem;
  justify-items: end;
  color: var(--muted);
  font-size: 0.59rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.collection-jump-control select {
  width: 100%;
  max-width: 19rem;
}

.collection-card:focus-visible {
  position: relative;
  z-index: 1;
  outline: 1px solid var(--copper);
  outline-offset: -1px;
}

@media (max-width: 650px) {
  .collection-catalog-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 1.5rem;
  }

  .collection-jump-control {
    width: 100%;
    justify-items: start;
  }

  .collection-jump-control select {
    max-width: none;
  }
}
/* Public museum home */
body[data-exhibit-type="home"] .site-header { background: rgba(15, 15, 12, 0.9); }

.museum-home {
  min-height: 100vh;
  padding-top: 72px;
  background:
    linear-gradient(rgba(238, 230, 212, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 230, 212, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 76% 8%, rgba(198, 117, 66, 0.13), transparent 30rem),
    #10100d;
  background-size: 5rem 5rem, 5rem 5rem, auto, auto;
}

.museum-home-hero {
  display: grid;
  min-height: min(88vh, 900px);
  grid-template-columns: minmax(0, 0.72fr) minmax(32rem, 1.28fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 7vw, 8rem);
  border-bottom: 1px solid var(--line);
}

.museum-home-copy { max-width: 42rem; }

.museum-home-kicker,
.museum-directory-section > header p,
.museum-directory-type {
  color: var(--copper);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.museum-home-copy h1 {
  max-width: 9ch;
  margin: 0.7rem 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(4rem, 8.5vw, 8.4rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.84;
}

.museum-home-copy > p:not(.museum-home-kicker) {
  max-width: 35rem;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.55;
}

.museum-home-copy > a {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--copper);
  color: var(--bone);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.museum-home-copy > a:hover { color: var(--copper); }

.museum-home-featured { min-width: 0; }

.museum-home-featured .museum-directory-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(15rem, 0.7fr);
  min-height: 35rem;
}

.museum-home-featured .museum-directory-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  aspect-ratio: auto;
}

.museum-directory-section {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 9rem) clamp(1.2rem, 4vw, 4rem);
  scroll-margin-top: 72px;
}

.museum-directory-section + .museum-directory-section {
  border-top: 1px solid var(--line);
}

.museum-directory-section > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.museum-directory-section > header p { margin: 0; }

.museum-directory-section > header h2 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-align: right;
}

.museum-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.museum-directory-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  color: var(--bone);
  background: rgba(13, 13, 10, 0.82);
  text-decoration: none;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.2);
  transition: border-color 220ms ease, transform 220ms ease, background 220ms ease;
}

.museum-directory-card:hover {
  border-color: rgba(198, 117, 66, 0.72);
  background: rgba(24, 22, 17, 0.94);
  transform: translateY(-0.2rem);
}

.museum-directory-preview {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  aspect-ratio: 16 / 8.5;
  padding: 0.65rem;
  border-bottom: 1px solid var(--line);
  background: #090907;
}

.museum-directory-object {
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(238, 230, 212, 0.075), transparent 58%),
    #11110e;
}

.museum-directory-copy {
  display: flex;
  min-height: 16rem;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.museum-directory-copy h3 {
  margin: 0.7rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.museum-directory-copy p {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.museum-directory-action {
  margin-top: auto;
  padding-top: 2rem;
  color: var(--copper);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.museum-directory-empty { color: var(--muted); }

.museum-home-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1.5rem, 7vw, 8rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* Obvious collection destinations */
.collection-catalog { scroll-margin-top: 72px; }

.collection-catalog-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.4rem;
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 1px solid var(--copper);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.67rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.collection-catalog-link span + span {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.collection-catalog-link span:last-child {
  padding-left: 0;
  border-left: 0;
  color: var(--copper);
}

.collection-catalog-link:hover { color: var(--bone); }

.collection-hero-preview {
  appearance: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: inherit;
  transition: border-color 220ms ease, transform 220ms ease;
}

.collection-hero-preview::after {
  content: "Browse all objects →";
  position: absolute;
  z-index: 2;
  right: 1.35rem;
  bottom: 1.35rem;
  padding: 0.65rem 0.8rem;
  color: var(--bone);
  background: rgba(10, 10, 8, 0.88);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.collection-hero-preview:hover {
  border-color: rgba(198, 117, 66, 0.72);
  transform: translateY(-0.15rem);
}

@media (max-width: 1000px) {
  .museum-home-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .museum-home-featured .museum-directory-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .museum-home-featured .museum-directory-preview {
    min-height: 30rem;
  }
}

@media (max-width: 650px) {
  .museum-home { padding-top: 62px; }
  .museum-home-hero { padding: 3.5rem 1rem; }
  .museum-home-copy h1 { font-size: clamp(3.5rem, 18vw, 5.4rem); }
  .museum-home-featured .museum-directory-preview { min-height: 22rem; }
  .museum-directory-section { padding: 4.5rem 1rem; }
  .museum-directory-section > header { align-items: flex-start; flex-direction: column; }
  .museum-directory-section > header h2 { text-align: left; }
  .museum-directory-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); aspect-ratio: 4 / 3; }
  .museum-directory-object:nth-child(3) { display: none; }
  .museum-directory-copy { min-height: 14rem; }
  .museum-home-footer { align-items: flex-start; flex-direction: column; }
  .collection-catalog-link { align-items: flex-start; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .museum-directory-card,
  .museum-directory-object > .artifact-media__stage,
  .collection-hero-preview { transition: none; }
}

.museum-directory-object,
.collection-preview-object,
.collection-card-image,
.object-card-image { --media-inset: 7%; }

.museum-directory-object .artifact-media__viewport,
.collection-preview-object .artifact-media__viewport,
.collection-card-image .artifact-media__viewport,
.object-card-image .artifact-media__viewport {
  filter: drop-shadow(0 0.8rem 0.9rem rgba(0, 0, 0, 0.55));
}

.museum-directory-card:hover .museum-directory-object > .artifact-media__stage,
.collection-card:hover .collection-card-image > .artifact-media__stage,
.object-card:hover .object-card-image > .artifact-media__stage {
  transform: scale(1.025);
}

.preview-object { --media-inset: 7%; }
.coin-recess { --media-inset: 4%; }
.mounted-paper { --media-inset: 4%; }
.panel-object { --media-inset: 2%; }
.group-object-thumbnail { --media-inset: 5%; }
.thumbnail { --media-inset: 4px; }

.panel-object .artifact-media__viewport { filter: sepia(0.15) saturate(0.8); }
.coin-recess .artifact-media__viewport { filter: contrast(1.05); }
.coin-recess:hover > .artifact-media__stage { filter: brightness(1.06); }

.preview-object:not(.kind-coin),
.group-object-thumbnail:not(.kind-coin),
.panel-object:not(.kind-coin) {
  border-radius: 2px;
}

.preview-object.kind-paper,
.preview-object.kind-image { width: min(34%, 11rem); }

.coin-recess.kind-coin .artifact-media__viewport,
.mounted-paper.kind-coin .artifact-media__viewport,
.panel-object.kind-coin .artifact-media__viewport,
.preview-object.kind-coin .artifact-media__viewport,
.group-object-thumbnail.kind-coin .artifact-media__viewport {
  border-radius: 50%;
}

.object-card-number,
.collection-card-number,
.collection-card-views,
.surface-light {
  z-index: 2;
}

/* Museum coin trays: stable registered slots, deep oxblood velvet, and a
   restrained walnut cabinet finish. These final overrides intentionally sit
   after the earlier room-layout rules so zoom and viewport changes cannot
   reintroduce staggered rows. */
.station-coin-tray {
  height: auto;
  aspect-ratio: 2.55 / 1;
  transform: rotateZ(-0.35deg);
  transform-origin: 50% 50%;
}

.station-coin-tray[data-group-id="dutch-and-spanish-silver"] {
  z-index: 4;
  left: 18%;
  top: 29%;
  width: 31%;
  height: 27%;
  aspect-ratio: auto;
  transform: rotateZ(0.55deg);
}

.station-coin-tray[data-group-id="dutch-and-spanish-silver"] .station-focus {
  left: 1%;
  bottom: -18%;
  transform: rotateZ(-0.55deg);
}

.station-coin-tray[data-group-id="copper-transition"] {
  left: 7%;
  top: 58%;
  width: 43%;
  height: 29%;
  aspect-ratio: auto;
}

.coin-cabinet {
  isolation: isolate;
  padding: clamp(7px, 2.8%, 18px);
  overflow: visible;
  border: clamp(8px, 0.9vw, 15px) solid #4b2b19;
  border-top-color: #8b5d38;
  border-left-color: #724829;
  border-right-color: #321a0f;
  border-bottom-color: #24120b;
  border-radius: clamp(3px, 0.35vw, 6px);
  background:
    radial-gradient(ellipse at 17% 8%, rgba(225, 164, 96, 0.22), transparent 19%),
    radial-gradient(ellipse at 76% 92%, rgba(16, 6, 2, 0.42), transparent 31%),
    repeating-linear-gradient(96deg, rgba(239, 184, 113, 0.045) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(7deg, transparent 0 12px, rgba(19, 7, 3, 0.12) 13px 14px),
    linear-gradient(108deg, #754b2d 0%, #4a2a19 34%, #684027 63%, #3a2013 100%);
  box-shadow:
    0 2.7rem 4.5rem rgba(0, 0, 0, 0.66),
    0 0.45rem 0.75rem rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(246, 203, 143, 0.28),
    inset 0 0.35rem 0.45rem rgba(255, 210, 148, 0.09),
    inset 0 -0.45rem 0.65rem rgba(8, 3, 1, 0.48);
}

.coin-cabinet::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -6px;
  pointer-events: none;
  border: 1px solid rgba(232, 179, 112, 0.16);
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(12, 5, 2, 0.58);
}

.coin-cabinet::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: clamp(7px, 2.8%, 18px);
  pointer-events: none;
  border: 1px solid rgba(204, 137, 85, 0.25);
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 2px rgba(20, 5, 7, 0.42),
    inset 0 0.7rem 1.1rem rgba(0, 0, 0, 0.22);
}

.tray-grid {
  position: relative;
  z-index: 1;
  container-type: size;
  display: grid;
  height: 100%;
  padding: clamp(7px, 4%, 20px);
  grid-template-columns: repeat(var(--tray-columns, 3), minmax(0, 1fr));
  grid-template-rows: repeat(var(--tray-rows, 2), minmax(0, 1fr));
  grid-auto-rows: unset;
  place-items: center;
  gap: clamp(4px, 3.5%, 14px);
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background:
    radial-gradient(ellipse at 44% 2%, rgba(225, 96, 102, 0.16), transparent 34%),
    radial-gradient(ellipse at 72% 94%, rgba(8, 1, 3, 0.38), transparent 46%),
    repeating-linear-gradient(112deg, rgba(255, 224, 220, 0.018) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(24deg, rgba(14, 1, 3, 0.035) 0 1px, transparent 1px 4px),
    linear-gradient(135deg, #5b1018, #3d0a10 55%, #4c0d14);
  box-shadow:
    inset 0 0 2.4rem rgba(12, 1, 3, 0.82),
    inset 0 0 0 3px rgba(27, 5, 8, 0.72),
    inset 0 0.55rem 1rem rgba(235, 114, 117, 0.055);
}

.tray-grid::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0.56;
  background:
    repeating-radial-gradient(ellipse at 42% 31%, rgba(244, 177, 179, 0.028) 0 0.6px, transparent 0.8px 2.4px),
    linear-gradient(102deg, transparent 0 45%, rgba(255, 206, 207, 0.035) 50%, transparent 56%);
  mix-blend-mode: screen;
}

.coin-recess,
.coin-recess:nth-child(n + 4),
.coin-recess:nth-child(n + 5) {
  z-index: 1;
  width: min(88%, var(--tray-slot-size, 44cqh));
  height: auto;
  max-width: none;
  max-height: 92%;
  align-self: center;
  justify-self: center;
  aspect-ratio: 1;
  padding: 0;
  transform: none;
  overflow: hidden;
  border: 1px solid rgba(19, 3, 6, 0.74);
  border-radius: 50%;
  background:
    radial-gradient(circle at 46% 39%, #6f1921 0 47%, #3a080e 72%, #210407 100%);
  box-shadow:
    inset 0 0 0 clamp(2px, 0.23vw, 4px) rgba(27, 5, 8, 0.9),
    inset 0 0 clamp(0.7rem, 1.15vw, 1.35rem) rgba(0, 0, 0, 0.88),
    0 1px 0 rgba(232, 125, 128, 0.13),
    0 0.4rem 0.75rem rgba(10, 1, 3, 0.34);
}

.coin-recess.empty-recess {
  opacity: 0.44;
  background: radial-gradient(circle, #501019 0 49%, #26050a 75%);
  box-shadow:
    inset 0 0 0 2px rgba(20, 3, 6, 0.82),
    inset 0 0 1rem rgba(0, 0, 0, 0.86);
}

.coin-recess > .artifact-media__stage {
  filter: drop-shadow(0 0.32rem 0.32rem rgba(0, 0, 0, 0.62));
}

.coin-recess:focus-visible {
  outline: 2px solid #e0b982;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .station-coin-tray[data-group-id="dutch-and-spanish-silver"] {
    left: 11%;
    top: 30%;
    width: 38%;
    height: 25%;
  }

  .station-coin-tray[data-group-id="copper-transition"] {
    left: 4%;
    top: 59%;
    width: 49%;
    height: 27%;
  }
}

@media (max-width: 700px) {
  .station-coin-tray[data-group-id="dutch-and-spanish-silver"] {
    left: 3%;
    top: 32%;
    width: 47%;
    height: 20%;
  }

  .station-coin-tray[data-group-id="copper-transition"] {
    left: 2%;
    top: 62%;
    width: 53%;
    height: 20%;
  }

  .coin-cabinet { padding: 6px; border-width: 6px; }
  .coin-cabinet::after { inset: 6px; }
  .tray-grid { padding: 6px; gap: 3px; }
}

.object-surface { --media-inset: 0; }

.image-inspector[data-view="object"]:not([data-kind="coin"]) .object-lift {
  width: min(64vmin, 44rem);
  aspect-ratio: clamp(0.82, var(--inspection-aspect, 1.333), 1.85);
}

.image-inspector[data-view="object"]:not([data-kind="coin"]) .object-surface {
  border-radius: 3px;
  background: #171713;
}

.image-inspector[data-view="object"]:not([data-kind="coin"]) .object-shadow {
  inset: 10% 4% 0;
  border-radius: 4%;
}

.image-inspector[data-view="object"]:not([data-kind="coin"]) .surface-light { display: none; }

.image-inspector[data-view="photo"] .object-surface > .artifact-media__stage { inset: 0; }
.image-inspector[data-view="photo"] .object-surface .artifact-media__viewport { box-shadow: none; }

/* Evolving colony map exhibition */
body[data-exhibit-type="map"] {
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 78% 8%, rgba(109, 142, 128, 0.13), transparent 32rem),
    radial-gradient(circle at 16% 24%, rgba(198, 117, 66, 0.1), transparent 30rem),
    #10100d;
}

body[data-exhibit-type="map"] .site-header { background: rgba(15, 15, 12, 0.92); }
body[data-exhibit-type="map"] .experience { min-height: 100vh; }

.colony-map-exhibit { padding-top: 72px; }

.colony-map-hero {
  display: grid;
  min-height: min(76vh, 52rem);
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 5vw, 5rem) clamp(4rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.72fr) auto;
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.colony-map-kicker,
.colony-map-heading > div > p,
.colony-related header > p,
.colony-detail-status,
.colony-related-origin,
.colony-list-state {
  margin: 0;
  color: var(--copper);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.colony-map-title h1 {
  max-width: 10ch;
  margin: 1.2rem 0 0;
  font-family: var(--serif);
  font-size: clamp(3.8rem, 8vw, 8.7rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.83;
}

.colony-map-intro { align-self: center; }
.colony-map-intro p { margin: 0; color: var(--muted); line-height: 1.75; }
.colony-map-intro .colony-map-summary {
  margin-bottom: 1.25rem;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  line-height: 1.35;
}

.colony-map-progress {
  display: grid;
  width: clamp(8.5rem, 12vw, 11rem);
  aspect-ratio: 1;
  align-content: center;
  justify-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #151510 62%, transparent 63%),
    conic-gradient(var(--copper) var(--collection-progress), rgba(238, 230, 212, 0.12) 0);
  box-shadow: inset 0 0 0 1px rgba(238, 230, 212, 0.08), 0 2rem 4rem rgba(0, 0, 0, 0.24);
  text-align: center;
}

.colony-map-progress strong {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.colony-map-progress span {
  max-width: 7rem;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  line-height: 1.45;
  text-transform: uppercase;
}

.colony-map-workspace {
  padding: clamp(4rem, 7vw, 7rem) clamp(1rem, 4vw, 4rem) clamp(5rem, 9vw, 9rem);
}

.colony-map-heading {
  display: flex;
  max-width: 110rem;
  margin: 0 auto 2rem;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.colony-map-heading h2,
.colony-related h2 {
  margin: 0.6rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.colony-map-key { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; color: var(--muted); font-size: 0.72rem; }
.colony-map-key span { display: inline-flex; align-items: center; gap: 0.55rem; }
.colony-map-key i { width: 0.72rem; height: 0.72rem; border-radius: 50%; }
.colony-map-key i.represented { background: var(--copper); box-shadow: 0 0 0 4px rgba(198, 117, 66, 0.15); }
.colony-map-key i.open { border: 1px dashed var(--paper); }

.colony-map-layout {
  display: grid;
  max-width: 110rem;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 23rem);
  gap: clamp(1rem, 2.5vw, 2.6rem);
  align-items: start;
}

.colony-map-scroll {
  overflow-x: auto;
  border: 1px solid rgba(238, 230, 212, 0.18);
  background: #090907;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.32);
  scrollbar-color: var(--copper) rgba(238, 230, 212, 0.08);
}

.colony-map-sheet {
  position: relative;
  width: 100%;
  min-width: 58rem;
  aspect-ratio: 2941 / 1997;
  margin: 0;
  overflow: hidden;
  background: #b5a582;
}

.colony-map-image,
.colony-map-wash,
.colony-map-points { position: absolute; inset: 0; width: 100%; height: 100%; }
.colony-map-image { object-fit: cover; filter: saturate(0.54) sepia(0.08) brightness(0.71) contrast(1.08); }
.colony-map-wash {
  background:
    linear-gradient(90deg, rgba(16, 16, 13, 0.28), transparent 38%, rgba(16, 16, 13, 0.08) 76%, rgba(16, 16, 13, 0.38)),
    linear-gradient(0deg, rgba(16, 16, 13, 0.38), transparent 22%);
  pointer-events: none;
}
.colony-map-points { z-index: 2; }

.colony-location-anchor {
  position: absolute;
  z-index: 2;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(16, 16, 13, 0.72);
}
.colony-location-anchor.represented { background: var(--copper); }
.colony-location-anchor.open { border: 1px solid var(--bone); background: rgba(16, 16, 13, 0.78); }

.colony-map-leader {
  position: absolute;
  z-index: 1;
  height: 1px;
  transform-origin: 0 50%;
  opacity: 0.78;
  pointer-events: none;
}
.colony-map-leader.represented { background: var(--copper); }
.colony-map-leader.open { background: repeating-linear-gradient(90deg, rgba(238, 230, 212, 0.7) 0 4px, transparent 4px 8px); }

.colony-map-marker {
  position: absolute;
  z-index: 3;
  margin: 0;
  border: 0;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.colony-map-marker:hover,
.colony-map-marker:focus-visible,
.colony-map-marker.active { z-index: 5; }

.colony-map-marker.represented {
  width: 6.6rem;
  padding: 0.35rem;
  border: 1px solid rgba(198, 117, 66, 0.72);
  background: rgba(16, 16, 13, 0.94);
  box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.45);
  transition: border-color 180ms ease, transform 180ms ease;
}
.colony-map-marker.represented:hover,
.colony-map-marker.represented:focus-visible,
.colony-map-marker.represented.active { border-color: var(--bone); transform: translate(-50%, -50%) scale(1.05); }

.colony-marker-specimen { display: block; height: 3.85rem; background: rgba(238, 230, 212, 0.05); }
.colony-marker-specimen > .artifact-media__stage { inset: 0; }
.colony-marker-specimen .artifact-media__viewport { background: transparent; box-shadow: none; }
.colony-marker-label {
  display: block;
  padding: 0.42rem 0.25rem 0.12rem;
  overflow: hidden;
  color: var(--bone);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.colony-map-marker.open {
  display: grid;
  min-width: 6.4rem;
  padding: 0.38rem 0.62rem;
  grid-template-columns: 1.15rem 1fr;
  align-items: center;
  gap: 0.4rem;
  border: 1px dashed rgba(238, 230, 212, 0.58);
  border-radius: 2rem;
  background: rgba(16, 16, 13, 0.86);
  box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.32);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.colony-map-marker.open:hover,
.colony-map-marker.open:focus-visible,
.colony-map-marker.open.active {
  border-color: var(--copper);
  background: rgba(30, 27, 21, 0.96);
  transform: translate(-50%, -50%) scale(1.04);
}
.colony-map-marker.open .colony-marker-label { padding: 0; text-align: left; }
.colony-marker-plus {
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  place-items: center;
  border: 1px solid rgba(238, 230, 212, 0.45);
  border-radius: 50%;
  color: var(--copper);
  font-size: 0.85rem;
  line-height: 1;
}

.colony-map-sheet figcaption {
  position: absolute;
  z-index: 4;
  right: 0.8rem;
  bottom: 0.6rem;
  max-width: 48%;
  text-align: right;
}
.colony-map-credit { color: rgba(238, 230, 212, 0.76); font-size: 0.54rem; line-height: 1.4; text-decoration: none; }
.colony-map-credit:hover { color: var(--bone); }

.colony-map-ledger { border-top: 1px solid var(--copper); }
.colony-map-detail { min-height: 19rem; padding: 1.3rem 0 1.6rem; border-bottom: 1px solid var(--line); }
.colony-map-detail.represented { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: start; }
.colony-detail-media { height: 10.5rem; background: rgba(238, 230, 212, 0.05); }
.colony-detail-media > .artifact-media__stage { inset: 0; }
.colony-detail-media .artifact-media__viewport { background: transparent; box-shadow: none; }
.colony-map-detail h3 { margin: 0.55rem 0 0; font-family: var(--serif); font-size: 1.55rem; font-weight: 400; line-height: 1.05; }
.colony-detail-copy { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }
.colony-detail-action {
  margin-top: 1rem;
  padding: 0 0 0.3rem;
  border: 0;
  border-bottom: 1px solid var(--copper);
  color: var(--bone);
  background: transparent;
  cursor: pointer;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.colony-map-list { display: grid; grid-template-columns: 1fr 1fr; }
.colony-list-item {
  display: grid;
  min-width: 0;
  padding: 0.85rem 0.55rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.colony-list-item:nth-child(odd) { border-right: 1px solid var(--line); padding-left: 0; }
.colony-list-item:nth-child(even) { padding-right: 0; padding-left: 0.85rem; }
.colony-list-item:hover,
.colony-list-item.active { background: rgba(238, 230, 212, 0.035); }
.colony-list-item strong { margin-top: 0.2rem; overflow: hidden; font-family: var(--serif); font-size: 0.9rem; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.colony-list-state { font-size: 0.51rem; }
.colony-list-item.open .colony-list-state { color: var(--muted); }
.colony-list-note { margin-top: 0.18rem; overflow: hidden; color: var(--muted); font-size: 0.58rem; text-overflow: ellipsis; white-space: nowrap; }

.colony-related {
  padding: clamp(5rem, 8vw, 8rem) clamp(1.25rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  background: #181712;
}
.colony-related > header { display: grid; max-width: 90rem; margin: 0 auto 3rem; grid-template-columns: 0.45fr 1fr 0.65fr; gap: 2rem; align-items: end; }
.colony-related > header > span { color: var(--muted); line-height: 1.65; }
.colony-related-grid { max-width: 90rem; margin: 0 auto; }
.colony-related-card {
  display: grid;
  width: 100%;
  padding: 1rem;
  grid-template-columns: minmax(14rem, 0.7fr) 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(238, 230, 212, 0.025);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}
.colony-related-card:hover { border-color: var(--copper); background: rgba(238, 230, 212, 0.045); }
.colony-related-media { display: block; min-height: 18rem; background: rgba(0, 0, 0, 0.18); }
.colony-related-media > .artifact-media__stage { inset: 0; }
.colony-related-media .artifact-media__viewport { background: transparent; box-shadow: none; }
.colony-related-copy { display: flex; max-width: 42rem; flex-direction: column; align-items: flex-start; }
.colony-related-copy strong { margin: 0.8rem 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 4rem); font-weight: 400; letter-spacing: -0.04em; line-height: 0.98; }
.colony-related-copy > span:not(.colony-related-origin):not(.colony-related-action) { color: var(--muted); line-height: 1.6; }
.colony-related-action { margin-top: 1.5rem; color: var(--copper); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

.colony-map-footer {
  display: flex;
  padding: 1.2rem clamp(1.25rem, 5vw, 5rem);
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.colony-map-layout { position: relative; }

.currency-info-rail {
  position: absolute;
  z-index: 8;
  top: 0;
  right: -2.65rem;
  display: flex;
  width: 2.65rem;
  flex-direction: column;
  gap: 0.35rem;
}

.currency-info-tab {
  min-height: 4.2rem;
  padding: 0.55rem 0;
  border: 1px solid var(--line);
  border-left-color: var(--copper);
  color: var(--muted);
  background: #171611;
  cursor: pointer;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transition: width 160ms ease, color 160ms ease, background 160ms ease;
}
.currency-info-tab:hover,
.currency-info-tab:focus-visible,
.currency-info-tab.active { width: 3rem; color: var(--paper); background: #272219; }

.currency-info-drawer {
  position: absolute;
  z-index: 7;
  top: 0;
  right: 0;
  width: min(33rem, calc(100% - 2rem));
  max-height: min(48rem, calc(100vh - 7rem));
  overflow-y: auto;
  border: 1px solid var(--copper);
  background: rgba(22, 21, 17, 0.985);
  box-shadow: -2rem 2rem 6rem rgba(0, 0, 0, 0.55);
  scrollbar-color: var(--copper) rgba(238, 230, 212, 0.06);
}
.currency-info-drawer[hidden] { display: none; }
.currency-info-close {
  position: sticky;
  z-index: 2;
  top: 0.65rem;
  float: right;
  width: 2rem;
  height: 2rem;
  margin: 0.65rem 0.65rem 0 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--paper);
  background: #171611;
  cursor: pointer;
  font-size: 1.2rem;
}
.currency-info-card { padding: 2.4rem clamp(1.35rem, 3vw, 2.6rem) 2.8rem; }
.currency-info-eyebrow { margin: 0; color: var(--copper); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.currency-info-card h3 { margin: 0.7rem 2rem 1.4rem 0; font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 3.2rem); font-weight: 400; letter-spacing: -0.04em; line-height: 0.98; }
.currency-info-card h4 { margin: 2rem 0 0.65rem; color: var(--paper); font-family: var(--serif); font-size: 1.3rem; font-weight: 400; }
.currency-info-card > p:not(.currency-info-eyebrow) { color: var(--muted); font-size: 0.86rem; line-height: 1.72; }
.currency-info-card blockquote { margin: 1.7rem 0 0; padding: 0.25rem 0 0.25rem 1rem; border-left: 2px solid var(--copper); color: var(--paper); font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; }
.currency-info-goal { color: var(--paper) !important; font-family: var(--serif); font-size: 1.05rem !important; font-style: italic; }

.currency-facts { display: grid; margin: 1.5rem 0 0; grid-template-columns: minmax(7.5rem, 0.38fr) 1fr; border-top: 1px solid var(--line); }
.currency-facts dt,
.currency-facts dd { margin: 0; padding: 0.58rem 0; border-bottom: 1px solid var(--line); }
.currency-facts dt { padding-right: 0.85rem; color: var(--paper); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.currency-facts dd { color: var(--muted); font-size: 0.78rem; line-height: 1.45; }
.colony-story-action { display: block; margin-top: 0.8rem; color: var(--copper); }
.colony-story-action.active { color: var(--paper); }

@media (max-width: 1100px) {
  .colony-map-hero { grid-template-columns: 1fr 0.75fr; }
  .colony-map-progress { grid-column: 2; justify-self: end; }
  .colony-map-layout { grid-template-columns: 1fr; }
  .colony-map-ledger { display: grid; grid-template-columns: 0.7fr 1fr; gap: 0 2rem; }
  .colony-map-detail { grid-column: 1; }
  .colony-map-list { grid-column: 2; grid-row: 1 / span 2; }
  .currency-info-rail { right: 0; }
  .currency-info-drawer { right: 2.65rem; }
  .colony-related > header { grid-template-columns: 0.4fr 1fr; }
  .colony-related > header > span { grid-column: 2; }
}

@media (max-width: 760px) {
  .colony-map-exhibit { padding-top: 62px; }
  .colony-map-hero { min-height: auto; padding-top: 5rem; grid-template-columns: 1fr; }
  .colony-map-intro { max-width: 34rem; }
  .colony-map-progress { grid-column: auto; justify-self: start; }
  .colony-map-heading { align-items: flex-start; flex-direction: column; }
  .colony-map-sheet { min-width: 64rem; }
  .colony-map-marker.represented { width: 6rem; }
  .colony-map-ledger { display: block; }
  .colony-map-list { margin-top: 0.5rem; }
  .colony-related > header { display: block; }
  .colony-related > header > span { display: block; margin-top: 1.25rem; }
  .colony-related-card { grid-template-columns: 1fr; }
  .colony-related-media { min-height: 15rem; }
  .currency-info-rail {
    position: sticky;
    right: auto;
    bottom: 0;
    width: 100%;
    height: 2.8rem;
    flex-direction: row;
    overflow-x: auto;
    background: #10100d;
  }
  .currency-info-tab { min-width: 4rem; min-height: 2.65rem; padding: 0 0.7rem; writing-mode: horizontal-tb; }
  .currency-info-tab:hover,
  .currency-info-tab:focus-visible,
  .currency-info-tab.active { width: auto; }
  .currency-info-drawer {
    position: fixed;
    top: 4.25rem;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-height: none;
  }
  .colony-map-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .colony-map-marker,
  .colony-related-card,
  .currency-info-tab { transition: none; }
}

/* Full-resolution museum image viewer */
#dialog-media {
  cursor: zoom-in;
  outline: none;
}

#dialog-media:focus-visible {
  box-shadow:
    0 0 0 2px #0b0b09,
    0 0 0 4px var(--copper),
    0 2.5rem 5rem rgba(0, 0, 0, 0.62);
}

.full-resolution-affordance {
  position: absolute;
  z-index: 7;
  right: 0.7rem;
  bottom: 0.7rem;
  padding: 0.42rem 0.58rem;
  pointer-events: none;
  border: 1px solid rgba(238, 230, 212, 0.2);
  border-radius: 99px;
  color: var(--paper);
  background: rgba(11, 11, 9, 0.78);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.image-lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--bone);
  background: #080806;
}

.image-lightbox::backdrop { background: rgba(2, 2, 1, 0.96); }

.image-lightbox-shell {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.image-lightbox-header,
.image-lightbox-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem clamp(1rem, 2vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 13, 10, 0.96);
}

.image-lightbox-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: var(--muted);
  font-size: 0.66rem;
}

.image-lightbox-footer p { margin: 0; }
.image-lightbox-footer p:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-lightbox-footer p:last-child { flex: 0 0 auto; font-variant-numeric: tabular-nums; }

.image-lightbox-heading { min-width: 0; }
.image-lightbox-heading p {
  margin: 0 0 0.18rem;
  color: var(--copper);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.image-lightbox-heading h2 {
  overflow: hidden;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-lightbox-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
}

.image-lightbox-controls button,
.image-lightbox-controls output {
  display: grid;
  min-width: 2.45rem;
  height: 2.45rem;
  padding: 0 0.7rem;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--paper);
  background: #151511;
  font: inherit;
  font-size: 0.64rem;
}

.image-lightbox-controls button { cursor: pointer; }
.image-lightbox-controls button:hover:not(:disabled),
.image-lightbox-controls button:focus-visible { border-color: var(--copper); color: var(--bone); outline: none; }
.image-lightbox-controls button:disabled { opacity: 0.35; cursor: default; }
.image-lightbox-controls output { min-width: 4.25rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.image-lightbox-controls .image-lightbox-close { border-radius: 50%; font-size: 1.2rem; }

.image-lightbox-viewport {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  outline: none;
  background:
    radial-gradient(circle at center, rgba(238, 230, 212, 0.035), transparent 48%),
    #080806;
  cursor: zoom-in;
  touch-action: none;
}

.image-lightbox-viewport.can-pan { cursor: grab; }
.image-lightbox-viewport.is-panning { cursor: grabbing; }
.image-lightbox-viewport:focus-visible { box-shadow: inset 0 0 0 1px rgba(198, 117, 66, 0.72); }

.image-lightbox-viewport img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100% - 2rem);
  max-height: calc(100% - 2rem);
  pointer-events: none;
  user-select: none;
  transform-origin: center;
  will-change: transform;
}

@media (max-width: 720px) {
  .image-lightbox-header { align-items: flex-start; flex-direction: column; gap: 0.65rem; }
  .image-lightbox-controls { width: 100%; }
  .image-lightbox-controls button,
  .image-lightbox-controls output { flex: 1 1 auto; padding-inline: 0.4rem; }
  .image-lightbox-footer p:first-child { display: none; }
  .image-lightbox-footer { justify-content: flex-end; }
  .image-lightbox-viewport img { max-width: calc(100% - 1rem); max-height: calc(100% - 1rem); }
}
