/* =====================================================================
   WEAVER LAB — design option 02 · "THE GALLERY"
   A museum at night: near-black warm charcoal walls, brass hairlines,
   wall-label typography. Fraunces (display) + Archivo (captions/UI).
   One committed dark look — no theme switching.
   ===================================================================== */

:root {
  --ground: #0e0d0b;        /* the wall */
  --ground-2: #12100d;      /* alternating room */
  --panel: #161310;         /* plinths, plaques */
  --panel-2: #1b1713;       /* matting */
  --ink: #e9e3d8;           /* body text */
  --ink-bright: #f6f1e7;    /* headlines */
  --muted: #a89e8d;
  --faint: #746c5f;
  --brass: #c9a227;         /* museum brass — the single accent */
  --brass-dim: rgba(201, 162, 39, 0.55);
  --hair: rgba(233, 227, 216, 0.13);       /* bone hairline */
  --hair-brass: rgba(201, 162, 39, 0.34);  /* brass hairline */
  --uab-gold: #fdb913;      /* true UAB gold — focus rings only */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
  --narrow: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* film grain — a fixed, non-interactive veil over the whole room */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.05;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="180" height="180" filter="url(%23n)" opacity="0.6"/></svg>');
}

a { color: var(--ink-bright); text-decoration-color: var(--brass-dim); text-underline-offset: 3px; }
a:hover { color: var(--brass); }
:focus-visible { outline: 2px solid var(--uab-gold); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }
.narrow { max-width: var(--narrow); }

.skip-link {
  position: absolute; left: -999px; top: 0.5rem; z-index: 100;
  background: var(--brass); color: #171204; padding: 0.5rem 1rem;
  font-family: var(--sans); font-size: 0.85rem; text-decoration: none;
}
.skip-link:focus { left: 0.5rem; }

/* ------------------------------ type ------------------------------ */

h1, h2, h3 { font-family: var(--serif); color: var(--ink-bright); font-weight: 380; line-height: 1.12; margin: 0 0 1rem; }
h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); font-weight: 330; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.32rem; font-weight: 460; }
p { margin: 0 0 1.1rem; }

/* museum wall-label caps */
.wall-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.1rem;
}
.wall-label--bone { color: var(--muted); }

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 320;
  font-size: clamp(1.18rem, 2.2vw, 1.45rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 46ch;
}
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

.rule {
  border: 0; height: 1px; background: var(--hair-brass);
  margin: 1.4rem 0;
}
.rule--short { width: 72px; margin-inline: 0; }
.center .rule--short { margin-inline: auto; }

/* ----------------------------- header ----------------------------- */

.site-header {
  border-bottom: 1px solid var(--hair);
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 66px;
}
.brand {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-bright); text-decoration: none; white-space: nowrap;
}
.brand .tick { color: var(--brass); }
.nav { display: flex; gap: clamp(0.9rem, 2.4vw, 1.7rem); }
.nav a {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; text-decoration: none; color: var(--muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--ink-bright); }
.nav a.active { color: var(--brass); border-bottom-color: var(--brass); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--hair);
  color: var(--ink); font-size: 1.1rem; padding: 0.3rem 0.65rem;
  cursor: pointer; border-radius: 3px;
}

/* ------------------------------ rooms ------------------------------ */

.room { padding: clamp(4rem, 9vw, 7rem) 0; }
.room--soft { background: var(--ground-2); border-block: 1px solid var(--hair); }
.room--entrance {
  padding: clamp(5rem, 11vw, 8.5rem) 0 clamp(2.5rem, 5.5vw, 4rem);
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(201, 162, 39, 0.07), transparent 62%),
    var(--ground);
}
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* engraved entrance plaque */
.plaque {
  display: inline-block;
  margin-top: 2.6rem;
  padding: 1.1rem 2rem;
  border: 1px solid var(--hair-brass);
  outline: 1px solid var(--hair);
  outline-offset: 5px;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 2.1;
}
.plaque strong { color: var(--brass); font-weight: 500; }

/* buttons — quiet, engraved */
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.4rem; }
.center .btn-row { justify-content: center; }
.btn {
  display: inline-block;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-bright); text-decoration: none;
  border: 1px solid var(--brass-dim);
  padding: 0.85rem 1.7rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: rgba(201, 162, 39, 0.12); color: var(--brass); }
.btn--solid { background: var(--brass); border-color: var(--brass); color: #191305; }
.btn--solid:hover { background: #d9b23a; color: #191305; }

/* ------------------------------ plates ------------------------------ */
/* numbered exhibits: hairline top, brass number, wall text */

.plates { margin-top: 3rem; display: grid; gap: 2.6rem; }
.plates--walk { grid-template-columns: repeat(2, 1fr); gap: 3rem 3.5rem; }

.plate {
  border-top: 1px solid var(--hair-brass);
  padding-top: 1.4rem;
}
.plate-no {
  font-family: var(--serif);
  font-size: 0.86rem;
  letter-spacing: 0.3em;
  color: var(--brass);
  margin: 0 0 0.9rem;
}
.plate h3 { margin-bottom: 0.6rem; }
.plate p { color: var(--muted); font-size: 0.96rem; }
.plate a.more {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: var(--brass);
}
.plate a.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* full-width room plates (research page): huge faint numeral in the margin */
.exhibit-room {
  display: grid;
  grid-template-columns: minmax(90px, 150px) 1fr;
  gap: clamp(1.2rem, 4vw, 3.2rem);
  align-items: start;
}
.exhibit-room .numeral {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 8vw, 6.4rem);
  font-weight: 300;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--brass-dim);
  user-select: none;
}
@supports not (-webkit-text-stroke: 1px black) {
  .exhibit-room .numeral { color: var(--brass-dim); }
}

/* ------------------------------ frames ------------------------------ */
/* framed works: hairline frame, warm matting, inner hairline */

.frame {
  background: var(--panel-2);
  border: 1px solid var(--hair);
  padding: clamp(0.7rem, 1.6vw, 1.1rem);
}
.frame > .art {
  border: 1px solid rgba(201, 162, 39, 0.22);
  display: block;
  position: relative;
}
.frame img, .frame svg { display: block; width: 100%; height: auto; }

/* placeholder canvases awaiting real images */
.ph {
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1rem;
  background:
    radial-gradient(ellipse 120% 90% at 50% 20%, rgba(201, 162, 39, 0.05), transparent 60%),
    #131110;
  color: var(--faint);
  font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase;
  line-height: 2;
}

.caption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}
.caption .title {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-bright);
}
.caption .medium {
  display: block;
  font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass-dim); margin: 0.25rem 0 0.35rem;
}

.collection-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem; margin-top: 2.6rem;
}

/* ---------------------------- portraits ---------------------------- */

.pi-feature {
  display: grid; grid-template-columns: minmax(220px, 300px) 1fr;
  gap: clamp(1.6rem, 4vw, 3.4rem); align-items: start;
}
.portrait { aspect-ratio: 4 / 5; }
.portrait .sitter {
  aspect-ratio: 4 / 5;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 110% 80% at 50% 26%, rgba(201, 162, 39, 0.09), transparent 62%),
    #14110e;
  font-family: var(--serif); font-style: italic; font-weight: 320;
  font-size: 2.6rem; color: var(--brass-dim);
}
.portrait-wall {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem; margin-top: 2.4rem;
}
.portrait-wall .sitter { font-size: 1.9rem; }
.portrait-wall .caption { text-align: center; }
.portrait-wall .caption .title { font-size: 0.95rem; }

.link-row { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: 0.85rem; }

.alumni-list { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.alumni-list li {
  border-top: 1px solid var(--hair);
  padding: 0.7rem 0.1rem;
  font-size: 0.92rem; color: var(--muted);
}
.alumni-list li strong { color: var(--ink); font-weight: 500; }

/* --------------------------- the catalogue --------------------------- */

.cat-search {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--hair-brass);
  color: var(--ink-bright);
  font-family: var(--serif); font-style: italic;
  font-size: 1.15rem;
  padding: 0.5rem 0.1rem;
  margin: 1.6rem 0 0.4rem;
}
.cat-search::placeholder { color: var(--faint); }
.cat-search:focus { outline: none; border-bottom-color: var(--brass); }
.cat-count {
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 2rem;
}

.pub-year-group { position: relative; margin-top: 2.6rem; }
.pub-year {
  font-family: var(--serif); font-weight: 300;
  font-size: 2rem; color: var(--brass);
  border-bottom: 1px solid var(--hair-brass);
  padding-bottom: 0.4rem; margin-bottom: 1.3rem;
}
.pub { margin-bottom: 1.7rem; max-width: 74ch; }
.pub-title { font-family: var(--serif); font-weight: 480; font-size: 1.06rem; line-height: 1.4; }
.pub-title a { text-decoration: none; }
.pub-title a:hover { color: var(--brass); text-decoration: underline; text-underline-offset: 4px; }
.pub-authors { font-size: 0.84rem; color: var(--muted); margin-top: 0.3rem; line-height: 1.6; }
.pub-authors .self { color: var(--brass); font-weight: 500; }
.pub-meta { font-size: 0.82rem; color: var(--faint); font-style: italic; margin-top: 0.15rem; }
.pub-links { margin-top: 0.3rem; display: flex; gap: 1.1rem; }
.pub-links a {
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass-dim); text-decoration: none;
}
.pub-links a:hover { color: var(--brass); }
.badge {
  display: inline-block; vertical-align: 0.15em; margin-left: 0.5rem;
  font-family: var(--sans); font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.15rem 0.45rem; border-radius: 2px;
}
.badge--featured { border: 1px solid var(--brass-dim); color: var(--brass); }
.badge--review { border: 1px solid rgba(233, 227, 216, 0.3); color: var(--muted); }
.review-banner {
  border: 1px solid var(--brass-dim); background: rgba(201, 162, 39, 0.07);
  padding: 1rem 1.2rem; font-size: 0.88rem; margin: 1.6rem 0;
}
.review-banner code { color: var(--brass); }

/* ----------------------------- notices ----------------------------- */

.notice { border-top: 1px solid var(--hair); padding: 1.1rem 0.1rem; display: grid; grid-template-columns: 120px 1fr; gap: 1.4rem; }
.notice-date {
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass-dim); padding-top: 0.35rem;
}
.notice h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.notice p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* --------------------------- visitor info --------------------------- */

.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.visit-card { border: 1px solid var(--hair); background: var(--panel); padding: 1.6rem 1.7rem; margin: 0; }
.visit-card h3 { font-size: 1.15rem; }
.visit-card p, .visit-card dd { font-size: 0.92rem; color: var(--muted); }
.visit-card dt {
  font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brass); margin-top: 1.1rem;
}
.visit-card dt:first-child { margin-top: 0; }
.visit-card dd { margin: 0.25rem 0 0; }

/* ------------------------------ footer ------------------------------ */

.site-footer {
  border-top: 1px solid var(--hair);
  padding: 3rem 0 2.4rem;
  margin-top: clamp(3rem, 7vw, 5rem);
  background: var(--ground-2);
}
.foot-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot-links a {
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.foot-links a:hover { color: var(--brass); }
.site-footer .colophon {
  margin-top: 2.2rem; font-size: 0.72rem; color: var(--faint); line-height: 2;
}
.site-footer .colophon .opt { color: var(--brass-dim); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.62rem; }

/* --------------------------- reveal motion --------------------------- */

html.reveal-armed .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
html.reveal-armed .reveal.is-in { opacity: 1; transform: none; }

/* =====================================================================
   THE LIVING EXHIBIT — atlas viewer chrome, re-skinned to the museum
   language. Class/ID contract matches assets/js/atlas.js (copied from
   option_01 unmodified). The stage keeps its validated cool-dark surface
   (#10151d) — the "work" against the warm gallery wall.
   ===================================================================== */

.exhibit { margin: 2.6rem 0 0; }

.exhibit-frame { /* matting around the live canvas */
  background: var(--panel-2);
  border: 1px solid var(--hair);
  padding: clamp(0.7rem, 1.6vw, 1.1rem);
}
.exhibit-stage {
  position: relative;
  background: #10151d;
  border: 1px solid rgba(201, 162, 39, 0.22);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 420px;
}
.exhibit-stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  cursor: grab; touch-action: none;
}
.exhibit-stage canvas.dragging { cursor: grabbing; }

.exhibit-controls {
  position: absolute; left: 0.9rem; right: 0.9rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.1rem;
  pointer-events: none; z-index: 3;
}
.exhibit-controls--top { top: 0.9rem; }
.exhibit-controls--bottom { bottom: 0.9rem; }

.chipgroup { pointer-events: auto; display: flex; align-items: center; gap: 0.55rem; }
.chipgroup-label {
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.24em;
  text-transform: uppercase; color: rgba(236, 231, 222, 0.5);
  white-space: nowrap;
}
.chips {
  display: inline-flex;
  background: rgba(13, 12, 10, 0.74);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 3px;
  padding: 2px;
  backdrop-filter: blur(8px) saturate(130%);
}
.chip {
  appearance: none; border: 0; background: transparent;
  color: rgba(236, 231, 222, 0.72);
  font-family: var(--sans);
  font-size: 0.64rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  line-height: 1; padding: 0.5rem 0.68rem;
  border-radius: 2px; cursor: pointer; white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease;
}
.chip:hover { color: #fff; }
.chip.is-on { background: var(--brass); color: #191305; font-weight: 600; }
.chip:focus-visible { outline: 2px solid var(--uab-gold); outline-offset: 1px; }
.chip .gene { font-style: italic; text-transform: none; letter-spacing: 0.03em; font-size: 0.72rem; }

.exhibit-legend {
  position: absolute; top: 3.6rem; right: 0.9rem; z-index: 2;
  background: rgba(13, 12, 10, 0.74);
  border: 1px solid rgba(201, 162, 39, 0.24);
  border-radius: 3px;
  padding: 0.65rem 0.8rem;
  backdrop-filter: blur(8px) saturate(130%);
  max-width: 240px;
}
.exhibit-legend .lg-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.76rem; color: rgba(236, 231, 222, 0.8);
  padding: 0.14rem 0.1rem;
  border: 0; background: none; width: 100%; text-align: left;
  cursor: pointer; font-family: var(--sans); border-radius: 2px;
}
.exhibit-legend .lg-item:hover { background: rgba(236, 231, 222, 0.06); }
.exhibit-legend .lg-item.off { opacity: 0.35; }
.exhibit-legend .lg-item.off .lg-name { text-decoration: line-through; }
.exhibit-legend .lg-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.exhibit-legend .lg-count {
  margin-left: auto; color: rgba(236, 231, 222, 0.4);
  font-variant-numeric: tabular-nums; font-size: 0.68rem;
}
.exhibit-legend .lg-ramp { width: 170px; height: 10px; border-radius: 2px; margin: 0.35rem 0 0.3rem; }
.exhibit-legend .lg-ramp-labels {
  display: flex; justify-content: space-between;
  font-size: 0.66rem; color: rgba(236, 231, 222, 0.55);
}
.exhibit-legend .lg-note { font-size: 0.66rem; color: rgba(236, 231, 222, 0.45); margin-top: 0.3rem; }

.exhibit-labels { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.exhibit-labels .glabel {
  position: absolute; transform: translate(-50%, -50%);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 0 5px rgba(6, 9, 14, 0.95), 0 0 12px rgba(6, 9, 14, 0.9);
  white-space: nowrap;
}

.exhibit-zoom {
  position: absolute; right: 0.9rem; bottom: 3.6rem; z-index: 3;
  display: flex; flex-direction: column; gap: 4px;
}
.exhibit-zoom button {
  width: 30px; height: 30px; border-radius: 3px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  background: rgba(13, 12, 10, 0.74);
  color: rgba(236, 231, 222, 0.85);
  font-size: 0.95rem; line-height: 1; cursor: pointer;
  backdrop-filter: blur(8px);
}
.exhibit-zoom button:hover { background: rgba(236, 231, 222, 0.12); }
.exhibit-zoom button.is-on { background: var(--brass); border-color: var(--brass); color: #191305; }

.exhibit-readout {
  position: absolute; left: 0.9rem; bottom: 3.4rem; z-index: 2;
  font-size: 0.75rem; color: rgba(236, 231, 222, 0.88);
  background: rgba(13, 12, 10, 0.8);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 3px; padding: 0.3rem 0.6rem;
  pointer-events: none; opacity: 0; transition: opacity 0.15s ease;
  max-width: 60%;
}
.exhibit-readout.show { opacity: 1; }

.exhibit-hint {
  position: absolute; left: 50%; bottom: 3.4rem; transform: translateX(-50%);
  z-index: 2;
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(236, 231, 222, 0.55);
  background: rgba(13, 12, 10, 0.72);
  border: 1px solid rgba(201, 162, 39, 0.16);
  border-radius: 3px; padding: 0.32rem 0.85rem;
  pointer-events: none; transition: opacity 0.4s ease;
  white-space: nowrap;
}
.exhibit-hint.hide { opacity: 0; }

/* the wall label beneath the living exhibit */
.exhibit figcaption {
  margin-top: 1.4rem;
  max-width: 68ch;
  font-size: 0.9rem;
  color: var(--muted);
  border-left: 1px solid var(--hair-brass);
  padding-left: 1.2rem;
}
.exhibit-status {
  display: block;
  font-size: 0.64rem; font-weight: 500; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--brass);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
}

/* "now showing" teaser on the entrance page */
.now-showing {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.8rem, 4.5vw, 3.6rem); align-items: center;
}

/* --------------------------- responsive --------------------------- */

@media (max-width: 940px) {
  .portrait-wall { grid-template-columns: repeat(3, 1fr); }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .now-showing { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--ground); border-bottom: 1px solid var(--hair);
    padding: 0.6rem 1.2rem 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0; border-bottom: 0; }
  .plates--walk { grid-template-columns: 1fr; }
  .exhibit-room { grid-template-columns: 1fr; }
  .exhibit-room .numeral { font-size: 2.8rem; }
  .pi-feature { grid-template-columns: 1fr; }
  .pi-feature .frame { max-width: 300px; }
  .portrait-wall { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .collection-grid { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
  .notice { grid-template-columns: 1fr; gap: 0.15rem; }
  .exhibit-frame { padding: 0.45rem; }
  .exhibit-stage { aspect-ratio: auto; height: 76vh; }
  .exhibit-legend { max-width: 46%; }
  .chips { flex-wrap: wrap; }
}
