.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 850ms var(--ease),
    transform 850ms var(--ease),
    filter 850ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

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

.slide.is-active .cinematic-grid {
  animation: gridDrift 18s linear infinite;
}

.slide.is-active .ribbon-field span {
  animation: ribbonSweep 7.5s var(--ease) infinite alternate;
}

.slide.is-active .ribbon-field span:nth-child(2) {
  animation-delay: -2.5s;
}

.slide.is-active .ribbon-field span:nth-child(3) {
  animation-delay: -4s;
}

.hero-logo,
.closing-final img,
.stakeholder-halo__center img,
.solution-orbit__center img {
  animation: premiumFloat 4.8s ease-in-out infinite;
}

.stakeholder-halo {
  animation: softTilt 8s ease-in-out infinite alternate;
}

.stakeholder-halo > span {
  animation: nodeBreath 3.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 120ms);
}

.solution-lines path {
  animation: dashFlow 12s linear infinite;
}

.solution-orbit.reveal.is-visible .orbit-node {
  animation: orbitNodeIn 700ms var(--ease) both, nodeBreath 4.2s ease-in-out infinite;
  animation-delay: 120ms;
}

.solution-orbit.reveal.is-visible .solution-orbit__center {
  animation: centerIn 900ms var(--ease) both, premiumFloat 5.2s ease-in-out infinite;
}

.journey-line li.reveal.is-visible span {
  animation: stepGlow 2.8s ease-in-out infinite;
}

.timeline-item.reveal.is-visible > span,
.why-card.reveal.is-visible span,
.problem-card.reveal.is-visible .problem-card__number {
  animation: badgePop 620ms var(--ease) both;
}

.modal.is-open .modal__panel {
  animation: modalIn 360ms var(--ease) both;
}

.modal.is-open .modal__backdrop {
  animation: fadeIn 260ms ease both;
}

@keyframes gridDrift {
  0% {
    transform: translate3d(0, 0, 0) rotate(-6deg);
  }
  100% {
    transform: translate3d(3%, -3%, 0) rotate(-6deg);
  }
}

@keyframes ribbonSweep {
  0% {
    opacity: 0.35;
    translate: -6vw 0;
    scale: 0.96 1;
  }
  100% {
    opacity: 0.82;
    translate: 9vw 0;
    scale: 1.04 1;
  }
}

@keyframes premiumFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes softTilt {
  0% {
    transform: perspective(900px) rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: perspective(900px) rotateX(1.5deg) rotateY(-2deg);
  }
}

@keyframes nodeBreath {
  0%,
  100% {
    box-shadow: 0 12px 32px rgba(35, 68, 106, 0.1);
  }
  50% {
    box-shadow: 0 18px 46px rgba(28, 162, 179, 0.16);
  }
}

@keyframes dashFlow {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -160;
  }
}

@keyframes orbitNodeIn {
  0% {
    opacity: 0;
    transform: scale(0.74);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes centerIn {
  0% {
    opacity: 0;
    transform: scale(0.82);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes stepGlow {
  0%,
  100% {
    box-shadow: 0 12px 34px rgba(35, 68, 106, 0.1);
  }
  50% {
    box-shadow: 0 18px 54px rgba(212, 175, 55, 0.17);
  }
}

@keyframes badgePop {
  0% {
    transform: scale(0.76);
  }
  80% {
    transform: scale(1.07);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
