/* ==========================================================================
   MOTION — cursor personalizado, estados iniciais e ajustes do GSAP
   ========================================================================== */

/* --------------------------------------------------------------------------
   Cursor (referência: jetbrain — rasterizado em 80px para escala nítida)
   -------------------------------------------------------------------------- */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: difference;
  will-change: transform;
  transform: translate3d(-160px, -160px, 0);
  transition: opacity var(--dur-fast) var(--ease);
}

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

.cursor__dot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  transform: scale(0.125);
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.4s ease;
}

.cursor.is-active .cursor__dot {
  transform: scale(1);
  opacity: 0.1;
}

@media (hover: none), (pointer: coarse) {
  .cursor {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor:not(.cursor--demo) .cursor__dot {
    transition: none;
  }
}

.motion-off .cursor {
  display: none;
}

/* --------------------------------------------------------------------------
   Estados iniciais dos elementos que entram no primeiro paint
   O failsafe em head.php libera o conteúdo se o JS não carregar.
   -------------------------------------------------------------------------- */

.motion-pending .home-banner__head,
.motion-pending .auth__form > *,
.motion-pending .auth__quote {
  opacity: 0;
}

/* --------------------------------------------------------------------------
   SplitText — linhas mascaradas do hero
   -------------------------------------------------------------------------- */

.motion-line {
  will-change: transform;
}
