/* FanBound v10.1: motion for FanBound's own pages (home, Premium 3D, start, enquire, brief chooser, 404).
   Rules followed: only transform and opacity move (no layout shift); entrances ease out, exits ease in, interface springs slightly;
   things that follow the finger (progress bar, parallax) are linear; nothing loops; nothing is hidden unless the script is running;
   "reduce motion" gets the plain page (html.mo is never set). Everything here is scoped under html.mo, set by a one-line script in the head. */
:root{--mo-out:cubic-bezier(.22,1,.36,1);--mo-in:cubic-bezier(.4,0,1,1);--mo-spring:cubic-bezier(.34,1.45,.64,1)}

/* 1. Page opening. The headline only slides (no fade), so the main content paints at once. */
@keyframes mo-rise{from{transform:translate3d(0,26px,0)}to{transform:none}}
@keyframes mo-fade-up{from{opacity:0;transform:translate3d(0,18px,0)}to{opacity:1;transform:none}}
@keyframes mo-drop{from{opacity:0;transform:translate3d(0,-8px,0)}to{opacity:1;transform:none}}
html.mo main h1{animation:mo-rise .7s var(--mo-out) both}
html.mo main h1 + .lead,html.mo main h1 + p{animation:mo-fade-up .6s .12s var(--mo-out) both}
html.mo main h1 ~ .actions,html.mo .page-head .actions{animation:mo-fade-up .6s .2s var(--mo-out) both}
html.mo .h88-me{animation:mo-rise .8s .1s var(--mo-out) both}
html.mo .h88-demo{animation:mo-rise .9s .18s var(--mo-out) both}
html.mo .h88-dev .tag{animation:mo-fade-up .5s .7s var(--mo-out) both}

/* 2. Sections arrive as you reach them (classes are added by motion.js to blocks below the first screen only). */
html.mo .mo-i{opacity:0;transform:translate3d(0,22px,0)}
html.mo .mo-i.mo-v{transform:translate3d(0,26px,0) scale(.975)}
html.mo .mo-i.mo-in{opacity:1;transform:none;transition:opacity .55s var(--mo-out),transform .75s var(--mo-out);transition-delay:var(--mo-d,0ms);will-change:opacity,transform}
html.mo .mo-i.mo-now{opacity:1;transform:none;transition:none}

/* 3. Header: a soft shadow once the page has moved, and a thin progress line on long pages. */
html.mo .top{transition:box-shadow .3s var(--mo-out)}
html.mo-scrolled .top{box-shadow:0 8px 28px rgba(10,50,56,.12)}
.mo-bar{position:absolute;left:0;right:0;bottom:-3px;height:3px;background:var(--gold,#F6C05F);transform:scaleX(0);transform-origin:0 50%;pointer-events:none;will-change:transform}

/* 4. Cards lift under a mouse (not on touch screens). */
@media (hover:hover) and (pointer:fine){
  html.mo .ex3 > *,html.mo a.ex-real,html.mo .sheet,html.mo .why > div,html.mo .bc{transition:transform .35s var(--mo-spring),box-shadow .35s var(--mo-out)}
  html.mo .ex3 > *:hover,html.mo a.ex-real:hover,html.mo .sheet:hover,html.mo .bc:hover{transform:translate3d(0,-5px,0);box-shadow:0 18px 40px rgba(10,50,56,.16)}
  html.mo .why > div:hover{transform:translate3d(0,-3px,0)}
  html.mo .btn{transition:background-color .2s var(--mo-out),border-color .2s var(--mo-out),transform .25s var(--mo-spring)}
  html.mo .btn:hover{transform:translate3d(0,-2px,0)}
  html.mo .btn:active{transform:scale(.97)}
}

/* 5. Small interface moments: answers open softly, the phone menu drops in. */
html.mo .faq details[open] > :not(summary){animation:mo-fade-up .35s var(--mo-out) both}
html.mo .top nav.open{animation:mo-drop .25s var(--mo-out) both}

@media print{html.mo .mo-i{opacity:1!important;transform:none!important}.mo-bar{display:none}}
