/* Motion inspired by https://www.nexaliths.com/ — 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; }

@keyframes hero-glow {
  0%, 100% { opacity: 0.6; transform: translateX(-10%) scale(1); }
  50% { opacity: 1; transform: translateX(10%) scale(1.05); }
}

.hero__glow-line {
  animation: hero-glow 8s ease-in-out infinite;
}

@keyframes float-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__orbit-node {
  animation: float-subtle 4s ease-in-out infinite;
}

.hero__orbit-node:nth-child(2) { animation-delay: 0.5s; }
.hero__orbit-node:nth-child(3) { animation-delay: 1s; }
.hero__orbit-node:nth-child(4) { animation-delay: 1.5s; }
.hero__orbit-node:nth-child(5) { animation-delay: 2s; }
.hero__orbit-node:nth-child(6) { animation-delay: 2.5s; }

.modal.is-opening .modal__panel {
  animation: modal-in 0.35s cubic-bezier(0.16, 1, 0.3, 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.95) 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.95) translateY(12px);
  }
}

@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 {
    opacity: 1;
    transform: none;
  }
}
