/* ---------- Hero motion styles ----------
   Link this AFTER css/style.css.
----------------------------------------- */

/* Nav pill stays pinned to the top-right for the whole page while scrolling;
   the logo scrolls away with the hero. Fixed (not sticky) so it isn't bounded
   by the hero's height — sticky would stop pinning once its short containing
   block scrolled past. It lives outside <section class="hero"> in the markup
   so .hero's `isolation: isolate` can't trap it in a stacking context that
   later sections (with their own opaque backgrounds) would paint over. */
.nav-pill {
  position: fixed;
  top: clamp(16px, 2.5vw, 36px);
  right: clamp(20px, 4.2vw, 60px);
  z-index: 30;
}

/* Badge shimmer */
.badge { position: relative; overflow: hidden; }
.shimmer .badge::after { content: ""; position: absolute; top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  animation: jca-sweep 5.5s ease-in-out infinite; }
@keyframes jca-sweep { 0% { left: -60%; } 18% { left: 120%; } 100% { left: 120%; } }

/* Nav CTA shimmer — the exact same sweep as the badge, offset half a cycle
   (2.75s, half of the shared 5.5s loop) so the two never sweep at once. */
.btn-cta { position: relative; overflow: hidden; z-index: 0; }
.shimmer .btn-cta::before { content: ""; position: absolute; top: 0; left: -60%;
  width: 45%; height: 100%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  animation: jca-sweep 5.5s ease-in-out 2.75s infinite; }

@media (prefers-reduced-motion: reduce) {
  .shimmer .badge::after,
  .shimmer .btn-cta::before { animation: none; }
}
