/* ============================================================
   ANIMATIONS
   ============================================================ */

/* ---- HERO LOAD ANIMATIONS ---- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes drawUnderline {
  from { stroke-dashoffset: 300; }
  to   { stroke-dashoffset: 0; }
}

/* Hero stagger */
.hero__eyebrow {
  animation: fadeUp var(--duration-enter) var(--ease-out) 0ms both;
}

.hero__headline {
  animation: fadeUp var(--duration-enter) var(--ease-out) 120ms both;
}

.hero__subhead {
  animation: fadeUp var(--duration-enter) var(--ease-out) 240ms both;
}

.hero__ctas {
  animation: fadeUp var(--duration-enter) var(--ease-out) 360ms both;
}

.hero__arcs {
  animation: fadeIn var(--duration-enter) var(--ease-out) 480ms both;
}

/* Arc lines inside SVG */
.arc-line {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawArc 1200ms var(--ease-out) 600ms both;
}

@keyframes drawArc {
  to { stroke-dashoffset: 0; }
}

/* ---- NAV TRANSITION ---- */
.nav {
  will-change: background-color, box-shadow;
}

/* ---- HOVER MICRO-INTERACTIONS ---- */
.btn {
  will-change: transform, box-shadow;
}

/* ---- PAGE TRANSITIONS ---- */
@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  animation: pageFadeIn 400ms var(--ease-out) both;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__eyebrow,
  .hero__headline,
  .hero__subhead,
  .hero__ctas,
  .hero__arcs {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
