/* =========================
   REVEAL ANIMATIONS
========================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);

  transition:
    opacity 800ms var(--ease),
    transform 800ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-mask {
  overflow: hidden;
}

.reveal-mask {
  opacity: 0;
  transform: translateY(110%);

  transition:
    opacity 900ms var(--ease),
    transform 900ms var(--ease);
}

.reveal-mask.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero stagger */
.hero__title-line:nth-child(1) {
  transition-delay: 120ms;
}

.hero__title-line:nth-child(2) {
  transition-delay: 220ms;
}

.hero__title-line:nth-child(3) {
  transition-delay: 320ms;
}

.hero__bottom .reveal:nth-child(1) {
  transition-delay: 420ms;
}

.hero__bottom .reveal:nth-child(2) {
  transition-delay: 500ms;
}

.hero-projects.reveal {
  transition-delay: 580ms;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal,
  .reveal-mask {
    opacity: 1;
    transform: none;
  }
}
@keyframes statusPulse {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }

  70% {
    transform: scale(1.5);
    opacity: 0;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.about-status__dot::after {
  animation: statusPulse 2.2s ease-out infinite;
}