/* Masked line reveal · Scroll Story Kit
   Static (no JS, reduced motion): the statement as one big heading of normal running text.
   Motion: each line of the statement sits in its own clipped row over a ruled hairline. As the statement scrolls up
   to the middle of the screen the hairlines draw in and each line rises out from behind its own, one after another,
   scrubbed with the scroll. The lines are written in the markup, so nothing is split by script. */
.sk-mline {
  --sk-mline-size: clamp(2rem, .9rem + 5.4vw, 5.6rem);
  --sk-mline-stagger: .17;  /* progress between one line starting and the next; with --sk-mline-span, (rows - 1) x stagger + span = 1 */
  --sk-mline-span: .49;     /* progress each line takes to rise */
}
.sk-mline-text { margin: 0; font: var(--sk-weight-display) var(--sk-mline-size)/1.06 var(--sk-font-display); letter-spacing: var(--sk-track-display); text-wrap: balance; }
.sk-mline-em { color: var(--sk-accent-text); }
.sk-mline-foot { display: flex; justify-content: flex-end; margin-top: clamp(32px, 5vw, 64px); }
.sk-mline-foot .sk-text { max-width: 44ch; margin: 0; padding-top: 18px; border-top: 2px solid var(--sk-accent); font-size: var(--sk-size-lead); }

:root.sk-on .sk-mline-row {
  --t: clamp(0, (var(--sk-p) - var(--i, 0) * var(--sk-mline-stagger)) / var(--sk-mline-span), 1);
  position: relative; display: block; overflow: clip;
  padding-bottom: .12em; margin-bottom: -.02em;
}
:root.sk-on .sk-mline-row::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--sk-line); transform-origin: 0 50%; transform: scaleX(clamp(0, var(--t) * 2.5, 1));
}
:root.sk-on .sk-mline-in {
  display: inline-block; transform-origin: 0 100%;
  transform: translateY(calc((1 - var(--t)) * 118%)) rotate(calc((1 - var(--t)) * 5deg));
}
@media (min-width: 900px) {
  :root.sk-on .sk-mline-row:nth-child(2) { padding-left: .7em; }
  :root.sk-on .sk-mline-row:nth-child(3) { padding-left: 1.4em; }
}
