/* BELAC motion kit. Each move is traced to a reference site from niches/research/master-inspo-part*.md.
   Content is never hidden: every effect is a hover, a scroll-linked transform or a state change on visible text. */
:root{
  --kit-ease:cubic-bezier(.16,1,.3,1);      /* carterogunsola.com nav roll, doemedia.com highlighter */
  --kit-ease-wipe:cubic-bezier(.2,.7,.1,1); /* pools.capital: one slow curve for every transition */
  --kit-blue:#0071e3;
}

/* Smooth scroll (titan.com, carterogunsola.com, doemedia.com and microsoft.ai all run Lenis) */
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-smooth [data-lenis-prevent]{overscroll-behavior:contain}
.lenis.lenis-stopped{overflow:hidden}

/* Letter-roll hover on nav links and buttons (carterogunsola.com 13.3, manychat.com 11.2) */
.kr{display:inline-flex;overflow:hidden;height:1.3em;line-height:1.3em;vertical-align:top}
.kr>span{display:inline-block;white-space:pre;text-shadow:0 1.3em currentColor;transition:translate .5s var(--kit-ease) calc(var(--i)*14ms)}
:is(a,button):is(:hover,:focus-visible) .kr>span{translate:0 -1.3em}
.kit-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Sliding highlight behind the hovered nav link (carterogunsola.com 13.3) */
.kit-navwrap{position:relative}
.kit-pill{position:absolute;top:50%;left:0;height:34px;width:0;translate:0 -50%;border-radius:999px;background:rgba(245,245,247,.09);pointer-events:none;opacity:0;z-index:0;
  transition:left .45s var(--kit-ease),width .45s var(--kit-ease),opacity .25s linear}
.kit-pill.on{opacity:1}
.kit-navwrap>*:not(.kit-pill){position:relative;z-index:1}

/* Highlighter that sweeps under a heading as it reaches the middle of the screen (doemedia.com 9.2).
   The heading is always fully visible; only the marker band changes. */
.kit-hl{background:linear-gradient(transparent 64%,rgba(0,113,227,.5) 64%,rgba(0,113,227,.5) 92%,transparent 92%) no-repeat 0 0/0% 100%;
  -webkit-box-decoration-break:clone;box-decoration-break:clone;transition:background-size 1.1s var(--kit-ease)}
.kit-hl.on{background-size:100% 100%}

/* Slow light drift behind the hero (microsoft.ai 10.1, CSS fallback of its WebGL gradient), BELAC blue only */
.kit-aurora{position:relative;isolation:isolate}
.kit-aurora::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(42% 55% at 20% 30%,rgba(0,113,227,.30),transparent 70%),
             radial-gradient(38% 50% at 80% 65%,rgba(41,151,255,.18),transparent 70%),
             radial-gradient(30% 40% at 55% 10%,rgba(0,113,227,.16),transparent 70%);
  background-size:180% 180%;animation:kit-drift 26s ease-in-out infinite alternate}
@keyframes kit-drift{0%{background-position:0% 0%,100% 100%,50% 0%}50%{background-position:60% 40%,30% 60%,20% 70%}100%{background-position:100% 100%,0% 20%,80% 30%}}

/* Screenshot drifts slower than its frame while scrolling (preymaker.com 16.3 inner parallax) */
.kit-par{scale:1.08;translate:0 var(--kit-py,0px);will-change:translate}

/* Scroll-driven service story: the section pins and each scroll step opens the next tab,
   with a progress line under the tabs (manychat.com 11.1, doemedia.com 9.3 step counter, soma-health.co 15.3) */
@media (min-width:960px){
  .kit-story{height:calc(100vh + (var(--kit-steps) - 1) * 65vh)}
  .kit-story>.wrap{position:sticky;top:96px}
  .kit-story .st{position:relative}
  .kit-story .st::after{content:"";position:absolute;left:50%;translate:-50% 0;bottom:-10px;height:2px;width:calc(var(--kit-p,0) * min(100%,480px));background:var(--kit-blue);border-radius:2px}
}

/* Menu sheet wipes down when opened (pools.capital 2.4) */
dialog.sheet[open]{animation:kit-wipe .8s var(--kit-ease-wipe)}
@keyframes kit-wipe{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0)}}
