/* ==========================================================================
   Custom cursor
   ========================================================================== */
.cursor{
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  display: none;
}

body.has-cursor .cursor{ display: block; }
body.has-cursor{ cursor: none; }
body.has-cursor a, body.has-cursor button, body.has-cursor input{ cursor: none; }

.cursor-dot, .cursor-ring{
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  transform: translate3d(-50%,-50%,0);
  will-change: transform;
}

.cursor-dot{
  width: 8px; height: 8px;
  background: var(--red-500);
  box-shadow: 0 0 10px 2px rgba(255,59,78,.7);
}

.cursor-ring{
  width: 38px; height: 38px;
  border: 1.5px solid rgba(255,255,255,.4);
  transition: width var(--dur-fast) var(--ease-out), height var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

body.cursor-hover .cursor-ring{
  width: 64px; height: 64px;
  background: rgba(255,59,78,.12);
  border-color: rgba(255,59,78,.6);
}

body.cursor-down .cursor-dot{ transform: translate3d(-50%,-50%,0) scale(1.8); }
