/*=============== EDITORIAL CURSOR ===============*/

/* Only show custom cursor on pointer devices */
@media (hover: hover) and (pointer: fine) {

  /* Hide native cursor globally */
  *,
  *:hover { cursor: none !important; }

  /* ── Dot (snaps to mouse) ── */
  .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: #d4af37;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    will-change: transform;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease, width 0.2s ease, height 0.2s ease;
  }

  /* ── Ring (follows with lag via GSAP quickTo) ── */
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid transparent;
    pointer-events: none;
    z-index: 10000;
    will-change: transform;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
      width 0.25s cubic-bezier(0.23, 1, 0.32, 1),
      height 0.25s cubic-bezier(0.23, 1, 0.32, 1),
      border-color 0.25s ease,
      background 0.25s ease,
      opacity 0.2s ease;
    opacity: 0;
  }

  /* Ring text (arrow or data-cursor value) */
  .cursor-ring-text {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d4af37;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    white-space: nowrap;
  }

  /* ── State: hover over links / buttons ── */
  .cursor-ring.state-link {
    width: 44px;
    height: 44px;
    border-color: #d4af37;
    opacity: 1;
  }

  .cursor-ring.state-link .cursor-ring-text {
    opacity: 1;
  }

  .cursor-dot.state-link {
    opacity: 0.4;
    width: 4px;
    height: 4px;
  }

  /* ── State: hover over image (portrait) ── */
  .cursor-dot.state-image { opacity: 0; }
  .cursor-ring.state-image { opacity: 0; }

  /* ── State: hover over readable text ── */
  .cursor-dot.state-text {
    width: 2px;
    height: 18px;
    border-radius: 1px;
    background: rgba(212, 175, 55, 0.8);
  }

  .cursor-ring.state-text {
    opacity: 0;
  }

  /* ── "★ HELLO" image label ── */
  .cursor-image-label {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10002;
    pointer-events: none;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #d4af37;
    opacity: 0;
    transform: translate(12px, -28px);
    transition: opacity 0.2s ease;
    white-space: nowrap;
  }

  .cursor-image-label.visible { opacity: 1; }

} /* end @media hover */
