/* ============================================================
   ReactBits Vanilla Adaptations (v4.4 DS123)
   B1 Dock Magnification · B2 Blur Text · B4 Target Cursor · B7 Magnet
   Zero external libraries · Zero `transition: all` · Zero layout animations
   ============================================================ */

/* ---------- B1. Dock Magnification (#nav a) ---------- */
.nav a,
.nav-drop-trigger {
  transform-origin: 50% 100%;
  transition:
    transform 0.18s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
    color 0.18s ease,
    background-color 0.18s ease;
}

/* ---------- B2. Blur Text (.sec-title h2) ---------- */
.sec-title h2.rv {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}

.sec-title h2 .bt-w {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  transform: translate3d(0, 10px, 0);
  transition:
    opacity 280ms var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
    filter 280ms var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
    transform 280ms var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.sec-title h2.in .bt-w,
.sec-title h2.is-revealed .bt-w {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

/* ---------- B7. Magnet Pull Decoupled from :active scale ---------- */
.pd-btn,
.btn-retro,
.stage-pill,
.to-top,
.gal-tab,
.cf-arrow,
.skip-intro,
.aigc-open,
.lanyard-mini-btn,
.mail,
.pg-escape {
  translate: var(--mag-x, 0px) var(--mag-y, 0px);
}

/* ---------- B4. Target Cursor (#targetCursor) ---------- */
.target-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 240;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.18s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.target-cursor.is-on {
  opacity: 1;
}

.target-cursor.is-hidden {
  opacity: 0 !important;
}

.target-cursor__corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  box-sizing: border-box;
  transform-origin: 0 0;
  transition:
    transform 0.22s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
    border-color 0.22s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.target-cursor__corner--tl {
  border-right: 0;
  border-bottom: 0;
  transform: translate(-16px, -16px);
}

.target-cursor__corner--tr {
  border-left: 0;
  border-bottom: 0;
  transform: translate(4px, -16px);
}

.target-cursor__corner--bl {
  border-right: 0;
  border-top: 0;
  transform: translate(-16px, 4px);
}

.target-cursor__corner--br {
  border-left: 0;
  border-top: 0;
  transform: translate(4px, 4px);
}

.target-cursor.is-active .target-cursor__corner {
  border-color: var(--red, #E23A2E);
}

.target-cursor.is-active .target-cursor__corner--tl {
  transform: translate(-22px, -22px) scale(1.333);
}

.target-cursor.is-active .target-cursor__corner--tr {
  transform: translate(6px, -22px) scale(1.333);
}

.target-cursor.is-active .target-cursor__corner--bl {
  transform: translate(-22px, 6px) scale(1.333);
}

.target-cursor.is-active .target-cursor__corner--br {
  transform: translate(6px, 6px) scale(1.333);
}

.target-cursor__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-3px, -3px);
}

.target-cursor__label {
  position: absolute;
  top: 22px;
  left: 0;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.18s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.target-cursor.is-active .target-cursor__label {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  body.has-target-cursor,
  body.has-target-cursor a,
  body.has-target-cursor button,
  body.has-target-cursor [role="button"] {
    cursor: none;
  }
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .target-cursor {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav a,
  .sec-title h2 .bt-w {
    transition: none;
  }

  .sec-title h2 .bt-w {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .pd-btn,
  .btn-retro,
  .stage-pill,
  .to-top,
  .gal-tab,
  .cf-arrow,
  .skip-intro,
  .aigc-open,
  .lanyard-mini-btn,
  .mail,
  .pg-escape {
    translate: none !important;
  }
}
