/* =========================================================
   Fly-through sections (includes/fly.php + assets/js/fly.js)
   The plane crosses the screen as you scroll; the heading wipes from the “before” text
   to the “after” text right where the plane passes.
   Without JavaScript / GSAP it still works with position: sticky; with reduced motion
   only the final heading is shown.
   ========================================================= */
.fly {
  --fly-eyebrow: #bf4b0e;
  --fly-old: #0b192c;
  --fly-new: #005a9a;
  position: relative;
  height: var(--fly-len, 220vh);
  font-family: var(--font, 'Plus Jakarta Sans', system-ui, sans-serif);
}
.fly--sky    { background: linear-gradient(180deg, #fcf9f8 0%, #eaf2fa 22%, #eef5fc 60%, #fcf9f8 100%); }
.fly--sand   { background: linear-gradient(180deg, #fcf9f8 0%, #f6f3f2 30%, #f3eeeb 70%, #fcf9f8 100%); }
.fly--navy   { --fly-eyebrow: #ffb58a; --fly-old: rgba(255, 255, 255, 0.92); --fly-new: #9fd0ff;
               background: radial-gradient(90% 70% at 50% 45%, #0a3a66 0%, #001d36 70%); }
.fly--sunset { --fly-eyebrow: #ffd3b3; --fly-old: rgba(255, 255, 255, 0.92); --fly-new: #ffd9a8;
               background: linear-gradient(170deg, #001d36 0%, #203a5c 45%, #7a3b2a 80%, #bf4b0e 110%); }

.fly__pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  padding: 0 16px; text-align: center;
}
/* GSAP pins the box itself (sticky would not work inside the smooth-scroll wrapper) */
.fly.is-gsap { height: auto; }
.fly.is-gsap .fly__pin { position: relative; }

.fly__eyebrow {
  margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fly-eyebrow);
}
.fly__text { position: relative; display: grid; max-width: min(1100px, 100%); }
.fly__t {
  grid-area: 1 / 1; margin: 0;
  font-size: clamp(34px, 6.2vw, 80px); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em;
  text-wrap: balance;
}
.fly__t--old { color: var(--fly-old); }
.fly__t--new { color: var(--fly-new); clip-path: inset(-30% 100% -30% -8%); }
.fly--rtl .fly__t--new { clip-path: inset(-30% -8% -30% 100%); }

.fly__plane {
  position: absolute; top: 50%; left: 0; z-index: 2;
  width: var(--fly-size, 70vw); max-width: 1100px; height: auto;
  transform: translate3d(-100%, -50%, 0);
  will-change: transform;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 28px 22px rgba(0, 29, 54, 0.16));
}
.fly--navy .fly__plane, .fly--sunset .fly__plane { filter: drop-shadow(0 28px 26px rgba(0, 0, 0, 0.35)); }

@media (max-width: 767px) {
  .fly__plane { width: calc(var(--fly-size, 70vw) * 1.7); max-width: none; }
  .fly__eyebrow { font-size: 11px; }
}

/* Reduced motion: no plane, no sticky scroll — just the final heading */
@media (prefers-reduced-motion: reduce) {
  .fly { height: auto; }
  .fly__pin { position: relative; height: auto; min-height: 50vh; padding: 96px 16px; }
  .fly__plane, .fly__t--old { display: none; }
  .fly__t--new { clip-path: none !important; }
}
.fly.is-static { height: auto; }
.fly.is-static .fly__pin { position: relative; height: auto; min-height: 50vh; padding: 96px 16px; }
.fly.is-static .fly__plane, .fly.is-static .fly__t--old { display: none; }
.fly.is-static .fly__t--new { clip-path: none !important; }
