/* hero-type — the hero text choreography (js/fx/hero-type.js builds the spans and gives the cues).
   Every hidden state hangs off .fx-hero-type, a class only the script adds, so without JS or with
   reduced motion the core markup shows as written. Cue = .fx-hero-type-in on the same element.
   --fx-hero-type-d is each piece's own delay inside its block, set by the script.
   Transitions live on the -in rules only: hiding (when the script adds .fx-hero-type) is instant,
   so nothing is seen fading out under the curtain's edge on a slow load. */

/* the whole sentence, once, for screen readers (the animated copy is aria-hidden) */
.fx-hero-type-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ---------- words: a static mask per word, so the masks survive any line wrap ---------- */
.fx-hero-type-w{display:inline-block;clip-path:inset(-.2em -.3em -.14em -.3em)} /* room for descenders and the overshoot */
.fx-hero-type-w>span{display:inline-block}
.fx-hero-type-nb{white-space:nowrap} /* keeps the full stop on the same line as its word */

/* ---------- headline: each word swings up out of its mask, heavy, and settles past the line ---------- */
html.js .hero h1.fx-hero-type .line{overflow:visible} /* the word masks do the clipping now */
html.js .hero h1.fx-hero-type .line>span{animation:none}
html.js .hero h1.fx-hero-type .fx-hero-type-w>span{transform:translate3d(0,124%,0) rotate(7deg);transform-origin:0 100%}
html.js .hero h1.fx-hero-type-in .fx-hero-type-w>span{
  transform:none;transition:transform .95s cubic-bezier(.2,1.4,.36,1) var(--fx-hero-type-d,0ms)}
/* the last line is the punchline: after the held breath it lands slower and swings further past the line */
html.js .hero h1.fx-hero-type-in .line:last-child .fx-hero-type-w>span{
  transition-duration:1.1s;transition-timing-function:cubic-bezier(.2,1.55,.32,1)}

/* the vermilion full stop drops onto the baseline, squashes, hops once, sits */
html.js .hero h1.fx-hero-type .dot{display:inline-block;opacity:0;transform-origin:50% 85%}
html.js .hero h1.fx-hero-type-in .dot{animation:fx-hero-type-dot .76s var(--fx-hero-type-d,0ms) both}
@keyframes fx-hero-type-dot{
  0%{opacity:0;transform:translate3d(0,-.62em,0) scale(.5);animation-timing-function:cubic-bezier(.55,0,.9,.45)}
  12%{opacity:1}
  42%{transform:translate3d(0,0,0) scale(1);animation-timing-function:cubic-bezier(.2,.8,.2,1)}
  52%{transform:translate3d(0,0,0) scale(1.42,.55);animation-timing-function:cubic-bezier(.2,.8,.2,1)}
  70%{transform:translate3d(0,-.17em,0) scale(.9,1.12);animation-timing-function:cubic-bezier(.5,0,.8,.5)}
  84%{transform:translate3d(0,0,0) scale(1.14,.86);animation-timing-function:cubic-bezier(.2,.8,.2,1)}
  100%{opacity:1;transform:none}
}

/* ---------- stacked labels: the little rule draws, then pulls its label out from behind it ---------- */
html.js .stack-labels.fx-hero-type{animation:none}
html.js .stack-labels.fx-hero-type li::before{transform:scaleX(0);transform-origin:0 50%}
.fx-hero-type-m{display:block;overflow:hidden}
.fx-hero-type-m>span{display:block}
html.js .stack-labels.fx-hero-type .fx-hero-type-m>span{transform:translate3d(-102%,0,0)}
html.js .stack-labels.fx-hero-type-in li::before{
  transform:none;transition:transform .6s var(--out) var(--fx-hero-type-d,0ms)}
html.js .stack-labels.fx-hero-type-in .fx-hero-type-m>span{
  transform:none;transition:transform .75s var(--out) calc(var(--fx-hero-type-d,0ms) + 140ms)}

/* ---------- lede: line by line (words on one line share a delay), no overshoot at this size ---------- */
html.js .lede.fx-hero-type{animation:none}
html.js .lede.fx-hero-type .fx-hero-type-w>span{transform:translate3d(0,112%,0)}
html.js .lede.fx-hero-type-in .fx-hero-type-w>span{
  transform:none;transition:transform .85s var(--out) var(--fx-hero-type-d,0ms)}

/* ---------- counter row: the wrapper hops in as one piece (its children belong to others) ---------- */
html.js .hero-foot.fx-hero-type{animation:none;opacity:0;transform:translate3d(0,28px,0)}
html.js .hero-foot.fx-hero-type-in{
  opacity:1;transform:none;transition:opacity .45s linear,transform .9s cubic-bezier(.2,1.4,.36,1)}

/* ---------- bottom rule: the border becomes a drawn hairline (from the right, against the labels) ---------- */
html.js .hero-rule.fx-hero-type{animation:none;border-top-color:transparent}
html.js .hero-rule.fx-hero-type::before{
  content:"";position:absolute;inset:-1px 0 auto;height:1px;background:var(--line);
  transform:scaleX(0);transform-origin:100% 50%}
html.js .hero-rule.fx-hero-type span{opacity:0;transform:translate3d(0,10px,0)}
html.js .hero-rule.fx-hero-type-in::before{transform:none;transition:transform .9s var(--inout)}
html.js .hero-rule.fx-hero-type-in span{
  opacity:1;transform:none;transition:opacity .5s linear .3s,transform .7s var(--out) .3s}
html.js .hero-rule.fx-hero-type-in span:nth-child(2){transition-delay:.4s}
html.js .hero-rule.fx-hero-type-in span:nth-child(3){transition-delay:.5s}
/* integrator: the core digit roll fires at whenIntro(750), long before the counter row lands; hold the
   columns at 0 until .hero-foot gets its cue, then the core's inline transform rolls them in view */
html.js .hero-foot.fx-hero-type:not(.fx-hero-type-in) .count .col{transform:none!important}
