/* ==========================================================================
   LOADER — the intro screen: the wing draws itself, then two panels lift away
   Animation: js/sections/loader.js     Turn off: content/settings.js → showLoader
   ========================================================================== */

.loader { position: fixed; inset: 0; z-index: 900; pointer-events: none; }

/* Two stacked panels: the blue one lifts first, then the orange one */
.loader__curtain,
.loader__panel   { position: absolute; inset: 0; will-change: transform; }
.loader__curtain { background: var(--loader-curtain); }
.loader__panel {
  display: grid; place-items: center; pointer-events: auto;
  background: radial-gradient(80% 60% at 50% 40%, var(--blue) 0%, var(--loader-bg) 55%, var(--navy-dark) 100%);
}

.loader__content { display: grid; justify-items: center; gap: 18px; text-align: center; }

/* The wing that draws itself */
.loader__wing { width: clamp(70px, 12vw, 110px); height: auto; overflow: visible; }
.loader__wing path {
  fill: var(--orange); fill-opacity: 0;          /* starts as an outline, JS fills it in */
  stroke: var(--orange); stroke-width: 3; stroke-linejoin: round;
}

/* "FLY KIRKUK" text */
.loader__brand {
  font-family: var(--font-logo); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: .32em; padding-inline-start: .32em; text-transform: uppercase;
  color: var(--text-on-dark);
}
.loader__brand span { display: inline-block; }

/* Small line of text under the logo */
.loader__tagline { font-size: .85rem; letter-spacing: .06em; color: var(--text-on-dark-soft); }

/* Progress bar */
.loader__bar      { width: 160px; height: 2px; border-radius: 2px; overflow: hidden; background: color-mix(in srgb, var(--cream) 15%, transparent); }
.loader__bar span { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left center; }
[dir="rtl"] .loader__bar span { transform-origin: right center; }

@media (prefers-reduced-motion: reduce) { .loader { display: none; } }
