/* =========================================================================
   SCROLL-LINKED COPY REVEAL  -  About / Discover
   The paragraph pulls into focus word by word as the section travels up.

   WHY IT IS A FOCUS PULL AND NOT A FADE.  The first version only raised
   opacity from .45 to 1. Measured, that reveal occupied 900px of scroll -
   one viewport, about one and a half trackpad flicks - and a 55% opacity
   swing on white text already sitting over a photograph is a small enough
   change that it read as the page brightening rather than as a deliberate
   effect. The honest fix was not a longer effect, because the paragraph
   runs out of screen: at this block height anything past ~1100px of travel
   finishes after the last words have left the viewport. The fix was a
   BIGGER one. Blur is a far larger perceptual delta than opacity, and an
   out-of-focus word is unmistakably an effect, where a dim word just looks
   like low contrast.

   WHY IT IS NOT SCROLL-COUPLED.  The obvious build drives every word's
   opacity straight off a scroll progress value. Two things go wrong with
   it, and both were measured on this page.

   Speed: when the words are welded to the scroll position, a fast flick
   finishes the whole reveal in a single frame. There is no animation to
   see, only a different state - which is exactly what it looked like.
   Here the scroll only sets a TARGET; a rate-limited loop walks the front
   towards it at a fixed ~130 words a second, so even a hard flick still
   plays a visible cascade. The effect has its own tempo and the scroll
   merely points at it.

   Cost: writing a custom property on the container invalidates style for
   every descendant, so all 86 words were recalculated and repainted every
   single frame. Measured against this page with the reveal disabled -
   16.7ms median - the scroll-coupled opacity version ran at 33.2ms and the
   blur version at 39.9ms with a p99 of 123ms. Toggling one class on a
   couple of words per frame and letting CSS transitions do the easing
   leaves the per-frame work at almost nothing.
   ========================================================================= */
.discover .lede .rv-w{display:inline-block}
html.has-anim .discover .lede .rv-w{
  opacity:.3;
  filter:blur(5px);
  transform:translateY(5px);
  transition:opacity .72s ease,
             filter .72s ease,
             transform .72s var(--ease-out);
}
html.has-anim .discover .lede .rv-w.is-lit{
  opacity:1;
  filter:blur(0);
  transform:none;
}
/* no script, or motion turned down: the copy is simply there */
@media (prefers-reduced-motion:reduce){
  .discover .lede .rv-w{opacity:1!important}
}
