@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/poppins-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/poppins-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/poppins-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/poppins-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/poppins-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-500italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DESIGN TOKENS
   Brand red stays the signature colour; it now sits on dark smoked glass with
   a warm champagne accent instead of filling every surface. */
:root {
  --brand: #A90F00;
  --brand-deep: #6E0900;
  --brand-glow: rgba(169, 15, 0, 0.55);
  --accent: #E6D2AE;          /* champagne: indices, eyebrows, active marks */
  --ink: #150d0b;             /* page / loading background */
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.68);
  --glass: rgba(22, 14, 12, 0.5);
  --glass-strong: rgba(22, 14, 12, 0.78);
  --glass-hover: rgba(255, 255, 255, 0.12);
  --hairline: rgba(255, 255, 255, 0.2);
  --hairline-strong: rgba(255, 255, 255, 0.42);
  --blur: blur(18px) saturate(150%);
  --shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.25);
  --font-display: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --font-ui: 'Poppins', 'Arial', 'Helvetica', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 20px;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --glass: rgba(22, 14, 12, 0.86);
    --glass-strong: rgba(22, 14, 12, 0.94);
  }
}

html, body {
  height: 100%;
  margin: 0;
  background-color: var(--ink);
}

body {
  font-family: var(--font-ui);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#tour-root {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#tour-root:fullscreen,
#tour-root:-webkit-full-screen {
  width: 100%;
  height: 100%;
  background-color: var(--ink);
}

/* Soft cinematic vignette so the glass chrome reads against bright skies and
   floors. Purely visual -- clicks pass straight through to the panorama. */
#tour-root::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10, 6, 5, 0.42) 0%, rgba(10, 6, 5, 0) 16%),
    linear-gradient(to top, rgba(10, 6, 5, 0.5) 0%, rgba(10, 6, 5, 0) 24%);
}

/* Shared glass surface */
.top-bar-controls__btn,
#back-button,
.scene-nav-toggle,
.scene-nav,
.scene-content-panel,
.rotate-hint,
.content-overlay__inner {
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

/* Shared round control button */
.top-bar-controls__btn,
#back-button,
.scene-nav-toggle {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background-color: var(--glass);
  color: var(--text);
  font: inherit;
  box-sizing: border-box;
  cursor: pointer;
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.5);
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.top-bar-controls__btn:hover,
.top-bar-controls__btn:focus-visible,
#back-button:hover,
#back-button:focus-visible,
.scene-nav-toggle:hover,
.scene-nav-toggle:focus-visible,
.scene-nav-toggle.is-open {
  background-color: var(--brand);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 26px -6px var(--brand-glow);
}

.top-bar-controls__btn:active,
#back-button:active,
.scene-nav-toggle:active {
  transform: scale(0.94);
}

.top-bar-controls__btn:focus-visible,
#back-button:focus-visible,
.scene-nav-toggle:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.top-bar-controls {
  position: absolute;
  top: var(--gutter);
  right: calc(var(--gutter) + 56px); /* leave room for the scene-nav toggle */
  z-index: 1201;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.top-bar-controls[hidden] {
  display: none;
}

.top-bar-controls__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-bar-controls__btn[hidden] {
  display: none;
}

.top-bar-controls__icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
}

.top-bar-controls__btn .top-bar-controls__icon--enter { display: block; }
.top-bar-controls__btn .top-bar-controls__icon--exit  { display: none; }

.top-bar-controls__btn.is-fullscreen .top-bar-controls__icon--enter { display: none; }
.top-bar-controls__btn.is-fullscreen .top-bar-controls__icon--exit  { display: block; }

/* OPTIONAL: ROTATE HINT START */
.rotate-hint {
  position: fixed;
  /* sits on its own row below the round tour controls, so it can use the full
     width without colliding with them */
  top: calc(76px + env(safe-area-inset-top));
  left: calc(12px + env(safe-area-inset-left));
  right: calc(12px + env(safe-area-inset-right));
  z-index: 11000;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  width: fit-content;
  max-width: none;
  margin: 0 auto;
  padding: 7px 7px 7px 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background-color: var(--glass-strong);
  box-shadow: var(--shadow);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.rotate-hint[hidden] {
  display: none;
}

.rotate-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.rotate-hint__icon {
  flex: 0 0 auto;
  color: var(--accent);
  animation: rotate-hint-rotate 2.4s ease-in-out infinite;
}

.rotate-hint__text {
  flex: 1 1 auto;
  min-width: 0;
}

.rotate-hint__action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background-color: var(--brand);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease);
}

.rotate-hint__action[hidden] {
  display: none;
}

.rotate-hint__action:hover,
.rotate-hint__action:focus-visible {
  background-color: color-mix(in srgb, var(--brand) 82%, #ffffff 18%);
}

.rotate-hint__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background-color: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.rotate-hint__close:hover,
.rotate-hint__close:focus-visible {
  background-color: var(--glass-hover);
  color: var(--text);
}

.rotate-hint__action:focus-visible,
.rotate-hint__close:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

@keyframes rotate-hint-rotate {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-90deg);
  }
  50% {
    transform: rotate(-90deg);
  }
  75% {
    transform: rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rotate-hint {
    transition: none;
  }

  .rotate-hint__icon {
    animation: none;
    transform: rotate(-90deg);
  }
}
/* OPTIONAL: ROTATE HINT END */

#panorama {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-color: var(--ink);
}

/* Pannellum chrome: loading box and right-click "about" message */
#panorama .pnlm-load-box {
  width: 220px;
  height: auto;
  margin: -60px 0 0 -110px;
  padding: 22px 20px 20px;
  box-sizing: border-box;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

#panorama .pnlm-load-box p {
  margin: 0 0 14px;
}

#panorama .pnlm-lbox {
  width: 100%;
  height: 2px;
  margin: 0 0 12px;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
}

#panorama .pnlm-lbar-fill {
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

#panorama .pnlm-lmsg {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: none;
}

#panorama .pnlm-loading {
  display: none !important;
}

#panorama .pnlm-about-msg {
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  font-family: var(--font-ui);
  font-size: 0.8rem;
}

#panorama .pnlm-about-msg a:link,
#panorama .pnlm-about-msg a:visited {
  color: var(--text);
}

#back-button {
  position: absolute;
  top: var(--gutter);
  left: var(--gutter);
  z-index: 1201;
  display: none;
  align-items: center;
  justify-content: center;
}

#back-button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

#back-button:hover svg {
  transform: translateX(-2px);
}


/* Info hotspot flags: a glass pennant on a hairline pole
   The hotspot div is a zero-size point at the hotspot. The pole rises 80px
   from it (100px with .tall) and the flag's pole-side edge sits on the pole
   (.left hangs it the other way); keep that geometry so existing placements
   stay pinned. The red bar on the pole side is the flag's hoist.
   The reveal (pole rises, flag unfurls) only applies once the label script
   has marked the viewer .labels-ready, so flags still show without it. */
.pnlm-hotspot-base.custom-hotspot.hotspot-info {
  position: absolute;
  transform: translate(-50%, -50%);
}

/* Pole */
.pnlm-hotspot-base.custom-hotspot.hotspot-info::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 80px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7));
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.55);
  transform: translateX(-0.5px);
  transform-origin: 50% 100%;
}

.pnlm-hotspot-base.custom-hotspot.hotspot-info.tall::before {
  height: 100px;
}

/* Foot: a white point with a soft halo, like the scene markers' core */
.pnlm-hotspot-base.custom-hotspot.hotspot-info::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 2px 8px rgba(0, 0, 0, 0.55);
  transform: translateX(-50%);
}

.pnlm-hotspot-base.custom-hotspot.hotspot-info.pnlm-tooltip {
  padding: 0;
  background: none;
  border: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Info flags aren't links. Pannellum still adds .pnlm-pointer to the hotspot
   and its flag because the analytics click handler counts as a handler, and
   the pole and foot (pseudo-elements of the hotspot div) inherit it. */
.pnlm-hotspot-base.custom-hotspot.hotspot-info.pnlm-pointer,
.pnlm-hotspot-base.custom-hotspot.hotspot-info.pnlm-tooltip > span.pnlm-pointer {
  cursor: default;
}

/* Flag */
.pnlm-hotspot-base.custom-hotspot.hotspot-info.pnlm-tooltip > span {
  visibility: visible !important;
  position: absolute !important;
  bottom: 80px !important;
  left: -1.5px !important;
  width: auto !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
  padding: 6px 16px 7px 11px;
  box-sizing: border-box;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--hairline-strong);
  border-left: 3px solid var(--brand);
  border-radius: 0 999px 999px 0;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  max-width: none;
  text-align: left;
  clip-path: inset(-24px -24px -24px -24px);
  transition: none;
}

.pnlm-hotspot-base.custom-hotspot.hotspot-info.pnlm-tooltip.tall > span {
  bottom: 100px !important;
}

.pnlm-hotspot-base.custom-hotspot.hotspot-info.pnlm-tooltip.left > span {
  left: auto !important;
  right: -1.5px !important;
  padding: 6px 11px 7px 16px;
  text-align: right;
  border-left: 1px solid var(--hairline-strong);
  border-right: 3px solid var(--brand);
  border-radius: 999px 0 0 999px;
}

.pnlm-hotspot-base.custom-hotspot.hotspot-info.pnlm-tooltip > span::after {
  display: none !important;
  content: none !important;
}

/* Reveal: hidden until scrolled into view, then the pole rises from its foot
   and the flag unfurls away from the pole */
.labels-ready .pnlm-hotspot-base.custom-hotspot.hotspot-info::before {
  transform: translateX(-0.5px) scaleY(0);
  transition: transform 0.2s ease;
}

.labels-ready .pnlm-hotspot-base.custom-hotspot.hotspot-info::after {
  transform: translateX(-50%) scale(0);
  transition: transform 0.2s ease;
}

.labels-ready .pnlm-hotspot-base.custom-hotspot.hotspot-info.pnlm-tooltip > span {
  opacity: 0;
  clip-path: inset(-24px 100% -24px -24px);
  transition: opacity 0.2s ease, clip-path 0.2s ease;
}

.labels-ready .pnlm-hotspot-base.custom-hotspot.hotspot-info.left.pnlm-tooltip > span {
  clip-path: inset(-24px -24px -24px 100%);
}

.labels-ready .pnlm-hotspot-base.custom-hotspot.hotspot-info.is-label-revealed::after {
  transform: translateX(-50%) scale(1);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) var(--reveal-delay, 0ms);
}

.labels-ready .pnlm-hotspot-base.custom-hotspot.hotspot-info.is-label-revealed::before {
  transform: translateX(-0.5px) scaleY(1);
  transition: transform 0.5s var(--ease) calc(var(--reveal-delay, 0ms) + 80ms);
}

.labels-ready .pnlm-hotspot-base.custom-hotspot.hotspot-info.is-label-revealed.pnlm-tooltip > span {
  opacity: 1;
  clip-path: inset(-24px -24px -24px -24px);
  transition:
    opacity 0.3s ease calc(var(--reveal-delay, 0ms) + 380ms),
    clip-path 0.7s var(--ease) calc(var(--reveal-delay, 0ms) + 380ms);
}

@media screen and (max-width: 480px) {
  .pnlm-hotspot-base.custom-hotspot.hotspot-info.pnlm-tooltip > span {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .labels-ready .pnlm-hotspot-base.custom-hotspot.hotspot-info::before,
  .labels-ready .pnlm-hotspot-base.custom-hotspot.hotspot-info::after,
  .labels-ready .pnlm-hotspot-base.custom-hotspot.hotspot-info.is-label-revealed::before,
  .labels-ready .pnlm-hotspot-base.custom-hotspot.hotspot-info.is-label-revealed::after {
    transition: none;
  }

  .labels-ready .pnlm-hotspot-base.custom-hotspot.hotspot-info.pnlm-tooltip > span,
  .labels-ready .pnlm-hotspot-base.custom-hotspot.hotspot-info.left.pnlm-tooltip > span,
  .labels-ready .pnlm-hotspot-base.custom-hotspot.hotspot-info.is-label-revealed.pnlm-tooltip > span {
    clip-path: inset(-24px -24px -24px -24px);
    transition: opacity 0.3s ease;
  }
}

/* Scene hotspot: a glass lens with a red core and a slow halo */
.pnlm-hotspot-base.custom-hotspot.hotspot-scene {
  position: absolute;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.pnlm-hotspot-base.custom-hotspot.hotspot-scene::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  background:
    radial-gradient(circle, #ffffff 0 3px, transparent 3.5px),
    radial-gradient(circle, var(--brand) 0 9px, rgba(22, 14, 12, 0.35) 9.5px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.15);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.pnlm-hotspot-base.custom-hotspot.hotspot-scene:hover::before {
  transform: translate(-50%, -50%) scale(1.18);
  box-shadow: 0 6px 22px var(--brand-glow), 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.pnlm-hotspot-base.custom-hotspot.hotspot-scene::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: hotspot-scene-pulse 2.6s var(--ease) infinite;
}

@keyframes hotspot-scene-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
  70%, 100% {
    transform: translate(-50%, -50%) scale(2.3);
    opacity: 0;
  }
}

/* Scene labels: always-visible glass labels on a hairline leader.
   The script in index.html (HOTSPOT LABELS) picks a side for each label
   (data-label) and a leader length (--stem) so labels never overlap; the CSS
   only renders that choice. The span's untransformed box starts at the marker
   centre, so transform-origin 0 0 makes the reveal grow out of the marker. */
.hotspot-scene.pnlm-tooltip > span {
  --stem: 12px;
  --gap: 16px; /* marker radius */
  visibility: visible;
  position: absolute;
  top: 50% !important;
  left: 50% !important;
  bottom: auto !important;
  width: auto !important;
  max-width: none;
  margin: 0 !important;
  padding: 6px 13px 7px;
  box-sizing: border-box;
  border: 1px solid var(--hairline-strong) !important;
  border-radius: 999px;
  background: var(--glass-strong) !important;
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6) !important;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: none;
  /* Default side if the script hasn't run: above the marker */
  transform: translate(-50%, calc(-100% - var(--gap) - var(--stem)));
  transform-origin: 0 0;
  opacity: 0;
  scale: 0.82;
  filter: blur(4px);
  transition:
    transform 0.45s var(--ease),
    opacity 0.2s ease,
    scale 0.2s ease,
    filter 0.2s ease;
}

.hotspot-scene[data-label="bottom"].pnlm-tooltip > span {
  transform: translate(-50%, calc(var(--gap) + var(--stem)));
}

.hotspot-scene[data-label="right"].pnlm-tooltip > span {
  transform: translate(calc(var(--gap) + var(--stem)), -50%);
}

.hotspot-scene[data-label="left"].pnlm-tooltip > span {
  transform: translate(calc(-100% - var(--gap) - var(--stem)), -50%);
}

/* Leader line from the marker ring to the label edge */
.hotspot-scene.pnlm-tooltip > span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 1px);
  width: 1px;
  height: var(--stem);
  margin-left: -0.5px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transform: scale(1, 0);
  transform-origin: 50% 100%;
  transition: transform 0.2s ease, width 0.45s var(--ease), height 0.45s var(--ease);
}

.hotspot-scene[data-label="bottom"].pnlm-tooltip > span::before {
  top: auto;
  bottom: calc(100% + 1px);
  transform-origin: 50% 0;
}

.hotspot-scene[data-label="right"].pnlm-tooltip > span::before,
.hotspot-scene[data-label="left"].pnlm-tooltip > span::before {
  top: 50%;
  width: var(--stem);
  height: 1px;
  margin: -0.5px 0 0;
  transform: scale(0, 1);
}

.hotspot-scene[data-label="right"].pnlm-tooltip > span::before {
  left: auto;
  right: calc(100% + 1px);
  transform-origin: 0 50%;
}

.hotspot-scene[data-label="left"].pnlm-tooltip > span::before {
  left: calc(100% + 1px);
  transform-origin: 100% 50%;
}

/* Revealed: the leader draws out of the marker, then the label settles in */
.hotspot-scene.is-label-revealed.pnlm-tooltip > span {
  opacity: 1;
  scale: 1;
  filter: none;
  pointer-events: auto;
  transition:
    transform 0.45s var(--ease),
    opacity 0.5s var(--ease) calc(var(--reveal-delay, 0ms) + 140ms),
    scale 0.6s var(--ease) calc(var(--reveal-delay, 0ms) + 140ms),
    filter 0.5s var(--ease) calc(var(--reveal-delay, 0ms) + 140ms);
}

.hotspot-scene.is-label-revealed.pnlm-tooltip > span::before {
  transform: none;
  transition:
    transform 0.4s var(--ease) var(--reveal-delay, 0ms),
    width 0.45s var(--ease),
    height 0.45s var(--ease);
}

/* No room: fold the label away until the marker is hovered */
.hotspot-scene.is-label-revealed.is-label-collapsed.pnlm-tooltip > span {
  opacity: 0;
  scale: 0.82;
  filter: blur(4px);
  pointer-events: none;
  transition: transform 0.45s var(--ease), opacity 0.25s ease, scale 0.25s ease, filter 0.25s ease;
}

.hotspot-scene.is-label-collapsed.pnlm-tooltip > span::before {
  transform: scale(0);
}

.pnlm-hotspot-base.custom-hotspot.hotspot-scene:hover {
  z-index: 5;
}

.hotspot-scene.is-label-revealed.is-label-collapsed.pnlm-tooltip:hover > span {
  opacity: 1;
  scale: 1;
  filter: none;
  transition-delay: 0ms;
}

.hotspot-scene.is-label-collapsed.pnlm-tooltip:hover > span::before {
  transform: none;
}

.hotspot-scene.is-label-revealed.pnlm-tooltip > span:hover {
  border-color: rgba(255, 255, 255, 0.7) !important;
  background: color-mix(in srgb, var(--brand) 70%, rgba(22, 14, 12, 0.8)) !important;
}

.pnlm-hotspot-base.custom-hotspot.hotspot-scene.pnlm-tooltip > span::after {
  display: none !important;
  content: none !important;
}

/* Touch: a drag that starts on a label must still pan the view, so labels
   let touches through and only the marker itself is a tap target. */
@media (hover: none) {
  .hotspot-scene.is-label-revealed.pnlm-tooltip > span {
    pointer-events: none;
  }
}

@media screen and (max-width: 480px) {
  .pnlm-hotspot-base.custom-hotspot.hotspot-scene.pnlm-tooltip > span {
    padding: 5px 11px 6px;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pnlm-hotspot-base.custom-hotspot.hotspot-scene::after {
    animation: none;
    opacity: 0;
  }

  .pnlm-hotspot-base.custom-hotspot.hotspot-scene.pnlm-tooltip > span,
  .hotspot-scene.is-label-revealed.pnlm-tooltip > span {
    scale: 1;
    filter: none;
    transition: opacity 0.3s ease;
  }

  .pnlm-hotspot-base.custom-hotspot.hotspot-scene.pnlm-tooltip > span::before {
    transform: none;
    transition: none;
  }
}

/* OPTIONAL: SCENE NAV START */
.scene-nav-toggle {
  position: absolute;
  top: var(--gutter);
  right: var(--gutter);
  z-index: 1201;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.scene-nav-toggle svg {
  display: block;
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
}

.scene-nav {
  position: fixed;
  top: 78px;
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 1200;
  width: 300px;
  max-width: calc(100vw - 40px);
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: var(--glass);
  box-shadow: var(--shadow);
  box-sizing: border-box;
  color: var(--text);
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateX(calc(100% + 24px));
  transition:
    transform 0.5s var(--ease),
    opacity 0.4s var(--ease),
    visibility 0s linear 0.5s;
  display: flex;
  flex-direction: column;
}

.scene-nav.is-open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
  transition:
    transform 0.5s var(--ease),
    opacity 0.4s var(--ease),
    visibility 0s;
}

.scene-nav__header {
  flex: 0 0 auto;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--hairline);
}

.scene-nav__eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.scene-nav__heading {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.005em;
}

.scene-nav__count {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
}

.scene-nav__count:empty {
  display: none;
}

.scene-nav__scroller {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.scene-nav__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 14px;
  overflow-y: auto;
  box-sizing: border-box;
  list-style: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scene-nav__list::-webkit-scrollbar {
  display: none;
}

.scene-nav__arrow {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0;
  border: none;
  background: linear-gradient(to bottom, rgba(22, 14, 12, 0.92) 0%, rgba(22, 14, 12, 0.6) 55%, transparent 100%);
  color: var(--accent);
  cursor: pointer;
  pointer-events: none;
}

.scene-nav__arrow.is-visible {
  display: flex;
  pointer-events: auto;
}

.scene-nav__arrow--up {
  top: 0;
}

.scene-nav__arrow--down {
  bottom: 0;
  background: linear-gradient(to top, rgba(22, 14, 12, 0.92) 0%, rgba(22, 14, 12, 0.6) 55%, transparent 100%);
}

.scene-nav__arrow:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -3px;
}

.scene-nav__arrow svg {
  display: block;
}

.scene-nav__item {
  margin: 0;
}

.scene-nav__button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.scene-nav__button:hover,
.scene-nav__button:focus-visible {
  border-color: var(--hairline-strong);
}

.scene-nav__button.is-active {
  border-color: var(--accent);
}

.scene-nav__button:not(.scene-nav__button--thumb):hover,
.scene-nav__button:not(.scene-nav__button--thumb):focus-visible,
.scene-nav__button:not(.scene-nav__button--thumb).is-active {
  background: var(--glass-hover);
}

.scene-nav__button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.scene-nav__index {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}

.scene-nav__button--thumb {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;
  min-height: 104px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: rgba(0, 0, 0, 0.3);
}

/* Legibility gradient over the photo, deepened on hover / active */
.scene-nav__button--thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(12, 7, 6, 0.88) 0%, rgba(12, 7, 6, 0.25) 55%, rgba(12, 7, 6, 0) 100%);
  transition: opacity 0.3s var(--ease);
}

/* Brand-red bar marking the scene you're standing in */
.scene-nav__button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  z-index: 3;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand-glow);
  transform: scaleY(0);
  transition: transform 0.4s var(--ease);
}

.scene-nav__button.is-active::before {
  transform: scaleY(1);
}

.scene-nav__thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.scene-nav__button--thumb .scene-nav__thumb {
  position: absolute;
  inset: 0;
  flex: none;
  width: 100%;
  height: 100%;
  border-radius: 0;
  z-index: 0;
  pointer-events: none;
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
  filter: saturate(0.9) brightness(0.92);
}

.scene-nav__button--thumb:hover .scene-nav__thumb,
.scene-nav__button--thumb:focus-visible .scene-nav__thumb,
.scene-nav__button--thumb.is-active .scene-nav__thumb {
  transform: scale(1.06);
  filter: saturate(1.05) brightness(1);
}

.scene-nav__button--thumb .scene-nav__index {
  position: absolute;
  top: 9px;
  left: 10px;
  z-index: 2;
  padding: 3px 8px 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(12, 7, 6, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.9rem;
}

.scene-nav__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-nav__button--thumb .scene-nav__label {
  position: relative;
  z-index: 2;
  padding: 0 14px 11px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

@media (max-width: 700px) {
  .scene-nav {
    top: 76px;
    right: 12px;
    bottom: 12px;
    width: 320px;
    max-width: calc(100vw - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-nav,
  .scene-nav.is-open,
  .scene-nav__button,
  .scene-nav__button::before,
  .scene-nav__button--thumb .scene-nav__thumb {
    transition: none;
  }
}
/* OPTIONAL: SCENE NAV END */

/* Shared close button for the overlays */
.video-overlay__close,
.content-overlay__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: rgba(10, 6, 5, 0.55);
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.video-overlay__close:hover,
.video-overlay__close:focus-visible,
.content-overlay__close:hover,
.content-overlay__close:focus-visible {
  background: var(--brand);
  transform: rotate(90deg);
}

.video-overlay__close:focus-visible,
.content-overlay__close:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

@keyframes overlay-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes overlay-rise {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* OPTIONAL: VIDEO OVERLAY START */
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 6, 5, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.video-overlay.is-open {
  display: flex;
  animation: overlay-fade 0.35s var(--ease);
}

.video-overlay__inner {
  position: relative;
  width: 90vw;
  max-width: 1040px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: #000;
  box-shadow: var(--shadow);
}

.video-overlay.is-open .video-overlay__inner {
  animation: overlay-rise 0.5s var(--ease);
}

.video-overlay__inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
/* OPTIONAL: VIDEO OVERLAY END */

/* OPTIONAL: CONTENT OVERLAY START */
.content-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 6, 5, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.content-overlay.is-open {
  display: flex;
  animation: overlay-fade 0.35s var(--ease);
}

.content-overlay__inner {
  position: relative;
  max-width: 560px;
  width: 90vw;
  max-height: 82vh;
  overflow: auto;
  padding: 30px 30px 28px;
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--brand);
  border-radius: 22px;
  background: var(--glass-strong);
  box-shadow: var(--shadow);
  color: var(--text);
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.content-overlay.is-open .content-overlay__inner {
  animation: overlay-rise 0.5s var(--ease);
}

.content-overlay__title {
  margin: 0 48px 18px 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.05;
}

.content-overlay__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 18px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.content-overlay__video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.content-overlay__body {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  line-height: 1.7;
}

.content-overlay__body:empty {
  display: none;
}

.content-overlay__images {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.content-overlay__image {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
}

.content-overlay__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.content-overlay__link::after {
  content: "\2192";
  font-size: 1rem;
  letter-spacing: 0;
  transition: transform 0.25s var(--ease);
}

.content-overlay__link:hover,
.content-overlay__link:focus-visible {
  background: color-mix(in srgb, var(--brand) 85%, #ffffff 15%);
  box-shadow: 0 8px 24px -6px var(--brand-glow);
}

.content-overlay__link:hover::after {
  transform: translateX(3px);
}

/* Content hotspot: glass lens with an "i" that opens the overlay */
.pnlm-hotspot-base.custom-hotspot.hotspot-content {
  position: absolute;
  transform: translate(-50%, -50%);
}

.pnlm-hotspot-base.custom-hotspot.hotspot-content .hotspot-content-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--brand) 80%, #ffffff 20%), var(--brand-deep));
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.16), 0 6px 18px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.pnlm-hotspot-base.custom-hotspot.hotspot-content .hotspot-content-button:hover,
.pnlm-hotspot-base.custom-hotspot.hotspot-content .hotspot-content-button:focus-visible {
  transform: scale(1.12);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.22), 0 8px 24px var(--brand-glow);
}

.pnlm-hotspot-base.custom-hotspot.hotspot-content .hotspot-content-button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.pnlm-hotspot-base.custom-hotspot.hotspot-content .hotspot-content-button svg {
  display: block;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
/* OPTIONAL: CONTENT OVERLAY END */

/* OPTIONAL: SCENE CONTENT PANEL START */
.scene-content-panel {
  position: fixed;
  bottom: var(--gutter);
  left: var(--gutter);
  z-index: 1200;
  box-sizing: border-box;
  width: min(360px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: var(--shadow);
  font-family: var(--font-ui);
  overflow: hidden;
}

/* Re-triggered from script on every scene change */
.scene-content-panel.is-entering {
  animation: panel-enter 0.7s var(--ease);
}

@keyframes panel-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.scene-content-panel__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 13px 22px;
}

/* Brand-red rule at the left edge of the caption */
.scene-content-panel__header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand-glow);
}

.scene-content-panel__heading {
  flex: 1 1 auto;
  min-width: 0;
}

.scene-content-panel__eyebrow {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.scene-content-panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.005em;
}

.scene-content-panel__toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background-color: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.25s var(--ease);
}

.scene-content-panel__toggle:hover,
.scene-content-panel__toggle:focus-visible {
  background-color: var(--brand);
}

.scene-content-panel__toggle:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.scene-content-panel__toggle-icon {
  display: block;
}

.scene-content-panel__toggle-icon--expand {
  display: none;
}

.scene-content-panel.is-collapsed .scene-content-panel__toggle-icon--collapse {
  display: none;
}

.scene-content-panel.is-collapsed .scene-content-panel__toggle-icon--expand {
  display: block;
}

.scene-content-panel.is-title-only {
  width: fit-content;
  min-width: 200px;
  max-width: calc(100vw - 40px);
}

.scene-content-panel.is-title-only .scene-content-panel__toggle {
  display: none;
}

.scene-content-panel.is-title-only .scene-content-panel__header {
  padding-right: 26px;
}

.scene-content-panel.is-title-only .scene-content-panel__heading {
  flex: 0 1 auto;
}

.scene-content-panel__body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 1.1rem;
  transition: max-height 0.35s var(--ease), opacity 0.3s var(--ease), padding 0.35s var(--ease);
}

.scene-content-panel.is-expanded {
  max-height: 60vh;
}

.scene-content-panel.is-expanded .scene-content-panel__body {
  max-height: calc(60vh - 64px);
  opacity: 1;
  overflow-y: auto;
  padding: 0 1.1rem 1.1rem 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.scene-content-panel.is-expanded .scene-content-panel__body::-webkit-scrollbar {
  width: 6px;
}

.scene-content-panel.is-expanded .scene-content-panel__body::-webkit-scrollbar-track {
  background: transparent;
}

.scene-content-panel.is-expanded .scene-content-panel__body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 3px;
}

.scene-content-panel.is-expanded .scene-content-panel__body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.7);
}

.scene-content-panel__images {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.scene-content-panel__images[hidden] {
  display: none;
}

.scene-content-panel__images--layout-side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.scene-content-panel__image {
  display: block;
  width: 100%;
  max-height: min(240px, 32vh);
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  object-position: center;
  background: rgba(0, 0, 0, 0.2);
}

.scene-content-panel__images--count-1 .scene-content-panel__image--portrait {
  width: auto;
  max-width: 100%;
  max-height: min(320px, 40vh);
  margin-left: auto;
  margin-right: auto;
}

.scene-content-panel__images--layout-stacked .scene-content-panel__image {
  max-height: min(200px, 28vh);
}

.scene-content-panel__images--layout-stacked .scene-content-panel__image--portrait {
  max-height: min(260px, 36vh);
}

.scene-content-panel__images--layout-side-by-side .scene-content-panel__image {
  max-height: min(160px, 24vh);
}

.scene-content-panel__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  .scene-content-panel.is-entering {
    animation: none;
  }

  .scene-content-panel__body {
    transition: none;
  }
}

@media screen and (orientation: landscape) and (max-width: 1024px) {
  :root {
    --tour-chrome-top: 78px;
    --tour-chrome-bottom: 20px;
    --tour-sidebar-height: calc(100vh - var(--tour-chrome-top) - var(--tour-chrome-bottom));
  }

  .scene-content-panel.is-expanded {
    display: flex;
    flex-direction: column;
    max-height: var(--tour-sidebar-height);
  }

  .scene-content-panel.is-expanded .scene-content-panel__body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }

  .scene-content-panel__image {
    max-height: min(240px, calc(var(--tour-sidebar-height) - 7rem));
  }

  .scene-content-panel__images--count-1 .scene-content-panel__image--portrait {
    max-height: min(320px, calc(var(--tour-sidebar-height) - 5rem));
  }

  .scene-content-panel__images--layout-stacked .scene-content-panel__image {
    max-height: min(200px, calc((var(--tour-sidebar-height) - 6rem) / 2));
  }

  .scene-content-panel__images--layout-stacked .scene-content-panel__image--portrait {
    max-height: min(260px, calc((var(--tour-sidebar-height) - 5rem) / 2));
  }

  .scene-content-panel__images--layout-side-by-side .scene-content-panel__image {
    max-height: min(160px, calc(var(--tour-sidebar-height) - 7rem));
  }
}

@media screen and (orientation: landscape) and (max-width: 700px) {
  :root {
    --tour-chrome-bottom: 12px;
  }
}

/* Short landscape phones: keep the caption compact so it doesn't cover the view */
@media screen and (max-height: 480px) {
  .scene-content-panel__title {
    font-size: 1.4rem;
  }

  .scene-content-panel__header {
    padding-top: 9px;
    padding-bottom: 10px;
  }

  .scene-nav__header {
    padding: 12px 18px 10px;
  }

  .scene-nav__heading {
    font-size: 1.5rem;
  }

  .scene-nav__count {
    display: none;
  }

  .scene-nav__button--thumb {
    min-height: 84px;
  }
}
/* OPTIONAL: SCENE CONTENT PANEL END */

/* NARROW LAYOUT START */
/* Narrow viewports are a supported shape, not a blocked one -- keep the chrome
   inside the safe area and stop the content panel from eating the panorama.
   Width-based rather than `orientation: portrait`, because inside an iframe an
   orientation query describes the iframe's box, not the device: a fixed 16:9
   embed reads as landscape even on a phone held upright. */
@media screen and (max-width: 480px) {
  :root {
    --gutter: 16px;
  }

  .top-bar-controls__btn,
  #back-button,
  .scene-nav-toggle {
    width: 44px;
    height: 44px;
  }

  .top-bar-controls {
    right: calc(var(--gutter) + 54px);
  }

  .scene-content-panel {
    bottom: calc(16px + env(safe-area-inset-bottom));
    left: calc(16px + env(safe-area-inset-left));
    max-width: calc(100vw - 32px);
  }

  .scene-content-panel__title {
    font-size: 1.5rem;
  }

  .scene-content-panel.is-expanded {
    display: flex;
    flex-direction: column;
    max-height: 55vh;
  }

  .scene-content-panel.is-expanded .scene-content-panel__body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
  }

  .scene-content-panel__image {
    max-height: min(200px, 26vh);
  }

  .scene-content-panel__images--layout-stacked .scene-content-panel__image {
    max-height: min(150px, 18vh);
  }

  .scene-content-panel__images--layout-side-by-side .scene-content-panel__image {
    max-height: min(140px, 18vh);
  }

  .scene-nav {
    bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .content-overlay__inner {
    padding: 24px 20px 22px;
  }

  .content-overlay__title {
    font-size: 1.65rem;
  }
}
/* NARROW LAYOUT END */
