Sitepeel

Black Harbor Tattoo

Studios & salons · Tattoo studio

A Glasgow tattoo studio shows its robin, bell and salmon tattoo at age 60, then rewinds the tape to day one as you scroll.

Free to copy and download. No account needed.

About this prompt

Files, steps and what happens on the site

What happens on the site

Black Harbor Tattoo, three artists in Glasgow, on peach skin inside a dark brown tape machine with yellow labels. It opens on a robin, bell and salmon tattoo as it will look at 60, and an age counter runs down as you scroll. Fine lines fade first, close lines merge, ink drifts through dark water, and a kitchen radio switch sets fine line beside bold. You drag a razor across the tattoo: day one on the left, you at 60 on the right. You wipe off a purple stencil, and the reel ends on a booking sheet.

About this site

A one-page site for a made-up tattoo studio in Glasgow. As you scroll, the same drawn tattoo ages and un-ages on skin, a razor splits day one from age 60, a purple stencil rubs away, and the page ends with a booking form.

  • Studios & salons
  • Scroll story
  • WebGL
  • Interactive

What the prompt covers

  • All thirteen chapters with their full text
  • Type, sizes and the slanted chapter cuts
  • Colors and the skin tones
  • Desktop, tablet and phone layouts
  • Every scroll effect and interaction, with timings
  • Setup, and how to check the finished site

How to use it

  1. Add the files

    Download the required files and unzip them in a new project folder.

  2. Paste the prompt

    Copy the prompt into your AI coding tool and let it build the site.

  3. Compare the result

    Open what your AI tool made next to the live preview of Black Harbor Tattoo, and ask it to fix what differs.

Tested with

Tool
Claude Code
Model
Claude Opus 5.5 (high effort)
Built from
Prompt and required files, in an empty folder
Date
2026-11-14

A clean build matched the demo’s text and every section height at desktop and phone size, with no errors. One line-drawing fix it suggested is now in the prompt. Checked in Chromium.

What you get

This is a prompt plus the files it depends on. The prompt alone is not enough.

  • Prompt

    Markdown, 92 KB

    The full brief to give your AI coding tool.

    Download prompt
  • Required files

    ZIP, 1.7 MB

    The fonts, pictures and the two code files for the tattoo drawings and the ageing effect, with licence details. The prompt has your AI tool download them.

    Download files

See the list of files

Good to know

  • Free to copy and download. No account needed.
  • Use it for your own sites and for client sites. Please don’t resell or share the prompt or its files as they are.
  • AI tools and models build differently, so the result can differ from the preview.
  • The names, projects and contact details are made up. Replace them with your own before you publish.

The prompt

Show the prompt1223 lines
# Build the Black Harbor Tattoo website

You are working in an AI coding tool. Build this website in the current project from the specification below. It is a one-page site for a fictional tattoo studio in Glasgow, Black Harbor Tattoo, whose promise is that before you get a tattoo, its artists show you what it will look like at 60. The page is told as a reel of tape rewinding from age 60 back to day one: thirteen chapters joined by slanted razor cuts, a counter that runs from "Age 60.0" down to the visitor's own age, chunky hand-drawn type on brown, skin-coloured panels where the same drawn tattoo (a robin, a tree, a bell and a fish) ages live in WebGL, a draggable razor that splits day one from age 60, a purple stencil you can rub out, and a booking form at the end of the tape.

Build everything yourself except the supporting files listed in section 2. Do not substitute a different stack, font, library or design system. Keep the copy exactly as written. Do not add analytics, trackers, external embeds, CDN links or any request to another domain.

This prompt comes with a required pack of fonts, pictures and two code modules (the tattoo drawings and the WebGL shader). It is not a text-only prompt. Results differ between AI tools and models. Follow the specification closely, but report honestly what you built and tested.

## 1. Stack and project setup

- Plain HTML, CSS and JavaScript. No framework, no build step, no npm packages, no TypeScript, no Tailwind. Classic scripts (not modules) that share one global object, `window.BH`.
- Every path is relative (`site.css`, `js/core.js`, `img/...`, `fonts/...`), so the site works from a domain root and from any sub-folder. Never write a leading-slash URL.
- No inline `<script>` code anywhere (the JSON-LD data block in the head is the only inline script element). The page must run under this Content Security Policy without violations: `default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; font-src 'self' data:; connect-src 'self' blob: data:`.

Target layout of the finished project:

```text
index.html          (section 4, written by you)
404.html            (section 4, written by you)
site.css            (section 5, written by you)
js/core.js          (section 6, written by you)
js/art.js           (from the required pack, supporting code)
js/ink.js           (from the required pack, supporting code)
js/chapters.js      (section 8, written by you)
fonts/              (from the required pack)
img/                (from the required pack)
licenses/           (from the required pack)
```

To look at it, serve the folder with any static file server, for example `npx --yes http-server -p 8080 -c-1 .` or `python -m http.server 8080`, and open the address it prints. Opening `index.html` from the file system will not work, because the shader loads pictures.

## 2. Required files

Required pack, version 1:

- URL: https://sitepeel.dev/website-prompts/black-harbor/assets-v1.zip
- SHA-256: `8d3353c880baa5bf5274dced4b91a2fed41fa664e792d78d709d2e1496cc322b`
- Size: 1821518 bytes

Download it with your tool's web fetch, `curl -fL -o assets-v1.zip <URL>`, or `Invoke-WebRequest`. If `assets-v1.zip` is already in the project root, use that copy. If you cannot download it, stop and ask the person to save the file into the project root, then continue. Check the SHA-256 (`shasum -a 256`, `sha256sum` or `certutil -hashfile assets-v1.zip SHA256`) and stop if it differs. Unzip it into the project root so that `fonts/`, `img/`, `js/` and `licenses/` sit next to `index.html`. Delete the zip afterwards. You may delete the pack's `README.md` and `SHA256SUMS.txt` once the hashes are checked.

Files in the pack (path, SHA-256):

| File | SHA-256 |
|---|---|
| `README.md` | `2945a3389d64f808d929dc9a5cf8b152029911d03b8407de02953c4d23207e28` |
| `fonts/OFL-Literata.txt` | `9895ebc015226accf416b758ac1ca02a2fb4f83a89d316791ef697c3dc0852aa` |
| `fonts/OFL-LondrinaSolid.txt` | `eb7e5425f3e8f374d4da122426b9ee0d34436a9fcf0377bfd97033d4d727fac5` |
| `fonts/literata-latin-400-normal.woff2` | `a60c193b55766b68b922e2327e15c2d8c145532f283a27c3411b9c47a8583d18` |
| `fonts/literata-latin-700-normal.woff2` | `1f2985e0fc368aac76f95b847cd05ef6ec4bac2733a648098c62edf990756cf5` |
| `fonts/londrina-solid-latin-300-normal.woff2` | `4f62331667bd4f8d6911fc1e59d3933d72a259936c5680b7025c6866bb77c74d` |
| `fonts/londrina-solid-latin-900-normal.woff2` | `ed455d5fb4d1b1e9e1892db85d1026c9e435dc4412ede3244c7ff92ef8b50ad9` |
| `img/ink-cloud.jpg` | `e8bb9c298b8bf12d262fbd447846da1c99a009101d029a588c549423fcf4573c` |
| `img/ink-spatter.jpg` | `666d1b7afdc37abb5e3c158ebb4f6563dcda7fed4b17e50747e075114eea7135` |
| `img/ink-wash.jpg` | `3299f67d69a9c24585b53e14e02126576e6c2966607f44fb72e89ca54ec3fac8` |
| `img/night-sea.jpg` | `14a5ea045417d182f0f8d0f67539169e6cf08c2ab53de595b402ad2398af6e86` |
| `img/still-block.jpg` | `612368af2b332c155d811b9a494b7378b2aab5c2cf74c2093aa0472c561ce709` |
| `img/still-bold-0.jpg` | `5b27425cf927dff4da9253f9d929e73d4b034e575a200a9ed79c782d62d15654` |
| `img/still-bold-60.jpg` | `5504ef143612596ebead93572ed5c930761be42ffabb9098c375ce644ea9fb74` |
| `img/still-fine-0.jpg` | `ce7faa5af5ae56c561624d9983156a35ba59ee4b68d43090162114a8fe7911d9` |
| `img/still-fine-60.jpg` | `1f734cca2c7998ad4639f0184c95608704d522c6968a45928e524c8b94dac738` |
| `img/still-harbour.jpg` | `db20b2b5a1e9b98ebc6c062bb40e87284fd996aae7e6fd4e0c942a4cb616de0d` |
| `img/still-sixty.jpg` | `271fa011339e82f2120159e0bf4dcf81f90532b382ffc14606d493024b1faa07` |
| `img/still-spatter.jpg` | `8bc11c4d8e68628e79880f211a69649b9dd556ac0054dd39fe8121ccf6de0e89` |
| `img/still-strip.jpg` | `36870656ddf33f8adbf558cdfbab48d8a1d39cc6a8b96c6c8cdd96b821103ea0` |
| `img/still-wash.jpg` | `b5042570d1e67353e3fa6edaa25d2d755efed88aec4529d7357fc66076fc2ac1` |
| `img/still-water.jpg` | `6e12b98991c9b8d33ca952664148732c3874c3da815a560d109b8e2daaa618b3` |
| `img/water-surface.jpg` | `d9955c5a0d75ec5c6ea593f337860243b5b9475615fbe5f056dde9700f2ca456` |
| `js/art.js` | `00dda1148a15b94788565b72b429c4f3f948f0e20a3383c932b2f7a4f67c46ff` |
| `js/ink.js` | `d30a5427aad2e0e4a419c34e0bde438284c6cb2c9081f6e221df41de3e97cc9b` |
| `licenses/OFL-Literata.txt` | `9895ebc015226accf416b758ac1ca02a2fb4f83a89d316791ef697c3dc0852aa` |
| `licenses/OFL-LondrinaSolid.txt` | `eb7e5425f3e8f374d4da122426b9ee0d34436a9fcf0377bfd97033d4d727fac5` |
| `licenses/PROVENANCE.md` | `8d5c7b9dab9e1235cfd1579db217558e41aa03a6806842567f71517e5ecb78db` |
| `licenses/THIRD-PARTY.md` | `68b7350f3dba291d3388146ff0e8efc1a57cc94a15f4aaf3c5be4c68e93c8f1a` |

What the two supporting modules are. Do not rewrite them; the look depends on their exact numbers. Load them after `js/core.js`, because they extend `window.BH`.

- `js/art.js` defines `BH.art` with three functions. Each returns a canvas "ink map" in an 800 x 1000 box (red channel = black ink, green channel = red ink, black = bare skin). Results are cached.
  - `BH.art.emblem(weight = 'bold', parts)`: the whole tattoo (robin on a tree, a bell on the left branch, a fish across the trunk). `weight` is `'bold'` or `'fine'` (thin-line version). `parts`, if given, is an object such as `{ bird: 1 }`, `{ tree: 1 }`, `{ bell: 1 }` or `{ fish: 1 }` and draws only those parts.
  - `BH.art.testStrip()`: a 2400 x 480 strip of four groups of parallel lines, hairline to heavy.
  - `BH.art.tinted(hexColor, weight = 'bold', parts)`: the emblem as a coloured canvas with transparency (used for the purple stencil).
- `js/ink.js` defines `BH.ink`, one shared WebGL2 context that renders every "view":
  - `BH.ink.view(el, options)` appends a canvas to `el` (which already holds an `<img>` still) and returns a view object. The view redraws only while visible and copies its pixels into its own 2D canvas; the element gets the class `is-live` after the first draw. With reduced motion, or without WebGL2, the canvas is removed and the still stays. Options and live fields (set them, then set `dirty = true` if nothing else redraws it): `a` and `b` (ink maps or loaded images), `mode` (0 = tattoo on skin, 1 = picture played back as tinted brightness), `age` (0 = day one, 1 = age 60), `target` and `easing` (the view eases `age` toward `target` by `easing` each frame), `mix` and `mixTarget` (cross-fade from `a` to `b`), `fit` (`'contain'` or `'cover'`), `zoom`, `center` ([x, y] in the art, 0 to 1), `skin` (hex), `limb` (1 = shade the edges like an arm), `jointOn` and `joint` (diagonal split: left of the 45 degree line is day one, right is `age`; `joint` is the cut position across the width, 0 to 1), `focus` and `focusR` (a circle in canvas pixels where the ink looks younger), `cloud` (mode 1: amount of picture `b` darkening over `a`), `time` (mode 1: drift of the gentle wobble), `low` and `high` (mode 1: the two colours the picture is tinted between), `artRes` ([width, height] of the art), `w` (set to 0 to force a resize).
  - `BH.ink.load(src)` returns a promise of an `Image`.

## 3. Rights and honesty

- Londrina Solid and Literata are under the SIL Open Font License 1.1. Their licences are in the pack and must stay with the font files. Do not rename or modify them.
- The five textures in `img/` (`ink-wash`, `night-sea`, `ink-spatter`, `water-surface`, `ink-cloud`) were generated for this project with an image model; the `still-*.jpg` pictures were rendered from the project's own drawing and shader code. `js/art.js` and `js/ink.js` were written for this project. There are no photographs of real people or real client work.
- Black Harbor Tattoo, its artists and its email address are invented. Mail goes to `hello@blackharbor.example`, a reserved address that cannot be delivered. The booking form sends nothing until a form service is connected (section 8). Before anyone publishes the site, the studio name, artists, city, email and facts should be replaced or checked, and the `noindex` tag removed.

## 4. Page markup

Create `index.html` exactly as below. It holds the structure, every hook the scripts need and all of the copy. The inline `style="height:…svh"` on each `.pin-wrap` sets how long that chapter stays pinned while you scroll.

```html
<!doctype html>
<!-- Fictional demo site. Black Harbor Tattoo, its artists and its address are invented. -->
<html lang="en-GB">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Black Harbor Tattoo, Glasgow. See it at 60.</title>
<meta name="description" content="A tattoo keeps changing for years. Black Harbor Tattoo in Glasgow tells you what yours will look like at 60. Three artists. Walk-ins on Saturdays.">
<meta name="robots" content="noindex">
<meta name="theme-color" content="#2a1b14">
<meta property="og:title" content="Black Harbor Tattoo, Glasgow">
<meta property="og:description" content="We tell you what your tattoo will look like at 60.">
<meta property="og:image" content="img/still-block.jpg">
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='15' fill='%232a1b14'/%3E%3Ccircle cx='16' cy='16' r='4' fill='%23dcdfcf'/%3E%3Ccircle cx='16' cy='7.5' r='3' fill='%23dcdfcf'/%3E%3Ccircle cx='8.6' cy='20.2' r='3' fill='%23dcdfcf'/%3E%3Ccircle cx='23.4' cy='20.2' r='3' fill='%23dcdfcf'/%3E%3C/svg%3E">
<link rel="preload" href="fonts/londrina-solid-latin-900-normal.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" as="image" href="img/still-sixty.jpg">
<link rel="stylesheet" href="site.css">
<script type="application/ld+json">{"@context":"https://schema.org","@type":"TattooParlor","name":"Black Harbor Tattoo","address":{"@type":"PostalAddress","addressLocality":"Glasgow","addressCountry":"GB"},"description":"Tattoo shop in Glasgow with three artists and walk-ins on Saturdays."}</script>
</head>
<body>
<a class="skip" href="#blank-reel">Skip to booking</a>

<div class="spine" aria-hidden="true">
  <div class="spine__tape" data-spine></div>
  <div class="spine__head"></div>
</div>

<div class="machine" role="group" aria-label="Tape position">
  <svg class="reel" data-reel="l" viewBox="0 0 40 40" aria-hidden="true"><use href="#reelshape"/></svg>
  <svg class="reel" data-reel="r" viewBox="0 0 40 40" aria-hidden="true"><use href="#reelshape"/></svg>
  <p class="machine__count"><span class="machine__label">Age</span> <span data-count>60.0</span></p>
  <a class="key" href="#blank-reel">Book</a>
</div>

<svg width="0" height="0" style="position:absolute" aria-hidden="true"><defs>
  <symbol id="reelshape" viewBox="0 0 40 40">
    <path fill="currentColor" fill-rule="evenodd" d="M20 1a19 19 0 1 0 0 38a19 19 0 0 0 0-38ZM20 16a4 4 0 1 1 0 8a4 4 0 0 1 0-8ZM20 5a5 5 0 1 1 0 10a5 5 0 0 1 0-10ZM9.5 23.5a5 5 0 1 1 0 10a5 5 0 0 1 0-10ZM30.5 23.5a5 5 0 1 1 0 10a5 5 0 0 1 0-10Z"/>
  </symbol>
</defs></svg>

<main id="reel">
<!-- chapter: played-at-sixty -->
<section class="ch hero" id="played-at-sixty" data-chapter="played-at-sixty" aria-labelledby="hero-h">
  <div class="pin-wrap" style="height:240svh">
    <div class="pin hero__pin">
      <div class="view hero__view" data-hero-view role="img" aria-label="A tattoo of a robin, a bell and a salmon on a tree, seen at age 60. The lines are soft and the black has turned blue-grey.">
        <img src="img/still-sixty.jpg" alt="" width="1400" height="1000" fetchpriority="high">
      </div>
      <div class="hero__text">
        <p class="hero__name">Black Harbor Tattoo. Three artists in Glasgow.</p>
        <h1 id="hero-h">This is it at sixty.</h1>
        <p class="hero__body">A tattoo keeps changing for years. Before you get one, our artists show you what it will look like at 60.</p>
        <div class="hero__row">
          <a class="key" href="#blank-reel">Book with an artist</a>
          <span class="cm cm--ink hero__cue">Scroll to rewind</span>
        </div>
      </div>
      <p class="hero__small">Drawn for this page. Nobody’s actual arm.</p>
    </div>
  </div>
</section>

<!-- chapter: top-end-goes-first -->
<section class="ch ch--flip tef" id="top-end-goes-first" data-chapter="top-end-goes-first" aria-labelledby="tef-h">
  <div class="splice"><span class="splice__note">Rewinding</span></div>
  <div class="pin-wrap" style="height:220svh">
    <div class="pin tef__pin">
      <div class="tef__text">
        <h2 id="tef-h">The top end goes first.</h2>
        <p>On old tape the high notes vanish and the bass stays. Skin does the same to a drawing. Hairlines and tight shading sink into each other while heavy black shapes carry on.</p>
        <p class="tef__kicker">Tattooers have a phrase for it. Bold will hold.</p>
      </div>
      <div class="tef__head" aria-hidden="true"><span class="tef__readout" data-tef-age>Strip at 60</span></div>
      <div class="tef__track" data-tef-track>
        <div class="view tef__view" data-tef-view role="img" aria-label="A strip of skin with four groups of parallel lines, from hairlines on the left to heavy bars on the right.">
          <img src="img/still-strip.jpg" alt="" width="2400" height="480" loading="lazy">
        </div>
        <ul class="tef__labels">
          <li class="cm">Hairline</li>
          <li class="cm">Fine</li>
          <li class="cm">Medium</li>
          <li class="cm">Heavy <span class="tef__still">still here</span></li>
        </ul>
      </div>
      <p class="tef__small">Test strip drawn at one scale for this page.</p>
      <p class="vh">Hairlines close up first with age. Fine lines follow. Medium lines soften. Heavy bars barely change.</p>
    </div>
  </div>
</section>

<!-- chapter: print-through -->
<section class="ch print" id="print-through" data-chapter="print-through" aria-labelledby="print-h">
  <div class="splice"><span class="splice__note">Reel layer, close up</span></div>
  <div class="pin-wrap" style="height:130svh">
    <div class="pin print__pin">
      <div class="view print__view" data-print-view role="img" aria-label="A pale ink wash spreading across paper.">
        <img src="img/still-wash.jpg" alt="" width="1200" height="1200" loading="lazy">
      </div>
      <svg class="print__reel" data-print-reel viewBox="-50 -50 100 100" aria-hidden="true"></svg>
      <div class="print__stack">
        <p class="print__ghost print__ghost--2" data-ghost="2" aria-hidden="true">Two lines too close become one.</p>
        <p class="print__ghost print__ghost--1" data-ghost="1" aria-hidden="true">Two lines too close become one.</p>
        <h2 id="print-h">Two lines too close become one.</h2>
        <div class="print__rule" aria-hidden="true"></div>
        <p class="print__body">Tape stored on a reel prints a faint ghost of itself onto the next layer. Ink has its own version. Lines laid close together creep toward each other until the gap has gone.</p>
        <p class="cm print__small">The gap is the first thing to check.</p>
      </div>
    </div>
  </div>
</section>

<!-- chapter: ink-in-the-harbour -->
<section class="ch ch--flip harbour" id="ink-in-the-harbour" data-chapter="ink-in-the-harbour" aria-labelledby="harbour-h">
  <div class="splice"><span class="splice__note">Under the skin</span></div>
  <div class="pin-wrap" style="height:200svh">
    <div class="pin harbour__pin">
      <div class="view harbour__view" data-harbour-view role="img" aria-label="Dark water with a cloud of black ink slowly spreading through it.">
        <img src="img/still-harbour.jpg" alt="" width="1400" height="800" loading="lazy">
      </div>
      <div class="harbour__text" data-harbour-text>
        <h2 id="harbour-h">Your skin doesn’t hold it. Cells do.</h2>
        <p>Ink sits in the dermis, inside cells called macrophages that swallow it and can’t digest it. When one dies the next picks up the pigment. Some of the ink slips away to the lymph nodes and doesn’t come back.</p>
        <p class="harbour__aside">None of those cells knows it’s carrying a bird.</p>
        <p class="harbour__cite">From a 2018 study of tattooed skin in mice.</p>
      </div>
    </div>
  </div>
</section>

<!-- chapter: worst-speaker -->
<section class="ch worst on-paper" id="worst-speaker" data-chapter="worst-speaker" aria-labelledby="worst-h">
  <div class="splice"><span class="splice__note">Kitchen radio test</span></div>
  <div class="worst__head">
    <h2 id="worst-h">We check it on the worst speaker.</h2>
    <div>
      <p>Engineers finish a mix, then play it through a kitchen radio. If it survives that, it’s done. Our kitchen radio is your arm at sixty.</p>
      <p class="worst__small">Sometimes that means telling you to go bigger.</p>
    </div>
  </div>
  <div class="worst__bench">
    <figure class="worst__panel worst__panel--fine">
      <div class="view" data-worst-fine role="img" aria-label="A fine line version of the tattoo.">
        <img src="img/still-fine-60.jpg" alt="" width="800" height="1000" loading="lazy" data-sixty="img/still-fine-60.jpg" data-zero="img/still-fine-0.jpg">
      </div>
      <figcaption>Fine line version <span data-worst-age>Age 60</span></figcaption>
    </figure>
    <figure class="worst__panel worst__panel--bold">
      <div class="view" data-worst-bold role="img" aria-label="A bold version of the same tattoo.">
        <img src="img/still-bold-60.jpg" alt="" width="800" height="1000" loading="lazy" data-sixty="img/still-bold-60.jpg" data-zero="img/still-bold-0.jpg">
      </div>
      <figcaption>Bold version <span data-worst-age>Age 60</span></figcaption>
    </figure>
    <div class="worst__switch">
      <button class="rocker" type="button" data-rocker aria-pressed="true" aria-label="Kitchen radio on. Press for studio monitor.">
        <span class="rocker__top">Studio monitor</span>
        <span class="rocker__bot">Kitchen radio</span>
      </button>
      <p class="cm worst__told" data-told hidden>told you</p>
    </div>
  </div>
</section>

<!-- chapter: three-tracks -->
<section class="ch ch--flip tracks" id="three-tracks" data-chapter="three-tracks" aria-labelledby="tracks-h">
  <div class="splice"><span class="splice__note">Three tracks</span></div>
  <div class="tracks__in">
    <div class="tracks__head">
      <h2 id="tracks-h">Three artists. Three tracks.</h2>
      <div class="tracks__side">
        <p>Black Harbor has three artists. Book with one of them and that’s who you’ll talk to about how it will age.</p>
        <a class="key" href="#blank-reel">Book with an artist</a>
      </div>
    </div>
    <ol class="lanes">
      <li class="lane lane--1">
        <div class="view" data-lane-view="bird" role="img" aria-label="The bird from the drawing."><img src="img/still-bold-0.jpg" alt="" width="800" height="1000" loading="lazy"></div>
        <p class="lane__foot"><span class="lane__n">Track 1</span><button class="key" type="button" data-solo aria-pressed="false" aria-label="Solo track 1">Solo</button></p>
      </li>
      <li class="lane lane--2">
        <div class="view" data-lane-view="bell" role="img" aria-label="The bell from the drawing."><img src="img/still-bold-0.jpg" alt="" width="800" height="1000" loading="lazy"></div>
        <p class="lane__foot"><span class="lane__n">Track 2</span><button class="key" type="button" data-solo aria-pressed="false" aria-label="Solo track 2">Solo</button></p>
      </li>
      <li class="lane lane--3">
        <div class="view" data-lane-view="fish" role="img" aria-label="The fish from the drawing."><img src="img/still-bold-0.jpg" alt="" width="800" height="1000" loading="lazy"></div>
        <p class="lane__foot"><span class="lane__n">Track 3</span><button class="key" type="button" data-solo aria-pressed="false" aria-label="Solo track 3">Solo</button></p>
      </li>
    </ol>
    <p class="tracks__small">These are parts of the drawing on this page, not any artist’s work. Solo plays one of them at 60.</p>
  </div>
</section>

<!-- chapter: splicing-block -->
<section class="ch block" id="splicing-block" data-chapter="splicing-block" aria-labelledby="block-h">
  <div class="splice"><span class="splice__note">Razor here</span></div>
  <div class="pin-wrap" style="height:420svh">
    <div class="pin block__pin">
      <div class="block__side">
        <h2 id="block-h">Cut it anywhere.</h2>
        <p class="block__body">Left of the razor is day one. Right of it is you at 60. Drag the cut.</p>

        <div class="block__controls">
          <label class="block__age">
            <span>Your age today</span>
            <input data-age-input type="number" inputmode="numeric" min="16" max="99" value="25">
          </label>
          <div class="block__skin" role="group" aria-label="Skin tone">
            <button class="key" type="button" data-skin="--skin-light" aria-pressed="false">Lighter skin</button>
            <button class="key" type="button" data-skin="--skin-medium" aria-pressed="true">Medium skin</button>
            <button class="key" type="button" data-skin="--skin-deep" aria-pressed="false">Deeper skin</button>
          </div>
          <p class="block__readout" data-readout aria-live="polite"><strong>35</strong> years on the reel</p>
        </div>

        <p class="block__small">An illustration of how ink usually ages. Sun, placement and your own skin change the result. Ask your artist about yours.</p>
      </div>

      <div class="groove" data-groove>
        <div class="view groove__view" data-block-view role="img" aria-label="The same tattoo across a diagonal cut, sharp and dark at day one on the left, soft and blue-grey at age 60 on the right.">
          <img src="img/still-block.jpg" alt="" width="1400" height="1000" loading="lazy">
        </div>
        <p class="cm groove__tag groove__tag--l">Day one</p>
        <p class="cm groove__tag groove__tag--r">Age 60</p>
        <span class="tab tab--top" data-tab="top" aria-hidden="true"></span>
        <span class="tab tab--bot" data-tab="bot" aria-hidden="true"></span>
        <div class="razor" data-razor aria-hidden="true">
          <svg viewBox="0 0 64 200" width="64" height="200"><defs><linearGradient id="steel" x1="0" x2="1"><stop offset="0" style="stop-color:var(--metal)"/><stop offset=".5" style="stop-color:var(--leader)"/><stop offset="1" style="stop-color:var(--metal-low)"/></linearGradient></defs>
            <path fill="url(#steel)" stroke="var(--fresh)" stroke-width="2" d="M4 4h56v62l-7 8 7 8v36l-7 8 7 8v62H4v-62l7-8-7-8V82l7-8-7-8Z"/>
            <path fill="var(--leader)" d="M6 6h5v188H6z" opacity=".8"/>
            <path fill="var(--fresh)" d="M26 30h12v140H26z"/>
            <circle cx="32" cy="100" r="11" fill="var(--fresh)"/>
          </svg>
        </div>
        <label class="vh" for="joint">Position of the razor cut</label>
        <input id="joint" class="groove__range" data-joint type="range" min="0" max="100" value="62" step="0.1" aria-valuetext="Mostly day one">
      </div>
    </div>
  </div>
</section>

<!-- chapter: storage-instructions -->
<section class="ch box" id="storage-instructions" data-chapter="storage-instructions" aria-labelledby="box-h">
  <div class="splice"><span class="splice__note">Back of the box</span></div>
  <div class="box__stage">
    <div class="box__panel" data-box>
      <p class="box__stamp">Keep cool</p>
      <h2 id="box-h">Store away from sunlight.</h2>
      <ol class="box__list">
        <li>Handle with clean hands. Wash it gently while it heals.</li>
        <li>Don’t pick the flakes. That’s skin coming off. The ink stays below.</li>
        <li>Keep it out of pools, baths and the sea until it’s healed.</li>
        <li>After that, cover it or use sunscreen. Sun does more to a tattoo than anything else.</li>
      </ol>
      <p class="box__small">Your artist will give you aftercare for your piece. Follow theirs over ours.</p>
    </div>
  </div>
</section>

<!-- chapter: stencil-gets-wiped -->
<section class="ch ch--flip stencil on-paper" id="stencil-gets-wiped" data-chapter="stencil-gets-wiped" aria-labelledby="stencil-h">
  <div class="splice"><span class="splice__note">Before the needle</span></div>
  <div class="stencil__in">
    <div class="stencil__text">
      <h2 id="stencil-h">The first draft gets wiped off.</h2>
      <p>Every tattoo starts as a purple stencil on your skin. It’s checked in the mirror, then it disappears under the needle.</p>
      <p class="stencil__tally"><span data-wiped>0</span>% wiped</p>
      <button class="key" type="button" data-wipe-all>Wipe the stencil</button>
      <p class="cm cm--ink stencil__cue" data-cue>Rub it out</p>
      <p class="stencil__small">You can move it before we start. Afterwards you can’t.</p>
    </div>
    <div class="stencil__stage" data-stage role="img" aria-label="A purple stencil of the tattoo over its fresh black line. Rubbing removes the purple.">
      <div class="view" data-stencil-view>
        <img src="img/still-bold-0.jpg" alt="" width="800" height="1000" loading="lazy">
      </div>
      <canvas class="stencil__top" data-stencil-top aria-hidden="true"></canvas>
    </div>
  </div>
</section>

<!-- chapter: open-reel-saturday -->
<section class="ch sat" id="open-reel-saturday" data-chapter="open-reel-saturday" aria-labelledby="sat-h">
  <div class="splice"><span class="splice__note">Open reel</span></div>
  <div class="sat__in">
    <h2 id="sat-h">Saturdays, walk in.</h2>
    <p class="sat__body">Every other day, book with an artist. On Saturdays you can just come through the door.</p>
    <ol class="week" data-week aria-label="The week">
      <li class="week__day"><abbr title="Monday">Mon</abbr></li>
      <li class="week__day"><abbr title="Tuesday">Tue</abbr></li>
      <li class="week__day"><abbr title="Wednesday">Wed</abbr></li>
      <li class="week__day"><abbr title="Thursday">Thu</abbr></li>
      <li class="week__day"><abbr title="Friday">Fri</abbr></li>
      <li class="week__day week__day--sat"><abbr title="Saturday">Sat</abbr></li>
      <li class="week__day"><abbr title="Sunday">Sun</abbr></li>
    </ol>
    <p class="sat__live cm" data-live>Saturdays, walk in.</p>
  </div>
</section>

<!-- chapter: track-sheet -->
<section class="ch ch--flip sheet on-paper" id="track-sheet" data-chapter="track-sheet" aria-labelledby="sheet-h">
  <div class="splice"><span class="splice__note">Track sheet</span></div>
  <div class="sheet__in">
    <div class="sheet__margin" data-margin aria-hidden="true"></div>
    <h2 id="sheet-h">What people ask once they’re sitting down.</h2>
    <table class="ts">
      <thead><tr><th scope="col">Trk</th><th scope="col">Question</th><th scope="col">Take</th></tr></thead>
      <tbody>
        <tr><td>1</td><th scope="row">Why do you keep telling me to go bigger?</th><td class="ts__a">Small detail closes up. Bigger gives the gaps room to stay open.</td></tr>
        <tr><td>2</td><th scope="row">How long does it stay sharp?</th><td class="ts__a">It softens slowly for years. Ask us what yours will do and we’ll tell you.</td></tr>
        <tr><td>3</td><th scope="row">Does black stay black?</th><td class="ts__a">Old black drifts toward a blue-green grey. It’s still ink. It just looks older, like the rest of us.</td></tr>
        <tr><td>4</td><th scope="row">What fades it fastest?</th><td class="ts__a">Sun. Lighter colours usually go before black does.</td></tr>
        <tr><td>5</td><th scope="row">Will it hurt?</th><td class="ts__a">Yes. How much depends where it goes. Ribs and feet are usually worse than the outer arm.</td></tr>
        <tr><td>6</td><th scope="row">I’m 17. Can I?</th><td class="ts__a">No. Tattooing anyone under 18 is against the law in Great Britain.</td></tr>
      </tbody>
    </table>
    <p class="sheet__small">Tattooing of Minors Act 1969.</p>
  </div>
</section>

<!-- chapter: blank-reel -->
<section class="ch reelend on-paper" id="blank-reel" data-chapter="blank-reel" aria-labelledby="reel-h">
  <div class="splice splice--leader"><span class="splice__note">Tape ends here</span></div>
  <div class="reelend__in">
    <p class="reelend__over">The tape runs out here. Everything before this was played back from something nobody has recorded yet.</p>
    <svg class="reelend__empty" data-empty-reel viewBox="0 0 40 40" aria-hidden="true"><use href="#reelshape"/></svg>
    <h2 id="reel-h">This part of the reel is yours.</h2>
    <form class="lid" data-form novalidate>
      <p class="lid__brand">Session box. Black Harbor Tattoo, Glasgow.</p>
      <label class="lid__f"><span>Your name</span><input name="name" autocomplete="name" required aria-describedby="err-name"><i class="tick" aria-hidden="true"></i><small id="err-name" class="lid__err" data-err="name"></small></label>
      <label class="lid__f"><span>Email or phone</span><input name="contact" autocomplete="email" required aria-describedby="err-contact"><i class="tick" aria-hidden="true"></i><small id="err-contact" class="lid__err" data-err="contact"></small></label>
      <label class="lid__f"><span>Which artist? Leave blank if you’re not sure.</span><input name="artist"></label>
      <label class="lid__f"><span>Your age today</span><input name="age" type="number" inputmode="numeric" min="18" max="120" required aria-describedby="err-age"><i class="tick" aria-hidden="true"></i><small id="err-age" class="lid__err" data-err="age"></small></label>
      <label class="lid__f lid__f--wide"><span>What do you want?</span><textarea name="idea" rows="3" required aria-describedby="err-idea"></textarea><i class="tick" aria-hidden="true"></i><small id="err-idea" class="lid__err" data-err="idea"></small></label>
      <label class="lid__f lid__f--wide"><span>Where on your body?</span><input name="place"></label>
      <div class="lid__end">
        <button class="key lid__go" type="submit" data-go>Book the session</button>
        <p class="lid__msg" data-msg role="status"></p>
        <button class="key lid__copy" type="button" data-copy hidden>Copy my details</button>
      </div>
    </form>
  </div>
</section>

<!-- chapter: never-flew -->
<section class="ch ch--flip never" id="never-flew" data-chapter="never-flew" aria-labelledby="never-h">
  <div class="splice splice--leader"><span class="splice__note">Tail</span></div>
  <div class="view never__water" data-water-view role="img" aria-label="Black water at night.">
    <img src="img/still-water.jpg" alt="" width="1400" height="800" loading="lazy">
  </div>
  <div class="never__in">
    <h2 class="vh" id="never-h">The rhyme for Glasgow’s coat of arms</h2>
    <div class="never__stage">
      <p class="never__line never__line--1" data-part="bird">Here’s the bird that never flew.</p>
      <p class="never__line never__line--2" data-part="tree">Here’s the tree that never grew.</p>
      <div class="view never__art" data-never-view role="img" aria-label="The whole tattoo at day one, sharp and black, with a robin, a tree, a bell and a salmon.">
        <img src="img/still-bold-0.jpg" alt="" width="800" height="1000" loading="lazy">
      </div>
      <p class="never__line never__line--3" data-part="bell">Here’s the bell that never rang.</p>
      <p class="never__line never__line--4" data-part="fish">Here’s the fish that never swam.</p>
      <svg class="never__wires" viewBox="0 0 100 100" preserveAspectRatio="none" aria-hidden="true" data-wires>
        <line x1="24" y1="17" x2="42" y2="14"/>
        <line x1="72" y1="31" x2="55" y2="40"/>
        <line x1="28" y1="70" x2="38" y2="56"/>
        <line x1="72" y1="67" x2="58" y2="74"/>
      </svg>
    </div>
    <p class="never__after">Glasgow’s old rhyme for its coat of arms. You’ve been looking at them since the top of the page.</p>
  </div>
  <div class="view never__spatter" data-spatter-view role="img" aria-label="A spatter of ink.">
    <img src="img/still-spatter.jpg" alt="" width="1200" height="400" loading="lazy">
  </div>
</section>
</main>

<footer class="tail on-paper" data-tail>
  <div class="tail__strip">
    <p class="tail__name">Black Harbor Tattoo</p>
    <p class="tail__line">Glasgow. Three artists. Walk in on a Saturday, book any other day.</p>
    <p class="tail__line"><a href="mailto:hello@blackharbor.example">hello@blackharbor.example</a></p>
    <a class="tail__rewind key" href="#played-at-sixty">Rewind to sixty</a>
    <p class="tail__colophon cm">Set in Londrina Solid and Literata. Every tattoo here was drawn in code for this page, so there are no client photos on the reel.</p>
  </div>
</footer>

<noscript><p class="noscript">The drawings on this reel are stills without JavaScript. Message the shop to book.</p></noscript>
<script defer src="js/core.js"></script>
<script defer src="js/art.js"></script>
<script defer src="js/ink.js"></script>
<script defer src="js/chapters.js"></script>
</body>
</html>
```

Create `404.html` exactly as below.

```html
<!doctype html>
<html lang="en-GB">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Snapped tape. Black Harbor Tattoo</title>
<meta name="robots" content="noindex">
<meta name="theme-color" content="#2a1b14">
<link rel="stylesheet" href="site.css">
<style>
.snap { min-height: 100svh; display: grid; align-content: center; gap: 22px; padding: 0 var(--gutter) 0 var(--gutter-l); }
.snap h1 { font-size: clamp(70px, 14vw, 240px); }
.snap__tape { height: 44px; background: repeating-linear-gradient(to bottom, var(--oxide-lift) 0 2px, var(--oxide) 2px 4px); clip-path: polygon(0 0, 62% 0, 58% 100%, 0 100%); }
</style>
</head>
<body>
<main class="snap">
  <div class="snap__tape" aria-hidden="true"></div>
  <h1>This tape has snapped.</h1>
  <p>The page you wanted isn’t on this reel.</p>
  <p><a class="key" href="index.html">Back to the reel</a></p>
</main>
</body>
</html>
```

## 5. Styles

Create `site.css` exactly as below. It contains the fonts, colour tokens, the razor-cut chapter geometry, every chapter's layout and the phone layout (one breakpoint family around 640 and 760 pixels wide; tablets use the desktop rules with fluid `clamp()` sizes).

How the page is put together, so you understand the CSS: the body is oxide brown `#2a1b14`; paper chapters (`.on-paper`) are leader cream `#dcdfcf`; the yellow marker `#f0cf33` is only ever used for marks; purple `#5a2fa0` is the stencil colour. Each chapter is a length of tape. It starts with a `.splice` band: a slanted strip (7vw rise, 11vw on phones) with a small handwritten note in Londrina Solid Light, drawn so the chapter meets the previous one at a razor-cut angle; `.ch--flip` chapters slant the other way. A fixed tape spine runs down the left edge (34px wide, 14px on phones) and a fixed "machine" sits bottom right: two spinning reels, the counter and a yellow Book key. Display type is Londrina Solid Black (900), body text Literata. Buttons are "keys": yellow, square-cornered, with a hard 3px bottom shadow that disappears when pressed.

```css
/* Tokens */
/* Londrina Solid and Literata: SIL Open Font License 1.1, see fonts/OFL-*.txt */
@font-face { font-family: "Londrina Solid"; src: url(fonts/londrina-solid-latin-300-normal.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Londrina Solid"; src: url(fonts/londrina-solid-latin-900-normal.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Literata"; src: url(fonts/literata-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Literata"; src: url(fonts/literata-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Literata fallback"; src: local("Georgia"); size-adjust: 97%; ascent-override: 92%; }

:root {
  --oxide: #2a1b14;
  --leader: #dcdfcf;
  --fresh: #0c0b0d;
  --old: #2b4c55;
  --old-lift: #5a8590;
  --stencil: #5a2fa0;
  --marker: #f0cf33;

  /* Skin is rendered material, read by the shader. */
  --skin-light: #e9c6ad;
  --skin-medium: #cda084;
  --skin-deep: #6d4530;

  --oxide-lift: color-mix(in srgb, var(--oxide) 82%, var(--leader));
  --metal: color-mix(in srgb, var(--leader) 62%, var(--old));
  --metal-low: color-mix(in srgb, var(--old) 62%, var(--oxide));

  --display: "Londrina Solid", "Arial Narrow", sans-serif;
  --body: "Literata", "Literata fallback", Georgia, serif;

  --band: clamp(44px, 5.4vw, 84px);
  --cut-pad: calc(var(--cut) + var(--band));
  --cut: 7vw;          /* rise of a chapter's razor cut */
  --cut-angle: 4.004deg; /* atan(0.07) */
  --spine: 34px;
  --gutter: clamp(20px, 5vw, 76px);
  --gutter-l: calc(var(--spine) + var(--gutter));
  --ease-out: cubic-bezier(.16, .84, .3, 1);
  --ease-hard: cubic-bezier(.7, 0, .2, 1);
  /* Text measure: line lengths are set in units of 0.698em (var(--ch)) so they do not depend on the body face. */
  --ch: .698em;
}

@media (max-width: 640px) {
  :root { --spine: 14px; --gutter: 18px; --cut: 11vw; --cut-angle: 6.277deg; }
}


/* Base */
* { box-sizing: border-box; }
html { background: var(--oxide); scroll-behavior: smooth; scrollbar-color: var(--oxide-lift) var(--leader); font-synthesis: none; overflow-x: clip; }
body { margin: 0; color: var(--leader); background: var(--oxide); font: 400 clamp(16px, 1.25vw, 19px)/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; caret-color: var(--stencil); }
::selection { background: var(--marker); color: var(--oxide); }
img, canvas, svg { display: block; }
h1, h2 { font-family: var(--display); font-weight: 900; margin: 0; letter-spacing: -.012em; line-height: .92; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; max-width: calc(58 * var(--ch)); }
a { color: inherit; text-decoration: none; background: linear-gradient(var(--marker), var(--marker)) 0 100% / 0 2px no-repeat; transition: background-size 220ms var(--ease-out); }
a:hover, a:focus-visible { background-size: 100% 2px; }
:focus-visible { outline: 2px solid var(--marker); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 50px; z-index: 90; padding: 10px 14px; background: var(--marker); color: var(--oxide); transform: translateY(-200%); }
.skip:focus { transform: none; }
.noscript { padding: 20px var(--gutter-l); }

/* China marker: only ever marks something. */
.cm { --ch: 1ch; font-family: var(--display); font-weight: 300; color: var(--marker); transform: rotate(-1.4deg); transform-origin: 0 50%; letter-spacing: .01em; }
.on-paper .cm, .cm--ink { color: var(--stencil); }

/* Machine keys: physical, press down. */
.key { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; font: 900 19px/1 var(--display); letter-spacing: .02em; color: var(--oxide); background-color: var(--marker); background-image: none; border: 0; border-bottom: 3px solid color-mix(in srgb, var(--marker) 55%, var(--oxide)); cursor: pointer; transition: transform 90ms var(--ease-hard), border-bottom-width 90ms var(--ease-hard), filter 120ms; }
.key:hover { filter: brightness(1.1); }
.key:active { transform: translateY(2px); border-bottom-width: 1px; }
.key[aria-pressed="false"] { background-color: var(--leader); }

/* A chapter is a length of tape. It meets the last one at a razor cut. */
.ch { overflow-x: clip; position: relative; margin-top: calc(var(--cut) * -1); padding-top: var(--cut); clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); }
.ch--flip { clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 100%); }
.ch:first-child { margin-top: 0; padding-top: 0; clip-path: none; }
.ch > * { z-index: 1; }
main { position: relative; }
.splice { position: absolute; left: -12vw; right: -12vw; top: calc(var(--cut) / 2); height: var(--band); transform-origin: 50% 0; transform: rotate(calc(var(--cut-angle) * -1)) translate3d(var(--sx, 0), 0, 0); background: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--oxide) 88%, var(--fresh)) 0 2px, var(--oxide-lift) 2px 3px, var(--oxide) 3px 5px); border-block: 2px solid color-mix(in srgb, var(--leader) 55%, var(--oxide)); pointer-events: none; z-index: 4; will-change: transform; }
.ch--flip > .splice { transform: rotate(var(--cut-angle)) translate3d(var(--sx, 0), 0, 0); }
.splice::after { content: ""; position: absolute; top: -2px; bottom: -2px; left: 62%; width: calc(var(--band) * .9); background: var(--leader); transform: skewX(-45deg); box-shadow: 0 0 0 1px color-mix(in srgb, var(--fresh) 40%, transparent); }
.splice--leader { background: var(--leader); border-block-color: var(--oxide); }
.splice--leader::after { background: var(--oxide); }
.splice__note { position: absolute; left: calc(12vw + var(--gutter-l)); top: 50%; transform: translateY(-50%) rotate(-1.2deg); font: 300 clamp(20px, 2.2vw, 34px)/1 var(--display); color: var(--marker); white-space: nowrap; }
.splice--leader .splice__note { color: var(--stencil); }

.pin-wrap { position: relative; }
.pin { position: sticky; top: 0; height: 100svh; overflow: clip; }

/* A rendered view: still underneath, canvas above when it is ready. */
.view { position: relative; overflow: hidden; background: var(--old); }
.view > img, .view > canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.view > canvas { visibility: hidden; }
.view.is-live > canvas { visibility: visible; }
.view.is-live > img { visibility: hidden; }

/* Tape spine. */
.spine { position: fixed; inset: 0 auto 0 0; width: var(--spine); z-index: 40; overflow: hidden; background: var(--oxide); transform: translateY(-100%); animation: thread 420ms var(--ease-out) 40ms forwards; }
@keyframes thread { to { transform: none; } }
.spine__tape { position: absolute; left: 0; right: 0; top: -2000px; height: 8000px; will-change: transform; background:
  repeating-linear-gradient(45deg, transparent 0 111px, color-mix(in srgb, var(--leader) 72%, transparent) 111px 113px),
  repeating-linear-gradient(to right, color-mix(in srgb, var(--oxide) 88%, var(--fresh)) 0 2px, var(--oxide-lift) 2px 3px, var(--oxide) 3px 6px); }
.spine__head { position: absolute; left: 0; right: 0; top: 34vh; height: 56px; background: var(--metal); border-block: 2px solid var(--fresh); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fresh) 30%, transparent); }
.spine__head::after { content: ""; position: absolute; left: 22%; right: 22%; top: 50%; height: 2px; background: var(--fresh); }

/* Machine: reels and counter. */
.machine { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; background: var(--oxide); border: 1px solid var(--old); color: var(--leader); }
.reel { width: 30px; height: 30px; color: var(--metal); transform-origin: center; will-change: transform; }
.machine__count { font: 900 21px/1 var(--display); font-variant-numeric: tabular-nums; min-width: 92px; margin: 0 4px; max-width: none; }
.machine__label { font-weight: 300; font-size: 16px; }

@media (max-width: 640px) {
  .machine { right: 8px; bottom: 8px; gap: 4px; padding: 4px 4px 4px 6px; }
  .reel { width: 22px; height: 22px; }
  .machine__count { font-size: 18px; min-width: 72px; }
  .spine__head { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
  .spine { transform: none; }
}
@media print {
  .spine, .machine, .skip, .view, [data-chapter="played-at-sixty"] .view { display: none !important; }
  html, body, .ch { background: #fff !important; color: #000 !important; clip-path: none !important; margin: 0 !important; }
  .pin { position: static; height: auto; }
  .pin-wrap { height: auto !important; }
}

/* The tail of the reel: leader running out, ending on a last cut. */
.tail { position: relative; z-index: 2; margin-top: calc(var(--cut) * -1); padding: var(--cut-pad) 0 0; background: var(--leader); color: var(--fresh); clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); }
.tail__strip { padding: 4vh var(--gutter) calc(9vw + 90px) var(--gutter-l); display: grid; gap: 14px; justify-items: start; background: var(--leader); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 7vw)); }
.tail__name { font: 900 clamp(64px, 14.4vw, 280px)/.86 var(--display); letter-spacing: -.012em; max-width: none; }
.tail__line { font-size: clamp(19px, 1.6vw, 24px); }
.tail__colophon { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.1; max-width: 46ch; color: var(--stencil); margin-top: 10px; }
.tail::after { content: ""; display: block; height: 7vw; margin-top: -7vw; background: var(--oxide); }
@media print { .tail { clip-path: none; } .tail__strip { clip-path: none; padding-bottom: 20px; } .tail::after { display: none; } }


/* chapter: played-at-sixty */
.hero { background: var(--skin-medium); color: var(--fresh); }
.hero__view { position: absolute; inset: 0; background: var(--skin-medium); }
.hero__view > img, .hero__view > canvas { inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); animation: breath 7s ease-in-out infinite alternate; }
@keyframes breath { from { transform: translateY(-6px); } to { transform: translateY(6px); } }
.hero__text { position: absolute; left: var(--gutter-l); bottom: clamp(20px, 7vh, 72px); width: min(60vw, 900px); z-index: 2; display: grid; gap: clamp(10px, 2vh, 20px); }
.hero__name { font: 300 clamp(20px, 1.8vw, 28px)/1 var(--display); }
.hero h1 { font-size: clamp(82px, 11.4vw, 216px); color: var(--fresh); }
.hero__body { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.3; max-width: calc(34 * var(--ch)); font-weight: 700; }
.hero__row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero__cue { font-size: clamp(22px, 2.2vw, 32px); margin: 0; color: var(--fresh); }
.hero__small { position: absolute; right: 18px; top: 18px; font-size: 14px; margin: 0; z-index: 2; color: var(--fresh); }

@media (max-width: 640px) {
  .hero__text { width: auto; right: var(--gutter); top: 72px; bottom: auto; }
  .hero h1 { font-size: 18vw; }
  .hero__row { position: fixed; left: calc(var(--spine) + 12px); bottom: 56px; }
  .hero__pin { position: sticky; }
  .hero__row { position: static; }
  .hero__small { right: auto; left: calc(var(--spine) + 18px); top: 16px; }
}


/* chapter: top-end-goes-first */
.tef { background: var(--oxide); color: var(--leader); }
.tef__pin { display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3.4vh, 40px); padding: calc(var(--cut) + 8px) var(--gutter) 30px var(--gutter-l); }
.tef__text { max-width: calc(74 * var(--ch)); display: grid; gap: 12px; }
.tef h2 { font-size: clamp(54px, 7.2vw, 138px); }
.tef__kicker { font: 900 clamp(24px, 2.6vw, 40px)/1.05 var(--display); color: var(--marker); }
.tef__track { position: relative; width: 136vw; will-change: transform; }
.tef__view { width: 100%; aspect-ratio: 5 / 1; background: var(--skin-medium); border-block: 2px dashed color-mix(in srgb, var(--leader) 42%, transparent); }
.tef__labels { list-style: none; margin: 0; padding: 6px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); font-size: clamp(22px, 2.4vw, 36px); }
.tef__labels li { padding-left: 2.5%; transition: transform 180ms var(--ease-out); }
.tef__labels li.is-over { transform: rotate(-3deg); }
.tef__still { color: var(--leader); margin-left: 8px; font-size: .72em; }
.tef__head { position: absolute; left: 50%; bottom: 44px; width: 2px; height: 30vw; background: var(--marker); z-index: 2; }
.tef__readout { position: absolute; left: 8px; top: 0; white-space: nowrap; font: 900 22px/1 var(--display); color: var(--marker); background: var(--oxide); padding: 4px 8px; font-variant-numeric: tabular-nums; }
.tef__small { font-size: 14px; }
@media (max-width: 640px) {
  .tef__pin { justify-content: flex-start; padding-top: calc(var(--cut-pad) + 34px); gap: 14px; }
  .tef h2 { font-size: 16vw; }
  .tef__track { width: 400vw; }
  .tef__head { left: 62%; height: 72vw; bottom: 88px; }
}



/* chapter: print-through */
.print { background: var(--oxide-lift); color: var(--leader); }
.print__view { position: absolute; inset: 0; background: var(--oxide-lift); }
.print__stack { position: absolute; left: var(--gutter-l); right: var(--gutter); top: 50%; transform: translateY(-50%); }
.print h2, .print__ghost { font: 900 clamp(66px, 12vw, 228px)/.9 var(--display); letter-spacing: -.012em; max-width: none; margin: 0; text-wrap: balance; }
.print__ghost { position: absolute; left: 0; right: 0; top: 0; color: var(--leader); opacity: .1; will-change: transform, opacity; }
.print__rule { height: 2px; background: var(--leader); margin: clamp(14px, 3vh, 26px) 0; opacity: .5; }
.print__body { font-size: clamp(18px, 1.5vw, 22px); }
.print__small { font-size: clamp(22px, 2.2vw, 32px); margin-top: 12px; }
@media (max-width: 640px) { .print h2, .print__ghost { font-size: 19vw; } .print__ghost--2 { display: none; } }


.print__reel { position: absolute; right: -20vw; top: 50%; width: min(86vw, 150svh); aspect-ratio: 1; margin-top: calc(min(86vw, 150svh) / -2); will-change: transform; }
.print__stack { z-index: 2; }
@media (max-width: 640px) { .print__reel { right: -56vw; width: 150vw; margin-top: -75vw; } }


/* chapter: ink-in-the-harbour */
.harbour { background: var(--fresh); color: var(--leader); }
.harbour__view { position: absolute; inset: 0; background: var(--fresh); }
.harbour__text { position: absolute; right: var(--gutter); bottom: clamp(72px, 12vh, 120px); width: min(38rem, 56vw); display: grid; gap: 12px; will-change: transform; }
.harbour h2 { font-size: clamp(50px, 5.8vw, 110px); }
.harbour__aside { font: 900 clamp(24px, 2.4vw, 38px)/1.06 var(--display); color: var(--marker); }
.harbour__cite { font-size: 14px; font-variant-numeric: oldstyle-nums; }
.harbour__cite a { display: inline-block; padding: 12px 0; }
@media (max-width: 640px) { .harbour__text { left: var(--gutter-l); right: var(--gutter); top: calc(var(--cut-pad) + 20px); bottom: auto; width: auto; } .harbour h2 { font-size: 14vw; } }



/* chapter: worst-speaker */
.worst { background: var(--leader); color: var(--fresh); }
.worst__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4vw; align-items: end; padding: calc(var(--cut-pad) + 5vh) var(--gutter) 4vh var(--gutter-l); }
.worst h2 { font-size: clamp(58px, 8.2vw, 158px); }
.worst__small { font: 900 clamp(22px, 2.3vw, 34px)/1.1 var(--display); color: var(--stencil); margin-top: 12px; }
.worst__bench { position: relative; display: grid; grid-template-columns: 60fr 40fr; height: min(94svh, 62vw); margin-left: var(--spine); padding-bottom: 7vw; clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%); }
.worst__panel { margin: 0; position: relative; }
.worst__panel .view { position: absolute; inset: 0; background: var(--skin-medium); transition: transform 500ms var(--ease-out); }
.worst.is-leaning .worst__panel .view { transform: scale(1.012); }
.worst__panel figcaption { position: absolute; left: 14px; bottom: 12px; display: flex; gap: 14px; transform: rotate(-1.4deg); color: var(--fresh); font: 300 clamp(24px, 2.5vw, 38px)/1 var(--display); font-variant-numeric: tabular-nums; }
.worst__switch { position: absolute; left: 60%; top: 42%; transform: translate(-50%, -50%); display: grid; gap: 10px; justify-items: center; z-index: 2; }
.rocker { display: grid; grid-template-rows: 1fr 1fr; width: clamp(130px, 13vw, 200px); height: clamp(230px, 24vw, 340px); padding: 0; background: var(--fresh); border: 5px solid var(--fresh); cursor: pointer; transform: perspective(600px) rotateX(6deg); transition: transform 140ms var(--ease-hard); }
.rocker[aria-pressed="false"] { transform: perspective(600px) rotateX(-6deg); }
.rocker:active { filter: brightness(1.25); }
.rocker span { display: grid; place-items: center; padding: 10px; font: 900 clamp(20px, 2vw, 30px)/1 var(--display); color: var(--leader); background: var(--old); transition: background-color 140ms; }
.rocker[aria-pressed="true"] .rocker__bot, .rocker[aria-pressed="false"] .rocker__top { background: var(--marker); color: var(--fresh); }
.worst__told { font-size: 38px; margin: 0; color: var(--stencil); }
@media (max-width: 760px) {
  .worst__head { grid-template-columns: 1fr; gap: 12px; }
  .worst__bench { grid-template-columns: 1fr; grid-template-rows: 96vw 96vw; height: auto; padding-bottom: 16vw; gap: 74px; }
  .worst__switch { left: 50%; top: calc(96vw + 37px); }
  .rocker { width: 76vw; height: 64px; grid-template-rows: none; grid-template-columns: 1fr 1fr; transform: none; }
  .rocker[aria-pressed="false"] { transform: none; }
  .rocker span { font-size: 19px; }
  .worst__told { position: absolute; right: 0; top: 66px; font-size: 26px; }
}



/* chapter: three-tracks */
.tracks { background: var(--oxide); color: var(--leader); overflow-x: clip; }
.tracks__in { display: grid; gap: clamp(16px, 3vh, 30px); padding: calc(var(--cut-pad) + 5vh) var(--gutter) 11vh var(--gutter-l); }
.tracks__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4vw; align-items: end; }
.tracks h2 { font-size: clamp(58px, 8vw, 154px); }
.tracks__side { display: grid; gap: 14px; justify-items: start; }
.lanes { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(8px, 1.1vw, 18px); height: clamp(460px, 76svh, 820px); align-items: flex-start; }
.lane { position: relative; display: flex; flex-direction: column; border-inline: 4px solid var(--oxide-lift); will-change: transform; transition: opacity 240ms linear; }
.lane--1 { flex: 1.15; height: 100%; }
.lane--2 { flex: .72; height: 60%; margin-top: 9%; }
.lane--3 { flex: 1.7; height: 82%; margin-top: 0; }
.lane .view { flex: 1; background: var(--skin-medium); min-height: 0; }
.lane.is-muted { opacity: .4; }
.lane.is-solo { border-inline-color: var(--marker); }
.lane__foot { position: absolute; left: 12px; right: 12px; top: 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin: 0; max-width: none; pointer-events: none; }
.lane__foot .key { pointer-events: auto; }
.lane__n { font: 300 clamp(26px, 2.6vw, 42px)/1 var(--display); font-variant-numeric: tabular-nums; color: var(--fresh); background: var(--skin-medium); padding: 2px 6px; pointer-events: auto; transform: rotate(-2deg); }
.lane .key[aria-pressed="true"] { background-color: var(--marker); }
.lane .key[aria-pressed="false"] { background-color: var(--leader); }
.tracks__small { font-size: 14px; }
@media (max-width: 760px) {
  .tracks__head { grid-template-columns: 1fr; gap: 12px; }
  .lanes { flex-direction: column; height: auto; }
  .lane, .lane--1, .lane--2, .lane--3 { width: 100%; flex: none; height: 62vw; margin: 0; }
}



/* chapter: splicing-block */
.block { color: var(--fresh); background:
  repeating-linear-gradient(to bottom, transparent 0 1px, color-mix(in srgb, var(--fresh) 7%, transparent) 1px 2px, transparent 2px 5px, color-mix(in srgb, var(--leader) 22%, transparent) 5px 6px, transparent 6px 11px),
  linear-gradient(105deg, color-mix(in srgb, var(--metal) 84%, var(--fresh)), var(--metal) 28%, color-mix(in srgb, var(--metal) 62%, var(--leader)) 50%, var(--metal) 72%, color-mix(in srgb, var(--metal) 82%, var(--fresh))); }
.block__pin { display: grid; grid-template-columns: minmax(300px, 34fr) 66fr; gap: clamp(20px, 3vw, 48px); padding: clamp(28px, 6vh, 64px) 0 clamp(28px, 6vh, 64px) var(--gutter-l); }
.block__side { display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 2.4vh, 26px); }
.block h2 { font-size: clamp(64px, 8.2vw, 148px); color: var(--fresh); }
.block__body { font-size: clamp(19px, 1.65vw, 25px); line-height: 1.3; }
.block__controls { display: grid; gap: 14px; }
.block__age { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.block__age input { width: 92px; min-height: 44px; font: 900 28px/1 var(--display); text-align: center; color: var(--fresh); background: transparent; border: 0; border-bottom: 3px solid var(--fresh); font-variant-numeric: tabular-nums; caret-color: var(--stencil); }
.block__age input { appearance: textfield; -moz-appearance: textfield; }
.block__age input::-webkit-inner-spin-button, .block__age input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.block__skin { display: flex; flex-wrap: wrap; gap: 6px; }
.block__skin .key { font-size: 17px; padding: 0 12px; }
.block__skin .key[aria-pressed="true"] { background-color: var(--fresh); color: var(--leader); border-bottom-color: var(--old); }
.block__readout { font: 300 clamp(20px, 1.9vw, 28px)/1 var(--display); font-variant-numeric: tabular-nums; }
.block__readout strong { font-weight: 900; }
.block__small { font-size: 14px; line-height: 1.4; max-width: calc(44 * var(--ch)); }

.groove { position: relative; align-self: center; height: min(74svh, 800px); border-block: 5px solid var(--fresh); box-shadow: inset 0 14px 0 -6px color-mix(in srgb, var(--fresh) 30%, transparent); }
.groove__view { position: absolute; inset: 0; }
.groove::before, .groove::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: repeating-linear-gradient(to right, var(--fresh) 0 1px, transparent 1px 14px); opacity: .55; pointer-events: none; }
.groove::before { top: -20px; } .groove::after { bottom: -20px; }
.groove__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: grab; touch-action: pan-y; }
.groove__range:active { cursor: grabbing; }
.groove:has(.groove__range:focus-visible) { outline: 2px solid var(--marker); outline-offset: 3px; }
.groove__tag { position: absolute; top: 16px; font-size: clamp(24px, 2.6vw, 38px); line-height: 1; margin: 0; pointer-events: none; color: var(--stencil); }
.groove__tag--l { left: 20px; }
.groove__tag--r { right: 22px; transform: rotate(1.6deg); transform-origin: 100% 50%; }

.tab { position: absolute; left: 0; width: 132px; height: 22px; margin-left: -66px; background: var(--leader); box-shadow: 0 1px 0 color-mix(in srgb, var(--fresh) 50%, transparent); clip-path: polygon(0 8%, 3% 0, 58% 6%, 100% 0, 99% 92%, 62% 100%, 2% 94%); pointer-events: none; will-change: transform; }
.tab--top { top: -6px; }
.tab--bot { bottom: -6px; }
.razor { scale: .72; position: absolute; left: 0; top: -170px; width: 64px; height: 200px; margin-left: -32px; transform-origin: 50% 100%; pointer-events: none; will-change: transform; transition: scale 200ms var(--ease-out); }
.razor.is-held { scale: .76; }

@media (max-width: 760px) {
  .block__pin { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto auto; align-content: stretch; padding: 22px 0 56px var(--gutter-l); gap: 6px; }
  .block__side { display: contents; }
  [data-chapter="splicing-block"] .pin-wrap { height: 280svh !important; }
  .block h2 { grid-column: 1; grid-row: 1; font-size: 15vw; padding-right: var(--gutter); }
  .block__body { grid-column: 1; grid-row: 2; padding-right: var(--gutter); font-size: 18px; }
  .groove { grid-column: 1; grid-row: 3; height: auto; min-height: 0; align-self: stretch; margin: 16px 0; }
  .block__controls { grid-column: 1; grid-row: 4; grid-template-columns: 1fr auto; padding-right: var(--gutter); gap: 6px 10px; }
  .block__skin { grid-column: 1 / -1; order: 3; }
  .block__skin .key { padding: 0 8px; font-size: 15px; }
  .block__readout { align-self: center; text-align: right; font-size: 18px; }
  .block__small { grid-column: 1; grid-row: 5; font-size: 13px; padding-right: var(--gutter); }
  .razor { top: -170px; scale: .46; transform-origin: 50% 100%; }
  .razor.is-held { scale: .5; }
}


/* chapter: storage-instructions */
.box { background: var(--oxide-lift); color: var(--oxide); }
.box__stage { padding: calc(var(--cut-pad) + 7vh) var(--gutter) 11vh var(--gutter-l); perspective: 1400px; }
.box__panel { position: relative; max-width: 1020px; margin: 0 auto; padding: clamp(24px, 4vw, 58px); background: color-mix(in srgb, var(--leader) 86%, var(--oxide)); transform-origin: 50% 100%; will-change: transform; clip-path: polygon(0 0, 97% 0, 100% 4%, 100% 100%, 0 100%); }
.box__panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: repeating-linear-gradient(to right, color-mix(in srgb, var(--oxide) 34%, transparent) 0 7px, transparent 7px 19px, color-mix(in srgb, var(--oxide) 18%, transparent) 19px 23px, transparent 23px 41px); }
.box__stamp { position: absolute; right: 7%; top: 8%; margin: 0; padding: 4px 10px; border: 2px solid var(--old); color: var(--old); font: 900 18px/1 var(--display); transform: rotate(4deg); }
.box h2 { font-size: clamp(50px, 7.2vw, 128px); color: var(--oxide); max-width: 12ch; }
.box__list { margin: clamp(18px, 3vh, 30px) 0; padding: 0; list-style: none; counter-reset: i; columns: 2; column-gap: 40px; }
.box__list li { counter-increment: i; break-inside: avoid; padding: 0 0 16px 38px; position: relative; background: linear-gradient(var(--stencil), var(--stencil)) 38px 100% / 0 2px no-repeat; transition: background-size 280ms var(--ease-out); }
.box__list li:hover { background-size: calc(100% - 38px) 2px; }
.box__list li::before { content: counter(i); position: absolute; left: 0; top: -4px; font: 900 34px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--old); }
.box__small { font-size: 14px; }
@media (max-width: 640px) { .box__list { columns: 1; } .box h2 { font-size: 15vw; } .box__stamp { position: static; display: inline-block; margin-bottom: 12px; } }



/* chapter: stencil-gets-wiped */
.stencil { background: var(--leader); color: var(--fresh); }
.stencil__in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 4vw; padding: calc(var(--cut-pad) + 6vh) var(--gutter) 11vh var(--gutter-l); align-items: center; }
.stencil__text { display: grid; gap: 16px; justify-items: start; }
.stencil h2 { font-size: clamp(60px, 7.8vw, 150px); }
.stencil__tally { font: 900 26px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--stencil); }
.stencil__cue { font-size: clamp(26px, 2.6vw, 40px); margin: 0; }
.stencil__small { font-size: 14px; }
.stencil__stage { position: relative; aspect-ratio: 4 / 5; cursor: grab; touch-action: pan-y; }
.stencil__stage .view { position: absolute; inset: 0; background: var(--skin-medium); }
.stencil__top { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 760px) {
  .stencil__in { grid-template-columns: 1fr; }
  .stencil__stage { margin-right: 14%; }
  .stencil h2 { font-size: 16vw; }
}



/* chapter: open-reel-saturday */
.sat { background: var(--oxide); color: var(--leader); overflow: clip; }
.sat__in { padding: calc(var(--cut-pad) + 7vh) var(--gutter) 12vh var(--gutter-l); display: grid; gap: 22px; }
.sat h2 { font-size: clamp(64px, 11.2vw, 210px); }
.sat__body { font-size: clamp(19px, 1.6vw, 24px); }
.week { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 4px; }
.week__day { flex: 1; position: relative; min-height: 86px; display: grid; align-items: end; padding: 8px 12px; background: repeating-linear-gradient(to bottom, var(--oxide-lift) 0 2px, color-mix(in srgb, var(--oxide-lift) 80%, var(--fresh)) 2px 4px); clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); font: 900 26px/1 var(--display); will-change: transform; }
.week__day abbr { text-decoration: none; }
.week__day--sat { flex: 3.2; background: var(--marker); color: var(--oxide); }
.week__day.is-today::after { content: "✓"; position: absolute; right: 22px; top: 10px; color: var(--marker); font-size: 22px; font-weight: 300; }
.week__day--sat.is-today::after { color: var(--oxide); }
.sat.is-saturday .week__day--sat { flex: 8; }
.sat__live { font-size: clamp(26px, 3vw, 44px); margin: 0; max-width: none; line-height: 1.04; }
@media (max-width: 640px) {
  .week { flex-direction: column; gap: 3px; }
  .week__day { min-height: 44px; align-items: center; }
  .week__day--sat { min-height: 92px; }
  .sat h2 { font-size: 18vw; }
}



/* chapter: track-sheet */
.sheet { background: var(--leader); color: var(--fresh); }
.sheet__in { position: relative; padding: calc(var(--cut-pad) + 5vh) var(--gutter) 11vh calc(var(--gutter-l) + 44px); }
.sheet__margin { position: absolute; left: calc(var(--spine) + 26px); top: 0; bottom: 0; width: 5px; border-inline: 1px solid var(--old); will-change: transform; }
.sheet h2 { font-size: clamp(50px, 7vw, 132px); max-width: 16ch; margin-bottom: 26px; }
.ts { width: 100%; border-collapse: collapse; border: 3px solid var(--fresh); table-layout: fixed; }
.ts th, .ts td { border: 1px solid var(--old); padding: 14px 16px; text-align: left; vertical-align: top; }
.ts thead th { font: 900 20px/1 var(--display); background: var(--fresh); color: var(--leader); }
.ts thead th:first-child { width: 72px; }
.ts thead th:nth-child(2) { width: 38%; }
.ts tbody td:first-child { font: 900 34px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--old); }
.ts tbody th { font: 700 clamp(18px, 1.5vw, 22px)/1.25 var(--body); }
.ts__a { font: 300 clamp(26px, 2.5vw, 38px)/1.1 var(--display); color: var(--stencil); }
.ts tbody tr:nth-child(odd) .ts__a { transform: rotate(-.5deg); }
.ts tbody tr:nth-child(even) .ts__a { transform: rotate(.35deg); }
.ts tbody tr:hover th { color: var(--stencil); }
.sheet__small { font-size: 14px; margin-top: 14px; }
@media (max-width: 640px) {
  .sheet__in { padding-left: calc(var(--gutter-l) + 14px); }
  .sheet__margin { left: calc(var(--spine) + 8px); }
  .sheet h2 { font-size: 13.4vw; }
  .ts, .ts tbody, .ts tr, .ts td, .ts tbody th { display: block; width: 100%; }
  .ts thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ts { border: 0; }
  .ts tr { border: 2px solid var(--fresh); margin-bottom: 8px; }
  .ts th, .ts td { border: 0; padding: 8px 12px; }
}



/* chapter: blank-reel */
.reelend { background: var(--leader); color: var(--fresh); scroll-margin-top: 0; }
.reelend__in { padding: calc(var(--cut-pad) + 7vh) var(--gutter) 12vh var(--gutter-l); display: grid; gap: clamp(14px, 3vh, 30px); }
.reelend__over { font-size: clamp(19px, 1.7vw, 25px); line-height: 1.3; max-width: calc(44 * var(--ch)); }
.reelend h2 { font-size: clamp(66px, 11vw, 210px); color: var(--stencil); }
.lid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; padding: clamp(18px, 3vw, 44px); background: color-mix(in srgb, var(--leader) 90%, var(--oxide)); border: 3px solid var(--fresh); }
.lid__f { display: grid; gap: 2px; font-weight: 700; position: relative; }
.lid__f--wide { grid-column: 1 / -1; }
.lid input, .lid select, .lid textarea { min-height: 48px; width: 100%; background: transparent; border: 0; border-bottom: 2px solid var(--fresh); font: 400 20px/1.25 var(--body); color: var(--fresh); caret-color: var(--stencil); padding: 4px 26px 4px 0; resize: vertical; }
.lid input:focus, .lid select:focus, .lid textarea:focus { outline: 0; border-bottom-color: var(--stencil); }
.tick { position: absolute; right: 2px; top: 30px; width: 16px; height: 9px; border-left: 3px solid var(--stencil); border-bottom: 3px solid var(--stencil); transform: rotate(-48deg) scale(0); transition: transform 160ms var(--ease-out); }
.lid__f.is-ok .tick { transform: rotate(-48deg) scale(1); }
.lid__err { min-height: 1.4em; font-size: 14px; font-weight: 400; color: var(--stencil); }
.lid__end { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.lid__go { font-size: 24px; padding: 0 28px; min-height: 58px; background-color: var(--stencil); color: var(--leader); border-bottom-color: var(--oxide); }
.lid__go[disabled] { opacity: .6; cursor: progress; }
.lid__msg { margin: 0; flex: 1 1 280px; }
.lid__copy { background-color: var(--leader); border: 2px solid var(--fresh); }
@media (max-width: 640px) { .lid { grid-template-columns: 1fr; } .reelend h2 { font-size: 18vw; } }


.reelend__in { position: relative; }
.reelend__empty { position: absolute; right: var(--gutter); top: calc(var(--cut-pad) + 2vh); width: clamp(120px, 21vw, 340px); height: auto; color: var(--oxide); will-change: transform; }
.lid__brand { grid-column: 1 / -1; font: 900 clamp(22px, 2vw, 30px)/1 var(--display); padding-bottom: 12px; border-bottom: 3px solid var(--fresh); max-width: none; }
.lid input, .lid textarea { font: 300 clamp(24px, 2.2vw, 32px)/1.2 var(--display); color: var(--stencil); }
@media (max-width: 640px) { .reelend__empty { position: static; width: 34vw; justify-self: end; } }


/* chapter: never-flew */
.never { position: relative; background: var(--fresh); color: var(--leader); }
.never__water { position: absolute; inset: 0; background: var(--fresh); }
.never__in { position: relative; z-index: 1; padding: calc(var(--cut-pad) + 6vh) var(--gutter) 8vh var(--gutter-l); display: grid; gap: 20px; justify-items: center; }
.never__stage { position: relative; width: min(100%, 1120px); display: grid; grid-template-columns: 1fr minmax(260px, 420px) 1fr; grid-template-rows: auto auto; align-items: center; gap: 0 clamp(10px, 3vw, 44px); }
.never__art { grid-column: 2; grid-row: 1 / span 2; aspect-ratio: 4 / 5; background: var(--skin-medium); }
.never__line { font: 900 clamp(24px, 2.8vw, 46px)/1.02 var(--display); margin: 0; cursor: default; transition: color 200ms; max-width: 12ch; }
.never__line:hover { color: var(--marker); }
.never__line--1 { grid-column: 1; grid-row: 1; justify-self: end; text-align: right; }
.never__line--3 { grid-column: 1; grid-row: 2; justify-self: end; text-align: right; }
.never__line--2 { grid-column: 3; grid-row: 1; }
.never__line--4 { grid-column: 3; grid-row: 2; }
.never__wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* The script sets each line's dash to its length on screen and draws it in by moving the offset. */
.never__wires line { stroke: var(--marker); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 0 100000; }
.never__after { font-size: clamp(18px, 1.6vw, 23px); text-align: center; max-width: calc(44 * var(--ch)); }
.never__spatter { position: relative; height: 22vh; margin-top: -6vh; z-index: 1; background: transparent; clip-path: polygon(0 34%, 100% 0, 100% 100%, 0 100%); }
@media (max-width: 760px) {
  .never__stage { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; gap: 14px; }
  .never__art { grid-column: 1 / -1; grid-row: 1; width: 86%; justify-self: center; }
  .never__line { grid-column: auto !important; grid-row: auto !important; justify-self: start !important; text-align: left !important; font-size: 24px; }
  .never__wires { display: none; }
}
```

## 6. Shared code

Create `js/core.js` exactly as below. It defines `window.BH`: the scroll loop that every chapter hooks into, the age counter and reels, the moving splice bands, local storage helpers, and the `[` and `]` keys.

```js
/* Black Harbor reel. Shared scroll time, memory and machine. */
window.BH = (() => {
  const clamp = (v, a = 0, b = 1) => Math.min(b, Math.max(a, v));
  const reduce = matchMedia('(prefers-reduced-motion: reduce)').matches;
  const store = {
    get(k, d = null) { try { const v = localStorage.getItem('bh.' + k); return v === null ? d : JSON.parse(v); } catch { return d; } },
    set(k, v) { try { localStorage.setItem('bh.' + k, JSON.stringify(v)); } catch { /* private window */ } },
  };
  const state = { age: store.get('age', 25), dragging: false };
  const chapters = [];
  const reel = [...document.querySelectorAll('[data-chapter]')];
  const bands = [...document.querySelectorAll('.splice')];
  const frames = [];
  const scrolled = [];

  // A chapter's progress through the screen. pin: progress of a sticky section, otherwise of its pass through.
  const progressOf = (el, pin) => {
    const r = el.getBoundingClientRect(), vh = innerHeight;
    return pin ? clamp(-r.top / Math.max(1, r.height - vh)) : clamp((vh - r.top) / (r.height + vh));
  };

  function chapter(id, opts) {
    const el = document.querySelector(`[data-chapter="${id}"]`);
    if (!el) return null;
    const entry = { id, el, pinEl: el.querySelector('.pin-wrap'), fn: opts.scroll, on: false };
    chapters.push(entry);
    return el;
  }
  const onFrame = fn => frames.push(fn);

  // Age along the reel. Each chapter owns a length of the rewind.
  const reelAges = {
    'played-at-sixty': [60, 57], 'top-end-goes-first': [57, 53], 'print-through': [53, 50], 'ink-in-the-harbour': [50, 46],
    'worst-speaker': [46, 43], 'three-tracks': [43, 40], 'splicing-block': [40, 33], 'storage-instructions': [33, 31],
    'stencil-gets-wiped': [31, 29], 'open-reel-saturday': [29, 28], 'track-sheet': [28, 26.5], 'blank-reel': [26.5, 26], 'never-flew': [26, 26],
  };

  function reelNumber() {
    // Find where the top of the screen sits on the reel.
    let found = 60;
    const own = Math.min(state.age, 59);
    for (const el of reel) {
      const r = el.getBoundingClientRect();
      if (r.top <= innerHeight * .4 && r.bottom > innerHeight * .4) {
        const a = reelAges[el.dataset.chapter] || [60, 60];
        const p = clamp((innerHeight * .4 - r.top) / r.height);
        const raw = a[0] + (a[1] - a[0]) * p;
        // Compress the scripted rewind so the reel lands on the visitor's own age.
        const span = (60 - raw) / (60 - 26);
        found = 60 + (own - 60) * span;
        break;
      }
    }
    return found;
  }

  // Machine readout and reels.
  const count = document.querySelector('[data-count]');
  const label = document.querySelector('.machine__label');
  const spine = document.querySelector('[data-spine]');
  const reelL = document.querySelector('[data-reel="l"]'), reelR = document.querySelector('[data-reel="r"]');
  let rot = 0, lastY = scrollY, velocity = 0, doc = 1;

  function tick() {
    const y = scrollY;
    const dy = y - lastY; lastY = y;
    velocity += (dy - velocity) * .18;
    doc = Math.max(1, document.documentElement.scrollHeight - innerHeight);
    const p = clamp(y / doc);
    if (spine) spine.style.transform = `translate3d(0, ${-(y % 160).toFixed(1)}px, 0)`;
    if (!reduce) rot += velocity * .9;
    if (reelL) reelL.style.transform = `rotate(${rot.toFixed(1)}deg) scale(${(.72 + .28 * (1 - p)).toFixed(3)})`;
    if (reelR) reelR.style.transform = `rotate(${(rot * 1.2).toFixed(1)}deg) scale(${(.72 + .28 * p).toFixed(3)})`;

    const atEnd = reel.length && reel[reel.length - 1].getBoundingClientRect().top < innerHeight * .4;
    const num = reelNumber();
    if (count) {
      count.textContent = atEnd ? 'Day one' : num <= Math.min(state.age, 59) + .3 ? 'Today' : num.toFixed(1);
      if (label) label.hidden = atEnd || num <= Math.min(state.age, 59) + .3;
    }
    if (!reduce) for (let i = 0; i < bands.length; i++) {
      const r = bands[i].getBoundingClientRect();
      if (r.bottom < -80 || r.top > innerHeight + 80) continue;
      const dir = i % 2 ? 1 : -1;
      bands[i].style.setProperty('--sx', (dir * (r.top / innerHeight - .5) * innerWidth * .1).toFixed(1) + 'px');
    }
    for (const c of chapters) {
      const r = c.el.getBoundingClientRect();
      const on = r.bottom > -60 && r.top < innerHeight + 60;
      if (on && c.fn) c.fn(progressOf(c.pinEl || c.el, !!c.pinEl), velocity);
    }
    for (const f of frames) f();
    requestAnimationFrame(tick);
  }

  addEventListener('load', () => requestAnimationFrame(tick));

  // Keys [ and ] move to the previous and next splice.
  addEventListener('keydown', e => {
    if (e.target.matches('input,textarea,select') || (e.key !== '[' && e.key !== ']')) return;
    const list = [...document.querySelectorAll('[data-chapter]')];
    const tops = list.map(el => el.getBoundingClientRect().top + scrollY);
    const y = scrollY + 4;
    const i = tops.reduce((n, t, idx) => (t <= y ? idx : n), 0);
    const to = e.key === ']' ? Math.min(i + 1, tops.length - 1) : Math.max(i - (y - tops[i] > 80 ? 0 : 1), 0);
    scrollTo({ top: tops[to], behavior: reduce ? 'auto' : 'smooth' });
  });

  // Tab title in the background.
  const title = document.title;
  document.addEventListener('visibilitychange', () => { document.title = document.hidden ? 'Still rewinding…' : title; });

  console.log('%cBlack Harbor Tattoo', 'font-weight:900;font-size:16px', '\n13 splices on this reel. Keys [ and ] move between them.');

  return { clamp, reduce, store, state, chapter, onFrame, cssVar: n => getComputedStyle(document.documentElement).getPropertyValue(n).trim() };
})();
```

`BH.chapter(id, { scroll(p, velocity) {} })` registers a chapter. While the chapter is on screen (with 60px of margin), its `scroll` function runs every frame with `p` = progress from 0 to 1. For a chapter with a `.pin-wrap`, `p` is progress through the pinned length (`-top / (height - viewport height)`); otherwise it is progress of the chapter's pass through the screen (`(viewport height - top) / (height + viewport height)`). `velocity` is the smoothed scroll speed in pixels per frame.

## 7. Script order

At the end of `<body>` load, in this order and each with `defer`: `js/core.js`, `js/art.js`, `js/ink.js`, `js/chapters.js` (the tags are already in the markup above).

## 8. Chapter behaviours (`js/chapters.js`)

Write `js/chapters.js` as thirteen blocks in page order, each wrapped in its own `(function () { ... })();` so their names do not collide. Each block finds its chapter with `document.querySelector('[data-chapter="<id>"]')` and its parts by the `data-` hooks in the markup. "Reduced" means `BH.reduce` (the visitor prefers reduced motion). Colour tokens are read with `BH.cssVar('--name')`. All numbers below are required.

### 1. played-at-sixty (hero)

- One ink view on `[data-hero-view]`: `a: BH.art.emblem('bold')`, `age: 1, target: 1, easing: .09`, `fit: 'contain'`. On phones (`innerWidth < 640` at load) `zoom: 1` and `center: [.5, .117]`; otherwise `zoom: 1.04` and `center: [.11, .5]` (the drawing sits to the right of the text).
- Pointer: on `pointermove` over the view, with `k = view.w / rect.width`, set `view.focus = [(clientX - left) * k, (clientY - top) * k]` and `view.focusR = 190 * k`, `dirty = true`. On `pointerleave` set `focusR = 0`. The ink under the pointer looks younger, like a torch on the skin.
- Scroll: `view.target = reduced ? 1 : 1 - .36 * clamp(p * 1.05)`. Rewinding through the 240svh pin brings the tattoo back from 60 toward about 38.

### 2. top-end-goes-first (test strip)

- View on `[data-tef-view]`: `a: BH.art.testStrip()`, `artRes: [2400, 480]`, `fit: 'cover'`, `zoom: 1`, `center: [.5, .5]`, `age: 1, target: 1, easing: .1`.
- Hover: `pointerenter` sets a `hovering` flag and `target = 1`; `pointerleave` clears the flag.
- Scroll: `w = track.clientWidth - innerWidth`; translate `[data-tef-track]` to `x = -(p * (w + innerWidth * .08)) + innerWidth * .04` px. If not hovering, `target = reduced ? 1 : 1 - p`. The readout `[data-tef-age]` says `Strip at 60` when hovering or `target > .985`, `Strip at day one` when `target < .02`, else `Strip at ${(60 - (1 - target) * 35).toFixed(0)}`. The head line sits at `innerWidth * (innerWidth < 640 ? .62 : .5)`; toggle class `is-over` on each `.tef__labels li` whose rectangle spans that x.

### 3. print-through (reel layer)

- View on `[data-print-view]`: `fit: 'cover'`, `mode: 1`, `age: .55`, `low: --oxide`, `high: --old`, `zoom: 1`. Load `img/ink-wash.jpg` and set `view.a` and `view.artRes = [width, height]`, then `dirty`.
- Build the reel in `svg[data-print-reel]` (viewBox -50 -50 100 100): a filled circle r 48 in `var(--oxide)`; then rings from r 15 to 48 in steps of .42 (index i from 0): stroke `var(--leader)`, width .07, opacity `.06 + (i % 5 === 0 ? .2 : 0) + (i % 13 === 0 ? .2 : 0)`; then a circle r 14 in `var(--old)`, a hub r 3.4 in `var(--oxide)`, and three holes r 2.8 in `var(--oxide)` at `(sin(a * 2.094) * 8.6, -cos(a * 2.094) * 8.6)` for a = 0, 1, 2.
- Scroll: rotate the reel `-p * 220` degrees. With `k = reduced ? 1 : p`, each ghost `[data-ghost="n"]` moves `translateY(-(1 - k) * 96 * n - 14 * n)` px and gets opacity `.08 + .22 * k`.

### 4. ink-in-the-harbour (under the skin)

- View on `[data-harbour-view]`: `mode: 1`, `age: .14`, `fit: 'cover'`, `low: --fresh`, `high: --old-lift`. Load `img/water-surface.jpg` as `a` and `img/ink-cloud.jpg` as `b`, `artRes` from the first.
- Scroll: `cloud = reduced ? .6 : clamp((p - .08) * 1.25)`; `zoom = 1 + p * .1`; `time += abs(velocity) * .012 + .004`; `dirty = true`; the text block `[data-harbour-text]` moves `translateY((.5 - p) * 36)` px. Ink spreads through the dark water as you scroll.

### 5. worst-speaker (kitchen radio test)

- Two views. `[data-worst-fine]`: `a: emblem('fine')`; `[data-worst-bold]`: `a: emblem('bold')`; both `age: 1, target: 1, easing: .08, fit: 'contain', zoom: 1`, centres `[.62, .5]` and `[.34, .5]` when `innerWidth > 760`, otherwise `[.5, .5]`.
- The rocker button `[data-rocker]` toggles `radio` (stored as `radio` with `BH.store`, default true). `set(on, fromUser)`: both targets to `on ? 1 : 0`; `aria-pressed` = on; `aria-label` `Kitchen radio on. Press for studio monitor.` or `Studio monitor on. Press for kitchen radio.`; every `[data-worst-age]` reads `Age 60` or `Day one`; every `img` in the chapter swaps its `src` to `data-sixty` or `data-zero`. When from the user: store it, add class `is-leaning` to the chapter for 600 ms, and the first time it is switched back on, unhide `[data-told]` ("told you"). Call `set(radio)` at load.

### 6. three-tracks (artists)

- Three lanes. Each `[data-lane-view]` gets a view with `a: emblem('bold', parts)`, `age: 0, target: 0, easing: .08, fit: 'cover'`, using: bird `{ bird: 1 }`, zoom 1.7, centre `[.53, .2]`; bell `{ bell: 1 }`, zoom 1.9, centre `[.24, .58]`; fish `{ fish: 1 }`, zoom 1.1, centre `[.5, .8]`.
- Solo keys `[data-solo]`: clicking makes that lane active (clicking it again clears). Active lane: `aria-pressed="true"`, class `is-solo`, view target 1 (it ages to 60). Others: `aria-pressed="false"`, class `is-muted` while another lane is active, target 0.
- Scroll (skip when reduced or `innerWidth < 760`): lanes move `translateY((p - .5) * speed * 90)` px with speeds `[-1, 1.5, -.5]`.

### 7. splicing-block (cut it anywhere)

- View on `[data-block-view]`: `a: emblem('bold')`, `jointOn: 1`, `joint: .62`, `age: .85`, `fit: 'contain'`, `zoom: 1.06`, `center: [.5, .47]`.
- Age: `ageToT(a) = clamp((60 - a) / 40, 0, 1)`. `setAge(a, save)`: round and clamp to 16 to 99, store in `BH.state.age`, `view.age = ageToT(a)`; the readout `[data-readout]` shows `<strong>${60 - a}</strong> years on the reel`, or `You’re already there.` at 60 or more. When saving: `BH.store.set('age', a)` and dispatch `new CustomEvent('bh:age', { detail: a })` on `document`. At load, `setAge(BH.state.age)` and fill `[data-age-input]` with it; on `input`, values 16 to 99 call `setAge(n, true)`.
- Skin keys `[data-skin]`: click sets `aria-pressed` on the clicked key only, `view.skin = BH.cssVar(key.dataset.skin)`, stores `skin`. At load, click the stored one if any.
- The cut: `apply(j)`: clamp j to .02 to .98, `view.joint = j`; with `W`, `H` the groove size and `k = H / W`, the cut is a true 45 degree line, so `xTop = (j + .5 * k) * W` and `xBot = (j - .5 * k) * W`. Move `[data-tab="top"]` to `xTop` and `[data-tab="bot"]` to `xBot` (translateX), and the razor `[data-razor]` to `translateX(xTop) rotate(45deg + lean)`. Unless the visitor has taken control, write `range.value = j * 100` (one decimal). Set the range's `aria-valuetext` to `Mostly age 60` (j < .3), `Mostly day one` (j > .7) or `Half day one, half age 60`. Call `apply(.62)` at load and `apply(shown)` on resize.
- The range input `[data-joint]` lies invisibly over the groove. `pointerdown` sets `held` and `handled` and adds class `is-held` to the razor; `pointerup`/`pointercancel` clear `held` and the class; `keydown` sets `handled`; `input` sets `handled` and `wanted = value / 100`.
- Scroll: when `p <= 0 || p >= 1`, clear `handled`. Target = `wanted` if handled, else `.62 - .34 * clamp((p - .12) / .63)`; when reduced and not handled, `.5`. `next = shown + (target - shown) * (held || reduced ? 1 : .16)`. `lean += (clamp((next - shown) * 900, -3, 3) - lean) * .2` (the razor tilts up to 3 degrees as it moves). If `next` moved more than .0002 or `abs(lean) > .02`, store and `apply(next)`. Scrolling the 420svh pin slides the razor from right to left across the drawing.

### 8. storage-instructions (back of the box)

Scroll: the panel `[data-box]` gets `rotateX(t)` with `t = reduced ? 0 : 8 * (1 - clamp(p * 2.4))` degrees: it tips forward and settles flat.

### 9. stencil-gets-wiped (before the needle)

- A view on `[data-stencil-view]`: `a: emblem('bold')`, `age: 0`, `fit: 'contain'` (fresh black linework).
- Over it, the canvas `[data-stencil-top]`. `fit()` (also on every ResizeObserver change of `[data-stage]`): size it to the stage times `min(devicePixelRatio, 1.5)`, get a 2D context with `willReadFrequently: true`, clear it, and unless already wiped draw `BH.art.tinted(--stencil)` scaled to contain and centred, twice: first at alpha .5 offset by 3px right and down, then at alpha 1. Then `update()`.
- Rubbing: `pointerdown` on the stage starts drawing (capture the pointer); `pointermove` while drawing erases along the path with radius `R = W * .075`, stepping every `R * .3` px between the last and current point. Each brush is `destination-out` with a radial gradient: alpha 1 at 0, .65 at .7, 0 at 1. Throttle `update()` to 200 ms while rubbing and call it on `pointerup`/`pointercancel`.
- `update()`: draw the canvas into a 48 x 60 probe, count pixels with alpha > 40, remember the first count as the base, `pct = wiped ? 100 : round((1 - n / base) * 100)` clamped 0 to 100, write it to `[data-wiped]`. Over 82, mark wiped and store `wiped: true`. The cue `[data-cue]` reads `That’s it, gone` once wiped or over 82, otherwise `Rub it out`.
- `[data-wipe-all]` clears the canvas, marks wiped, stores it and updates.
- Scroll (skip if not ready, wiped or reduced): `y = clamp((p - .55) / .32) * H`; when y passes the last scrubbed line by more than 4px, erase the band from the last line to y with a `destination-out` fill of `rgba(0,0,0,.92)`, then update. Scrolling on wipes the stencil from the top down.

### 10. open-reel-saturday (walk-ins)

- Work out today's weekday in Glasgow: `new Intl.DateTimeFormat('en-GB', { weekday: 'long', timeZone: 'Europe/London' })`. Add class `is-today` to that `.week__day` (Monday first). On Saturday add class `is-saturday` to the chapter and set `[data-live]` to `It’s Saturday in Glasgow. Come in.` Otherwise, with `n = (5 - index + 7) % 7`, write `Today is ${day} in Glasgow. Saturday is ${n} day${n === 1 ? '' : 's'} away.`
- Scroll (skip when reduced): each day i slides in from the right: `k = clamp(p * 2.3 - i * .07)`, `translateX((1 - k) * (innerWidth * .4 - i * 18))` px.

### 11. track-sheet (questions)

Scroll (skip when reduced): the margin rule `[data-margin]` moves `translateY((.5 - p) * 26)` px.

### 12. blank-reel (booking)

- Put `const BOOKING_ENDPOINT = '';` at the top with a comment that setting it to a form service URL turns sending on.
- Required fields name, contact, age, idea. `check(field)`: empty is bad; age is bad unless 18 to 120. Errors go in `[data-err="<name>"]`: name `Put a name on the box.`, contact `We need an email or phone number to reach you.`, age `You need to be 18 to get tattooed here.`, idea `Tell us roughly what you want, even if it’s vague.` Set `aria-invalid`, and toggle class `is-ok` on the field's `.lid__f` (shows the tick). Check on blur when the field has a value or was already marked.
- Fill the age field from `BH.store.get('age')` and keep it in sync with the `bh:age` event.
- Scroll (skip when reduced): the empty reel `[data-empty-reel]` rotates `(1 - clamp(p * 1.9)) * 300` degrees.
- Submit: prevent the default; if any check fails, focus the first invalid field. Otherwise disable the button and show `Writing it on the box…`. If `BOOKING_ENDPOINT` is empty, or the POST (JSON of the form) fails: re-enable, restore `Book the session`, show in `[data-msg]` `Booking isn’t connected yet, so nothing was sent. Copy your details and message the shop.` and unhide `[data-copy]`. On success: `Booked in`, message `It’s on the box. Your artist will be in touch.`, hide the copy key.
- `[data-copy]` copies the form as `key: value` lines with `navigator.clipboard.writeText`; it then reads `Copied`, or `Select and copy by hand` if the clipboard refuses.

### 13. never-flew (tail)

- Views: `[data-never-view]` with `a: emblem('bold')` (call it `all`), `age: .1, target: 0, easing: .012, fit: 'contain', zoom: 1` (it slowly sharpens to day one); `[data-water-view]` mode 1, `age: .14`, cover, `low: --fresh`, `high: --old-lift`, picture `img/night-sea.jpg`; `[data-spatter-view]` mode 1, `age: .12`, cover, `low: --fresh`, `high: --old`, picture `img/ink-spatter.jpg`.
- Hovering a rhyme line `[data-part]` cross-fades the drawing to just that part (`emblem('bold', { bird: 1 })` and so on): `show(n)` sets `a = current`, `b = n`, `mix = 0`, `mixTarget = 1`, `dirty`, then `current = n`. Leaving the line cross-fades back to `all`.
- Scroll: `k = reduced ? 1 : clamp(p * 1.6)`. The four leader lines in `[data-wires]` draw in one after another, from each line of the rhyme to its part of the drawing. Their stroke is `non-scaling-stroke`, so dashes are measured in screen pixels: for each line i, with `r` the svg's bounding rectangle, `len = hypot((x2 - x1) * r.width / 100, (y2 - y1) * r.height / 100)` (read the attributes through `line.x1.baseVal.value` and so on); set `strokeDasharray = len` and `strokeDashoffset = len * (1 - clamp(k * 1.6 - i * .16))`. Until the script sets them, the CSS hides the lines with `stroke-dasharray: 0 100000`.

## 9. Interactions to confirm by hand

1. First screen: "This is it at sixty." over a skin-coloured panel with the faded blue-grey tattoo. Move the pointer over the drawing: the ink under it looks younger. The counter bottom right counts down from about 59.5 as you scroll, and the reels spin with the scroll.
2. The test strip slides sideways and its lines sharpen as you scroll; hovering it snaps back to age 60.
3. "Two lines too close become one.": two ghost copies of the heading rise into place and the reel turns.
4. Kitchen radio switch: both panels change between age 60 and day one; the first switch back shows "told you".
5. Solo on a track ages that part of the drawing; the others dim.
6. Cut it anywhere: the razor slides as you scroll; drag across the panel to move the cut yourself; change your age and skin tone and the right side changes. The counter now lands on your own age at the end of the tape.
7. Rub the purple stencil away with the pointer, or press "Wipe the stencil"; the percentage climbs.
8. The week strip names today's day in Glasgow.
9. Submit the empty form to see the errors; fill it in and submit to see the "not connected" message and the copy key.
10. Hover each line of the rhyme: the drawing shows just that part.
11. Keys `[` and `]` jump between chapters.

## 10. Verify, then show the result

Serve the folder (section 1) and open it. Check desktop near 1440 x 900, a tablet width near 768, and phone widths near 390 and 320: no horizontal overflow, no missing files, no console errors, no request to another domain. With a browser tool, check the interactions in section 9 with motion allowed (if your browser reports reduced motion, the views stay as stills and scroll motion is off; that is intended). If WebGL2 is unavailable where you test, say so; the page then shows the stills.

Finish by telling the person the local address, what you built and tested, the tool and model you are, and anything missing or different. Do not call the result pixel-identical to the demo at https://sitepeel.dev/website-prompts/black-harbor/preview/.

More website prompts