/* Home scene – living sky: clouds drift, sun rays breathe. 2026-11
   Uses the separate CSS `translate` property, so it adds to (not replaces) the scroll
   parallax that hero-depth.js sets with `transform` on the same images. */

#cloud01 img, #cloud02 img, #cloud03 img, #cloud04 img,
#cloud05 img, #cloud07 img, #cloud09 img, #cloud001 img {
    animation: hs-drift 90s ease-in-out infinite alternate;
}
#cloud01 img  { animation-duration: 105s; animation-delay: -35s; }
#cloud02 img  { animation-duration: 86s; animation-delay: -80s; }
#cloud03 img  { animation-duration: 71s;  animation-delay: -12s; --hs-far: 126px; }
#cloud04 img  { animation-duration: 112s; animation-delay: -95s; --hs-far: 90px; }
#cloud05 img  { animation-duration: 79s; animation-delay: -50s; --hs-far: 135px; }
#cloud07 img  { animation-duration: 120s; animation-delay: -20s; }
#cloud09 img  { animation-duration: 94s; animation-delay: -70s; }
#cloud001 img { animation-duration: 101s; animation-delay: -45s; --hs-far: 108px; }

@keyframes hs-drift {
    from { translate: calc(var(--hs-far, 160px) * -1) 0; }
    to   { translate: var(--hs-far, 160px) 0; }
}

/* sun rays gently brighten and fade, like light through passing cloud */
#ray1 img { animation: hs-glow 11s ease-in-out infinite alternate; }
#ray2 img { animation: hs-glow 14s ease-in-out -6s infinite alternate; }
@keyframes hs-glow {
    from { opacity: .55; }
    to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    #cloud01 img, #cloud02 img, #cloud03 img, #cloud04 img,
    #cloud05 img, #cloud07 img, #cloud09 img, #cloud001 img,
    #ray1 img, #ray2 img { animation: none; }
}
