/* Motion inspired by orlixai.xyz — smooth reveals, subtle hover lifts */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger-children.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger-children.is-visible > *:nth-child(6) { transition-delay: 0.4s; }
.stagger-children.is-visible > *:nth-child(7) { transition-delay: 0.47s; }
.stagger-children.is-visible > *:nth-child(8) { transition-delay: 0.54s; }

.stagger-children.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.modal.is-opening .modal__panel {
  animation: modal-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.modal.is-closing .modal__panel {
  animation: modal-out 0.25s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes modal-out {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
}

.hero__title {
  animation: hero-fade 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hero__subtitle {
  animation: hero-fade 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.hero__actions {
  animation: hero-fade 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

@keyframes hero-fade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@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;
  }

  .reveal,
  .stagger-children > * {
    opacity: 1;
    transform: none;
  }

  .marquee__track {
    animation: none;
  }
}
