# Crash Zoom

Motionboard shot name: Crash Zoom Landing

A wide frame shows a laptop running a build with the line UP TO 18× FASTER BUILDS below it. The camera punches into the 18× in 0.4s and lands sharp with a shake on a 450px number and 41m 02s → 2m 17s, punches through it onto FASTER BUILDS, then crashes back out to the laptop, now showing Passed, before the Torrent lockup.

- Position in a launch film: Product reveal
- Slug: crash-zoom
- Preview video: https://media.motionboard.app/crash-zoom.mp4
- Recipe page: https://motionboard.app/recipes/crash-zoom/
- 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 `crash-zoom`. 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 10.5s. Laptop rises 0.1–1.1s; stat line appears 0.55–1.65s; six pipeline stages fill 0.8–2.35s; crash 1 2.50–2.90s (0.40s, arrival at 2.77s) and a hold on 18× to 3.95s (1.2s); crash 2 3.95–4.35s (arrival at 4.22s) and a hold on FASTER BUILDS to 5.50s (1.3s); crash 3, the crash out, 5.50–5.90s (arrival at 5.77s); the wide frame holds to 7.1s and fades 7.1–7.5s; lockup 7.25–8.3s, then still to the end (2.2s) |
| Easing | Each crash is one progress value u from 0 to 1 over 0.40s: power4.inOut over the first 68% (0.27s) up to 104.5% of the move, then a smoothstep back to 100% over the last 32% (0.13s). Trailing copy k uses the same curve at u − k × 0.055, so the copies trail the main layer and merge at the landing. Fades inside a move use smoothstep; text fade-ins after a landing use power2.out (0.45–0.5s); the laptop rise, stat line and lockup use expo.out; the wide-frame drift is sine.inOut; the shake is linear, one frame per step |
| Camera | Locked camera with three zoom cuts. Crash 1: the wide layer scales 1→3 about the 18×, and the 450px land layer scales 0.333→1 from the position of the 18×, so both share one path; the wide layer fades out over 45–90% of the move and the land layer fades in over 0–35%. Crash 2: land 1 scales 1→3.6 and fades over 30–80% while the words scale 0.38→1 and fade in over 5–45%. Crash 3: the words scale 1→0.36 and fade over 0–60% with trailing copies; the wide frame scales 1.6→1 underneath with no copies and fades in over 20–80%. Blur: seven copies at opacity 0.50 falling to 0.07, multiplied by sin of the first 78% of the move, plus a CSS blur peaking at 16px (18px on land 1 in crash 2). Shake after each landing: five 1/30s steps at (−18, 11) −0.4°, (14, −9) 0.32°, (−8, 6) −0.16°, (3, −2) 0.05°, then (0, 0) |
| Subject | A silver-grey laptop drawn in CSS at full size: lid 1280x730px, screen 1244x694px, base 1450px wide (75% of the frame width), lid top at y 30px. All text on the screen is 26px or larger. The screen shows a Torrent build pipeline in six rows 84px apart (stage name 30px, sub-line 26px, time 30px, and the progress bar on its own line under the sub-line, so it never crosses text): Checkout 4s, Install 18s, Lint & types 9s, Test 52s, Build 38s, Deploy preview 16s. Beside them, a status chip (Running, later Passed, 26px) and a Build time card with an 84px figure and a bar chart of eight builds, seven grey and the newest in the accent. Stat line under the laptop (top at y 850px): UP TO (40px, letter spacing 0.2em), 18× (150px, Inter 800) and FASTER BUILDS (96px, Inter 800), 34px apart. Land 1: UP TO 46px, 18× 450px, 41m 02s → 2m 17s at 64px and a 30px caption. Land 2: FASTER and BUILDS at 300px on two 258px lines, BUILDS in the accent with a soft glow, and a 36px line below |
| Sync | Each landing and its shake start on the same frame (2.77s, 4.22s, 5.77s). After landing 1 the glow starts at 2.62s, then UP TO at 2.95s, the 41m 02s → 2m 17s line at 3.08s and the caption at 3.22s, so the number is read first and its proof second. The status chip, the build-time number and the last stage change while the wide frame is hidden (4.5–4.7s), so the second visit shows the finished build: Passed, 2m 17s, ↓ 94%. 41m 02s divided by 2m 17s is 18, the number in the stat line |
| Style | Background `#09090b`, one accent cyan `#38d4ff`, Inter throughout (weights 600–800); the number and the words use a white gradient (18× from white to #a6ebff, words from white to #9a9aa6); a soft cyan glow behind each landing and behind the laptop; grain at 7% opacity and a vignette reaching 60% at the edges |

## Why it works

The move has three parts and all three have to be on screen: speed, blur and a hard landing. Each crash lasts 0.40s and is split at 68%: the first 0.27s is a power4.inOut punch that reaches 104.5% of the target, and the last 0.13s settles back to 100%, so the frame arrives with a small overshoot. The blur is built from seven trailing copies of the layer, each lagging the main layer by 0.055 of the move, plus a CSS blur that peaks mid-move, so the streak follows the real path of the zoom and collapses to a sharp frame the moment the motion stops. A 5-frame camera shake starts on the arrival frame and sells the impact. Each zoom lands on something the eye is already reading: the 18× in the stat line scales ×3 from its own position and a 450px copy takes over on the same path, so there is no jump. Every landing holds 1.2–1.3s so the number and the words can be read. The wide frame is calm on purpose, with a slow 3% drift and a build filling, because the first punch only reads against stillness. The crash out blurs one zoom: only the words get trailing copies and the wide frame blurs in underneath. One accent, cyan #38d4ff, on a near-black frame.

## Prompt

> Build a 10.5-second, 1920x1080, 30 fps dark product film called Crash Zoom Landing for a fictional product, Torrent (a build and CI tool). Background #09090b, one accent color cyan #38d4ff, font Inter (weights 600–800). The film has three full-frame layers on one GSAP timeline: a wide frame W, a land layer L1 and a land layer L2. W is a CSS laptop (lid 1280x730px at y 30px, screen 1244x694px, base 1450x28px, drawn at full size so it fills 75% of the frame width, with all screen text 26px or larger) showing a Torrent pipeline in six rows 84px apart (name 30px, sub-line 26px, time 30px, the progress bar on its own line under the sub-line so it never crosses text): Checkout 4s, Install 18s, Lint & types 9s, Test 52s, Build 38s, Deploy preview 16s, whose bars fill from 0.8 to 2.35s, plus a Running chip and a Build time card with an 84px figure and a bar chart. Under the laptop (top at y 850px) sits the stat line UP TO (40px) 18× (150px, Inter 800) FASTER BUILDS (96px). L1 holds UP TO (46px), 18× at 450px, 41m 02s → 2m 17s at 64px and a 30px caption. L2 holds FASTER and BUILDS at 300px on two lines, BUILDS in the accent, and a 36px line under them.
>
> Zoom blur: give every layer seven trailing copies (clone the layer's innerHTML into seven absolutely positioned divs behind it and re-copy on each update). Drive each crash with one proxy tween whose progress u goes 0 to 1 over 0.40s with ease none and whose onUpdate computes everything: e(u) = 1.045 × power4.inOut(u / 0.68) for u < 0.68, then 1.045 settling to 1 with a smoothstep over the rest. A layer's transform is translate(x, y) scale(s) about the frame centre, interpolated by e between its start and end pose. Copy k (1 to 7) uses e(u − k × 0.055), so the copies trail the main layer and merge when the motion stops. Copy opacity is 0.5 × (1 − (k − 1) / 7) × sin(π × min(u / 0.78, 1)). Add a CSS blur on the layer of 16px × sin(...)^1.2 and switch the filter off below 0.2px.
>
> Crashes: crash 1 at 2.50s, W scales 1 → 3 about the 18× while L1 scales 1/3 → 1 from the position of the 18×; W fades out over 45–90% of the move and L1 fades in over 0–35%. Crash 2 at 3.95s, L1 scales 1 → 3.6 and fades over 30–80% while L2 scales 0.38 → 1 and fades in over 5–45%. Crash 3 at 5.50s (the crash out), L2 scales 1 → 0.36 with copies and fades over 0–60%, and W scales 1.6 → 1 underneath with its own 14px blur and no copies, fading in over 20–80%. After each arrival (68% of the move) shake the layers in five 1/30s linear steps: (−18, 11) −0.4°, (14, −9) 0.32°, (−8, 6) −0.16°, (3, −2) 0.05°, (0, 0). Hold each landing 1.2s or more. Switch the chip to Passed and the number to 2m 17s while W is hidden (4.5–4.7s). From 7.1s fade W out and build the lockup: three cyan chevrons, Torrent (150px, Inter 700) and Builds that land before you blink. (38px), settled by 8.3s and still to the end. Add 7% grain and a vignette. Use no CSS animations, no random and no Date; every value comes from the timeline.

## Often confused with

- [Dolly Zoom Effect](https://motionboard.app/r/dolly-zoom-effect.md): Dolly Zoom backs the camera away while the lens zooms in, so the subject keeps its size and the space behind it changes shape; Crash Zoom changes the framing itself in 0.40s, with trailing blur copies and a shake, and lands on a new subject.
- [Zoom-to-Cursor Effect](https://motionboard.app/r/zoom-to-cursor.md): Zoom to Cursor pushes to a UI element in 0.4–0.8s and holds for a click or an input before pulling back; Crash Zoom punches through numbers and words with a streaked blur and a camera shake, and each landing is a new layer.

## Source files

Runnable HyperFrames project, 3 files.

- https://motionboard.app/source/crash-zoom/hyperframes.json (318 B)
- https://motionboard.app/source/crash-zoom/index.html (24.4 KB)
- https://motionboard.app/source/crash-zoom/package.json (299 B)

Download all of them:

```sh
curl -fsSL --create-dirs -o "crash-zoom/hyperframes.json" "https://motionboard.app/source/crash-zoom/hyperframes.json"
curl -fsSL --create-dirs -o "crash-zoom/index.html" "https://motionboard.app/source/crash-zoom/index.html"
curl -fsSL --create-dirs -o "crash-zoom/package.json" "https://motionboard.app/source/crash-zoom/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 {
        --base: #09090b;
        --accent: #38d4ff;
        --ink: #f4f4f5;
        --mut: #8e8e98;
        --soft: #c4c4cd;
        --panel: #111115;
        --line: rgba(255, 255, 255, 0.08);
        --font-ui: "Inter", -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
        --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
      }
      * { margin: 0; padding: 0; box-sizing: border-box; }
      html, body { width: 1920px; height: 1080px; overflow: hidden; background: var(--base); }
      #root { position: relative; width: 1920px; height: 1080px; overflow: hidden; background: var(--base); font-family: var(--font-ui); color: var(--ink); -webkit-font-smoothing: antialiased; }
      .full { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }

      /* ---------- background ---------- */
      .glow { position: absolute; opacity: 0; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(56,212,255,0.20) 0%, rgba(56,212,255,0.07) 45%, rgba(56,212,255,0) 72%); }
      #glowBg { left: 360px; top: 120px; width: 1200px; height: 800px; }
      #fx { pointer-events: none; z-index: 8; }
      #fx .vig { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; background: radial-gradient(ellipse 85% 78% at 50% 48%, rgba(0,0,0,0) 54%, rgba(0,0,0,0.6) 100%); }
      #fx .grain { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; opacity: 0.07; mix-blend-mode: overlay; }

      /* ---------- zoom stacks (main layer plus trailing copies for zoom blur) ---------- */
      .zs { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
      .zc, .zg { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 960px 540px; }
      .zg { opacity: 0; }

      .gn { background: linear-gradient(180deg, #ffffff 24%, #a6ebff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
      .gw { background: linear-gradient(180deg, #ffffff 30%, #9a9aa6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

      /* ---------- scene W: wide frame ---------- */
      #lap { opacity: 0; }
      #wInner { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 960px 540px; }
      .lid { position: absolute; left: 320px; top: 30px; width: 1280px; height: 730px; border-radius: 36px 36px 12px 12px; background: linear-gradient(180deg, #38383f 0%, #1b1b20 100%); box-shadow: 0 0 0 1px rgba(255,255,255,0.10), 0 40px 120px rgba(0,0,0,0.7), 0 0 140px rgba(56,212,255,0.10); }
      .cam { position: absolute; left: 956px; top: 33px; width: 8px; height: 8px; border-radius: 50%; background: #0a0a0d; box-shadow: 0 0 0 1px rgba(255,255,255,0.08); }
      .base { position: absolute; left: 235px; top: 760px; width: 1450px; height: 28px; border-radius: 4px 4px 34px 34px; background: linear-gradient(180deg, #52525b 0%, #2a2a30 38%, #16161a 100%); box-shadow: 0 30px 80px rgba(0,0,0,0.8); }
      .notch { position: absolute; left: 810px; top: 760px; width: 300px; height: 9px; border-radius: 0 0 11px 11px; background: #0e0e11; }
      .scr { position: absolute; left: 338px; top: 48px; width: 1244px; height: 694px; border-radius: 18px; background: #0a0a0d; overflow: hidden; }

      .sh { position: absolute; left: 0; top: 0; width: 1244px; height: 76px; border-bottom: 1px solid var(--line); background: #0c0c10; }
      .sh .brand { position: absolute; left: 32px; top: 18px; display: flex; align-items: center; gap: 14px; font-size: 32px; font-weight: 700; letter-spacing: -0.01em; }
      .sh .brand svg { width: 40px; height: 40px; }
      .sh .crumb { position: absolute; left: 262px; top: 22px; font-size: 26px; color: var(--mut); white-space: nowrap; }
      .sh .crumb b { color: var(--soft); font-weight: 600; }
      .chip { position: absolute; right: 28px; top: 13px; height: 50px; padding: 0 24px; border-radius: 999px; display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 650; color: var(--accent); background: rgba(56,212,255,0.12); opacity: 0; }
      .chip i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); display: block; }
      .chip.ok { background: rgba(56,212,255,0.18); }
      #chipR { opacity: 1; }

      .ph { position: absolute; left: 32px; top: 92px; font-size: 26px; font-weight: 600; letter-spacing: 0.06em; color: var(--mut); text-transform: uppercase; }
      #stages { position: absolute; left: 32px; top: 136px; width: 768px; height: 504px; }
      .sr { position: absolute; left: 0; width: 768px; height: 84px; }
      .sr .sd { position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); opacity: 0.18; display: block; }
      .sr b { position: absolute; left: 44px; top: 0; line-height: 34px; font-size: 30px; font-weight: 650; letter-spacing: -0.005em; }
      .sr .ss { position: absolute; left: 44px; top: 36px; line-height: 30px; font-size: 26px; color: var(--mut); }
      .sr em { position: absolute; right: 0; top: 2px; font-style: normal; font-size: 30px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--soft); }
      .sbar { position: absolute; left: 44px; right: 0; bottom: 8px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.07); overflow: hidden; }
      .sf { position: absolute; left: 0; top: 0; width: 0%; height: 100%; background: var(--accent); }
      #meta { position: absolute; left: 32px; top: 648px; font-size: 26px; color: var(--mut); }

      .bc { position: absolute; left: 830px; top: 96px; width: 382px; height: 520px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
      .bc .ck { position: absolute; left: 24px; top: 22px; font-size: 26px; font-weight: 600; letter-spacing: 0.06em; color: var(--mut); text-transform: uppercase; }
      .bc .bn { position: absolute; left: 24px; top: 58px; font-size: 84px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 90px; }
      .bc .bl { position: absolute; left: 24px; top: 152px; font-size: 26px; color: var(--mut); white-space: nowrap; }
      .bc .tag { position: absolute; right: 20px; top: 18px; height: 40px; padding: 0 14px; border-radius: 999px; display: flex; align-items: center; font-size: 26px; font-weight: 700; color: var(--accent); background: rgba(56,212,255,0.14); opacity: 0; }
      #bars { position: absolute; left: 24px; top: 208px; width: 340px; height: 230px; }
      #bars i { position: absolute; bottom: 0; width: 28px; height: 0px; border-radius: 5px 5px 0 0; background: rgba(255,255,255,0.15); display: block; }
      #bars .cur { background: var(--accent); }
      .bx { position: absolute; top: 458px; font-size: 26px; color: var(--mut); font-variant-numeric: tabular-nums; }
      .bg2 { position: absolute; left: 24px; right: 24px; top: 446px; height: 1px; background: rgba(255,255,255,0.08); }
      #nB, #lB { opacity: 0; }

      #stat { position: absolute; left: 0; top: 850px; width: 1920px; display: flex; justify-content: center; align-items: baseline; gap: 34px; white-space: nowrap; }
      #wUp { opacity: 0; font-size: 40px; font-weight: 700; letter-spacing: 0.2em; color: var(--soft); text-transform: uppercase; line-height: 1; }
      #w18 { opacity: 0; font-size: 150px; font-weight: 800; letter-spacing: -0.04em; line-height: 150px; }
      #wFb { opacity: 0; font-size: 96px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }

      /* ---------- scene L1: land on the number ---------- */
      #glow1 { left: 360px; top: 190px; width: 1200px; height: 700px; }
      #k1 { opacity: 0; position: absolute; left: 0; top: 168px; width: 1920px; text-align: center; font-size: 46px; font-weight: 700; letter-spacing: 0.3em; padding-left: 0.3em; color: var(--soft); text-transform: uppercase; }
      #l18 { position: absolute; left: 0; top: 315px; width: 1920px; text-align: center; font-size: 450px; font-weight: 800; letter-spacing: -0.04em; line-height: 450px; }
      #lab1 { opacity: 0; position: absolute; left: 0; top: 806px; width: 1920px; text-align: center; font-size: 64px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
      #lab1 span { color: var(--mut); font-weight: 500; }
      #lab1 b { color: var(--accent); font-weight: 700; }
      #sub1 { opacity: 0; position: absolute; left: 0; top: 892px; width: 1920px; text-align: center; font-size: 30px; font-weight: 500; color: var(--mut); }

      /* ---------- scene L2: land on the words ---------- */
      #glow2 { left: 310px; top: 190px; width: 1300px; height: 700px; }
      .wl { position: absolute; left: 0; width: 1920px; text-align: center; font-size: 300px; font-weight: 800; letter-spacing: -0.045em; line-height: 258px; white-space: nowrap; }
      #wl1 { top: 282px; }
      #wl2 { top: 540px; color: var(--accent); text-shadow: 0 0 80px rgba(56,212,255,0.35); }
      #lab2 { opacity: 0; position: absolute; left: 0; top: 868px; width: 1920px; text-align: center; font-size: 36px; font-weight: 500; color: var(--mut); letter-spacing: 0.01em; }
      #lab2 b { color: var(--soft); font-weight: 600; }

      /* ---------- lockup ---------- */
      #lk { display: flex; flex-direction: column; align-items: center; justify-content: center; transform-origin: 960px 540px; }
      .lrow { display: flex; align-items: center; gap: 36px; }
      #lmk { width: 150px; height: 150px; overflow: visible; }
      #lmk polyline { opacity: 0; fill: none; stroke: var(--accent); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
      .wmask { overflow: hidden; height: 190px; padding: 0 6px; }
      #wm { display: block; font-size: 150px; line-height: 190px; font-weight: 700; letter-spacing: -0.045em; color: var(--ink); }
      #tag { opacity: 0; margin-top: 26px; font-size: 38px; font-weight: 500; letter-spacing: -0.005em; color: var(--mut); }
      #tag b { font-weight: 500; color: var(--soft); }
    </style>
  </head>
  <body>
    <div id="root" data-composition-id="main" data-start="0" data-duration="10.5" data-width="1920" data-height="1080">

      <div id="bg" class="clip full" data-start="0" data-duration="10.5" data-track-index="0" data-layout-allow-overlap>
        <div class="glow" id="glowBg"></div>
      </div>

      <!-- W: wide calm frame -->
      <div id="sceneW" class="clip full" data-start="0" data-duration="7.7" data-track-index="1" data-layout-allow-overlap>
        <div class="zs" id="zsW">
          <div class="zc" id="zcW">
            <div id="wInner">
              <div id="lap">
                <div class="lid"></div>
                <div class="cam"></div>
                <div class="scr">
                  <div class="sh">
                    <div class="brand"><svg viewBox="0 0 100 100"><polyline points="14,22 40,50 14,78" fill="none" stroke="#38d4ff" stroke-width="12" stroke-linecap="round" stroke-linejoin="round" opacity="0.4"/><polyline points="38,22 64,50 38,78" fill="none" stroke="#38d4ff" stroke-width="12" stroke-linecap="round" stroke-linejoin="round" opacity="0.7"/><polyline points="62,22 88,50 62,78" fill="none" stroke="#38d4ff" stroke-width="12" stroke-linecap="round" stroke-linejoin="round"/></svg>Torrent</div>
                    <div class="crumb">acme / <b>api-gateway</b> / build #4821</div>
                    <div class="chip" id="chipR"><i></i>Running</div>
                    <div class="chip ok" id="chipP"><i></i>Passed</div>
                  </div>
                  <div class="ph">Pipeline &middot; main &middot; 3f9c2e1</div>
                  <div id="stages"></div>
                  <div id="meta">6 stages &middot; 4 test shards &middot; cache hit 96%</div>
                  <div class="bc">
                    <div class="ck">Build time</div>
                    <div class="tag" id="tagB">&#8595; 94%</div>
                    <div class="bn" id="nA">1m 48s</div>
                    <div class="bn" id="nB">2m 17s</div>
                    <div class="bl" id="lA">elapsed &middot; running</div>
                    <div class="bl" id="lB">passed &middot; was 41m 02s</div>
                    <div id="bars"></div>
                    <div class="bg2"></div>
                    <div class="bx" style="left:24px">#4814</div>
                    <div class="bx" style="right:24px">#4821</div>
                  </div>
                </div>
                <div class="base"></div>
                <div class="notch"></div>
              </div>
              <div id="stat">
                <span id="wUp">Up to</span>
                <span id="w18" class="gn">18&times;</span>
                <span id="wFb" class="gw">FASTER BUILDS</span>
              </div>
            </div>
          </div>
        </div>
      </div>

      <!-- L1: land on 18x -->
      <div id="sceneL1" class="clip full" data-start="2.3" data-duration="2.3" data-track-index="2" data-layout-allow-overlap>
        <div class="zs" id="zsL1">
          <div class="zc" id="zcL1">
            <div class="glow" id="glow1"></div>
            <div id="k1">Up to</div>
            <div id="l18" class="gn">18&times;</div>
            <div id="lab1"><span>41m 02s</span> &nbsp;&#8594;&nbsp; <b>2m 17s</b></div>
            <div id="sub1">median build time &middot; api-gateway &middot; last 30 days</div>
          </div>
        </div>
      </div>

      <!-- L2: land on the words -->
      <div id="sceneL2" class="clip full" data-start="3.8" data-duration="2.2" data-track-index="3" data-layout-allow-overlap>
        <div class="zs" id="zsL2">
          <div class="zc" id="zcL2">
            <div class="glow" id="glow2"></div>
            <div class="wl gw" id="wl1">FASTER</div>
            <div class="wl" id="wl2">BUILDS</div>
            <div id="lab2"><b>Cached layers.</b> Sharded tests. Zero queue.</div>
          </div>
        </div>
      </div>

      <div id="lock" class="clip full" data-start="7.1" data-duration="3.4" data-track-index="4" data-layout-allow-overlap>
        <div id="lk" class="full">
          <div class="lrow">
            <svg id="lmk" viewBox="0 0 100 100"><polyline id="lc1" points="14,22 40,50 14,78" opacity="0.4"/><polyline id="lc2" points="38,22 64,50 38,78" opacity="0.7"/><polyline id="lc3" points="62,22 88,50 62,78"/></svg>
            <div class="wmask"><span id="wm">Torrent</span></div>
          </div>
          <div id="tag">Builds that <b>land before you blink.</b></div>
        </div>
      </div>

      <div id="fx" class="clip full" data-start="0" data-duration="10.5" data-track-index="5" data-layout-ignore>
        <div class="vig"></div>
        <svg class="grain" viewBox="0 0 1920 1080" preserveAspectRatio="none"><filter id="nz"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" seed="7"/><feColorMatrix type="saturate" values="0"/></filter><rect width="1920" height="1080" filter="url(#nz)"/></svg>
      </div>
    </div>

    <script>
      const EXPO = "expo.out";
      const clamp = (x, a, b) => Math.min(b, Math.max(a, x));
      const ss = (x) => { x = clamp(x, 0, 1); return x * x * (3 - 2 * x); };

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

      /* ---------- build the screen content ---------- */
      const STAGES = [
        ["Checkout", "git &middot; shallow clone", "4s"],
        ["Install", "npm ci &middot; cache hit", "18s"],
        ["Lint &amp; types", "eslint &middot; tsc", "9s"],
        ["Test", "4 shards &middot; 1,284 tests", "52s"],
        ["Build", "bundle &middot; 6 targets", "38s"],
        ["Deploy preview", "edge &middot; 3 regions", "16s"],
      ];
      document.getElementById("stages").innerHTML = STAGES.map((s, i) =>
        '<div class="sr" style="top:' + i * 84 + 'px"><i class="sd" id="sd' + i + '"></i><b>' + s[0] + '</b><span class="ss">' + s[1] + '</span><em>' + s[2] + '</em><div class="sbar"><div class="sf" id="sf' + i + '"></div></div></div>'
      ).join("");

      const BAR_H = [168, 180, 190, 176, 184, 180, 172, 12];
      let bh = "";
      BAR_H.forEach((h, i) => {
        bh += '<i id="bb' + i + '"' + (i === 7 ? ' class="cur"' : "") + ' style="left:' + (i * 42 + 4) + 'px"></i>';
      });
      document.getElementById("bars").innerHTML = bh;

      /* ---------- zoom stacks ---------- */
      const NG = 7;       // trailing copies
      const GD = 0.055;   // time lag between copies, in move progress
      function mkLayer(id) {
        const zs = document.getElementById("zs" + id);
        const zc = document.getElementById("zc" + id);
        const ghosts = [];
        for (let i = 0; i < NG; i++) {
          const g = document.createElement("div");
          g.className = "zg";
          zs.insertBefore(g, zs.firstChild);
          ghosts.push(g);
        }
        return { zs, zc, ghosts, html: null };
      }
      const LW = mkLayer("W"), L1 = mkLayer("L1"), L2 = mkLayer("L2");

      function sync(L) {
        const h = L.zc.innerHTML;
        if (h !== L.html) { L.html = h; L.ghosts.forEach((g) => { g.innerHTML = h; }); }
      }
      const tf = (p) => "translate(" + p.x.toFixed(2) + "px," + p.y.toFixed(2) + "px) scale(" + p.s.toFixed(4) + ")";
      function setLayer(L, p, op, blur) {
        L.zc.style.transform = tf(p);
        L.zs.style.opacity = op.toFixed(3);
        L.zs.style.filter = blur > 0.2 ? "blur(" + blur.toFixed(2) + "px)" : "none";
      }

      // punch ease: fast acceleration, hard landing with a small overshoot, then a short settle
      const PUNCH = gsap.parseEase("power4.inOut");
      const OV = 1.045, SPLIT = 0.68;
      function E(u) {
        if (u <= 0) return 0;
        if (u >= 1) return 1;
        if (u < SPLIT) return OV * PUNCH(u / SPLIT);
        const w = (u - SPLIT) / (1 - SPLIT);
        return OV - (OV - 1) * (w * w * (3 - 2 * w));
      }

      function drive(part, u) {
        const A = part.A, B = part.B, L = part.L;
        const at = (e) => ({ s: A.s + (B.s - A.s) * e, x: A.x + (B.x - A.x) * e, y: A.y + (B.y - A.y) * e });
        const bell = Math.sin(Math.PI * clamp(u / 0.78, 0, 1));
        const e = E(u);
        setLayer(L, at(e), part.op(u), part.blur * Math.pow(bell, 1.2));
        sync(L);
        L.ghosts.forEach((g, k) => {
          const i = k + 1;
          g.style.transform = tf(at(E(Math.max(0, u - i * GD))));
          g.style.opacity = part.noGhost ? "0" : (0.5 * (1 - k / NG) * bell).toFixed(3);
        });
      }
      function crash(at, dur, parts) {
        const o = { u: 0 };
        tl.fromTo(o, { u: 0 }, {
          u: 1, duration: dur, ease: "none", immediateRender: false,
          onUpdate: () => parts.forEach((p) => drive(p, o.u)),
        }, at);
      }
      // 2-3 frame camera shake after a landing
      function shake(at) {
        const P = [[-18, 11, -0.4], [14, -9, 0.32], [-8, 6, -0.16], [3, -2, 0.05], [0, 0, 0]];
        P.forEach((p, i) => tl.to(".zs", { x: p[0], y: p[1], rotation: p[2], duration: 1 / 30, ease: "none" }, at + i / 30));
      }

      /* ---------- anchor points of the stat line (for matching zooms) ---------- */
      const statEl = document.getElementById("stat");
      function mid(el, fb) {
        if (!el.offsetWidth) return fb;
        return { x: statEl.offsetLeft + el.offsetLeft + el.offsetWidth / 2, y: statEl.offsetTop + el.offsetTop + el.offsetHeight / 2 };
      }
      const P0 = mid(document.getElementById("w18"), { x: 640, y: 925 });
      const P1 = mid(document.getElementById("wFb"), { x: 1200, y: 925 });
      const C = { x: 960, y: 540 };

      /* ---------- initial states ---------- */
      const S1 = 450 / 150; // 18x: 150px in the wide frame -> 450px on landing
      const S3 = 3.0;
      const idle = { s: 1, x: 0, y: 0 };
      setLayer(LW, idle, 1, 0);
      setLayer(L1, { s: 1 / S1, x: P0.x - C.x, y: P0.y - C.y }, 0, 0);
      setLayer(L2, { s: 0.38, x: 0, y: 0 }, 0, 0);
      gsap.set(".zs", { x: 0, y: 0, rotation: 0 });
      gsap.set("#lap", { y: 40 });
      gsap.set("#wUp, #w18, #wFb", { y: 26 });
      gsap.set("#lk", { scale: 1.14 });
      gsap.set("#wm", { yPercent: 105 });
      gsap.set("#lc1, #lc2, #lc3", { x: -90 });

      /* ---------- 0.0-2.5: wide, calm frame, the build runs ---------- */
      tl.to("#glowBg", { opacity: 0.85, duration: 1.4, ease: "power2.out" }, 0.1);
      tl.to("#lap", { opacity: 1, y: 0, duration: 1.0, ease: EXPO }, 0.1);
      tl.to("#wUp", { opacity: 1, y: 0, duration: 0.9, ease: EXPO }, 0.55);
      tl.to("#w18", { opacity: 1, y: 0, duration: 0.9, ease: EXPO }, 0.65);
      tl.to("#wFb", { opacity: 1, y: 0, duration: 0.9, ease: EXPO }, 0.75);
      tl.to("#wInner", { scale: 1.03, duration: 2.5, ease: "sine.inOut" }, 0);

      const FILL = [[0.8, 0.3], [1.0, 0.4], [1.25, 0.35], [1.4, 0.65], [1.85, 0.5]];
      FILL.forEach((f, i) => {
        tl.to("#sf" + i, { width: "100%", duration: f[1], ease: "power2.out" }, f[0]);
        tl.to("#sd" + i, { opacity: 1, duration: 0.2, ease: "power1.out" }, f[0] + f[1] - 0.1);
      });
      tl.to("#sf5", { width: "55%", duration: 0.5, ease: "power2.out" }, 2.1);
      tl.to("#sd5", { opacity: 0.6, duration: 0.2, ease: "power1.out" }, 2.1);
      for (let i = 0; i < 8; i++) tl.to("#bb" + i, { height: BAR_H[i], duration: 0.8, ease: EXPO }, 1.3 + i * 0.07);

      /* ---------- crash 1: punch into the number (2.50-2.90) ---------- */
      const D = 0.4;
      crash(2.5, D, [
        { L: LW, A: idle, B: { s: S1, x: -S1 * (P0.x - C.x), y: -S1 * (P0.y - C.y) }, blur: 16, op: (u) => 1 - ss((u - 0.45) / 0.45) },
        { L: L1, A: { s: 1 / S1, x: P0.x - C.x, y: P0.y - C.y }, B: { s: 1, x: 0, y: 0 }, blur: 16, op: (u) => ss(u / 0.35) },
      ]);
      shake(2.5 + 0.68 * D);
      // L1 content
      tl.to("#glow1", { opacity: 0.9, duration: 0.25, ease: "power2.out" }, 2.62);
      tl.to("#glow1", { opacity: 0.45, duration: 1.0, ease: "power2.inOut" }, 2.9);
      tl.to("#k1", { opacity: 1, duration: 0.5, ease: "power2.out" }, 2.95);
      tl.to("#lab1", { opacity: 1, duration: 0.45, ease: "power2.out" }, 3.08);
      tl.to("#sub1", { opacity: 1, duration: 0.45, ease: "power2.out" }, 3.22);

      // while W is hidden: reset drift, finish the build, swap the status
      tl.to("#wInner", { scale: 1, duration: 0.05, ease: "none" }, 3.2);
      tl.to("#sf5", { width: "100%", duration: 0.3, ease: "power2.out" }, 4.5);
      tl.to("#sd5", { opacity: 1, duration: 0.2 }, 4.7);
      tl.to("#chipR", { opacity: 0, duration: 0.15 }, 4.55);
      tl.to("#chipP", { opacity: 1, duration: 0.15 }, 4.55);
      tl.to("#nA, #lA", { opacity: 0, duration: 0.15 }, 4.55);
      tl.to("#nB, #lB, #tagB", { opacity: 1, duration: 0.15 }, 4.55);

      /* ---------- crash 2: punch through the number into the words (3.95-4.35) ---------- */
      crash(3.95, D, [
        { L: L1, A: { s: 1, x: 0, y: 0 }, B: { s: 3.6, x: 0, y: 0 }, blur: 18, op: (u) => 1 - ss((u - 0.3) / 0.5) },
        { L: L2, A: { s: 0.38, x: 0, y: 0 }, B: { s: 1, x: 0, y: 0 }, blur: 16, op: (u) => ss((u - 0.05) / 0.4) },
      ]);
      shake(3.95 + 0.68 * D);
      tl.to("#glow2", { opacity: 0.9, duration: 0.25, ease: "power2.out" }, 4.1);
      tl.to("#glow2", { opacity: 0.45, duration: 1.0, ease: "power2.inOut" }, 4.4);
      tl.to("#lab2", { opacity: 1, duration: 0.45, ease: "power2.out" }, 4.55);

      /* ---------- crash 3: crash out, back to the wide frame (5.50-5.90) ---------- */
      crash(5.5, D, [
        { L: L2, A: { s: 1, x: 0, y: 0 }, B: { s: 0.36, x: 0, y: 0 }, blur: 16, op: (u) => 1 - ss(u / 0.6) },
        { L: LW, A: { s: 1.6, x: 0, y: 0 }, B: idle, blur: 14, noGhost: true, op: (u) => ss((u - 0.2) / 0.6) },
      ]);
      shake(5.5 + 0.68 * D);
      tl.to("#wInner", { scale: 1.03, duration: 1.8, ease: "sine.inOut" }, 5.5);

      /* ---------- lockup ---------- */
      tl.to("#wInner", { opacity: 0, duration: 0.4, ease: "power2.in" }, 7.1);
      tl.to("#glowBg", { opacity: 0.6, duration: 1.0, ease: "power2.inOut" }, 7.2);
      tl.to("#lk", { scale: 1, duration: 0.8, ease: EXPO }, 7.25);
      tl.to("#lc1", { x: 0, opacity: 0.4, duration: 0.7, ease: EXPO }, 7.3);
      tl.to("#lc2", { x: 0, opacity: 0.7, duration: 0.7, ease: EXPO }, 7.38);
      tl.to("#lc3", { x: 0, opacity: 1, duration: 0.7, ease: EXPO }, 7.46);
      tl.to("#wm", { yPercent: 0, duration: 0.8, ease: EXPO }, 7.45);
      tl.to("#tag", { opacity: 1, duration: 0.55, ease: "power2.out" }, 7.75);

      tl.set({}, {}, 10.5);

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