.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

.stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }

.hero::before {
  animation: starsDrift 42s linear infinite;
}

.hero::after {
  animation: orbitPulse 16s ease-in-out infinite;
}

.visual-backdrop::before {
  animation: documentFloat 18s ease-in-out infinite;
}

.roadmap-board.is-visible .stage,
.architecture-preview.is-visible .stage {
  animation: stageLift 560ms ease both;
}

.roadmap-board.is-visible .stage:nth-child(2),
.architecture-preview.is-visible .stage:nth-child(2) { animation-delay: 90ms; }
.roadmap-board.is-visible .stage:nth-child(3),
.architecture-preview.is-visible .stage:nth-child(3) { animation-delay: 180ms; }
.roadmap-board.is-visible .stage:nth-child(4),
.architecture-preview.is-visible .stage:nth-child(4) { animation-delay: 270ms; }

.count-up {
  font-variant-numeric: tabular-nums;
}

@keyframes starsDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 220px 120px, 72px 72px, 72px 72px; }
}

@keyframes orbitPulse {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.74; }
  50% { transform: translate3d(-22px, 12px, 0) rotate(4deg); opacity: 0.92; }
}

@keyframes documentFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-16px) rotate(-3deg); }
}

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

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

  .reveal,
  .stagger > * {
    opacity: 1;
    transform: none;
  }
}
