.hero {
  position: relative;
  display: grid;
  min-height: 540px;
  place-items: center;
  overflow: hidden;
  padding: 4rem 1.5rem 5rem;
  background: var(--wine);
  isolation: isolate;
}
.hero::before {
  position: absolute;
  z-index: -1;
  width: min(66vw, 720px);
  height: min(66vw, 720px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  content: "";
  animation: hero-ring 14s ease-in-out infinite alternate;
}
.hero::after {
  position: absolute;
  right: -7rem;
  bottom: -9rem;
  z-index: -1;
  width: 21rem;
  height: 21rem;
  border-radius: 50%;
  background: var(--blue);
  content: "";
  animation: hero-orb 11s ease-in-out infinite alternate;
}
.hero__content {
  max-width: 720px;
  text-align: center;
}
.hero__content > * {
  animation: hero-enter 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero__content > .eyebrow {
  animation-delay: 80ms;
}
.hero__content > h1 {
  animation-delay: 160ms;
}
.hero__content > .hero__intro {
  animation-delay: 240ms;
}
.hero__content > .hero__link {
  animation-delay: 320ms;
}
.hero__title-text {
  display: inline;
}
.hero__word {
  display: inline-block;
  white-space: nowrap;
}
.hero__letter {
  display: inline-block;
  opacity: 0;
  animation: hero-letter-in 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(160ms + var(--letter-index) * 32ms);
}
.eyebrow {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.83);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero__intro {
  max-width: 440px;
  margin: 0.9rem auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}
.hero__link {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  margin-top: 2.25rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}
.hero__link:hover, .hero__link:focus-visible {
  background: rgba(175, 210, 233, 0.2);
  transform: translateY(-2px);
}
.hero__ornament {
  position: absolute;
  top: 13%;
  right: 10%;
  color: var(--lavender);
  font-size: clamp(2rem, 7vw, 5rem);
  transform: rotate(18deg);
  animation: hero-twinkle 3.2s ease-in-out infinite;
}
.hero__spark {
  position: absolute;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--mauve);
  animation: hero-float 5s ease-in-out infinite;
}
.hero__spark--one {
  top: 23%;
  left: 12%;
}
.hero__spark--two {
  bottom: 19%;
  left: 22%;
  width: 1rem;
  height: 1rem;
  background: var(--blue);
  animation-delay: -2.2s;
}
@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes hero-letter-in {
  from {
    opacity: 0;
    transform: translateY(0.45em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes hero-ring {
  from {
    transform: scale(0.98) translate(-1%, -1%);
  }
  to {
    transform: scale(1.02) translate(1%, 1%);
  }
}
@keyframes hero-orb {
  from {
    transform: translate(-0.5rem, 0.5rem);
  }
  to {
    transform: translate(0.5rem, -0.75rem);
  }
}
@keyframes hero-twinkle {
  0%, 100% {
    opacity: 0.65;
    transform: rotate(18deg) scale(0.92);
  }
  50% {
    opacity: 1;
    transform: rotate(24deg) scale(1.08);
  }
}
@keyframes hero-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.7rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after,
  .hero__content > *,
  .hero__letter,
  .hero__ornament,
  .hero__spark {
    animation: none;
  }
  .hero__letter {
    opacity: 1;
  }
}
@media (max-width: 800px) {
  .hero {
    min-height: 500px;
  }
}
@media (max-width: 560px) {
  .hero {
    min-height: 470px;
    padding-inline: 1.25rem;
  }
  .hero__ornament {
    top: 8%;
    right: 7%;
  }
  h1 {
    font-size: clamp(2.6rem, 12vw, 4.5rem);
  }
}
