.hero-atmosphere {
  --hero-still-image: url("/assets/branding/ammor-optics-wide.webp");
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 76% 25%, #203247 0%, transparent 47%),
    radial-gradient(ellipse at 32% 78%, #162b3c 0%, transparent 48%), #05070a;
}
.hero-motion {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 360ms ease-out;
}
.hero-motion[data-hero-motion-state="ready"] {
  opacity: 1;
}
.hero-still {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.hero-motion:not([data-hero-motion-state="ready"]) + .hero-still,
.hero-still-without-script {
  background-image: var(--hero-still-image);
}
.hero-atmosphere::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(
      ellipse 45% 48% at 23% 39%,
      #030509bd 0%,
      #03050945 75%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      #05070a26 0%,
      transparent 24%,
      transparent 84%,
      #05070af7 100%
    );
}
@media (max-width: 880px) {
  .hero-atmosphere {
    --hero-still-image: url("/assets/branding/ammor-optics-phone.webp");
  }
  .hero-atmosphere::after {
    background:
      radial-gradient(
        ellipse 92% 24% at 30% 16%,
        #030509e6 0%,
        #03050945 75%,
        transparent 100%
      ),
      linear-gradient(180deg, #05070a12 0%, transparent 48%, #05070ae6 100%);
  }
}

@media (max-width: 480px) {
  .home-page .hero .hero-atmosphere::after {
    background:
      linear-gradient(180deg, #05070a26 0%, transparent 64%, #05070ae6 100%),
      radial-gradient(ellipse 145% 48% at 0% 19%, #030509db 9%, #03050975 66%, transparent 100%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-motion:not([data-hero-motion-state="ready"]) + .hero-still {
    animation: hero-still-drift 14s ease-in-out infinite alternate;
  }
}

@keyframes hero-still-drift {
  from { transform: translate3d(-1.5%, .5%, 0) scale(1.04); }
  to { transform: translate3d(1.5%, -.5%, 0) scale(1.07); }
}
