/**
 * Custom contextual cursor. Desktop-only (assets/js/motion/cursor.js
 * checks for a fine pointer before activating and adds .cursor-active to body).
 */

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate3d(-50%, -50%, 0);
  transition: width var(--duration-fast) var(--ease-organic),
              height var(--duration-fast) var(--ease-organic),
              background var(--duration-fast) var(--ease-organic);
  will-change: transform;
}

.custom-cursor__label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-inverse);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-organic);
}

body.cursor-active {
  cursor: none;
}

body.cursor-active a,
body.cursor-active button {
  cursor: none;
}

.custom-cursor.is-hovering {
  width: 64px;
  height: 64px;
}

.custom-cursor.is-hovering .custom-cursor__label {
  opacity: 1;
}

@media (pointer: coarse) {
  .custom-cursor {
    display: none;
  }
}
