/* Shared cursor appearance and motion. */
.is-page-loading:not(.is-page-ready) .custom-cursor { opacity: 0; visibility: hidden; }
.custom-cursor {
  --cursor-x: -100px;
  --cursor-y: -100px;
  --ring-x: -100px;
  --ring-y: -100px;
  position: fixed;
  z-index: 9999;
  inset: 0;
  --cursor-contrast-color: #e7cf0e;
  color: var(--cursor-contrast-color);
  mix-blend-mode: normal;
  pointer-events: none;
  opacity: 0;
  transition: opacity 140ms ease;
}
.custom-cursor.is-visible { opacity: 1; }
.custom-cursor__ring,
.custom-cursor__dot {
  position: absolute;
  display: block;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.custom-cursor__ring {
  top: var(--ring-y);
  left: var(--ring-x);
  width: 38px;
  height: 38px;
  border: 2.5px solid currentColor;
  box-shadow: none;
  transition: width 420ms cubic-bezier(0.2, 0.8, 0.2, 1), height 420ms cubic-bezier(0.2, 0.8, 0.2, 1), border-radius 420ms ease, border-width 420ms ease;
}
.custom-cursor__dot {
  top: var(--cursor-y);
  left: var(--cursor-x);
  width: 8px;
  height: 8px;
  background: currentColor;
  transition: width 320ms ease, height 320ms ease, opacity 240ms ease, border-radius 320ms ease;
}
.custom-cursor.is-scroll-hint .custom-cursor__ring {
  width: 26px;
  height: 45px;
  border-radius: 15px;
  animation: custom-cursor-mouse-nudge 1.8s ease-in-out infinite;
}
.custom-cursor.is-scroll-hint .custom-cursor__dot {
  top: calc(var(--cursor-y) - 10px);
  width: 5px;
  height: 8px;
  border-radius: 3px;
  animation: custom-cursor-wheel 1.4s cubic-bezier(0.45, 0, 0.55, 1) infinite, custom-cursor-mouse-nudge 1.8s ease-in-out infinite;
}
.custom-cursor.is-scroll-hint .custom-cursor__label {
  animation: custom-cursor-mouse-nudge 1.8s ease-in-out infinite;
}
@keyframes custom-cursor-mouse-nudge {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
.custom-cursor__label {
  position: absolute;
  top: calc(var(--cursor-y) + 30px);
  left: var(--cursor-x);
  color: currentColor;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 6px) scale(0.96);
  transition: opacity 320ms ease, transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.custom-cursor.is-scroll-hint .custom-cursor__label {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
@keyframes custom-cursor-wheel {
  0%, 12% { transform: translate(-50%, -50%) translateY(0); opacity: 0.4; }
  28% { opacity: 1; }
  72% { transform: translate(-50%, -50%) translateY(9px); opacity: 1; }
  100% { transform: translate(-50%, -50%) translateY(12px); opacity: 0.4; }
}
body.has-custom-cursor,
body.has-custom-cursor * { cursor: none !important; }
@media (prefers-reduced-motion: reduce) {
  .custom-cursor { display: none; }
  body.has-custom-cursor,
  body.has-custom-cursor * { cursor: auto !important; }
}
.custom-cursor__arrow {
  position: absolute;
  display: block;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease, transform 420ms cubic-bezier(.2, .8, .2, 1);
}
.custom-cursor__arrow {
  top: var(--cursor-y);
  left: var(--cursor-x);
  width: 16px;
  height: 16px;
  filter: drop-shadow(-1px 1px 1px color-mix(in srgb, var(--cursor-shadow-color, #17030e) 70%, transparent));
  transform: scale(.7);
  transform-origin: top left;
}
.custom-cursor.is-link-hover .custom-cursor__ring {
  width: 19px;
  height: 19px;
  animation: custom-cursor-link-pulse 1.15s ease-in-out infinite;
}
.custom-cursor.is-link-hover .custom-cursor__ring {
  -webkit-mask-image: conic-gradient(from 75deg, transparent 0deg 120deg, #000 120deg 360deg);
  mask-image: conic-gradient(from 75deg, transparent 0deg 120deg, #000 120deg 360deg);
}
.custom-cursor.is-link-hover .custom-cursor__dot { opacity: 0; }
.custom-cursor.is-link-hover .custom-cursor__arrow { opacity: 1; transform: scale(1); }
.custom-cursor.is-pressed .custom-cursor__arrow { transform: scale(.9); }

@keyframes custom-cursor-link-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  16% { transform: translate(-50%, -50%) scale(.78); }
  34% { transform: translate(-50%, -50%) scale(1); }
}

body.has-custom-cursor .page-loader { cursor: auto; }
body.has-custom-cursor .page-loader button { cursor: pointer; }
