.hero #hero-title[data-hero-word-rotation] { --hero-word-rotation-available: 1; }
/* Keep the complete translated phrase available to assistive technology. */
.hero #hero-title[data-hero-word-rotation] > em {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.hero #hero-title[data-hero-word-rotation] .hero-word-slot {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  color: #aeb8b1;
}
.hero-word-reserve {
  grid-area: 1 / 1;
  visibility: hidden;
  white-space: nowrap;
}
.hero-word-output {
  position: absolute;
  top: 0;
  left: 0;
  width: max-content;
  min-height: 1em;
  white-space: nowrap;
}
.hero-word-output::after {
  position: absolute;
  left: calc(100% + .035em);
  top: .14em;
  width: 2px;
  height: .8em;
  content: '';
  background: var(--accent);
  animation: hero-word-caret 900ms step-end infinite;
}
[data-hero-word-state="typing"] .hero-word-output::after,
[data-hero-word-state="deleting"] .hero-word-output::after { animation: none; }
[data-hero-word-state="paused"] .hero-word-output::after { display: none; }
@keyframes hero-word-caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero #hero-title[data-hero-word-rotation] > em {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }
  .hero #hero-title[data-hero-word-rotation] .hero-word-slot { display: none !important; }
}
