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

/* ---------- Hero load choreography ---------- */
.hero__meta {
  opacity: 0;
  animation: fadeUp var(--dur-slow) var(--ease-expressive) forwards;
  animation-delay: 260ms;
}

.hero__socials {
  opacity: 0;
  transform: translateX(48px);
  animation: slideInRight var(--dur-slow) var(--ease-expressive) forwards;
  animation-delay: 850ms;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Nav entrance uses a transition (not a fill-forwards keyframe animation)
   so that the later .is-hidden scroll behavior can still override transform
   — an animation with fill:forwards would otherwise keep top-priority over
   the cascade and block the hide-on-scroll class from taking effect. */
.nav {
  opacity: 0;
  transform: translateX(-50%) translateY(-16px);
  transition: opacity var(--dur-slow) var(--ease-expressive), transform var(--dur-base) var(--ease-smooth),
    background var(--dur-base) var(--ease-smooth);
}

.nav.is-in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hero__name .char {
  display: inline-block;
  white-space: pre;
  opacity: 0;
  transform: translateY(60%) rotate(3deg);
  animation: charIn var(--dur-slow) var(--ease-expressive) forwards;
}

@keyframes charIn {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

.hero__pitch .role,
.hero__pitch p,
.hero__ctas {
  opacity: 0;
  transform: translateX(-48px);
  animation: slideInLeft var(--dur-base) var(--ease-expressive) forwards;
}

.hero__pitch .role {
  animation-delay: 550ms;
}
.hero__pitch p {
  animation-delay: 650ms;
}
.hero__ctas {
  animation-delay: 760ms;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__scroll-cue {
  opacity: 0;
  animation: fadeIn var(--dur-base) var(--ease-smooth) forwards;
  animation-delay: 1400ms;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero__meta,
  .hero__socials,
  .nav,
  .hero__name .char,
  .hero__pitch .role,
  .hero__pitch p,
  .hero__ctas,
  .hero__scroll-cue {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__portrait {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__portrait img {
    transition: none !important;
    transform: none !important;
  }
}

/* ---------- Ambient level-1 motion ---------- */
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -14px); }
}

.ambient-drift {
  animation: drift 14s var(--ease-smooth) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ambient-drift {
    animation: none;
  }
}
