/* UA MOTION STANDARD V1 -- HERO_BIRDS preset v1 (canonical, owner-approved).
   Values are the GOLD values verbatim (Betawi POC c8d06f3 flight, as shipped
   on Jawa b20c042/307ff89 and Betawi 918a59e). Do NOT edit per template; the
   guard (tools/ua-guards/hero-birds-guard.mjs) pins this file's hash.
   Markup: the two overlays are DIRECT children of the Hero <section> (never
   inside the scaled 1080px scene -- the flight is written in screen units).
   The Hero section must be position:relative + overflow:hidden (clips the
   flight) and display:none until Buka Undangan, so the CSS flight starts when
   the Hero becomes active. GIF = wing flaps; CSS = flight path. */
.ua-hero-birds-flight{
  position:absolute;
  inset:0;
  z-index:28;
  overflow:visible;
  pointer-events:none;
}
.ua-hero-birds-flight img{
  position:absolute;
  left:-45%;
  top:43%;
  width:clamp(220px, 72%, 320px);
  height:auto;
  pointer-events:none;
  user-select:none;
  transform-origin:50% 50%;
  will-change:transform, opacity;
  animation:uaHeroBirdFlight 12800ms 650ms linear infinite both;
}
@keyframes uaHeroBirdFlight{
  0%{opacity:0;transform:translate3d(0, 0, 0) scale(.62) rotate(-11deg);}
  8%{opacity:.88;}
  43%{opacity:.92;transform:translate3d(calc(min(100vw, 480px) * .55), -14dvh, 0) scale(.9) rotate(-7deg);}
  74%{opacity:.8;transform:translate3d(calc(min(100vw, 480px) * .98), -28dvh, 0) scale(.72) rotate(-3deg);}
  100%{opacity:0;transform:translate3d(calc(min(100vw, 480px) * 1.35), -39dvh, 0) scale(.54) rotate(1deg);}
}
/* flock GIF carries its own left-to-right flight: placed across the Hero sky */
.ua-hero-birds-flock{
  position:absolute;
  left:0;
  top:30%;
  width:100%;
  z-index:28;
  pointer-events:none;
}
.ua-hero-birds-flock img{display:block;width:100%;height:auto;pointer-events:none;user-select:none;}
/* reduced motion, or a template's own motion-off switch (add .ua-motion-off to <html>) */
@media (prefers-reduced-motion:reduce){.ua-hero-birds-flight,.ua-hero-birds-flock{display:none;}}
.ua-motion-off .ua-hero-birds-flight,.ua-motion-off .ua-hero-birds-flock{display:none;}
