.tour { position: relative; color: white; background: var(--night); }
.tour.is-ready { height: 410svh; }
.tour__screen { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.tour__still, .tour__still img, .tour__film, .tour__film video, .tour__shade { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tour__still img, .tour__film video { object-fit: cover; display: block; }
.tour__film video { opacity: 0; }
.tour__film video.is-visible { opacity: 1; }
.tour__shade {
  background: linear-gradient(to bottom, rgba(5,11,18,.48), transparent 22%), linear-gradient(to top, rgba(5,11,18,.55), transparent 18%), radial-gradient(ellipse at left bottom, rgba(6,11,17,.83), transparent 70%);
}
.tour[data-scene="1"] .tour__shade { background: linear-gradient(to bottom, rgba(5,11,18,.52), transparent 20%), linear-gradient(to top, rgba(5,11,18,.52), transparent 17%), radial-gradient(ellipse at 0% 26%, rgba(6,11,17,.76), transparent 63%); }
.tour[data-scene="2"] .tour__shade { background: linear-gradient(to bottom, rgba(5,11,18,.52), transparent 20%), linear-gradient(to top, rgba(5,11,18,.54), transparent 18%), radial-gradient(ellipse at right bottom, rgba(6,11,17,.84), transparent 69%); }
.tour__caption { position: absolute; left: var(--gutter); bottom: max(5.2rem, 12%); max-width: min(50vw, 48rem); text-shadow: 0 1px 16px #08101855; }
.tour__caption h1, .tour__caption h2 { line-height: .99; letter-spacing: -.042em; font-weight: 300; }
.tour__caption h1 { font-size: clamp(3rem, min(7.8vw, 12svh), 7.25rem); }
.tour__caption h2 { font-size: clamp(2.55rem, min(5.4vw, 10svh), 5rem); }
.tour__terrace { top: max(calc(var(--head, 64px) + 1rem), 20%); bottom: auto; max-width: min(43vw, 37rem); }
.tour__closing { left: auto; right: var(--gutter); max-width: min(44vw, 40rem); }
.tour__actions { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem 1.35rem; margin-top: 1.25rem; }
.tour__actions .btn { background: white; color: var(--ink); text-shadow: none; }
.tour__nav { position: absolute; bottom: max(.45rem, env(safe-area-inset-bottom)); left: var(--gutter); right: var(--gutter); margin: auto; display: flex; gap: .75rem; max-width: 39rem; }
.tour__nav button { flex: 1; appearance: none; min-height: 44px; padding: 0; border: 0; background: none; color: #fff; text-align: left; font: 500 .78rem/1.25 var(--mono); letter-spacing: .09em; text-transform: uppercase; cursor: pointer; }
.tour__nav button span { display: block; height: 2px; margin-bottom: .45rem; background: #ffffff58; }
.tour__nav button[aria-current] span { background: white; }
.tour :focus-visible { outline: 2px solid white; outline-offset: 3px; }
@media (max-width: 820px) {
  .tour__caption, .tour__terrace, .tour__closing { left: var(--gutter); right: var(--gutter); max-width: 33rem; }
  .tour__caption h1 { font-size: clamp(2.7rem, 11.8vw, 4.25rem); }
  .tour__caption h2 { font-size: clamp(2.45rem, 10.5vw, 3.75rem); }
  .tour__caption .lede { max-width: 30rem; font-size: 1rem; line-height: 1.42; }
  .tour__caption .label { max-width: 32ch; }
  .tour__terrace { top: max(calc(var(--head, 64px) + 1rem), 17%); }
}
@media (max-height: 510px) {
  .tour__caption { bottom: 3.4rem; max-width: 37rem; }
  .tour__terrace { top: max(calc(var(--head, 64px) + .4rem), 20%); bottom: auto; }
  .tour__caption h1, .tour__caption h2 { font-size: clamp(1.8rem, 8.5svh, 3rem); }
  .tour__caption .lede, .tour__caption .tiny, .tour__actions { margin-top: .35rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .tour__caption:not([hidden]) { animation: tour-caption .25s ease-out both; }
  @keyframes tour-caption { from { opacity: 0; transform: translateY(5px); } }
}

@media (min-width: 821px) {
  main section[id]:not(#top) { scroll-margin-top: 32px; }
}

.tour__film canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; visibility: hidden; }
