/* Copyright (c) 2026 Nomad Designz.
   Copyright (c) 2026 Jonathan Allen Zehner. Created by Jonathan Allen Zehner.
   4.4.0-rc.8.1-mist-wisps: homepage atmosphere only, after motion.css.
   Static textured artwork; only layer transforms/opacity change over time.
   Shared pause, visibility, offscreen and reduced-motion rules remain intact. */

@media screen {
  .hero .hero-mist {
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    /* Keep the original dark contrast overlay above the wisps. */
    z-index: -2;
  }
  .hero .hero-mist-far {
    background-image: url('../images/mist-wisps-far.svg?v=f099aff4f473');
    opacity: .64;
  }
  .hero .hero-mist-near {
    background-image: url('../images/mist-wisps-near.svg?v=9e442d2f15a8');
    opacity: .7;
  }
  .js .hero-mist-far {
    animation-name: nomad-wisp-far;
    animation-duration: 13s;
    animation-timing-function: cubic-bezier(.45, 0, .55, 1);
    /* Start midway through the drift, rather than easing from a still edge. */
    animation-delay: -6s;
  }
  .js .hero-mist-near {
    animation-name: nomad-wisp-near;
    animation-duration: 11s;
    animation-timing-function: cubic-bezier(.45, 0, .55, 1);
    animation-delay: -3s;
  }
}

@keyframes nomad-wisp-far {
  from { transform: translate3d(-6%, -1%, 0) scale(1.02); opacity: .61; }
  to { transform: translate3d(7%, 2%, 0) scale(1.04); opacity: .73; }
}
@keyframes nomad-wisp-near {
  from { transform: translate3d(6%, 2%, 0) scale(1.03); opacity: .73; }
  to { transform: translate3d(-8%, -1%, 0) scale(1.05); opacity: .63; }
}

@media screen and (max-width: 700px) {
  /* Narrow screens retain elongated wisps without increasing layer dimensions. */
  .hero .hero-mist-far { background-size: 132% 100%; background-position: 64% center; }
  .hero .hero-mist-near { background-size: 120% 100%; background-position: 58% center; }
}
@media screen and (prefers-reduced-motion: reduce) {
  .js .hero .hero-mist { animation: none !important; transform: none !important; }
  .hero .hero-mist-far, .hero .hero-mist-near { opacity: .35; }
}
