/* Backdrop layer + scene — Victoria Falls
   Background package: Victoria Falls (scene id "falls"). Built
   2026-11-09 for glass mode (Theme Button One), first worn by the
   Hungry Muse promotional site.

   The scene: a photorealistic panorama of Victoria Falls in morning
   light (falls.webp), mist rising, a rainbow in the spray — and a
   slow pan across the falls: the panorama is wider than the screen
   and drifts sideways, eases, and drifts back, a 76 second sweep
   (the setting is --hm-falls-pan-duration). It never jumps: the
   sweep reverses at its ends instead of looping.

   Family contract (every package in ~/workspace/support/backgrounds):
   - The layer shows only in a glass mode: the host sets
     data-resolved="glass" (Hungry Muse site) or data-theme="glass"
     (Night Drop family) on <html>, and data-glass-scene="falls"
     when this scene is the visitor's choice. The choice is the
     host's to store; the site stores it under localStorage
     "wk-glass-backdrop" (default scene there is "ski").
   - The falls run bright: the scrim below is the readability
     tuning point, a dark veil between the scene and the page.
   - Motion parks when the host sets data-motion-paused="1" on
     <html> (this package's engine does it on page hide), stops in a
     hidden tab with the browser's own throttling, and is removed
     entirely for prefers-reduced-motion. */

.hm-backdrop--falls{position:fixed;inset:0;z-index:-1;display:none;overflow:hidden;pointer-events:none;background:#0a1410}
:root[data-resolved="glass"][data-glass-scene="falls"] .hm-backdrop--falls,
:root[data-theme="glass"][data-glass-scene="falls"] .hm-backdrop--falls{display:block}
.hm-backdrop--falls .hm-backdrop-pan{position:absolute;top:0;bottom:0;left:0;width:230%;background:url("falls.webp") center/cover no-repeat;animation:hm-falls-pan var(--hm-falls-pan-duration,76s) ease-in-out infinite alternate;will-change:transform}
@keyframes hm-falls-pan{from{transform:translateX(0)}to{transform:translateX(-16%)}}
.hm-backdrop--falls .hm-backdrop-scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,9,14,.46),rgba(4,9,14,.34) 42%,rgba(4,9,14,.55))}
:root[data-motion-paused="1"] .hm-backdrop--falls *{animation-play-state:paused!important}
@media (prefers-reduced-motion:reduce){
  .hm-backdrop--falls *{animation:none!important}
}
