/* HPACE custom cursor — desktop only */

.hp-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: transform;
}

.hp-cursor.is-visible {
  opacity: 1;
}

.hp-cursor__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #0094ff;
  box-shadow: 0 0 0 1px rgba(0, 148, 255, 0.3);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, opacity 0.2s ease;
}

.hp-cursor__ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 148, 255, 0.55);
  background: rgba(0, 148, 255, 0.07);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.hp-cursor.is-hover .hp-cursor__dot {
  transform: scale(0.4);
}

.hp-cursor.is-hover .hp-cursor__ring {
  transform: scale(1.55);
  border-color: #0094ff;
  background: rgba(0, 148, 255, 0.14);
}

.hp-cursor.is-press .hp-cursor__dot {
  transform: scale(0.25);
}

.hp-cursor.is-press .hp-cursor__ring {
  transform: scale(0.8);
  background: rgba(0, 148, 255, 0.22);
}

.hp-cursor.is-text .hp-cursor__dot {
  width: 2px;
  height: 18px;
  margin: -9px 0 0 -1px;
  border-radius: 1px;
  transform: none;
  background: var(--hp-text, #fff);
  box-shadow: none;
}

.hp-cursor.is-text .hp-cursor__ring {
  opacity: 0;
  transform: scale(0.35);
}

.hp-cursor__ripple,
.hp-cursor__ripple--fixed {
  position: fixed;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 2px solid rgba(0, 148, 255, 0.75);
  pointer-events: none;
  z-index: 2147483001;
  animation: hp-cursor-wave 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hp-cursor__ripple--fixed::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(0, 148, 255, 0.4);
  animation: hp-cursor-wave 0.65s 0.06s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes hp-cursor-wave {
  0% {
    transform: scale(0.35);
    opacity: 0.95;
  }
  100% {
    transform: scale(7);
    opacity: 0;
  }
}

html.hp-has-cursor,
html.hp-has-cursor body,
html.hp-has-cursor a,
html.hp-has-cursor button,
html.hp-has-cursor * {
  cursor: none !important;
}

html.hp-has-cursor body.hp-cursor-text,
html.hp-has-cursor body.hp-cursor-text * {
  cursor: text !important;
}

@media (max-width: 991.98px) {
  .hp-cursor,
  .hp-cursor__ripple--fixed {
    display: none !important;
  }

  html.hp-has-cursor,
  html.hp-has-cursor * {
    cursor: auto !important;
  }

  html.hp-has-cursor a[href],
  html.hp-has-cursor button,
  html.hp-has-cursor [role="button"] {
    cursor: pointer !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-cursor__ripple--fixed,
  .hp-cursor__ripple--fixed::after {
    animation: none;
    opacity: 0;
  }
}
