/* Motion inspired by synoro.ai — restrained fade-up 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; }
.reveal-delay-5 { transition-delay: 0.5s; }

.hero-stack__layer {
  opacity: 0;
  transform: translateX(-16px);
  animation: stackLayerIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-stack__layer:nth-child(1) { animation-delay: 0.15s; }
.hero-stack__layer:nth-child(2) { animation-delay: 0.25s; }
.hero-stack__layer:nth-child(3) { animation-delay: 0.35s; }
.hero-stack__layer:nth-child(4) { animation-delay: 0.45s; }
.hero-stack__layer:nth-child(5) { animation-delay: 0.55s; }

@keyframes stackLayerIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.agent-orbit__center {
  animation: orbitPulse 4s ease-in-out infinite;
}

@keyframes orbitPulse {
  0%, 100% { box-shadow: var(--shadow-lg); }
  50% { box-shadow: 0 0 0 8px rgba(20, 122, 110, 0.12), var(--shadow-lg); }
}

.modal.is-opening .modal__panel {
  animation: modalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.modal.is-closing .modal__panel {
  animation: modalOut 0.25s ease-in forwards;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes modalOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.96) 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;
  }

  .hero-stack__layer {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
