/* ==========================================================================
   cursor.css — Custom Cursor (dot + ring) with Magnetic
   Source pattern: Framer's cursor component
   ========================================================================== */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: var(--z-cursor);
  border-radius: 50%;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  will-change: transform, width, height;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--white);
  transition: opacity 0.2s var(--ease);
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--white);
  transition:
    width 0.3s var(--ease),
    height 0.3s var(--ease),
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    opacity 0.2s var(--ease);
}

.cursor-ring.is-hover {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.08);
}

.cursor-ring.is-grab {
  width: 56px;
  height: 56px;
}

.cursor-ring.is-text {
  width: 6px;
  height: 6px;
  background: var(--white);
  border-color: var(--white);
}

.cursor-dot.is-hidden,
.cursor-ring.is-hidden {
  opacity: 0;
}

/* Native cursor states for the page */
[data-cursor="pointer"] { cursor: none; }
[data-cursor="grab"]    { cursor: none; }

/* Touch / mobile: hide custom cursor */
@media (hover: none), (max-width: 1024px) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
  body,
  a,
  button,
  [data-cursor] {
    cursor: auto !important;
  }
}
