/*
 * Motion inspired by Cyera — smooth reveals, subtle hover lifts,
 * no excessive bounce or flash. Duration 0.35–0.7s.
 */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  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--fade {
  transform: none;
}

.reveal--fade.is-visible {
  transform: none;
}

.reveal--scale {
  transform: scale(0.96);
}

.reveal--scale.is-visible {
  transform: scale(1);
}

/* Hero entrance */
.hero .reveal {
  transition-duration: 0.85s;
}

/* Modal transitions */
.modal {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__panel {
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.is-open .modal__panel {
  transform: translateY(0) scale(1);
}

/* Subtle flow animation on hero SVG */
@keyframes flowPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes orbitDrift {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-flow__ring {
  animation: orbitDrift 60s linear infinite;
  transform-origin: center;
}

.hero-flow__node {
  animation: flowPulse 4s ease-in-out infinite;
}

.hero-flow__node:nth-child(2) { animation-delay: 0.8s; }
.hero-flow__node:nth-child(3) { animation-delay: 1.6s; }
.hero-flow__node:nth-child(4) { animation-delay: 2.4s; }

/* Card hover lift handled in styles.css transitions */

@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-flow__ring,
  .hero-flow__node {
    animation: none;
  }
}
