/* =========================================
   Hero Text – Precision Zoom-Out Animation
   ========================================= */

.hero-title {
  line-height: 1.25;
  overflow: hidden; /* ensures zoom stays inside the box */
}

/* Base state for all lines */
.hero-line {
  display: block;

  opacity: 0;
  transform: translateY(10px) scale(1.08); /* ⬅️ zoomed IN initially */
  filter: blur(2px);

  transition:
    opacity 0.8s ease,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s ease,
    font-weight 0.6s ease;
}

/* Visible state – settles BACK into the div */
.hero-line.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1); /* ⬅️ zoom OUT */
  filter: blur(0);
}

/* OASES – authority emphasis */
.hero-oases.is-visible {
  font-weight: 700;
}

/* Surgical underline */
.hero-underline {
  position: relative;
  padding-bottom: 0.25rem;
}

.hero-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: currentColor;
  transition: width 0.9s ease;
}

.hero-underline.is-visible::after {
  width: 100%;
}

/* Single micro-pulse (once only) */
.hero-pulse {
  animation: heroPulse 0.9s ease-out 1;
}

@keyframes heroPulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.015);
  }
  100% {
    transform: scale(1);
  }
}
