# Aurora Background

Motionboard shot name: Aurora Words

A full-frame pink, violet and blue aurora drifts on a near-black background while the words Build, your, next, idea and with cut in one at a time, each in white at 250px. The word Bloom arrives with the aurora at its brightest and clears, and then a flower mark, the wordmark and a tagline settle over the calmer aurora.

- Position in a launch film: Opening
- Slug: aurora-background
- Preview video: https://media.motionboard.app/aurora-words.mp4
- Recipe page: https://motionboard.app/recipes/aurora-background/
- 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 `aurora-words`. 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.0s. Aurora fades up 0–1.5s. Words cut every 0.7s: Build 0–0.7s, your 0.7–1.4s, next 1.4–2.1s, idea 2.1–2.8s, with 2.8–3.5s; Bloom 3.5–5.6s with its letters rising 3.5–4.45s; aurora brightens 3.4–4.4s and relaxes 5.3–7.0s; Bloom clears 5.25–5.55s; flower mark blooms 5.65–6.75s, wordmark 5.9–6.95s, tagline 6.5–7.3s; lockup holds still to 10.0s (about 2.7s) |
| Easing | Aurora fade-in uses a cubic ease-out over 1.5s; the brightening and its relaxation use smoothstep; word entry blur and scale use power2.out in 0.18s; the drift on each word is linear (none); Bloom letters, wordmark letters, mark rotation and tagline use expo.out; mark petals use back.out(1.7); Bloom exit uses power2.in in 0.3s; the beat pulse decays as exp(−t/0.12s) |
| Camera | Locked, no camera move. Each word is centred and pushes in 4% over its 0.7s (scale 1 → 1.04, linear); Bloom pushes in 6% over 1.85s |
| Subject | Words in Inter 800 at 250px, letter-spacing −0.045em, white; Bloom at 300px with a soft pink glow behind it; 4 ribbons of 19 blots (radius 170–270px, stretched 1.4–1.6x horizontally) and 3 edge blobs (radius 380–470px) on a 1920x1080 canvas; dark scrim ellipse 1050x430px at 50% 50%; lockup with a 190px six-petal flower mark, Bloom wordmark at 184px weight 700, and the tagline From idea to working app in minutes. at 38px |
| Sync | Every cut triggers a brightness pulse in the aurora; the aurora starts brightening 0.1s before Bloom appears, so the colour change arrives with the brand word; Bloom has fully cleared at 5.55s, 0.05s before the lockup layer starts at 5.6s; the mark petals open before the wordmark letters so the mark reads first |
| Style | Background `#05050b`, aurora colours pink `#ff3fa0`, violet `#7c4dff`, blue `#3a6bff` and a little orange `#ff8a3a`, hot variants `#ff5cc4`, `#9e68ff`, `#38b0ff`, `#ffc448` at the brand word; white type; Inter throughout; vignette reaching 45% at the edges and grain at 32% overlay re-rolled every 1/24s |

## Why it works

The aurora is the only thing that never stops moving, so the film feels alive while the words change by hard cut. Four ribbons and three edge blobs drift on slow sine curves, each blot a soft gradient with a bright core and a blue halo, so colours blend into each other without turning grey. The middle of the frame stays darker (a dark scrim sits behind the words), which keeps the white type readable on every frame. Every cut adds a short brightness kick that fades in about 0.12s, so the background pulses on the beat of the words. The brand word gets the film's one real change: the aurora brightens, swells and shifts to hotter colours (pink lighter, violet lighter, blue toward cyan, orange toward gold) while the letters of Bloom rise in. Before the lockup the word clears first, then the flower mark, wordmark and tagline settle over a calmer aurora. The first frame is a white word on black, and the aurora fades up behind it, as in the Lovable original. One accent, pink #ff3fa0.

## Prompt

> Build a 10-second, 1920x1080, 30 fps dark launch film called Aurora Background for a fictional product, Bloom (an app builder). Background #05050b, font Inter, white type, accent pink #ff3fa0. Draw a full-frame aurora on a 1920x1080 canvas 2D, redrawn from timeline time in one onUpdate (no CSS animation, no Math.random). Use source-over only, never additive blending. Make 4 ribbons: each has a centreline y = y0 + a1·sin(2π·f1·s + p1 + w1·t) + a2·sin(2π·f2·s + p2 + w2·t) for s from 0 to 1 across x −280..2200, with 19 soft blots along it (radius 170–270px, stretched 1.4–1.6x horizontally, radius varying along the ribbon). Each blot is a radial gradient: core colour at alpha a, 0.28 at 0.8a, 0.6 at 0.28a in a halo mixed 55% toward blue, 1.0 at 0. Ribbon colours run orange #ff8a3a → pink #ff3fa0 → violet #7c4dff at the top, blue #3a6bff → violet → pink at the bottom, plus a mid ribbon and a thin ribbon at lower alpha. Add 3 edge blobs of radius 380–470px at the right, left and top right, drifting on slow sine curves. Put a dark scrim (ellipse 1050x430px, rgba(5,5,11,0.5) fading to 0) behind the words. The aurora fades in over 0–1.5s with a cubic ease-out. Show one word per hard cut, Inter 800, 250px, letter-spacing −0.045em, centred: Build 0–0.7s, your 0.7–1.4s, next 1.4–2.1s, idea 2.1–2.8s, with 2.8–3.5s. The first word is sharp on frame 0; later words enter with an 18px blur and scale 1.1 settling in 0.18s (power2.out), and each word pushes in 4% linearly over its 0.7s. On every cut add an aurora brightness pulse that decays as exp(−t/0.12s). The brand word Bloom runs 3.5–5.6s at 300px with a soft pink glow: its letters rise 46px from a 14px blur with a 0.05s stagger (0.75s, expo.out), it pushes in 6% over 1.85s, and it clears 5.25–5.55s (opacity to 0 and 14px blur, power2.in). During 3.4–4.4s the aurora brightens with smoothstep: alpha gain from 0.85 to 1.35, radii +20%, ribbons pulled 16% toward the vertical centre and colours mixed 80% to hot variants (#ff5cc4, #9e68ff, #38b0ff, #ffc448); relax to 35% of that over 5.3–7.0s. Lockup from 5.6s: a 190px six-petal flower mark (3 petals violet-pink, 3 orange-pink, white centre) rotates in from −40° and scales 0.7→1 over 0.9s (expo.out) while the petals open with back.out(1.7), stagger 0.06s, from 5.65s; the wordmark Bloom at 184px weight 700 rises letter by letter from 5.9s (0.85s, expo.out, stagger 0.05s); the tagline From idea to working app in minutes. at 38px rises at 6.5s. Hold the lockup still to 10.0s. Finish with a vignette reaching 45% at the edges and 32% overlay grain re-rolled every 1/24s from a seeded generator.

## Often confused with

- [One Word per Cut](https://motionboard.app/r/one-word-per-cut.md): One Word per Cut cuts between full-frame backgrounds that change on every word; in Aurora Background one moving aurora stays behind all the words and only brightens at the brand word.
- [Light Leak Transition](https://motionboard.app/r/light-leak-transition.md): Light Leak Transition is a warm light flash that covers a cut on a photographic scene; Aurora Background is a continuous coloured gradient field behind text and never covers the picture.

## Source files

Runnable HyperFrames project, 3 files.

- https://motionboard.app/source/aurora-words/hyperframes.json (318 B)
- https://motionboard.app/source/aurora-words/index.html (14.2 KB)
- https://motionboard.app/source/aurora-words/package.json (301 B)

Download all of them:

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

      #cv { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; display: block; }
      #scrim { background: radial-gradient(ellipse 1050px 430px at 50% 50%, rgba(5, 5, 11, 0.5) 0%, rgba(5, 5, 11, 0.32) 55%, rgba(5, 5, 11, 0) 100%); pointer-events: none; }
      #vig { background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.45) 100%); pointer-events: none; }
      #grain { mix-blend-mode: overlay; opacity: 0.32; pointer-events: none; }
      #grain .gr { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; background-size: 384px 384px; }

      /* ---------- one word per cut ---------- */
      .wd { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; display: flex; align-items: center; justify-content: center; }
      .wrap { display: block; }
      .wrap span.w { display: block; font-weight: 800; font-size: 250px; line-height: 1; letter-spacing: -0.045em; white-space: nowrap; padding: 0 0 22px; color: #fff; text-shadow: 0 8px 70px rgba(8, 4, 24, 0.45); }
      .wd.e span.w { filter: blur(18px); }
      .wd.bl .wrap span.w { font-size: 300px; text-shadow: 0 8px 80px rgba(255, 90, 190, 0.5), 0 0 40px rgba(8, 4, 24, 0.4); }
      .wd.bl .lt { display: inline-block; opacity: 0; filter: blur(14px); }

      /* ---------- lockup ---------- */
      #lockrow { position: absolute; left: 0; top: 0; width: 1920px; height: 1000px; display: flex; align-items: center; justify-content: center; gap: 44px; }
      #mk { width: 190px; height: 190px; flex: none; opacity: 0; filter: drop-shadow(0 10px 40px rgba(255, 70, 170, 0.45)); }
      #wm { font-size: 184px; line-height: 210px; font-weight: 700; letter-spacing: -0.045em; color: #fff; white-space: nowrap; padding-bottom: 14px; text-shadow: 0 8px 60px rgba(8, 4, 24, 0.45); }
      #wm .lt { display: inline-block; opacity: 0; filter: blur(10px); }
      #tag { position: absolute; left: 0; top: 664px; width: 1920px; text-align: center; font-size: 38px; font-weight: 500; letter-spacing: -0.005em; color: rgba(255, 255, 255, 0.86); opacity: 0; text-shadow: 0 2px 30px rgba(8, 4, 24, 0.6); }
    </style>
  </head>
  <body>
    <div id="root" data-composition-id="main" data-start="0" data-duration="10" data-width="1920" data-height="1080">
      <div id="aur" class="clip full" data-start="0" data-duration="10" data-track-index="0" data-layout-allow-overlap data-layout-ignore><canvas id="cv" width="1920" height="1080"></canvas></div>
      <div id="scrim" class="clip full" data-start="0" data-duration="10" data-track-index="1" data-layout-allow-overlap data-layout-ignore></div>

      <div class="clip wd" data-start="0" data-duration="0.7" data-track-index="2"><div class="wrap" data-layout-allow-overlap><span class="w">Build</span></div></div>
      <div class="clip wd e" data-start="0.7" data-duration="0.7" data-track-index="2"><div class="wrap" data-layout-allow-overlap><span class="w">your</span></div></div>
      <div class="clip wd e" data-start="1.4" data-duration="0.7" data-track-index="2"><div class="wrap" data-layout-allow-overlap><span class="w">next</span></div></div>
      <div class="clip wd e" data-start="2.1" data-duration="0.7" data-track-index="2"><div class="wrap" data-layout-allow-overlap><span class="w">idea</span></div></div>
      <div class="clip wd e" data-start="2.8" data-duration="0.7" data-track-index="2"><div class="wrap" data-layout-allow-overlap><span class="w">with</span></div></div>
      <div class="clip wd bl" data-start="3.5" data-duration="2.1" data-track-index="2"><div class="wrap" id="blwrap" data-layout-allow-overlap><span class="w"><span class="lt">B</span><span class="lt">l</span><span class="lt">o</span><span class="lt">o</span><span class="lt">m</span></span></div></div>

      <div id="lock" class="clip full" data-start="5.6" data-duration="4.4" data-track-index="3">
        <div id="lockrow" data-layout-allow-overlap>
          <div id="mk">
            <svg viewBox="0 0 100 100" width="190" height="190" aria-hidden="true">
              <defs>
                <linearGradient id="pA" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ffb04a" /><stop offset="1" stop-color="#ff3f9d" /></linearGradient>
                <linearGradient id="pB" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ff5ab4" /><stop offset="1" stop-color="#7c4dff" /></linearGradient>
              </defs>
              <g transform="rotate(0 50 50)"><ellipse class="pt" cx="50" cy="27" rx="14" ry="22" fill="url(#pB)" /></g>
              <g transform="rotate(120 50 50)"><ellipse class="pt" cx="50" cy="27" rx="14" ry="22" fill="url(#pB)" /></g>
              <g transform="rotate(240 50 50)"><ellipse class="pt" cx="50" cy="27" rx="14" ry="22" fill="url(#pB)" /></g>
              <g transform="rotate(60 50 50)"><ellipse class="pt" cx="50" cy="27" rx="14" ry="22" fill="url(#pA)" opacity="0.96" /></g>
              <g transform="rotate(180 50 50)"><ellipse class="pt" cx="50" cy="27" rx="14" ry="22" fill="url(#pA)" opacity="0.96" /></g>
              <g transform="rotate(300 50 50)"><ellipse class="pt" cx="50" cy="27" rx="14" ry="22" fill="url(#pA)" opacity="0.96" /></g>
              <circle class="pt" cx="50" cy="50" r="7.5" fill="#fff" />
            </svg>
          </div>
          <div id="wm"><span class="lt">B</span><span class="lt">l</span><span class="lt">o</span><span class="lt">o</span><span class="lt">m</span></div>
        </div>
        <div id="tag">From idea to working app in minutes.</div>
      </div>

      <div id="vig" class="clip full" data-start="0" data-duration="10" data-track-index="4" data-layout-allow-overlap data-layout-ignore></div>
      <div id="grain" class="clip full" data-start="0" data-duration="10" data-track-index="5" data-layout-allow-overlap data-layout-ignore><div class="gr" id="grnode"></div></div>
    </div>

    <script>
      const EXPO = "expo.out";
      const DUR = 10;
      const W = 1920, H = 1080;
      const mb = (a) => () => { 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; };

      /* ---------- grain texture, painted once from a seeded generator ---------- */
      const grainURL = (() => {
        const c = document.createElement("canvas"); c.width = c.height = 384;
        const g = c.getContext("2d"), im = g.createImageData(384, 384), r = mb(4242);
        for (let i = 0; i < 384 * 384; i++) { const v = 128 + Math.round((r() + r() + r() - 1.5) * 70); im.data[i * 4] = v; im.data[i * 4 + 1] = v; im.data[i * 4 + 2] = v; im.data[i * 4 + 3] = 255; }
        g.putImageData(im, 0, 0);
        return c.toDataURL("image/png");
      })();
      const grn = document.getElementById("grnode");
      grn.style.backgroundImage = "url(" + grainURL + ")";

      /* ---------- aurora, drawn from timeline time ---------- */
      const cv = document.getElementById("cv");
      const ctx = cv.getContext("2d");
      const BEATS = [0, 0.7, 1.4, 2.1, 2.8, 3.5];
      const clamp = (v, a, b) => Math.max(a, Math.min(b, v));
      const sm = (v) => { v = clamp(v, 0, 1); return v * v * (3 - 2 * v); };
      const eo = (v) => { v = clamp(v, 0, 1); return 1 - Math.pow(1 - v, 3); };
      const lerp = (a, b, k) => a + (b - a) * k;

      /* palette: base and hot (brand moment) variants */
      const PAL = {
        pink: [[255, 63, 160], [255, 92, 196]],
        vio: [[124, 77, 255], [158, 104, 255]],
        blue: [[58, 107, 255], [56, 176, 255]],
        org: [[255, 138, 58], [255, 196, 72]]
      };
      function col(name, k) { const p = PAL[name]; return [lerp(p[0][0], p[1][0], k), lerp(p[0][1], p[1][1], k), lerp(p[0][2], p[1][2], k)]; }
      function mix3(a, b, k) { return [lerp(a[0], b[0], k), lerp(a[1], b[1], k), lerp(a[2], b[2], k)]; }
      const rgba = (c, a) => "rgba(" + Math.round(c[0]) + "," + Math.round(c[1]) + "," + Math.round(c[2]) + "," + clamp(a, 0, 1).toFixed(3) + ")";

      /* ribbons: a flowing centreline with soft round blots along it */
      const RIB = [
        { y0: 150, a1: 120, f1: 0.8, w1: 0.75, p1: 0.4, a2: 52, f2: 1.7, w2: -0.95, p2: 1.9, r0: 240, st: 1.6, al: 0.34, cols: ["org", "pink", "vio"], sh: 0.3 },
        { y0: 940, a1: 130, f1: 0.7, w1: -0.65, p1: 2.2, a2: 60, f2: 1.5, w2: 0.85, p2: 0.7, r0: 270, st: 1.6, al: 0.34, cols: ["blue", "vio", "pink"], sh: 0.45 },
        { y0: 540, a1: 270, f1: 0.55, w1: 0.55, p1: 3.6, a2: 70, f2: 1.2, w2: -0.7, p2: 2.6, r0: 200, st: 1.5, al: 0.2, cols: ["vio", "blue", "pink"], sh: 0.2 },
        { y0: 330, a1: 90, f1: 1.1, w1: -0.5, p1: 5.1, a2: 40, f2: 2.1, w2: 0.9, p2: 4.2, r0: 170, st: 1.4, al: 0.16, cols: ["pink", "org", "vio"], sh: 0.1 }
      ];
      /* big soft blobs hugging the edges */
      const BLOB = [
        { x: 1780, y: 640, ax: 90, ay: 130, w: 0.5, p: 0.5, r: 440, al: 0.5, c: ["pink", "vio"] },
        { x: 120, y: 760, ax: 100, ay: 120, w: -0.45, p: 2.1, r: 470, al: 0.5, c: ["blue", "vio"] },
        { x: 1500, y: 90, ax: 140, ay: 60, w: 0.65, p: 4.0, r: 380, al: 0.42, c: ["vio", "blue"] }
      ];
      const N = 19;

      function fade(t) { return eo(t / 1.5); }
      function brand(t) { return sm((t - 3.4) / 1.0) * (1 - 0.65 * sm((t - 5.3) / 1.7)); }
      function pulse(t) { let s = 0; for (let i = 0; i < BEATS.length; i++) { const d = t - BEATS[i]; if (d >= 0) s += Math.exp(-d / 0.12); } return Math.min(1, s); }

      function blot(x, y, r, sx, core, a) {
        const mid = mix3(core, PAL.blue[0], 0.55);
        ctx.save();
        ctx.translate(x, y);
        ctx.scale(sx, 1);
        const g = ctx.createRadialGradient(0, 0, 0, 0, 0, r);
        g.addColorStop(0, rgba(core, a));
        g.addColorStop(0.28, rgba(core, a * 0.8));
        g.addColorStop(0.6, rgba(mid, a * 0.28));
        g.addColorStop(1, rgba(mid, 0));
        ctx.fillStyle = g;
        ctx.beginPath();
        ctx.arc(0, 0, r, 0, Math.PI * 2);
        ctx.fill();
        ctx.restore();
      }

      function draw(t) {
        const f = fade(t), b = brand(t), k = 0.8 * b;
        const A = (0.85 + 0.5 * b + 0.12 * pulse(t)) * f;
        const grow = 1 + 0.2 * b;
        ctx.globalCompositeOperation = "source-over";
        ctx.fillStyle = "#05050b";
        ctx.fillRect(0, 0, W, H);
        if (f <= 0) return;

        BLOB.forEach((o) => {
          const x = o.x + o.ax * Math.sin(t * o.w + o.p), y = o.y + o.ay * Math.cos(t * o.w * 0.8 + o.p * 1.3);
          const r = o.r * grow * (1 + 0.1 * Math.sin(t * 0.7 + o.p));
          blot(x, y, r, 1.15, col(o.c[0], k), o.al * A);
        });

        RIB.forEach((rb, id) => {
          const c0 = col(rb.cols[0], k), c1 = col(rb.cols[1], k), c2 = col(rb.cols[2], k);
          for (let i = 0; i < N; i++) {
            const s = i / (N - 1);
            const x = -280 + 2480 * s;
            let y = rb.y0 + rb.a1 * Math.sin(6.2832 * rb.f1 * s + rb.p1 + rb.w1 * t) + rb.a2 * Math.sin(6.2832 * rb.f2 * s + rb.p2 + rb.w2 * t);
            y += (540 - y) * 0.16 * b;
            const rad = rb.r0 * grow * (0.72 + 0.36 * Math.sin(6.2832 * s * 1.3 + rb.p1 + 0.6 * t + id));
            const u = clamp(s + rb.sh * Math.sin(0.45 * t + id * 1.7) * 0.5, 0, 1);
            const core = u < 0.5 ? mix3(c0, c1, u * 2) : mix3(c1, c2, (u - 0.5) * 2);
            blot(x, y, rad, rb.st, core, rb.al * A * (1 + 0.5 * (id === 2 ? b : 0)));
          }
        });
      }

      /* ---------- timeline ---------- */
      const tl = gsap.timeline({ paused: true });
      draw(0);

      /* baselines (set once at 0; every element they touch is hidden at time 0) */
      tl.set(".wd.e span.w", { scale: 1.1 }, 0);
      tl.set(".wd.bl .lt", { y: 46 }, 0);
      tl.set(".pt", { scale: 0, svgOrigin: "50 50" }, 0);
      tl.set("#mk", { rotation: -40, scale: 0.7 }, 0);
      tl.set("#wm .lt", { y: 36 }, 0);
      tl.set("#tag", { y: 14 }, 0);

      /* one hard cut per word: slow constant drift, and a short blur settle on the entry */
      const WS = [0, 0.7, 1.4, 2.1, 2.8];
      const wraps = document.querySelectorAll(".wd:not(.bl) .wrap");
      WS.forEach((s, i) => {
        tl.to(wraps[i], { scale: 1.04, duration: 0.7, ease: "none" }, s);
        if (i > 0) tl.to(wraps[i].querySelector("span.w"), { filter: "blur(0px)", scale: 1, duration: 0.18, ease: "power2.out" }, s);
      });

      /* brand word: letters rise in, slow push, then clears before the lockup */
      tl.to(".wd.bl .lt", { opacity: 1, y: 0, filter: "blur(0px)", duration: 0.75, ease: EXPO, stagger: 0.05 }, 3.5);
      tl.to("#blwrap", { scale: 1.06, duration: 1.85, ease: "none" }, 3.5);
      tl.to("#blwrap", { opacity: 0, filter: "blur(14px)", duration: 0.3, ease: "power2.in" }, 5.25);

      /* lockup: the mark blooms, wordmark and tagline settle, then everything holds */
      tl.to("#mk", { opacity: 1, rotation: 0, scale: 1, duration: 0.9, ease: EXPO }, 5.65);
      tl.to(".pt", { scale: 1, duration: 0.8, ease: "back.out(1.7)", stagger: 0.06 }, 5.65);
      tl.to("#wm .lt", { opacity: 1, y: 0, filter: "blur(0px)", duration: 0.85, ease: EXPO, stagger: 0.05 }, 5.9);
      tl.to("#tag", { opacity: 1, y: 0, duration: 0.8, ease: EXPO }, 6.5);

      /* aurora and grain: redrawn from timeline time */
      tl.to({ v: 0 }, { v: 1, duration: DUR, ease: "none", onUpdate: () => draw(tl.time()) }, 0);
      tl.to({}, { duration: DUR, ease: "none", onUpdate: () => { const n = Math.floor(tl.time() * 24), r = mb(n * 7919 + 13); grn.style.backgroundPosition = -Math.floor(r() * 384) + "px " + -Math.floor(r() * 384) + "px"; } }, 0);

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