/* ============================================================
   enhance: GLOBAL motion  (owned by the global motion agent)
   Scope: Lenis plumbing + the page-transition curtain only.
   Never restyles sections, nav, cigarette or couch.
   Background stays pure black at all times.
   ============================================================ */

/* ---- Lenis smooth-scroll plumbing (JS is CDN-only, so ship its CSS here) ---- */
html.lenis,
html.lenis body{ height:auto; }
.lenis.lenis-smooth{ scroll-behavior:auto !important; }   /* overrides html{scroll-behavior:smooth} */
.lenis.lenis-smooth [data-lenis-prevent]{ overscroll-behavior:contain; }
.lenis.lenis-stopped{ overflow:clip; }
.lenis.lenis-smooth iframe{ pointer-events:none; }

/* ---- Page-transition curtain ----
   A quick black panel with a gold hairline leading edge. Sits ABOVE the
   content (#view, z2) but BELOW the header (z120) so the burning cigarette
   and the nav are never covered during a route change. Sacred cig stays alive. */
.mo-curtain{
  position:fixed; inset:0; z-index:100;
  background:var(--bg,#000);
  display:none;
  pointer-events:none;
  transform:translateY(0);
  will-change:transform;
  contain:strict;
}
.mo-curtain .mo-hair{
  position:absolute; left:0; right:0; bottom:0;
  height:2px;
  background:var(--gold,#EDA200);
  box-shadow:0 0 20px 1px rgba(237,162,0,.55);
}

/* GPU hints for the generic reveal entrance (cleared by JS after each run). */
html.motion .reveal{ backface-visibility:hidden; }

/* Reduced motion / stills: no curtain, nothing hidden. */
@media (prefers-reduced-motion: reduce){
  .mo-curtain{ display:none !important; }
}
