/* LUA · motion layer (for Kinetic).
   Empty on purpose: the site works fully without it.
   Hooks: [data-motion="orbit-border" | "moon-sparkle" | "moon-icon" | "reveal" | "reveal-card"].
   Wrap all animation in @media (prefers-reduced-motion: no-preference) { … } */

/* Kinetic ------------------------------------------------------------------
   Styles for the layers that assets/js/motion.js adds at runtime.
   Nothing here applies until motion.js has run, so the site looks exactly
   the same without JS or with "reduce motion" on. */
@media (prefers-reduced-motion: no-preference) {

  /* "Entre na minha órbita ♡": neon tube. Two streaks of light travel *inside*
     the outline: the tube is masked to a thin ring on the border, so light only
     exists on the line. The glow is emitted by the lit part of the line itself
     (drop-shadow on the tube), so it hugs the outline and travels with the light.
     Sits above the button's fill and border, below its text. */
  .kinetic-orbit-on { position: relative; isolation: isolate; }
  .kinetic-orbit {
    position: absolute; inset: -1px; z-index: -1;      /* = the button's border box */
    border-radius: inherit; pointer-events: none;
    opacity: 0;                                        /* motion.js fades the effect in once placed */
    /* tight glow so the line stays crisp */
    filter: drop-shadow(0 0 1px rgba(242, 239, 246, .9))   /* Moonlight, on the line */
            drop-shadow(0 0 3px rgba(164, 124, 203, .7));  /* Violet (text), just around it */
  }
  .kinetic-orbit__tube {
    position: absolute; inset: 0; padding: 1.5px;
    border-radius: inherit; box-sizing: border-box;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  }
  /* each streak is a chain of short segments that all follow the outline,
     so the light bends round the curves instead of cutting across them.
     Colour and opacity per segment are set by motion.js (bright head → violet tail). */
  .kinetic-orbit__light {
    position: absolute; left: 0; top: 0;
    width: 14px; height: 8px; margin: -4px 0 0 -7px;
  }

  /* Hero moon: inline copy laid exactly over the original <img>,
     so only the sparkle can move. */
  .kinetic-moon { position: absolute; pointer-events: none; overflow: visible; max-width: none; }
  .kinetic-moon [data-part="sparkle"],
  .kinetic-moon [data-part="sparkle"] path { transform-box: fill-box; transform-origin: center; }
}
/* /Kinetic */
