@keyframes pulse {
  to {
    transform: scale(0.55);
    opacity: 0.4;
  }
}
@keyframes orbit {
  to {
    rotate: 360deg;
  }
}
@keyframes grain {
  0%,
  100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2%, 1%);
  }
  40% {
    transform: translate(1%, -2%);
  }
  60% {
    transform: translate(2%, 2%);
  }
  80% {
    transform: translate(-1%, -1%);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(calc(2rem * var(--motion)));
  transition:
    opacity calc(var(--slow) * var(--motion)) var(--ease),
    transform calc(var(--slow) * var(--motion)) var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.mask-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path calc(var(--slow) * 1.2) var(--ease);
}
.mask-reveal.is-visible {
  clip-path: inset(0);
}
.motion-grain:after {
  content: "";
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
  animation: grain 0.35s steps(2) infinite;
}
.magnetic {
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .mask-reveal {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
  .cursor-enhancer,
  .loader {
    display: none !important;
  }
}

/* Pause non-essential CSS movement while the document is not visible. */
.page-is-hidden *,
.page-is-hidden *::before,
.page-is-hidden *::after {
  animation-play-state: paused !important;
}
