.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  pointer-events: none;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader__mark {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  font-weight: 800;
  animation: pulse 1.2s ease-in-out infinite;
}

body.is-loading .loader {
  pointer-events: auto;
}

body.is-ready .loader,
body:not(.is-loading) .loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body,
main {
  opacity: 1;
  visibility: visible;
}

.cursor-dot {
  position: fixed;
  z-index: 99;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(12, 12, 13, 0.5);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.cursor-dot.is-active {
  width: 42px;
  height: 42px;
  background: rgba(200, 255, 95, 0.2);
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--right {
  transform: translateX(34px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.94);
    opacity: 0.72;
  }
}

@keyframes scrollDot {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  35%,
  65% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 22px);
  }
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@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;
  }

  .cursor-dot {
    display: none;
  }
}

@media (max-width: 768px) {
  .reveal,
  .reveal--right,
  .fade-up,
  .animate-on-scroll {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (max-width: 760px) {
  .reveal--right {
    transform: none;
  }
}
