.hero__rotate {
  display: inline-block;
  vertical-align: bottom;
  text-align: left;
}

.hero__rotate-viewport {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  height: 1.15em;
}

.hero__rotate-track {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  will-change: transform;
}

.hero__rotate-word {
  display: block;
  box-sizing: border-box;
  flex: 0 0 auto;
  height: 1.15em;
  line-height: 1.15em;
  white-space: nowrap;
  opacity: 0;
  will-change: opacity;
}

.hero__rotate-word:first-child {
  opacity: 1;
}

.hero__rotate-word.is-clone {
  pointer-events: none;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__rotate-viewport {
    overflow: visible;
  }

  .hero__rotate-word {
    opacity: 1;
  }

  .hero__rotate-word:not(:first-child) {
    display: none;
  }
}
