/* ================================================
   MOTION — custom cursor + kinetic-typography support.
   Loaded on every page alongside the other stylesheets;
   everything here is inert until js/motion.js actually
   initializes (guarded by prefers-reduced-motion / pointer:fine),
   so it's always safe to include.
   ================================================ */

/* Native cursor only hides once JS confirms the custom cursor
   actually started — never hidden by a bare CSS rule, so a blocked
   CDN or JS error can't leave the page without any cursor at all. */
.has-custom-cursor,
.has-custom-cursor a,
.has-custom-cursor button {
  cursor: none;
}
/* Text fields keep the native I-beam — the custom dot/ring still
   tracks over them, this just preserves normal typing affordance. */
.has-custom-cursor input,
.has-custom-cursor textarea,
.has-custom-cursor select {
  cursor: text;
}

.nc-cursor-dot,
.nc-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  will-change: transform;
}

.nc-cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: #fff;
}

.nc-cursor-ring {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width var(--duration-base) var(--ease-out),
              height var(--duration-base) var(--ease-out),
              margin var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out);
}

.nc-cursor-ring.is-view {
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  background: oklch(100% 0 0 / 0.08);
}

.nc-cursor-ring.is-link {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  background: oklch(100% 0 0 / 0.12);
}

.nc-cursor-label {
  font: 600 12px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

.nc-cursor-ring.is-view .nc-cursor-label {
  opacity: 1;
  transform: scale(1);
}
