:root {
  --flight-gold: #d9ab63;
  --flight-ice: #dff5ff;
  --flight-panel: rgba(7, 10, 14, 0.72);
}

html { scroll-behavior: smooth; }
body.intro-open { overflow: hidden; }
body.intro-open main { opacity: 0; visibility: hidden; }
body:not(.intro-open) main { opacity: 1; visibility: visible; transition: opacity 1s ease; }
:focus-visible { outline: 2px solid var(--flight-gold); outline-offset: 4px; }

.flight-entry {
  position: fixed;
  inset: 0;
  z-index: 1500;
  overflow: hidden;
  color: #fff;
  background: #020407;
  font-family: var(--sans);
  transition: opacity 1s cubic-bezier(.16, 1, .3, 1), visibility 1s;
}

.flight-entry.done { opacity: 0; visibility: hidden; pointer-events: none; }
.flight-scenes, .flight-frame, .flight-frame img, .flight-shade { position: absolute; inset: 0; }
.flight-frame { margin: 0; opacity: 0; visibility: hidden; transform: scale(1.04); }
.flight-frame.is-active { opacity: 1; visibility: visible; }
.flight-frame img { width: 100%; height: 100%; object-fit: cover; }
.flight-frame:nth-child(1) img, .flight-frame:nth-child(2) img, .flight-frame:nth-child(3) img { object-position: center; }
.flight-shade {
  background:
    linear-gradient(90deg, rgba(0, 4, 9, .86) 0%, rgba(0, 4, 9, .32) 48%, rgba(0, 4, 9, .14) 70%),
    linear-gradient(0deg, rgba(0, 0, 0, .82), transparent 46%),
    radial-gradient(circle at 76% 34%, transparent 0 20%, rgba(0, 0, 0, .28) 65%);
  pointer-events: none;
}

.flight-top {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  min-height: 86px;
  padding: 20px 3.5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.flight-top > img { width: 132px; height: auto; filter: brightness(0) invert(1); }
.flight-top > div { display: flex; align-items: center; gap: 28px; }
.flight-top span { font: 10px var(--mono); letter-spacing: .15em; }
.flight-top button, .flight-controls button {
  border: 0;
  color: inherit;
  background: transparent;
  font: 10px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.flight-copy {
  position: absolute;
  z-index: 5;
  left: 6vw;
  top: 48%;
  width: min(720px, 58vw);
  transform: translateY(-50%);
}
.flight-copy p { margin: 0 0 24px; color: var(--flight-gold); font: 10px var(--mono); letter-spacing: .2em; }
.flight-copy h1 { margin: 0; max-width: 780px; font: 400 clamp(58px, 8vw, 132px)/.84 var(--sans); letter-spacing: -.075em; }
.flight-copy > span { display: block; margin-top: 30px; max-width: 520px; color: rgba(255, 255, 255, .74); font-size: 15px; line-height: 1.7; }

.flight-telemetry {
  position: absolute;
  z-index: 5;
  right: 3.5vw;
  top: 118px;
  width: min(260px, 24vw);
  border-top: 1px solid rgba(255, 255, 255, .25);
}
.flight-telemetry div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.flight-telemetry span, .flight-telemetry b { font: 8px var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.flight-telemetry span { color: rgba(255, 255, 255, .45); }
.flight-telemetry b { max-width: 150px; text-align: right; font-weight: 400; }

.flight-controls {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 74px;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
}
.flight-controls > button { width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; font-size: 14px; }
.flight-controls ol { display: flex; align-items: center; gap: 7px; margin: 0; padding: 0; list-style: none; }
.flight-controls li button { display: block; width: 22px; height: 2px; padding: 0; background: rgba(255, 255, 255, .3); transition: width .3s, background .3s; }
.flight-controls li button.active { width: 50px; background: var(--flight-gold); }

.flight-progress {
  position: absolute;
  z-index: 5;
  left: 3.5vw;
  right: 3.5vw;
  bottom: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  font: 9px var(--mono);
  letter-spacing: .12em;
}
.flight-progress i { height: 1px; overflow: hidden; background: rgba(255, 255, 255, .2); }
.flight-progress em { display: block; width: 100%; height: 100%; background: var(--flight-gold); transform: scaleX(0); transform-origin: left; }

.hero { isolation: isolate; overflow: hidden; background: #06080b; }
.hero-cape { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.035); animation: capeDrift 18s ease-in-out infinite alternate; }
.hero .hero-bg { z-index: -2; background: linear-gradient(90deg, rgba(4, 6, 8, .9), rgba(4, 6, 8, .36) 58%, rgba(4, 6, 8, .12)), linear-gradient(0deg, rgba(0, 0, 0, .72), transparent 58%); }
.hero > p, .hero h1, .hero-foot { z-index: 2; }
.hero h1 { text-shadow: 0 10px 55px rgba(0, 0, 0, .46); }
@keyframes capeDrift { to { transform: scale(1.09) translate3d(-1.1%, -.7%, 0); } }

#earth-webgl { position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at 70% 46%, #0c1a28 0, #030608 34%, #010203 70%); }
#earth-webgl canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s; }
#earth-webgl.earth-ready canvas { opacity: 1; }
#earth-webgl.earth-fallback canvas { opacity: 0; }
.static-earth {
  position: absolute;
  left: 69%;
  top: 49%;
  width: min(48vw, 720px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: #07121d;
  background-image: url('/assets/phase11/earth/earth-blue-marble.webp');
  background-image: image-set(url('/assets/phase11/earth/earth-blue-marble.avif') type('image/avif'), url('/assets/phase11/earth/earth-blue-marble.webp') type('image/webp'));
  background-position: 50% 50%;
  background-size: auto 100%;
  background-repeat: repeat-x;
  box-shadow: inset -55px -26px 90px #000, 0 0 80px rgba(103, 191, 255, .22);
  animation: fallbackEarthSpin 34s linear infinite;
  opacity: 1;
  transition: opacity .8s;
}
.static-earth::before { content: ''; position: absolute; inset: -2%; border: 1px solid rgba(177, 225, 255, .32); border-radius: 50%; box-shadow: 0 0 24px rgba(104, 197, 255, .18); }
.static-earth span { position: absolute; inset: -14%; border: 1px solid rgba(217, 171, 99, .44); border-radius: 50%; transform: rotateX(68deg) rotateZ(-12deg); animation: fallbackOrbit 9s linear infinite; }
.static-earth span::after { content: ''; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--flight-gold); box-shadow: 0 0 16px rgba(217, 171, 99, .9); }
.earth-ready .static-earth { opacity: 0; pointer-events: none; }
.earth-fallback .static-earth { opacity: 1; }
@keyframes fallbackEarthSpin { to { background-position: -150% 50%; } }
@keyframes fallbackOrbit { to { transform: rotateX(68deg) rotateZ(348deg); } }
@media (prefers-reduced-motion: reduce) {
  .static-earth, .static-earth span { animation-play-state: paused; }
}
.core-copy small, .core-nav li.active { color: var(--flight-gold); }
.core-nav li.active i { background: var(--flight-gold); }

.testimonials { padding: 150px 5vw; background: #eae6dd; color: #090909; }
.testimonials .head p { color: #69655e; }
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 56px; }
.testimonial-card { min-height: 520px; padding: 42px; display: flex; flex-direction: column; border: 1px solid rgba(0, 0, 0, .2); background: #f2eee6; }
.testimonial-card.featured { color: #f4f0e8; background: #090909; border-color: #090909; }
.quote-mark { color: var(--flight-gold); font: 300 92px/.7 Georgia, serif; }
.testimonial-card blockquote { margin: 38px 0 24px; max-width: 720px; font-size: clamp(26px, 3.2vw, 48px); line-height: 1.08; letter-spacing: -.045em; }
.testimonial-card > p { max-width: 540px; margin: 0; color: #69655e; line-height: 1.7; }
.testimonial-card.featured > p { color: #aaa59b; }
.testimonial-card footer { margin-top: auto; padding-top: 52px; display: flex; align-items: center; gap: 14px; }
.testimonial-card footer > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--flight-gold); font: 10px var(--mono); }
.testimonial-card footer strong, .testimonial-card footer small { display: block; }
.testimonial-card footer strong { font-size: 12px; }
.testimonial-card footer small { margin-top: 4px; color: #89857e; font: 8px var(--mono); letter-spacing: .1em; text-transform: uppercase; }

.booking { padding: 150px 5vw; color: #ece9e2; background: #050607; }
.booking-intro { display: grid; grid-template-columns: .5fr 1.4fr .75fr; gap: 40px; align-items: start; }
.booking-intro > p { color: var(--flight-gold); font: 9px/1.6 var(--mono); letter-spacing: .12em; }
.booking-intro h2 { margin: 0; font-size: clamp(48px, 6vw, 96px); line-height: .9; letter-spacing: -.07em; font-weight: 400; }
.booking-intro > span { color: #96928b; line-height: 1.7; }
.booking-shell { margin-top: 80px; display: grid; grid-template-columns: .72fr 1.8fr; min-height: 670px; border: 1px solid rgba(255, 255, 255, .16); }
.booking-shell > aside { padding: 38px; display: flex; flex-direction: column; background: linear-gradient(145deg, #111820, #080a0d 62%); border-right: 1px solid rgba(255, 255, 255, .14); }
.booking-shell aside small, .booking-step > span, .booking-details > span, .booking-success small { color: var(--flight-gold); font: 9px var(--mono); letter-spacing: .13em; }
.booking-shell aside h3 { margin: 26px 0 18px; font-size: 34px; line-height: 1; font-weight: 400; }
.booking-shell aside ul { margin: 24px 0; padding: 0; list-style: none; color: #99958e; }
.booking-shell aside li { padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 12px; }
.booking-shell aside a { margin-top: auto; color: inherit; font: 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.booking-panel { padding: 38px; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-content: start; }
.booking-step { min-width: 0; }
.booking-dates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; }
.booking-dates button, .booking-times button { min-height: 70px; border: 1px solid rgba(255, 255, 255, .16); color: #ddd9d1; background: #0d0f12; cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .2s; }
.booking-dates button:hover, .booking-times button:hover { transform: translateY(-2px); border-color: rgba(217, 171, 99, .7); }
.booking-dates button.selected, .booking-times button.selected { color: #080808; background: var(--flight-gold); border-color: var(--flight-gold); }
.booking-dates b, .booking-dates small { display: block; }
.booking-dates b { margin-top: 7px; font-size: 18px; font-weight: 400; }
.booking-dates small { font: 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.booking-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.booking-times button { min-height: 53px; font: 11px var(--mono); }
.booking-details { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 36px; border-top: 1px solid rgba(255, 255, 255, .13); }
.booking-details > span, .booking-details > div:last-of-type, .booking-details > p, .booking-details > button { grid-column: 1 / -1; }
.booking-details label { display: block; margin-bottom: 8px; color: #8e8a83; font: 8px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.booking-details input, .booking-details textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .22); border-radius: 0; padding: 13px 0; color: #f0ede7; background: transparent; font: 14px var(--sans); resize: vertical; }
.booking-details input:focus, .booking-details textarea:focus { outline: 0; border-color: var(--flight-gold); }
#bookingError { min-height: 18px; margin: 0; color: #ff8c77; font-size: 11px; }
.booking-submit { min-height: 56px; border: 0; color: #090909; background: var(--flight-gold); font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.booking-success { display: none; grid-column: 2; padding: 7vw; align-content: center; }
.booking-success.active { display: grid; }
.booking-success h3 { margin: 24px 0; font-size: clamp(44px, 5vw, 76px); line-height: .95; font-weight: 400; }
.booking-success p { color: #aaa69d; line-height: 1.7; }
.booking-success > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.booking-success a, .booking-success button { padding: 16px 20px; border: 1px solid rgba(255, 255, 255, .22); color: inherit; background: transparent; font: 9px var(--mono); letter-spacing: .09em; text-transform: uppercase; cursor: pointer; }
.booking-success a { color: #080808; background: var(--flight-gold); border-color: var(--flight-gold); }
#bookAnother { justify-self: start; margin-top: 24px; border: 0; padding-left: 0; color: #8e8a83; }

@media (max-width: 1100px) {
  .flight-copy { width: min(680px, 70vw); }
  .flight-telemetry { display: none; }
  .booking-intro { grid-template-columns: 1fr; }
  .booking-intro > span { max-width: 620px; }
  .booking-shell { grid-template-columns: 1fr; }
  .booking-shell > aside { min-height: 380px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .booking-success { grid-column: 1; }
}

@media (max-width: 900px) {
  .flight-top { min-height: 72px; padding: 15px 20px; }
  .flight-top > img { width: 112px; }
  .flight-top span { display: none; }
  .flight-copy { left: 20px; right: 20px; top: 47%; width: auto; }
  .flight-copy h1 { font-size: clamp(54px, 15vw, 92px); }
  .flight-copy > span { font-size: 13px; }
  .flight-controls { bottom: 68px; }
  .flight-progress { left: 20px; right: 20px; }
  .hero-cape { object-position: 58% center; }
  .static-earth { left: 64%; top: 68%; width: 66vw; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial-card { min-height: 460px; }
  .booking-panel { grid-template-columns: 1fr; }
  .booking-details { grid-column: 1; }
}

@media (max-width: 600px) {
  .flight-copy h1 { font-size: 54px; }
  .flight-copy > span { max-width: 88%; }
  .flight-controls ol { gap: 4px; }
  .flight-controls li button { width: 12px; }
  .flight-controls li button.active { width: 30px; }
  .flight-frame:nth-child(4) img, .flight-frame:nth-child(5) img { object-position: 58% center; }
  .flight-frame:nth-child(6) img { object-position: 64% center; }
  .testimonials, .booking { padding: 100px 20px; }
  .testimonial-card { min-height: 430px; padding: 28px; }
  .testimonial-card blockquote { font-size: 28px; }
  .booking-shell { margin-top: 50px; }
  .booking-shell > aside, .booking-panel { padding: 26px 20px; }
  .booking-dates { grid-template-columns: repeat(2, 1fr); }
  .booking-details { grid-template-columns: 1fr; }
  .booking-details > div { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-cape { animation: none; transform: none; }
  .flight-frame { transform: none !important; transition: none !important; }
  .flight-entry { transition-duration: .01ms; }
}
