/* A private palette and layout for the museum page; shared navigation remains in yudai-home.css. */
:root {
  color-scheme: only light;
  --bg: #eee9de;
  --surface: #e4ddcf;
  --surface-raised: #f7f2e8;
  --ink: #2e271f;
  --ink-secondary: #554a3d;
  --ink-muted: #625545;
  --line: #d3c7b4;
  --line-strong: #ad9b7c;
  --accent: #70512b;
  --accent-hover: #634820;
  --paper-rgb: 238, 233, 222;
  --accent-rgb: 141, 108, 63;
  --selection: #d9ccb5;
  --error: #86584f;
  --error-line: #aa786b;
  --wash: rgba(158, 127, 76, 0.13);
  --f-display-en: "Cormorant Garamond", Georgia, serif;
  --f-display-jp: "Noto Serif JP", "Yu Mincho", serif;
  --f-sans: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-jp: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --museum-stone: #e8e0d2;
  --museum-stone-light: #f5f0e6;
  --museum-walnut: #382e23;
  --museum-brass: #a38350;
  --museum-brass-soft: rgba(163, 131, 80, 0.43);
  --museum-button-ink: #fffaf0;
  --museum-hud-rgb: 248, 244, 235;
  --museum-hud-border: rgba(132, 99, 53, 0.58);
  --museum-stage: #d8cebd;
  --museum-gutter: clamp(18px, 5.2vw, 82px);
  --museum-shadow: 0 24px 70px rgba(35, 27, 19, 0.18);
  --catalog-accent: #92744e;
  --catalog-wash: rgba(146, 116, 78, 0.14);
}

:root[data-theme="dark"] {
  color-scheme: only dark;
  --bg: #1c1916;
  --surface: #26221d;
  --surface-raised: #302a23;
  --ink: #eee6d8;
  --ink-secondary: #d0c3ac;
  --ink-muted: #b2a48c;
  --line: #494136;
  --line-strong: #75664f;
  --accent: #c1a16c;
  --accent-hover: #d8bd8c;
  --paper-rgb: 28, 25, 22;
  --accent-rgb: 193, 161, 108;
  --selection: #4c4030;
  --error: #efb4a8;
  --error-line: #d2998d;
  --wash: rgba(181, 145, 84, 0.13);
  --museum-stone: #302920;
  --museum-stone-light: #e9dfcf;
  --museum-walnut: #171411;
  --museum-brass: #c1a16c;
  --museum-brass-soft: rgba(193, 161, 108, 0.46);
  --museum-button-ink: #261d12;
  --museum-hud-rgb: 43, 37, 29;
  --museum-hud-border: rgba(193, 161, 108, 0.56);
  --museum-stage: #211c17;
  --museum-shadow: 0 26px 76px rgba(0, 0, 0, 0.4);
  --catalog-accent: #c1a16c;
  --catalog-wash: rgba(193, 161, 108, 0.13);
}

body.museum-page {
  min-width: 320px;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-jp);
  line-height: 1.8;
}

body.museum-page [hidden] {
  display: none !important;
}

html:not(.js) body.museum-page #theme-toggle {
  display: none;
}

body.museum-page :focus-visible {
  outline-color: var(--accent);
  outline-offset: 4px;
}

body.museum-page .skip-link {
  position: fixed;
  z-index: 120;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 0.82rem;
}

body.museum-page .skip-link:focus {
  transform: translateY(0);
}

/* The waiting entrance is HTML/CSS, visible before the scene module arrives. */
html[data-museum-load="loading"] {
  scroll-behavior: auto;
}

html[data-museum-load="loading"] body.museum-page .museum-stage {
  position: sticky;
  top: 0;
}

body.museum-page .museum-loading {
  display: none;
}

html[data-museum-load] body.museum-page .museum-loading {
  position: absolute;
  z-index: 12;
  inset: 0;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-height) + 26px) 24px 42px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 42%, #332719 0, #211b14 43%, #171411 86%);
  color: #eee5d3;
  opacity: 1;
  visibility: visible;
  transition: opacity 600ms ease, visibility 0s;
}

html[data-museum-load="ready"] body.museum-page .museum-loading {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 600ms ease, visibility 0s 600ms;
}

html:is([data-museum-load="loading"], [data-museum-load="failed"]) body.museum-page :is(.tour-intro, .tour-hud, .tour-rest, .museum-entrance-note, #museum-overlay) {
  visibility: hidden;
}

body.museum-page .museum-loading-inner {
  display: grid;
  justify-items: center;
  width: min(100%, 420px);
  text-align: center;
}

body.museum-page .museum-loading-emblem {
  position: relative;
  width: 132px;
  height: 154px;
  margin: 0 0 31px;
}

body.museum-page .museum-loading-emblem i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(193, 161, 108, 0.65);
  border-bottom: 0;
  border-radius: 70px 70px 0 0;
}

body.museum-page .museum-loading-emblem i:nth-child(2) {
  inset: 17px 17px 0;
  border-color: rgba(193, 161, 108, 0.37);
}

body.museum-page .museum-loading-emblem i:nth-child(3) {
  inset: 34px 34px 0;
  border-color: rgba(193, 161, 108, 0.22);
}

body.museum-page .museum-loading-emblem::before {
  position: absolute;
  content: "";
  inset: auto -34px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c1a16c, transparent);
}

body.museum-page .museum-loading-emblem span {
  position: absolute;
  top: 62%;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: #f1ddb5;
  box-shadow: 0 0 16px 3px rgba(230, 193, 127, 0.36), 0 0 65px 24px rgba(193, 161, 108, 0.1);
}

html[data-museum-load="loading"] body.museum-page .museum-loading-emblem span {
  animation: museum-loading-glow 2.8s ease-in-out infinite;
}

body.museum-page .museum-loading-brand {
  margin: 0 0 17px;
  font-family: var(--f-display-en);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

body.museum-page .museum-loading-brand em {
  color: #c1a16c;
  font-weight: 400;
}

body.museum-page .museum-loading-status {
  margin: 0;
  font-family: var(--f-jp);
  font-size: clamp(15px, 2.6vw, 17px);
  letter-spacing: 0.06em;
  line-height: 1.8;
}

body.museum-page .museum-loading-light {
  position: relative;
  width: 140px;
  height: 1px;
  margin: 24px 0 20px;
  overflow: hidden;
  background: rgba(193, 161, 108, 0.22);
}

html[data-museum-load="loading"] body.museum-page .museum-loading-light::after {
  position: absolute;
  content: "";
  width: 55px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f1ddb5, transparent);
  animation: museum-loading-sheen 2.8s ease-in-out infinite;
}

body.museum-page .museum-loading-note {
  margin: 0;
  color: #b7a78d;
  font-family: var(--f-sans);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.045em;
}

body.museum-page .museum-loading-skip {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  margin-top: 17px;
  padding: 5px 2px;
  color: #d2bb92;
  font-family: var(--f-sans);
  font-size: 12px;
  text-underline-offset: 6px;
  text-decoration: underline;
  text-decoration-color: rgba(193, 161, 108, 0.4);
}

body.museum-page .museum-loading-skip:hover {
  color: #fff2d9;
}

body.museum-page .museum-loading-failed,
html[data-museum-load="failed"] body.museum-page .museum-loading-pending {
  display: none;
}

html[data-museum-load="failed"] body.museum-page .museum-loading-failed {
  display: inline;
}

@keyframes museum-loading-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes museum-loading-sheen {
  0% { transform: translateX(-60px); opacity: 0; }
  25%, 75% { opacity: 1; }
  100% { transform: translateX(150px); opacity: 0; }
}

@media (max-height: 600px) {
  html[data-museum-load] body.museum-page .museum-loading {
    padding-block: calc(var(--nav-height) + 12px) 20px;
  }
  body.museum-page .museum-loading-emblem { width: 84px; height: 88px; margin-bottom: 18px; }
  body.museum-page .museum-loading-brand { font-size: 32px; margin-bottom: 10px; }
  body.museum-page .museum-loading-light { margin-block: 15px; }
  body.museum-page .museum-loading-skip { margin-top: 8px; }
}

/* The scene is a single sticky hall; the unenhanced page stays a complete static entrance. */
body.museum-page .museum-tour {
  position: relative;
  min-height: 100svh;
  background: var(--museum-stage);
}

body.museum-page .museum-stage {
  position: relative;
  display: block;
  height: 100svh;
  min-height: 520px;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(250, 244, 231, 0.68), transparent 54%),
    linear-gradient(180deg, rgba(250, 246, 237, 0.26), transparent 48%, rgba(53, 41, 27, 0.12)),
    var(--museum-stage);
}

body.museum-page .museum-stage::before {
  position: absolute;
  z-index: 0;
  inset: 8% 23% 0;
  border: 1px solid var(--museum-brass-soft);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  box-shadow:
    0 0 0 18px rgba(255, 255, 255, 0.035),
    0 0 0 19px rgba(163, 131, 80, 0.18),
    0 0 0 43px rgba(255, 255, 255, 0.025),
    0 0 0 44px rgba(163, 131, 80, 0.12);
  content: "";
  pointer-events: none;
}

body.museum-page .museum-stage::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(47, 37, 25, 0.13), transparent 24%, transparent 76%, rgba(47, 37, 25, 0.13)),
    linear-gradient(180deg, transparent 65%, rgba(52, 39, 24, 0.13));
  content: "";
  pointer-events: none;
}

:root[data-theme="dark"] body.museum-page .museum-stage {
  background:
    radial-gradient(ellipse at 50% 24%, rgba(135, 106, 63, 0.2), transparent 54%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), transparent 44%, rgba(0, 0, 0, 0.38)),
    var(--museum-stage);
}

:root[data-theme="dark"] body.museum-page .museum-stage::before {
  box-shadow:
    0 0 0 18px rgba(255, 255, 255, 0.018),
    0 0 0 19px rgba(193, 161, 108, 0.22),
    0 0 0 43px rgba(255, 255, 255, 0.012),
    0 0 0 44px rgba(193, 161, 108, 0.14);
}

body.museum-page #museum-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
}

body.museum-page #museum-overlay {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

body.museum-page .tour-vignette {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(41, 32, 22, 0.09), transparent 18%, transparent 82%, rgba(41, 32, 22, 0.09)),
    linear-gradient(180deg, rgba(41, 32, 22, 0.04), transparent 30%, transparent 70%, rgba(41, 32, 22, 0.18));
  pointer-events: none;
}

body.museum-page .tour-vignette::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--museum-hud-rgb), 0.99), rgba(var(--museum-hud-rgb), 0.94) 23%, rgba(var(--museum-hud-rgb), 0.52) 40%, rgba(var(--museum-hud-rgb), 0) 67%);
  opacity: 0;
  transition: opacity 420ms ease;
  content: "";
}

body.museum-page[data-tour-index="0"] .tour-vignette::before {
  opacity: 1;
}

:root[data-theme="dark"] body.museum-page .tour-vignette {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.28)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.13), transparent 28%, transparent 68%, rgba(0, 0, 0, 0.42));
}

html.museum-enhanced body.museum-page .museum-tour,
html[data-museum-load="loading"] body.museum-page .museum-tour {
  /* Work-to-work travel retains 90svh, with a 30svh viewing hold on either side. */
  height: calc(100svh + var(--tour-scroll-length, 120.2) * 150svh);
}

html.museum-enhanced body.museum-page .museum-stage {
  position: sticky;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 24px;
  top: 0;
  height: 100svh;
  padding-top: calc(var(--nav-height) + 24px);
  padding-bottom: 24px;
}

body.museum-page .museum-art-field {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  margin-inline: var(--museum-gutter);
  pointer-events: none;
}

body.museum-page .tour-hud {
  position: relative;
  z-index: 6;
  display: grid;
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 56ch) minmax(280px, 1fr);
  align-items: end;
  gap: 24px;
  min-width: 0;
  margin-inline: var(--museum-gutter);
  pointer-events: none;
}

body.museum-page:not([data-tour-index="0"]) .museum-entrance-note {
  display: none;
}

/* Keep the visitor's copy clear of the centered CSS3D artwork. */
body.museum-page .tour-intro {
  position: absolute;
  z-index: 5;
  isolation: isolate;
  top: clamp(132px, 19vh, 205px);
  left: var(--museum-gutter);
  width: min(36rem, calc(100% - 2 * var(--museum-gutter)));
  color: var(--ink);
  pointer-events: auto;
  transition: opacity 420ms ease, transform 420ms var(--ease);
}

body.museum-page .tour-intro.is-dismissed {
  transform: translateY(-14px);
  opacity: 0;
  pointer-events: none;
}

body.museum-page .museum-eyebrow {
  margin: 0 0 17px;
  color: var(--accent);
  font-family: var(--f-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

body.museum-page #museum-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--f-display-en);
  font-size: clamp(4.6rem, 9.1vw, 9.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.76;
}

body.museum-page #museum-title em {
  color: var(--accent);
  font-weight: 400;
}

body.museum-page .museum-name {
  margin: 25px 0 0;
  color: var(--ink-secondary);
  font-size: clamp(0.8rem, 1.2vw, 0.98rem);
  letter-spacing: 0.17em;
}

body.museum-page .museum-lead {
  margin: 17px 0 0;
  color: var(--ink-secondary);
  font-size: clamp(1.04rem, 1.55vw, 1.32rem);
  letter-spacing: 0.08em;
  line-height: 1.95;
}

body.museum-page .museum-tour-invitation {
  max-width: 31ch;
  margin: 10px 0 0;
  color: var(--ink-muted);
  font-size: 0.76rem;
  letter-spacing: 0.035em;
  line-height: 1.7;
}

body.museum-page .museum-entrance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 25px;
  margin-top: 25px;
  font-size: 0.78rem;
}

body.museum-page .museum-entrance > a,
body.museum-page #tour-watch,
body.museum-page .catalog-watch {
  color: var(--ink-secondary);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

body.museum-page .museum-entrance > a:hover,
body.museum-page #tour-watch:hover,
body.museum-page .catalog-watch:hover {
  color: var(--accent-hover);
  text-decoration-color: currentColor;
}

body.museum-page .museum-button,
body.museum-page .artwork-play-label,
body.museum-page .catalog-play-label,
body.museum-page .tour-arrows button,
body.museum-page .now-playing button {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  background: rgba(var(--paper-rgb), 0.78);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 0.76rem;
  letter-spacing: 0.055em;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

body.museum-page .museum-button {
  display: inline-flex;
  min-width: 176px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 16px;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--museum-button-ink);
}

body.museum-page .museum-button:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

body.museum-page .museum-entrance-note {
  position: absolute;
  z-index: 4;
  top: calc(var(--nav-height) + 24px);
  right: var(--museum-gutter);
  display: grid;
  gap: 2px;
  color: var(--ink-muted);
  font-family: var(--f-sans);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-align: right;
  text-transform: uppercase;
  pointer-events: none;
}

body.museum-page .tour-caption {
  position: relative;
  z-index: 5;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: 56ch;
  min-width: 0;
  justify-self: center;
  padding: 13px 17px 14px;
  border: 1px solid var(--museum-hud-border);
  border-left: 2px solid var(--museum-brass);
  background: linear-gradient(135deg, rgba(var(--museum-hud-rgb), 0.97), rgba(var(--museum-hud-rgb), 0.93));
  box-shadow: 0 10px 30px rgba(35, 27, 19, 0.16);
  color: var(--ink);
  text-align: center;
  pointer-events: auto;
}

body.museum-page .tour-caption-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 0 0 4px;
  color: var(--accent);
  font-family: var(--f-sans);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
}

body.museum-page #tour-title {
  max-width: 50ch;
  margin: 0 auto;
  color: var(--ink);
  font-family: var(--f-jp);
  font-size: clamp(1.02rem, 1.65vw, 1.3rem);
  font-weight: 500;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

body.museum-page #tour-description {
  max-width: 54ch;
  margin: 5px auto 0;
  color: var(--ink-secondary);
  font-size: 0.76rem;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

body.museum-page #tour-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-family: var(--f-sans);
  font-size: 0.69rem;
}

body.museum-page .tour-controls {
  position: relative;
  z-index: 6;
  display: grid;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  justify-items: end;
  gap: 13px;
  width: min(100%, 340px);
  min-width: 0;
  padding: 9px 12px 10px;
  border: 1px solid var(--museum-hud-border);
  background: linear-gradient(135deg, rgba(var(--museum-hud-rgb), 0.97), rgba(var(--museum-hud-rgb), 0.93));
  box-shadow: 0 10px 30px rgba(35, 27, 19, 0.16);
  pointer-events: auto;
}

body.museum-page .tour-route {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 8px 10px;
  min-width: 0;
  width: 100%;
}

body.museum-page .tour-arrows {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

body.museum-page .tour-arrows button {
  display: inline-grid;
  width: 46px;
  min-width: 46px;
  place-items: center;
  padding: 0;
  border-color: var(--museum-brass-soft);
  background: rgba(var(--paper-rgb), 0.62);
  color: var(--accent-hover);
  font-size: 1.12rem;
}

body.museum-page .tour-arrows button:hover,
body.museum-page .artwork-play:hover .artwork-play-label,
body.museum-page .catalog-play:hover .catalog-play-label,
body.museum-page .now-playing button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--museum-button-ink);
}

body.museum-page #tour-sparkles-toggle {
  width: auto;
  min-width: 106px;
  min-height: 44px;
  padding: 0 8px;
  border-color: transparent;
  background: transparent;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

body.museum-page .tour-scroll-note {
  color: var(--ink-muted);
  font-family: var(--f-sans);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.museum-page .tour-select-label {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: var(--ink-muted);
  font-family: var(--f-sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-transform: uppercase;
}

body.museum-page .tour-select-label > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.museum-page #tour-room-select,
body.museum-page #tour-work-select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 7px 27px 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(var(--museum-hud-rgb), 0.97);
  color: var(--ink);
  font-family: var(--f-jp);
  font-size: 0.73rem;
  line-height: 1.35;
  appearance: auto;
}

body.museum-page #tour-room-select:hover,
body.museum-page #tour-work-select:hover {
  border-color: var(--accent);
}

body.museum-page #tour-room-select option,
body.museum-page #tour-work-select option {
  background: var(--surface-raised);
  color: var(--ink);
}

body.museum-page .tour-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(72px, 0.95fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  color: var(--ink-muted);
  font-family: var(--f-sans);
  font-size: 0.59rem;
  letter-spacing: 0.035em;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

body.museum-page #tour-progress {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.museum-page #tour-progress-bar {
  display: block;
  width: 100%;
  min-width: 0;
  height: 5px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--line);
  color: var(--accent);
  accent-color: var(--accent);
  appearance: none;
}

body.museum-page #tour-progress-bar::-webkit-progress-bar {
  background: var(--line);
}

body.museum-page #tour-progress-bar::-webkit-progress-value {
  background: var(--accent);
}

body.museum-page #tour-progress-bar::-moz-progress-bar {
  background: var(--accent);
}

body.museum-page .tour-rest {
  position: relative;
  z-index: 5;
  display: grid;
  grid-column: 1;
  grid-row: 1;
  align-content: center;
  justify-items: start;
  gap: 13px;
  width: calc(100% - 2 * var(--museum-gutter));
  max-width: 44rem;
  min-width: 0;
  margin: auto;
  padding: clamp(21px, 3.5vw, 39px) clamp(20px, 4vw, 46px);
  border: 1px solid var(--museum-hud-border);
  background:
    linear-gradient(135deg, rgba(var(--museum-hud-rgb), 0.93), rgba(var(--museum-hud-rgb), 0.84));
  color: var(--ink);
  pointer-events: auto;
}

body.museum-page .tour-rest::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  content: "";
  pointer-events: none;
}

body.museum-page .tour-rest .museum-eyebrow {
  margin: 0;
  font-size: 0.62rem;
}

body.museum-page .tour-rest h2 {
  max-width: 20ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--f-jp);
  font-size: clamp(1.55rem, 3.1vw, 2.45rem);
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 1.45;
}

body.museum-page #tour-rest-copy {
  max-width: 46ch;
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.86rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

body.museum-page #tour-continue {
  position: relative;
  z-index: 1;
  min-height: 44px;
  margin-top: 3px;
}

body.museum-page .tour-rest-note {
  color: var(--ink-muted);
  font-family: var(--f-sans);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}

body.museum-page #museum-status,
body.museum-page .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* The framed surface itself is positioned and transformed by CSS3DRenderer. */
body.museum-page .exhibit-poster {
  position: relative;
  container-type: inline-size;
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-rows: auto 1fr auto auto;
  align-content: stretch;
  justify-items: start;
  overflow: hidden;
  padding: clamp(20px, 4vw, 58px);
  border: 1px solid rgba(148, 116, 66, 0.72);
  background:
    radial-gradient(ellipse at 52% 48%, rgba(195, 165, 108, 0.15), transparent 45%),
    repeating-linear-gradient(0deg, rgba(83, 67, 46, 0.025) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, #f5f0e5, #e8dfcf 62%, #f2eadb);
  box-shadow: inset 0 0 0 7px rgba(255, 250, 239, 0.44), inset 0 0 0 8px rgba(145, 111, 60, 0.34), var(--museum-shadow);
  color: #30271e;
  pointer-events: auto;
}

body.museum-page .exhibit-poster::before,
body.museum-page .exhibit-poster::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

body.museum-page .exhibit-poster::before {
  z-index: 2;
  inset: 16px;
  border: 1px solid rgba(139, 105, 54, 0.22);
}

body.museum-page .exhibit-poster::after {
  top: 50%;
  left: 50%;
  width: min(42%, 420px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(157, 125, 72, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 44%, rgba(160, 129, 79, 0.17) 44.2% 44.6%, transparent 44.8% 60%, rgba(160, 129, 79, 0.2) 60.2% 60.6%, transparent 60.8%),
    repeating-conic-gradient(from -1deg, rgba(129, 101, 60, 0.13) 0deg 0.35deg, transparent 0.4deg 11deg);
  mask-image: radial-gradient(circle, #000 0 54%, transparent 74%);
}

body.museum-page .exhibit-poster .artwork-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

body.museum-page .exhibit-poster.has-artwork-image::after {
  display: none;
}

body.museum-page .exhibit-poster.has-artwork-image > .artwork-label,
body.museum-page .exhibit-poster.has-artwork-image > .artwork-ornament,
body.museum-page .exhibit-poster.has-artwork-image > #artwork-title,
body.museum-page .exhibit-poster.has-artwork-image > .artwork-edition {
  display: none;
}

body.museum-page .artwork-label,
body.museum-page #artwork-title,
body.museum-page .artwork-play,
body.museum-page .artwork-edition,
body.museum-page .artwork-ornament {
  position: relative;
  z-index: 1;
}

body.museum-page .artwork-label {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  color: #725936;
  font-family: var(--f-sans);
  font-size: clamp(0.58rem, 1.05vw, 0.76rem);
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

body.museum-page #artwork-number {
  font-variant-numeric: tabular-nums;
}

body.museum-page .artwork-ornament {
  position: absolute;
  inset: 22% 28% 27%;
  border: 1px solid rgba(136, 105, 60, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

body.museum-page .artwork-ornament i {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(136, 105, 60, 0.2);
  border-radius: 50%;
}

body.museum-page .artwork-ornament i:nth-child(2) {
  inset: 24%;
  border-color: rgba(136, 105, 60, 0.3);
}

body.museum-page .artwork-ornament i:nth-child(3) {
  inset: 42%;
  background: radial-gradient(circle, rgba(144, 112, 64, 0.28), transparent 70%);
}

body.museum-page #artwork-title {
  align-self: end;
  max-width: 100%;
  margin: 0 0 62px;
  color: #30271e;
  font-family: var(--f-jp);
  font-size: clamp(0.8rem, 3.8cqw, 2.3rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

body.museum-page .artwork-play,
body.museum-page .catalog-play {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

body.museum-page .artwork-play[aria-pressed="true"],
body.museum-page .catalog-play[aria-pressed="true"] {
  pointer-events: none;
}

body.museum-page .artwork-play:focus-visible,
body.museum-page .catalog-play:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}

body.museum-page .artwork-play-label {
  position: absolute;
  bottom: clamp(18px, 3vw, 32px);
  left: clamp(18px, 3vw, 32px);
  display: inline-flex;
  min-width: 160px;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-color: rgba(133, 101, 55, 0.7);
  background: rgba(248, 242, 230, 0.82);
  color: #463723;
}

body.museum-page .artwork-edition {
  position: absolute;
  right: clamp(20px, 4vw, 58px);
  bottom: clamp(22px, 4vw, 60px);
  color: #806947;
  font-family: var(--f-sans);
  font-size: clamp(0.5rem, 0.8vw, 0.62rem);
  letter-spacing: 0.18em;
  text-align: right;
}

@container (max-width: 320px) {
  body.museum-page #artwork-title,
  body.museum-page .artwork-edition {
    display: none;
  }

  body.museum-page .artwork-play-label {
    left: 50%;
    bottom: 50%;
    min-width: 0;
    max-width: calc(100% - 20px);
    padding: 7px 12px;
    transform: translate(-50%, 50%);
    white-space: nowrap;
    font-size: 0.65rem;
  }
}

body.museum-page .tour-player-slot:not(:empty) {
  position: absolute;
  z-index: 8;
  inset: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #080706;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.36);
}

body.museum-page .tour-player-slot iframe,
body.museum-page .catalog-player-slot iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #080706;
}

/* Archive typography and controls echo an exhibition index rather than homepage cards. */
body.museum-page .museum-catalog {
  position: relative;
  padding: clamp(74px, 10vw, 148px) var(--museum-gutter) clamp(88px, 10vw, 150px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.23), transparent 260px),
    var(--bg);
  scroll-margin-top: calc(var(--nav-height) + 14px);
}

:root[data-theme="dark"] body.museum-page .museum-catalog {
  background:
    linear-gradient(180deg, rgba(194, 158, 96, 0.045), transparent 260px),
    var(--bg);
}

body.museum-page .museum-catalog-inner {
  width: min(100%, 1440px);
  margin-inline: auto;
}

body.museum-page .collection-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px 60px;
  margin-bottom: clamp(38px, 6vw, 82px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-strong);
}

body.museum-page .collection-head .museum-eyebrow {
  margin-bottom: 9px;
}

body.museum-page #collection-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--f-jp);
  font-size: clamp(2rem, 4.7vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 1.35;
}

body.museum-page .collection-head > p {
  max-width: 37rem;
  margin: 0 0 5px;
  color: var(--ink-secondary);
  font-size: 0.87rem;
  line-height: 1.9;
}

body.museum-page .catalog-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(230px, 0.8fr);
  align-items: end;
  gap: 18px 24px;
  margin: 0 0 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

body.museum-page .catalog-search-label,
body.museum-page .catalog-category-label {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: var(--ink-muted);
  font-family: var(--f-sans);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

body.museum-page #catalog-search,
body.museum-page #catalog-category {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(var(--paper-rgb), 0.56);
  color: var(--ink);
  font-family: var(--f-jp);
  font-size: 0.88rem;
  letter-spacing: 0.015em;
}

body.museum-page #catalog-search::placeholder {
  color: var(--ink-muted);
  opacity: 0.84;
}

body.museum-page #catalog-search:hover,
body.museum-page #catalog-category:hover {
  border-color: var(--accent);
}

body.museum-page #catalog-category option {
  background: var(--surface-raised);
  color: var(--ink);
}

body.museum-page .catalog-count {
  margin: 14px 0 24px;
  color: var(--ink-muted);
  font-family: var(--f-sans);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  font-variant-numeric: tabular-nums;
}

body.museum-page .catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px) clamp(22px, 3vw, 44px);
  align-items: start;
}

body.museum-page .catalog-card {
  --catalog-accent: #92744e;
  --catalog-wash: rgba(146, 116, 78, 0.14);
  min-width: 0;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

body.museum-page .catalog-card[data-cover-tone="opera"] {
  --catalog-accent: #996449;
  --catalog-wash: rgba(153, 100, 73, 0.16);
}

body.museum-page .catalog-card[data-cover-tone="collab"] {
  --catalog-accent: #6c7864;
  --catalog-wash: rgba(108, 120, 100, 0.16);
}

body.museum-page .catalog-card[data-cover-tone="solo"] {
  --catalog-accent: #7d6c90;
  --catalog-wash: rgba(125, 108, 144, 0.16);
}

body.museum-page .catalog-card[data-cover-tone="moe"] {
  --catalog-accent: #9b7180;
  --catalog-wash: rgba(155, 113, 128, 0.16);
}

body.museum-page .catalog-card[data-cover-tone="remaster"] {
  --catalog-accent: #7d807c;
  --catalog-wash: rgba(125, 128, 124, 0.18);
}

body.museum-page .catalog-card[data-cover-tone="support"] {
  --catalog-accent: #647c83;
  --catalog-wash: rgba(100, 124, 131, 0.16);
}

body.museum-page .catalog-card[data-cover-tone="arrange"] {
  --catalog-accent: #a07d4c;
  --catalog-wash: rgba(160, 125, 76, 0.17);
}

:root[data-theme="dark"] body.museum-page .catalog-card[data-cover-tone] {
  --catalog-wash: rgba(205, 175, 127, 0.15);
}

body.museum-page .catalog-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--museum-brass-soft);
  background:
    radial-gradient(ellipse at 50% 42%, var(--catalog-wash), transparent 64%),
    linear-gradient(140deg, #f0e8d9, #dcd1bf);
  box-shadow: inset 0 0 0 5px rgba(255, 250, 240, 0.33), 0 12px 28px rgba(48, 38, 25, 0.12);
}

:root[data-theme="dark"] body.museum-page .catalog-cover {
  background:
    radial-gradient(ellipse at 50% 42%, var(--catalog-wash), transparent 64%),
    linear-gradient(140deg, #3a3228, #26211b);
  box-shadow: inset 0 0 0 5px rgba(242, 225, 194, 0.045), 0 14px 32px rgba(0, 0, 0, 0.24);
}

body.museum-page .catalog-cover::before,
body.museum-page .catalog-cover::after {
  position: absolute;
  z-index: 4;
  inset: 12px;
  border: 1px solid rgba(121, 94, 57, 0.28);
  content: "";
  pointer-events: none;
}

body.museum-page .catalog-cover::after {
  inset: 18px;
  border-color: rgba(121, 94, 57, 0.14);
}

:root[data-theme="dark"] body.museum-page .catalog-cover::before {
  border-color: rgba(210, 178, 124, 0.32);
}

:root[data-theme="dark"] body.museum-page .catalog-cover::after {
  border-color: rgba(210, 178, 124, 0.18);
}

body.museum-page .catalog-cover-art {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3), transparent 38%),
    repeating-linear-gradient(128deg, transparent 0 28px, rgba(255, 255, 255, 0.055) 29px, transparent 30px 55px);
  color: var(--catalog-accent);
}

body.museum-page .catalog-thumbnail {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

body.museum-page .catalog-cover-art::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid currentColor;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 32%, currentColor 32.5% 33%, transparent 33.5% 57%, currentColor 57.5% 58%, transparent 58.5%),
    repeating-conic-gradient(from 1deg, currentColor 0deg 0.35deg, transparent 0.45deg 9deg);
  opacity: 0.28;
  content: "";
  mask-image: radial-gradient(circle, #000 0 61%, transparent 76%);
}

body.museum-page .catalog-cover-art::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.48;
}

body.museum-page .catalog-cover-number,
body.museum-page .catalog-cover-label {
  position: absolute;
  z-index: 2;
  color: var(--ink-secondary);
  font-family: var(--f-sans);
  line-height: 1.4;
  text-transform: uppercase;
}

body.museum-page .catalog-cover-number {
  bottom: 18px;
  left: 22px;
  font-size: clamp(1.45rem, 2.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.07em;
  font-variant-numeric: tabular-nums;
}

body.museum-page .catalog-cover-label {
  top: 19px;
  right: 22px;
  font-size: 0.53rem;
  letter-spacing: 0.14em;
  text-align: right;
}

body.museum-page .catalog-play-label {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-color: rgba(118, 89, 48, 0.52);
  background: rgba(var(--paper-rgb), 0.86);
  color: var(--ink);
  font-size: 0.65rem;
  letter-spacing: 0.025em;
}

body.museum-page .catalog-player-slot:not(:empty) {
  position: relative;
  z-index: 4;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #080706;
}

body.museum-page .catalog-info {
  padding: 18px 3px 0;
}

body.museum-page .catalog-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px 12px;
  margin: 0 0 9px;
  color: var(--ink-muted);
  font-family: var(--f-sans);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  line-height: 1.65;
}

body.museum-page .catalog-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--f-jp);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  font-weight: 500;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

body.museum-page .catalog-description {
  margin: 8px 0 0;
  color: var(--ink-secondary);
  font-size: 0.78rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

body.museum-page .catalog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

body.museum-page .catalog-tags span {
  padding: 3px 8px;
  border: 1px solid var(--line);
  color: var(--ink-muted);
  font-family: var(--f-sans);
  font-size: 0.58rem;
  letter-spacing: 0.045em;
  line-height: 1.5;
}

body.museum-page .catalog-comment {
  margin-top: 12px;
  color: var(--ink-secondary);
  font-size: 0.75rem;
}

body.museum-page .catalog-comment summary {
  width: fit-content;
  color: var(--ink-muted);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}

body.museum-page .catalog-comment p {
  margin: 8px 0 0;
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  overflow-wrap: anywhere;
}

body.museum-page .catalog-watch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  font-family: var(--f-sans);
  font-size: 0.67rem;
}

body.museum-page .catalog-empty {
  margin: 30px 0;
  padding: 25px 0;
  border-block: 1px solid var(--line);
  color: var(--ink-secondary);
  text-align: center;
}

body.museum-page .catalog-more {
  display: flex;
  width: fit-content;
  min-width: 176px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 54px auto 0;
  padding: 9px 15px;
  background: transparent;
  color: var(--ink-secondary);
}

body.museum-page .catalog-more:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

body.museum-page .now-playing {
  position: fixed;
  z-index: 80;
  right: 16px;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 16px;
  display: flex;
  width: min(820px, calc(100% - 32px));
  align-items: center;
  gap: 8px;
  margin-inline: auto;
  padding: 8px 10px 8px 18px;
  border: 1px solid var(--line-strong);
  background: rgba(var(--paper-rgb), 0.96);
  box-shadow: 0 14px 42px rgba(32, 25, 18, 0.18);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

body.museum-page .now-playing > div {
  min-width: 0;
  flex: 1 1 auto;
}

body.museum-page .now-playing > div > span {
  color: var(--accent);
  font-family: var(--f-sans);
  font-size: 0.54rem;
  letter-spacing: 0.15em;
}

body.museum-page #now-playing-title {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.77rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.museum-page .now-playing button {
  flex: none;
  min-height: 40px;
  padding: 7px 11px;
  background: transparent;
  font-size: 0.63rem;
  letter-spacing: 0.02em;
}

body.museum-page .museum-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 22px 40px;
  padding: 48px var(--museum-gutter) 25px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

body.museum-page .museum-footer-brand {
  color: var(--ink);
  font-family: var(--f-display-en);
  font-size: 2.5rem;
  line-height: 1;
}

body.museum-page .museum-footer p {
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: 0.72rem;
}

body.museum-page .museum-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
  color: var(--ink-secondary);
  font-size: 0.73rem;
}

body.museum-page .museum-footer nav a:hover {
  color: var(--accent-hover);
}

body.museum-page .museum-footer small {
  grid-column: 1 / -1;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-family: var(--f-sans);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

@media (max-width: 1000px) {
  body.museum-page .tour-hud {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  body.museum-page .tour-caption {
    grid-column: 1;
  }

  body.museum-page .tour-controls {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
  }

  body.museum-page .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 26px;
  }
}

@media (max-width: 700px) {
  body.museum-page .tour-hud {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  body.museum-page .museum-stage {
    min-height: 500px;
  }

  body.museum-page .museum-stage::before {
    inset: 14% 9% 0;
    box-shadow: 0 0 0 13px rgba(255, 255, 255, 0.03), 0 0 0 14px var(--museum-brass-soft), 0 0 0 33px rgba(255, 255, 255, 0.02), 0 0 0 34px rgba(163, 131, 80, 0.13);
  }

  body.museum-page .tour-intro {
    top: calc(var(--nav-height) + 31px);
    left: var(--museum-gutter);
    width: min(31rem, calc(100% - 2 * var(--museum-gutter)));
  }

  body.museum-page #museum-title {
    font-size: clamp(4rem, 15.5vw, 6.5rem);
  }

  body.museum-page .museum-name {
    margin-top: 19px;
  }

  body.museum-page .museum-lead {
    margin-top: 11px;
    font-size: 0.98rem;
  }

  body.museum-page .tour-rest {
    gap: 8px;
    padding: 18px 19px;
  }

  body.museum-page .tour-rest h2 {
    font-size: clamp(1.3rem, 5.7vw, 1.95rem);
    line-height: 1.34;
  }

  body.museum-page #tour-rest-copy {
    font-size: 0.74rem;
    line-height: 1.58;
  }

  body.museum-page .tour-rest-note {
    font-size: 0.54rem;
  }

  body.museum-page .museum-tour-invitation {
    max-width: 28ch;
    margin-top: 7px;
    font-size: 0.7rem;
    line-height: 1.55;
  }

  body.museum-page .museum-entrance {
    gap: 11px 18px;
    margin-top: 16px;
  }

  body.museum-page .museum-entrance-note {
    top: auto;
    right: var(--museum-gutter);
    bottom: 145px;
    font-size: 0.52rem;
  }

  body.museum-page .tour-caption {
    grid-column: 1;
    grid-row: 1;
    padding-inline: 11px;
  }

  body.museum-page .tour-caption-meta {
    margin-bottom: 3px;
    font-size: 0.56rem;
  }

  body.museum-page #tour-title {
    font-size: 0.99rem;
    line-height: 1.38;
  }

  body.museum-page #tour-description {
    max-width: 58ch;
    margin-top: 3px;
    font-size: 0.69rem;
    line-height: 1.5;
  }

  body.museum-page #tour-watch {
    margin-top: 5px;
    font-size: 0.63rem;
  }

  body.museum-page .tour-controls {
    grid-column: 1;
    grid-row: 2;
    justify-items: stretch;
    gap: 5px;
    width: 100%;
  }

  body.museum-page .tour-route {
    gap: 7px;
  }

  body.museum-page .tour-select-label {
    font-size: 0.54rem;
  }

  body.museum-page #tour-room-select,
  body.museum-page #tour-work-select {
    padding-inline: 8px 23px;
    font-size: 0.67rem;
  }

  body.museum-page .tour-progress-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(56px, 0.9fr);
    gap: 8px;
    font-size: 0.55rem;
  }

  body.museum-page .tour-arrows {
    justify-content: space-between;
  }

  body.museum-page .tour-arrows button {
    width: 42px;
    min-width: 42px;
    min-height: 40px;
  }

  body.museum-page .tour-scroll-note {
    font-size: 0.54rem;
  }

  body.museum-page .catalog-tools {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  body.museum-page .collection-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
  }

  body.museum-page .collection-head > p {
    font-size: 0.8rem;
  }
}

@media (max-width: 430px) {
  body.museum-page .museum-stage {
    min-height: 470px;
  }

  body.museum-page .museum-eyebrow {
    margin-bottom: 11px;
    font-size: 0.59rem;
  }

  body.museum-page #museum-title {
    font-size: clamp(3.65rem, 16vw, 4.9rem);
  }

  body.museum-page .museum-name {
    font-size: 0.73rem;
    letter-spacing: 0.12em;
  }

  body.museum-page .museum-lead {
    font-size: 0.88rem;
  }

  body.museum-page .tour-rest {
    gap: 7px;
    padding: 15px 16px;
  }

  body.museum-page .tour-rest h2 {
    font-size: clamp(1.2rem, 5.8vw, 1.55rem);
  }

  body.museum-page #tour-rest-copy {
    font-size: 0.68rem;
    line-height: 1.5;
  }

  body.museum-page .museum-entrance {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    margin-top: 14px;
    font-size: 0.71rem;
  }

  body.museum-page .museum-button {
    min-height: 42px;
  }

  body.museum-page .tour-controls {
    gap: 3px;
  }

  body.museum-page .tour-route {
    gap: 5px;
  }

  body.museum-page #tour-room-select,
  body.museum-page #tour-work-select {
    padding-inline: 7px 20px;
    font-size: 0.64rem;
  }

  body.museum-page .catalog-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 37px;
  }

  body.museum-page .catalog-cover-number {
    bottom: 14px;
    left: 17px;
  }

  body.museum-page .catalog-cover-label {
    top: 15px;
    right: 17px;
  }

  body.museum-page .catalog-play-label {
    right: 12px;
    bottom: 11px;
    min-height: 40px;
    padding-inline: 9px;
    font-size: 0.61rem;
  }

  body.museum-page .now-playing {
    right: 8px;
    left: 8px;
    width: calc(100% - 16px);
    gap: 5px;
    padding: 7px;
  }

  body.museum-page .now-playing button {
    min-height: 38px;
    padding-inline: 7px;
    font-size: 0.58rem;
  }

  body.museum-page .museum-footer {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 19px;
    padding-top: 36px;
  }

  body.museum-page .museum-footer nav {
    justify-content: flex-start;
  }
}

@media (max-height: 620px) {
  body.museum-page .museum-stage {
    min-height: 0;
  }

  body.museum-page .tour-intro {
    top: calc(var(--nav-height) + 12px);
  }

  body.museum-page #museum-title {
    font-size: clamp(3.4rem, 9vh, 5.8rem);
  }

  body.museum-page .museum-name {
    margin-top: 13px;
  }

  body.museum-page .museum-lead {
    margin-top: 8px;
    font-size: 0.9rem;
  }

  body.museum-page .museum-entrance {
    margin-top: 12px;
  }

  body.museum-page .museum-tour-invitation {
    display: none;
  }

  body.museum-page .museum-entrance-note {
    display: none;
  }

  body.museum-page .tour-controls {
    gap: 4px;
  }
}

@media (max-height: 640px) and (min-width: 560px) {
  html.museum-enhanced body.museum-page .museum-stage {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 18px;
    padding-top: calc(var(--nav-height) + 14px);
    padding-bottom: 16px;
  }

  body.museum-page .museum-art-field {
    align-self: stretch;
    margin-right: 0;
  }

  body.museum-page .tour-hud {
    display: contents;
  }

  body.museum-page .tour-intro {
    width: 45%;
  }

  body.museum-page .tour-caption {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
    width: auto;
    max-width: none;
    margin-left: var(--museum-gutter);
    padding: 8px 10px;
  }

  body.museum-page #tour-title {
    font-size: 0.86rem;
    line-height: 1.4;
  }

  body.museum-page .tour-caption-meta {
    font-size: 0.55rem;
  }

  body.museum-page #tour-description {
    font-size: 0.67rem;
    line-height: 1.5;
  }

  body.museum-page .tour-controls {
    grid-column: 2;
    grid-row: 1 / 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: end;
    align-self: end;
    justify-self: stretch;
    gap: 6px 10px;
    width: auto;
    margin-right: var(--museum-gutter);
    padding: 7px 9px;
  }

  body.museum-page .tour-route {
    grid-column: 1;
    grid-row: 1;
    gap: 6px;
  }

  body.museum-page .tour-select-label {
    font-size: 0.52rem;
  }

  body.museum-page #tour-room-select,
  body.museum-page #tour-work-select {
    min-height: 44px;
    padding-inline: 7px 20px;
    font-size: 0.64rem;
  }

  body.museum-page .tour-progress-row {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    font-size: 0.52rem;
  }

  body.museum-page #tour-progress-bar {
    height: 4px;
  }

  body.museum-page .tour-arrows {
    grid-column: 1;
    grid-row: 3;
    gap: 3px;
  }

  body.museum-page .tour-arrows button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  body.museum-page .tour-scroll-note {
    display: none;
  }

  body.museum-page .tour-rest {
    gap: 8px;
    padding: 16px 19px;
  }

  body.museum-page .tour-rest h2 {
    font-size: clamp(1.25rem, 3.1vw, 1.7rem);
    line-height: 1.32;
  }

  body.museum-page #tour-rest-copy {
    font-size: 0.68rem;
    line-height: 1.55;
  }

  body.museum-page .tour-rest-note {
    font-size: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-museum-load] body.museum-page .museum-loading {
    transition: none;
  }
  body.museum-page .museum-loading-emblem span,
  body.museum-page .museum-loading-light::after {
    animation: none !important;
  }
  body.museum-page *,
  body.museum-page *::before,
  body.museum-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
