/* srtmind.com landing - the soundwave motif, in different forms.
   One thread through the page in five forms, all aria-hidden, thin strokes in the theme's own colours:
   1. .hw  in the hero, through the voice line: a living sound ribbon - an accent voice line with three echoes and a sand counter-wave, each layer drifting at its own pace;
   2. .mv  in the hero, under the form: the ribbon becomes the speech bars of a voice saying the page's example sentence (scenes 2 and 3 use it too), and the subtitle grows out of them, word by word;
   3. .mb-cut between scenes 1 and 2: speech bars and a camera cut, the speech before the cut lights up (subtitle 1);
   4. .mb  after scene 2: the original voice (accent) and its translation (teal), one shape braided half a wave apart;
   5. .mc  at the closing stage: the hero's ribbon again (the same paths through <use>), calmer - the stage rests on it.
   Only transform and opacity move. The base CSS is the finished picture, so reduced motion (landing.css stops every animation) shows it still.
   landing.js pauses a band while it is off screen, and every band while any scene's Pause is on (WCAG 2.2.2). Strokes are set on each <svg> and inherited, so they also reach
   the <use> copies; per-line opacity and vector-effect are attributes for the same reason. */

.hw svg, .mb svg, .mc svg { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hw-sand svg, .mc-sand svg { stroke: var(--wave-bars); stroke-width: 1.25px; }
.hw-echo svg, .mc-echo svg { stroke: var(--accent); stroke-width: 1px; }
.hw-lead svg, .mc-lead svg { stroke: var(--accent); stroke-width: 1.5px; }

/* ---- 1. the hero ribbon: wider than any screen, faded out at both sides. It unfolds from the middle once when the page opens; then each layer sways on its
   own slow sine (the app's .4,0,.6,1 curve, back and forth): the echoes trail the voice line by 1.2 s, so the ribbon twists instead of splitting, the sand
   wave drifts the other way (its crossings travel along the line), and the voice line breathes. The hero overlaps scene 1's top padding by the wave's lower half. ---- */
.hero { position: relative; overflow: hidden; overflow-x: clip;   /* clip (hidden where clip is unknown): the ribbon and the phrase light run past narrow screens */
  display: flex; flex-direction: column; justify-content: center; min-height: min(calc(100svh - 56px), 980px); }   /* the first screen ends in calm space, never on a slice of the next slogan */
/* the ribbon runs through the voice line (.mv > .hw): it flows in from both edges of the screen and becomes the speech bars the subtitle drops out of */
.hw { --hw-w: clamp(1600px, 170vw, 2600px); position: absolute; z-index: -1; left: 50%; top: -.35em; width: 100vw; height: 3.5em; margin: 0 0 0 -50vw; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--mask) 18%, var(--mask) 82%, transparent); mask-image: linear-gradient(90deg, transparent, var(--mask) 18%, var(--mask) 82%, transparent);
  animation: hw-in 2.2s cubic-bezier(.2,.8,.2,1) .3s backwards; }
.hw-l { position: absolute; top: 0; bottom: 0; left: calc(50% - var(--hw-w) / 2); width: var(--hw-w); }
.hw-br { position: absolute; inset: 0; }
.hw-glow { position: absolute; inset: -10% 18%; background: radial-gradient(closest-side, color-mix(in srgb, var(--track1-bg) 55%, transparent), transparent); }
.hw-sand { animation: hw-a 23s cubic-bezier(.4,0,.6,1) 2 alternate forwards; }
.hw-echo { animation: hw-b 13s cubic-bezier(.4,0,.6,1) -1.2s 4 alternate forwards; }
.hw-lead { animation: hw-c 13s cubic-bezier(.4,0,.6,1) 4 alternate forwards; }
.hw-br { animation: hw-breathe 6.5s cubic-bezier(.4,0,.6,1) 8 alternate forwards; }
.hw-glow { animation: mo-glow 6.5s cubic-bezier(.4,0,.6,1) 8 alternate forwards; }
/* the hero comes to rest (WCAG 2.2.2): the voice says the line three times and stays on the finished subtitle; the ribbon sways a while and ends where it began */
@keyframes hw-in { from { opacity: 0; transform: scaleX(.5); } to { opacity: 1; transform: none; } }
@keyframes hw-a { from { transform: translateX(-90px); } to { transform: translateX(90px); } }
@keyframes hw-b { from { transform: translateX(120px); } to { transform: translateX(-120px); } }
@keyframes hw-c { from { transform: translateX(150px); } to { transform: translateX(-150px); } }
@keyframes hw-breathe { from { transform: scaleY(.72); } to { transform: none; } }
@keyframes mo-glow { from { opacity: .5; } to { opacity: 1; } }

/* ---- 2. in the hero, 'a wave from which the subtitle grows': the voice says "Every word has a beat, and the subtitles finally keep it."; as each word is
   said its bars rise (40 ms apart, with a small anticipation; "beat" has the tallest) and the word drops out of them into the subtitle line below; the comma pause
   splits the line in two (a phrase per line on phones).
   7 s: speech 0.4-3.6 s, calm with the whole line lit to 6.0 s, then the words dim (never out: the line is always there) while the bars settle into a
   breathing hairline until the next take. Three takes, then it rests on the finished line ---- */
.mv { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: .9em 1.6em; max-width: var(--page-w);
  margin: clamp(28px, 4vw, 48px) auto 0; padding: 0; font-size: clamp(18px, 2.2vw, 30px); pointer-events: none; user-select: none; }
.mv-ph { flex: none; margin: 0; color: var(--ink); font-weight: 600; line-height: 1.2; letter-spacing: -.005em; white-space: nowrap; }
.mv-w { position: relative; display: inline-block; padding-top: 3.35em; }
/* the bars are small HTML boxes (not SVG) so their animations run on the compositor; a word's bars spread over the word's own width */
.mv-bars { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-around; height: 2.8em; }
.mv-bars i { flex: none; width: max(3px, .11em); border-radius: 3px; background: var(--wave-bars); }
.mv .v1 { height: .2em; } .mv .v2 { height: .4em; } .mv .v3 { height: .6em; } .mv .v4 { height: .8em; } .mv .v5 { height: 1em; } .mv .v6 { height: 1.2em; }
.mv .v7 { height: 1.4em; } .mv .v8 { height: 1.6em; } .mv .v9 { height: 1.8em; } .mv .v10 { height: 2em; } .mv .v11 { height: 2.2em; } .mv .v12 { height: 2.4em; }
.mv-w b, .mv-w b > span { display: block; font-weight: inherit; }
/* a word fades with the soft curve (no overshoot, so it really fades out) and drops with the spring on its inner box */
.mv i, .mv b, .mv b > span { animation: 7s cubic-bezier(.2,.8,.2,1) 2.72 both; }
.mv b > span { animation-timing-function: cubic-bezier(.34,1.56,.64,1); }
.mv-bars i:nth-child(2) { animation-delay: 40ms; }
.mv-bars i:nth-child(3) { animation-delay: 80ms; }
.mv-bars i:nth-child(4) { animation-delay: 120ms; }
.mv-bars i:nth-child(5) { animation-delay: 160ms; }
.mv-bars i:nth-child(6) { animation-delay: 200ms; }
.mv-bars i:nth-child(7) { animation-delay: 240ms; }
.mv-bars i:nth-child(8) { animation-delay: 280ms; }
/* a soft light rides through each phrase while it is said (its box is as wide as the phrase and starts one light-radius to the left, so 100 % = the phrase) */
.mv-ph { position: relative; }
.mv-ph::before { content: ""; position: absolute; left: -3.6em; right: 3.6em; top: -1em; height: 4.8em; opacity: 0;
  background: radial-gradient(3.6em 2.5em at 3.6em 50%, color-mix(in srgb, var(--accent) 17%, transparent), transparent); }
.mv-ph::before { animation: mv-light-a 7s cubic-bezier(.65,0,.35,1) 2.72 both; }
.mv-ph + .mv-ph::before { animation-name: mv-light-b; }
@keyframes mv-light-a { 0%, 5.14% { opacity: 0; transform: none; } 8% { opacity: 1; } 21.71% { opacity: 1; } 26.29%, 100% { opacity: 0; transform: translateX(100%); } }
@keyframes mv-light-b { 0%, 30.29% { opacity: 0; transform: none; } 33.14% { opacity: 1; } 46.86% { opacity: 1; } 52.57%, 100% { opacity: 0; transform: translateX(100%); } }
@media (max-width: 719px) {
  .mv { flex-direction: column; align-items: center; row-gap: 1.3em; }
}
@media (min-width: 1700px) { .mv { font-size: clamp(30px, 1.6vw, 40px); } }
/* @gen voice begin */
@keyframes mv-b1 { 0%, 4.57% { transform: scaleY(.08); opacity: .45; } 5.71% { transform: scaleY(.3); opacity: 1; } 8.57% { transform: scaleY(1.25); opacity: 1; } 10.71%, 85.71% { transform: none; opacity: 1; } 92.86%, 100% { transform: scaleY(.08); opacity: .45; } }
@keyframes mv-t1 { 0%, 5.71% { opacity: .4; } 7.14% { opacity: 0; } 12.86%, 85.71% { opacity: 1; } 94.29%, 100% { opacity: .4; } }
@keyframes mv-y1 { 0%, 7% { transform: none; } 7.14% { transform: translateY(-.6em); } 12.86%, 100% { transform: none; } }
.mv-1 i { animation-name: mv-b1; } .mv-1 b { animation-name: mv-t1; } .mv-1 b > span { animation-name: mv-y1; }
@keyframes mv-b2 { 0%, 8.86% { transform: scaleY(.08); opacity: .45; } 10% { transform: scaleY(.3); opacity: 1; } 12.86% { transform: scaleY(1.25); opacity: 1; } 15%, 86.29% { transform: none; opacity: 1; } 93.43%, 100% { transform: scaleY(.08); opacity: .45; } }
@keyframes mv-t2 { 0%, 10% { opacity: .4; } 11.43% { opacity: 0; } 17.14%, 86.29% { opacity: 1; } 94.86%, 100% { opacity: .4; } }
@keyframes mv-y2 { 0%, 11.29% { transform: none; } 11.43% { transform: translateY(-.6em); } 17.14%, 100% { transform: none; } }
.mv-2 i { animation-name: mv-b2; } .mv-2 b { animation-name: mv-t2; } .mv-2 b > span { animation-name: mv-y2; }
@keyframes mv-b3 { 0%, 12.86% { transform: scaleY(.08); opacity: .45; } 14% { transform: scaleY(.3); opacity: 1; } 16.86% { transform: scaleY(1.25); opacity: 1; } 19%, 86.86% { transform: none; opacity: 1; } 94%, 100% { transform: scaleY(.08); opacity: .45; } }
@keyframes mv-t3 { 0%, 14% { opacity: .4; } 15.43% { opacity: 0; } 21.14%, 86.86% { opacity: 1; } 95.43%, 100% { opacity: .4; } }
@keyframes mv-y3 { 0%, 15.29% { transform: none; } 15.43% { transform: translateY(-.6em); } 21.14%, 100% { transform: none; } }
.mv-3 i { animation-name: mv-b3; } .mv-3 b { animation-name: mv-t3; } .mv-3 b > span { animation-name: mv-y3; }
@keyframes mv-b4 { 0%, 15.14% { transform: scaleY(.08); opacity: .45; } 16.29% { transform: scaleY(.3); opacity: 1; } 19.14% { transform: scaleY(1.25); opacity: 1; } 21.29%, 87.43% { transform: none; opacity: 1; } 94.57%, 100% { transform: scaleY(.08); opacity: .45; } }
@keyframes mv-t4 { 0%, 16.29% { opacity: .4; } 17.71% { opacity: 0; } 23.43%, 87.43% { opacity: 1; } 96%, 100% { opacity: .4; } }
@keyframes mv-y4 { 0%, 17.57% { transform: none; } 17.71% { transform: translateY(-.6em); } 23.43%, 100% { transform: none; } }
.mv-4 i { animation-name: mv-b4; } .mv-4 b { animation-name: mv-t4; } .mv-4 b > span { animation-name: mv-y4; }
@keyframes mv-b5 { 0%, 17.14% { transform: scaleY(.08); opacity: .45; } 18.29% { transform: scaleY(.3); opacity: 1; } 21.14% { transform: scaleY(1.25); opacity: 1; } 23.29%, 88% { transform: none; opacity: 1; } 95.14%, 100% { transform: scaleY(.08); opacity: .45; } }
@keyframes mv-t5 { 0%, 18.29% { opacity: .4; } 19.71% { opacity: 0; } 25.43%, 88% { opacity: 1; } 96.57%, 100% { opacity: .4; } }
@keyframes mv-y5 { 0%, 19.57% { transform: none; } 19.71% { transform: translateY(-.6em); } 25.43%, 100% { transform: none; } }
.mv-5 i { animation-name: mv-b5; } .mv-5 b { animation-name: mv-t5; } .mv-5 b > span { animation-name: mv-y5; }
@keyframes mv-b6 { 0%, 29.43% { transform: scaleY(.08); opacity: .45; } 30.57% { transform: scaleY(.3); opacity: 1; } 33.43% { transform: scaleY(1.25); opacity: 1; } 35.57%, 88.57% { transform: none; opacity: 1; } 95.71%, 100% { transform: scaleY(.08); opacity: .45; } }
@keyframes mv-t6 { 0%, 30.57% { opacity: .4; } 32% { opacity: 0; } 37.71%, 88.57% { opacity: 1; } 97.14%, 100% { opacity: .4; } }
@keyframes mv-y6 { 0%, 31.86% { transform: none; } 32% { transform: translateY(-.6em); } 37.71%, 100% { transform: none; } }
.mv-6 i { animation-name: mv-b6; } .mv-6 b { animation-name: mv-t6; } .mv-6 b > span { animation-name: mv-y6; }
@keyframes mv-b7 { 0%, 31.43% { transform: scaleY(.08); opacity: .45; } 32.57% { transform: scaleY(.3); opacity: 1; } 35.43% { transform: scaleY(1.25); opacity: 1; } 37.57%, 89.14% { transform: none; opacity: 1; } 96.29%, 100% { transform: scaleY(.08); opacity: .45; } }
@keyframes mv-t7 { 0%, 32.57% { opacity: .4; } 34% { opacity: 0; } 39.71%, 89.14% { opacity: 1; } 97.71%, 100% { opacity: .4; } }
@keyframes mv-y7 { 0%, 33.86% { transform: none; } 34% { transform: translateY(-.6em); } 39.71%, 100% { transform: none; } }
.mv-7 i { animation-name: mv-b7; } .mv-7 b { animation-name: mv-t7; } .mv-7 b > span { animation-name: mv-y7; }
@keyframes mv-b8 { 0%, 32.86% { transform: scaleY(.08); opacity: .45; } 34% { transform: scaleY(.3); opacity: 1; } 36.86% { transform: scaleY(1.25); opacity: 1; } 39%, 89.71% { transform: none; opacity: 1; } 96.86%, 100% { transform: scaleY(.08); opacity: .45; } }
@keyframes mv-t8 { 0%, 34% { opacity: .4; } 35.43% { opacity: 0; } 41.14%, 89.71% { opacity: 1; } 98.29%, 100% { opacity: .4; } }
@keyframes mv-y8 { 0%, 35.29% { transform: none; } 35.43% { transform: translateY(-.6em); } 41.14%, 100% { transform: none; } }
.mv-8 i { animation-name: mv-b8; } .mv-8 b { animation-name: mv-t8; } .mv-8 b > span { animation-name: mv-y8; }
@keyframes mv-b9 { 0%, 39.14% { transform: scaleY(.08); opacity: .45; } 40.29% { transform: scaleY(.3); opacity: 1; } 43.14% { transform: scaleY(1.25); opacity: 1; } 45.29%, 90.29% { transform: none; opacity: 1; } 97.43%, 100% { transform: scaleY(.08); opacity: .45; } }
@keyframes mv-t9 { 0%, 40.29% { opacity: .4; } 41.71% { opacity: 0; } 47.43%, 90.29% { opacity: 1; } 98.86%, 100% { opacity: .4; } }
@keyframes mv-y9 { 0%, 41.57% { transform: none; } 41.71% { transform: translateY(-.6em); } 47.43%, 100% { transform: none; } }
.mv-9 i { animation-name: mv-b9; } .mv-9 b { animation-name: mv-t9; } .mv-9 b > span { animation-name: mv-y9; }
@keyframes mv-b10 { 0%, 43.43% { transform: scaleY(.08); opacity: .45; } 44.57% { transform: scaleY(.3); opacity: 1; } 47.43% { transform: scaleY(1.25); opacity: 1; } 49.57%, 90.86% { transform: none; opacity: 1; } 98%, 100% { transform: scaleY(.08); opacity: .45; } }
@keyframes mv-t10 { 0%, 44.57% { opacity: .4; } 46% { opacity: 0; } 51.71%, 90.86% { opacity: 1; } 99.43%, 100% { opacity: .4; } }
@keyframes mv-y10 { 0%, 45.86% { transform: none; } 46% { transform: translateY(-.6em); } 51.71%, 100% { transform: none; } }
.mv-10 i { animation-name: mv-b10; } .mv-10 b { animation-name: mv-t10; } .mv-10 b > span { animation-name: mv-y10; }
@keyframes mv-b11 { 0%, 46% { transform: scaleY(.08); opacity: .45; } 47.14% { transform: scaleY(.3); opacity: 1; } 50% { transform: scaleY(1.25); opacity: 1; } 52.14%, 91.43% { transform: none; opacity: 1; } 98.57%, 100% { transform: scaleY(.08); opacity: .45; } }
@keyframes mv-t11 { 0%, 47.14% { opacity: .4; } 48.57% { opacity: 0; } 54.29%, 91.43% { opacity: 1; } 100% { opacity: .4; } }
@keyframes mv-y11 { 0%, 48.43% { transform: none; } 48.57% { transform: translateY(-.6em); } 54.29%, 100% { transform: none; } }
.mv-11 i { animation-name: mv-b11; } .mv-11 b { animation-name: mv-t11; } .mv-11 b > span { animation-name: mv-y11; }
/* @gen voice end */

/* ---- 3. between scenes 1 and 2, in scene 1's language: speech bars and a dashed camera cut in the pause after the first phrase; the bars before the cut
   light up coral left to right (subtitle 1, timed to the voice), hold, and let go. 6 s; the wave is the timeline's own drawing (#wave), its speech part only ---- */
.mb.mb-cut { height: 48px; -webkit-mask-image: linear-gradient(90deg, transparent, var(--mask) 12%, var(--mask) 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, var(--mask) 12%, var(--mask) 88%, transparent); }
.mbc-w { position: absolute; top: 0; bottom: 0; left: -40%; width: 147%; }   /* the drawing's x 1197-4190 (its speech) fills the band */
.mb-cut .mbc-w svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 1; --wvw: 2px; }
.mbc-lit { position: absolute; top: 0; bottom: 0; left: 0; width: 49.3%; overflow: hidden; --wave-bars: var(--accent); }   /* up to the cut */
.mbc-li { position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% / .493); }
.mbc-cut { position: absolute; top: 2px; bottom: 2px; left: 49.3%; width: 0; border-left: 2px dashed var(--cut); }
.mbc-lit { animation: mbc-lit 6s cubic-bezier(.65,0,.35,1) infinite; }
.mbc-li { animation: mbc-li 6s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes mbc-lit { 0% { opacity: 1; transform: translateX(-101%); } 40%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes mbc-li { 0% { transform: translateX(101%); } 40%, 100% { transform: none; } }

/* ---- 4. after scene 2: the original (accent) and the translation (teal) - one voice shape, the translation half a wave apart, so the two lines braid.
   Both sway the same way, the teal 2.6 s behind: the crossings slide along the braid and the lines never fall on top of each other ---- */
.mb { position: relative; height: clamp(48px, 5vw, 64px); max-width: 760px; margin: clamp(56px, 8vw, 104px) auto calc(-1 * clamp(16px, 3vw, 48px)); overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--mask) 25%, var(--mask) 75%, transparent); mask-image: linear-gradient(90deg, transparent, var(--mask) 25%, var(--mask) 75%, transparent); }
.mb-l { position: absolute; top: 0; bottom: 0; left: calc(50% - 600px); width: 1200px; }
.mb svg { stroke-width: 1.75px; opacity: .8; }
.mb-o svg { stroke: var(--accent); }
.mb-t svg { stroke: var(--tr); }
.mb-glow { position: absolute; inset: 0 28%; background: radial-gradient(closest-side, var(--tr-soft), transparent); }
.mb-o, .mb-t { animation: mb-sway 9s cubic-bezier(.4,0,.6,1) infinite alternate; }
.mb-t { animation-delay: -2.6s; }
.mb-glow { animation: mo-glow 5.5s cubic-bezier(.4,0,.6,1) infinite alternate; }
@keyframes mb-sway { from { transform: translateX(-50px); } to { transform: translateX(50px); } }
@media (min-width: 1700px) { .mb { max-width: min(1100px, 70%); } }   /* the bands widen on wide monitors (after the base rule, so it takes effect) */

/* ---- 5. the closing stage rests on the hero's ribbon, slower: the ribbon runs along the stage's foot (.endwrap is exactly the stage's height because
   its top margin collapses through it), with a soft light around it ---- */
.endwrap { position: relative; }
.mc { position: absolute; z-index: -1; left: 0; right: 0; bottom: -44px; height: 112px; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--mask) 20%, var(--mask) 80%, transparent); mask-image: linear-gradient(90deg, transparent, var(--mask) 20%, var(--mask) 80%, transparent); }
.mc-l { position: absolute; top: 0; bottom: 0; left: calc(50% - 1300px); width: 2600px; }
.mc-glow { position: absolute; inset: -40% 12%; background: radial-gradient(closest-side, color-mix(in srgb, var(--track1-bg) 55%, transparent), transparent); }
.mc-sand { animation: hw-a 31s cubic-bezier(.4,0,.6,1) infinite alternate; }
.mc-echo { animation: mc-b 19s cubic-bezier(.4,0,.6,1) -2s infinite alternate; }
.mc-lead { animation: mc-b 19s cubic-bezier(.4,0,.6,1) infinite alternate; }
.mc-glow { animation: mo-glow 8s cubic-bezier(.4,0,.6,1) infinite alternate; }
@keyframes mc-b { from { transform: translateX(110px); } to { transform: translateX(-110px); } }
@media (max-width: 719px) {
  .mc { bottom: -30px; height: 64px; }
}
