/* Shared counterclockwise diamond cursor and visible pixel trail. */
.diamond-cursor {
  position: fixed;
  z-index: 2147483000;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms linear;
  will-change: transform;
}
.diamond-cursor.is-visible { opacity: 1; }
.diamond-cursor-core {
  display: block;
  width: 17px;
  height: 17px;
  background: #fff;
  border: 1px solid #080808;
  box-shadow: 0 0 9px rgba(255,255,255,.8);
  transform: rotate(-45deg);
  animation: diamond-turn 8s linear infinite, diamond-pulse 2.6s ease-in-out infinite;
}
@keyframes diamond-turn { from { rotate: 0deg; } to { rotate: -360deg; } }
@keyframes diamond-pulse {
  0%, 100% { scale: 1; opacity: .92; }
  50% { scale: 1.22; opacity: 1; }
}
.cursor-pixel {
  position: fixed;
  z-index: 2147482999;
  left: 0;
  top: 0;
  background: #fff;
  box-shadow: 0 0 7px rgba(255,255,255,.9);
  pointer-events: none;
  will-change: transform, opacity;
  animation: pixel-rise linear forwards;
}
@keyframes pixel-rise {
  0% { opacity: 0; transform: translate3d(0,0,0) scale(.5); }
  12% { opacity: .98; transform: translate3d(0,-8px,0) scale(1); }
  26% { opacity: .75; transform: translate3d(calc(var(--float-x)*.3),-22vh,0) scale(.9) rotate(var(--float-rotation)); }
  28% { opacity: 1; clip-path: inset(35% 0 0 30%); }
  31% { opacity: .8; clip-path: inset(0); }
  64% { opacity: .45; transform: translate3d(calc(var(--float-x)*.7),-70vh,0) scale(.65) rotate(calc(var(--float-rotation)*-.5)); }
  100% { opacity: 0; transform: translate3d(var(--float-x),var(--float-y),0) scale(.25) rotate(var(--float-rotation)); }
}
@media (prefers-reduced-motion: reduce) {
  .diamond-cursor-core { animation: none; }
  .cursor-pixel { display: none !important; }
}
