/* =============================================================================
   Whodiniz Metaverse Portal
   Aesthetic: dark Art Deco cyber — chamfered geometry, brass hairlines, jade
   signal light, glass over ink. Nothing here is generated at runtime that can
   be done with a gradient or an SVG, so the page stays cheap before the embeds.
   ========================================================================== */

:root {
  /* Palette. Tokens carrying no alpha are the canonical hues — where a value
     needs transparency (atmosphere gradients, glass) it is written inline as
     rgba() from these same numbers. */
  /* Ink */
  --ink-900: #06060b;
  --ink-800: #0a0912;
  --ink-700: #100e1b;
  --ink-600: #171528;

  /* Brass */
  --brass: #d8b063;
  --brass-lt: #f4e1b4;
  --brass-dk: #8a6a2c;

  /* Jade signal */
  --jade: #54e0cd;
  --jade-dk: #2b7a72;

  --violet: #4a337d;
  --lacquer: #c8564f;

  --paper: #ece7dc;
  --muted: rgba(236, 231, 220, 0.62);
  --faint: rgba(236, 231, 220, 0.38);

  --glass: rgba(24, 22, 40, 0.52);
  --glass-hi: rgba(244, 225, 180, 0.09);
  --hairline: rgba(216, 176, 99, 0.28);
  --hairline-hi: rgba(216, 176, 99, 0.55);

  --display: 'Italiana', 'Didot', 'Cormorant Garamond', serif;
  --text: 'Jost', 'Futura', 'Avenir Next', 'Century Gothic', sans-serif;

  --shell: clamp(1.25rem, 5vw, 5.5rem);
  --rule: 1px;
  --ease: cubic-bezier(0.22, 0.68, 0, 1);
  --ease-soft: cubic-bezier(0.4, 0.06, 0.1, 0.98);

  --z-bg: 0;
  --z-content: 10;
  --z-mast: 60;
  /* The scrim sits above the masthead; the worlds section is lifted over the
     scrim while a bay owns the viewport, so the live room stays on top. */
  --z-scrim: 78;
  --z-portal: 80;
  --z-curtain: 100;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--text);
  font-weight: 300;
  font-size: clamp(1rem, 0.94rem + 0.28vw, 1.09rem);
  line-height: 1.65;
  overflow-x: hidden;
  /* Layered atmosphere: two coloured pools over a chamfered lattice. */
  background-image:
    radial-gradient(120% 80% at 12% -10%, rgba(74, 51, 125, 0.5), transparent 60%),
    radial-gradient(90% 70% at 88% 8%, rgba(43, 122, 114, 0.22), transparent 62%),
    radial-gradient(120% 90% at 50% 108%, rgba(216, 176, 99, 0.12), transparent 66%),
    linear-gradient(180deg, var(--ink-800), var(--ink-900) 60%);
  background-attachment: fixed;
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(84, 224, 205, 0.28);
}

:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -160%);
  padding: 0.6rem 1.3rem;
  background: var(--ink-700);
  border: var(--rule) solid var(--hairline-hi);
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------- typography -- */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  line-height: 1.02;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5rem);
  letter-spacing: 0.005em;
  background: linear-gradient(172deg, var(--brass-lt) 8%, var(--brass) 52%, var(--brass-dk) 108%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.1rem;
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--jade);
}

.eyebrow__rule {
  width: clamp(28px, 6vw, 68px);
  height: var(--rule);
  background: linear-gradient(90deg, transparent, var(--jade));
}

/* --------------------------------------------------------- fixed overlays -- */
.dust,
.grain,
.deco-lines {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
}

.grain {
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Deco lattice: a stepped diagonal repeat, kept faint so it reads as texture. */
.deco-lines {
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(90deg, rgba(216, 176, 99, 0.05) 0 1px, transparent 1px 132px),
    repeating-linear-gradient(60deg, rgba(84, 224, 205, 0.028) 0 1px, transparent 1px 96px);
  mask-image: radial-gradient(140% 90% at 50% 20%, #000 25%, transparent 78%);
}

/* ---------------------------------------------------------------- curtain -- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: var(--z-curtain);
  display: grid;
  place-content: center;
  gap: 1.6rem;
  justify-items: center;
  background: var(--ink-900);
  color: var(--brass);
  animation: curtain-lift 0.7s var(--ease) 1.45s forwards;
}

.curtain.is-done {
  animation: curtain-lift 0.6s var(--ease) forwards;
}

.curtain__mark {
  width: clamp(84px, 16vw, 128px);
}

.curtain__ring {
  transform-origin: 50% 50%;
  animation: spin 9s linear infinite;
}

.curtain__ring--slow {
  animation-duration: 16s;
  animation-direction: reverse;
}

.curtain__label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--faint);
}

@keyframes curtain-lift {
  to {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------- masthead -- */
.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-mast);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(0.85rem, 2vw, 1.5rem) var(--shell);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: var(--rule) solid transparent;
}

.masthead.is-stuck {
  background: rgba(10, 9, 18, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--hairline);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--brass-lt);
}

.wordmark__glyph {
  width: 30px;
  color: var(--brass);
  transition: transform 0.6s var(--ease), color 0.4s var(--ease);
}

.wordmark:hover .wordmark__glyph {
  transform: rotate(-30deg);
  color: var(--jade);
}

.wordmark__text {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.16em;
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  gap: clamp(1.2rem, 2.4vw, 2.6rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  display: block;
  padding: 0.3rem 0;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--rule);
  background: linear-gradient(90deg, var(--jade), var(--brass));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--paper);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

/* The one link that leaves the portal — brass, with an outbound glyph. */
.nav__link--out {
  display: flex;
  align-items: center;
  gap: 0.35em;
  color: var(--brass-lt);
}

.nav__link-glyph {
  width: 0.9em;
  height: 0.9em;
  transition: transform 0.3s var(--ease);
}

.nav__link--out:hover .nav__link-glyph {
  transform: translate(2px, -2px);
}

.masthead__tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.audio-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.95rem;
  background: var(--glass);
  border: var(--rule) solid var(--hairline);
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.audio-toggle:hover {
  color: var(--paper);
  border-color: var(--hairline-hi);
}

.audio-toggle__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.audio-toggle__bars i {
  width: 2px;
  height: 3px;
  background: currentColor;
  transition: height 0.3s var(--ease);
}

.audio-toggle[aria-pressed='true'] {
  color: var(--jade);
  border-color: rgba(84, 224, 205, 0.45);
  box-shadow: 0 0 0 1px rgba(84, 224, 205, 0.12), 0 8px 28px -12px rgba(84, 224, 205, 0.5);
}

.audio-toggle[aria-pressed='true'] .audio-toggle__bars i {
  animation: eq 1.1s ease-in-out infinite;
}

.audio-toggle__bars i:nth-child(2) {
  animation-delay: 0.18s;
}
.audio-toggle__bars i:nth-child(3) {
  animation-delay: 0.36s;
}
.audio-toggle__bars i:nth-child(4) {
  animation-delay: 0.54s;
}

@keyframes eq {
  0%,
  100% {
    height: 3px;
  }
  50% {
    height: 12px;
  }
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--glass);
  border: var(--rule) solid var(--hairline);
  color: var(--brass-lt);
  cursor: pointer;
}

.menu-toggle span {
  display: grid;
  gap: 5px;
}

.menu-toggle i {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}

.menu-toggle[aria-expanded='true'] i:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] i:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* ---------------------------------------------------------------- buttons -- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.6rem;
  border: var(--rule) solid var(--hairline-hi);
  background: transparent;
  color: var(--brass-lt);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.btn svg {
  width: 18px;
  transition: transform 0.4s var(--ease);
}

.btn:hover svg {
  transform: translateX(5px);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(216, 176, 99, 0.18), rgba(84, 224, 205, 0.14));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.btn:hover::before {
  opacity: 1;
}

.btn--glow {
  background: rgba(216, 176, 99, 0.08);
  box-shadow: inset 0 0 24px -12px rgba(244, 225, 180, 0.7), 0 14px 40px -22px rgba(216, 176, 99, 0.75);
}

.btn--glow:hover {
  transform: translateY(-2px);
  border-color: var(--brass-lt);
  box-shadow: inset 0 0 30px -10px rgba(244, 225, 180, 0.8), 0 18px 46px -18px rgba(216, 176, 99, 0.85);
}

.btn--ghost {
  color: var(--muted);
  border-color: rgba(236, 231, 220, 0.18);
}

.btn--ghost:hover {
  color: var(--paper);
  border-color: rgba(236, 231, 220, 0.42);
}

.round-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--glass);
  border: var(--rule) solid var(--hairline);
  color: var(--brass-lt);
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.round-btn svg {
  width: 20px;
}

.round-btn:hover {
  color: var(--jade);
  border-color: rgba(84, 224, 205, 0.5);
  transform: scale(1.06);
  box-shadow: 0 10px 30px -14px rgba(84, 224, 205, 0.7);
}

.round-btn--close:hover {
  color: var(--lacquer);
  border-color: rgba(200, 86, 79, 0.55);
  box-shadow: 0 10px 30px -14px rgba(200, 86, 79, 0.7);
}

.round-btn[disabled] {
  opacity: 0.32;
  cursor: not-allowed;
}

.round-btn[disabled]:hover {
  color: var(--brass-lt);
  border-color: var(--hairline);
  transform: none;
  box-shadow: none;
}

/* ----------------------------------------------------------------- reveal -- */
body.armed .reveal {
  opacity: 0;
  transform: translateY(26px);
}

body.armed .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-soft) var(--delay, 0ms), transform 0.9s var(--ease) var(--delay, 0ms);
}

/* ----------------------------------------------------------------- atrium -- */
.atrium {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  /* Short of a full viewport on purpose: the top of the reel shows under the
     fold, so the running rooms are the first thing a scroll reaches. */
  min-height: min(88svh, 960px);
  padding: clamp(7rem, 14vh, 11rem) var(--shell) clamp(4rem, 8vh, 6rem);
}

.atrium__title {
  margin: 0 0 1.6rem;
}

.atrium__title-main {
  display: block;
  font-family: var(--display);
  font-size: clamp(3.6rem, 1.2rem + 11vw, 10rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  background: linear-gradient(168deg, #fff8e8 4%, var(--brass-lt) 30%, var(--brass) 62%, #6b4f1c 104%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 24px 60px rgba(216, 176, 99, 0.14);
}

.atrium__title-sub {
  display: block;
  margin-top: 0.8rem;
  padding-left: 0.28em;
  font-size: clamp(0.78rem, 0.6rem + 0.7vw, 1.05rem);
  font-weight: 300;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--jade);
}

.atrium__lede {
  max-width: 46ch;
  margin: 0 0 2.4rem;
  color: var(--muted);
}

.atrium__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 3.2rem;
}

.atrium__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  margin: 0;
  padding-top: 1.6rem;
  border-top: var(--rule) solid rgba(216, 176, 99, 0.18);
}

.atrium__stats dt {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
}

.atrium__stats dd {
  margin: 0.35rem 0 0;
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--brass-lt);
}

/* Deco portal artwork */
.atrium__portalart {
  display: grid;
  place-items: center;
}

.portalart {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  color: var(--brass);
}

.portalart__rays {
  position: absolute;
  inset: -12%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 5deg,
    rgba(216, 176, 99, 0.14) 5deg 6deg,
    transparent 6deg 12deg
  );
  mask-image: radial-gradient(circle, transparent 30%, #000 46%, transparent 74%);
  animation: spin 90s linear infinite;
}

.portalart__rings {
  position: relative;
  width: 100%;
  pointer-events: none;
}

/* The video panel. Geometry is expressed against the rings' 400-unit viewBox so
   the CSS box and the SVG frame stroke stay welded together at every size:
   inset 15%/30.25% is x 60..340, y 121..279 — a 280 x 158 field, 16:9 to within
   a rounding error, with its corners at radius 161 so the rings clear them. */
.portalart__screen {
  position: absolute;
  inset: 30.25% 15%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, var(--ink-600), var(--ink-900));
  /* Chamfer of 16 viewBox units: 16/280 across, 16/158 down. */
  clip-path: polygon(
    5.714% 0,
    94.286% 0,
    100% 10.127%,
    100% 89.873%,
    94.286% 100%,
    5.714% 100%,
    0 89.873%,
    0 10.127%
  );
}

.portalart__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Keeps the footage in the page's ink-and-brass register rather than letting it
   punch a bright rectangle through the atrium. */
.portalart__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 6, 11, 0.42), transparent 34% 66%, rgba(6, 6, 11, 0.42)),
    radial-gradient(circle at 50% 50%, transparent 42%, rgba(6, 6, 11, 0.5));
  mix-blend-mode: multiply;
}

.ring {
  transform-origin: 50% 50%;
}

.ring--1 {
  animation: spin 64s linear infinite;
  stroke: var(--brass);
}

.ring--2 {
  animation: pulse-ring 6s ease-in-out infinite;
  stroke: rgba(216, 176, 99, 0.55);
}

.ring--3 {
  animation: spin 44s linear infinite reverse;
  stroke: var(--jade);
}

.portalart__frame {
  color: var(--brass);
}

.portalart__chevron {
  color: var(--brass-lt);
  animation: float-chevron 5s ease-in-out infinite;
  transform-origin: 50% 50%;
}

.portalart__ticks {
  color: var(--jade);
}

/* Full-height box carrying a 1px line at its top edge, so the sweep is a
   transform of its own height rather than an animated `top`. */
.portalart__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--jade), transparent) top left / 100% 1px no-repeat;
  filter: blur(0.4px);
  animation: scan 7s var(--ease-soft) infinite;
  opacity: 0.5;
}

@keyframes pulse-ring {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.08);
  }
}

@keyframes float-chevron {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

@keyframes scan {
  0% {
    transform: translateY(14%);
    opacity: 0;
  }
  12% {
    opacity: 0.7;
  }
  88% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(86%);
    opacity: 0;
  }
}

.atrium__scroll {
  position: absolute;
  left: var(--shell);
  bottom: clamp(1.4rem, 4vh, 2.6rem);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color 0.3s var(--ease);
}

.atrium__scroll:hover {
  color: var(--jade);
}

.atrium__scroll-line {
  width: 62px;
  height: var(--rule);
  background: linear-gradient(90deg, var(--faint), transparent);
  position: relative;
  overflow: hidden;
}

.atrium__scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--jade);
  transform: translateX(-100%);
  animation: sweep 2.8s var(--ease-soft) infinite;
}

@keyframes sweep {
  to {
    transform: translateX(100%);
  }
}

/* ----------------------------------------------------------------- worlds -- */
.worlds {
  position: relative;
  z-index: var(--z-content);
  padding: clamp(4rem, 9vh, 7rem) 0 clamp(4rem, 8vh, 6rem);
}

.worlds__head {
  max-width: 62ch;
  padding: 0 var(--shell);
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}

.worlds__note {
  max-width: 48ch;
  margin: 1.1rem 0 0;
  color: var(--muted);
}

.noscript {
  margin: 0 var(--shell) 2rem;
  padding: 1.4rem 1.6rem;
  background: rgba(23, 21, 40, 0.55);
  border: var(--rule) solid var(--hairline);
  color: var(--muted);
}

.noscript ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.noscript a {
  color: var(--jade);
  border-bottom: var(--rule) solid currentColor;
}

/* Pool of light the reel stands in. */
.worlds__plinth {
  position: absolute;
  left: 50%;
  bottom: clamp(4rem, 12vh, 9rem);
  z-index: var(--z-bg);
  width: min(92vw, 1100px);
  height: 150px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(216, 176, 99, 0.18), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

/* The reel: the page's main event. A horizontal snap track of framed screens
   where the front one is not a picture of a world but the world itself, already
   running. No 3D drum any more — an embed cannot live inside a rotated, blurred
   cylinder without losing its pointer events, and the room is the artwork. */
.reel {
  /* Bay width is capped by viewport height as well as width so the whole bay —
     bar, screen and plate — stays on screen on a laptop in landscape. */
  --bay-w: max(276px, min(1080px, 88vw, calc((100svh - 19rem) * 1.62)));
  --bay-gap: clamp(1rem, 3vw, 2.75rem);
  position: relative;
  z-index: var(--z-content);
  display: flex;
  align-items: center;
  gap: var(--bay-gap);
  /* Side padding centres the first and last bay instead of a spacer element. */
  padding: clamp(0.9rem, 2vh, 1.8rem) max(var(--shell), calc(50% - var(--bay-w) / 2));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  /* html scrolls smoothly; the reel needs instant control under a drag. */
  scroll-behavior: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  /* Nothing here may create a containing block for a fixed descendant — the
     front bay becomes position: fixed when a visitor steps inside it, so no
     transform, perspective or filter belongs on the track. */
}

.reel::-webkit-scrollbar {
  display: none;
}

.reel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.bay {
  position: relative;
  flex: 0 0 auto;
  width: var(--bay-w);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
}

/* Bays either side stay legible enough to read as the next room along. */
.bay:not(.is-active):not(.is-immersive) {
  opacity: 0.42;
  transform: scale(0.93);
  filter: blur(2.5px) saturate(0.55);
  cursor: pointer;
}

.bay__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(168deg, rgba(31, 28, 52, 0.8), rgba(8, 7, 15, 0.92));
  border: var(--rule) solid var(--hairline);
  box-shadow: 0 50px 110px -60px rgba(0, 0, 0, 0.95), inset 0 1px 0 var(--glass-hi);
  clip-path: polygon(26px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%, 0 26px);
  /* The frame, not the bay, carries the enter/exit FLIP so the resting scale of
     a side bay and the transition transform never fight over one property. */
  transform-origin: top left;
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.bay.is-active .bay__frame {
  border-color: var(--hairline-hi);
  box-shadow: 0 60px 130px -60px rgba(0, 0, 0, 0.95),
    0 0 60px -26px color-mix(in srgb, var(--accent) 55%, transparent), inset 0 1px 0 var(--glass-hi);
}

/* Corner brackets — the Deco tell on every panel. */
.bay__bracket {
  position: absolute;
  z-index: 5;
  width: 22px;
  height: 22px;
  border: var(--rule) solid var(--accent);
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), width 0.4s var(--ease), height 0.4s var(--ease);
}

.bay__bracket:nth-of-type(1) {
  top: 8px;
  right: 8px;
  border-left: 0;
  border-bottom: 0;
}

.bay__bracket:nth-of-type(2) {
  bottom: 8px;
  left: 8px;
  border-right: 0;
  border-top: 0;
}

.bay.is-active .bay__frame:hover .bay__bracket {
  width: 30px;
  height: 30px;
  opacity: 1;
}

.bay__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(0.9rem, 2vw, 1.4rem);
  border-bottom: var(--rule) solid var(--hairline);
}

.bay__kicker {
  margin: 0 0 0.15rem;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--jade);
}

.bay__name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 0.95rem + 1.1vw, 1.9rem);
  letter-spacing: 0.03em;
  color: var(--brass-lt);
}

/* The name yields to the tools rather than pushing them off the bar. */
.bay__id {
  min-width: 0;
}

.bay__kicker,
.bay__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bay__tools {
  display: flex;
  flex-shrink: 0;
  gap: 0.5rem;
}

/* Fullscreen and close only make sense once the bay owns the viewport. */
.bay:not(.is-immersive) .bay__tool--live {
  display: none;
}

.bay__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #04040a;
  overflow: hidden;
}

.bay__screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.8s var(--ease-soft);
}

.bay__screen iframe.is-ready {
  opacity: 1;
}

/* The plaque art is now the poster the room fades up through. */
.bay__poster {
  position: absolute;
  inset: 0;
  transition: opacity 1s var(--ease-soft);
}

.bay__poster svg {
  width: 100%;
  height: 100%;
}

.bay__poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 6, 11, 0.8));
}

.bay.is-ready .bay__poster {
  opacity: 0;
}

/* Shield and control in one: it keeps swipes and clicks in this document rather
   than losing them to the cross-origin embed, and it is the way inside. */
.bay__enter {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.6rem;
  padding: clamp(0.7rem, 2vw, 1.1rem);
  background: radial-gradient(72% 62% at 50% 42%, rgba(6, 6, 11, 0.12), rgba(6, 6, 11, 0.62));
  border: 0;
  text-align: left;
  color: var(--brass-lt);
  cursor: pointer;
  transition: background 0.5s var(--ease);
}

.bay.is-ready .bay__enter {
  background: linear-gradient(180deg, rgba(6, 6, 11, 0.1) 30%, rgba(6, 6, 11, 0.72));
}

.bay.is-active .bay__enter:hover,
.bay__enter:focus-visible {
  background: radial-gradient(72% 62% at 50% 42%, rgba(84, 224, 205, 0.07), rgba(6, 6, 11, 0.68));
}

.bay__enter-mark {
  grid-row: 1;
  place-self: center;
  width: clamp(58px, 9vw, 82px);
  opacity: 0.55;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}

.bay.is-active .bay__enter:hover .bay__enter-mark {
  opacity: 1;
  transform: scale(1.07);
}

.bay__enter-foot {
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
}

.bay__enter-label {
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Running state, with the jade signal lamp. */
.bay__state {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
}

.bay__state::before {
  content: '';
  width: 7px;
  height: 7px;
  background: rgba(236, 231, 220, 0.3);
  transform: rotate(45deg);
}

.bay.is-live .bay__state {
  color: var(--jade);
}

.bay.is-live .bay__state::before {
  background: var(--jade);
  box-shadow: 0 0 12px rgba(84, 224, 205, 0.9);
  animation: live-lamp 2.6s ease-in-out infinite;
}

@keyframes live-lamp {
  0%,
  100% {
    opacity: 0.45;
    transform: rotate(45deg) scale(0.9);
  }
  50% {
    opacity: 1;
    transform: rotate(45deg) scale(1.25);
  }
}

.bay__loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.1rem;
  background: #04040a;
  color: var(--brass);
  transition: opacity 0.6s var(--ease);
}

.bay__loader[hidden] {
  display: none;
}

.bay.is-ready .bay__loader {
  opacity: 0;
  pointer-events: none;
}

.bay__loader-mark {
  width: 68px;
}

.bay__loader-text {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Escape hatch: sits above the embed when the world is slow or being blocked. */
.bay__stall {
  position: absolute;
  z-index: 5;
  inset: auto 0.9rem 3.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 1rem;
  max-width: 34rem;
  padding: 0.75rem 1rem;
  background: var(--glass);
  border: var(--rule) solid var(--hairline);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bay__stall[hidden] {
  display: none;
}

.bay__stall-text {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.bay__stall-link {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--jade);
  border-bottom: var(--rule) solid currentColor;
  transition: color 0.3s var(--ease);
}

.bay__stall-link:hover {
  color: var(--brass-lt);
}

/* Reserved bay: a held slot, no screen to run. */
.bay__plate {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.4rem 1rem;
  background: rgba(6, 6, 11, 0.7);
  border: var(--rule) dashed var(--hairline);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
}

.bay--reserved .bay__frame {
  border-style: dashed;
}

.bay__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1.6rem;
  padding: 0.75rem clamp(0.9rem, 2vw, 1.4rem);
  border-top: var(--rule) solid var(--hairline);
}

.bay__summary,
.bay__hint {
  margin: 0;
  max-width: 62ch;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.bay__facts {
  display: flex;
  flex-shrink: 0;
  gap: 0.4rem 1.3rem;
  margin: 0;
}

.bay__facts dt {
  font-size: 0.53rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.bay__facts dd {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--paper);
}

.bay__esc {
  margin: 0;
  flex-shrink: 0;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--faint);
}

/* Preview shows what the room is; inside, it shows how to move around it. */
.bay:not(.is-immersive) .bay__hint,
.bay:not(.is-immersive) .bay__esc,
.bay.is-immersive .bay__summary,
.bay.is-immersive .bay__facts {
  display: none;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
  padding: 0 var(--shell);
}

.carousel-counter {
  margin: 0;
  min-width: 5.5rem;
  text-align: center;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.22em;
  color: var(--brass);
}

.carousel-counter b {
  color: var(--brass-lt);
  font-weight: 400;
}

.carousel-dots {
  display: flex;
  gap: 0.55rem;
}

.carousel-dots button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.carousel-dots button::before {
  content: '';
  width: 9px;
  height: 9px;
  background: rgba(236, 231, 220, 0.22);
  transform: rotate(45deg);
  transition: background 0.3s var(--ease), transform 0.4s var(--ease), box-shadow 0.3s var(--ease);
}

.carousel-dots button:hover::before {
  background: var(--brass);
}

.carousel-dots button[aria-current='true']::before {
  background: var(--jade);
  transform: rotate(45deg) scale(1.35);
  box-shadow: 0 0 14px rgba(84, 224, 205, 0.8);
}

/* ------------------------------------------------------------------ about -- */
.about {
  position: relative;
  z-index: var(--z-content);
  padding: clamp(5rem, 12vh, 9rem) var(--shell);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.6rem, 4vw, 3.4rem) clamp(1.4rem, 3vw, 3rem);
}

.about__intro {
  grid-column: 1 / span 7;
}

.about__body {
  grid-column: 8 / span 5;
  align-self: end;
  color: var(--muted);
}

.about__body p {
  margin: 0 0 1.1rem;
}

.about__lead {
  color: var(--paper);
  font-size: 1.08rem;
}

.about__facts {
  grid-column: 2 / span 11;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(1rem, 2.4vw, 2rem);
  margin: clamp(1.5rem, 4vh, 3rem) 0 0;
  padding: 0;
  list-style: none;
}

.about__facts li {
  position: relative;
  padding: 1.5rem 1.3rem 1.4rem;
  background: linear-gradient(180deg, rgba(23, 21, 40, 0.5), rgba(10, 9, 18, 0.3));
  border-top: var(--rule) solid var(--hairline);
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), background 0.5s var(--ease);
}

.about__facts li:hover {
  transform: translateY(-6px);
  border-top-color: var(--jade);
  background: linear-gradient(180deg, rgba(43, 122, 114, 0.16), rgba(10, 9, 18, 0.34));
}

.about__facts-num {
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--brass);
}

.about__facts h3 {
  margin-bottom: 0.55rem;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.about__facts p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------- contact -- */
.contact {
  position: relative;
  z-index: var(--z-content);
  padding: clamp(4rem, 10vh, 8rem) var(--shell) clamp(5rem, 10vh, 8rem);
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact__copy p {
  color: var(--muted);
  max-width: 40ch;
}

.contact__list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: var(--rule) solid rgba(216, 176, 99, 0.18);
}

.contact__list li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: var(--rule) solid rgba(216, 176, 99, 0.12);
  font-size: 0.88rem;
  color: var(--muted);
}

.contact__list span {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem clamp(1rem, 2vw, 1.6rem);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: var(--glass);
  border: var(--rule) solid var(--hairline);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  clip-path: polygon(26px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%, 0 26px);
}

.field--wide,
.form__foot {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
}

.field__opt {
  letter-spacing: 0.12em;
  text-transform: none;
  color: rgba(236, 231, 220, 0.28);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  background: rgba(6, 6, 11, 0.5);
  border: var(--rule) solid rgba(236, 231, 220, 0.14);
  border-radius: 0;
  font-size: 0.92rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field select {
  appearance: none;
  cursor: pointer;
}

.field__select {
  position: relative;
}

.field__select svg {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  width: 18px;
  transform: translateY(-50%);
  color: var(--brass);
  pointer-events: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--jade);
  background: rgba(6, 6, 11, 0.72);
  box-shadow: 0 0 0 1px rgba(84, 224, 205, 0.25), 0 10px 30px -20px rgba(84, 224, 205, 0.8);
}

.field__error {
  min-height: 1.1rem;
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--lacquer);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--lacquer);
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  padding-top: 0.4rem;
}

.form__status {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.form__status.is-ok {
  color: var(--jade);
}

.form__status.is-bad {
  color: var(--lacquer);
}

.form.is-sending {
  opacity: 0.72;
  pointer-events: none;
}

/* ----------------------------------------------------------------- footer -- */
.footer {
  position: relative;
  z-index: var(--z-content);
  padding: 0 var(--shell) clamp(2rem, 5vh, 3.5rem);
}

.footer__rule {
  height: var(--rule);
  margin-bottom: 2rem;
  background: linear-gradient(90deg, transparent, var(--hairline-hi) 20%, var(--hairline-hi) 80%, transparent);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
}

.footer__mark {
  margin: 0;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  color: var(--brass-lt);
}

.footer__nav {
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer__nav a {
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.footer__nav a:hover {
  color: var(--jade);
}

.footer__note {
  margin: 0;
  font-size: 0.72rem;
  color: var(--faint);
}

/* --------------------------------------------------------------- theatre -- */
/**
 * Stepping inside does not open a second copy of the world: the bay the visitor
 * was already watching becomes the viewport. The iframe element never moves in
 * the DOM — moving it would destroy its browsing context and reload the room —
 * so entry costs nothing and lands exactly where the preview had got to.
 *
 * Where the browser supports it the bay is promoted to the top layer as a manual
 * popover, which is immune to ancestor stacking contexts. Everywhere else the
 * class alone is enough: nothing between the bay and the root creates a
 * containing block for a fixed element, and `.worlds` is lifted above the
 * masthead for the duration so the scrim covers the page chrome.
 */
.theatre-scrim {
  position: fixed;
  inset: 0;
  z-index: var(--z-scrim);
  background: radial-gradient(80% 70% at 50% 40%, rgba(11, 9, 22, 0.88), rgba(4, 4, 8, 0.98));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  cursor: zoom-out;
}

.theatre-scrim[hidden] {
  display: none;
}

.theatre-scrim.is-on {
  opacity: 1;
}

body.is-immersive .worlds {
  z-index: var(--z-portal);
}

/* Every property the UA popover sheet sets has to be answered here, since a
   bay is styled by this rule whether or not it went into the top layer. */
.bay.is-immersive {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(0.4rem, 1.4vw, 1.3rem);
  background: none;
  border: 0;
  color: var(--paper);
  overflow: visible;
  opacity: 1;
  filter: none;
  transform: none;
  /* The margin around the frame dismisses, the same as the scrim it hides. */
  cursor: zoom-out;
}

.bay.is-immersive .bay__frame {
  width: 100%;
  height: 100%;
  cursor: default;
  border-color: var(--hairline-hi);
  box-shadow: 0 60px 140px -60px rgba(0, 0, 0, 1), 0 0 90px -50px rgba(216, 176, 99, 0.45);
  clip-path: polygon(28px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 28px);
}

/* The screen takes whatever the bar and the plate leave. */
.bay.is-immersive .bay__screen {
  aspect-ratio: auto;
  flex: 1;
  min-height: 0;
}

/* Shield down: from here the pointer belongs to the world. */
.bay.is-immersive .bay__enter {
  display: none;
}

/* Skeleton shaped like the room the embed draws: horizon plus two plinths. */
.skeleton {
  display: grid;
  grid-template-columns: 90px 150px 90px;
  gap: 0.6rem;
  width: min(70vw, 340px);
}

.skeleton span {
  height: 8px;
  background: linear-gradient(90deg, rgba(216, 176, 99, 0.06), rgba(216, 176, 99, 0.22), rgba(216, 176, 99, 0.06));
  background-size: 200% 100%;
  animation: shimmer 1.8s linear infinite;
}

.skeleton span:nth-child(2) {
  height: 14px;
  animation-delay: 0.2s;
}

.skeleton span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes shimmer {
  from {
    background-position: 130% 0;
  }
  to {
    background-position: -130% 0;
  }
}


kbd {
  padding: 0.15rem 0.42rem;
  border: var(--rule) solid var(--hairline);
  font-family: var(--text);
  font-size: 0.66rem;
  color: var(--brass-lt);
}

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1080px) {
  .atrium {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .atrium__portalart {
    order: -1;
    width: min(58vw, 300px);
  }

  .about__intro,
  .about__body,
  .about__facts {
    grid-column: 1 / -1;
  }

  .contact__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .menu-toggle {
    display: grid;
  }

  .audio-toggle__text {
    display: none;
  }

  .audio-toggle {
    padding: 0.55rem 0.7rem;
  }

  .nav {
    position: fixed;
    inset: 0;
    display: grid;
    place-content: center;
    margin: 0;
    background: rgba(6, 6, 11, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0.4s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    gap: 1.6rem;
    text-align: center;
  }

  .nav__link {
    font-family: var(--display);
    font-size: 2.1rem;
    letter-spacing: 0.14em;
    text-transform: none;
    color: var(--brass-lt);
  }

  .nav__link::after {
    left: 50%;
    width: 60%;
    transform: translateX(-50%) scaleX(0);
  }

  .nav__link:hover::after,
  .nav__link.is-active::after {
    transform: translateX(-50%) scaleX(1);
  }

  .nav__link--out {
    justify-content: center;
  }

  .form {
    grid-template-columns: 1fr;
  }

  .contact__list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .atrium__scroll {
    display: none;
  }

  /* On a phone the facts crowd the plate out; the room is the point. */
  .bay__facts {
    display: none;
  }

  .bay__foot {
    padding: 0.65rem 0.9rem;
  }
}

@media (max-width: 520px) {
  .bay__bar {
    padding: 0.65rem 0.8rem;
  }

  .bay__summary,
  .bay__hint {
    -webkit-line-clamp: 3;
    font-size: 0.78rem;
  }

  .atrium__stats dd {
    font-size: 1.45rem;
  }
}

/* Short, wide viewports (headset browsers, laptops in landscape). */
@media (max-height: 620px) and (min-width: 780px) {
  .atrium {
    min-height: auto;
    padding-top: 6rem;
  }

  .reel {
    --bay-w: max(276px, min(760px, 62vw));
  }

  .bay__foot {
    padding: 0.5rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  body.armed .reveal {
    opacity: 1;
    transform: none;
  }

  .bay,
  .bay__frame {
    transition: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: rgba(236, 231, 220, 0.86);
    --faint: rgba(236, 231, 220, 0.7);
    --hairline: rgba(216, 176, 99, 0.55);
  }
}

@media print {
  .curtain,
  .dust,
  .grain,
  .deco-lines,
  .theatre-scrim,
  .bay__enter {
    display: none !important;
  }
}
