/* Text on path · Scroll Story Kit
   Static (no JS, reduced motion): the sentence as a big heading, the wave drawn under it as a still decoration.
   Motion: the heading moves to screen readers only and the same sentence, set on an SVG textPath along the wave,
   slides from right to left across the section as it scrolls past (text-on-path.js scrubs startOffset). */
.sk-tpath { --sk-tpath-size: 84px; /* sentence size in SVG units (the SVG is 1600 units wide) */ }
.sk-tpath-title { max-width: 16ch; font-size: var(--sk-size-hero); }
.sk-tpath-art { margin: clamp(8px, 2vw, 24px) calc(-1 * var(--sk-gutter)) 0; overflow: clip; }
.sk-tpath-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.sk-tpath-wave { fill: none; stroke: var(--sk-accent); stroke-width: 3; stroke-linecap: round; opacity: .55; }
.sk-tpath-trail { fill: none; stroke: var(--sk-line-strong); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 16; }
.sk-tpath-say { display: none; font-family: var(--sk-font-display); font-weight: var(--sk-weight-display); font-size: var(--sk-tpath-size); letter-spacing: -2px; fill: var(--sk-ink); }
.sk-tpath-hl { fill: var(--sk-accent-text); }
.sk-tpath-lead { margin-top: clamp(8px, 2vw, 20px); }

/* motion: the SVG copy takes over from the heading, which stays in the page for screen readers */
:root.sk-on .sk-tpath-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: clip; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:root.sk-on .sk-tpath-say { display: inline; }
:root.sk-on .sk-tpath-wave { opacity: .25; }
:root.sk-on .sk-tpath-trail { stroke-dashoffset: calc(var(--sk-p) * -400px); }

@media (max-width: 760px) {
  /* drawn wider than the screen so the sentence stays large; at 165% the default sentence just fits at mid scroll */
  .sk-tpath-art svg { width: 165%; margin-left: -32.5%; }
}
