/* ============ Arbaa Studio — custom cursor ============ */
/* Hide the system cursor only once our cursor is running */
html.has-cursor, html.has-cursor * { cursor: none !important; }
/* Keep native controls usable on a playing video */
html.has-cursor.cur-native .trailer, html.has-cursor.cur-native .trailer * { cursor: auto !important; }

.cur-dot, .cur-ring, .cur-trail { position: fixed; left: 0; top: 0; pointer-events: none; }
.cur-trail { width: 100vw; height: 100vh; z-index: 1000; }

.cur-dot {
  z-index: 1002; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference; opacity: 0; transition: opacity .2s;
}
.cur-ring { z-index: 1001; width: 0; height: 0; opacity: 0; transition: opacity .25s; }
.cur-on .cur-dot, .cur-on .cur-ring { opacity: 1; }

/* The inner disc is sized for the biggest state and scaled down for the others,
   so the ring always stays perfectly centred on the pointer. */
.cur-inner {
  position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .7); background: transparent;
  display: grid; place-items: center;
  transform: scale(.5);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), background .25s, border-color .25s, border-radius .3s;
}
.cur-label {
  font: 700 13px/1 var(--display); letter-spacing: .04em; text-transform: uppercase;
  color: #060c26; opacity: 0; transition: opacity .2s;
}

/* Links & buttons: ring grows and tints */
.cur-ring[data-state="link"] .cur-inner { transform: scale(.72); border-color: var(--yellow); background: rgba(255, 199, 0, .1); }

/* Labelled targets (Play, Drag, View, Shoot…) */
.cur-ring[data-state="label"] .cur-inner { transform: scale(1); background: var(--cyan); border-color: var(--cyan); }
.cur-ring[data-state="label"] .cur-label { opacity: 1; }

/* Sonar canvases */
.cur-ring[data-state="ping"] .cur-inner { transform: scale(.62); border-color: var(--cyan); border-width: 2px; box-shadow: 0 0 0 6px rgba(0, 218, 245, .12); }

/* Press */
.cur-ring.down .cur-inner { transform: scale(.4); }
.cur-ring.down[data-state="link"] .cur-inner { transform: scale(.6); }
.cur-ring.down[data-state="label"] .cur-inner { transform: scale(.88); }

/* Over a playing video, hand back to the system cursor */
html.cur-native .cur-dot, html.cur-native .cur-ring, html.cur-native .cur-trail { opacity: 0 !important; }

/* Always-visible ring: invert against whatever is underneath (except labelled discs) */
.cur-ring:not([data-state="label"]) { mix-blend-mode: difference; }
.cur-ring[data-state="link"] .cur-inner { border-color: #fff; background: rgba(255, 255, 255, .14); }
.cur-ring[data-state="ping"] .cur-inner { border-color: #fff; }
html.cur-labelled .cur-dot { opacity: 0; }
