/* Shared motion primitives */
@keyframes masixPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

@keyframes masixBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

@keyframes masixFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

@keyframes masixShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes masixFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes masixScaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes masixOrbA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(40px, 30px) scale(1.05); }
}

@keyframes masixOrbB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-35px, -25px) scale(1.08); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

.stagger-children > * {
  opacity: 0;
  transform: translateY(14px);
  animation: masixFadeUp 0.55s var(--ease-out) forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.04s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.16s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.22s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.28s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.34s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
