/* Motion derived from Decagon: restrained fades, tab progress, floating chips, no bounce. */

.reveal {
  opacity: 0;
  transform: translateY(1.15rem);
  animation: none;
}

.reveal.is-in {
  animation: fade-up var(--transition-reveal) var(--ease-out) forwards;
}

.hero__copy .reveal:nth-child(1) { animation-delay: 0.05s; }
.hero__copy .reveal:nth-child(2) { animation-delay: 0.14s; }
.hero__copy .reveal:nth-child(3) { animation-delay: 0.22s; }
.hero__copy .reveal:nth-child(4) { animation-delay: 0.3s; }
.hero__visual.reveal { animation-delay: 0.28s; }

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(1.15rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ribbon-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes tab-progress {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes node-breathe {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); }
}

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 #5754ff66; }
  70% { box-shadow: 0 0 0 8px #5754ff00; }
  100% { box-shadow: 0 0 0 0 #5754ff00; }
}

.node-pulse {
  transform-origin: center;
  animation: node-breathe 4.2s var(--ease-out) infinite;
}

.node-pulse--delay {
  animation-delay: 1.4s;
}

.insight-chip--one {
  animation: chip-float 6.5s var(--ease-out) infinite;
}

.insight-chip--two {
  animation: chip-float 7.2s var(--ease-out) 0.6s infinite;
}

.insight-chip--three {
  animation: chip-float 5.8s var(--ease-out) 1.1s infinite;
}

.pulse-console__live {
  animation: live-pulse 2.2s ease-out infinite;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.modal:not([hidden]) .modal__panel {
  animation: fade-up 320ms var(--ease-out);
}

@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;
  }
}
