/* Hero rotating accent - layout only (font size comes from .hero h1) */

.hero h1.hero-headline {
  line-height: 1.08;
}

.hero-headline-line {
  display: block;
  line-height: 1.08;
}

.hero-headline-line + .hero-headline-line {
  margin-top: 0;
}

.hero-headline-by-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0.14em;
}

.hero-headline-line--by {
  margin-top: 0;
  text-align: center;
}

.hero-h1-dim {
  display: block;
  margin-top: 0.08em;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.68);
}

.hero-rotate {
  --hero-rotate-step: 1.2em;
  display: inline-grid;
  position: relative;
  overflow: hidden;
  vertical-align: middle;
  flex: 0 0 auto;
  text-align: start;
  height: var(--hero-rotate-step);
  max-width: 100%;
}

.hero-rotate-track {
  display: grid;
  grid-template-areas: "slot";
  will-change: transform;
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-rotate-item {
  grid-area: slot;
  white-space: nowrap;
  text-align: start;
  line-height: var(--hero-rotate-step);
  height: var(--hero-rotate-step);
  padding: 0;
  box-sizing: border-box;
  visibility: hidden;
  background: linear-gradient(135deg, #34d399, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-rotate-item:first-child {
  visibility: visible;
}

.hero-rotate[data-rotate-ready] {
  display: inline-block;
}

.hero-rotate[data-rotate-ready] .hero-rotate-track {
  display: block;
}

.hero-rotate[data-rotate-ready] .hero-rotate-item {
  display: block;
  grid-area: auto;
  visibility: visible;
}

@media (max-width: 767px) {
  .hero-h1-dim {
    font-size: 0.82em;
  }

  .hero-headline-by-row {
    flex-direction: column;
    align-items: center;
    gap: 0.04em;
  }

  .hero-headline-line--by {
    margin-top: 0;
  }

  .hero-rotate {
    margin: 0 auto;
    text-align: center;
  }

  .hero-rotate[data-rotate-ready] {
    display: block;
  }

  .hero-rotate-item {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rotate-track {
    transition: none;
  }
}
