---
name: hq-case-study-video
description: "Step-by-step workflow for making an HQ case study video, with a starter HyperFrames project: gather inputs, plan the shots, capture the live site frame by frame, build the composition, check a contact sheet, render and hand off. Use when asked to make, build or render a case study reel or client showcase video. Pairs with hq-videos, which holds the look and the rules."
---

# Making an HQ case study video

Step by step, from a client project to a posted reel. The rules for how the reel should look (formats, captions, devices, demo data, client branding, the HQ sign-off and the pre-post checklist) are in the hq-videos skill and at https://brand.builtbyhq.com/videos. Follow them; this skill is the how.

This folder ships with a starter project:

- `starter/index.html`: a HyperFrames composition in the story reel shape. Title card, a desktop section in a browser frame that zooms to full bleed, a mobile section in a phone, the client end card, and the HQ sign-off on Sand. 1080×1350, 14.6s.
- `starter/capture/`: records clips of the live site frame by frame, so scrolls are smooth and sticky headers don't jitter. See `starter/capture/README.md`.
- `starter/assets/`: the HQ badge and Instrument Sans.

## 1. Get the inputs

Ask for these before building anything:

- The live URL, and the Figma file if there is one.
- Which 2 to 4 features to show, in order.
- Any print or brand collateral that belongs in the reel.
- The client's logo as an SVG.
- Reference reels the person likes, if any.
- Whether the client has OK'd posting, and where (our site, LinkedIn or both). If not yet, build it anyway but say it can't go out until they have.

Native phone app with only a set of screens? Make a screenshot coverflow instead of a story reel. The hq-videos skill has the coverflow defaults and build notes.

## 2. Set up the project

```bash
cp -R <this skill>/starter ./<client>-reel && cd ./<client>-reel
curl -fsSL https://cdn.jsdelivr.net/npm/gsap@3/dist/gsap.min.js -o assets/gsap.min.js
python3 -m venv .venv && .venv/bin/pip install playwright && .venv/bin/playwright install chromium
```

Needs Node 22+ and FFmpeg. For "Made by HQ" in Nib Pro, have Nib Pro installed or copy `NibPro-SemiBold.ttf` into `assets/`; without it the sign-off falls back to Instrument Sans.

## 3. Plan the reel and confirm it

Write a shot list before capturing: each section's title-case caption, what's on screen, which device, and roughly how long. Follow the product's order (landing, the core flow, the payoff, supporting pieces) and keep the total in 12 to 22 seconds. Show it to the person and get a yes before capturing anything.

## 4. Make demo data

Never show real users. Where the reel needs a profile, account or record, build a demo one from made-up data. If you start from a real page's markup, replace every value that belongs to a real person (names, emails, photos, city, car details, IDs) before capturing, and check the captured frames for anything you missed. Use realistic names (Maya Whitfield, Daniel Okafor). Real featured content on public pages needs Zarin's OK.

## 5. Capture the footage

One scene script per clip, in `capture/`. Copy `scene_desktop.py` or `scene_mobile.py`, set the URL, then script the movement with `hold`, `glide`, `scroll_to`, `click` and `type_text`.

```bash
cd capture
CAPTURE_MODE=record ../.venv/bin/python scene_desktop.py   # first run records the site
../.venv/bin/python scene_desktop.py                       # later runs replay the recording
```

Clips land in `clips/`. Before moving on:

- Stack the header area from a dozen frames of each scroll and check the sticky nav doesn't move.
- Pace scrolls slower than feels right, with holds where a caption needs reading.
- If the page has a background video, extract its frames into `capture/video-frames/hero/` (see `sitecache.py`) and call `setup_video()` so it stays in sync.

## 6. Build the composition

In `index.html`:

1. Set the client tokens at the top of the CSS (`--bg`, `--ink`, `--muted`, `--accent`) from their site or Figma, and load their webfonts into `assets/` with `@font-face`. Their fonts go everywhere except the HQ sign-off.
2. Replace the placeholder circle with the client's mark. Animate it in from their own motif where you can.
3. Write the captions: one title-case heading per section, no eyebrows, about 200px of space above the design.
4. Point each `<video>` at its clip and set `data-start`, `data-duration` and `data-media-start` to line up with the timeline. A clip's `data-duration` has to cover its exit tween.
5. Add or swap sections for the features you're showing. Use the transitions in the hq-videos skill (browser-to-phone morph, components popping out of the frame, an asset dropping into its slot).
6. Fill in the client end card: mark, tagline, live URL.
7. Keep `data-duration` on `#root` equal to the last time in the timeline.

Then run:

```bash
npm run check
```

Fix everything it reports. Text that overlaps on purpose can be marked `data-layout-allow-overlap`; a phone that bleeds off the bottom on purpose, `data-layout-allow-overflow`.

## 7. Show a contact sheet before the final render

```bash
npm run render
for t in 1 3 5 7 9 11 13; do ffmpeg -v error -y -ss $t -i renders/reel.mp4 -frames:v 1 -vf scale=360:-2 renders/f$t.png; done
```

Put the frames side by side and show them. Check them against the hq-videos "Before you post" list, especially caption spacing, pacing, real data, and the phone having room. Iterate until the person signs off.

## 8. Render and hand off

`npm run render` writes `renders/reel.mp4` with PNG frames, so UI text stays crisp. Hand over:

- The MP4.
- The project folder zipped without `.venv`, `capture/frames` or `capture/cache`, so the reel can be edited and re-rendered later.

## 9. Post it

Only once the client has OK'd it, and only where they agreed. The LinkedIn post copy follows the hq-videos posting notes: Zarin's voice, a plain opener, how we worked, one client quote, a thank-you to the client, "we" with no individual names.
