/* The film and the HTML stations share one pinned viewport. */
/* Shared nav, footer and colour tokens live in /css/site.css (.xp-site). */
.flight-tour { position: relative; background: #000; }
.flight-stage { position: relative; isolation: isolate; }
.flight-visual { position: absolute; inset: 0; height: 100svh; z-index: -1; overflow: hidden; background: #000 url('/assets/flight/poster.jpg') center / contain no-repeat; }
.flight-stage video { width: 100%; height: 100%; object-fit: contain; display: block; }
.flight-stage .flight-idle { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .14s ease-out; }
.flight-stage .flight-idle.is-active { opacity: 1; transition: opacity .3s ease; }
.flight-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #06060ce8, #06060c99 36%, #06060c20 65%, transparent 85%); opacity: var(--shade, 1); }
.tour-section { padding: 110px 5.5vw 50px; display: flex; align-items: center; min-height: 80svh; scroll-margin-top: 0; }
.tour-intro { min-height: 100svh; }
.tour-copy { width: min(57vw, 800px); }
.intro-copy { width: min(65vw, 960px); }
.tour-copy h1 { font-size: clamp(3.5rem, 6.5vw, 8rem); line-height: 1.03; letter-spacing: -.06em; margin-bottom: 28px; font-weight: 600; }
.tour-copy h1 span { display: block; white-space: nowrap; }
.tour-copy h2 { font-size: clamp(2.6rem, 4.4vw, 5rem); letter-spacing: -.055em; font-weight: 500; margin-bottom: 24px; }
.tour-copy h3 { font-size: 1.25rem; margin-bottom: 16px; }
.tour-copy p { color: #e4e1e9; font-size: clamp(1rem, 1.22vw, 1.2rem); line-height: 1.75; max-width: 660px; }
.intro-copy p { max-width: 640px; }
.tour-start { display: inline-flex; align-items: center; gap: 20px; padding: 19px 32px; margin-top: 30px; background: #b29aff; color: #100a20; border: 1px solid #d0c0ff; border-radius: 50px; font-weight: 800; font-size: 1rem; box-shadow: 0 6px 40px #8d5bea40; }
.tour-start:hover { color: #100a20; background: #d0bcff; }
.play-icon { display: grid; place-items: center; font-size: .8rem; width: 30px; height: 30px; border: 1px solid #21133750; border-radius: 50%; }
.scroll-cue { position: absolute; bottom: 30px; left: 5.5vw; color: #d7d1e5; font-size: .75rem; display: flex; gap: 25px; align-items: center; }
.scroll-cue span { font-size: 1.35rem; }
.tour-projects { display: grid; gap: 0; }
.tour-copy .tour-link { min-width: 240px; font-size: .85rem; font-weight: 700; border-bottom: 1px solid #d0c0ff; }
.tour-copy .tour-link:hover { border-bottom-color: #fff; }
.tour-project { display: flex; align-items: center; gap: 22px; padding: 14px 0; border-top: 1px solid #ffffff30; color: #fff; }
.tour-project:last-child { border-bottom: 1px solid #ffffff30; }
.tour-project img { width: 125px; height: 68px; object-fit: cover; border-radius: 3px; background: #15111d; }
.tour-project strong { display: block; font-size: 1.1rem; font-weight: 600; }
.tour-project span span { display: block; font-size: .67rem; letter-spacing: .06em; color: #d2c9e2; margin-top: 6px; }
.tour-project:hover, .tour-tracks a:hover { color: #cfbaff; }
.tour-tracks { margin-top: 24px; border-top: 1px solid #ffffff30; }
.tour-tracks a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #ffffff30; color: #fff; font-size: .95rem; }
.tour-tracks a span:last-child { font-size: .72rem; color: #d2c9e2; text-align: right; }
.channel-link { color: #ded3ff; font-size: clamp(1.2rem, 2.5vw, 2rem); border-bottom: 1px solid #b0a4da; padding-bottom: 14px; display: flex; justify-content: space-between; }
.tour-copy .contact-email-link { color: #d8c8ff; margin-top: 24px; }
.tour-finale { height: 50svh; background: #000 url('/assets/logo.png') center / min(60%, 650px) auto no-repeat; }
.finale-next { display: none; }
/* Positive stage height lets the whole video scroll away above the footer. */
.tour-enhanced .flight-tour { height: calc(var(--tour-distance, 600vh) + 100svh); }
.tour-enhanced .flight-stage { position: sticky; top: 0; height: 100svh; }
.tour-enhanced .flight-visual { height: 100%; }
.tour-enhanced .tour-section { position: absolute; inset: 0; min-height: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease; }
.tour-enhanced .tour-section.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.tour-enhanced .tour-copy { max-height: calc(100svh - 160px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #9481b8 transparent; padding: 6px 12px 12px 0; }
.tour-enhanced .tour-finale { display: none; }
.tour-enhanced .is-trimmed { display: none !important; }
.tour-enhanced .finale-next { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 28px; color: #d9ccef; opacity: 0; visibility: hidden; font-size: .85rem; }
.tour-enhanced.at-finale .finale-next { opacity: 1; visibility: visible; }
.tour-playback { display: flex; gap: 15px; align-items: center; }
.tour-playback[hidden] { display: none; }
.tour-playback button { border: 0; color: #e5dcec; background: transparent; font: inherit; font-size: .72rem; cursor: pointer; padding: 10px 4px; }
.tour-playback #stopTour { border: 1px solid #ffffff40; padding-inline: 16px; border-radius: 25px; }
.tour-playback #stopTour span { font-size: .6rem; margin-left: 12px; }
.tour-progress { position: fixed; left: 0; right: 0; bottom: 0; height: 2px; background: #ffffff13; z-index: 31; pointer-events: none; }
.tour-progress span { display: block; height: 100%; background: #b39afa; transform-origin: left; transform: scaleX(0); }
.past-tour .tour-progress, .flight-page:not(.tour-enhanced) .tour-progress { display: none; }
.flight-page .subscribe-section { position: relative; background: #100d18; padding: 100px 5.5vw 80px; border-top: 1px solid #302439; }
.flight-page .subscribe-inner { max-width: 750px; }
.flight-page .subscribe-section h2 { font-size: 3.3rem; font-weight: 500; letter-spacing: -.055em; margin-bottom: 18px; }
.flight-page .subscribe-section p { color: #d5cfe1; }
.flight-page .subscribe-form { max-width: 540px; }
.flight-page .subscribe-form input { min-width: 0; }
.subscribe-section.is-arrived .subscribe-form input { animation: arrive-glow 2.4s ease-out .3s both; }
@keyframes arrive-glow { 0% { box-shadow: 0 0 0 0 #b29aff00; } 35% { border-color: #b29affcc; box-shadow: 0 0 0 6px #b29aff26, 0 0 40px #8d5bea40; } 100% { box-shadow: 0 0 0 0 #b29aff00; } }
.flight-page:not(.tour-enhanced) .scroll-cue { display: none; }
.flight-page:not(.tour-enhanced) .tour-section:not(.tour-intro) { background: #08070b; }
@media (max-width: 1200px) {
  .tour-copy { width: 62vw; }
  .intro-copy { width: 72vw; }
  .tour-playback { gap: 5px; }
}
@media (max-width: 768px) {
  .flight-page.tour-playing .theme-switcher { display: none; }
  .tour-playback { position: absolute; top: 75px; right: 20px; padding: 0 8px; border-radius: 25px; background: #100c18d9; }
  .flight-stage video { object-position: center 12%; }
  .flight-visual { background-position: center 12%; }
  .flight-shade { background: linear-gradient(0deg, #06060cf2, #06060ced 40%, #06060c30 68%, transparent 87%); }
  .tour-section { padding: 33svh 24px 28px; align-items: center; }
  .tour-intro { padding-top: 35svh; padding-bottom: 70px; }
  .tour-copy, .intro-copy { width: 100%; }
  .tour-enhanced .tour-copy { max-height: calc(67svh - 28px); padding-right: 4px; }
  .tour-enhanced .intro-copy { max-height: calc(65svh - 70px); }
  .tour-copy h1 { font-size: clamp(2.8rem, 11.5vw, 5rem); margin-bottom: 20px; }
  .tour-copy h2 { font-size: clamp(2.3rem, 9vw, 4rem); margin-bottom: 18px; }
  .tour-copy h3 { font-size: 1.1rem; margin-bottom: 12px; }
  .tour-copy p { font-size: .91rem; line-height: 1.65; }
  .tour-start { padding: 13px 25px; margin-top: 22px; font-size: .95rem; }
  .tour-link { margin-top: 18px; }
  .tour-project { gap: 14px; padding-block: 10px; }
  .tour-project img { width: 86px; height: 52px; }
  .tour-project strong { font-size: .88rem; }
  .tour-project span span { font-size: .58rem; }
  .section-label { margin-bottom: 10px; }
  .scroll-cue { left: 24px; bottom: 24px; }
  .tour-tracks { margin-top: 18px; }
  .tour-tracks a { font-size: .79rem; padding-block: 9px; }
  .tour-tracks a span:last-child { font-size: .6rem; }
  .flight-page:not(.tour-enhanced) .tour-section:not(.tour-intro) { padding-block: 70px; }
  .flight-page .subscribe-section { padding: 70px 24px 35px; }
}
@media (max-height: 650px) and (min-width: 769px) {
  .tour-section { padding-top: 95px; padding-bottom: 40px; }
  .tour-enhanced .tour-copy { max-height: calc(100svh - 135px); }
  .tour-copy h1 { font-size: clamp(3rem, 8vh, 5rem); margin-bottom: 16px; }
  .tour-copy h2 { font-size: 2.6rem; margin-bottom: 16px; }
  .tour-project { padding-block: 8px; }
  .tour-project img { height: 46px; width: 84px; }
  .tour-tracks a { padding-block: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flight-page *, .flight-page *::before, .flight-page *::after { transition: none !important; }
}
