/* Motion system derived from the reference's restrained, layered product storytelling. */

.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity var(--transition-reveal),
    transform var(--transition-reveal);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal:nth-child(2) {
  transition-delay: 100ms;
}

.hero .reveal:nth-child(3) {
  transition-delay: 180ms;
}

.capability-row:nth-child(2),
.solution-tile:nth-child(2) {
  transition-delay: 80ms;
}

.capability-row:nth-child(3),
.solution-tile:nth-child(3) {
  transition-delay: 150ms;
}

.capability-row:nth-child(4),
.solution-tile:nth-child(4) {
  transition-delay: 220ms;
}

.hero-signal__orbit--one {
  animation: slow-rotate 34s linear infinite;
}

.hero-signal__orbit--two {
  animation: slow-rotate 24s linear infinite reverse;
}

.hero-signal__beam {
  animation: slow-rotate 18s linear infinite;
}

.hero-signal__core {
  animation: core-breathe 5s ease-in-out infinite;
}

.hero-signal__note--one {
  animation: signal-drift 6s ease-in-out infinite;
}

.hero-signal__note--two {
  animation: signal-drift 7s ease-in-out 1s infinite reverse;
}

.hero-signal__note--three {
  animation: signal-drift 8s ease-in-out 0.5s infinite;
}

.journey-panel.is-entering {
  animation: panel-enter 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal:not([hidden]) .modal__backdrop {
  animation: modal-fade 250ms ease both;
}

.modal:not([hidden]) .modal__panel {
  animation: modal-enter 450ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal.is-closing .modal__backdrop {
  animation: modal-fade 220ms ease reverse both;
}

.modal.is-closing .modal__panel {
  animation: modal-enter 220ms ease reverse both;
}

@keyframes slow-rotate {
  to { transform: rotate(360deg); }
}

@keyframes core-breathe {
  0%,
  100% {
    box-shadow: 0 0 4rem rgba(125, 104, 244, 0.22);
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    box-shadow: 0 0 7rem rgba(125, 104, 244, 0.44);
    transform: translate(-50%, -50%) scale(1.025);
  }
}

@keyframes signal-drift {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-0.55rem); }
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateX(1rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
