/* =========================================================================
   cursor.css — the site-wide adaptive cursor disc (core/cursor.js).
   Material: liquid glass (translucent, glossy, specular) — not frosted.
   No new tokens: tint mixed from --blue; springs from the system.
   ========================================================================= */

/* hide the native cursor only over interactive targets, only while active */
body.has-site-cursor :is(a[href], button:not([disabled]), [role="button"], summary, label[for], [data-cursor], [data-cursor-icon]):not([data-no-cursor]) {
  cursor: none;
}

.site-cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  will-change: transform;
}

.site-cursor__dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  margin: -31px 0 0 -31px;                 /* centre on the pointer */
  border-radius: 50%;
  overflow: hidden;
  color: var(--text-primary);              /* theme-aware: legible on the frost */
  font-family: var(--font-display, system-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;

  /* frosted glass — identical material to the compact header pill */
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  backdrop-filter: blur(18px) saturate(1.7);
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .42);

  opacity: 0;
  transform: scale(.4);
  transition: opacity .2s var(--ease-out, ease),
              transform .34s var(--ease-spring, cubic-bezier(.16,1,.3,1));
  will-change: transform, opacity;
}
.site-cursor.is-on .site-cursor__dot { opacity: 1; transform: scale(1); }

/* content sits above the sheen */
.site-cursor__label,
.site-cursor__icon { position: relative; z-index: 1; }

/* text vs icon modes */
.site-cursor__icon { display: none; }
.site-cursor__icon svg { width: 23px; height: 23px; display: block; }
.site-cursor__dot.is-icon .site-cursor__label { display: none; }
.site-cursor__dot.is-icon .site-cursor__icon  { display: flex; align-items: center; justify-content: center; }

@media (prefers-reduced-motion: reduce) { .site-cursor { display: none !important; } }
@media (hover: none), (pointer: coarse)  { .site-cursor { display: none !important; } }
