/* srtmind.com landing - scene 3 "Edit on your phone" (one 8.5 s clock: --loop-s3).
   A (the phone, in its frame on the desktop stage): the real Phone Edit screen (always Chocolate, like a device screen). Its vertical film (a <video> slot, a warm
     stand-in behind it) lies under the app's own phone-app drawing (inlined: placeholder texts, no logo; the Reel's status bar softened). First the problem: the
     subtitle starts under the app's buttons and texts, marked at once (red dashed outline, red dot on the phone-preview button); a tap lifts it into the dashed
     phone-safe area - the app's own area for this layout (1080 x 1920: left/right 16.37 %, top 15.34 %, bottom 21.77 % of the film) - and a green tick lands.
     Then the fix inside the frame: one tap on the misheard word in the selected card ("beet", marked red), it turns into "beat" in the card and on the film.
     Every size on the film is in cqw / cqh of the film, so the subtitle sits inside the frame at every width.
   B (the export): Download is pressed and an SRT chip lifts off it and arcs onto the Subtitle 1 track of a generic dark editing program (viewer, toolbar,
     V1 / A1 / Subtitle 1 tracks, ruler, playhead; no product's artwork); the two subtitles grow out of it on the track exactly under their speech (guides down
     through the A1 waveform) and settle with a snap; the playhead then plays them in the viewer. Plain text names under it.
   Base CSS = the end state (reduced motion shows it still). Keyframes move only transform and opacity. */

/* ---- tokens of this scene (the same in both page themes: a device screen and an editing program are dark) ---- */
.s3 {
  --nle-bg: #121214; --nle-panel: #1d1d21; --nle-lane: #17171a; --nle-line: #2b2b31; --nle-ink: #e6e6ea; --nle-muted: #8c8c96; --nle-tick: #45454d;
  --nle-v: #2f4566; --nle-v-hd: #4f6f9c; --nle-a: #173c36; --nle-a-hd: #2a645a; --nle-wave: #7fd8c4; --nle-ph: #ff5446; --nle-sel: #2a2a30;
  --nle-guide: rgb(240 122 89 / .9); --nle-band: rgb(240 122 89 / .1); --nle-flash: rgb(255 170 130 / .55); --nle-lit: rgb(240 122 89 / .16); --nle-hi: rgb(255 255 255 / .25);
  --nle-shadow: rgb(0 0 0 / .35); --nle-shine: rgb(255 255 255 / .42);
  /* the picture until the film arrives: the illustration of scene 2 (media/interview.svg + its neon sign, media/interview-wave.svg, still here), shot A
     whole, shot B (after the camera cut) closer; the colours below show only while it loads.
     --ph-x: the 16:9 picture's position in the 9:16 phone film (face + microphone inside); --pb-size / --pb-pos: shot B's framing */
  --ph-x: 68%; --pb-size: 200%; --pb-pos: 75% 17%;
  --pic-a: #1c120c; --pic-b: #0d1416; --pic-vig: rgb(0 0 0 / .62);
  --ok-glow: rgb(142 227 214 / .9); --ok-haze: rgb(142 227 214 / .28);
  --bezel: #0b0a09; --bezel-edge: rgb(255 255 255 / .16);   /* the phone's frame (desktop stage) */
}

.s3-in { display: grid; gap: 1.4em; font-size: clamp(11px, 100cqw / 24, 18px); padding: 1.1em; max-width: 34em; margin: 0 auto; }

/* ---- A: the phone ---- */
.s3-ph { position: relative; width: 24.4em; overflow: hidden; border-radius: 2.4em; background: var(--scr); box-shadow: var(--win-shadow); font-size: .893em; justify-self: center; }
.s3-top { display: flex; align-items: center; gap: .3em; height: 3.4em; padding: 0 .7em 0 .9em; }
.s3-back { color: var(--accent); font-weight: 500; font-size: .95em; white-space: nowrap; }
.s3-title { display: grid; flex: 1; min-width: 0; margin-left: .4em; line-height: 1.2; }
.s3-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .9em; }
.s3-saved { color: var(--tr); font-size: .7em; }
.rb.on { background: var(--accent-soft); color: var(--accent); }
.rb.ring { color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.s3-sp { font-weight: 600; font-size: .95em; }
.s3-save { display: inline-flex; align-items: center; gap: .3em; height: 2.3em; padding: 0 .85em; border-radius: var(--radius-pill); background: var(--chip); color: var(--muted); font-weight: 600; font-size: .9em; }
/* phones: the film takes the screen's width between two slim button columns (the time readouts are left out), so its subtitle reads at >= 15 px */
.s3-stage { display: grid; grid-template-columns: 2.75em 1fr 2.75em; gap: .5em; padding: .3em .75em .2em; }
.s3-side { display: flex; flex-direction: column; align-items: center; gap: .45em; }
.s3-side .num { display: none; font-size: .78em; line-height: 1.2; }
.s3-t2 { color: var(--muted); }
.s3-t3 { margin: .2em 0; }
.s3-grow { flex: 1; }
.s3-dot { position: absolute; top: .1em; right: .1em; width: .65em; height: .65em; border-radius: 50%; background: var(--collide); box-shadow: 0 0 0 2px var(--scr); opacity: 0; }
.s3-tap1 { left: 50%; top: 50%; }
.s3-seek { position: relative; height: 1.4em; margin: .1em 1.1em 0; }
.s3-seek::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: .3em; margin-top: -.15em; border-radius: var(--radius-pill); background: var(--line-strong); }
.s3-seek i { position: absolute; left: 22%; top: 50%; width: 1.15em; height: 1.15em; margin: -.575em 0 0 -.575em; border-radius: 50%; background: var(--scr); box-shadow: inset 0 0 0 3px var(--accent); }
.s3-seek::after { content: ""; position: absolute; left: 0; width: 22%; top: 50%; height: .3em; margin-top: -.15em; border-radius: var(--radius-pill); background: var(--accent); }
.s3-lh { display: flex; align-items: center; gap: .45em; padding: .8em 1em .6em; }
.s3-lh b { font-weight: 700; font-size: 1.05em; }
.s3-po { margin-left: auto; padding: .45em .9em; border-radius: var(--radius-pill); background: var(--chip); font-weight: 500; font-size: .85em; }
.s3-add { display: inline-flex; align-items: center; gap: .2em; margin-left: .5em; color: var(--accent); font-weight: 600; font-size: .95em; }
.s3-card { margin: 0 .9em; }
/* the fix: the misheard word is tapped (a ring on the text box, the word selected) and retyped; the same word changes on the film */
.sw3 { position: relative; display: inline-grid; justify-items: center; }
.sw3 > span { grid-area: 1 / 1; }
.sw3 > .s3-old { position: absolute; top: 0; left: -.3em; right: -.3em; text-align: center; }   /* only the right word sizes the slot (no double spaces) */
.s3-old { opacity: 0; }
.s3-tb .s3-old { color: var(--danger); text-decoration: underline wavy var(--danger); text-decoration-thickness: 1.5px; text-underline-offset: .22em; }   /* the misheard word, marked */
.s3-tb { position: relative; }
.s3-tb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--accent); opacity: 0; pointer-events: none; }
.s3-tsel { position: absolute; inset: -.06em -.16em; border-radius: .3em; background: color-mix(in srgb, var(--accent) 38%, transparent); opacity: 0; }
.s3-tap0 { left: 50%; top: 50%; }
.s3-bar { display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; height: 4.6em; margin-top: 1.1em; padding: 0 .3em .3em; border-radius: 1.4em 1.4em 0 0;
  background: var(--glass); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: inset 0 1px 0 var(--line); }
.tt { display: flex; flex-direction: column; align-items: center; gap: .25em; font-weight: 500; font-size: max(.74em, 10.5px); white-space: nowrap; }
.tt > .i { width: 1.9em; height: 1.9em; }
.tt .ch { width: .9em; height: .9em; vertical-align: -.1em; }
.tt.del { color: var(--danger); }

/* the vertical film (9:16): a container, so every size on it is a share of the film */
.s3-film { width: 100%; aspect-ratio: 9 / 16; justify-self: center; border-radius: 1.3em; container-type: size; background-image: none; }
.s3-film > * { position: absolute; }
/* the picture (under the video): the illustration, with a vignette; it drifts like a slow camera */
.s3-pic { inset: -8%; background-color: var(--pic-a); background-repeat: no-repeat;
  background-image: radial-gradient(ellipse at 50% 46%, transparent 48%, var(--pic-vig)), url(media/interview-wave.svg), url(media/interview.svg);
  background-size: auto, cover, cover; background-position: 0 0, 50% 50%, 50% 50%; }
.s3-film .s3-pic { background-position: 0 0, var(--ph-x) 30%, var(--ph-x) 30%; }
.s3-pb { background-color: var(--pic-b);
  background-image: radial-gradient(ellipse at 50% 46%, transparent 48%, var(--pic-vig)), linear-gradient(to top, rgb(20 17 15 / .62), transparent 50%),
    url(media/interview-wave.svg), url(media/interview.svg);
  background-size: auto, auto, var(--pb-size) auto, var(--pb-size) auto; background-position: 0 0, 0 0, var(--pb-pos), var(--pb-pos); }
.s3 .bgv { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s3-ig { inset: 0; width: 100%; height: 100%; }
.s3-igsb { opacity: .35; }   /* the Reel's own status bar, softened: the phone around it is the device */
/* the subtitle a little above the app's standard size (100 % = 3.4 % of the film's height = 6.04 % of its width; here 6.9 % of the width: on one line it would take 75 % of the
   film's width, wider than the safe area's 67 %, so it reads in two short lines, "Every word / has a beat,"); end state: inside the safe area, at its foot */
.s3-subw, .s3-hitw { left: 0; right: 0; }
.s3-subw { bottom: 25cqh; transform-origin: 50% 100%; }
.s3-hitw { bottom: 5cqh; }
.s3-sub { position: relative; bottom: auto; width: max-content; margin: 0 auto; font-size: 6.9cqw; }
.s3-sub > span { white-space: nowrap; text-align: center; }
.s3-hitw .s3-sub > span { visibility: hidden; }
.s3-hit { position: absolute; inset: -.32em -.5em; border: 2px dashed var(--collide); border-radius: .45em; opacity: 0; }
/* the app's phone-safe area for this layout (Meta group, 1080 x 1920) */
.s3-safe, .s3-glow { top: 15.34%; bottom: 21.77%; left: 16.37%; right: 16.37%; border-radius: 4cqw; }
.s3-safe { border: 2px dashed var(--safe); }
.s3-glow { box-shadow: 0 0 0 2px var(--ok-glow), 0 0 6cqw 1cqw var(--ok-haze), inset 0 0 6cqw var(--ok-haze); opacity: 0; }
.s3-tick { top: calc(15.34% + .35em); right: calc(16.37% + .35em); width: 1.6em; height: 1.6em; padding: 0; justify-content: center; font-size: 1em; box-shadow: 0 .2em .6em var(--pic-vig); }
.s3-tick .i { width: 1em; height: 1em; }

/* ---- B: the export into an editing program ---- */
.s3-xp { position: relative; padding: .7em; border-radius: 1.4em; background: var(--panel); box-shadow: var(--card-shadow); }
.s3-nh { display: flex; align-items: center; margin-bottom: .85em; }
.s3-dl { position: relative; overflow: visible; }
.s3-tap2 { left: 50%; top: 50%; }
.s3-ed { container: s3ed / inline-size; position: relative; padding: .5em; border-radius: 1em; background: var(--nle-bg); color: var(--nle-ink); font-size: .8em;
  --r-rul: 1.55em; --r-v: 3em; --r-a: 3.2em; --r-s: 3em;   /* the row heights: ruler, V1, A1, Subtitle 1 */
  box-shadow: inset 0 0 0 1px var(--nle-line), 0 18px 40px var(--nle-shadow); }
.s3-ed .i { stroke-width: 1.8; }
/* the viewer: a 16:9 picture framed by the program's panel */
.s3-mon { position: relative; overflow: hidden; width: 82%; margin: .2em auto 0; aspect-ratio: 16 / 9; border-radius: .25em; background: var(--film); container-type: inline-size; }
.s3-mon > .s3-pic, .s3-mon > .bgv { position: absolute; }
.s3-vs { display: grid; justify-items: center; bottom: 8%; font-size: 4.6cqw; }
.s3-vs > span { grid-area: 1 / 1; white-space: nowrap; }
.s3-vs1 { opacity: 0; }
/* the toolbar: tools at the left, the transport in the middle, snapping (on) at the right */
.s3-tbar { display: flex; align-items: center; justify-content: space-between; height: 2.6em; margin: .4em 0 .3em; padding: 0 .3em; color: var(--nle-muted); }
.s3-tools { display: flex; gap: .3em; }
.s3-tool { display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: .4em; }
.s3-tool .i { width: 1.15em; height: 1.15em; }
.s3-tool.on { background: var(--nle-sel); color: var(--nle-ink); }
.s3-snap.on { color: var(--accent); }
.s3-tp { display: flex; align-items: center; gap: .9em; color: var(--nle-ink); }
.s3-tp .i { width: 1.05em; height: 1.05em; }
.s3-pl { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--nle-sel); }
.s3-pl .i { grid-area: 1 / 1; width: .95em; height: .95em; }
.s3-ipa { opacity: 0; }
/* the timeline: track headers + tracks, one row height each */
.s3-tlx { display: grid; grid-template-columns: 5.9em minmax(0, 1fr); gap: 0 2px; border-radius: .45em; overflow: hidden; }
.s3-hds, .s3-trs { display: grid; grid-template-rows: var(--r-rul) var(--r-v) var(--r-a) var(--r-s); gap: 2px; }
.s3-hd { position: relative; display: flex; align-items: center; gap: .35em; padding: 0 .45em; background: var(--nle-panel); color: var(--nle-muted); overflow: hidden; }
.s3-hd .i { width: .95em; height: .95em; flex: none; }
.s3-tn { display: inline-grid; place-items: center; min-width: 2em; height: 1.45em; margin-right: auto; border-radius: .3em; background: var(--nle-sel); color: var(--nle-ink); font-weight: 600; font-size: .8em; }
.s3-hst b { color: var(--nle-ink); font-weight: 600; font-size: .78em; white-space: nowrap; }
.s3-hst .i { color: var(--accent); }
.s3-hlit { position: absolute; inset: 0; background: var(--nle-lit); opacity: 0; }
.s3-trs { position: relative; overflow: hidden; container: s3tr / inline-size; }
.s3-rul { position: relative; background-color: var(--nle-panel);
  background-image: linear-gradient(90deg, var(--nle-tick) 0 1px, transparent 1px), linear-gradient(90deg, var(--nle-tick) 0 1px, transparent 1px);
  background-size: 20% 55%, 4% 25%; background-position: 0 100%, 0 100%; background-repeat: repeat-x; }
.s3-rul .num { position: absolute; top: .3em; margin-left: .35em; color: var(--nle-muted); font-family: var(--font-mono); font-weight: 400; font-size: .7em; line-height: 1; white-space: nowrap; }   /* DM Mono only on the editing program's ruler */
.s3-r1 { left: 20%; } .s3-r2 { left: 40%; } .s3-r3 { left: 60%; } .s3-r4 { left: 80%; }
.s3-lane { position: relative; background: var(--nle-lane); }
.s3-ca { left: 0; width: 44.9%; } .s3-cb { left: 45.1%; right: 0; }
.s3-clip, .s3-aclip { position: absolute; top: 0; bottom: 0; overflow: hidden; border-radius: .3em; }
/* V1: two shots, cut in the pause between the phrases; a strip of frame thumbnails under a coloured name bar */
.s3-clip { background: var(--nle-v); box-shadow: inset 0 0 0 1px var(--nle-v-hd); }
.s3-clip::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: .5em; background: var(--nle-v-hd); }
.s3-clip::after { content: ""; position: absolute; left: 2px; right: 2px; top: .62em; bottom: 2px; border-radius: .15em; background-color: var(--pic-a);
  background-image: linear-gradient(90deg, var(--nle-bg) 0 2px, transparent 2px), url(media/interview.svg);   /* a strip of frame thumbnails of the picture */
  background-size: 4.2em 100%; background-repeat: repeat-x; }
.s3-cb::after { background-color: var(--pic-b); filter: brightness(.82); }
/* A1: the voice, a mirrored waveform: two phrases with a pause between them, a bump per syllable ("Every word has a beat," 3.9-41.4 %, "and the subtitles finally keep it." 48-96.9 %) */
.s3-aclip { background: var(--nle-a); box-shadow: inset 0 0 0 1px var(--nle-a-hd); }
.s3-aclip::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: .45em; background: var(--nle-a-hd); }
.s3-wv { position: absolute; left: 0; top: .55em; width: 100%; height: calc(100% - .65em); }
.s3-wv path { fill: var(--nle-wave); }
/* Subtitle 1: empty until the drop; a light under the lane while it receives */
.s3-lglow { position: absolute; inset: 0; background: var(--nle-lit); box-shadow: inset 0 0 0 1px var(--nle-guide); opacity: 0; }
/* where the speech is: the subtitle edges, drawn down through the waveform while they snap */
.s3-gd { position: absolute; top: calc(var(--r-rul) + var(--r-v) + 4px); bottom: 0; border-left: 1px dashed var(--nle-guide); border-right: 1px dashed var(--nle-guide); background: var(--nle-band); opacity: 0; }
.s3-gd1, .s3-sbw1, .s3-fl1 { left: 4%; width: 38%; }
.s3-gd2, .s3-sbw2, .s3-fl2 { left: 48%; width: 49%; }
.s3-sbw { position: absolute; bottom: 0; height: var(--r-s); padding: .32em 0; }
/* the text: as big as the tighter block allows on one line (2.85 % of the tracks' width; block 2's text takes 46 % of its 49 %), two lines in a narrow program */
.s3-sb { position: relative; display: flex; align-items: center; height: 100%; padding: 0 .55em; font-size: 2.85cqw; line-height: 1.12; overflow: hidden; border-radius: .35em; background: var(--accent); color: var(--accent-ink);
  box-shadow: inset 0 1px 0 var(--nle-hi), 0 .2em .6em var(--nle-shadow); }
.s3-sb b { font-weight: 600; white-space: nowrap; }
/* a light that runs over each block once it has landed */
.s3-sb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, var(--nle-shine) 50%, transparent 65%); transform: translateX(-110%); }
.s3-fl { position: absolute; bottom: 0; height: var(--r-s); border-radius: .6em; background: radial-gradient(ellipse at 50% 60%, var(--nle-flash), transparent 70%); opacity: 0; }
/* the playhead: a red line with its head on the ruler; its wrapper is as wide as the tracks, so translateX(%) = a place on the timeline */
.s3-phw { position: absolute; inset: 0; transform: translateX(76%); }
.s3-ph3 { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--nle-ph); }
.s3-ph3::before { content: ""; position: absolute; top: 0; left: calc(-.45em + 1px); width: .9em; height: 1em; background: var(--nle-ph); clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }
/* Download -> the Subtitle 1 track: an SRT chip on an arc (x and y on two nested boxes; the outer box spans from Download's centre to the drop point,
   so translate 100 % = the whole way at any width). The drop point: the middle of block 1 (23 % of the tracks) on the Subtitle 1 lane. */
.s3-cx { position: absolute; left: 5.18em; top: -2.19em; right: calc(77% - 4.81em - 1.54px); bottom: 2em; pointer-events: none; }
.s3-cy { position: absolute; left: 0; top: 0; width: 0; height: 100%; }
.s3-cc { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); }
.s3-chip { opacity: 0; font-size: 1.05em; box-shadow: 0 .6em 1.4em var(--nle-shadow); }
.s3-ready { margin: 1em .2em 0; color: var(--muted); font-weight: 500; font-size: .92em; line-height: 1.55; text-wrap: balance; text-align: center; }

/* a narrow editing program: icons out of the headers, the viewer full width, every other ruler label */
@container s3ed (max-width: 470px) {
  .s3-ed { padding: .4em; --r-v: 2.5em; --r-a: 2.7em; --r-s: 3.9em; }
  .s3-mon { width: 100%; }
  .s3-tlx { grid-template-columns: 4.5em minmax(0, 1fr); }
  .s3-hd { padding: 0 .4em; }
  .s3-hd .i { display: none; }
  .s3-hst b { font-size: max(.78em, 10px); white-space: normal; line-height: 1.15; }
  .s3-tn { font-size: max(.8em, 10px); }
  .s3-rul .num { font-size: max(.7em, 9.5px); }
  .s3-sb { padding: 0 .5em; font-size: min(4.5cqw, 13px); }
  .s3-sb b { white-space: normal; text-wrap: balance; }
  .s3-r2, .s3-r4 { display: none; }
  .s3-cx { right: calc(77% - 3.68em - 1.54px); bottom: 2.35em; }
}

@container (min-width: 760px) {
  .s3-in { grid-template-columns: auto 1fr; gap: 2.4em; align-items: center; font-size: clamp(11px, 100cqw / 66, 25px); padding: 1.6em 2em 0; max-width: none; }
  .s3-ph { font-size: .98em; border-radius: 2.4em 2.4em 0 0; align-self: end; margin-left: .55em;   /* the phone rises from the stage's foot in its frame */
    box-shadow: 0 0 0 .55em var(--bezel), 0 0 0 calc(.55em + 1px) var(--bezel-edge), var(--win-shadow); }
  /* a taller film between narrow side columns: the film ~ 260 px wide at 1440, its subtitle ~ 18 px */
  .s3-stage { grid-template-columns: 2.8em 1fr 2.8em; height: 23.6em; }
  .s3-side .num { display: block; }
  .s3-film { width: auto; height: 100%; }
  .s3-xp { padding: 1em; margin-bottom: 2.2em; font-size: 1.05em; }
  /* side by side, one focus at a time: the export card waits a step back while the phone has the stage, then comes forward just before Download */
  .s3-xp { animation: s3-focus var(--loop-s3) var(--ease-out) infinite; }
}

/* ---- motion: one 8.5 s clock (1 s = 11.76 %). 0.3-2.1 s the safe area, 2.25-3.2 s the fix, 3.4-7.4 s the export, then calm until the fade at 8.1 s ---- */
.s3-pic { animation: s3-drift var(--loop-s3) var(--ease-tour) infinite; }
.s3-dp, .s3-ph3, .s3-tb { animation: s3-dip var(--loop-s3) var(--ease-out) infinite; }
.s3-subw { animation: s3-lift var(--loop-s3) var(--ease-spring) infinite; }
.s3-l2 { animation: s3-trail var(--loop-s3) var(--ease-spring) infinite; }
.s3-hit { animation: s3-warn var(--loop-s3) var(--ease-spring) infinite; }
.s3-dot { animation: s3-dot var(--loop-s3) var(--ease-spring) infinite; }
.s3-pbtn { animation: s3-press1 var(--loop-s3) var(--ease-spring) infinite; }
.s3-tap1 { animation: s3-tap1 var(--loop-s3) var(--ease-out) infinite; }
.s3-safe { animation: s3-safe var(--loop-s3) var(--ease-out) infinite; }
.s3-glow { animation: s3-glow var(--loop-s3) var(--ease-out) infinite; }
.s3-tick { animation: s3-tick var(--loop-s3) var(--ease-spring) infinite; }
.s3-dl { animation: s3-press2 var(--loop-s3) var(--ease-spring) infinite; }
.s3-tap2 { animation: s3-tap2 var(--loop-s3) var(--ease-out) infinite; }
.s3-lglow, .s3-hlit { animation: s3-lane var(--loop-s3) var(--ease-out) infinite; }
.s3-gd1 { animation: s3-gd1 var(--loop-s3) var(--ease-out) infinite; }
.s3-gd2 { animation: s3-gd2 var(--loop-s3) var(--ease-out) infinite; }
.s3-sbw1 { animation: s3-fall1 var(--loop-s3) var(--ease-spring) infinite; }
.s3-sbw2 { animation: s3-fall2 var(--loop-s3) var(--ease-spring) infinite; }
.s3-sbw1 .s3-sb { animation: s3-pop1 var(--loop-s3) var(--ease-out) infinite; }
.s3-sbw2 .s3-sb { animation: s3-pop2 var(--loop-s3) var(--ease-out) infinite; }
.s3-sbw2 .s3-sb { transform-origin: -12% 50%; }   /* block 1 grows out of the chip where it lands; block 2 stretches out of block 1 (whose end is 12 % of block 2's width before it) */
.s3-fl1 { animation: s3-fl1 var(--loop-s3) var(--ease-out) infinite; }
.s3-fl2 { animation: s3-fl2 var(--loop-s3) var(--ease-out) infinite; }
.s3-phw { animation: s3-play var(--loop-s3) var(--ease-tour) infinite; }
.s3-vs1 { animation: s3-vs1 var(--loop-s3) var(--ease-out) infinite; }
.s3-vs2 { animation: s3-vs2 var(--loop-s3) var(--ease-out) infinite; }
.s3-mon .s3-pb { animation: s3-shot var(--loop-s3) var(--ease-out) infinite, s3-drift var(--loop-s3) var(--ease-tour) infinite; }
.s3-ipa { animation: s3-ipa var(--loop-s3) var(--ease-out) infinite; }
.s3-ipl { animation: s3-ipl var(--loop-s3) var(--ease-out) infinite; }
.s3-pl { animation: s3-press3 var(--loop-s3) var(--ease-spring) infinite; }
.s3-sbw1 .s3-sb::after { animation: s3-shine1 var(--loop-s3) var(--ease-tour) infinite; }
.s3-sbw2 .s3-sb::after { animation: s3-shine2 var(--loop-s3) var(--ease-tour) infinite; }
.s3-tap0 { animation: s3-tap0 var(--loop-s3) var(--ease-out) infinite; }
.s3-tb::after { animation: s3-box var(--loop-s3) var(--ease-out) infinite; }
.s3-tsel { animation: s3-tsel var(--loop-s3) var(--ease-out) infinite; }
.s3-old { animation: s3-old var(--loop-s3) var(--ease-tour) infinite; }
.s3-new { animation: s3-new var(--loop-s3) var(--ease-spring) infinite; }
.s3-cx { animation: s3-cx var(--loop-s3) var(--ease-arc) infinite; }
.s3-cy { animation: s3-cy var(--loop-s3) var(--ease-tour) infinite; }
.s3-chip { animation: s3-chip var(--loop-s3) var(--ease-out) infinite; }

@keyframes s3-drift { 0%, 100% { transform: scale(1) translate(0, 0); } 50% { transform: scale(1.05) translate(-1.6%, 1%); } }
@keyframes s3-dip { 0% { opacity: 0; } 3.5%, 95.3% { opacity: 1; } 98.8%, 100% { opacity: 0; } }
/* phone, first the problem: the subtitle under the app's buttons and texts, marked at once (red dashed outline, red dot on the phone-preview
   button, 0.3 s); the tap (1.0 s), the safe frame lights, a small dip down, the lift with a spring into the frame (1.1-1.76 s), the tick (1.8 s) */
@keyframes s3-lift { 0%, 12.94% { transform: translateY(20cqh); } 14.47% { transform: translateY(21.2cqh) scale(.95); } 20.71%, 100% { transform: none; } }
@keyframes s3-trail { 0%, 14.47% { transform: none; } 16.94% { transform: translateY(1.1cqh); } 22%, 100% { transform: none; } }
@keyframes s3-warn { 0%, 3.5% { opacity: 0; transform: scale(1.14); } 6% { opacity: 1; transform: none; } 8.2% { opacity: 1; transform: scale(1.04); } 10%, 12.35% { opacity: 1; transform: none; }
  14.71%, 100% { opacity: 0; transform: none; } }
@keyframes s3-dot { 0%, 4% { opacity: 0; transform: scale(.3); } 6.5%, 12.35% { opacity: 1; transform: none; } 14.71%, 100% { opacity: 0; transform: scale(.3); } }
@keyframes s3-press1 { 0%, 11.76% { transform: none; } 12.71% { transform: scale(.86); } 15.53%, 100% { transform: none; } }
@keyframes s3-tap1 { 0%, 11.76% { opacity: 0; transform: scale(.34); } 12.71% { opacity: .75; transform: scale(.34); } 16.47%, 100% { opacity: 0; transform: scale(1.3); } }
@keyframes s3-safe { 0%, 12.35% { opacity: .3; transform: scale(1.05); } 15.76%, 95.3% { opacity: 1; transform: none; } 100% { opacity: .3; transform: scale(1.05); } }
@keyframes s3-glow { 0%, 20.35% { opacity: 0; } 22.82% { opacity: 1; } 29.65%, 100% { opacity: 0; } }
@keyframes s3-tick { 0%, 21.29% { opacity: 0; transform: scale(.3); } 24.59%, 95.3% { opacity: 1; transform: none; } 98.8%, 100% { opacity: 0; transform: none; } }
/* then the fix, inside the frame (2.25-3.2 s): the misheard word (red since the start) is tapped, selected, "beet" -> "beat" in the card and on the film;
   it turns back only while the card's text and the film's subtitle are faded out at the loop's end */
@keyframes s3-tap0 { 0%, 26.47% { opacity: 0; transform: scale(.34); } 27.65% { opacity: .75; transform: scale(.34); } 31.76%, 100% { opacity: 0; transform: scale(1.3); } }
@keyframes s3-box { 0%, 26.47% { opacity: 0; } 27.65%, 35.29% { opacity: 1; } 37.65%, 100% { opacity: 0; } }
@keyframes s3-tsel { 0%, 27.06% { opacity: 0; } 28.24%, 32.35% { opacity: 1; } 33.53%, 100% { opacity: 0; } }
@keyframes s3-old { 0%, 32.35% { opacity: 1; transform: none; } 33.53%, 98.8% { opacity: 0; transform: translateY(-.4em); } 98.9%, 100% { opacity: 1; transform: none; } }
@keyframes s3-new { 0%, 32.94% { opacity: 0; transform: translateY(.45em); } 35.29%, 98.8% { opacity: 1; transform: none; } 98.9%, 100% { opacity: 0; transform: none; } }
/* export (3.4-7.4 s): the card comes forward, Download (3.4 s), an SRT chip lifts off it and arcs onto the Subtitle 1 track (3.55-3.9 s), the two subtitles grow
   out of it on the track, exactly under their speech (guides down through the waveform), settle with a snap and a light; then playback (5.3-7.4 s) */
@keyframes s3-focus { 0%, 34.71% { opacity: .92; transform: scale(.975); } 38.82%, 95.3% { opacity: 1; transform: none; } 100% { opacity: .92; transform: scale(.975); } }
@keyframes s3-press2 { 0%, 40% { transform: none; } 41.17% { transform: scale(.9); } 44.67%, 100% { transform: none; } }
@keyframes s3-tap2 { 0%, 40% { opacity: 0; transform: scale(.34); } 41.17% { opacity: .75; transform: scale(.34); } 45.87%, 100% { opacity: 0; transform: scale(1.3); } }
@keyframes s3-chip { 0%, 40.57% { opacity: 0; transform: translateY(0) scale(.5); } 41.77% { opacity: 1; transform: translateY(-1.4em); } 45.27% { opacity: 1; transform: scale(.9); } 47.07%, 100% { opacity: 0; transform: scale(.6); } }
@keyframes s3-cx { 0%, 41.77% { transform: none; } 45.87%, 100% { transform: translateX(100%); } }
@keyframes s3-cy { 0%, 41.77% { transform: none; } 42.97% { transform: translateY(-6%); } 45.87%, 100% { transform: translateY(100%); } }
@keyframes s3-lane { 0%, 42.37% { opacity: 0; } 45.87%, 55.27% { opacity: 1; } 59.17%, 100% { opacity: 0; } }
@keyframes s3-pop1 { 0%, 45.27% { opacity: 0; transform: scale(.35); } 47.57%, 95.3% { opacity: 1; transform: none; } 98.8%, 100% { opacity: 0; transform: none; } }
@keyframes s3-pop2 { 0%, 46.67% { opacity: 0; transform: scale(.35); } 49.07%, 95.3% { opacity: 1; transform: none; } 98.8%, 100% { opacity: 0; transform: none; } }
@keyframes s3-fall1 { 0%, 45.27% { transform: translateY(-.4em); } 49.5%, 100% { transform: none; } }
@keyframes s3-fall2 { 0%, 46.67% { transform: translateY(-.4em); } 50.9%, 100% { transform: none; } }
@keyframes s3-gd1 { 0%, 45.27% { opacity: 0; } 47.57%, 54.47% { opacity: 1; } 58.57%, 100% { opacity: 0; } }
@keyframes s3-gd2 { 0%, 46.67% { opacity: 0; } 49.07%, 55.37% { opacity: 1; } 59.47%, 100% { opacity: 0; } }
@keyframes s3-fl1 { 0%, 47.2% { opacity: 0; transform: scale(.9); } 48.4% { opacity: 1; transform: none; } 53.2%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes s3-fl2 { 0%, 48.6% { opacity: 0; transform: scale(.9); } 49.8% { opacity: 1; transform: none; } 54.4%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes s3-shine1 { 0%, 54.27% { transform: translateX(-110%); } 57.57%, 100% { transform: translateX(110%); } }
@keyframes s3-shine2 { 0%, 55.17% { transform: translateX(-110%); } 58.47%, 100% { transform: translateX(110%); } }
@keyframes s3-press3 { 0%, 60.57% { transform: none; } 61.77% { transform: scale(.84); } 64.67%, 100% { transform: none; } }
/* the viewer follows the playhead (--ease-tour from 3 % to 76 % of the tracks): block 1 (4-42 %) from 65.4 % of the loop, the cut (45 %) at 75.4 %, block 2 (48 %) at 75.8 % */
@keyframes s3-play { 0%, 62.37% { transform: translateX(3%); } 87.07%, 100% { transform: translateX(76%); } }
@keyframes s3-vs1 { 0%, 65.37% { opacity: 0; transform: translateY(.3em); } 66.27%, 74.95% { opacity: 1; transform: none; } 75.55%, 100% { opacity: 0; transform: none; } }
@keyframes s3-vs2 { 0%, 75.73% { opacity: 0; transform: translateY(.3em); } 76.63%, 95.3% { opacity: 1; transform: none; } 98.8%, 100% { opacity: 0; transform: none; } }
@keyframes s3-shot { 0%, 75.23% { opacity: 0; } 75.73%, 95.3% { opacity: 1; } 98.8%, 100% { opacity: 0; } }
@keyframes s3-ipa { 0%, 61.77% { opacity: 0; } 62.37%, 87.07% { opacity: 1; } 87.67%, 100% { opacity: 0; } }
@keyframes s3-ipl { 0%, 61.77% { opacity: 1; } 62.37%, 87.07% { opacity: 0; } 87.67%, 100% { opacity: 1; } }
