.cursor {
  position: fixed;
  top: -40px;
  left: -40px;
  z-index: 1000;

  width: 10px;
  height: 10px;
  border: 1px solid color-mix(in srgb, var(--surface) 70%, transparent);
  border-radius: 50%;

  pointer-events: none;
  background: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);

  transform: translate(-50%, -50%);
  transition:
    width 180ms ease,
    height 180ms ease,
    opacity 180ms ease;
}

.cursor.is-hovering {
  width: 28px;
  height: 28px;
  opacity: 0.65;
}

.glow {
  position: fixed;
  top: -200px;
  left: -200px;
  z-index: 0;

  width: 380px;
  height: 380px;
  border-radius: 50%;

  pointer-events: none;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 12%, transparent) 0%,
    transparent 70%
  );
  filter: blur(45px);
  opacity: 0.75;

  transform: translate(-50%, -50%);
}

body > *:not(.cursor):not(.glow) {
  position: relative;
  z-index: 1;
}

.project-card {
  animation: card-enter 420ms ease both;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor,
  .glow {
    display: none;
  }
}

@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,
  .glow {
    display: none;
  }
}
