@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.has-site-cursor,
  body.has-site-cursor * { cursor: none !important; }
  body.has-site-cursor iframe,
  body.has-site-cursor input,
  body.has-site-cursor textarea,
  body.has-site-cursor select,
  body.has-site-cursor [contenteditable="true"] { cursor: auto !important; }
  .site-cursor {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(var(--cursor-x, -100px), var(--cursor-y, -100px), 0) translate(-50%, -50%) scale(.8);
    transition: opacity .15s ease, transform .12s cubic-bezier(.2, .7, .3, 1);
  }
  .site-cursor.is-visible {
    opacity: 1;
    transform: translate3d(var(--cursor-x), var(--cursor-y), 0) translate(-50%, -50%) scale(1);
  }
  .site-cursor.is-visible.is-pressed {
    transform: translate3d(var(--cursor-x), var(--cursor-y), 0) translate(-50%, -50%) scale(.78);
  }
  .site-cursor::before {
    position: absolute;
    inset: 3px;
    content: "";
    border: 1px solid var(--red);
    border-radius: 50%;
    background: rgba(228, 72, 56, .08);
    animation: site-cursor-pulse 1.5s ease-in-out infinite;
  }
  .site-cursor::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    content: "";
    border-radius: 50%;
    background: var(--ink);
    animation: site-cursor-orbit 1.8s linear infinite;
  }
  .site-cursor span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red);
    transform: translate(-50%, -50%);
  }
  @keyframes site-cursor-pulse {
    50% { transform: scale(.78); }
  }
  @keyframes site-cursor-orbit {
    to { transform: translate(-50%, -50%) rotate(360deg) translateX(14px); }
  }
}
