/* Hide system cursor on desktop when custom cat cursor is active */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }

  a, button, .portfolio-item, .nav-dot, .back-to-top, input, textarea {
    cursor: none;
  }
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.25s ease;
  will-change: transform;
}

.custom-cursor.visible {
  opacity: 1;
}

.custom-cursor-cat {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s var(--ease-reveal);
  transform-origin: 50% 85%;
}

.custom-cursor.hover .custom-cursor-cat {
  transform: scale(1.25) rotate(-6deg);
}

@media (hover: none), (pointer: coarse) {
  body,
  a, button, .portfolio-item {
    cursor: auto;
  }

  .custom-cursor {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .custom-cursor-cat {
    transition: none;
  }
}
