Strand
Shops & services · Physio clinic
A Dublin physio clinic in a blue wind tunnel of smoke threads, where knee pain can start at the hip.
Free to copy and download. No account needed.
Shops & services · Physio clinic
A Dublin physio clinic in a blue wind tunnel of smoke threads, where knee pain can start at the hip.
Free to copy and download. No account needed.
Strand Physio, two physios in Dublin, in a deep blue wind tunnel where white and red smoke threads trace a runner. You sweep a smoke wand through the air, then follow the thread up the leg from the knee you came in about to the hip. Press Send smoke from the hip and the thread lights the same lamp the knee does. A slider counts a runner’s steps on one leg, an office chair sits through an eight-hour day, and you pick where it hurts. A paper run sheet lists the first appointment.
A one-page site for a made-up physiotherapy clinic in Dublin. White threads of smoke stream around a runner you never see, a smoke wand follows your pointer, and the threads trace pain from the knee up to the hip before the page turns to paper for booking.
Download the required files and unzip them in a new project folder.
Copy the prompt into your AI coding tool and let it build the site.
Open what your AI tool made next to the live preview of Strand, and ask it to fix what differs.
A clean build wrote the page markup and styles exactly as specified and matched the demo's text, every section height and every interaction at desktop and phone size, with no errors. A one-line touch fix it added is now in the prompt. Checked in Chromium.
This is a prompt plus the files it depends on. The prompt alone is not enough.
The fonts, pictures and world.js, the module that draws the WebGL smoke tunnel and runs the scroll film, with licence details. The prompt has your AI tool download them.
Download files# Build the Strand website (a physiotherapy clinic in a smoke tunnel)
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 physiotherapy clinic, Strand Physio in Dublin: two physios who mostly treat runners and people who sit at desks. Its idea is that most pain isn't where it hurts. The whole page is a wind tunnel: about five hundred white threads of smoke stream from left to right on deep blue, bending around a runner you never see directly, with red threads where the air is turbulent. As the visitor scrolls, the camera moves along the tunnel, a smoke wand follows the pointer, threads trace pain from the knee up to the hip, the runner sits down at a desk, and the page turns to paper for the run sheet and booking card.
Build everything yourself except the supporting files listed in section 2. Do not substitute a framework, a different font, a CSS library or a canvas library. Keep the copy exactly as written. Do not add analytics, trackers, external embeds or CDN links.
This prompt comes with a required pack of fonts, pictures and one supporting code module, `world.js`, which draws the smoke tunnel and runs the scroll film. It is not a text-only prompt. You write the page markup, the styles, the booking setting and the chapter code from this specification.
Results differ between AI tools and models. Follow the specification closely, and report honestly what you built and tested.
## 1. Stack and project setup
- Plain static files: HTML, CSS and classic JavaScript (no modules needed). No framework, no bundler, no TypeScript, no Tailwind, no npm packages.
- No inline scripts. The page must run under a strict Content Security Policy (`script-src 'self'`), so every script is a file: `booking.js` (in the head), then `world.js` and `site.js`, both with `defer`, in that order. The JSON-LD block in the head is data and may stay inline. Inline `style` attributes and the `<noscript><style>` block are fine.
- Create `booking.js` with exactly this content. The clinic pastes its online booking address here; while it is empty, every Book link scrolls to the run sheet and the final button reads `Booking opens soon`:
```js
// Paste the online booking address between the quotes. Every Book button on the page reads this one value.
window.STRAND_BOOKING_URL = "";
```
- Serve the folder with any static file server, for example `python -m http.server 8080` or `npx --yes serve -l 8080 .`. Every URL is relative (`fonts/...`, `img/...`), so the site works from a domain root or any sub-folder. Never write a leading-slash URL.
Finished project:
```text
index.html (section 4, written by you)
booking.js (section 1, written by you)
site.css (section 5, written by you)
site.js (section 7, written by you)
world.js (from the pack)
fonts/ (from the pack)
img/ (from the pack: five pictures and the share picture)
licenses/ (from the pack, keep it)
README.md (from the pack, keep it or merge it into yours)
SHA256SUMS.txt (from the pack; delete it once you have checked the files, or keep it)
```
## 2. Required files
Required pack, version 1:
- URL: https://sitepeel.dev/website-prompts/smoke-tunnel-clinic/assets-v1.zip
- SHA-256: `3ec38fe6c325fda41ef7297534245db666508e212532c8c2cb8f98da3c468600`
- Size: 783168 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 folder, use that copy. If you cannot download it, stop and ask the person to save the file into the project folder, 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 folder so that `world.js`, `fonts/`, `img/` and `licenses/` sit next to `index.html`, then delete the zip.
Files in the pack (path, SHA-256):
| File | SHA-256 |
|---|---|
| `README.md` | `87c2b460c8da6cc4d68064be72f733f8bd365dc1cb56c6d67945c4bd3736e2a9` |
| `fonts/archivo.woff2` | `8f704806dbedeaaeca334b11ec348bc3ac3a439d6431544b3afb54f534ee4967` |
| `fonts/syncopate-400.woff2` | `b57f964dfec15bc7e94db5c8930e02d2f4031c284a8e852b23b81a29450dbd14` |
| `fonts/syncopate-700.woff2` | `8a462650535a7d255dd037dc3ca7eefde4b2b988bb110736290dbd7b74a83fea` |
| `img/desk-chair.jpg` | `3a50679e6965ce924d06cba6d090a8995d617680880be37960923fa3c12ca5ce` |
| `img/empty-room.jpg` | `be80ba7d6539468d49850c15843916f99d3006cca3c58d79d6dc21b55292b394` |
| `img/runner.jpg` | `e6090a71bb2498e10f8ca225480ca067518ade698bfc277239a1acfe883802e8` |
| `img/sea-fog.jpg` | `7ca4921b93cdd34cd24a74beb84d5f73d977dff57cceec75ac1c7637220fd41b` |
| `img/share.jpg` | `54f6afa699158e1056bb06fe5c6ee1ff98c633e07e74a5590c05fbdef58b9e0d` |
| `img/shoe.jpg` | `d96bca9609fa5df4639edd8876219b6b58ad265b8c873b61c2102bdd23626504` |
| `licenses/Apache-2.0-Syncopate.txt` | `31b1107d58fc013d796cdb112245c9a629f26102eb0d3bcb56ba54f1480c21be` |
| `licenses/OFL-Archivo.txt` | `c3c8402eec0e31dc9a76851235b1c02a0bb821488b2db8e35bcc2ab60ca8fc2b` |
| `licenses/PROVENANCE.md` | `78671eef74023ab7a9f93fa9d42834cb19c072fe22835506085005850b4620bc` |
| `world.js` | `46d551fe32693e7bf44473a8b00c142b513f52bd6c03c5a0919ffabddaee0bc3` |
The zip also holds `SHA256SUMS.txt` with the same list.
`world.js` is supporting code, written for this project and supplied so the smoke behaves the same on every build. Do not rewrite or reformat it; the look depends on its exact numbers. Section 6 explains what it does and the `window.Strand` interface your chapter code uses.
## 3. Rights and honesty
- Archivo is under the SIL Open Font License 1.1 and Syncopate under the Apache License 2.0. Their licences are in `licenses/` and must stay with the font files. Do not rename or modify the fonts.
- The five pictures were generated with an image model for this project. The share picture is a screenshot of the finished page. All the smoke and every line on the page are drawn in code by `world.js`.
- Strand Physio and everything said about it are invented. The page shows no reviews and says so. Keep it that way: no testimonials, patient numbers, ratings or awards.
- The health information on the page (where pain can come from, and the warning signs that need emergency care, with Ireland's emergency numbers 999 and 112) is general. A real clinic must check it with its own clinicians and local emergency numbers before publishing. Replace the name, city, copy and booking address, and remove the `noindex` tag, before anyone publishes the site.
## 4. Page markup
Create `index.html` exactly as below. It holds the structure, every hook the code needs and all of the copy. Notes:
- Sections with class `pin` are pinned scenes; their inline `--len` sets how many screen heights they last.
- `data-beats` sections show their `[data-beat]` lines one at a time as the scene scrolls.
- Each `canvas.still-frame[data-still="<chapter>:<position>"]` receives a still picture of the tunnel when motion is reduced or WebGL is missing.
- `img[data-thread]` pictures are redrawn by `world.js` as horizontal threads whose thickness follows the brightness ("thread print"); `data-period` sets the line spacing in pixels.
```html
<!doctype html>
<html lang="en-IE">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex">
<title>Strand Physio, Dublin. Most pain isn't where it hurts.</title>
<meta name="description" content="Strand Physio is two physios in Dublin, treating mostly runners and people who sit at desks. We look past the sore spot for where the trouble started.">
<meta name="theme-color" content="#14306b">
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' fill='%2314306b'/%3E%3Ccircle cx='17' cy='18' r='4.4' fill='%2314306b' stroke='%23eef1f0' stroke-width='1.6'/%3E%3Cpath d='M2 12c8 0 10 1 15 1s8-1 13-1M2 25c8 0 10-2 14-2s9 2 14 2' fill='none' stroke='%23eef1f0' stroke-width='2'/%3E%3C/svg%3E">
<link rel="preload" href="fonts/syncopate-700.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="fonts/archivo.woff2" as="font" type="font/woff2" crossorigin>
<meta property="og:title" content="Most pain isn't where it hurts.">
<meta property="og:description" content="Strand Physio is a physiotherapy clinic in Dublin. Two physios treating knee, hip, back and neck pain, mostly in runners and people who sit at desks.">
<meta property="og:image" content="img/share.jpg">
<meta name="twitter:card" content="summary_large_image">
<link rel="stylesheet" href="site.css">
<script type="application/ld+json">{"@context":"https://schema.org","@type":"Physiotherapy","name":"Strand Physio","address":{"@type":"PostalAddress","addressLocality":"Dublin","addressCountry":"IE"}}</script>
<script src="booking.js"></script>
<noscript><style>.stage canvas{display:none}.pin{height:auto}.pin>.frame{position:relative;height:auto;padding:96px var(--gutter)}[data-beat]{opacity:1;position:static}.hl__rows li{opacity:1;transform:none}</style></noscript>
</head>
<body>
<a class="skip" href="#run-sheet">Skip the film and book</a>
<div class="stage" aria-hidden="true">
<svg class="poster" viewBox="0 0 1600 900" preserveAspectRatio="xMidYMid slice"><path fill="none" stroke="#eef1f0" stroke-opacity=".34" stroke-width="1" d="M0 24H1600M0 60H1600M0 96H1600M0 132H1600M0 168H1600M0 204H1600M0 240H1600M0 276H1600M0 312H1600M0 348H1600M0 384H1600M0 420H1600M0 456H1600M0 492H1600M0 528H1600M0 564H1600M0 600H1600M0 636H1600M0 672H1600M0 708H1600M0 744H1600M0 780H1600M0 816H1600M0 852H1600M0 888H1600"/></svg>
<canvas id="tunnel"></canvas>
</div>
<header class="bar">
<a class="bar__name" href="#the-storm">Strand Physio</a>
<span class="bar__where"><span class="bar__kind">Physiotherapy, </span>Dublin</span>
<a class="bar__book" data-book href="#run-sheet">Book</a>
</header>
<div class="sta" id="sta" aria-hidden="true">STA 4.42</div>
<main>
<!-- chapter: the-storm -->
<section class="pin storm" data-chapter="the-storm" id="the-storm" style="--len:1.4">
<div class="frame">
<div class="storm__copy">
<h1 class="storm__h">Most pain isn’t where it hurts.</h1>
<div class="storm__row">
<p class="storm__sub">Strand Physio is a physiotherapy clinic in Dublin. Our two physios treat knee, hip, back and neck pain, mostly in runners and people who sit at desks, by finding where it starts.</p>
<a class="bk" data-book href="#run-sheet">Book a first appointment</a>
</div>
</div>
<p class="storm__hint">Scroll to move upstream</p>
<canvas class="still-frame" data-still="the-storm:0" aria-hidden="true"></canvas>
</div>
</section>
<!-- chapter: test-section -->
<section class="pin ts" data-chapter="test-section" id="test-section" data-beats style="--len:2">
<div class="frame">
<p class="ts__line" data-beat>Air comes in from the left.</p>
<p class="ts__line" data-beat>Everything you can see is smoke going around someone you can’t.</p>
<p class="ts__line" data-beat>A wind tunnel is a room for finding out where trouble starts. It shows up behind the thing that caused it.</p>
<canvas class="still-frame" data-still="test-section:1" aria-hidden="true"></canvas>
</div>
</section>
<!-- chapter: the-wand -->
<section class="pin wd" data-chapter="the-wand" id="the-wand" style="--len:1.6">
<div class="frame">
<div class="wd__zone" tabindex="0" role="application" aria-label="Demonstration. Use arrow keys to move a smoke wand across the wind tunnel."></div>
<div class="wd__copy">
<h2 class="wd__h">Take the wand.</h2>
<p>A smoke wand is a thin pipe that lets out one thread of smoke. A technician holds it in the moving air and watches where the thread goes. A physio’s thumb does the same job. We press in one place and ask what you feel in another.</p>
<p class="wd__hint"><span class="wd__fine">Move across the tunnel</span><span class="wd__touch">Drag in the tunnel</span></p>
<p class="wd__read" aria-hidden="true">STA <span id="wdX">3.70</span> H <span id="wdY">1.00</span></p>
</div>
<canvas class="still-frame" data-still="the-wand:.9" aria-hidden="true"></canvas>
</div>
</section>
<!-- chapter: upstream -->
<section class="pin up" data-chapter="upstream" id="upstream" data-beats style="--len:4" aria-label="Moving the wand upstream from the knee to the hip">
<div class="frame">
<p class="up__beat" data-beat>This is the knee you came in about.</p>
<p class="up__beat" data-beat>We leave it for a minute and go looking.</p>
<p class="up__beat" data-beat>Along the thigh.</p>
<p class="up__beat up__beat--big" data-beat>Here.</p>
<p class="up__beat up__beat--big" data-beat>Nothing touched the knee.</p>
<canvas class="still-frame" data-still="upstream:.3" aria-hidden="true"></canvas>
<canvas class="still-frame" data-still="upstream:1" data-calm="1" aria-hidden="true"></canvas>
</div>
</section>
<!-- chapter: still-air -->
<section class="still" data-chapter="still-air" id="still-air">
<p class="still__line">Sometimes it really is the knee. Then we’ve spent ten minutes finding that out, and now you know.</p>
</section>
<!-- chapter: one-duct -->
<section class="duct" data-chapter="one-duct" id="one-duct">
<svg class="duct__art" viewBox="0 0 1200 380" aria-hidden="true">
<g fill="none" stroke="#eef1f0" stroke-opacity=".35" stroke-width="2">
<path d="M40 70C300 70 400 190 640 190"/><path d="M40 320C300 320 400 190 640 190"/><path d="M640 190H1050"/>
</g>
<g fill="none" stroke="#e0472c" stroke-width="4" stroke-linecap="round">
<path class="duct__p" id="ductA" pathLength="100" d="M40 70C300 70 400 190 640 190H1050"/>
<path class="duct__p" id="ductB" pathLength="100" d="M40 320C300 320 400 190 640 190H1050"/>
</g>
<circle class="duct__lamp" cx="1100" cy="190" r="34"/>
<g font-family="Syncopate, sans-serif" font-weight="700" font-size="24" fill="#eef1f0"><text x="40" y="50">HIP</text><text x="40" y="360">KNEE</text><text x="1170" y="262" text-anchor="end">BRAIN</text></g>
</svg>
<div class="duct__cols">
<div>
<h2 class="duct__h">Two threads, one duct</h2>
<div class="duct__btns">
<button class="bk" data-send="ductA" type="button">Send smoke from the hip</button>
<button class="bk" data-send="ductB" type="button">Send smoke from the knee</button>
</div>
<p class="duct__result" aria-live="polite"></p>
</div>
<div>
<p>Nerves from different tissues feed into the same segments of the spinal cord. Your brain reads the segment and guesses the address. Hip and knee share nerves, which is why hip arthritis can turn up as knee pain. High in the neck the same thing happens with the nerves of the face, which is one reason a stiff neck can be felt as a headache.</p>
</div>
</div>
</section>
<!-- chapter: ten-thousand -->
<section class="tt" data-chapter="ten-thousand" id="ten-thousand">
<h2 class="tt__h">Runners do this sum on one leg</h2>
<output class="tt__num" id="ttN" for="ttKm">14,025</output>
<p class="tt__unit">steps a week on the sore leg</p>
<label class="tt__label" for="ttKm">Kilometres a week <b id="ttKmV">30</b></label>
<input class="tt__range" id="ttKm" type="range" min="0" max="120" step="1" value="30">
<p class="tt__note" id="ttNote">Worked at 170 steps a minute and 5 minutes 30 a kilometre, then halved for one leg.</p>
<div class="tt__pics">
<img class="tt__pic tt__pic--a" data-thread src="img/runner.jpg" alt="A runner in mid stride, side on, against a dark wall." width="800" height="622" loading="lazy">
<img class="tt__pic tt__pic--b" data-thread data-period="6" src="img/shoe.jpg" alt="A worn running shoe in close-up, with spray coming off it." width="800" height="971" loading="lazy">
</div>
<p class="tt__body">A difference too small to see gets rehearsed every one of those steps. We see a lot of runners, so we’ll want to watch you run.</p>
</section>
<!-- chapter: sits-down -->
<section class="pin sd" data-chapter="sits-down" id="sits-down" data-beats style="--len:2.2">
<div class="frame">
<p class="sd__b" data-beat>The fan stops.</p>
<p class="sd__b sd__b--r" data-beat>A runner is someone who sits down afterwards.</p>
<p class="sd__b sd__b--big" data-beat>Same hip.</p>
<canvas class="still-frame" data-still="sits-down:.1" aria-hidden="true"></canvas>
<canvas class="still-frame" data-still="sits-down:.95" aria-hidden="true"></canvas>
</div>
</section>
<!-- chapter: eight-hours -->
<section class="eh" data-chapter="eight-hours" id="eight-hours">
<h2 class="eh__h">Eight hours, one shape</h2>
<div class="eh__track" aria-hidden="true">
<span class="eh__tuft" id="ehTuft"></span>
<span style="--h:0">09</span><span style="--h:1">10</span><span style="--h:2">11</span><span style="--h:3">12</span><span style="--h:5">14</span><span style="--h:6">15</span><span style="--h:7">16</span><span style="--h:8">17</span>
</div>
<p class="eh__live"><time id="ehTime"></time> <span id="ehLine"></span></p>
<div class="eh__pics">
<img class="eh__pic" data-thread src="img/desk-chair.jpg" alt="An office chair at a desk beside tall curtains." width="800" height="1400" loading="lazy">
<img class="eh__pic eh__pic--w" data-thread data-period="8" src="img/empty-room.jpg" alt="An empty room with one chair and low sun across the floor." width="800" height="800" loading="lazy">
</div>
<p class="eh__body">A desk loads you lightly, in the same place, for hours. Researchers haven’t found one correct way to sit, so a better chair is rarely the whole answer. Changing how you’re sitting more often tends to matter more.</p>
</section>
<!-- chapter: where-it-lands -->
<section class="wl" data-chapter="where-it-lands" id="where-it-lands">
<h2 class="wl__h">Where does it hurt?</h2>
<fieldset class="wl__list">
<legend class="sr">Choose where it hurts</legend>
<label><input type="radio" name="where" value="knee" checked><span>Knee</span></label>
<label><input type="radio" name="where" value="shin"><span>Shin</span></label>
<label><input type="radio" name="where" value="heel"><span>Heel</span></label>
<label><input type="radio" name="where" value="back"><span>Low back</span></label>
<label><input type="radio" name="where" value="shoulder"><span>Shoulder</span></label>
<label><input type="radio" name="where" value="neck"><span>Neck</span></label>
<label><input type="radio" name="where" value="temple"><span>Temple</span></label>
</fieldset>
<p class="wl__ans" id="wlAns" aria-live="polite">Knee. We’d also look at your hip and your foot.</p>
<p class="wl__note">These are places we’d look. A diagnosis takes a person in a room.</p>
<ul class="wl__stills">
<li>Knee. We’d also look at your hip and your foot.</li><li>Shin. We’d also look at your calf, your foot and what your training has done lately.</li><li>Heel. We’d also look at your calf and your ankle.</li><li>Low back. We’d also look at your hips and how you bend.</li><li>Shoulder. We’d also look at your neck and your upper back.</li><li>Neck. We’d also look at your upper back and your shoulder blades.</li><li>Temple. We’d also look high up in your neck.</li>
</ul>
</section>
<!-- chapter: house-lights -->
<section class="hl on-paper" data-chapter="house-lights" id="house-lights" data-tone="paper">
<div class="hl__card" data-in>
<i class="hl__hole" aria-hidden="true"></i>
<h2 class="hl__h">Run sheet for a first appointment</h2>
<ol class="hl__rows">
<li>You tell us where it hurts.</li>
<li>We ask about the weeks before it started. New shoes, perhaps, or a deadline.</li>
<li>We watch you move. You may stand on one leg. Runners may run.</li>
<li>We press in places that don’t hurt and ask what you feel.</li>
<li>We tell you what we think and what we still don’t know.</li>
<li>You leave with something to do.</li>
</ol>
<p class="hl__wear">Wear something you can move in. Runners, bring the shoes you run in.</p>
</div>
</section>
<!-- chapter: two-wands -->
<section class="tw on-paper" data-chapter="two-wands" id="two-wands" data-tone="paper">
<svg class="tw__rods" viewBox="0 0 900 120" aria-hidden="true">
<g class="tw__rod" tabindex="-1"><rect x="20" y="26" width="860" height="16" fill="#14306b" transform="translate(5 6)" opacity=".3"/><rect x="20" y="26" width="860" height="16" fill="#8d9aab"/><rect x="20" y="29" width="860" height="2.5" fill="#eef1f0"/><rect x="838" y="22" width="18" height="24" fill="#14306b"/></g>
<g class="tw__rod tw__rod--2" tabindex="-1"><rect x="20" y="72" width="860" height="16" fill="#14306b" transform="translate(5 6)" opacity=".3"/><rect x="20" y="72" width="860" height="16" fill="#8d9aab"/><rect x="20" y="75" width="860" height="2.5" fill="#eef1f0"/><rect x="838" y="68" width="18" height="24" fill="#14306b"/></g>
</svg>
<h2 class="tw__h">Two wands in the rack.</h2>
<p class="tw__p">There are two physios at Strand, and one of them will be the person looking at your hip.</p>
</section>
<!-- chapter: do-not-book -->
<section class="pin db" data-chapter="do-not-book" id="do-not-book" data-beats style="--len:1.1">
<div class="frame">
<div class="db__plate">
<i class="db__rivet"></i><i class="db__rivet"></i><i class="db__rivet"></i><i class="db__rivet"></i>
<h2 class="db__h">Please don’t book us for this</h2>
<ul class="db__list">
<li>Back pain with numbness around your groin or buttocks, or new trouble passing urine or controlling your bladder or bowels. <strong>Go to an emergency department now.</strong></li>
<li>Chest pain, or pain with sudden breathlessness. <strong>Ring <a href="tel:999">999</a> or <a href="tel:112">112</a>.</strong></li>
<li>A calf that has become hot, swollen and painful. <strong>Get seen today.</strong></li>
<li>Back or neck pain after a fall or a crash. <strong>Get seen today.</strong></li>
</ul>
<p class="db__note">Physio can wait. These can’t.</p>
</div>
</div>
</section>
<!-- chapter: asked-quietly -->
<section class="aq" data-chapter="asked-quietly" id="asked-quietly">
<h2 class="aq__h">Things people ask once they’ve sat down</h2>
<details class="aq__q"><summary>Do I have to stop running?</summary><p>Maybe for a bit. More often you’d change something and keep going. We’d want to see you before saying which.</p></details>
<details class="aq__q aq__q--r"><summary>Will you tell me my posture is bad?</summary><p>No. Researchers haven’t found one correct posture, and we aren’t going to pretend otherwise.</p></details>
<details class="aq__q"><summary>Will it hurt?</summary><p>Some tests set your pain off on purpose, because that’s how we find it. Say stop and we stop.</p></details>
<details class="aq__q aq__q--r"><summary>Is it all in my head?</summary><p>All pain is produced by the nervous system. That’s different from imaginary.</p></details>
<details class="aq__q"><summary>I’ve had this for ten years. Is that stupid?</summary><p>No. Long-standing pain is still worth looking at. We can’t promise how it’ll go, and we’ll tell you what we think after we’ve looked.</p></details>
<details class="aq__q aq__q--r"><summary>What if you can’t find anything?</summary><p>We’ll say so, and tell you who we’d send you to next.</p></details>
</section>
<!-- chapter: run-sheet -->
<section class="rs" data-chapter="run-sheet" id="run-sheet">
<img class="rs__sea" data-thread data-period="9" src="img/sea-fog.jpg" alt="A grey sea under fog, with low waves running to the horizon." width="800" height="457" loading="lazy">
<div class="rs__card on-paper">
<i class="hl__hole" aria-hidden="true"></i>
<h2 class="rs__h">Bring us the knee</h2>
<p class="rs__lead">Book a first appointment. If you like, fill in the run sheet first and bring it with you.</p>
<div class="rs__form" id="rsForm" role="group" aria-label="Your run sheet" aria-describedby="rsSaved">
<label>Where it hurts<input name="where" autocomplete="off"></label>
<label>When it started<input name="when" autocomplete="off"></label>
<label>Where you think it’s coming from<input name="from" autocomplete="off" aria-describedby="rsHelp"><small id="rsHelp">A guess is fine. We’ll check.</small></label>
<div class="rs__btns">
<button class="bk bk--ink" type="button" id="rsPrint">Print my run sheet</button>
<a class="bk bk--book" data-book-final data-book-label="Book a first appointment" data-no-label="Booking opens soon">Book a first appointment</a>
</div>
<p class="rs__saved" id="rsSaved">Saved on this device only. We can’t see it.</p>
</div>
</div>
</section>
<!-- chapter: last-thread -->
<footer class="lt" data-chapter="last-thread" id="last-thread">
<p class="lt__word">The word below is smoke going around nothing.</p>
<p class="lt__phone" aria-hidden="true">Strand</p>
<div class="lt__foot">
<p>Strand Physio, Dublin. A strand is a single thread. In Dublin it is also a long flat beach, which is where a lot of runners go.</p>
<p>Set in Syncopate and Archivo. Every line on this page was drawn by the code that runs the tunnel.</p>
<p>Not on this page, on purpose. Reviews, because we have none to show you yet. Photographs of hands on shoulders. The word journey.</p>
</div>
</footer>
</main>
<script defer src="world.js"></script>
<script defer src="site.js"></script>
</body>
</html>
```
## 5. Styles
Create `site.css` exactly as below. Notes on the parts that matter most:
- Colour tokens: `--blue #14306b` (the tunnel), `--floor #0b1a40`, `--smoke #eef1f0`, `--wool #e0472c` (the red turbulence threads), `--sheet #dcc998` (the paper of the run sheet, used by `.on-paper` parts), `--steel #8d9aab`, `--ink #14306b`. Use them in anything you add.
- Type: Syncopate 700 in capitals for headings and labels, Archivo for running text.
- `.pin` sections are tall; their `.frame` is `position: sticky`, `100svh` high. `[data-beat]` lines are stacked in the frame and only the `on` one is visible.
- `html.stage-live` hides the SVG poster once the tunnel is running; `html.stills` shows the still canvases instead of the live tunnel.
- The header reads `Physiotherapy, Dublin` beside the name; under 720px wide the word `Physiotherapy,` hides (the first screen already says it). In the first screen a soft dark veil behind the heading, sentence and button keeps them readable over the smoke.
- The two run sheet buttons sit in a grid with equal rows, so they always share one height.
- The fixed `STA` readout fades out in the closing chapter (`body[data-at="last-thread"]`), so it never sits on the footer text.
- Under 720px wide the layout becomes one column, the `STA` readout hides, the eight-hours track runs vertically, and the run sheet card fills the width.
- `prefers-reduced-motion: reduce` stops transitions; `world.js` then draws stills.
```css
/* world/00-base.css */
@font-face { font-family: Syncopate; src: url(fonts/syncopate-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Syncopate; src: url(fonts/syncopate-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Archivo; src: url(fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Fallback; src: local("Arial"); size-adjust: 96%; ascent-override: 92%; descent-override: 24%; }
:root {
--blue: #14306b; --floor: #0b1a40; --smoke: #eef1f0; --wool: #e0472c; --sheet: #dcc998; --steel: #8d9aab; --ink: #14306b;
--wall: "Syncopate", Fallback, sans-serif; --type: "Archivo", Fallback, sans-serif;
--gutter: clamp(20px, 4vw, 64px);
--arrive: cubic-bezier(.16, 1, .3, 1); --answer: cubic-bezier(.2, .8, .2, 1);
font-synthesis: none;
}
* { box-sizing: border-box; }
html { background: var(--blue); scrollbar-color: var(--steel) var(--floor); scrollbar-width: thin; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--blue); color: var(--smoke); font: 400 clamp(17px, 1.25vw, 20px)/1.5 var(--type); -webkit-font-smoothing: antialiased; overflow-x: clip; }
main { position: relative; z-index: 1; }
::selection { background: var(--wool); color: var(--smoke); }
input, textarea { caret-color: var(--wool); }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--smoke); outline-offset: 3px; }
.on-paper :focus-visible { outline-color: var(--ink); }
h1, h2 { margin: 0; font-family: var(--wall); font-weight: 700; text-transform: uppercase; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; }
.skip { position: fixed; z-index: 20; left: 12px; top: -60px; padding: 12px 16px; background: var(--smoke); color: var(--ink); }
.skip:focus { top: 12px; }
.stage { position: fixed; inset: 0; z-index: 0; background: var(--blue); }
.stage canvas, .poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-live .poster { display: none; }
.bar { position: fixed; z-index: 10; inset: 0 0 auto 0; display: flex; align-items: center; gap: 24px; padding: 2px var(--gutter); background: var(--blue); box-shadow: 0 1px 0 var(--smoke); font: 700 12px/1 var(--wall); letter-spacing: .04em; text-transform: uppercase; color: var(--smoke); transition: color .3s, background-color .3s; }
body[data-at="house-lights"] .bar, body[data-at="two-wands"] .bar { color: var(--ink); background: var(--sheet); box-shadow: 0 1px 0 var(--ink); }
.bar a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.bar__where { margin-left: auto; font-weight: 400; white-space: pre; }
@media (max-width: 720px) { .bar__kind { display: none; } }
.bar__book { padding: 0 2px; background: linear-gradient(90deg, var(--wool), var(--wool)) no-repeat 0 100% / 0 2px; transition: background-size .2s var(--answer); }
.bar__book:hover { background-size: 100% 2px; }
.bar__book:active { transform: translateY(1px) scale(.97); }
.sta { position: fixed; z-index: 9; left: var(--gutter); bottom: 14px; font: 400 11px/1 var(--wall); letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--smoke); opacity: .85; pointer-events: none; }
body[data-at="house-lights"] .sta, body[data-at="two-wands"] .sta { color: var(--ink); }
.sta { transition: opacity .3s; }
body[data-at="last-thread"] .sta { opacity: 0; }
/* A pinned stretch of the film: the section is tall, the inner frame stays put. */
.pin { position: relative; height: calc(var(--len, 1) * 100svh); }
@media (max-width: 720px) { .pin { height: calc(var(--len, 1) * 72svh + 28svh); } }
.pin > .frame { position: sticky; top: 0; height: 100svh; overflow: clip; }
.bk { display: inline-block; padding: 14px 20px; background: var(--smoke); color: var(--ink); font: 700 12px/1.2 var(--wall); letter-spacing: .03em; text-transform: uppercase; text-decoration: none; min-height: 44px; }
.bk { text-shadow: none; transition: transform 90ms var(--answer), background-color 140ms var(--answer); }
.bk:hover { background: var(--sheet); }
.bk:active { transform: translateY(1px) scale(.97); }
.bk[aria-disabled="true"] { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; cursor: not-allowed; }
[data-beat] { opacity: 0; transition: opacity 180ms linear; }
[data-beat].on { opacity: 1; }
.still-frame { display: none; }
.stills .pin { height: auto !important; }
.stills .pin > .frame { position: relative; height: auto; overflow: visible; padding: 96px var(--gutter); }
.stills .still-frame { display: block; width: 100%; height: auto; aspect-ratio: 16/9; }
.stills [data-beat] { opacity: 1; position: static !important; display: block; transform: none !important; }
.stills .stage { display: none; }
.stills .storm .frame { min-height: 90svh; }
.stills .storm .still-frame { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.stills .storm__copy { position: relative; left: 0; right: 0; bottom: 0; z-index: 1; margin-top: 34svh; text-shadow: 0 0 24px var(--floor), 0 0 6px var(--floor); }
.stills [data-tone="paper"] { background: var(--sheet); }
.stills body { background: var(--blue); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { .stage, .bar, .sta, .skip, [data-chapter]:not([data-chapter="run-sheet"]):not([data-chapter="house-lights"]) { display: none !important; } body { background: #fff; color: #000; } }
@media (max-width: 720px) { .sta { display: none; } .lt a { display: inline-block; min-height: 44px; line-height: 44px; } .db__list a { min-width: 56px; text-align: center; } }
/* chapter: the-storm */
.storm__copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(52px, 8svh, 96px); isolation: isolate; }
.storm__copy::before { content: ""; position: absolute; z-index: -1; inset: -12% calc(-1 * var(--gutter)) -40% calc(-1 * var(--gutter)); background: linear-gradient(rgba(11,26,64,0), rgba(11,26,64,.5) 38%, rgba(11,26,64,.5) 62%, rgba(11,26,64,0)); pointer-events: none; }
.storm__h { font-size: clamp(42px, 7.9vw, 148px); line-height: .94; max-width: 13ch; text-shadow: 0 0 34px var(--blue), 0 0 8px var(--blue); }
.storm__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 28px; }
.storm__sub { max-width: 42ch; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.35; font-weight: 500; text-shadow: 0 0 14px var(--blue); }
.storm__hint { position: absolute; right: var(--gutter); bottom: 14px; font: 400 11px/1 var(--wall); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 720px) { .storm__h { font-size: clamp(38px, 11.4vw, 60px); } .storm__row { flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 18px; } .storm__hint { display: none; } }
/* chapter: test-section */
.ts__line { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 44px; max-width: 34ch; font: 700 clamp(19px, 2.1vw, 32px)/1.2 var(--wall); text-transform: uppercase; letter-spacing: -.01em; text-shadow: 0 0 18px var(--blue); }
.ts__line:nth-of-type(3) { max-width: 46ch; font-size: clamp(16px, 1.55vw, 24px); }
@media (max-width: 720px) { .ts__line { bottom: auto; top: 88px; font-size: 20px; } }
/* chapter: the-wand */
.wd__zone { position: absolute; inset: 0; touch-action: pan-y; }
.wd__copy { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(30ch, 40vw); pointer-events: none; text-shadow: 0 0 12px var(--blue); }
.wd__h { font-size: clamp(30px, 3.8vw, 58px); line-height: 1; margin-bottom: 22px; }
.wd__hint { margin-top: 18px; font: 700 12px/1.2 var(--wall); letter-spacing: .04em; text-transform: uppercase; color: var(--smoke); }
.wd__hint.gone { visibility: hidden; }
.wd__touch { display: none; }
@media (hover: none) { .wd__fine { display: none; } .wd__touch { display: inline; } }
.wd__read { margin-top: 26px; font: 400 11px/1 var(--wall); letter-spacing: .05em; font-variant-numeric: tabular-nums; opacity: .85; }
.wd__zone:focus-visible { outline-offset: -6px; }
@media (max-width: 720px) { .wd__copy { position: absolute; left: var(--gutter); right: var(--gutter); width: auto; top: 86px; transform: none; font-size: 16px; } .wd__h { font-size: 30px; margin-bottom: 10px; } }
/* chapter: upstream */
.up__beat { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(56px, 11svh, 120px); font: 700 clamp(26px, 3.6vw, 56px)/1.08 var(--wall); text-transform: uppercase; letter-spacing: -.02em; max-width: 18ch; }
.up__beat--big { font-size: clamp(40px, 7.4vw, 120px); max-width: 12ch; line-height: .98; }
@media (max-width: 720px) { .up__beat { bottom: auto; top: 90px; font-size: clamp(24px, 6vw, 34px); max-width: none; } .up__beat--big { font-size: clamp(38px, 11vw, 56px); } }
/* chapter: still-air */
.still { min-height: 90svh; display: flex; align-items: center; padding: 96px var(--gutter); }
.still__line { max-width: 22ch; font-size: clamp(28px, 3.6vw, 56px); line-height: 1.16; font-weight: 500; margin-left: 12vw; text-shadow: 0 0 22px var(--floor); }
@media (max-width: 720px) { .still__line { margin-left: 0; font-size: 26px; max-width: 16ch; } }
/* chapter: one-duct */
.duct { padding: 18svh var(--gutter) 16svh; }
.duct__art { width: 100%; height: auto; display: block; margin-bottom: 7svh; overflow: visible; }
.duct__p { stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.duct__p.go { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1100ms linear; }
.duct__lamp { fill: var(--blue); stroke: var(--smoke); stroke-width: 2; transition: fill 200ms var(--answer); }
.duct__lamp.lit { fill: var(--wool); }
.duct__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 96px); align-items: start; }
.duct__h { font-size: clamp(26px, 3vw, 46px); line-height: 1.05; margin-bottom: 24px; }
.duct__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.bk[data-send].sent::before { content: ""; display: inline-block; width: 18px; height: 3px; background: var(--wool); margin-right: 8px; vertical-align: middle; }
.duct__result { min-height: 1.6em; margin-top: 20px; font: 700 14px/1.2 var(--wall); text-transform: uppercase; }
@media (max-width: 720px) { .duct__cols { grid-template-columns: 1fr; } .duct__art { width: 100%; margin-left: 0; } .duct__art text { font-size: 50px; } .bk[data-send] { width: 100%; } }
/* chapter: ten-thousand */
.tt { padding: 16svh var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 5vw, 80px); }
.tt__h { grid-column: 1 / -1; font-size: clamp(28px, 4.4vw, 72px); line-height: 1; max-width: 16ch; margin-bottom: 5svh; }
.tt__num { grid-column: 1 / -1; display: block; font: 700 clamp(64px, 18.5vw, 340px)/.9 var(--wall); letter-spacing: -.05em; font-variant-numeric: tabular-nums; margin-left: -.03em; text-shadow: 0 0 40px var(--blue); }
.tt__unit { grid-column: 1 / -1; font: 700 clamp(14px, 1.6vw, 22px)/1.1 var(--wall); text-transform: uppercase; margin: 8px 0 7svh; }
.tt__label { grid-column: 1; font-weight: 600; }
.tt__label b { font-variant-numeric: tabular-nums; margin-left: 8px; }
.tt__range { grid-column: 1; width: 100%; height: 44px; margin: 6px 0 0; appearance: none; background: transparent; cursor: ew-resize; }
.tt__range::-webkit-slider-runnable-track { height: 2px; background: var(--smoke); }
.tt__range::-moz-range-track { height: 2px; background: var(--smoke); }
.tt__range::-webkit-slider-thumb { appearance: none; width: 32px; height: 7px; background: var(--wool); margin-top: -2.5px; transition: transform 100ms var(--answer); }
.tt__range::-moz-range-thumb { width: 32px; height: 7px; background: var(--wool); border: 0; }
.tt__range:active::-webkit-slider-thumb { transform: rotate(-5deg); }
.tt__note { grid-column: 1; font-size: 14px; max-width: 40ch; opacity: .9; }
.tt__pics { grid-column: 2; grid-row: 4 / span 4; position: relative; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; margin: -8svh 0 0 0; }
.tt__pic { width: 100%; height: auto; display: block; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tt__pic--b { width: 44%; margin-top: 0; margin-left: auto; }
.tt__pic.unprinted, img.tt__pic { filter: grayscale(1) contrast(1.15); }
.tt__body { grid-column: 1; max-width: 38ch; margin-top: 4svh; font-size: clamp(19px, 1.7vw, 26px); line-height: 1.25; }
@media (max-width: 720px) { .tt { display: block; } .tt__pics { display: flex; overflow-x: auto; gap: 10px; margin: 28px calc(var(--gutter) * -1); padding: 0 var(--gutter); scroll-snap-type: x mandatory; } .tt__pic, .tt__pic--b { flex: 0 0 82%; width: 82%; margin: 0; scroll-snap-align: start; } }
/* chapter: sits-down */
.sd__b { position: absolute; left: var(--gutter); top: 84px; font: 700 clamp(24px, 3vw, 46px)/1.1 var(--wall); text-transform: uppercase; max-width: 22ch; letter-spacing: -.01em; }
.sd__b--r { left: auto; right: var(--gutter); text-align: right; }
.sd__b--big { font-size: clamp(44px, 9vw, 150px); line-height: .95; }
@media (max-width: 720px) { .sd__b { font-size: 22px; } .sd__b--r { left: var(--gutter); text-align: left; } .sd__b--big { font-size: 44px; } }
/* chapter: eight-hours */
.eh { padding: 14svh var(--gutter) 12svh; }
.eh__h { font-size: clamp(30px, 5vw, 80px); line-height: 1; max-width: 12ch; }
.eh__track { position: relative; height: 56px; border-bottom: 2px solid var(--smoke); margin: 8svh 0 18px; font: 400 15px/1 var(--wall); font-variant-numeric: tabular-nums; }
.eh__track span:not(.eh__tuft) { position: absolute; left: calc(var(--h) * 12.5%); bottom: 10px; transform: translateX(-50%); }
.eh__track span:not(.eh__tuft)::after { content: ""; position: absolute; left: 50%; top: 22px; width: 1px; height: 10px; background: var(--smoke); }
.eh__tuft { position: absolute; bottom: -6px; left: -4px; width: 34px; height: 9px; background: var(--wool); transition: transform .6s var(--arrive); }
.eh__live { font-size: clamp(20px, 2vw, 28px); line-height: 1.25; max-width: 40ch; }
.eh__live time { font-variant-numeric: tabular-nums; font-weight: 600; }
.eh__pics { display: flex; gap: clamp(16px, 4vw, 56px); margin: 8svh 0 6svh; align-items: flex-end; }
.eh__pic { width: 30%; height: auto; display: block; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.eh__pic--w { width: 54%; }
.eh__body { max-width: 44ch; font-size: clamp(19px, 1.7vw, 25px); line-height: 1.3; margin-left: auto; }
@media (max-width: 720px) {
.eh__track { height: 300px; border-bottom: 0; border-left: 2px solid var(--smoke); width: 54px; margin: 28px 0; }
.eh__track span:not(.eh__tuft) { left: 12px; bottom: auto; top: calc(var(--h) * 12.5%); transform: none; } .eh__track span:not(.eh__tuft)::after { display: none; }
.eh__tuft { left: -6px; top: 0; bottom: auto; width: 9px; height: 34px; }
.eh__pics { flex-direction: column; align-items: flex-start; } .eh__pic, .eh__pic--w { width: 100%; }
}
/* chapter: where-it-lands */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wl { min-height: 118svh; padding: 13svh var(--gutter); }
.wl__h { font-size: clamp(30px, 5vw, 82px); line-height: 1; max-width: 14ch; margin-bottom: 4svh; }
.wl__list { border: 0; margin: 0; padding: 0; width: fit-content; }
.wl__list label { display: block; cursor: pointer; min-height: 44px; }
.wl__list input { position: absolute; opacity: 0; }
.wl__list span { display: inline-block; font: 700 clamp(30px, 5.2vw, 84px)/1.06 var(--wall); text-transform: uppercase; letter-spacing: -.03em; transition: color 60ms var(--answer), transform 200ms var(--arrive); }
.wl__list label:hover span { color: var(--sheet); }
.wl__list input:checked + span { color: var(--wool); transform: translateX(.6em); }
.wl__list input:focus-visible + span { outline: 2px solid var(--smoke); outline-offset: 2px; }
.wl__ans { margin-top: 5svh; max-width: 30ch; font-size: clamp(20px, 2vw, 30px); line-height: 1.2; font-weight: 500; }
.wl__note { margin-top: 12px; font-size: 14px; opacity: .85; }
.wl__stills { display: none; }
.stills .wl__stills { display: block; }
.stills .wl__list, .stills .wl__ans { display: none; }
@media (max-width: 720px) { .wl__list span { font-size: 28px; } .wl__list { display: flex; flex-wrap: wrap; gap: 2px 18px; } .wl__list input:checked + span { transform: none; } }
/* chapter: house-lights */
.hl { padding: 22svh var(--gutter) 10svh; color: var(--ink); }
.hl__card { position: relative; max-width: 980px; margin: 0 auto; padding: clamp(28px, 5vw, 64px); border: 1.5px solid var(--ink); background: var(--sheet); }
.hl__hole { position: absolute; left: 18px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); box-shadow: inset 1px 1px 0 var(--ink); }
.hl__h { font-size: clamp(22px, 3vw, 44px); line-height: 1.05; margin: 0 0 4svh 14px; max-width: 18ch; }
.hl__rows { list-style: none; counter-reset: r; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.hl__rows li { counter-increment: r; display: grid; grid-template-columns: 56px 1fr; padding: 14px 0; border-bottom: 1px solid var(--ink); font-size: clamp(18px, 1.6vw, 24px); line-height: 1.25; background-image: linear-gradient(var(--ink), var(--ink)); background-repeat: no-repeat; background-size: 0 1px; background-position: 56px calc(100% - 8px); transition: background-size 180ms var(--answer), transform .5s var(--arrive), opacity .5s var(--arrive); transform: translateY(10px); opacity: 0; }
.hl__rows li::before { content: counter(r); font: 700 15px/1.6 var(--wall); font-variant-numeric: tabular-nums; }
.hl__rows li:hover { background-size: calc(100% - 56px) 1px; }
.hl__card.in li { transform: none; opacity: 1; }
.hl__card.in li:nth-child(2) { transition-delay: 60ms; } .hl__card.in li:nth-child(3) { transition-delay: 120ms; } .hl__card.in li:nth-child(4) { transition-delay: 180ms; } .hl__card.in li:nth-child(5) { transition-delay: 240ms; } .hl__card.in li:nth-child(6) { transition-delay: 300ms; }
.hl__wear { margin-top: 20px; font-size: 15px; }
@media (max-width: 720px) { .hl__rows li { grid-template-columns: 34px 1fr; } .hl__hole { left: 50%; top: 10px; } .hl__h { margin-left: 0; margin-top: 14px; } }
.stills .hl__rows li { transform: none; opacity: 1; }
/* chapter: two-wands */
.tw { padding: 14svh var(--gutter) 20svh; color: var(--ink); text-align: center; }
.tw__rods { width: min(760px, 88vw); height: auto; display: block; margin: 0 auto 6svh; }
.tw__rod { transform-origin: 20px 50%; transition: transform 200ms var(--answer); transform: rotate(var(--r, -1.4deg)); cursor: pointer; }
.tw__rod--2 { --r: 1.2deg; }
.tw__rod:hover { transform: rotate(calc(var(--r, -1.4deg) - 1deg)); }
.tw__rods.in .tw__rod { --r: 0deg; transition-duration: .9s; }
.tw__h { font-size: clamp(22px, 2.6vw, 38px); }
.tw__p { max-width: 34ch; margin: 18px auto 0; font-size: clamp(18px, 1.5vw, 22px); }
/* chapter: do-not-book */
.db__plate { position: absolute; inset: 0; background: var(--wool); color: #fff; padding: clamp(64px, 11svh, 110px) var(--gutter) clamp(20px, 4svh, 40px); clip-path: inset(calc((1 - min(1, var(--p, 0) * 2.6)) * 46%) 0); display: flex; flex-direction: column; justify-content: center; }
.db__rivet { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--floor); }
.db__rivet:nth-child(1) { left: 14px; top: 14px; } .db__rivet:nth-child(2) { right: 14px; top: 14px; } .db__rivet:nth-child(3) { left: 14px; bottom: 14px; } .db__rivet:nth-child(4) { right: 14px; bottom: 14px; }
.db__h { font-size: clamp(26px, 4.6vw, 78px); line-height: 1; max-width: 18ch; margin-bottom: 3.5svh; }
.db__list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 48px; font-size: clamp(16px, 1.35vw, 21px); line-height: 1.3; font-weight: 500; }
.db__list li { break-inside: avoid; padding: 10px 0; border-top: 2px solid #fff; }
.db__list a { font-weight: 700; text-decoration-thickness: 2px; }
.db__list a:hover { text-decoration-thickness: 4px; }
.db__note { margin-top: 2.5svh; font: 700 clamp(15px, 1.5vw, 22px)/1.1 var(--wall); text-transform: uppercase; }
.db :focus-visible { outline-color: #fff; }
@media (max-width: 720px) {
.pin.db { height: auto; } .db .frame { position: relative; height: auto; }
.db__plate { position: relative; clip-path: none; padding: 72px var(--gutter) 44px; } .db__list { columns: 1; } .db__list a { display: inline-block; min-height: 44px; line-height: 44px; }
}
.stills .db__plate { position: relative; clip-path: none; }
/* chapter: asked-quietly */
.aq { padding: 20svh var(--gutter); }
.aq__h { font-size: clamp(28px, 4.4vw, 74px); line-height: 1; max-width: 16ch; margin-bottom: 9svh; }
.aq__q { width: min(62%, 860px); margin-bottom: 7svh; text-shadow: 0 0 14px var(--blue); }
.aq__q--r { margin-left: auto; }
.aq__q summary { cursor: pointer; list-style: none; font-size: clamp(24px, 3.1vw, 48px); line-height: 1.14; font-weight: 500; min-height: 44px; position: relative; }
.aq__q summary::-webkit-details-marker { display: none; }
.aq__q[open] summary::before { content: ""; position: absolute; left: -46px; top: .6em; width: 34px; height: 6px; background: var(--wool); }
.aq__q summary:hover { color: var(--sheet); }
.aq__q p { margin-top: 12px; max-width: 46ch; font-size: clamp(17px, 1.4vw, 21px); }
.stills .aq__q { width: auto; }
@media (max-width: 720px) { .aq__q, .aq__q--r { width: 100%; margin-left: 0; margin-bottom: 40px; } .aq__q[open] summary::before { left: 0; top: -10px; } }
/* chapter: run-sheet */
.rs { position: relative; min-height: 120svh; padding: 26svh var(--gutter) 12svh; display: flex; justify-content: flex-end; align-items: flex-start; }
.rs__sea { position: absolute; left: 0; right: 0; bottom: 8svh; width: 100%; height: 66svh; object-fit: cover; display: block; opacity: .9; }
canvas.rs__sea { height: 66svh; object-fit: fill; }
img.rs__sea { filter: grayscale(1) contrast(1.1) opacity(.5); }
canvas.rs__sea { -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.rs__card { position: relative; z-index: 1; width: min(460px, 100%); background: var(--sheet); color: var(--ink); padding: 40px 30px 26px; }
.rs__h { font-size: clamp(22px, 2.3vw, 34px); line-height: 1.05; margin-bottom: 12px; }
.rs__lead { margin-bottom: 20px; font-size: 18px; line-height: 1.3; }
.rs__form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.rs__form input { display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 8px 2px; border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 400 17px/1.2 var(--type); border-radius: 0; }
.rs__form input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.rs__form small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; }
.rs__btns { display: grid; grid-auto-rows: 1fr; gap: 8px; margin-top: 20px; }
.rs__btns .bk { display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px 12px; }
.bk--ink { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); border: 0; cursor: pointer; font-family: var(--wall); }
.bk--ink:hover { background: rgba(20,48,107,.08); }
.bk--book { background: var(--ink); color: var(--smoke); text-align: center; }
.bk--book:hover { background: var(--floor); }
.bk--book[aria-disabled="true"] { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.rs__saved { margin-top: 12px; font-size: 13px; }
.stills .rs__sea { opacity: .9; }
@media (max-width: 720px) { .rs { padding: 12svh var(--gutter) 8svh; display: block; } .rs__sea { position: relative; bottom: auto; height: 26svh; margin-bottom: -16px; } canvas.rs__sea { height: 26svh; } }
@media print { .rs__sea, .rs__btns { display: none; } .rs__card { width: 100%; background: #fff; } .hl__rows li { transform: none !important; opacity: 1 !important; } }
/* chapter: last-thread */
.lt { position: relative; min-height: 130svh; padding: 0 var(--gutter) 44px; display: flex; flex-direction: column; justify-content: flex-end; }
.lt__word { position: absolute; top: 12svh; left: var(--gutter); font-size: 15px; opacity: .85; }
.lt__foot { display: flex; flex-wrap: wrap; gap: 16px 44px; font-size: 15px; line-height: 1.4; }
.lt__foot p { flex: 1 1 260px; max-width: 42ch; }
.lt__phone { display: none; }
@media (max-width: 720px) { .lt__word { display: none; } .lt__phone { display: block; margin: 0 0 32px; font: 700 clamp(44px, 15vw, 72px)/1 var(--wall); text-transform: uppercase; letter-spacing: -.03em; } }
.stills .lt { min-height: 60svh; }
```
## 6. The supplied world module
`world.js` is three classic scripts in one file. It creates `window.Strand` (called `S` below), and on `DOMContentLoaded` (after waiting up to 900 ms for Syncopate 700 to load) it starts the tunnel. You do not edit it.
What it does on its own:
- **The film.** A table of keyframes, one or more per chapter, gives the camera (`x`, `y`, `h` in metres along the tunnel), the runner's pose (`pose`: 0 running, 1 seated), turbulence (`storm`), smoke density (`dens`), the fan (`fan`), the paper tone (`paper`), darkness (`dark`), the wand (`wand`, at `wx`, `wy`), the turbulence centre (`sx`, `sy`), whether the body is present (`body`), the closing word (`text`) and a flat calm sea of lines (`flat`). Values carry forward and are eased with smoothstep between keys against a smoothed scroll position. Every frame the current values `P` go through every function in `S.adjusts`, then to the renderer, and are kept in `S.currentP`.
- **Smoke.** One WebGL canvas `#tunnel` draws the threads around the invisible body. Turbulent threads turn red. The frame rate is watched and the thread count lowered (never below a floor) if it drops below 42 fps. At the end, on screens 720px and wider, the threads part around the word `STRAND`. Below 720px the module does not draw the word (it prepares `STR` over `AND` but switches it off); the footer's own `Strand` heading (`.lt__phone`, plain CSS type) shows over calm threads instead. That is intended.
- **Corner readout.** `#sta` shows `STA` plus the camera position plus 3.5 with two decimals.
- **Beats.** For each `[data-beats]` section it sets `--p` (0 to 1) and puts `on` on the beat at index `floor(p * count)` (none before the start or after 0.985).
- **Titles.** `body[data-at]` is the current chapter. The tab title becomes `It hurts here | Strand Physio` in the first chapter, `It started somewhere else | Strand Physio` in `upstream`, `Bring us the knee | Strand Physio` at the run sheet, and `Still waiting on your knee` when the tab is hidden.
- **Thread print.** Every `img[data-thread]` is replaced by a canvas of horizontal threads (white, or ink when `data-tone="ink"`), keeping its class and alt text.
- **Booking.** If `STRAND_BOOKING_URL` is set, every `[data-book]` link points there, and `[data-book-final]` takes the address and its `data-book-label`; if empty, `[data-book-final]` loses its `href`, gets `aria-disabled="true"` and shows its `data-no-label`.
- **Arrivals.** Every `[data-in]` element gets the class `in` when it comes into view.
- **Fallback.** Under reduced motion, or without WebGL, it adds `html.stills` and paints every still canvas from the film table.
The interface your chapter code uses:
| Member | What it is |
|---|---|
| `S.overrides.wand` | Set to `[x, y]` (tunnel metres) to put the wand there; `delete` it to give the wand back to the film |
| `S.currentP` | The values drawn in the last frame (camera `x`, `y`, `h`, and the rest) |
| `S.viewOf(P, width, height)` | The visible tunnel area for values P on a screen of that size: `{ x, y, w, h }`, centred on x, y |
| `S.adjusts` | Array of functions `(P, smoothScrollY, seconds)` called every frame; change `P` in place. Create it if missing: `(S.adjusts = S.adjusts || []).push(fn)` |
| `S.chapterTop(id)` | `{ top, h, el }` for a chapter, in page pixels, or undefined before the first measure |
| `S.reduced` | `true` when the visitor prefers reduced motion |
## 7. Chapter code
Create `site.js`. One block per chapter, in page order, each an immediately invoked function `(function () { ... })();` preceded by `/* chapter: <name> */`, with `const S = window.Strand` where needed. Chapters not listed need no code. All copy is exact; the curly apostrophes are part of it.
### the-wand
Elements: the section, `.wd__zone`, `.wd__hint`, `#wdX`, `#wdY`. Read `localStorage` safely (try/catch, fall back to an empty object). If the key `strandWand` is set, add class `gone` to the hint. The wand position starts at `[.32, 1.02]`.
`update()`: set `S.overrides.wand` to the position, write `x + 3.5` (two decimals) into `#wdX` and `y` (two decimals) into `#wdY`, and the first time, add `gone` to the hint and store `strandWand = 1`.
Pointer to tunnel: with `P = S.currentP` (skip if missing) and `v = S.viewOf(P, innerWidth, innerHeight)`, the position is `[v.x + (clientX / innerWidth - .5) * v.w, v.y - (clientY / innerHeight - .5) * v.h]`, then `update()`.
- `pointermove` on the zone moves the wand, except touch pointers that are not pressed.
- `pointerdown` marks it active, captures the pointer and moves the wand; `pointerup` and `pointercancel` (a touch the browser takes over for scrolling) clear active; `pointerleave` deletes `S.overrides.wand` when not active.
- Arrow keys (prevent default) move it by .04 per press: left and right change x, up and down change y; then `update()`.
- An IntersectionObserver deletes `S.overrides.wand` when the section leaves the screen.
### one-duct
Two buttons `[data-send="ductA"]` (hip) and `[data-send="ductB"]` (knee). On click: note whether the other button was pressed less than 500 ms ago ("both"); add class `sent` to the button; remember which ones have been sent; restart the CSS animation on the matching path (`#ductA` or `#ductB`) by removing `go`, forcing a reflow and adding `go` again; remove `lit` from `.duct__lamp`. After 1050 ms add `lit` and write `.duct__result`: `Two at once.` if both, else `Same lamp.` once both have been sent, else `Smoke sent from the hip. The lamp lit. Now try the other one.` or `Smoke sent from the knee. The lamp lit. Now try the other one.`; remove `lit` again 900 ms later.
### ten-thousand
The range `#ttKm` (0 to 120 km a week). On input and once at load: `#ttKmV` shows the kilometres; `#ttN` shows `round(km * 170 * 5.5 / 2)` formatted with `toLocaleString('en-IE')` (30 km gives `14,025`); `#ttNote` reads `Rest week.` at 0, otherwise its original text. Push an adjust: when the chapter exists and the scroll position is between `top - innerHeight * .6` and `top + h`, set `P.dens = clamp((P.dens || 1) * (.6 + km / 75), .25, 1)`, so more running means more smoke.
### eight-hours
`tick()` every 30 s, at load and on resize: get the hour, minute and short weekday in `Europe/Dublin` with `Intl.DateTimeFormat('en-IE', { timeZone: 'Europe/Dublin', hour: '2-digit', minute: '2-digit', hour12: false, weekday: 'short' })`. `#ehTime` gets `dateTime` `HH:MM` and text `It’s HH:MM in Dublin.` Minutes since nine are `h * 60 + m - 540`, `frac = clamp(mins / 480, 0, 1)`. Move `#ehTuft` by `translateY(frac * 266px)` on screens 720px and narrower, else `translateX(frac * (track width - 30) px)`. `#ehLine`: on a weekday between 0 and 480 minutes, `If you sat down at nine, that’s H h MM of one shape.`; on a Friday after 480, `Go for a run.`; otherwise `Outside working hours. The chair is getting a rest too.`
### where-it-lands
Seven places, each with the answer text, where the turbulence sits (`at`) and where the wand looks (`look`), in tunnel metres:
| Value | Answer | at | look |
|---|---|---|---|
| knee | `Knee. We’d also look at your hip and your foot.` | .24, .53 | -.18, .55 |
| shin | `Shin. We’d also look at your calf, your foot and what your training has done lately.` | .26, .3 | .26, .1 |
| heel | `Heel. We’d also look at your calf and your ankle.` | .34, .07 | .25, .3 |
| back | `Low back. We’d also look at your hips and how you bend.` | -.12, .66 | -.2, .5 |
| shoulder | `Shoulder. We’d also look at your neck and your upper back.` | 0, .92 | .04, 1.08 |
| neck | `Neck. We’d also look at your upper back and your shoulder blades.` | .04, 1.08 | -.08, .92 |
| temple | `Temple. We’d also look high up in your neck.` | .17, 1.24 | .04, 1.08 |
Start with knee. Restore a saved choice from `localStorage` key `strandWhere` (check its radio and write its answer into `#wlAns`). On change: write the answer, save the value, and dispatch `document` event `strand:where` with `detail` set to the label's text (`Knee`, `Low back`, ...). Push an adjust: while the scroll position is between `top - innerHeight * .4` and `top + h - innerHeight * .4`, set `P.sx, P.sy` to `at`, `P.storm = .9`, `P.wand = 1` and `P.wx, P.wy` to `look`.
### two-wands
An IntersectionObserver with `rootMargin: '-25% 0px'` adds `in` to `.tw__rods` once. Clicking a `.tw__rod` sets its transform to `translateY(5px) rotate(.6deg)` and clears it after 280 ms.
### run-sheet
The three inputs `where`, `when`, `from` inside `#rsForm` are restored from and saved on every input to `localStorage` key `strandRunSheet` as JSON (try/catch both ways). On `strand:where`, fill `where` with the event's detail if it is empty. `#rsPrint` calls `window.print()`.
## 8. Interactions to confirm by hand
1. First screen: `MOST PAIN ISN’T WHERE IT HURTS.`, the sentence saying what Strand Physio is and what it treats, the `Book a first appointment` button, the moving smoke with red turbulence, and the header with `Physiotherapy, Dublin` and Book.
2. Scroll: the camera pulls back down the tunnel and the beat lines change one at a time.
3. In `Take the wand.` the pointer (or a drag on touch, or arrow keys) moves a single thread of smoke; the readout follows.
4. In the upstream scene the wand travels from the knee up the thigh to the hip: `Here.` then `Nothing touched the knee.`
5. The two duct buttons light the same lamp.
6. The kilometres slider changes the step count and the smoke density.
7. The runner sits down; the eight-hours line uses the time in Dublin.
8. Choosing a place in `Where does it hurt?` moves the turbulence and the wand on the body.
9. The page turns to paper for the run sheet card and the two rods; the warning plate and the questions follow; the run sheet fields are kept after a reload.
10. At the end the threads part around the word STRAND on desktop; on phones the footer shows `Strand` as large plain type over calm threads.
## 9. Verify, then show the result
Serve the folder (section 1) and open it. Check desktop near 1440 x 900 and phone widths near 390 and 320 for horizontal overflow, missing files, console errors and any request to another domain. Scroll the whole page once at each size; with a browser tool, check the interactions in section 8. If WebGL is unavailable where you test, say so: the page then shows still pictures of the tunnel.
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/smoke-tunnel-clinic/preview/.Opening the page…