.hero.has-slider::before {
  display: none;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--blue-dark);
}

.hero-slide {
  position: absolute;
  inset: -4%;
  opacity: 0;
  background-position: center;
  background-size: cover;
  animation: hero-fade 18s infinite, hero-ken-burns 18s ease-in-out infinite;
  will-change: opacity, transform;
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #121a39f8 0%, #121a39d9 45%, #121a3938 100%);
  content: '';
}

.hero-slide:nth-child(1) { opacity: 1; animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }

@keyframes hero-fade {
  0%, 32% { opacity: 1; }
  34%, 100% { opacity: 0; }
}

@keyframes hero-ken-burns {
  0% { transform: scale(1.02) translate3d(0, 0, 0); }
  32% { transform: scale(1.11) translate3d(-1.2%, -0.8%, 0); }
  34%, 100% { transform: scale(1.11) translate3d(-1.2%, -0.8%, 0); }
}

/* Quick-link cards overlap the hero by design; keep the metadata above them. */
.hero-note {
  bottom: 90px;
}

@media (max-width: 800px) {
  .hero-note {
    bottom: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none;
  }

  .hero-slide:not(:first-child) {
    display: none;
  }
}
