/* Student Path motion styles. Every hidden pre-state lives under html.motion,
   so no-JS and reduced-motion visitors get the full, readable page. */

/* ---- always-on base (no JS needed) ---- */
[data-count]{display:inline-block;font-variant-numeric:tabular-nums}
[data-kinetic]>span:not(:first-child){display:none}
[data-wipe]{overflow:hidden}
:where(:has(> [data-pushin]),:has(> img[data-reel]),:has(> img[data-parallax])){overflow:hidden}
[data-reel]{overflow:hidden}

/* path line + steps */
[data-path-line]{display:block;background:#F93107;transform-origin:50% 0}
[data-step]{transition:opacity .6s cubic-bezier(.16,1,.3,1),transform .6s cubic-bezier(.16,1,.3,1)}
[data-step].is-on{opacity:1;transform:none}

/* horizontal track: native swipe by default */
[data-hscroll]{position:relative;max-width:100%;overflow-x:hidden;overflow-x:clip}
[data-hscroll-track]{
  display:flex;gap:1rem;max-width:100%;
  overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;scroll-padding-inline:var(--pad,16px);
  -webkit-overflow-scrolling:touch;
}
[data-hscroll-track]>*{flex:0 0 auto;scroll-snap-align:start}
[data-hscroll]::after{
  content:"Swipe \2192";display:block;margin:.875rem var(--pad,16px) 0;
  font:600 .8125rem/1.2 var(--x,system-ui,sans-serif);letter-spacing:.08em;text-transform:uppercase;
  color:currentColor;transition:opacity .6s cubic-bezier(.16,1,.3,1);
}
[data-hscroll].is-swiped::after{opacity:0}
@media (max-width:899.98px){
  [data-hscroll-track]{scrollbar-width:none}
  [data-hscroll-track]::-webkit-scrollbar{display:none}
}
@media (min-width:900px){
  [data-hscroll]::after{content:"Scroll \2192"}
  [data-hscroll-track]{scrollbar-width:thin}
}

/* ---- motion-only pre-states ---- */
html.motion [data-split]{visibility:hidden}
html.motion [data-split] .sw{display:inline-block;clip-path:inset(-.6em -.3em -.18em -.3em)}
html.motion [data-split] .si{display:inline-block;will-change:transform}
html.motion [data-split].is-in .sw{clip-path:none}
html.motion [data-split].is-in .si{will-change:auto}

html.motion [data-reveal],
html.motion [data-stagger]>*{opacity:0}

html.motion [data-kinetic]{display:inline-grid;vertical-align:baseline;clip-path:inset(-.4em -.2em -.16em -.2em)}
html.motion [data-kinetic]>span{grid-area:1/1;display:block}
html.motion [data-kinetic]>span:not(:first-child){transform:translateY(150%)}

html.motion [data-pushin]{transform:scale(1.08);transform-origin:50% 50%}
html.motion [data-wipe]{clip-path:inset(100% 0 0 0)}
html.motion [data-wipe].is-in{clip-path:none}
html.motion [data-reel] img,
html.motion img[data-reel]{scale:1.18;transform-origin:0 50%}

html.motion [data-path-line]{opacity:0}
html.motion [data-step]:not(.is-on){opacity:.55;transform:translateY(16px)}

@media (min-width:900px){
  html.motion [data-parallax]{scale:1.14}
  html.motion [data-hscroll-track]{overflow:visible;scroll-snap-type:none;width:max-content;max-width:none}
  html.motion [data-hscroll]::after{display:none}
}
@media (max-width:899.98px){
  html.motion [data-hscroll]::after{animation:sp-nudge 1.1s cubic-bezier(.16,1,.3,1) .8s 2 alternate}
}
@keyframes sp-nudge{to{transform:translateX(6px)}}

/* Lenis */
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto !important}
.lenis.lenis-stopped{overflow:hidden}

/* belt and braces: the inline head script never adds .motion under reduce,
   but if the setting flips mid-session, show everything */
@media (prefers-reduced-motion:reduce){
  html.motion [data-split],html.motion [data-reveal],html.motion [data-stagger]>*,
  html.motion [data-path-line],html.motion [data-step]{visibility:visible !important;opacity:1 !important;transform:none !important}
  html.motion [data-wipe]{clip-path:none !important}
  html.motion [data-hscroll]::after{animation:none}
}

@media (min-width:900px){html.motion [data-pin="path"],html.motion [data-hscroll]{min-height:100vh;min-height:100svh}}
