/* ==========================================================================
   THE VIRTUAL TOUR
   A CSS 3D studio the visitor walks through: floor grid, side walls, a back
   wall carrying the room name, and artwork hung on a rail in real depth.
   Rooms swap with a camera dolly rather than a page transition.
   ========================================================================== */

/* ------------------------------------------------------------- preloader -- */
.boot {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 40%, #0B1A5E 0%, #03061C 62%);
  transition: opacity .7s var(--ease), visibility .7s;
}
.boot.is-done { opacity: 0; visibility: hidden; }
/*
 * Hiding is not stopping. Without this, boot-breathe and the ring spin keep
 * animating an invisible preloader for as long as the tab is open, and the
 * entrance does the same after the doors close.
 */
.boot.is-done, .boot.is-done *,
.gateway.is-gone, .gateway.is-gone * { animation: none !important; }

.boot__inner { display: grid; justify-items: center; gap: 1.7rem; text-align: center; padding: 2rem; }

.boot__mark { position: relative; width: 128px; height: 128px; display: grid; place-items: center; }
.boot__mark img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(47,107,255,.75));
  animation: boot-breathe 2.4s var(--ease-in-out) infinite;
}
.boot__ring {
  position: absolute; inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(143,180,255,.22);
}
.boot__ring::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid transparent; border-top-color: var(--blue-500);
  animation: spin 1.5s linear infinite;
}
@keyframes boot-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }

.boot__word { font-family: var(--font-display); font-size: var(--step-1); letter-spacing: .3em; text-transform: uppercase; color: var(--ice-100); }
.boot__status { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); min-height: 1.2em; }

.boot__bar { width: min(280px, 60vw); height: 2px; background: rgba(143,180,255,.16); border-radius: 99px; overflow: hidden; }
.boot__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--royal-600), var(--blue-400)); transition: width .35s var(--ease); }

/* ------------------------------------------------------------ tour shell -- */
.tour {
  --accent: #2F6BFF;
  --bg-from: #03061C;
  --bg-to: #0F1F6B;
  --floor: #0A1246;
  --depth: 2400px;

  /*
   * Reserved zones. Everything in the tour is absolutely positioned, so the
   * only way to guarantee two blocks never land on each other is to give each
   * one a band it owns. These are the bands.
   *
   *   safe-top     the HUD bar across the top
   *   safe-bottom  the scrub hint + room dial across the bottom
   *   gutter       clears the prev/next arrows, so body copy never sits under them
   *   intro-w      the left-hand copy column
   *   guide-*      the mascot, parked bottom-right in its own corner
   */
  --arrow-x: clamp(.6rem, 1.6vw, 1.4rem);
  --arrow-w: clamp(44px, 5vw, 56px);
  --gutter: calc(var(--arrow-x) + var(--arrow-w) + clamp(.75rem, 2vw, 1.75rem));

  --safe-top: clamp(78px, 11vh, 104px);
  --safe-bottom: clamp(118px, 17vh, 152px);

  --intro-w: min(430px, 36vw);
  --guide-w: clamp(88px, 12vmin, 150px);
  --guide-bubble-w: min(300px, 30vw);

  position: fixed; inset: 0;
  /*
   * `clip`, not `hidden`. The room's 3D content is far wider and taller than
   * the window (the rail runs back into the distance), and an overflow:hidden
   * box is still a scroll container — the browser scrolled it to bring a
   * focused control into view and left the whole scene displaced by however
   * many pixels, clipping the brand mark and the left edge of every panel.
   * overflow:clip clips without ever becoming scrollable.
   */
  overflow: hidden;
  overflow: clip;
  background: var(--bg-from);
  perspective: 1300px;
  perspective-origin: 50% 46%;
  touch-action: pan-y;
}
.tour[hidden] { display: none; }
.tour.is-grabbing { cursor: grabbing; }
.tour.is-grabbing .work { cursor: grabbing; }

/* The room carries the pointer-parallax tilt, eased in JS. Transitioning it
   here as well would double up on that easing, so it is deliberately absent. */
.room { will-change: transform; }

/* ambient gradient that re-tints as you move between rooms */
.tour__sky {
  position: absolute; inset: -10%;
  background:
    radial-gradient(70% 55% at 50% 30%, color-mix(in srgb, var(--bg-to) 92%, white 8%) 0%, transparent 68%),
    radial-gradient(120% 90% at 50% 110%, var(--bg-to) 0%, var(--bg-from) 62%);
  transition: background 1.1s var(--ease);
}

.tour__vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 6;
  background:
    radial-gradient(78% 60% at 50% 45%, transparent 40%, rgba(1,3,14,.55) 100%),
    linear-gradient(180deg, rgba(1,3,14,.5) 0%, transparent 18%, transparent 72%, rgba(1,3,14,.72) 100%);
}

/* soft light shafts, echoing the studio renders */
.tour__shafts { position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: .5; mix-blend-mode: screen; }
.tour__shafts i {
  position: absolute; top: -30%; width: 30vmin; height: 160%;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 28%, transparent), transparent);
  filter: blur(38px);
  transform: rotate(14deg);
  animation: shaft-drift 18s var(--ease-in-out) infinite alternate;
}
.tour__shafts i:nth-child(1) { left: 8%; animation-delay: -3s; }
.tour__shafts i:nth-child(2) { left: 46%; opacity: .55; animation-delay: -9s; }
.tour__shafts i:nth-child(3) { left: 78%; opacity: .35; animation-delay: -14s; }
@keyframes shaft-drift { from { transform: rotate(11deg) translateX(-3vw); } to { transform: rotate(17deg) translateX(3vw); } }

/* floating dust — sells the sense of a physical volume */
.tour__dust { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.tour__dust i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(199, 218, 255, .8);
  box-shadow: 0 0 8px rgba(143,180,255,.9);
  animation: dust-rise linear infinite;
}
@keyframes dust-rise {
  from { transform: translate3d(0, 110vh, 0) scale(.4); opacity: 0; }
  12%  { opacity: .8; }
  88%  { opacity: .55; }
  to   { transform: translate3d(24px, -12vh, 0) scale(1); opacity: 0; }
}

/* ----------------------------------------------------------------- stage -- */
.stage {
  position: absolute; inset: 0; z-index: 4;
  transform-style: preserve-3d;
}

.room {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s var(--ease);
}
.room.is-active { opacity: 1; pointer-events: auto; }

/*
 * Camera dolly. The incoming room decelerates into place on a long tail so it
 * feels like a body coming to rest; the outgoing one accelerates away, which
 * is what makes the movement read as travel rather than a crossfade.
 */
.room.is-entering { animation: room-in 1s var(--ease-out-soft) both; }
.room.is-leaving  { animation: room-out .68s cubic-bezier(.55, 0, .85, .35) both; }
.room.is-entering.from-back { animation-name: room-in-back; }
.room.is-leaving.to-back    { animation-name: room-out-back; }

@keyframes room-in {
  from { transform: translateZ(-940px); opacity: 0; }
  45%  { opacity: 1; }
  to   { transform: none; opacity: 1; }
}
@keyframes room-out {
  from { transform: none; opacity: 1; }
  to   { transform: translateZ(760px); opacity: 0; }
}
@keyframes room-in-back {
  from { transform: translateZ(760px); opacity: 0; }
  45%  { opacity: 1; }
  to   { transform: none; opacity: 1; }
}
@keyframes room-out-back {
  from { transform: none; opacity: 1; }
  to   { transform: translateZ(-940px); opacity: 0; }
}

/* The room copy arrives a beat behind the architecture. */
.room.is-active .room__intro > * { animation: copy-in .65s var(--ease-out-soft) both; }
.room.is-active .room__intro > *:nth-child(1) { animation-delay: .22s; }
.room.is-active .room__intro > *:nth-child(2) { animation-delay: .30s; }
.room.is-active .room__intro > *:nth-child(3) { animation-delay: .38s; }
.room.is-active .room__intro > *:nth-child(4) { animation-delay: .46s; }

@keyframes copy-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------- architecture ---- */
.room__floor {
  position: absolute; left: 50%; bottom: -6%;
  width: 340vmax; height: 190vmax;
  transform: translateX(-50%) rotateX(84deg);
  transform-origin: 50% 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--floor) 82%, black) 0%, transparent 58%),
    repeating-linear-gradient(90deg, rgba(143,180,255,.11) 0 1px, transparent 1px 132px),
    repeating-linear-gradient(0deg,  rgba(143,180,255,.09) 0 1px, transparent 1px 132px),
    var(--floor);
  mask-image: radial-gradient(58% 62% at 50% 8%, #000 0%, transparent 78%);
  opacity: .92;
}

/* mirror sheen on the floor, like a polished studio surface */
.room__sheen {
  position: absolute; left: 50%; bottom: 0; width: 120vmax; height: 34vh;
  transform: translateX(-50%);
  background: linear-gradient(0deg, color-mix(in srgb, var(--accent) 20%, transparent), transparent 78%);
  filter: blur(28px);
  opacity: .5;
  pointer-events: none;
}

.room__wall {
  position: absolute; top: -20%; height: 140%; width: 120vmax;
  transform-style: preserve-3d;
  background:
    linear-gradient(90deg, rgba(6,10,40,.92), rgba(6,10,40,.1)),
    repeating-linear-gradient(0deg, rgba(143,180,255,.07) 0 1px, transparent 1px 96px);
  opacity: .55;
  pointer-events: none;
}
.room__wall--l { left: 0; transform-origin: left center; transform: translateX(-4vw) rotateY(72deg); }
.room__wall--r { right: 0; transform-origin: right center; transform: translateX(4vw) rotateY(-72deg) scaleX(-1); }

/* huge ghosted room name on the back wall */
.room__backdrop {
  position: absolute; left: 50%; top: 50%;
  transform: translate3d(-50%, -50%, -820px);
  font-family: var(--font-display);
  font-size: clamp(4rem, 16vw, 15rem);
  font-weight: 700; letter-spacing: -.05em; white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(143,180,255,.16);
  opacity: .8;
  pointer-events: none;
  user-select: none;
}

/* the 3D emblem hovering deep in the room */
.room__emblem {
  position: absolute; left: 50%; top: 28%;
  width: clamp(140px, 22vmin, 300px);
  transform: translate3d(-50%, -50%, -640px);
  opacity: .22;
  filter: drop-shadow(0 0 60px color-mix(in srgb, var(--accent) 60%, transparent));
  animation: float-y 9s var(--ease-in-out) infinite;
  pointer-events: none;
}

/* ------------------------------------------------------------- room copy -- */
/*
 * The copy column owns the left band between the two safe areas. Bounding it
 * top AND bottom (rather than centring it on 50%) is what stops it growing
 * into the guide or under the dial on a short laptop screen.
 */
.room__intro {
  position: absolute;
  left: var(--gutter);
  top: var(--safe-top);
  bottom: var(--safe-bottom);
  width: var(--intro-w);
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 5;
}
/*
 * Nothing in the column may be crushed. .room__sub clamps with overflow:hidden,
 * which zeroes its automatic minimum size — without this the flex column
 * squeezed it to 2px on a 700px-tall laptop and the subtitle vanished.
 */
.room__intro > * { flex: none; }
.room__intro .eyebrow { margin-bottom: 1rem; }
.room__title {
  font-size: var(--step-4);
  margin-bottom: .85rem;
  background: linear-gradient(100deg, #fff 12%, var(--ice-100) 52%, color-mix(in srgb, var(--accent) 80%, white) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.room__sub { color: var(--text-soft); font-size: var(--step-0); max-width: 44ch; }
.room__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }

/*
 * Rooms whose content is a wide panel stack their heading above it as a real
 * flex column. The panel then takes whatever height is left and scrolls inside
 * itself — it can never grow up into the heading, which is what used to happen
 * when both were absolutely positioned with hand-tuned offsets.
 */
.room--panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Bottom band holds the docked guide strip and the dial — nothing else. */
  padding: var(--safe-top) var(--gutter) calc(var(--safe-bottom) + 1.6rem);
  gap: clamp(.6rem, 1.6vh, 1.2rem);
}
.room--panel .room__intro {
  position: static;
  inset: auto;
  transform: none;
  width: min(760px, 100%);
  flex: 0 0 auto;
  display: block;
  text-align: center;
}
.room--panel .eyebrow { justify-content: center; }
.room--panel .eyebrow::before { display: none; }
.room--panel .room__sub { margin-inline: auto; }
.room--panel .room__meta { justify-content: center; }

/* --------------------------------------------------------- artwork rail -- */
/*
 * The rail centres in the space to the RIGHT of the copy column, not in the
 * viewport — otherwise the nearest frame lands on top of the headline. It also
 * rides a little above centre so the mascot has its own band underneath.
 */
.rail {
  position: absolute; left: 0; right: 0; top: 44%;
  height: 0;
  transform: translateX(calc((var(--gutter) + var(--intro-w)) / 2));
  transform-style: preserve-3d;
  z-index: 5;
}

.work {
  position: absolute; left: 50%; top: 0;
  width: clamp(190px, 20vmax, 320px);
  transform-style: preserve-3d;
  cursor: pointer;
  border: 0; padding: 0; background: none;
  /* transform, opacity and filter are driven per-frame by the tour engine, so
     they must NOT carry a CSS transition — the two smoothing systems would
     fight and the rail would feel like it was dragging through syrup. */
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/*
 * Entrance: each piece is hung on the wall in turn, nearest first.
 * The animation lives on the CHILDREN, never on .work itself — the engine owns
 * .work's opacity and transform, and a running animation would override them
 * and kill the depth fade.
 */
.work .work__frame,
.work .work__plate { opacity: 0; }

.work.is-hung .work__frame {
  animation: hang .72s var(--ease-back) both;
  animation-delay: var(--in-delay, 0ms);
}
.work.is-hung .work__plate {
  animation: hang-plate .5s var(--ease) both;
  animation-delay: calc(var(--in-delay, 0ms) + 130ms);
}

@keyframes hang {
  from { opacity: 0; transform: translateY(-16px) rotateX(9deg) scale(.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes hang-plate {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}

/* The frame itself carries the polish — it is only ever animated by hover, so
   a transition here is safe and wanted. */
.work__frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(4,8,32,.6);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 34px 70px -28px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.2);
  transition: border-color .4s, box-shadow .5s, transform .5s var(--ease);
}
.work__frame img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 4 / 5;
  transition: transform .8s var(--ease), filter .5s;
  filter: saturate(1.02);
}
.work.is-landscape .work__frame img { aspect-ratio: 16 / 10; }
.work.is-square .work__frame img { aspect-ratio: 1 / 1; }

/* light spilling off the frame onto the floor */
.work__glow {
  position: absolute; left: 50%; bottom: -14%;
  width: 78%; height: 34px;
  transform: translateX(-50%) rotateX(80deg);
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 70%, transparent), transparent 70%);
  filter: blur(12px);
  opacity: .55;
  pointer-events: none;
}

.work__plate {
  margin-top: .85rem;
  text-align: left;
  transform: translateZ(1px);
}
.work__name {
  font-family: var(--font-display); font-size: .95rem; font-weight: 600;
  color: #fff; line-height: 1.25;
}
.work__cat {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ice-200); margin-top: .25rem;
  display: flex; align-items: center; gap: .4rem;
}
.work__cat::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}

.work:hover, .work:focus-visible { filter: brightness(1.08); }
.work:hover .work__frame,
.work:focus-visible .work__frame {
  border-color: color-mix(in srgb, var(--accent) 70%, white);
  box-shadow: 0 40px 80px -26px rgba(0,0,0,1), 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 40px -6px var(--accent);
  transform: translateZ(40px);
}
.work:hover .work__frame img { transform: scale(1.06); }

.work__badge {
  position: absolute; top: .6rem; left: .6rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .55rem;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(3,6,28,.78); border: 1px solid rgba(255,255,255,.2);
  border-radius: 99px; color: #fff; backdrop-filter: blur(6px);
}

/* --------------------------------------------------------------- hotspots */
.hotspot {
  position: absolute;
  transform-style: preserve-3d;
  z-index: 5;
}
.hotspot__dot {
  position: relative;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(255,255,255,.85);
  cursor: pointer;
  animation: pulse-ring 2.6s infinite;
}
.hotspot__card {
  position: absolute; left: 26px; top: -12px;
  width: min(230px, 68vw); padding: .85rem 1rem;
  background: rgba(4,8,34,.9);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateX(-8px) scale(.96); transform-origin: left center;
  transition: opacity .3s var(--ease), transform .3s var(--ease-back);
  pointer-events: none;
}
.hotspot:hover .hotspot__card,
.hotspot:focus-within .hotspot__card { opacity: 1; transform: none; }

/*
 * Dots past the middle of the room open their card to the LEFT instead, so it
 * reads back into the room rather than off the edge. tour.js adds the class
 * from the hotspot's own x percentage.
 */
.hotspot--left .hotspot__card {
  left: auto; right: 26px;
  transform-origin: right center;
  transform: translateX(8px) scale(.96);
}
.hotspot__label { font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: #fff; margin-bottom: .2rem; }
.hotspot__body { font-size: .8rem; line-height: 1.5; color: var(--text-soft); }

/* --------------------------------------------------------- content panel -- */
/* Non-gallery rooms (services, rate card, packages…) float a scrollable
   panel in the middle of the 3D space. */
.panel {
  position: absolute; left: 50%; top: 50%;
  transform: translate3d(-50%, -50%, 0);
  width: min(1120px, 92vw);
  max-height: min(72vh, 720px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.028));
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(26px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 50px 110px -40px rgba(0,0,0,.95);
  z-index: 5;
  scrollbar-width: thin;
}
.panel::-webkit-scrollbar { width: 8px; }
.panel::-webkit-scrollbar-track { background: rgba(255,255,255,.05); border-radius: 99px; }
.panel::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 70%, white);
  border-radius: 99px; border: 0;
}

/*
 * When a panel has more below the fold, fade its bottom edge. Without this the
 * content looks chopped off rather than continued, which is the single most
 * common way a scrollable box gets mistaken for broken layout.
 */
.panel.has-more {
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 46px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 46px), transparent 100%);
}
.panel-more {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--safe-bottom) - 2.6rem);
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .8rem; border-radius: var(--r-pill);
  background: rgba(4,8,34,.8); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ice-200);
  pointer-events: none; z-index: 6;
  opacity: 0; transition: opacity .35s var(--ease);
}
.room--panel.shows-more .panel-more { opacity: 1; animation: nudge 1.8s var(--ease-in-out) infinite; }
@keyframes nudge { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(3px); } }

/* In a panel room the panel is an ordinary flex child, so it simply fills
   what the heading left behind. */
.room--panel .panel {
  position: static;
  inset: auto;
  transform: none;
  width: min(1120px, 100%);
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

/*
 * The entrance keeps its panel to the side so the headline stays the hero.
 * It is bounded above the guide's corner rather than centred, so the two can
 * never share pixels on a short screen.
 */
.room--intro .panel {
  left: auto; right: var(--gutter);
  top: var(--safe-top);
  bottom: calc(var(--safe-bottom) + var(--guide-w) + 5.5rem);
  transform: none;
  width: min(380px, 32vw);
  max-height: none;
}

/* ------------------------------------------------------------ the guide -- */
/*
 * The mascot has the bottom-right corner to itself — clear of the copy column
 * on the left, clear of the scrub hint and dial below. Bubble sits to its left,
 * so the pair reads inward toward the room rather than off the edge.
 */
.guide {
  position: absolute;
  right: var(--gutter);
  bottom: calc(var(--safe-bottom) + .5rem);
  z-index: 8;
  display: flex; flex-direction: row-reverse; align-items: flex-end; gap: .75rem;
  max-width: calc(100vw - var(--gutter) * 2);
  pointer-events: none;
}
.guide__figure {
  width: var(--guide-w);
  flex: none;
  filter: drop-shadow(0 26px 40px rgba(0,0,0,.7));
  animation: float-y 6.5s var(--ease-in-out) infinite;
  transition: opacity .5s, transform .6s var(--ease);
}
.guide__bubble {
  position: relative;
  max-width: var(--guide-bubble-w);
  margin-bottom: clamp(14px, 4vmin, 38px);
  padding: .85rem 1.1rem;
  background: rgba(255,255,255,.96);
  color: var(--navy-850);
  border-radius: 16px 16px 4px 16px;
  font-size: .88rem; line-height: 1.55;
  box-shadow: 0 22px 46px -18px rgba(0,0,0,.8);
  pointer-events: auto;
  transform-origin: 100% 100%;
  animation: bubble-pop .5s var(--ease-settle) both;
}
/* Pops from the mascot's shoulder rather than simply fading up. */
@keyframes bubble-pop {
  from { opacity: 0; transform: translateY(8px) scale(.86); }
  60%  { opacity: 1; }
  to   { opacity: 1; transform: none; }
}
.guide.is-quiet .guide__figure { transform: scale(.94); }
/* tail points right, toward the mascot */
.guide__bubble::after {
  content: ""; position: absolute; right: -8px; bottom: 0;
  border: 8px solid transparent; border-left-color: rgba(255,255,255,.96); border-bottom: 0;
}
.guide__name {
  display: block;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--royal-600); margin-bottom: .25rem;
}
.guide__close {
  position: absolute; top: -9px; left: -9px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy-850); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
}
.guide.is-quiet .guide__bubble { display: none; }
.guide.is-quiet .guide__figure { opacity: .55; }

/*
 * In a panel room the content fills the middle of the screen, so a floating
 * mascot would sit on top of the rate card. The guide docks to the bottom-left
 * as a single-line strip instead, inside the band the dial already owns.
 */
.tour.room-is-panel .guide {
  right: auto;
  left: var(--gutter);
  bottom: calc(var(--safe-bottom) - 2.4rem);
  flex-direction: row;
  align-items: center;
  gap: .5rem;
  max-width: min(560px, 46vw);
}
.tour.room-is-panel .guide__figure { width: clamp(34px, 4vmin, 46px); }
.tour.room-is-panel .guide__bubble {
  margin-bottom: 0;
  max-width: none;
  padding: .45rem .7rem;
  font-size: .78rem;
  border-radius: 11px;
}
/*
 * The clamp belongs on the narration, not on the bubble: the bubble's first
 * line box is the "Mr. Elegance" label, so clamping the bubble spent the
 * allowance on the label and sliced the sentence in half mid-line.
 */
.tour.room-is-panel #guideText {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tour.room-is-panel .guide__bubble::after { display: none; }
.tour.room-is-panel .guide__name { display: none; }
.tour.room-is-panel .guide__close { top: -7px; left: auto; right: -7px; }
/* nothing to scrub in a panel room */
.tour.room-is-panel .scrub-hint { display: none; }

/* ------------------------------------------------------------------ HUD -- */
.hud { position: absolute; inset: 0; z-index: 9; pointer-events: none; }
.hud > * { pointer-events: auto; }

.hud__top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: clamp(.9rem, 2vw, 1.5rem) clamp(1rem, 3vw, 2.2rem);
}

.hud__brand { display: flex; align-items: center; gap: .7rem; }
.hud__brand img { height: clamp(26px, 3.2vh, 34px); width: auto; filter: drop-shadow(0 4px 14px rgba(0,0,0,.6)); }

.hud__tools { display: flex; align-items: center; gap: .45rem; }

.tool {
  position: relative;
  width: 40px; height: 40px;
  /*
   * Flex, not grid. As a grid the icon and the label of a .tool--wide became
   * two rows — 47px of content inside a 40px box that clips, which is what cut
   * the "Book" and "Exit" labels in half on every screen.
   */
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  border-radius: 12px;
  background: rgba(6,10,40,.55);
  border: 1px solid var(--line);
  color: var(--ice-100);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: background .25s, border-color .25s, color .25s, transform .3s var(--ease-settle);
}
/* A ring blooms out of the button on press — cheap, and it makes every tap
   feel acknowledged even before the state changes. */
.tool::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255,255,255,.4), transparent 62%);
  opacity: 0; transform: scale(.4);
  transition: opacity .45s var(--ease), transform .45s var(--ease-out-soft);
}
.tool:active::before { opacity: .55; transform: scale(1); transition-duration: 0s, 0s; }
.tool:hover { background: rgba(47,107,255,.28); border-color: var(--blue-400); color: #fff; transform: translateY(-2px); }
.tool:active { transform: translateY(0) scale(.94); }
.tool.is-on { background: var(--blue-500); border-color: transparent; color: #fff; }
.tool--wide { width: auto; padding: 0 .95rem; gap: .45rem; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.tool svg { flex: none; }
/* The row itself must be able to wrap rather than push off the screen edge. */
.hud__tools { flex-wrap: wrap; justify-content: flex-end; row-gap: .4rem; }

/* room progress + dial */
.hud__bottom {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 clamp(1rem, 3vw, 2.2rem) clamp(1rem, 2.4vw, 1.6rem);
  display: grid; gap: .75rem;
}

.dial {
  display: flex; align-items: center; gap: .3rem;
  padding: .4rem;
  border-radius: var(--r-pill);
  background: rgba(4,8,34,.6);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  overflow-x: auto;
  scrollbar-width: none;
  justify-self: center;
  max-width: 100%;
}
.dial::-webkit-scrollbar { display: none; }

.dial__item {
  position: relative;
  display: flex; align-items: center; gap: .45rem;
  padding: .5rem .85rem;
  border-radius: var(--r-pill);
  font-size: .8rem; font-weight: 600; white-space: nowrap;
  color: var(--text-soft);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.dial__item:hover { color: #fff; background: var(--surface-2); }
.dial__item.is-active { color: #fff; background: var(--accent); box-shadow: 0 8px 22px -10px var(--accent); }
.dial__item .n { font-family: var(--font-mono); font-size: .66rem; opacity: .75; }
.dial__item.is-visited::after {
  content: ""; position: absolute; right: 7px; top: 7px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--success);
}

/* prev / next arrows */
.nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: clamp(44px, 5vw, 56px); height: clamp(44px, 5vw, 56px);
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(6,10,40,.55);
  border: 1px solid var(--line);
  color: #fff;
  backdrop-filter: blur(14px);
  z-index: 9;
  transition: background .25s, transform .3s var(--ease-back), border-color .25s, opacity .25s;
}
.nav-arrow:hover { background: var(--accent); border-color: transparent; }
.nav-arrow--prev { left: clamp(.6rem, 1.6vw, 1.4rem); }
.nav-arrow--next { right: clamp(.6rem, 1.6vw, 1.4rem); }
.nav-arrow--prev:hover { transform: translateY(-50%) translateX(-3px); }
.nav-arrow--next:hover { transform: translateY(-50%) translateX(3px); }
.nav-arrow[disabled] { opacity: .25; pointer-events: none; }

.progress-line {
  position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: rgba(143,180,255,.14);
  z-index: 10;
}
.progress-line i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--royal-600), var(--accent));
  box-shadow: 0 0 12px var(--accent);
  transition: width .6s var(--ease);
}

/* rail scrub hint */
.scrub-hint {
  justify-self: center;
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-dim);
  transition: opacity .5s;
}
.scrub-hint kbd {
  padding: .12rem .4rem; border-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-family: inherit; font-size: .66rem; color: var(--ice-200);
}
.scrub-hint.is-hidden { opacity: 0; }

/* ----------------------------------------------------------- work detail -- */
.detail {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: rgba(2,4,18,.82);
  backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.detail.is-open { opacity: 1; visibility: visible; }

.detail__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  width: min(1120px, 100%);
  max-height: 90vh;
  padding: clamp(1.1rem, 2.6vw, 2rem);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(14,22,70,.96), rgba(4,8,32,.98));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(30px) scale(.965);
  opacity: .4;
  transition: transform .55s var(--ease-settle), opacity .35s var(--ease);
  overflow: hidden;
}
.detail.is-open .detail__panel { transform: none; opacity: 1; }

/* The copy column arrives just behind the image. */
.detail-in { animation: detail-rise .5s var(--ease-out-soft) both; animation-delay: var(--in-delay, 0ms); }
@keyframes detail-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.detail__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #04081F;
  display: grid; place-items: center;
  min-height: 260px;
}
.detail__media img { width: 100%; height: 100%; max-height: 76vh; object-fit: contain; }

.detail__body { overflow-y: auto; padding-right: .4rem; scrollbar-width: thin; }
.detail__body::-webkit-scrollbar { width: 5px; }
.detail__body::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }

.detail__title { font-size: var(--step-2); margin: .5rem 0 .6rem; }
.detail__summary { color: var(--text-soft); margin-bottom: 1.2rem; }

.detail__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .8rem; margin-bottom: 1.3rem; }
.fact { padding: .7rem .85rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.fact dt { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.fact dd { margin: .2rem 0 0; font-weight: 600; font-size: .92rem; }

.swatches { display: flex; gap: .4rem; margin-bottom: 1.3rem; }
.swatch { width: 30px; height: 30px; border-radius: 9px; border: 1px solid rgba(255,255,255,.25); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }

.detail__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }

.detail__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(3,6,28,.75); border: 1px solid var(--line);
  color: #fff; display: grid; place-items: center;
  transition: background .25s, transform .25s var(--ease-back);
}
.detail__close:hover { background: var(--danger); transform: rotate(90deg); }

.like-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.15rem; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; font-size: .9rem; color: var(--text);
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease-back);
}
.like-btn:hover { border-color: #FF6B81; color: #FF9AAB; transform: translateY(-2px); }
.like-btn.is-liked { background: rgba(255,71,87,.18); border-color: #FF4757; color: #FF9AAB; }
.like-btn.is-liked svg { fill: currentColor; }

/* ------------------------------------------------------------ shortcuts -- */
.keys {
  position: fixed; inset: 0; z-index: 45;
  display: grid; place-items: center;
  background: rgba(2,4,18,.8); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.keys.is-open { opacity: 1; visibility: visible; }
.keys__card { width: min(520px, 92vw); padding: clamp(1.3rem, 3vw, 2rem); border-radius: var(--r-xl); background: var(--navy-850); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); }
.keys__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.keys__row:last-child { border-bottom: 0; }
.keys kbd {
  display: inline-block; padding: .22rem .55rem; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: .76rem; color: var(--ice-100);
}

/* ------------------------------------------------------------ entrance --- */
.gateway {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 34%, #0D1F6E 0%, #03061C 66%);
  transition: opacity .9s var(--ease), visibility .9s, transform .9s var(--ease);
}
.gateway.is-gone { opacity: 0; visibility: hidden; transform: scale(1.08); pointer-events: none; }

.gateway__inner {
  position: relative; z-index: 2;
  text-align: center; display: grid; justify-items: center; gap: 1.4rem;
  padding: 2rem; max-width: 760px;
}
.gateway__mark { width: clamp(96px, 15vmin, 160px); filter: drop-shadow(0 0 46px rgba(47,107,255,.7)); animation: float-y 6s var(--ease-in-out) infinite; }
.gateway__title { font-size: var(--step-5); line-height: .95; }
.gateway__sub { color: var(--text-soft); font-size: var(--step-1); max-width: 46ch; }
.gateway__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: .6rem; }
.gateway__note { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }

/* The entrance assembles itself once the preloader lifts, rather than being
   fully formed the instant the door opens. */
.gateway__inner > * { animation: gate-in .8s var(--ease-out-soft) both; }
.gateway__inner > *:nth-child(1) { animation-delay: .10s; }
.gateway__inner > *:nth-child(2) { animation-delay: .20s; }
.gateway__inner > *:nth-child(3) { animation-delay: .28s; }
.gateway__inner > *:nth-child(4) { animation-delay: .36s; }
.gateway__inner > *:nth-child(5) { animation-delay: .46s; }
.gateway__inner > *:nth-child(6) { animation-delay: .56s; }

@keyframes gate-in {
  from { opacity: 0; transform: translateY(20px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* The mascot slides in from the edge as if stepping into frame. */
@keyframes mascot-in {
  from { opacity: 0; transform: translate3d(60px, 26px, 0) scale(.96); }
  to   { opacity: .95; transform: none; }
}

.gateway__mascot {
  position: absolute; right: clamp(-4vw, 2vw, 6vw); bottom: 0;
  width: clamp(200px, 34vmin, 460px);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.75));
  opacity: .95;
  pointer-events: none;
  z-index: 1;
  animation: mascot-in 1.1s var(--ease-out-soft) .35s both;
}

/*
 * The mascot needs a column of its own. Once the viewport is too narrow to
 * hold 760px of copy AND the figure side by side, the copy stops widening and
 * steps left out of its way; narrower still and the figure becomes a faint
 * backdrop behind the copy rather than a shape sitting on top of the words.
 */
@media (max-width: 1180px) and (min-width: 861px) {
  .gateway { place-items: center start; }
  .gateway__inner {
    margin-left: clamp(1.5rem, 5vw, 4rem);
    max-width: min(600px, calc(100vw - 34vmin - 6rem));
  }
}
@media (max-width: 860px) {
  .gateway__mascot {
    right: 50%;
    width: min(420px, 96vw);
    filter: drop-shadow(0 30px 60px rgba(0,0,0,.75)) saturate(.7);
    /* Its own keyframe: `mascot-in` fills forwards to opacity .95 / no
       transform, which would win over anything declared here. */
    animation: mascot-behind 1.1s var(--ease-out-soft) .35s both;
  }
  .gateway__inner { padding-inline: 1.5rem; }
}
@keyframes mascot-behind {
  from { opacity: 0; transform: translate3d(50%, 26px, 0) scale(.96); }
  to   { opacity: .2; transform: translateX(50%); }
}

/* ------------------------------------------------------------ responsive -- */
/* ==========================================================================
   COMPACT LAYOUT — phones and tablets, up to 1024px.
   Below this width there is not enough room for a left copy column, a rail and
   a floating mascot side by side, so the room becomes a vertical stack:
       HUD · copy · artwork or panel · guide strip · dial
   Each band is bounded, so none can grow into the one below it.
   ========================================================================== */
@media (max-width: 1024px) {
  .tour {
    perspective: 1000px;
    --safe-top: 68px;
    --safe-bottom: clamp(146px, 19vh, 178px);
    --gutter: clamp(1rem, 3vw, 2rem);
  }

  .room__intro {
    left: var(--gutter); right: var(--gutter);
    top: var(--safe-top);
    bottom: auto;
    width: auto;
    max-height: 26vh;
    justify-content: flex-start;
    text-align: center;
  }
  .room__intro .eyebrow { justify-content: center; }
  .room__intro .eyebrow::before { display: none; }
  .room__title { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: .45rem; }
  .room__sub {
    margin-inline: auto; font-size: .9rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .room__meta { justify-content: center; margin-top: .8rem; }

  /* rail sits centred in the room again — there is no side column to clear */
  .rail { top: 44%; transform: none; }
  .work { width: clamp(150px, 25vw, 210px); }

  /*
   * With no side copy column the panel runs nearly full width, so the arrows
   * would sit on top of it. They join the bottom bar either side of the dial.
   */
  .nav-arrow {
    top: auto; bottom: .45rem; transform: none;
    width: 44px; height: 44px;
  }
  .nav-arrow--prev { left: .5rem; }
  .nav-arrow--next { right: .5rem; }
  .nav-arrow--prev:hover, .nav-arrow--next:hover { transform: none; }
  .hud__bottom { padding-inline: 3.6rem; }

  /* the mascot becomes a slim strip, clear of the dial beneath it */
  .guide {
    left: var(--gutter); right: var(--gutter);
    bottom: calc(var(--safe-bottom) - 4rem);
    flex-direction: row; align-items: center; gap: .55rem;
    max-width: none;
  }
  .guide__figure { width: clamp(44px, 7vw, 62px); }
  .guide__bubble {
    flex: 1; min-width: 0; max-width: none; margin-bottom: 0;
    font-size: .8rem; line-height: 1.45;
    padding: .6rem .8rem; border-radius: 12px;
  }
  .guide__bubble #guideText {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .guide__bubble::after { display: none; }
  .guide__close { top: -8px; left: auto; right: -8px; }

  /* The guide is already a full-width strip here, so the desktop panel-room
     docking must not narrow it back down. */
  .tour.room-is-panel .guide {
    left: var(--gutter); right: var(--gutter);
    max-width: none;
    bottom: calc(var(--safe-bottom) - 4rem);
  }
  .tour.room-is-panel .guide__figure { width: clamp(44px, 7vw, 62px); }
  .tour.room-is-panel .guide__bubble { font-size: .8rem; padding: .6rem .8rem; }
  .tour.room-is-panel #guideText { -webkit-line-clamp: 2; }

  /* the guide strip lives inside the bottom band, so the panel must clear it */
  .room--panel { padding: var(--safe-top) var(--gutter) calc(var(--safe-bottom) + 3.2rem); }
  .room--panel .room__intro { max-height: none; }
  .panel { width: 100%; }

  /* no space for these at this size */
  .scrub-hint { display: none; }
  .room--intro .panel { display: none; }

  .detail__panel { grid-template-columns: 1fr; max-height: 88vh; }
  .detail__media { max-height: 42vh; }
  /* .gateway__mascot is handled by its own width queries above, which keep it
     clear of the copy rather than fading it out underneath. */
}

/*
 * Short-and-wide screens (laptops at 1366x700 and below) are the tightest
 * case: full-height chrome top and bottom with very little between. Pull the
 * reserved bands in and let the copy shrink rather than collide.
 */
@media (max-height: 760px) and (min-width: 1025px) {
  .tour {
    --safe-top: 74px;
    --safe-bottom: 122px;
    --guide-w: clamp(76px, 10vmin, 112px);
    --guide-bubble-w: min(260px, 26vw);
  }
  .room__title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: .5rem; }
  .room__sub { font-size: .9rem; }
  .room__meta { margin-top: .9rem; }
  .rail { top: 39%; }
  .guide__bubble { font-size: .8rem; padding: .7rem .9rem; }

  /*
   * In a panel room every pixel the heading takes is a pixel the rate card or
   * service grid loses. The subtitle restates what the panel already shows, so
   * on a short screen it goes and the panel gets the height instead.
   */
  .room--panel .room__sub { display: none; }
  .room--panel .room__title { font-size: clamp(1.35rem, 2.4vw, 1.85rem); margin-bottom: .35rem; }
  .room--panel .room__intro .eyebrow { margin-bottom: .4rem; }
  .room--panel .room__meta { margin-top: .6rem; }
  .room--panel .panel { padding: clamp(.9rem, 2vw, 1.5rem); }
}

/* Anything genuinely short: drop the heading to a single line. */
@media (max-height: 620px) and (min-width: 1025px) {
  .room--panel .room__meta { display: none; }
  .room--panel .room__title { font-size: 1.25rem; }
  .tour { --safe-top: 62px; }
}

/*
 * Compact AND short — a small laptop or a tablet in landscape. Copy, artwork,
 * mascot and dial all have to fit in well under 700px of height, so the copy
 * band tightens and the artwork gets smaller rather than anything overlapping.
 */
@media (max-width: 1024px) and (max-height: 720px) {
  .room__intro { max-height: 20vh; }
  .room__sub { -webkit-line-clamp: 2; }
  .rail { top: 50%; }
  .work { width: clamp(140px, 20vw, 178px); }
  .work__cat { display: none; }
  .work__plate { margin-top: .55rem; }
}

/* Phone-only refinements on top of the compact layout. */
@media (max-width: 720px) {
  .tour {
    perspective: 820px;
    --gutter: 1rem;
    --safe-top: 64px;
  }

  .room__intro { max-height: 24vh; }
  .work { width: clamp(148px, 44vw, 200px); }
  .guide__figure { width: 44px; }
  .guide__bubble { font-size: .78rem; padding: .55rem .75rem; }

  .nav-arrow { bottom: .35rem; width: 42px; height: 42px; }
  .nav-arrow--prev { left: .4rem; }
  .nav-arrow--next { right: .4rem; }
  .hud__bottom { padding-inline: 3.4rem; }

  .hud__brand span { display: none; }
  .dial__item span:not(.n) { display: none; }
  .dial__item { padding: .5rem .7rem; }

  .room__backdrop { font-size: 22vw; }
}

/* people who ask for less motion get a calm, static gallery */
@media (prefers-reduced-motion: reduce) {
  .room.is-entering, .room.is-leaving { animation: fade-in .3s both; }
  .tour__dust, .tour__shafts { display: none; }
  .room__emblem, .guide__figure, .gateway__mark { animation: none; }
  /* no staggered hanging, no travel — everything simply is */
  .work .work__frame,
  .work .work__plate { opacity: 1; animation: none !important; }
  .detail-in { animation: none !important; opacity: 1; transform: none; }
  .detail__panel { transition-duration: .01ms; }
  .room.is-active .room__intro > *,
  .gateway__inner > *,
  .gateway__mascot { animation: none !important; opacity: 1; transform: none; }
  @media (max-width: 860px) {
    .gateway__mascot { opacity: .2; transform: translateX(50%); }
  }
  .guide__bubble { animation: none; }
}

/* explicit low-motion mode toggled from the HUD */
.tour.is-flat { perspective: none; }
.tour.is-flat .room__floor,
.tour.is-flat .room__wall,
.tour.is-flat .room__emblem,
.tour.is-flat .tour__dust,
.tour.is-flat .tour__shafts,
.tour.is-flat .work__glow { display: none; }
.tour.is-flat .rail {
  position: absolute; inset: auto 0 0 0; top: 46%;
  display: flex; gap: 1.2rem; align-items: flex-start;
  overflow-x: auto; padding: 0 clamp(1rem, 5vw, 4rem) 1rem;
  height: auto; transform: none !important;
}
.tour.is-flat .work { position: relative !important; left: auto !important; top: auto !important; transform: none !important; flex: 0 0 auto; opacity: 1 !important; filter: none !important; }
.tour.is-flat .room { transform: none !important; }
.tour.is-flat .work .work__frame,
.tour.is-flat .work .work__plate { opacity: 1; animation: none; }
.tour.is-flat .room.is-entering, .tour.is-flat .room.is-leaving { animation: fade-in .35s both; }
