.hero-carousel { overflow: hidden; }
.hero-slide.is-current { animation: topy-banner-enter 700ms cubic-bezier(.2,.65,.3,1) both; }
.hero-slide.is-current .banner-link img {
  transform-origin: center;
  animation: topy-banner-pan 6s ease-in-out both;
}
.hero-slide.is-current .hero-inner > div:first-child { animation: topy-banner-copy 650ms ease-out both; }
.hero-slide.is-current .hero-visual img { animation: topy-banner-float 5s ease-in-out infinite alternate; }
.hero-slide.is-current .hero-visual img:nth-child(2) { animation-delay: -2s; }
.hero-slide.is-current .hero-visual img:nth-child(3) { animation-delay: -4s; }
body:has(dialog[open]) .hero-slide.is-current,
body:has(dialog[open]) .hero-slide.is-current img,
body:has(dialog[open]) .hero-slide.is-current .hero-inner > div:first-child { animation-play-state: paused; }
@keyframes topy-banner-enter {
  from { opacity: .4; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes topy-banner-pan {
  from { transform: scale(1); }
  to { transform: scale(1.025) translateX(-4px); }
}
@keyframes topy-banner-copy {
  from { opacity: .5; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes topy-banner-float {
  from { translate: 0 -4px; }
  to { translate: 0 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-current,
  .hero-slide.is-current .banner-link img,
  .hero-slide.is-current .hero-visual img,
  .hero-slide.is-current .hero-inner > div:first-child { animation: none; }
}
