/* Scroll animations. Only active when html has .motion (set in <head>, skipped for reduced-motion users). */
html.motion{--e:cubic-bezier(.2,.7,.2,1)}

/* slide up */
html.motion :where(h1,h2,.lead,.body,.say,.actions,.legend,.pagecap,.score,.fine,.altmail,.mail,details,.who li,
  .grid>div,.nums>div,.list>div,.steps>div,.rec>div,.key li,.rules li,.chips li,.strip .w>*,.form>*,.bio p,
  .kick .hand,.say+.hand,.cta .btn,.band>.w>.hand,.two .hand,.cap){
  opacity:0;translate:0 34px;
  transition:opacity .8s var(--e),translate .8s var(--e);transition-delay:var(--d,0ms)}
html.motion .top *{opacity:1;translate:none}

/* slide in from the sides */
html.motion :where(.shot,.page){opacity:0;translate:-64px 0;transition:opacity .9s var(--e),translate .9s var(--e);transition-delay:var(--d,0ms)}
html.motion :where(.doc,.sheetwrap){opacity:0;translate:64px 0;transition:opacity .9s var(--e),translate .9s var(--e);transition-delay:var(--d,0ms)}

/* rubber stamps slam down */
html.motion .stamp{opacity:0;scale:1.9;transition:opacity .2s linear,scale .5s cubic-bezier(.3,1.5,.5,1);transition-delay:var(--d,300ms)}

html.motion .in{opacity:1;translate:none;scale:none}

/* red pen underline draws itself */
html.motion .u path{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.1s var(--e) .7s}
html.motion .in .u path{stroke-dashoffset:0}

/* marked-up RFP sheet (services): circle and arrows draw, notes appear */
html.motion .sheetwrap path{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.2s var(--e) .7s}
html.motion .sheetwrap.in path{stroke-dashoffset:0}
html.motion .sheet .h{opacity:0;transition:opacity .6s ease 1.4s}
html.motion .sheetwrap.in .sheet .h{opacity:1}

/* template front page (home): highlighter wipes, numbered notes pop in one by one */
html.motion .page .hl{scale:0 1;transform-origin:left center;transition:scale .7s var(--e) .9s}
html.motion .page.in .hl{scale:none}
html.motion .page .mk{opacity:0;scale:.3;transition:opacity .25s linear,scale .45s cubic-bezier(.3,1.6,.5,1);transition-delay:var(--d,1s)}
html.motion .page .pen{opacity:0;translate:0 8px;transition:opacity .6s ease,translate .6s var(--e);transition-delay:var(--d,1.6s)}
html.motion .page.in :is(.mk,.pen){opacity:1;scale:none;translate:none}

/* redlined contract (services): highlighter wipes, edits appear */
html.motion .doc mark{background:linear-gradient(#ffe600,#ffe600) 0 0/0% 100% no-repeat;transition:background-size 1s var(--e) .6s}
html.motion .doc.in mark{background-size:100% 100%}
html.motion .doc :is(ins,.note){opacity:0;transition:opacity .5s ease 1.2s}
html.motion .doc.in :is(ins,.note){opacity:1}

/* parallax layers move with transforms set in motion.js */
.scene svg g[id^="px-"]{will-change:transform}

/* keep slide-ins and stamps from widening the page on phones */
.band,.strip,.scene{overflow-x:clip}
html.motion section.band:first-of-type{overflow:clip}

/* printing: show everything, whether or not it has been scrolled into view */
@media print{
  html.motion body :not(svg *){opacity:1 !important;translate:none !important;scale:none !important;transition:none !important}
  html.motion .sheet .h{opacity:1 !important}
  html.motion :is(.u,.sheetwrap) path{stroke-dashoffset:0 !important}
}
