.home { overflow-x: clip; }
.tour {
  --gutter: clamp(1.25rem, 5.5vw, 7rem);
}
.tour .scene:first-child { --tall-crop: 64%; }
.tour a { text-underline-offset: .26em; }
.tour .actions a:not(.primary) { text-decoration: underline; }
@media (max-height: 530px) and (orientation: landscape) {
  .tour .stage { min-height: 0; }
  .tour.live { min-height: 283.333svh; }
  .tour h1 { font-size: clamp(1.75rem, 7vh, 3rem); }
  .tour .copy { align-self: center; padding-block: .3rem; }
  .tour .copy p { font-size: .94rem; margin-block: .45rem .65rem; }
}
.tour.live { min-height: calc(max(100svh, 31rem) + 183.333svh); }
:where(.tour) .stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 31rem;
  display: grid; grid-template-rows: var(--walk-nav-space) 1fr clamp(1.1rem, 5vh, 3.6rem);
  isolation: isolate; overflow: hidden; background: #54251b;
}
:where(.tour) .scenes, :where(.tour) .scene, :where(.tour) .stage::after { position: absolute; inset: 0; }
:where(.tour) .scenes { z-index: -2; overflow: hidden; container-type: size; }
:where(.tour) .scene {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--tall-crop, 50%) center;
  opacity: 0; pointer-events: none;
  transform-origin: var(--aim, 50% 50%);
}
:where(.tour) .scene:first-child { opacity: 1; }
:where(.tour) .stage::after {
  content: ""; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #1a0d09b8, transparent 20%, transparent 78%, #1a0d09ad),
    linear-gradient(90deg, #1b0e097a, transparent 73%);
}
:where(.tour) .copy { align-self: center; padding: 1rem var(--gutter) 2rem; }
:where(.tour) .copy[inert] { pointer-events: none; }
:where(.tour) h1 { max-width: 11em; font-size: clamp(3rem, 5.8vw, 7rem); font-weight: 1000; line-height: .86; letter-spacing: -.055em; text-wrap: balance; margin: 0; }
:where(.tour) .copy p { max-width: 32rem; font-size: clamp(1.05rem, 1.74vw, 1.65rem); line-height: 1.34; margin: 1.5rem 0 1.8rem; text-wrap: balance; }
:where(.tour) .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.3rem; }
:where(.tour) .primary { background: var(--orange); color: var(--black); padding: .85rem 1.2rem; text-decoration: none; font-weight: 650; }
:where(.tour) .primary:hover { background: var(--orange-2); }







@media (max-width: 600px) {
  :where(.tour) .copy { align-self: end; padding-bottom: 8vh; }
  :where(.tour) h1 { font-size: clamp(2.65rem, 10vw, 3.6rem); max-width: 8em; text-wrap: initial; }
  :where(.tour) .copy p { max-width: 20rem; }
  :where(.tour) .actions { gap: .8rem; font-size: .9rem; }

}
@media (prefers-reduced-motion: reduce) {
  .tour:not(.live) .stage { position: relative; }
}

.scene-defs { position: absolute; }
:where(.tour) .scene.layer {
  inset: auto;
  top: calc((100% - max(100%, 56.28cqw)) * .5);
  left: calc((100% - max(100%, 177.684cqh)) * var(--position, .5));
  width: max(100%, 177.684cqh);
  height: max(100%, 56.28cqw);
}


:where(.tour) .scenes::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 13%;
  background: linear-gradient(transparent, #130d0a);
  opacity: var(--exit-fade, 0);
  pointer-events: none;
}

@media (max-width: 650px) {
  :where(.tour) .scene:nth-child(4) { left: calc((100% - max(100%, 177.684cqh)) * .43); }
}


:where(.tour) .stage::after {
  background: linear-gradient(180deg, #1a0d09b8, transparent 20%, transparent 78%, #1a0d09ad),
    linear-gradient(90deg, #170d09d1, #170d098c 29%, #170d0930 50%, transparent 67%);
}
:where(.tour) h1 { max-width: min(100%, 43vw); font-size: clamp(2.9rem, 5.6vw, 7rem); text-wrap: initial; }
:where(.tour) .hero-line,
:where(.tour) .hero-line-text { display: block; }
:where(.tour) .copy p { max-width: min(32rem, 39vw); }
.tour[data-emphasis="1"] .hero-line:nth-child(1) .hero-line-text,
.tour[data-emphasis="2"] .hero-line:nth-child(2) .hero-line-text,
.tour[data-emphasis="3"] .hero-line:nth-child(3) .hero-line-text {
  color: var(--orange);
  animation: var(--hero-line-animation, none);
}
@media (prefers-reduced-motion: no-preference) {
  :where(.tour) .hero-line {
    /* Leave room for descenders without changing the headline's line spacing. */
    clip-path: inset(-.14em -.1em);
    --hero-line-animation: hero-line-reveal var(--hero-line-duration, 440ms) cubic-bezier(.2, .65, .3, 1);
  }
}
@media (max-width: 650px) {
  :where(.tour) .hero-line { --hero-line-duration: 620ms; }
}
@keyframes hero-line-reveal {
  0%, 26% { color: inherit; transform: translateY(0); }
  0% { opacity: 1; }
  26% { opacity: 0; }
  27%, 32% { color: var(--orange); transform: translateY(135%); }
  27% { opacity: 0; }
  32%, 100% { color: var(--orange); opacity: 1; }
  100% { transform: translateY(0); }
}
@media (min-width: 801px) {
  :where(.tour) .art-offset, :where(.tour) .shadow-offset { transform: translateX(var(--desktop-shift)); }
}
@media (max-width: 800px) {
  :where(.tour) .copy { align-self: start; padding-top: clamp(.9rem, 5vh, 2.6rem); padding-bottom: 0; }
  :where(.tour) h1 { max-width: 100%; font-size: clamp(2.25rem, 9.5vw, 4rem); }
  :where(.tour) .copy p { max-width: 18rem; margin-block: .65rem .8rem; font-size: .98rem; }
  :where(.tour) .actions { gap: .8rem; font-size: .83rem; }
  :where(.tour) .copy .primary { padding: .56rem .7rem; }
  :where(.tour) .gallery-display { transform: translateY(115px); }
  :where(.tour) .stage::after { background: linear-gradient(180deg, #160c08cf, #160c0873 37%, transparent 62%, #160c088d); }
}

@media (max-width: 650px) {
  :where(.tour) .scene:nth-child(5) .art-offset:last-child { transform: translateX(-84px); }
  :where(.tour) .scene:nth-child(5) .shadow-offset:has(ellipse[cx="1192"]) { transform: translateX(-84px); }
}

@media (max-width: 650px) and (orientation: portrait) {
  :where(.tour) .scene:nth-child(5) .art-offset:nth-last-child(2),
  :where(.tour) .scene:nth-child(5) .shadow-offset:has(ellipse[cx="902"]) {
    transform-origin: 897.5px 535px;
    transform: translate(184px, 15px) scale(.86);
  }
  :where(.tour) .scene:nth-child(5) .art-offset:last-child,
  :where(.tour) .scene:nth-child(5) .shadow-offset:has(ellipse[cx="1192"]) {
    transform-origin: 1177px 325px;
    transform: translate(-120px, -27px) scale(.82);
  }
}

@media (max-width: 650px) {
  :where(.tour) .scene:nth-child(2) {
    left: calc((100% - max(100%, 177.684cqh)) * .30);
  }
}
@media (max-width: 650px) {
  :where(.tour) .scene:nth-child(2) .gallery-display {
    transform-origin: 600px 645px;
    transform: translate(8px, 123px) scale(.84);
  }
  :where(.tour) .scene:nth-child(3) .gallery-display {
    transform-origin: 1010px 660px;
    transform: translate(-20px, 108px) scale(.84);
  }
}

.tour .scene[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  html:has(body.home) { scroll-behavior: auto; }
}

@media (max-width: 360px) and (orientation: portrait) {
  .tour .scene:nth-child(2) .gallery-display {
    transform: translate(8px, 167px) scale(.82);
  }
  .tour .scene:nth-child(3) .gallery-display {
    transform: translate(-20px, 155px) scale(.82);
  }
}
/* Reserve room for the site's fixed navigation without shifting the gallery. */
.home .mast { position: fixed; }
.tour { --walk-nav-space: 5.75rem; }
.tour .copy { grid-row: 2; }
@media (min-width: 761px) and (max-width: 940px) {
  .tour { --walk-nav-space: 6.75rem; }
}
@media (max-height: 530px) and (orientation: landscape) {
  .tour { --walk-nav-space: 5.5rem; }
}
