.hero-domains {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
  margin: 1.5rem 0 3rem;
  color: var(--text-secondary);
  font-size: var(--page-hero-description-size);
  line-height: 1.65;
}

/* Overlapping grid items reserve the longest word's width during rotation. */
.hero-domains-words {
  display: grid;
  overflow: hidden;
  color: var(--primary-light);
  font-weight: 500;
}

.hero-domains-words > span {
  grid-area: 1 / 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(35%);
  transition: opacity 300ms ease, transform 300ms ease;
}

.hero-domains-words > .is-active {
  opacity: 1;
  transform: translateY(0);
}

.hero-domains-accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero-domains { justify-content: center; }
}


@media (prefers-reduced-motion: reduce) {
  .hero-domains-words > span { transition: none; transform: none; }
}
