# App Icon Animation

Motionboard shot name: Cropped App Icon

A large glossy calculator icon rises from below and settles with a third of it cropped by the left edge, drifting slowly while a light band sweeps its face. A kicker and a two-line title fade in beside it, then the icon slides to centre and shrinks into the Tally lockup.

- Position in a launch film: Ending
- Slug: app-icon-animation
- Preview video: https://media.motionboard.app/app-icon-crop.mp4
- Recipe page: https://motionboard.app/recipes/app-icon-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 `app-icon-crop`. 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. Icon rises 0.1–2.1s (2.0s); reflection band slides 0.1–4.3s; kicker rises at 1.5s (0.9s), title line 1 at 1.75s and line 2 at 1.95s (1.0s each); sweep 1 1.5–2.9s, sweep 2 3.2–4.4s; drift 2.1–4.4s; copy fades out 4.3–4.85s; icon slides to centre and levels 4.3–5.5s (1.2s); icon moves into the lockup slot 5.7–7.0s (1.3s) while the wordmark is uncovered; tagline rises at 6.6s (0.9s); last sweep 6.6–7.9s; lockup holds still from 7.9s to the end (2.6s) |
| Easing | Rise, text rise and the move into the lockup `expo.out`; slide to centre and levelling power3.inOut; sweeps power2.inOut; tilt drift and reflection band linear (none); copy exit power2.in |
| Camera | Locked flat camera. The motion is the icon's own 3D tilt inside a 1800px perspective: it starts at rotateZ -16°, rotateX 30° and rotateY -32° below the frame, settles to -4°, -5° and -17° at 2.1s, drifts to 3°, 4° and -9° by 4.4s, then levels to 0° while it slides to centre |
| Subject | Tally icon 760x760px, rim radius 170px with a body inset 14px (radius 156px), a 3px dark gap ring, eight slabs 6px apart behind it (48px of depth), keys on a 558x602px layer 26px in front of the body, a 732x330px gloss at 30px and a 230x980px specular band skewed -20°. Display 558x140px (radius 32px) showing (48 + 80) × 10 in 30px and 1,280 in 84px with an 8x66px mint cursor; keys 170x130px (radius 38px, gap 24px) in a 3x3 grid: light row − + ×, mid row ÷ % ±, then 0 and a mint = key that spans two columns. At rest the icon centre is at (165, 540), so 215px (28%) is off frame. Kicker NEW EXTENSION 30px with 0.24em tracking at (700, 372); title 124px weight 700 in two lines at x=696. Lockup: mark 260px (scale 0.342) centred at (682, 470), wordmark Tally 230px at x=868, tagline 52px at y=640 |
| Sync | The kicker lands while the first sweep is still crossing the icon (1.5s), so light and text arrive together; the copy has fully settled by 2.95s and the second sweep crosses the icon while the title is held; the wordmark starts to show the moment the mark starts moving left (5.7s), and the last sweep crosses the small mark after it has landed |
| Style | Background `#09090b` with an indigo glow at the left and two faint diagonal beams; icon indigo glass `#4c54a6` to `#15183b` with a white-to-indigo rim; keys `#f6f7ff`, `#5a63a8` and mint `#8bf7d6`; one accent `#4de3b0`; Inter throughout, white `#f5f5f7` title and wordmark at weight 700, tagline `#9aa0b8`; vignette to 55% at the edges, no grain |

## Why it works

The icon is a stack of layers in real 3D, so tilt changes what the eye sees: a bevelled rim, eight thin slabs behind it that read as thickness, a body, the keys raised in front of the body, a soft reflection band and a top gloss. A big object that is cut by the frame edge looks larger than it is, and the viewer reads it as a thing that fills the room. The icon is cropped on the left, so the right two thirds carry the whole glyph and the text has a clear space beside it. Three things move on the face at different speeds: the tilt drifts slowly, the reflection band slides across the whole beat, and a sharp specular band sweeps twice, so the surface always changes a little and never looks printed. The copy comes in after the icon has landed: a mint kicker first, then a two-line title in two steps, and the title is readable for 1.4s or more before the icon leaves. Then the same object becomes the lockup mark, which keeps one idea on screen from start to end. The palette is near-black #09090b, indigo glass and one accent, mint #4de3b0, used for the kicker, the equals key and the display cursor.

## Prompt

> Build a 10.5-second, 1920x1080, 30 fps dark film called Cropped App Icon for a fictional product, Tally (a calculator and unit-converter launcher). Background #09090b with a soft indigo glow at the left and two faint diagonal beams; one accent color, mint #4de3b0; font Inter. Build the icon as stacked layers inside a 760x760px box with perspective 1800px and transform-style preserve-3d: eight rounded slabs (radius 170px) 6px apart behind it for thickness (dark indigo, getting darker with depth); a rim (radius 170px) with a gradient from white through indigo to near-black and back to white; a body inset 14px (radius 156px, indigo gradient #4c54a6 to #15183b, a 3px dark ring around it, an inset top highlight, an inset bottom shadow); a keys layer 26px in front of the body; a reflection band layer (a wide diagonal gradient, background-size 280%) at 28px; a top gloss 732x330px at 30px; and a clipped layer at 32px holding a 230x980px specular band skewed -20° (white at 38% opacity, no blend modes). Keys layer 558x602px: a display 558x140px (radius 32px, dark inset) with (48 + 80) × 10 in 30px and 1,280 in 84px bold, with an 8x66px mint cursor; below it a 3x3 grid of keys 170x130px (radius 38px, gap 24px, each with a hard 10px lower edge and a soft shadow): a light row (− + ×), a mid indigo row (÷ % ±) and then 0 and a mint = key spanning two columns. Draw the key glyphs as 13px round-cap strokes. Beat 1, 0–4.3s: the icon starts below the frame with rotateZ -16°, rotateX 30°, rotateY -32° and rises 0.1–2.1s (expo.out) to a centre of (165, 540), so 215px of it is cropped by the left edge, settling to rotateZ -4°, rotateX -5°, rotateY -17°. From 2.1 to 4.4s the tilt drifts linearly to 3°, 4° and -9°. The reflection band slides across 0.1–4.3s. The specular band sweeps 1.5–2.9s and 3.2–4.4s (power2.inOut). At 1.5s the kicker NEW EXTENSION (30px, 600 weight, 0.24em tracking, mint) rises 26px and fades in over 0.9s; the title Math, right / where you type. (124px, 700, -0.035em, two lines at x=696) rises 34px and fades in at 1.75s and 1.95s over 1.0s each (expo.out). Beat 2, 4.3–7.9s: the copy fades out and rises 14px over 0.45s (power2.in, 0.05s apart). The icon slides to (960, 500), scales to 0.55 and levels its tilt to 0° over 1.2s (power3.inOut). At 5.7s it moves to (682, 470) at scale 0.342 (a 260px mark) over 1.3s (expo.out), while the wordmark Tally (230px, 700, left x=868) is uncovered: put a clip-path inset on the wordmark whose left edge follows the mark's right edge, from 301px to -56px, and set its opacity to 1 over the first 0.12s. The tagline Every sum, one keystroke. (52px, #9aa0b8) rises 16px and fades in at 6.6s over 0.9s. A last specular sweep crosses the mark 6.6–7.9s. After 7.9s nothing moves until 10.5s. Drive everything from one paused GSAP timeline with no CSS animation or random numbers, and add a vignette to 55% at the edges with no grain.

## Often confused with

- [Logo Wordmark Reveal](https://motionboard.app/r/logo-wordmark-reveal.md): Logo Wordmark Reveal starts from a flat vector mark and unfolds the wordmark from behind it; here a 3D app icon is cropped by the frame, carries a title, and only then shrinks into the lockup mark.
- [Dock Arrival](https://motionboard.app/r/dock-arrival.md): Dock Arrival grows a small icon into a macOS Dock and opens a window with a click; here one large icon fills the frame, is cropped at the edge and turns into the lockup.

## Source files

Runnable HyperFrames project, 3 files.

- https://motionboard.app/source/app-icon-crop/hyperframes.json (318 B)
- https://motionboard.app/source/app-icon-crop/index.html (14.0 KB)
- https://motionboard.app/source/app-icon-crop/package.json (302 B)

Download all of them:

```sh
curl -fsSL --create-dirs -o "app-icon-crop/hyperframes.json" "https://motionboard.app/source/app-icon-crop/hyperframes.json"
curl -fsSL --create-dirs -o "app-icon-crop/index.html" "https://motionboard.app/source/app-icon-crop/index.html"
curl -fsSL --create-dirs -o "app-icon-crop/package.json" "https://motionboard.app/source/app-icon-crop/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 {
        --bg: #09090b;
        --ink: #f5f5f7;
        --muted: #9aa0b8;
        --accent: #4de3b0;
        --font-ui: "Inter", "PingFang SC", sans-serif;
      }
      * { margin: 0; padding: 0; box-sizing: border-box; }
      html, body { width: 1920px; height: 1080px; overflow: hidden; background: var(--bg); }
      #root {
        position: relative; width: 1920px; height: 1080px; overflow: hidden;
        background: var(--bg); font-family: var(--font-ui); color: var(--ink);
        -webkit-font-smoothing: antialiased;
      }
      .full { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }

      /* ---------- backdrop ---------- */
      #bg {
        z-index: 0; overflow: hidden;
        background:
          radial-gradient(ellipse 1000px 760px at 12% 58%, rgba(70, 80, 190, 0.26), rgba(70, 80, 190, 0) 70%),
          radial-gradient(ellipse 900px 500px at 70% 110%, rgba(40, 46, 110, 0.22), rgba(40, 46, 110, 0) 70%),
          #09090b;
      }
      .beam {
        position: absolute; left: 330px; top: -260px; width: 240px; height: 1700px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(200, 210, 255, 0.07), rgba(255, 255, 255, 0));
        transform: rotate(26deg);
      }
      .beam.b2 { left: 520px; width: 90px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(200, 210, 255, 0.05), rgba(255, 255, 255, 0)); }

      #stage { z-index: 1; }

      /* ---------- copy, beat 1 ---------- */
      #kick {
        position: absolute; left: 700px; top: 372px; white-space: nowrap;
        font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: 0.24em; color: var(--accent); opacity: 0;
      }
      .ti {
        position: absolute; left: 696px; white-space: nowrap; opacity: 0;
        font-size: 124px; line-height: 124px; font-weight: 700; letter-spacing: -0.035em; color: var(--ink);
      }
      #t1 { top: 436px; }
      #t2 { top: 560px; }

      /* ---------- the icon ---------- */
      #iconPos { position: absolute; left: 0; top: 0; width: 760px; height: 760px; perspective: 1800px; z-index: 3; }
      #glow {
        position: absolute; left: -270px; top: -270px; width: 1300px; height: 1300px;
        background: radial-gradient(circle, rgba(77, 227, 176, 0.10) 0%, rgba(90, 100, 220, 0.12) 30%, rgba(90, 100, 220, 0) 62%);
      }
      #iconRot { position: absolute; left: 0; top: 0; width: 760px; height: 760px; transform-style: preserve-3d; }
      #iconRot .ly { position: absolute; }
      .slab { left: 0; top: 0; width: 760px; height: 760px; border-radius: 170px; }
      .rim {
        left: 0; top: 0; width: 760px; height: 760px; border-radius: 170px;
        background: linear-gradient(140deg, #f4f6ff 0%, #8d94c4 14%, #262a52 38%, #0d0f22 58%, #5c6498 82%, #e9ecff 100%);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
        transform: translateZ(0px);
      }
      .body {
        left: 14px; top: 14px; width: 732px; height: 732px; border-radius: 156px;
        background: linear-gradient(155deg, #4c54a6 0%, #2b3070 38%, #15183b 100%);
        box-shadow:
          0 0 0 3px rgba(6, 7, 20, 0.9),
          inset 0 4px 1px rgba(255, 255, 255, 0.38),
          inset 0 -26px 56px rgba(0, 0, 0, 0.55),
          inset 0 34px 60px rgba(150, 160, 255, 0.14);
        transform: translateZ(2px);
      }
      .keysbox { left: 101px; top: 79px; width: 558px; height: 602px; transform: translateZ(26px); }
      .disp {
        position: absolute; left: 0; top: 0; width: 558px; height: 140px; border-radius: 32px;
        background: linear-gradient(180deg, #080a1b 0%, #14173a 100%);
        box-shadow: inset 0 6px 14px rgba(0, 0, 0, 0.7), inset 0 -2px 0 rgba(255, 255, 255, 0.14), 0 2px 0 rgba(255, 255, 255, 0.10);
      }
      .disp .ex { position: absolute; right: 34px; top: 16px; font-size: 30px; line-height: 34px; font-weight: 500; color: #7f86c0; letter-spacing: 0.01em; white-space: nowrap; }
      .disp .nm { position: absolute; right: 34px; top: 46px; font-size: 84px; line-height: 84px; font-weight: 700; color: #f1f3ff; letter-spacing: -0.02em; white-space: nowrap; }
      .disp .nm b { display: inline-block; width: 8px; height: 66px; margin-left: 8px; vertical-align: -6px; background: var(--accent); border-radius: 3px; }
      .grid { position: absolute; left: 0; top: 164px; width: 558px; display: grid; grid-template-columns: 170px 170px 170px; grid-auto-rows: 130px; gap: 24px; }
      .k { border-radius: 38px; display: flex; align-items: center; justify-content: center; }
      .k svg { width: 72px; height: 72px; fill: none; stroke: currentColor; stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
      .k svg .f { fill: currentColor; stroke: none; }
      .k.l { color: #1c2046; background: linear-gradient(180deg, #f6f7ff 0%, #d3d8f0 100%); box-shadow: 0 10px 0 #7a80b0, 0 22px 26px rgba(4, 5, 20, 0.55), inset 0 3px 0 #ffffff; }
      .k.m { color: #eef0ff; background: linear-gradient(180deg, #5a63a8 0%, #3a4180 100%); box-shadow: 0 10px 0 #181c48, 0 22px 26px rgba(4, 5, 20, 0.55), inset 0 3px 0 rgba(255, 255, 255, 0.34); }
      .k.a { color: #06231c; background: linear-gradient(180deg, #8bf7d6 0%, #34d3a3 100%); box-shadow: 0 10px 0 #178565, 0 22px 26px rgba(4, 5, 20, 0.55), inset 0 3px 0 rgba(255, 255, 255, 0.7); grid-column: span 2; }
      .k .zero { font-size: 78px; line-height: 78px; font-weight: 700; }
      .refl {
        left: 14px; top: 14px; width: 732px; height: 732px; border-radius: 156px; transform: translateZ(28px);
        background: linear-gradient(115deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 34%, rgba(190, 200, 255, 0.17) 45%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0) 100%);
        background-size: 280% 100%; background-repeat: no-repeat; background-position: 0% 0%;
      }
      .gloss {
        left: 14px; top: 14px; width: 732px; height: 330px; transform: translateZ(30px);
        border-radius: 156px 156px 380px 380px / 156px 156px 90px 90px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.27) 0%, rgba(255, 255, 255, 0.08) 55%, rgba(255, 255, 255, 0) 100%);
      }
      .sweepc { left: 14px; top: 14px; width: 732px; height: 732px; border-radius: 156px; overflow: hidden; transform: translateZ(32px); }
      .sw { position: absolute; left: 0; top: -120px; width: 230px; height: 980px; }
      .sw i { display: block; width: 100%; height: 100%; transform: skewX(-20deg); background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(236, 240, 255, 0.38) 50%, rgba(255, 255, 255, 0)); }

      /* ---------- lockup ---------- */
      #wm {
        position: absolute; left: 868px; top: 341px; width: 500px; height: 230px; z-index: 1; white-space: nowrap;
        font-size: 230px; line-height: 230px; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); opacity: 0;
      }
      #tag {
        position: absolute; left: 0; top: 640px; width: 1920px; text-align: center; white-space: nowrap;
        font-size: 52px; line-height: 60px; font-weight: 500; letter-spacing: 0.01em; color: var(--muted); opacity: 0;
      }

      #vig { z-index: 2; pointer-events: none; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.55) 100%); }
    </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-ignore>
        <div class="beam"></div>
        <div class="beam b2"></div>
      </div>

      <div id="stage" class="clip full" data-start="0" data-duration="10.5" data-track-index="1" data-layout-allow-overlap>
        <div id="wm" data-layout-allow-overlap>Tally</div>
        <div id="tag" data-layout-allow-overlap>Every sum, one keystroke.</div>
        <div id="iconPos" data-layout-allow-overlap>
          <div id="glow" data-layout-ignore></div>
          <div id="iconRot" data-layout-allow-overlap></div>
        </div>
        <div id="kick">NEW EXTENSION</div>
        <div id="t1" class="ti">Math, right</div>
        <div id="t2" class="ti">where you type.</div>
      </div>

      <div id="vig" class="clip full" data-start="0" data-duration="10.5" data-track-index="2" data-layout-ignore></div>
    </div>

    <script>
      /* ---------- Tally icon: rim, slab thickness, body, keys, gloss, sweep ---------- */
      const G = {
        plus: '<path d="M50 20V80M20 50H80"/>',
        minus: '<path d="M20 50H80"/>',
        times: '<path d="M27 27L73 73M73 27L27 73"/>',
        divide: '<path d="M20 50H80"/><circle class="f" cx="50" cy="24" r="8"/><circle class="f" cx="50" cy="76" r="8"/>',
        percent: '<circle cx="31" cy="31" r="11"/><circle cx="69" cy="69" r="11"/><path d="M72 22L28 78" stroke-width="10"/>',
        pm: '<path d="M50 16V54M31 35H69M31 80H69"/>',
        eq: '<path d="M22 37H78M22 63H78"/>',
      };
      const svg = (k) => '<svg viewBox="0 0 100 100">' + G[k] + "</svg>";
      const keys =
        '<div class="k l">' + svg("minus") + "</div>" +
        '<div class="k l">' + svg("plus") + "</div>" +
        '<div class="k l">' + svg("times") + "</div>" +
        '<div class="k m">' + svg("divide") + "</div>" +
        '<div class="k m">' + svg("percent") + "</div>" +
        '<div class="k m">' + svg("pm") + "</div>" +
        '<div class="k m"><span class="zero">0</span></div>' +
        '<div class="k a">' + svg("eq") + "</div>";

      let h = "";
      for (let i = 8; i >= 1; i--) {
        const t = i / 8;
        const c = Math.round(40 - 30 * t);
        h += '<div class="ly slab" style="transform:translateZ(' + -i * 6 + "px);background:rgb(" + (c + 4) + "," + (c + 6) + "," + (c + 28) + ')"></div>';
      }
      h += '<div class="ly rim"></div>';
      h += '<div class="ly body"></div>';
      h +=
        '<div class="ly keysbox"><div class="disp"><div class="ex">(48 + 80) × 10</div><div class="nm">1,280<b></b></div></div><div class="grid">' + keys + "</div></div>";
      h += '<div class="ly refl"></div>';
      h += '<div class="ly gloss"></div>';
      h += '<div class="ly sweepc"><div class="sw"><i></i></div></div>';
      document.getElementById("iconRot").innerHTML = h;

      /* ---------- geometry ---------- */
      const S = 760;                       // icon size at scale 1
      const px = (cx) => cx - S / 2;       // icon centre -> x
      const REST_CX = 165, REST_CY = 540;  // beat 1: about 28% of the icon is cropped by the left edge
      const MID_CX = 960, MID_CY = 500, MID_SC = 0.55;
      const LK_SC = 260 / S, LK_CX = 682, LK_CY = 470;   // lockup mark: 260px, wordmark starts at x = 868
      const CLIP_START = Math.round(MID_CX + (S * MID_SC) / 2 - 868);   // wordmark clip edge starts at the mark's right edge
      const CLIP_END = Math.round(LK_CX + (S * LK_SC) / 2 - 868);

      /* ---------- baselines (applied at load, not on the timeline) ---------- */
      gsap.set("#iconPos", { x: px(REST_CX), y: 1250, transformOrigin: "50% 50%" });
      gsap.set("#iconRot", { rotation: -16, rotationX: 30, rotationY: -32, transformOrigin: "50% 50%" });
      gsap.set(".refl", { backgroundPosition: "0% 0%" });
      gsap.set(".sw", { x: -320 });
      gsap.set("#kick", { y: 26 });
      gsap.set("#t1", { y: 34 });
      gsap.set("#t2", { y: 34 });
      gsap.set("#tag", { y: 16 });
      gsap.set("#wm", { clipPath: "inset(-60px -60px -60px " + CLIP_START + "px)" });

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

      /* ===== beat 1 (0 - 4.3): icon rises from below, settles cropped at the left, slow drift + specular sweeps ===== */
      tl.to("#iconPos", { y: REST_CY - S / 2, duration: 2.0, ease: "expo.out" }, 0.1);
      tl.to("#iconRot", { rotation: -4, rotationX: -5, rotationY: -17, duration: 2.0, ease: "expo.out" }, 0.1);
      tl.to("#iconRot", { rotation: 3, rotationX: 4, rotationY: -9, duration: 2.3, ease: "none" }, 2.1);
      tl.to(".refl", { backgroundPosition: "100% 0%", duration: 4.2, ease: "none" }, 0.1);

      tl.to(".sw", { x: 1000, duration: 1.4, ease: "power2.inOut" }, 1.5);
      tl.set(".sw", { x: -320 }, 3.1);
      tl.to(".sw", { x: 1000, duration: 1.2, ease: "power2.inOut" }, 3.2);

      // kicker and title stagger in beside the icon
      tl.to("#kick", { opacity: 1, y: 0, duration: 0.9, ease: "expo.out" }, 1.5);
      tl.to("#t1", { opacity: 1, y: 0, duration: 1.0, ease: "expo.out" }, 1.75);
      tl.to("#t2", { opacity: 1, y: 0, duration: 1.0, ease: "expo.out" }, 1.95);

      /* ===== beat 2 (4.3 - 7.4): copy clears, icon slides to centre and straightens, then becomes the lockup mark ===== */
      tl.to("#kick", { opacity: 0, y: -14, duration: 0.45, ease: "power2.in" }, 4.3);
      tl.to("#t1", { opacity: 0, y: -14, duration: 0.45, ease: "power2.in" }, 4.35);
      tl.to("#t2", { opacity: 0, y: -14, duration: 0.45, ease: "power2.in" }, 4.4);

      tl.to("#iconPos", { x: px(MID_CX), y: MID_CY - S / 2, scale: MID_SC, duration: 1.2, ease: "power3.inOut" }, 4.3);
      tl.to("#iconRot", { rotation: 0, rotationX: 0, rotationY: 0, duration: 1.2, ease: "power3.inOut" }, 4.3);

      // mark moves left into its slot and shrinks; the wordmark is uncovered as the mark leaves
      tl.to("#iconPos", { x: px(LK_CX), y: LK_CY - S / 2, scale: LK_SC, duration: 1.3, ease: "expo.out" }, 5.7);
      tl.to("#wm", { opacity: 1, duration: 0.12, ease: "none" }, 5.7);
      tl.to("#wm", { clipPath: "inset(-60px -60px -60px " + CLIP_END + "px)", duration: 1.3, ease: "expo.out" }, 5.7);
      tl.to("#tag", { opacity: 1, y: 0, duration: 0.9, ease: "expo.out" }, 6.6);

      // last sweep over the settled mark (done before 7.9, then everything holds still)
      tl.set(".sw", { x: -320 }, 6.5);
      tl.to(".sw", { x: 1000, duration: 1.3, ease: "power2.inOut" }, 6.6);

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

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