/* Opening flight: Hudhud and the child fly over the moonlit city, then the
   camera passes through the clouds into the hero. Plays once per visit;
   skipped for reduced motion. Layers come from the book's own artwork. */
.flight{position:absolute;inset:0;z-index:3;overflow:hidden;background:#0c1c3a;pointer-events:none;opacity:1;transition:opacity .8s ease}
.flight[hidden]{display:none}
.flight.is-done{opacity:0}
.flight-sky,.flight-clouds,.flight-wipe{position:absolute;pointer-events:none;user-select:none}
.flight-sky{inset:-4%;width:108%;height:108%;max-width:none;object-fit:cover;object-position:70% 40%;transform-origin:70% 45%}
.flight-clouds{left:-10%;bottom:-6%;width:130%;max-width:none;transform-origin:50% 100%}
.flight-clouds.back{bottom:22%;width:70%;left:-12%;opacity:.4;filter:blur(1.5px)}
.flight-flyer{position:absolute;left:0;top:0;will-change:transform;pointer-events:none}
.flight-flyer img{display:block;width:100%;height:auto;filter:drop-shadow(0 18px 22px rgba(4,10,30,.35))}
.flight-boy{width:clamp(190px,38vw,620px)}
.flight-bird{width:clamp(96px,16vw,270px)}
.flight-wipe{width:90%;max-width:none;opacity:0}
.flight-wipe.l{left:-30%;bottom:-40%}
.flight-wipe.r{right:-30%;bottom:-40%;transform:scaleX(-1)}
.flight-glow{position:absolute;inset:0;background:radial-gradient(ellipse at 60% 55%,rgba(255,236,190,.95),rgba(255,226,170,.6) 40%,rgba(255,220,160,0) 75%);opacity:0;pointer-events:none}
.flight-skip{position:absolute;right:max(16px,3%);bottom:max(16px,3%);z-index:2;pointer-events:auto;min-height:44px;padding:10px 18px;border-radius:999px;border:1px solid rgba(255,255,255,.45);background:rgba(10,22,48,.45);color:#f8edcf;font:600 13px/1 var(--body,sans-serif);letter-spacing:.06em;backdrop-filter:blur(8px);cursor:pointer}
.flight-skip:focus-visible{outline:3px solid #e6c57e;outline-offset:3px}
.hero.flight-playing .hero-copy,.hero.flight-playing .hero-caption{opacity:0;transform:translateY(14px)}
.hero .hero-copy,.hero .hero-caption{transition:opacity .9s ease .15s,transform .9s ease .15s}
.hero.flight-reveal{animation:flight-settle 1.6s ease-out both}
@keyframes flight-settle{from{background-size:auto 112%}to{background-size:cover}}
@media(max-width:600px){
  .flight-sky{object-position:78% 50%}
  .flight-clouds{width:240%;left:-60%;bottom:-2%}
  .flight-clouds.back{width:150%;left:-40%;bottom:30%}
  .flight-boy{width:60vw}
  .flight-bird{width:30vw}
  .flight-wipe{width:180%}
}
@media(prefers-reduced-motion:reduce){.flight{display:none!important}}

/* ── Phones (mobile first): a tall, sharp scene from the book's own cover —
   the night sky over the clouds, with Hudhud and the child flying in it —
   and the headline below it, never on top of the picture. ── */
.m-stage{display:none}
@media(max-width:760px){
  .hero{display:block;height:auto;min-height:0;max-height:none;background:#0d1d3c;padding-bottom:44px}
  .hero-shade,.hero-caption,.flight{display:none!important}
  .m-stage{display:block;position:relative;width:100%;aspect-ratio:.74;max-height:80svh;overflow:hidden;background:#13296a}
  .m-sky{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 30%;transform-origin:50% 40%}
  .m-flyer{position:absolute;will-change:transform}
  .m-flyer img{display:block;width:100%;height:auto;filter:drop-shadow(0 14px 16px rgba(4,10,30,.35))}
  .m-bird{left:57%;top:11%;width:37%}
  .m-boy{left:1%;top:41%;width:76%}
  .m-bird img{animation:m-flap .42s ease-in-out infinite}
  .m-boy img{animation:m-bob 2.6s ease-in-out infinite}
  .m-bird{animation:m-glide 3.4s ease-in-out infinite}
  .m-fade{position:absolute;left:0;right:0;bottom:0;height:22%;background:linear-gradient(180deg,rgba(13,29,60,0),#0d1d3c 92%)}
  .hero-copy{position:relative;width:auto;max-width:560px;margin:-34px 0 0;padding:0 22px}
  .hero.flight-playing .hero-copy{opacity:0;transform:translateY(16px)}
  /* The closing banner uses the same sharp cover sky on phones. */
  .last{background:linear-gradient(180deg,#0d204acc,#0d204ae6),url('assets/flight/m-sky-860.webp') center 35%/cover}
}
@keyframes m-flap{0%,100%{transform:scaleY(1)}50%{transform:scaleY(.88) translateY(3%)}}
@keyframes m-bob{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-3.5%) rotate(-1deg)}}
@keyframes m-glide{0%,100%{transform:translate(0,0)}50%{transform:translate(-2%,-5%)}}
@media(prefers-reduced-motion:reduce){.m-bird,.m-bird img,.m-boy img{animation:none!important}}
