/* Rotating hero headline: preserve the hero layout across different copy lengths. */
#hero-title.hero-title-rotator {
  display: block;
  width: 100%;
  max-width: 430px;
  min-height: 2.98em;
  font-size: clamp(42px, 4.7vw, 64px);
  line-height: 0.99;
  text-wrap: balance;
}

.hero-rotator-copy {
  display: block;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 280ms ease, transform 280ms ease;
  will-change: opacity, transform;
}

.hero-rotator-copy.is-exiting {
  opacity: 0;
  transform: translate3d(0, 0.22em, 0);
}

@media (max-width: 720px) {
  #hero-title.hero-title-rotator {
    max-width: 100%;
    min-height: 2.98em;
    font-size: clamp(40px, 10.7vw, 52px);
    line-height: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rotator-copy {
    transition: none;
    transform: none;
    will-change: auto;
  }

  .hero-rotator-copy.is-exiting {
    transform: none;
  }
}
