@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll--visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-stagger--visible > *:nth-child(1) { transition-delay: 0.05s; }
.animate-stagger--visible > *:nth-child(2) { transition-delay: 0.1s; }
.animate-stagger--visible > *:nth-child(3) { transition-delay: 0.15s; }
.animate-stagger--visible > *:nth-child(4) { transition-delay: 0.2s; }
.animate-stagger--visible > *:nth-child(5) { transition-delay: 0.25s; }
.animate-stagger--visible > *:nth-child(6) { transition-delay: 0.3s; }
.animate-stagger--visible > *:nth-child(7) { transition-delay: 0.35s; }
.animate-stagger--visible > *:nth-child(8) { transition-delay: 0.4s; }

.animate-stagger--visible > * {
  opacity: 1;
  transform: translateY(0);
}

.hero__name {
  animation: fadeInUp 0.8s ease-out;
}

.hero__tagline {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__cta {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.typing-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--color-primary);
  animation: typing 3s steps(30) 1s forwards, blink 0.75s step-end infinite;
  max-width: fit-content;
}

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

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  .animate-stagger > * {
    opacity: 1;
    transform: none;
  }

  .typing-text {
    animation: none;
    border-right: none;
  }
}
