/*
  Motion shared by every page (js/motion.js drives it).
  html.motion-pending is set in the page head unless the visitor prefers
  reduced motion; it hides the headline that is about to rise in, for at most
  a moment (the head script drops the class after 2.5s whatever happens).
*/

html.motion-pending .page-hero h1,
html.motion-pending .walk-title { visibility: hidden; }

/* Headlines rise word by word from behind their own baseline. */
.wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.wd > span { display: inline-block; will-change: transform; }

/* How we work: the route fills in as you scroll down it. */
.motion-on .route-fill { position: absolute; left: 27px; top: 28px; bottom: 28px; width: 5px; margin-left: -2px; border-radius: 3px; background: var(--green); transform-origin: 50% 0; transform: scaleY(0); z-index: 0; pointer-events: none; }
.motion-on .route > li::before { background: var(--paper); transition: background-color 0.35s ease, transform 0.35s var(--ease-out); }
.motion-on .route > li.is-reached::before { background: var(--mustard); }
.motion-on .route > li:not(.is-reached)::before { transform: scale(0.9); }

/* Businesses like yours: the lights come on window by window and the door opens. */
.motion-on .biz-illo .win { transition: fill 0.4s ease var(--wd, 0s); }
.motion-on .biz-illo:not(.is-awake) .win { fill: var(--sky) !important; }
.biz-illo.is-awake { --door-angle: 62deg; --door-light: 1; }
.biz-illo.is-awake .door, .biz-illo.is-awake .door-recess, .biz-illo.is-awake .door-spill { transition-delay: 0.5s; }
