.cursor-lens {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  visibility: hidden;
}

.cursor-lens-surface { position: absolute; inset: 0; }

.cursor-lens-probes,
.cursor-lens-probes > i {
  position: absolute;
  pointer-events: none;
}
.cursor-lens-probes { inset: 0; }
.cursor-lens-probes > i { width: 0; height: 0; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) and (not (forced-colors: active)) {
  /* Use the idle ring while the animated lens cannot be drawn. */
  html:is([data-cursor-starting], .is-route-transition) {
    --cursor-lens-fallback: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cdefs%3E%3ClinearGradient id='ink' x2='76%25' y2='82%25'%3E%3Cstop stop-color='%23b38b9f'/%3E%3Cstop offset='.55' stop-color='%23ed91be'/%3E%3Cstop offset='1' stop-color='%23df458c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='14' cy='14' r='12' fill='none' stroke='url(%23ink)' stroke-width='1.85' opacity='.82'/%3E%3Ccircle cx='14' cy='14' r='2.5' fill='%23d93783'/%3E%3C/svg%3E") 14 14, default;
  }

  html:is([data-cursor-starting], .is-route-transition),
  html:is([data-cursor-starting], .is-route-transition) * { cursor: var(--cursor-lens-fallback) !important; }

  html:is([data-cursor-starting], .is-route-transition) :where(
    input, textarea, select, label:has(input, textarea, select),
    [contenteditable]:not([contenteditable="false"]), audio[controls], video[controls],
    iframe, :disabled, [aria-disabled="true"], [draggable="true"], [data-native-cursor],
    [inert], dialog[open]
  ) { --cursor-lens-fallback: auto; }

  html[data-cursor-lens]:not(.is-route-transition),
  html[data-cursor-lens]:not(.is-route-transition) * { cursor: none !important; }
  html[data-cursor-lens]:not(.is-route-transition) .cursor-lens { visibility: visible; }

  .cursor-lens-dot,
  .cursor-lens-halo {
    position: absolute;
    top: 0;
    left: 0;
  }

  .cursor-lens-dot::before {
    content: "";
    display: block;
    margin: -2.5px 0 0 -2.5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d93783;
    transition: transform 190ms cubic-bezier(.23, 1.45, .39, 1), background-color 140ms ease-out;
  }

  .cursor-lens-shape {
    stroke-width: 1.85px;
    opacity: .82;
    transition: opacity 170ms ease-out, stroke-width 160ms ease-out, filter 160ms ease-out;
  }

  .cursor-lens:is([data-mode="link"], [data-mode="media"], [data-mode="card"], [data-mode="control"], [data-pressed]) .cursor-lens-shape { opacity: 1; }
  .cursor-lens:is([data-mode="card"], [data-mode="control"]) .cursor-lens-shape {
    stroke-width: 2.6px;
    filter: drop-shadow(0 0 2px rgb(231 60 144 / 72%)) drop-shadow(0 0 5px rgb(231 60 144 / 32%));
  }
  .cursor-lens[data-mode="control"] .cursor-lens-shape { stroke-width: 2.3px; }
  html[data-cursor-lens] :is(.work-card, #members .member-list li > a)[data-lens-frame]:not(:focus-visible) { --card-line-reveal: 0; }

  .cursor-lens[data-mode="media"] .cursor-lens-dot::before { background: #ff91c7; }
  .cursor-lens[data-mode="card"] .cursor-lens-dot::before {
    background: #e84090;
    transform: scale(1.42);
  }
}

