/* Cursor */

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 4000;
  pointer-events: none;
}

.cursor .dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  /* a hairline dark edge keeps the cursor visible on white buttons without a full-page blend mode */
  box-shadow: 0 0 0 1px rgba(10, 11, 16, 0.4);
  transform: translate(-50%, -50%);
}

.cursor .ring {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(10, 11, 16, 0.3),
    inset 0 0 0 1px rgba(10, 11, 16, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.35s var(--ease),
    height 0.35s var(--ease),
    border-color 0.35s;
}

body.is-hover .cursor .ring {
  width: 56px;
  height: 56px;
  border-color: rgba(255, 255, 255, 0.9);
}

@media (hover: none) {
  .cursor {
    display: none;
  }
}

.cursor .dot,
.cursor .ring {
  will-change: transform;
}
