# Signature Animation

Motionboard shot name: Script Write-on

A handwritten hello writes itself in white over a warm, softly blurred room, stroke by stroke, with a faint shadow under the pen line. A sans line fades up under it, the footage darkens, and the word moves up above the Wren lockup.

- Position in a launch film: Opening
- Slug: signature-animation
- Preview video: https://media.motionboard.app/script-write.mp4
- Recipe page: https://motionboard.app/recipes/signature-animation/
- License: MIT. Free to use in your own projects, including commercial launch films. https://github.com/krisyangdev/motionboard/blob/main/LICENSE

## How to use this recipe

You are a coding agent. The user wants this shot for their own product. Follow these steps.

1. **Know the product.** If the product is clear from the user's repo or conversation, ask nothing and start. Otherwise ask once for: product name, logo file, brand colors.
2. **Pick the output.** If the user's message says a video or their website, do that. Otherwise ask once which one they want.
   - **Video (HyperFrames).** Create a folder named `script-write`. Download every file under "Source files" below with the curl commands, keeping relative paths. Adapt `index.html` (see "What to adapt"). Run `npx --yes hyperframes@0.8.209 check` on the untouched copy first and note its result. Preview with `npx --yes hyperframes@0.8.209 preview`, render an MP4 with `npx --yes hyperframes@0.8.209 render` (into `renders/`, named with a timestamp). The same commands are in `package.json` as `dev`, `check`, `render`; pass flags after `--`, as in `npm run render -- --quality draft`. Rendering needs network access for web fonts and GSAP.
   - **Website motion.** Port the GSAP timeline in `index.html` into the user's site, using their stack (React, Vue, Svelte, plain HTML). Build the same DOM structure, keep the timeline's durations, delays and easings exactly, and start it when the element scrolls into view (IntersectionObserver or ScrollTrigger). Respect `prefers-reduced-motion: reduce`: show the final frame as a static state and skip the movement.
3. **What to adapt.**
   - **Brand layer** (product name, logo, colors, fonts, copy): replace directly with the user's.
   - **UI layer** (the product screens, cards, windows, controls shown in the shot): rebuild the user's real UI as clean DOM, from their codebase (components, design tokens) or from a screenshot used as reference only. Never paste a screenshot into the shot.
   - **Motion** (timing, easing, camera moves, layering, stagger, order of events): keep exactly as in the source. This is what the recipe is.
   - The timeline targets UI elements by id and class, and camera moves land on fixed coordinates. Keep the ids the timeline uses, keep row counts and text lengths close to the source, and when the layout moves, update the target coordinates without changing the times.
4. **Fonts.** HyperFrames fetches Google Fonts such as Inter on its own. Some sources use macOS local fonts (PingFang, Songti via `local()`). Use the user's brand font when it can be bundled; for a system font such as SF Pro, use Inter. Check that text still fits its boxes.
5. **Verify.** Compare the render with the preview video above at the beat times in the Timing row. The beats, timing and camera should match; only brand and UI content differ.

## Spec

| Item | Value |
| --- | --- |
| Timing | Film 11s. The plate pushes in 0–11s. The word writes 0.4–3.75s in five segments: h 0.4s (0.9s), h arch and e 1.3s (0.8s), first l 2.1s (0.48s), connector and second l 2.58s (0.62s), o and tail 3.2s (0.55s). The sans line rises at 4.0s (0.8s) and clears at 6.5s (0.4s). The plate darkens 6.0–7.2s. The script moves up and shrinks 6.6–7.6s. The mark lands at 7.3s (0.7s), the wordmark at 7.45s (0.7s), the tagline at 7.9s (0.55s). The lockup is settled at 8.45s and holds to the end (2.55s) |
| Easing | Pen segments power1.out for the h, first l and o, sine.out for the h arch with the e and for the connector with the second l, so every segment moves from its first frame; sans line power3.out in and power2.in out; plate darkening power2.inOut; script move power3.inOut; mark and wordmark `cubic-bezier(0.16,1,0.3,1)` (expo.out); mark W stroke power2.inOut; tagline power3.out; plate push-in linear; bokeh sine.inOut |
| Camera | No camera move on the type. The footage plate pushes in from 1.0x to 1.04x over 0–11s, linear, around the frame centre, in its own layer; the script, the sans line and the lockup sit above it and do not scale with it. Each of 12 bokeh discs drifts up to 50px sideways and 40px up or down over the whole film |
| Subject | One SVG path in a 760x400px box at left 580px and top 230px, stroke #fffaf0, 20px wide, round caps and joins, under a `drop-shadow(0 8px 12px rgba(40,14,0,0.5))`. The word spans about 710px. Baseline y=300, e and o top y=192 (x-height about 108px), h and both l tops y=36 with loops about 55px apart. The o is a closed oval as tall as the e and about 1.1x its width, joined from the second l by a low connector and ended with a short flat flick to the right; nothing after the second l rises above the top of the e. Each segment is drawn with pathLength 1, dasharray 1 2 and dashoffset 1.01 to 0, and stays at opacity 0 until its own draw starts. Plate: sky gradient, a blurred window glow with three dark bars, a dark shelf, a lamp glow, a dark table band and plant shapes in one group with a 16px blur, plus 12 bokeh discs of 70–220px. After the word, the script wrapper moves up 60px and scales to 0.8 |
| Sync | Each segment starts on the frame where the previous one ends its draw window (0.4, 1.3, 2.1, 2.58, 3.2s), so the pen never lifts; the sans line rises 0.25s after the last stroke lands (3.75s to 4.0s) and stays fully readable 4.8–6.5s; the plate starts to darken at 6.0s before the sans line clears at 6.5s, and the script move at 6.6s hands the frame to the lockup; the mark starts at 7.3s while the script is still settling, and the wordmark starts when the mark W starts to draw (7.45s) |
| Style | Warm footage look: sky orange and deep brown plate under a 20% dark overlay (52% for the lockup) and a vignette to rgba(20,8,2,0.5), no grain; white script `#fffaf0`; one accent amber `#ff9a3c`; Inter 600 64px sans line with letter-spacing -0.015em; wordmark Inter 700 128px with letter-spacing -0.04em; tagline Inter 500 44px; mark 130px, a cream `#fff8ee` rounded square with a dark brown `#3a1c0e` W |

## Why it works

The word is one hand-drawn SVG path drawn with stroke-dashoffset, never a font outline, so the pen has a real centre line to follow: it climbs into the h, loops at the top of the h and both l, and joins every letter to the next without lifting. A font outline has no such line, and tracing it would draw each letter's edge twice. The path is split into five segments at natural pen points and each segment has its own duration and ease, so the pen slows on the loops and runs fast on the straight strokes, which is what makes it read as handwriting. The ascender loops are about 55px wide against a 20px stroke so they stay open, and the e and o are small and equal in height so the word reads hello. The footage look is built in code (a warm gradient, a blurred window glow, dark interior shapes, drifting bokeh and a slow push-in), so the white script has a moving, believable image behind it, and a soft shadow under the stroke keeps it legible over the brightest part. After the last stroke the film holds for a beat, a sans line fades up under the script, the plate darkens, and the script moves up and shrinks to sit above the lockup, so the signature stays on screen as part of the brand. There is one accent color, amber #ff9a3c, used only for the dot in the mark.

## Prompt

> Build an 11-second, 1920x1080, 30 fps product film called Script Write-on for a fictional product, Wren (a web browser). Font Inter. The background is a warm blurred footage plate built in code, no video file: a 165deg gradient #5a2a16, #a8552a 28%, #d9843a 55%, #e9a24f 80%, #f1b466; in one group with filter blur(16px) add a pale window glow with three dark bars at the upper right, a dark shelf on the left, a warm lamp glow, a dark table band along the bottom and a plant silhouette at the lower right. Above it, 12 soft bokeh discs of 70-220px (faint bright rim, blur 2px) placed by a seeded mulberry32, each drifting up to 50px sideways and 40px vertically over the film (sine.inOut). The plate pushes in from scale 1 to 1.04 over 0-11s, linear. Add a dark overlay #1a0c06 at 20% and a vignette to rgba(20,8,2,0.5); no film grain. The script word is one hand-drawn centre-line SVG path for hello, viewBox 760x400 at left 580px, top 230px, stroke #fffaf0, 20px, round linecap and linejoin, with CSS drop-shadow(0 8px 12px rgba(40,14,0,0.5)) on its wrapper. The word is about 710px wide: baseline y=300, e and o top y=192, the h and both l reach y=36 with open loops about 55px apart. The o is a closed oval as tall as the e and about 1.1x its width, joined from the second l by a low connector and finished with a short flat flick right; nothing after the second l may rise above the top of the e. Draw loops, joined letters and a crossing at each ascender loop; never trace a font outline. Split the path into five segments at natural pen points: h, h arch plus e, first l, connector plus second l, o plus flick. Each has pathLength=1, stroke-dasharray 1 2 and stroke-dashoffset tweened from 1.01 to 0. Keep every segment at opacity 0 in CSS and set it to 1 with a timeline set at the exact time its draw starts, otherwise a round cap shows as a dot. Start, duration, ease: 0.4s, 0.9s, power1.out; 1.3s, 0.8s, sine.out; 2.1s, 0.48s, power1.out; 2.58s, 0.62s, sine.out; 3.2s, 0.55s, power1.out. At 4.0s the sans line Wren for Windows (Inter 600, 64px, white, centred at top 640px) rises 20px and fades in over 0.8s (power3.out); it clears at 6.5s (0.4s, power2.in). From 6.0 to 7.2s the overlay goes from 20% to 52% (power2.inOut). From 6.6s the script wrapper moves up 60px and scales to 0.8 over 1.0s (power3.inOut). Lockup: a 130px mark (cream #fff8ee rounded square, dark brown #3a1c0e W stroke 9px, one amber #ff9a3c dot top right), the wordmark Wren (Inter 700, 128px, letter-spacing -0.04em) beside it in a row centred at top 530px, and the tagline Browse like you write. (Inter 500, 44px) at top 720px. The mark scales 0.7 to 1 and fades in at 7.3s (0.7s, expo.out), its W draws with the same dash method at 7.45s (0.5s), the wordmark rises 36px and fades in at 7.45s (0.7s, expo.out), the tagline rises 18px at 7.9s (0.55s, power3.out). All settled by 8.45s and held still to 11s. Hidden states in CSS (opacity 0), one baseline set per element, no CSS transform on elements GSAP animates, one paused GSAP 3.14.2 timeline.

## Often confused with

- [Underline Animation](https://motionboard.app/r/underline-animation.md): Underline Animation draws a tapered, hand-drawn mark under one word of a headline on paper; here a whole script word is written as one pen path over moving footage and stays above the lockup.
- [Line Drawing Logo Animation](https://motionboard.app/r/line-drawing-logo-animation.md): Line Drawing Logo Animation follows a plotter pen that draws a logo and then cuts to the flat mark; here the pen writes a handwritten word in stroke-dashoffset segments on a footage-style background.

## Source files

Runnable HyperFrames project, 3 files.

- https://motionboard.app/source/script-write/hyperframes.json (318 B)
- https://motionboard.app/source/script-write/index.html (13.5 KB)
- https://motionboard.app/source/script-write/package.json (301 B)

Download all of them:

```sh
curl -fsSL --create-dirs -o "script-write/hyperframes.json" "https://motionboard.app/source/script-write/hyperframes.json"
curl -fsSL --create-dirs -o "script-write/index.html" "https://motionboard.app/source/script-write/index.html"
curl -fsSL --create-dirs -o "script-write/package.json" "https://motionboard.app/source/script-write/package.json"
```

## index.html

```html
<!doctype html>
<html lang="en" data-resolution="landscape">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=1920, height=1080" />
    <script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script>
    <style>
      :root {
        --cream: #fff8ee;
        --amber: #ff9a3c;
        --brown: #3a1c0e;
        --font-ui: "Inter", sans-serif;
      }
      * { margin: 0; padding: 0; box-sizing: border-box; }
      html, body { width: 1920px; height: 1080px; overflow: hidden; background: #2a140a; }
      #root {
        position: relative; width: 1920px; height: 1080px; overflow: hidden;
        background: #2a140a; color: #fff; font-family: var(--font-ui);
        -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11";
      }
      .full { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
      svg { display: block; overflow: visible; }

      /* ---------- footage plate (built in code) ---------- */
      #plateIn { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
      #sky {
        position: absolute; left: 0; top: 0; width: 1920px; height: 1080px;
        background:
          radial-gradient(ellipse 760px 520px at 280px 940px, rgba(176, 56, 40, 0.38), rgba(176, 56, 40, 0) 100%),
          radial-gradient(ellipse 900px 600px at 1500px 160px, rgba(255, 196, 120, 0.35), rgba(255, 196, 120, 0) 100%),
          linear-gradient(165deg, #5a2a16 0%, #a8552a 28%, #d9843a 55%, #e9a24f 80%, #f1b466 100%);
      }
      #shapes { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; filter: blur(16px); }
      .sh { position: absolute; }
      #win {
        left: 960px; top: -60px; width: 880px; height: 800px;
        background: radial-gradient(ellipse closest-side at 50% 50%, rgba(255, 238, 200, 0.88) 0%, rgba(255, 214, 150, 0.62) 52%, rgba(255, 190, 110, 0) 100%);
      }
      .mul { background: rgba(92, 44, 18, 0.55); }
      #shelf {
        left: -80px; top: -60px; width: 560px; height: 1200px;
        background: linear-gradient(90deg, rgba(20, 8, 4, 0.92), rgba(30, 12, 6, 0.78) 68%, rgba(30, 12, 6, 0));
      }
      .bk1 { background: rgba(130, 64, 30, 0.55); }
      .bk2 { background: rgba(176, 96, 44, 0.45); }
      .bk3 { background: rgba(70, 30, 16, 0.65); }
      #lamp {
        left: 90px; top: 170px; width: 340px; height: 340px;
        background: radial-gradient(circle closest-side, rgba(255, 224, 142, 0.9) 0%, rgba(255, 190, 100, 0.4) 55%, rgba(255, 190, 100, 0) 100%);
      }
      #table {
        left: -80px; top: 820px; width: 2080px; height: 340px;
        background: linear-gradient(180deg, rgba(34, 14, 6, 0), rgba(34, 14, 6, 0.86) 40%, rgba(20, 8, 4, 0.96));
      }
      #cup { left: 780px; top: 790px; width: 130px; height: 96px; border-radius: 40px 40px 18px 18px; background: rgba(250, 196, 128, 0.55); }
      .leaf {
        background: radial-gradient(ellipse closest-side, rgba(40, 32, 12, 0.88) 0%, rgba(40, 32, 12, 0) 100%);
      }
      #bokeh { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
      .bk {
        position: absolute; border-radius: 50%; filter: blur(2px);
        background: radial-gradient(circle closest-side, rgba(255, 226, 170, 0.26) 0%, rgba(255, 226, 170, 0.28) 78%, rgba(255, 240, 205, 0.5) 90%, rgba(255, 226, 170, 0) 100%);
      }
      #dim { background: #1a0c06; opacity: 0.2; }
      #vig {
        pointer-events: none;
        background: radial-gradient(ellipse 80% 80% at 50% 48%, rgba(0, 0, 0, 0) 55%, rgba(20, 8, 2, 0.5) 100%);
      }

      /* ---------- script word ---------- */
      #scriptw {
        position: absolute; left: 580px; top: 230px; width: 760px; height: 400px;
        filter: drop-shadow(0 8px 12px rgba(40, 14, 0, 0.5));
      }
      .seg { opacity: 0; }

      /* ---------- beat 2 line ---------- */
      #sans {
        position: absolute; left: 0; top: 640px; width: 1920px; text-align: center;
        font-size: 64px; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; color: #fff;
        text-shadow: 0 4px 22px rgba(40, 14, 0, 0.55);
        opacity: 0;
      }

      /* ---------- lockup ---------- */
      #lockrow {
        position: absolute; left: 0; top: 530px; width: 1920px; height: 140px;
        display: flex; align-items: center; justify-content: center; gap: 34px;
      }
      #mk { width: 130px; height: 130px; flex: none; opacity: 0; }
      #mk svg { width: 130px; height: 130px; }
      #mw { opacity: 0; }
      #wm {
        font-size: 128px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; white-space: nowrap;
        text-shadow: 0 6px 28px rgba(40, 14, 0, 0.5);
        opacity: 0;
      }
      #tag {
        position: absolute; left: 0; top: 720px; width: 1920px; text-align: center;
        font-size: 44px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.92);
        text-shadow: 0 4px 20px rgba(40, 14, 0, 0.55);
        opacity: 0;
      }
    </style>
  </head>
  <body>
    <div id="root" data-composition-id="main" data-start="0" data-duration="11" data-width="1920" data-height="1080">

      <!-- footage plate -->
      <div id="plate" class="clip full" data-start="0" data-duration="11" data-track-index="0" data-layout-ignore>
        <div id="plateIn">
          <div id="sky"></div>
          <div id="shapes">
            <div id="win" class="sh"></div>
            <div class="sh mul" style="left:1300px; top:40px; width:30px; height:600px"></div>
            <div class="sh mul" style="left:1480px; top:40px; width:30px; height:600px"></div>
            <div class="sh mul" style="left:1110px; top:330px; width:700px; height:26px"></div>
            <div id="shelf" class="sh"></div>
            <div class="sh bk1" style="left:40px; top:120px; width:90px; height:30px"></div>
            <div class="sh bk3" style="left:150px; top:110px; width:120px; height:40px"></div>
            <div class="sh bk2" style="left:60px; top:330px; width:150px; height:34px"></div>
            <div class="sh bk1" style="left:230px; top:340px; width:80px; height:28px"></div>
            <div class="sh bk3" style="left:40px; top:560px; width:110px; height:40px"></div>
            <div class="sh bk2" style="left:180px; top:550px; width:130px; height:34px"></div>
            <div class="sh bk1" style="left:70px; top:720px; width:140px; height:30px"></div>
            <div id="lamp" class="sh"></div>
            <div id="table" class="sh"></div>
            <div id="cup" class="sh"></div>
            <div class="sh leaf" style="left:1480px; top:520px; width:300px; height:520px; transform:rotate(-14deg)"></div>
            <div class="sh leaf" style="left:1660px; top:600px; width:300px; height:480px; transform:rotate(18deg)"></div>
            <div class="sh leaf" style="left:1560px; top:700px; width:340px; height:460px"></div>
          </div>
          <div id="bokeh"></div>
        </div>
      </div>
      <div id="dim" class="clip full" data-start="0" data-duration="11" data-track-index="1" data-layout-ignore></div>
      <div id="vig" class="clip full" data-start="0" data-duration="11" data-track-index="2" data-layout-ignore></div>

      <!-- script word -->
      <div id="scr" class="clip full" data-start="0" data-duration="11" data-track-index="3" data-layout-allow-overlap>
        <div id="scriptw">
          <svg viewBox="0 0 760 400" width="760" height="400" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="#fffaf0" stroke-width="20" stroke-linecap="round" stroke-linejoin="round">
            <!-- h: slanted upstroke, ascender loop, stem -->
            <path id="s1" class="seg" pathLength="1" stroke-dasharray="1 2" stroke-dashoffset="1.01"
              d="M 20 312 C 80 306 150 250 185 160 C 205 108 228 50 205 36 C 182 22 150 70 138 130 C 126 190 118 255 116 300" />
            <!-- h arch, exit stroke, e -->
            <path id="s2" class="seg" pathLength="1" stroke-dasharray="1 2" stroke-dashoffset="1.01"
              d="M 116 300 C 117 262 120 215 146 200 C 178 182 214 200 212 246 C 211 276 208 300 224 304 C 242 308 268 284 288 244 C 298 224 312 194 336 192 C 366 190 366 232 322 242 C 298 248 284 276 304 296 C 324 312 362 296 382 252" />
            <!-- first l -->
            <path id="s3" class="seg" pathLength="1" stroke-dasharray="1 2" stroke-dashoffset="1.01"
              d="M 382 252 C 392 230 428 212 455 160 C 475 108 498 50 475 36 C 452 22 420 70 408 130 C 396 190 390 255 388 300" />
            <!-- connector and second l -->
            <path id="s4" class="seg" pathLength="1" stroke-dasharray="1 2" stroke-dashoffset="1.01"
              d="M 388 300 C 392 318 480 316 532 252 C 542 230 578 212 605 160 C 625 108 648 50 625 36 C 602 22 570 70 558 130 C 546 190 540 255 538 300" />
            <!-- o and tail -->
            <path id="s5" class="seg" pathLength="1" stroke-dasharray="1 2" stroke-dashoffset="1.01"
              d="M 538 300 C 556 308 600 262 644 192 C 614 192 594 216 594 247 C 594 280 614 302 640 302 C 668 302 686 278 686 247 C 686 216 672 196 652 196 C 678 194 704 194 730 192" />
          </svg>
        </div>
      </div>

      <!-- beat 2 line -->
      <div id="b2" class="clip full" data-start="0" data-duration="11" data-track-index="4" data-layout-allow-overlap>
        <div id="sans">Wren for Windows</div>
      </div>

      <!-- lockup -->
      <div id="lockc" class="clip full" data-start="0" data-duration="11" data-track-index="5" data-layout-allow-overlap>
        <div id="lockrow">
          <div id="mk">
            <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
              <rect x="0" y="0" width="100" height="100" rx="28" fill="#fff8ee" />
              <path id="mw" d="M 24 34 L 38 68 L 50 44 L 62 68 L 76 34" fill="none" stroke="#3a1c0e" stroke-width="9" stroke-linecap="round" stroke-linejoin="round" pathLength="1" stroke-dasharray="1 2" stroke-dashoffset="1.01" />
              <circle cx="76" cy="23" r="6.5" fill="#ff9a3c" />
            </svg>
          </div>
          <div id="wm">Wren</div>
        </div>
        <div id="tag">Browse like you write.</div>
      </div>
    </div>

    <script>
      function mulberry32(a) {
        return function () {
          a |= 0; a = (a + 0x6d2b79f5) | 0;
          let t = Math.imul(a ^ (a >>> 15), 1 | a);
          t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;
          return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
        };
      }
      const rnd = mulberry32(20261203);

      // soft bokeh discs, positions from a seeded generator
      const bokehHost = document.getElementById("bokeh");
      const bokeh = [];
      for (let i = 0; i < 12; i++) {
        const s = Math.round(70 + rnd() * 150);
        const d = document.createElement("div");
        d.className = "bk";
        d.style.left = Math.round(rnd() * 1800 - 40) + "px";
        d.style.top = Math.round(rnd() * 900 - 20) + "px";
        d.style.width = s + "px";
        d.style.height = s + "px";
        d.style.opacity = (0.45 + rnd() * 0.5).toFixed(2);
        bokehHost.appendChild(d);
        bokeh.push({ el: d, x: (rnd() - 0.5) * 100, y: (rnd() - 0.5) * 80 });
      }

      const tl = gsap.timeline({ paused: true });

      /* ================= baselines (one set per element) ================= */
      tl.set("#plateIn", { scale: 1, transformOrigin: "960px 540px" }, 0);
      tl.set("#scriptw", { y: 0, scale: 1, transformOrigin: "50% 50%" }, 0);
      tl.set("#sans", { y: 20 }, 0);
      tl.set("#mk", { scale: 0.7, transformOrigin: "50% 50%" }, 0);
      tl.set("#wm", { y: 36 }, 0);
      tl.set("#tag", { y: 18 }, 0);

      /* ================= footage plate: slow push-in and drifting bokeh ================= */
      tl.to("#plateIn", { scale: 1.04, duration: 11, ease: "none" }, 0);
      bokeh.forEach((b) => {
        tl.to(b.el, { x: b.x, y: b.y, duration: 11, ease: "sine.inOut" }, 0);
      });

      /* ================= beat 1: "hello" writes itself, pen speed varies per segment ================= */
      const segs = [
        { id: "#s1", at: 0.4,  dur: 0.9,  ease: "power1.out" },  // h: upstroke, loop, stem (slow on the loop)
        { id: "#s2", at: 1.3,  dur: 0.8,  ease: "sine.out" },    // h arch + e
        { id: "#s3", at: 2.1,  dur: 0.48, ease: "power1.out" },  // first l
        { id: "#s4", at: 2.58, dur: 0.62, ease: "sine.out" },    // connector + second l
        { id: "#s5", at: 3.2,  dur: 0.55, ease: "power1.out" }   // o + tail
      ];
      segs.forEach((s) => {
        tl.set(s.id, { opacity: 1 }, s.at);
        tl.to(s.id, { attr: { "stroke-dashoffset": 0 }, duration: s.dur, ease: s.ease }, s.at);
      });

      /* ================= beat 2: sans line, plate darkens ================= */
      tl.to("#sans", { y: 0, opacity: 1, duration: 0.8, ease: "power3.out" }, 4.0);
      tl.to("#sans", { y: -14, opacity: 0, duration: 0.4, ease: "power2.in" }, 6.5);
      tl.to("#dim", { opacity: 0.52, duration: 1.2, ease: "power2.inOut" }, 6.0);

      /* ================= script moves up, lockup settles ================= */
      tl.to("#scriptw", { y: -60, scale: 0.8, duration: 1.0, ease: "power3.inOut" }, 6.6);

      tl.to("#mk", { scale: 1, opacity: 1, duration: 0.7, ease: "expo.out" }, 7.3);
      tl.set("#mw", { opacity: 1 }, 7.45);
      tl.to("#mw", { attr: { "stroke-dashoffset": 0 }, duration: 0.5, ease: "power2.inOut" }, 7.45);
      tl.to("#wm", { y: 0, opacity: 1, duration: 0.7, ease: "expo.out" }, 7.45);
      tl.to("#tag", { y: 0, opacity: 1, duration: 0.55, ease: "power3.out" }, 7.9);

      tl.set({}, {}, 11);
      window.__timelines = window.__timelines || {};
      window.__timelines["main"] = tl;
    </script>
  </body>
</html>
```
