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

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

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

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

.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.04em;
  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 {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: middle;
  flex: 0 0 auto;
  text-align: start;
  height: 1.12em;
  max-width: 100%;
}

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

.hero-rotate-item {
  display: block;
  white-space: nowrap;
  text-align: start;
  line-height: 1.12;
  height: 1.12em;
  padding: 0;
  box-sizing: border-box;
  background: linear-gradient(135deg, #34d399, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Hide stacked phrases until JS sets clip height (mobile FOUC fix). */
.hero-rotate:not([data-rotate-ready]) .hero-rotate-item:not(:first-child) {
  visibility: hidden;
}

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

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

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

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

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

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

  .hero-rotate:not([data-rotate-ready]) .hero-rotate-item:not(:first-child) {
    visibility: visible;
  }
}
