/* ================================================================
   STARTORCH STUDIOS — cursor.css
   Hardware-Accelerated Light Blue Sci-Fi Reticle Cursor.
   Electric Sky Blue (#0EA5E9 / #38BDF8) HUD styling.
   ================================================================ */

@media (pointer: fine) {
  *,
  *::before,
  *::after {
    cursor: none !important;
  }
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  opacity: 0;

  will-change: transform;
  transform: translate3d(-100px, -100px, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  transition:
    opacity        200ms ease,
    width          200ms cubic-bezier(0.16, 1, 0.3, 1),
    height         200ms cubic-bezier(0.16, 1, 0.3, 1),
    background     200ms ease,
    border-color   200ms ease,
    border-radius  200ms ease;
}

/* ── Core Dot ── */
.cursor-dot {
  width: 7px;
  height: 7px;
  background: #0EA5E9;
  box-shadow: 0 0 12px 3px rgba(14, 165, 233, 0.9);
}

/* ── Outer Light Blue Target Ring ── */
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(14, 165, 233, 0.7);
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.25);
}

.cursor-ring::before,
.cursor-ring::after {
  content: '';
  position: absolute;
  background: #0EA5E9;
  pointer-events: none;
}
.cursor-ring::before {
  top: -3px;
  left: 50%;
  width: 2px;
  height: 3px;
  transform: translateX(-50%);
  box-shadow: 0 39px 0 #0EA5E9;
}
.cursor-ring::after {
  top: 50%;
  left: -3px;
  width: 3px;
  height: 2px;
  transform: translateY(-50%);
  box-shadow: 39px 0 0 #0EA5E9;
}

.cursor-dot.is-visible  { opacity: 1; }
.cursor-ring.is-visible { opacity: 1; }

/* ── State: Hovering ── */
.cursor-dot.is-hovering {
  width: 9px;
  height: 9px;
  background: #0EA5E9;
  box-shadow: 0 0 16px 4px rgba(14, 165, 233, 0.95);
}

.cursor-ring.is-hovering {
  width: 52px;
  height: 52px;
  border-color: #0EA5E9;
  background: rgba(14, 165, 233, 0.12);
  box-shadow: 0 0 24px rgba(14, 165, 233, 0.45);
}
.cursor-ring.is-hovering::before {
  box-shadow: 0 55px 0 #0EA5E9;
}
.cursor-ring.is-hovering::after {
  box-shadow: 55px 0 0 #0EA5E9;
}

/* ── State: Hovering Work Card ── */
.cursor-dot.is-card {
  width: 0;
  height: 0;
  opacity: 0;
}

.cursor-ring.is-card {
  width: 92px;
  height: 92px;
  border: 1.5px solid #0EA5E9;
  background: #0EA5E9;
  box-shadow: 0 0 36px rgba(14, 165, 233, 0.6);
}
.cursor-ring.is-card::before,
.cursor-ring.is-card::after {
  display: none;
}

.cursor-ring.is-card span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
}

/* ── State: Text I-beam ── */
.cursor-dot.is-text {
  width: 2px;
  height: 22px;
  border-radius: 1px;
  background: #0EA5E9;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.8);
}
.cursor-ring.is-text {
  width: 0;
  height: 0;
  opacity: 0;
}
.cursor-ring.is-text::before,
.cursor-ring.is-text::after {
  display: none;
}

/* ── State: Pressed ── */
.cursor-dot.is-pressed {
  width: 5px;
  height: 5px;
  box-shadow: 0 0 20px 5px #0EA5E9;
}

.cursor-ring.is-pressed {
  width: 28px;
  height: 28px;
  background: rgba(14, 165, 233, 0.3);
  border-color: #0284C7;
}

@media (prefers-reduced-motion: reduce) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
  * { cursor: auto !important; }
}
