/* The opening viewport scrolls naturally; only the water's video frame changes. */
.intro-scroll { position: relative; background: var(--paper); }
.intro-scene {
  height: 100svh; width: 100%; position: relative;
}
.flight-world, .flight-media { position: absolute; inset: 0; width: 100%; height: 100%; }
.flight-world { z-index: 0; overflow: hidden; pointer-events: none; background: #62758d; }
.flight-media { object-fit: cover; object-position: 50% 50%; }
.flight-video { opacity: 0; }
.flight-world.is-scrub-ready .flight-video { opacity: 1; }
html.motion-paused .flight-world .flight-video { opacity: 0; }
html:not(.js) .flight-video { display: none; }
.flight-brand {
  position: absolute; z-index: 2; top: 43%; left: 50%;
  transform: translate(-50%, -50%) scale(.9);
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  color: #fff; filter: drop-shadow(0 2px 12px #14233580); pointer-events: none;
}
.flight-brand svg { width: clamp(80px, 8vw, 120px); height: clamp(92px, 9.2vw, 138px); }
.flight-brand span { font: 450 clamp(42px, 5vw, 72px)/1 var(--body); letter-spacing: .22em; padding-left: .22em; }
.hero-copy { position: absolute; left: 50%; bottom: 17%; transform: translateX(-50%); z-index: 4; white-space: nowrap; }
.hero-discover {
  transform: scale(.9);
  display: flex; align-items: center; gap: 30px; padding: 12px 20px;
  border: 1px solid #16212b24; border-radius: 30px; background: #ffffff70; color: #16212b;
  font-size: 13px; text-decoration: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-discover:hover { background: #ffffffa8; }
.flight-motion {
  position: absolute; z-index: 6; bottom: 24px; right: 34px;
  border: 1px solid #16212b18; border-radius: 30px; padding: 8px 12px;
  background: #ffffff60; color: #45525c; font: 11px/1.5 var(--body);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
html[data-theme=dark] .flight-media { filter: brightness(.52) saturate(.75); }
html[data-theme=dark] .flight-brand { color: #fff; }
html[data-theme=dark] .hero-discover { background: #15191e80; color: #fff; border-color: #ffffff45; }
html[data-theme=dark] .flight-motion { background: #15191e60; color: #fff; border-color: #ffffff30; }

/* The product trailer keeps its own explicit playback controls. */
.trailer-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.trailer-play {
  position: absolute; left: 50%; top: 64%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; justify-content: center; gap: 15px;
  max-width: calc(100% - 32px); padding: 18px 24px; border: 1px solid #ffffff70; border-radius: 100px;
  background: #f7f7f2ed; color: #171a1e; box-shadow: 0 8px 32px #0003;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font: 500 14px/1.4 var(--body); white-space: nowrap;
}
.trailer-play:hover { background: #fff; }
.trailer-play svg { width: 21px; height: 21px; flex-shrink: 0; }
.trailer-play small { font: 10px/1 var(--mono); color: #65676c; padding-left: 3px; }
.trailer-play:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }

html:not(.js) .flight-motion { display: none; }

/* Hand the prominent opening identity over to the navigation. */
.js .nav .nav-lockup { opacity: 0; visibility: hidden; pointer-events: none; }
.js.header-brand-visible .nav .nav-lockup { opacity: 1; visibility: visible; pointer-events: auto; }
.nav .nav-lockup svg, .endcap-brand svg { color: inherit; }
html[data-theme=light] .nav { color: #111; background: rgb(255 255 255 / .76); }
html[data-theme=dark] .nav { color: #fff; background: rgb(27 30 35 / .8); }
html[data-theme=light]:not(.nav-on-page) .nav { color: #111; }
.route-mark { transform-box: fill-box; transform-origin: center; transform: scale(.75); }

@media (max-width: 700px) {
  .flight-brand { gap: 22px; }
  .flight-brand svg { width: 70px; height: 82px; }
  .flight-brand span { font-size: 38px; }
  .hero-copy { bottom: 20%; }
  .flight-motion { right: 20px; bottom: 20px; }
  .trailer-play { top: 74%; padding: 13px 18px; gap: 11px; font-size: 12px; }
  .trailer-play svg { width: 18px; height: 18px; }
  .trailer-play small { font-size: 9px; }
}
@media (max-height: 550px) and (min-width: 501px) {
  .flight-brand { flex-direction: row; gap: 20px; }
  .flight-brand svg { width: 52px; height: 60px; }
  .flight-brand span { font-size: 38px; }
  .hero-copy { bottom: 18%; }
  .flight-motion { bottom: 12px; font-size: 10px; padding: 5px 8px; }
}
