/* ============================================================
   THE DARK GALLERY : Studio Peter Varga, fine art lane
   A nocturnal museum. Near-black plaster void, monumental type,
   one confined amber accent: the raking light itself.
   Fonts: Fraunces (display, SIL OFL) + Manrope (body, SIL OFL),
   self-hosted. No CDN at runtime.
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}

:root {
  /* palette: SYNTHESIS R6 anchors pushed dark, amber confined */
  --void: #0b0908;
  --wall: #14110f;
  --panel: #1a1613;
  --plaster: #e7e4df;
  --stone: #a9a49c;
  --umber: #6b6561;
  --amber: #c98f4a;
  --amber-dim: rgba(201, 143, 74, 0.14);
  --hairline: rgba(231, 228, 223, 0.14);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-glide: cubic-bezier(0.22, 1, 0.36, 1);

  --measure: 34rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --room-pad: clamp(5rem, 12vh, 9rem);
}

/* ---------- reset-ish ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--void);
  color: var(--plaster);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0 0 1.1em;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: inherit;
}
figure {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
::selection {
  background: var(--amber);
  color: var(--void);
}
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

@view-transition {
  navigation: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  z-index: 200;
  background: var(--amber);
  color: var(--void);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.skip-link:focus {
  left: 0.75rem;
}

/* ---------- type registers ---------- */
.display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 40, "WONK" 0;
  font-weight: 330;
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.display em,
.lantern {
  font-style: italic;
  font-variation-settings: "SOFT" 70, "WONK" 1;
  color: var(--amber);
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
}
.wall-text {
  color: var(--stone);
  max-width: var(--measure);
}
.wall-text strong {
  color: var(--plaster);
  font-weight: 500;
}
.nowrap {
  white-space: nowrap;
}

/* plaque: the museum label grammar, reused everywhere */
.plaque {
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--hairline);
  min-width: 9rem;
}
.plaque .p-title {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "SOFT" 70, "WONK" 1;
  font-size: 1.05rem;
  color: var(--plaster);
}
.plaque .p-meta {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--umber);
}
.plaque .p-meta .sold {
  color: var(--amber);
}
.plaque .p-inquire {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  transition: color 0.22s var(--ease-out);
}
.plaque .p-inquire:hover,
.plaque .p-inquire:focus-visible {
  color: var(--amber);
}

/* the beam: a hairline of light that draws across on reveal */
.beam {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--amber), rgba(201, 143, 74, 0));
  transform-origin: left center;
}
html.js-anim .beam[data-reveal] {
  transform: scaleX(0);
  transition: transform 1.1s var(--ease-glide);
  transition-delay: var(--d, 0s);
}
html.js-anim .beam[data-reveal].in {
  transform: scaleX(1);
}

/* ---------- entrance system: IO one-shot, frame-0 complete ---------- */
html.js-anim [data-reveal]:not(.beam):not(.axis) {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out),
    filter 0.7s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.js-anim [data-reveal]:not(.beam).in {
  opacity: 1;
  filter: none;
  transform: none;
}

/* ---------- header ---------- */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  /* above .mobile-menu (110): .site-head is its own stacking context, so the
     toggle's own z-index:120 never competes with the overlay - only the
     header's root value does. Below .lightbox (160) so the lantern view
     still paints over the header. */
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  transition: background-color 0.28s var(--ease-out);
}
.site-head.solid {
  background: rgba(11, 9, 8, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 228, 223, 0.06);
}
.brand img {
  width: clamp(130px, 14vw, 175px);
  height: auto;
}
.head-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.4rem);
}
.head-nav a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--stone);
  transition: color 0.2s var(--ease-out);
}
.head-nav a:hover,
.head-nav a:focus-visible {
  color: var(--plaster);
}
.head-nav a.cta {
  color: var(--void);
  background: var(--amber);
  padding: 0.65rem 1.15rem;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.head-nav a.cta:hover,
.head-nav a.cta:focus-visible {
  background: var(--plaster);
  color: var(--void);
}
.menu-toggle {
  display: none;
  z-index: 120;
  width: 44px;
  height: 44px;
  position: relative;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--plaster);
  transition: transform 0.25s var(--ease-out), opacity 0.2s var(--ease-out);
}
.menu-toggle::before {
  top: 16px;
}
.menu-toggle span {
  top: 21.5px;
}
.menu-toggle::after {
  top: 27px;
}
.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(5.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-5.5px) rotate(-45deg);
}
.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

/* mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(11, 9, 8, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  gap: 0.35rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.28s var(--ease-out), visibility 0s linear 0.28s;
}
.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 40, "WONK" 0;
  font-size: clamp(1.7rem, 7.5vw, 2.6rem);
  line-height: 1.35;
  color: var(--plaster);
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}
.mobile-menu a .rn {
  font-size: 0.7rem;
  font-family: var(--font-body);
  letter-spacing: 0.26em;
  color: var(--amber);
}
.mobile-menu .mm-contact {
  margin-top: 1.6rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
}

/* ---------- floor guide (desktop scrollspy) ---------- */
.floor-guide {
  position: fixed;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: none;
  flex-direction: column;
  gap: 0.9rem;
}
.floor-guide a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--umber);
  transition: color 0.2s var(--ease-out);
}
.floor-guide a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  transition: background-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.floor-guide a.here {
  color: var(--amber);
}
.floor-guide a.here::before {
  box-shadow: 0 0 10px 2px var(--amber-dim);
}
.floor-guide a:hover {
  color: var(--stone);
}

/* ---------- arrival: the light room ---------- */
.arrival {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: clip;
  background: var(--void) url("../plates/wall-macro-near-black-01.webp") center /
    cover no-repeat;
  isolation: isolate;
}
.arrival::after {
  /* dust in the beam, ambient, purely decorative */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: url("../plates/dust-motes-light-beam-01.webp") center / cover
    no-repeat;
  mix-blend-mode: screen;
  opacity: 0.5;
  pointer-events: none;
}
html.js-anim .arrival::after {
  animation: dustdrift 26s var(--ease-out) infinite alternate;
}
@keyframes dustdrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.38;
  }
  to {
    transform: translate3d(-2.5%, -1.5%, 0) scale(1.06);
    opacity: 0.6;
  }
}
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-art {
  position: absolute;
  right: clamp(0rem, 6vw, 9rem);
  top: 50%;
  transform: translateY(-50%);
  height: min(78svh, 900px);
  width: auto;
  max-width: min(58vw, 640px);
  object-fit: contain;
  filter: brightness(0.92) contrast(1.04);
}
/* static raking treatment so the piece reads lit even with no JS/WebGL */
.hero-light {
  position: absolute;
  right: clamp(0rem, 6vw, 9rem);
  top: 50%;
  transform: translateY(-50%);
  height: min(78svh, 900px);
  aspect-ratio: 784 / 1000;
  max-width: min(58vw, 640px);
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
      120% 90% at 18% 30%,
      rgba(201, 143, 74, 0.28),
      rgba(201, 143, 74, 0.05) 45%,
      rgba(11, 9, 8, 0.55) 100%
    );
  mix-blend-mode: soft-light;
}
#light-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.28s var(--ease-out);
}
#light-canvas.live {
  opacity: 1;
}
.arrival.canvas-live .hero-art,
.arrival.canvas-live .hero-light {
  visibility: hidden;
}
.hero-copy {
  position: relative;
  z-index: 4;
  padding: 0 var(--gutter) clamp(3.2rem, 9vh, 6rem);
  max-width: 62rem;
}
.hero-copy .eyebrow {
  display: block;
  margin-bottom: 1.3rem;
}
.hero-copy h1 {
  font-size: clamp(2.9rem, 8.6vw, 7.6rem);
  margin-bottom: 1.6rem;
}
.hero-copy h1 .w {
  display: inline-block;
}
.hero-sub {
  max-width: 30rem;
  color: var(--stone);
  margin-bottom: 2.1rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
}
.btn {
  display: inline-block;
  padding: 0.95rem 1.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  transition: background-color 0.22s var(--ease-out), color 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out);
}
.btn-amber {
  background: var(--amber);
  color: var(--void);
}
.btn-amber:hover,
.btn-amber:focus-visible {
  background: var(--plaster);
}
.btn-ghost {
  border: 1px solid var(--hairline);
  color: var(--plaster);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--amber);
  color: var(--amber);
}
.light-hint {
  position: absolute;
  z-index: 4;
  right: var(--gutter);
  bottom: 2rem;
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--umber);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.light-hint::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 14px 3px var(--amber-dim);
}
.hint-touch,
.hint-pointer {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .hint-pointer {
    display: inline;
  }
}
@media (hover: none) {
  .hint-touch {
    display: inline;
  }
}
.hero-plaque {
  position: absolute;
  z-index: 4;
  right: var(--gutter);
  bottom: 4.2rem;
  text-align: left;
}

/* ---------- shared room scaffolding ---------- */
.room {
  position: relative;
  padding: var(--room-pad) var(--gutter);
  overflow: clip;
  isolation: isolate;
}
/* round 2: the lantern got a real flame. Core alpha 0.11 -> 0.35 in a tighter
   400px circle, so carrying the light between rooms is unmistakable. */
.room .glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 35%),
    rgba(201, 143, 74, 0.35),
    rgba(201, 143, 74, 0.07) 46%,
    transparent 72%
  );
  mix-blend-mode: screen;
}
.room > *:not(.glow) {
  position: relative;
  z-index: 1;
}
.room-head {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: clamp(2.4rem, 6vh, 4.2rem);
  max-width: 72rem;
}
.room-no {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.room-no .beam {
  flex: 0 0 clamp(3rem, 8vw, 7rem);
}
.room-title {
  font-size: clamp(2.5rem, 7.2vw, 5.8rem);
}
.room-note {
  color: var(--stone);
  max-width: var(--measure);
}
.works {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.6rem);
}
.work {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.work .frame {
  position: relative;
  background: var(--panel);
  overflow: clip;
  /* the warm rim: --rim (0..1) is set by the lantern script on the frame nearest
     the pointer; at rest it is 0 and this costs nothing */
  box-shadow: 0 0 0 1px rgba(201, 143, 74, calc(var(--rim, 0) * 0.5)),
    0 0 38px rgba(201, 143, 74, calc(var(--rim, 0) * 0.2));
  transition: box-shadow 0.3s var(--ease-out);
}
.work .frame img {
  width: 100%;
  transition: transform 0.28s var(--ease-out), filter 0.28s var(--ease-out);
}
@media (hover: hover) {
  .work:hover .frame img {
    transform: scale(1.018) translateY(-4px);
    filter: brightness(1.1);
  }
}

/* intro to the rooms */
.rooms-intro {
  background: var(--wall) url("../plates/charcoal-texture-field-01.webp") center /
    cover no-repeat;
  background-blend-mode: multiply;
}
.rooms-intro .index-list {
  list-style: none;
  margin: 2.6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0;
  border-top: 1px solid var(--hairline);
  max-width: 72rem;
}
.rooms-intro .index-list a {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 1.15rem 0.4rem;
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.22s var(--ease-out), color 0.22s var(--ease-out);
}
.rooms-intro .index-list a:hover,
.rooms-intro .index-list a:focus-visible {
  background: rgba(201, 143, 74, 0.07);
}
.rooms-intro .index-list .rn {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: var(--amber);
}
.rooms-intro .index-list .sname {
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.rooms-intro .index-list .scount {
  margin-left: auto;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--umber);
}

/* ---------- room numerals: monumental ghosted Fraunces, one per room ---------- */
.room-head {
  position: relative;
}
.room-numeral {
  position: absolute;
  z-index: -1;
  top: -0.18em;
  left: -0.06em;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 40, "WONK" 0;
  font-weight: 330;
  font-size: clamp(8rem, 13vw, 12rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(231, 228, 223, 0.05);
  pointer-events: none;
  user-select: none;
}
.room-rorschach .room-numeral,
.room-emanare .room-numeral {
  left: 50%;
  transform: translateX(-50%);
}

/* Room I Rorschach: symmetry, the mirrored hang */
.room-rorschach .works {
  grid-template-columns: repeat(2, 1fr);
  max-width: 72rem;
  margin-inline: auto;
}
.room-rorschach .room-head {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}
.room-rorschach .room-no {
  justify-content: center;
}
.room-rorschach .works .work:nth-child(odd) {
  align-items: flex-end;
  text-align: right;
}
.room-rorschach .works .work:nth-child(odd) .plaque {
  align-items: flex-end;
}
.room-rorschach .works .work img {
  max-width: 520px;
}
.room-rorschach .axis {
  position: absolute;
  left: 50%;
  top: 12%;
  bottom: 6%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--hairline) 18%,
    var(--hairline) 82%,
    transparent
  );
  z-index: 0;
}
/* the mirror axis draws itself downward, one-shot, like the beams */
html.js-anim .axis[data-reveal] {
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 1.6s var(--ease-glide) 0.2s;
}
html.js-anim .axis[data-reveal].in {
  transform: scaleY(1);
}

/* Room II Penumbra: the half-shadow */
.room-penumbra {
  background: linear-gradient(105deg, var(--void) 38%, var(--wall) 62%);
}
.room-penumbra .works {
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 44vw), 1fr));
  align-items: start;
  max-width: 84rem;
}
.room-penumbra .work:nth-child(2n) {
  margin-top: clamp(1.4rem, 4vw, 3.4rem);
}
.room-penumbra .work:nth-child(3n) .frame img {
  filter: brightness(0.78);
}
@media (hover: hover) {
  .room-penumbra .work:nth-child(3n):hover .frame img {
    filter: brightness(1.05);
  }
}

/* Room III Mammatus: the suspended hang */
.room-mammatus .works {
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 80vw), 1fr));
  align-items: start;
  max-width: 84rem;
}
.room-mammatus .work {
  border-top: 1px solid var(--hairline);
  padding-top: clamp(1.2rem, 4vh, 3rem);
}
/* the rail: one literal hanging line above the works, drops at the columns.
   Decorative stroke-draw, so a view() timeline is allowed here (ruled). */
.room-mammatus .rail {
  display: block;
  width: 100%;
  max-width: 84rem;
  height: clamp(2.6rem, 8vh, 5.5rem);
  margin-bottom: calc(-1 * clamp(1rem, 3vh, 2.2rem));
  overflow: visible;
}
.room-mammatus .rail path {
  fill: none;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.room-mammatus .rail .rail-bar {
  stroke: rgba(231, 228, 223, 0.22);
}
.room-mammatus .rail .rail-drop {
  stroke: rgba(201, 143, 74, 0.45);
}
@supports (animation-timeline: view()) {
  html.js-anim .room-mammatus .rail path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: rail-draw 1ms linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 45%;
  }
}
@keyframes rail-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@media (min-width: 1101px) {
  /* the rail replaces the per-work hairlines at the five-column hang */
  .room-mammatus .work {
    border-top: 0;
  }
}
@media (max-width: 1100px) {
  /* below five columns the drops no longer meet their works; the per-work
     hairlines carry the hang instead */
  .room-mammatus .rail {
    display: none;
  }
}
.room-mammatus .work:nth-child(2) {
  padding-top: clamp(2.8rem, 9vh, 6.5rem);
}
.room-mammatus .work:nth-child(3) {
  padding-top: clamp(2rem, 6.5vh, 4.6rem);
}
.room-mammatus .work:nth-child(4) {
  padding-top: clamp(3.4rem, 11vh, 8rem);
}
.room-mammatus .work:nth-child(5) {
  padding-top: clamp(1.6rem, 5vh, 3.6rem);
}

/* Room IV Hortobagy: the horizon. A drawn amber line runs under every frame
   (the works stand on it), the native scrollbar is replaced by a progress
   hairline, and the right edge dissolves instead of cropping mid-plaque. */
.room-hortobagy {
  background: linear-gradient(180deg, var(--void), #121009 70%, var(--void));
}
.room-hortobagy .horizon-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15rem, 21rem);
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  overflow-x: auto;
  padding-bottom: 0.4rem;
  padding-inline-end: 6rem;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--umber) transparent;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 5rem), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 5rem), transparent);
}
html:not(.no-js) .room-hortobagy .horizon-strip {
  scrollbar-width: none;
}
html:not(.no-js) .room-hortobagy .horizon-strip::-webkit-scrollbar {
  display: none;
}
.room-hortobagy .horizon-strip .work {
  scroll-snap-align: start;
  justify-content: flex-end;
  position: relative;
}
/* equalized plaques give every frame the same baseline for the horizon
   (6.4rem clears the two-line "Inquire for status" meta plus the link) */
.room-hortobagy .horizon-strip .plaque {
  height: 6.4rem;
}
.room-hortobagy .horizon-strip .work::after {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(1.2rem, 2.5vw, 2.2rem));
  right: 0;
  bottom: calc(6.4rem + 0.9rem);
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 143, 74, 0.55), rgba(201, 143, 74, 0.28));
  pointer-events: none;
}
html.js-anim .horizon-strip .work[data-reveal]::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s var(--ease-glide) calc(var(--d, 0s) + 0.2s);
}
html.js-anim .horizon-strip .work[data-reveal].in::after {
  transform: scaleX(1);
}
/* the walk, measured: an amber progress hairline in place of the scrollbar */
.room-hortobagy .h-progress {
  position: relative;
  height: 1px;
  margin-top: 1rem;
  background: rgba(231, 228, 223, 0.08);
}
.room-hortobagy .h-progress span {
  position: absolute;
  left: 0;
  top: -0.5px;
  height: 2px;
  width: 100%;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(201, 143, 74, 0.45);
  transform: scaleX(var(--prog, 0));
  transform-origin: left center;
  transition: transform 0.1s linear;
}
html.no-js .room-hortobagy .h-progress {
  display: none;
}

/* Room V Dark Matter: the void, now genuinely darker. Plaques rest dim and
   only warm when the lantern (the nearest-frame script) reaches them. */
.room-darkmatter {
  background: #050403;
}
.room-darkmatter .works {
  grid-template-columns: repeat(auto-fill, minmax(min(14rem, 44vw), 1fr));
  max-width: 84rem;
}
.room-darkmatter .work .frame {
  background: #0b0908;
}
.room-darkmatter .frame img {
  filter: brightness(0.76);
}
@media (hover: hover) {
  .room-darkmatter .work:hover .frame img {
    filter: brightness(1.12);
  }
  html.js-anim .room-darkmatter .plaque .p-title {
    color: var(--stone);
    transition: color 0.35s var(--ease-out), text-shadow 0.35s var(--ease-out);
  }
  html.js-anim .room-darkmatter .plaque .p-meta,
  html.js-anim .room-darkmatter .plaque .p-inquire {
    transition: color 0.35s var(--ease-out);
  }
  html.js-anim .room-darkmatter .work.lit-near .plaque .p-title {
    color: var(--plaster);
    text-shadow: 0 0 18px rgba(201, 143, 74, 0.35);
  }
  html.js-anim .room-darkmatter .work.lit-near .plaque .p-meta {
    color: var(--stone);
  }
}
.room-darkmatter .provenance-note {
  border-left: 1px solid var(--amber);
  padding-left: 1.4rem;
  max-width: 26rem;
  color: var(--stone);
  font-size: 0.95rem;
}
.room-darkmatter .works .in-situ {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: end;
  margin-top: clamp(1.5rem, 4vh, 3rem);
}

/* Room VI Emanare: the radiant single hang */
.room-emanare {
  text-align: center;
  background: radial-gradient(
      52% 45% at 50% 46%,
      rgba(201, 143, 74, 0.13),
      transparent 70%
    ),
    var(--void);
}
.room-emanare .room-head {
  align-items: center;
  margin-inline: auto;
}
.room-emanare .room-no {
  justify-content: center;
}
.room-emanare .work {
  max-width: 560px;
  margin-inline: auto;
  align-items: center;
}
/* a definite width so the frame cannot collapse before the lazy image has
   intrinsic dimensions; without it the centered flex column shrink-wraps the
   frame to zero, the section under-reserves by the image's height, and a
   direct anchor jump past this room lands short */
.room-emanare .work .frame {
  width: 100%;
}
/* the radial backlight: the one work reads lit from within the wall */
.room-emanare .work {
  position: relative;
}
.room-emanare .work::before {
  content: "";
  position: absolute;
  inset: -14% -28% 16% -28%;
  z-index: -1;
  background: radial-gradient(
    50% 46% at 50% 46%,
    rgba(201, 143, 74, 0.26),
    rgba(201, 143, 74, 0.08) 55%,
    transparent 74%
  );
  filter: blur(6px);
  pointer-events: none;
}
.room-emanare .plaque {
  align-items: center;
}

/* ---------- the viewing room (coverflow) ---------- */
.viewing-room {
  background: #060504;
  padding: var(--room-pad) 0;
}
.viewing-room .room-head {
  padding: 0 var(--gutter);
}
.vr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0 var(--gutter);
  margin-bottom: 2rem;
}
.vr-chips button {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  border: 1px solid var(--hairline);
  padding: 0.55rem 1rem;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out);
}
.vr-chips button[aria-pressed="true"] {
  color: var(--void);
  background: var(--amber);
  border-color: var(--amber);
}
.vr-chips button:hover:not([aria-pressed="true"]) {
  border-color: var(--amber);
  color: var(--amber);
}
.vr-stage {
  position: relative;
  display: none;
  height: min(72svh, 760px);
  background: #060504;
}
.viewing-room.canvas-live .vr-stage {
  display: block;
}
#vr-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
/* round 2: the caption's scrim floor is universal now; on wide stages the title
   was dying against pale plaster (verified on Rorschach 01) exactly as it had
   on mobile before round 1 */
.vr-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3.4rem 1rem 0.9rem;
  text-align: center;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(11, 9, 8, 0.95) 0%,
    rgba(11, 9, 8, 0.8) 48%,
    rgba(11, 9, 8, 0) 100%
  );
}
.vr-caption .plaque {
  align-items: center;
  border-top-color: var(--amber-dim);
}
.vr-caption .p-inquire {
  pointer-events: auto;
}
.vr-arrows {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(0.6rem, 2vw, 1.6rem);
  pointer-events: none;
}
.vr-arrows button {
  pointer-events: auto;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(231, 228, 223, 0.28);
  border-radius: 50%;
  background: rgba(11, 9, 8, 0.55);
  color: var(--plaster);
  font-size: 1.35rem;
  line-height: 1;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out);
}
.vr-arrows button:hover,
.vr-arrows button:focus-visible {
  color: var(--amber);
  border-color: var(--amber);
  background: rgba(11, 9, 8, 0.75);
}
/* static fallback filmstrip: this IS the content at frame 0 */
.vr-strip {
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter) 1rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15.5rem, 19rem);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--umber) transparent;
}
.vr-strip li {
  scroll-snap-align: center;
}
.vr-strip li.hide {
  display: none;
}
.viewing-room.canvas-live .vr-strip,
.viewing-room.canvas-live .vr-strip-note {
  display: none;
}
.vr-strip-note {
  padding: 0.8rem var(--gutter) 0;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--umber);
}

/* ---------- atelier ---------- */
.atelier {
  background: var(--wall) url("../plates/raking-light-amber-sweep-01.webp")
    right center / cover no-repeat;
  background-blend-mode: multiply;
}
.atelier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  max-width: 78rem;
}
.atelier-grid .portrait-frame {
  position: sticky;
  top: 5.5rem;
}
.atelier-copy h2 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  margin-bottom: 1.6rem;
}
.atelier-copy .lede {
  font-size: 1.2rem;
  color: var(--plaster);
  font-weight: 300;
}
.credo {
  margin: 2.2rem 0;
  padding: 1.6rem 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1.4rem;
  justify-content: start;
}
.credo div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.credo .big {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  color: var(--amber);
}
.credo .small {
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
}
.hands-strip {
  margin-top: clamp(3rem, 7vh, 5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 42vw), 1fr));
  gap: 1.2rem;
  max-width: 78rem;
}
.hands-strip figure {
  position: relative;
}
.hands-strip figcaption {
  margin-top: 0.6rem;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--umber);
}
.family {
  margin-top: clamp(3rem, 7vh, 5rem);
  max-width: 78rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 80vw), 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem);
  border-top: 1px solid var(--hairline);
  padding-top: 2.4rem;
}
.family .member p {
  color: var(--stone);
  font-size: 0.95rem;
  margin-top: 0.9rem;
}
.family .member img {
  filter: saturate(0.85) brightness(0.94);
}

/* ---------- provenance ---------- */
.provenance {
  text-align: center;
  background: var(--void) url("../plates/charcoal-texture-field-01.webp") center /
    cover no-repeat;
  background-blend-mode: multiply;
}
.provenance .statement {
  font-size: clamp(2rem, 5.6vw, 4.4rem);
  max-width: 56rem;
  margin: 0 auto 1.6rem;
}
.provenance .wall-text {
  margin-inline: auto;
}
.ledger {
  margin: 3rem auto 0;
  max-width: 46rem;
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.ledger caption {
  caption-side: top;
  text-align: left;
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--amber);
  padding-bottom: 0.9rem;
}
.ledger th,
.ledger td {
  padding: 0.85rem 0.6rem;
  border-top: 1px solid var(--hairline);
  font-weight: 300;
}
.ledger thead th {
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--umber);
  border-top: 0;
  font-weight: 600;
}
.ledger td:first-child {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "SOFT" 70, "WONK" 1;
  font-size: 1.1rem;
}
.ledger td:last-child,
.ledger th:last-child {
  text-align: right;
}

/* ---------- commission ---------- */
.commission {
  background: var(--wall) url("../plates/amber-light-pool-vignette-01.webp")
    center / cover no-repeat;
  background-blend-mode: multiply;
}
.commission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.4rem, 6vw, 6rem);
  max-width: 78rem;
}
.commission h2 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  margin-bottom: 1.4rem;
}
.contact-lines {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.contact-lines li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.9rem;
  padding: 1rem 0;
  border-top: 1px solid var(--hairline);
}
.contact-lines .cl-label {
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--umber);
  min-width: 6.5rem;
}
.contact-lines a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  transition: color 0.2s var(--ease-out);
}
.contact-lines a:hover,
.contact-lines a:focus-visible {
  color: var(--amber);
}
.inquiry {
  border: 1px solid var(--hairline);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: rgba(11, 9, 8, 0.55);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.inquiry .fieldrow {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.inquiry label {
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
}
.inquiry select,
.inquiry textarea,
.inquiry input {
  background: var(--void);
  color: var(--plaster);
  border: 1px solid var(--hairline);
  padding: 0.85rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  border-radius: 0;
}
.inquiry select:focus-visible,
.inquiry textarea:focus-visible,
.inquiry input:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 0;
}
.inquiry textarea {
  min-height: 7.5rem;
  resize: vertical;
}
.inquiry .btn-amber {
  align-self: flex-start;
}
.inquiry .promise {
  font-size: 0.8rem;
  color: var(--umber);
  margin: 0;
}

/* ---------- footer ---------- */
.site-foot {
  padding: 3rem var(--gutter) 3.4rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  background: var(--void);
}
.site-foot img {
  width: 150px;
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.site-foot a {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--umber);
  transition: color 0.2s var(--ease-out);
}
.site-foot a:hover,
.site-foot a:focus-visible {
  color: var(--amber);
}
.site-foot .fine {
  width: 100%;
  font-size: 0.7rem;
  color: var(--umber);
  letter-spacing: 0.06em;
}

/* ---------- ambience loops (Higgsfield plates in motion, 480p) ----------
   Shown only when motion is welcome; reduced motion and no-JS keep the
   static plates that were already there. */
video.ambience {
  display: none;
}
html.js-anim video.ambience {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  mix-blend-mode: screen;
}
html.js-anim .hero-ambience {
  z-index: 0;
  opacity: 0.45;
}
html.js-anim .vr-ambience {
  opacity: 0.55;
}
html.js-anim .commission-ambience {
  z-index: 0;
  opacity: 0.5;
}

/* ---------- the lantern view (lightbox) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.lightbox[hidden] {
  display: none;
}
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 3, 0.94);
  cursor: pointer;
}
.lb-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(0.8rem, 2vh, 2rem) var(--gutter) 1.1rem;
  pointer-events: none;
}
.lb-stage {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  touch-action: none;
}
.lb-art {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  max-height: min(76svh, 900px);
  max-width: min(86vw, 1100px);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0.94) contrast(1.03);
}
#lb-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.28s var(--ease-out);
  /* the raking-light pointermove listens on .lb-stage, not this canvas, so
     the canvas never needs pointer capture - staying click-through lets a
     click on the stage resolve to .lb-art (the artwork's real box) or the
     bare stage (the backdrop-close signal) instead of this full-bleed layer. */
  pointer-events: none;
}
#lb-canvas.live {
  opacity: 1;
}
.lightbox.canvas-live .lb-art {
  /* opacity, not visibility: the image still needs to be hit-testable so a
     click on the visible WebGL artwork resolves to .lb-art (protected),
     not the stage behind it (would incorrectly close the lightbox). */
  opacity: 0;
}
.lb-caption {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: auto;
  padding: 2.6rem 1.4rem 0;
  background: linear-gradient(to top, rgba(5, 4, 3, 0.92), rgba(5, 4, 3, 0));
}
.lb-caption .plaque {
  align-items: center;
  border-top-color: var(--amber-dim);
}
.lb-close {
  position: absolute;
  top: clamp(0.7rem, 2vh, 1.6rem);
  right: var(--gutter);
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(231, 228, 223, 0.28);
  border-radius: 50%;
  background: rgba(11, 9, 8, 0.6);
  color: var(--plaster);
  font-size: 1.5rem;
  line-height: 1;
  pointer-events: auto;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.lb-close:hover,
.lb-close:focus-visible {
  color: var(--amber);
  border-color: var(--amber);
}
.lb-hint {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  bottom: 1.2rem;
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--umber);
}
@media (max-width: 760px) {
  /* on small stages the hint collides with the caption; the touch affordance
     is discoverable by the drag itself */
  .lb-hint {
    display: none;
  }
}
html.js-anim .lightbox {
  transition: opacity 0.25s var(--ease-out);
}
html.js-anim .lightbox.closing {
  opacity: 0;
}
/* the frames announce themselves once the lantern view exists (JS adds .lb-ready) */
html.lb-ready .work .frame {
  cursor: pointer;
}
body.lb-open {
  overflow: hidden;
}

/* ---------- the ember: a carried flame in WebGL zones ---------- */
.lantern-cursor {
  position: fixed;
  z-index: 170;
  left: 0;
  top: 0;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 14px 4px rgba(201, 143, 74, 0.55), 0 0 40px 12px rgba(201, 143, 74, 0.18);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lantern-cursor.on {
  opacity: 1;
}
.lantern-cursor .dir {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--amber);
  text-shadow: 0 0 12px rgba(201, 143, 74, 0.7);
  line-height: 1;
  display: none;
}
.lantern-cursor.arrow {
  background: transparent;
  box-shadow: none;
}
.lantern-cursor.arrow .dir {
  display: block;
}
/* hide the native cursor only while the ember burns (WebGL live, fine pointer) */
html.ember-hero .arrival.canvas-live,
html.ember-vr .viewing-room.canvas-live .vr-stage,
html.ember-vr .viewing-room.canvas-live #vr-canvas,
html.ember-lb .lightbox .lb-stage {
  cursor: none;
}

/* ---------- arrival sweep: one-shot, light over complete content ---------- */
.sweep-glow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(
    460px 78% at var(--sx, -20%) 46%,
    rgba(201, 143, 74, 0.34),
    rgba(201, 143, 74, 0.08) 46%,
    transparent 72%
  );
  opacity: var(--sweep-o, 0);
  transition: opacity 0.4s var(--ease-out);
}
.hero-copy h1 .w {
  transition: color 0.5s var(--ease-out), text-shadow 0.5s var(--ease-out);
}
.hero-copy h1 .w.lit-pass {
  color: #f2e3cd;
  text-shadow: 0 0 26px rgba(201, 143, 74, 0.6);
}
.hero-copy h1 .w.lantern.lit-pass {
  color: var(--amber);
  text-shadow: 0 0 30px rgba(201, 143, 74, 0.75);
}

/* ---------- commission finale ---------- */
.commission .glow {
  opacity: 0.55;
  transition: opacity 1.4s var(--ease-out);
}
.commission:has(.inquiry.in) .glow {
  opacity: 1;
}
.inquiry select {
  appearance: none;
  -webkit-appearance: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--plaster);
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c98f4a' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}
.inquiry select option {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.95rem;
}

/* ---------- responsive ---------- */
@media (min-width: 1100px) {
  .floor-guide {
    display: flex;
  }
}
@media (max-width: 900px) {
  .head-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .atelier-grid,
  .commission-grid {
    grid-template-columns: 1fr;
  }
  .atelier-grid .portrait-frame {
    position: static;
    max-width: 26rem;
  }
  .room-darkmatter .works .in-situ {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }
  .hero-art,
  .hero-light {
    right: 50%;
    transform: translate(50%, -46%);
    height: min(52svh, 480px);
    max-width: 86vw;
    opacity: 0.85;
  }
  .hero-copy {
    padding-bottom: 4.6rem;
  }
  .hero-plaque {
    display: none;
  }
  .room-rorschach .works {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }
  .credo {
    grid-template-columns: repeat(3, auto);
    gap: 1rem;
  }
  .vr-stage {
    height: min(58svh, 520px);
  }
  /* the scrim floor is now universal (see the base .vr-caption rule); only the
     breathing room changes on small stages */
  .vr-caption {
    padding: 3.2rem 1rem 0.85rem;
  }
}

/* JS-off: keep nav reachable without the toggle */
@media (max-width: 900px) {
  html.no-js .head-nav {
    display: flex;
    position: fixed;
    top: 3.6rem;
    right: var(--gutter);
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
    background: rgba(11, 9, 8, 0.92);
    padding: 0.9rem 1.1rem;
  }
  html.no-js .menu-toggle {
    display: none;
  }
}

/* print: a quiet catalogue */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .site-head,
  .floor-guide,
  .light-hint,
  .vr-stage,
  .mobile-menu {
    display: none !important;
  }
}
