# Build the Sniffwell 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 dog groomer in Austin, Texas, Sniffwell, that works with nervous and rescue dogs and has one rule: nothing touches the dog until the dog has smelled it. The whole page is a passport-style book. On a wide screen it opens as a navy buckram book on an oxblood desk, and scrolling turns its leaves on the spine, one leaf per chapter: the rule stamped word by word in red, dog "officers" printed as engraved specimen portraits, a WebGL dog's nose you can make sniff and inspect with a loupe, an arrivals card, a page that gets soaked and dries with running ink, grooming tools queuing at a window, a dryer cleared by a stamped nose print, a perforated stub that tears off, a page of invisible ink read by a desk lamp, the passport holder page with a typed machine-readable strip, and an application form at the back. The first screen says plainly what the shop is and where, with an "Ask for an appointment" link to the form. On phones, and on any window less than 560 pixels tall, the same leaves run as one long scrolling page.

Build the page markup, the styles and the small boot script yourself from sections 4 to 6. The book engine and the thirteen leaf scripts are supplied as supporting code in the required pack (section 2), because they are long canvas and WebGL drawing programs that a text description cannot reproduce faithfully. 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 is a prompt plus required files, 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. Lenis (smooth scrolling, MIT) is supplied as `vendor/lenis.min.js` in the pack.
- Every path is relative (`site.css`, `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 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/boot.js                 (section 6, written by you)
js/book.js                 (from the required pack, supporting code)
js/chapters/*.js           (from the required pack, supporting code: 13 files)
vendor/lenis.min.js        (from the required pack, with vendor/LENIS-LICENSE.txt)
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 leaf scripts read pictures into canvases.

## 2. Required files

Required pack, version 1:

- URL: https://sitepeel.dev/website-prompts/paws/assets-v1.zip
- SHA-256: `caea755a2e9caeef73412853f4b6654ad35c0be3274a2c26fc50c1cf22bb313b`
- Size: 524579 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/`, `vendor/` 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` | `afe01692ca0c755e33d0844e33b5b3579a9d0cbe85729eddb4f2cb2d15ea12a3` |
| `fonts/OFL-Besley.txt` | `11e20d127704ea8b91ab38917a45827e382b627f35e51840cc999bf501fdaf3f` |
| `fonts/OFL-KronaOne.txt` | `bc99cd932411179751bd52bbff94d27209b9cb70c56d712d60ed66b46f1ab927` |
| `fonts/besley-latin-400-normal.woff2` | `55be0bc22a8927404211ba12c68829ead12ea93150ffe2be59feb8459361b575` |
| `fonts/besley-latin-700-normal.woff2` | `a8912ec40d8bdbb18fae8fdc1561098d9c66b0c9add847545faf12c02fee9edf` |
| `fonts/krona-one-latin-400-normal.woff2` | `e9d1d62518ebf3f92580236ad105a2cb737f25ae3119d228c84af4d12790a12e` |
| `img/dog-doberman-puppy.jpg` | `63c747805c4989a38f10353a678622edc1427cc20b1f70c5b849b94489dd3d0d` |
| `img/dog-golden-puppy.jpg` | `0f2a9a54fed9ea20c088bec0b4e618d6c21cdaa99bbd5a993208d837a3ba689d` |
| `img/dog-profile.jpg` | `380d9f16b6dae6b1cc8e0da1fab285b07ad8f5cb128ac73b90e11cb488a0b5aa` |
| `img/dog-shaggy-puppy.jpg` | `bb634fb2bae1218255d454148575c7757e6577ff6ad6ed374310ab321e55c23b` |
| `img/dog-tan-floppy.jpg` | `05b8b8d2122356f7a5eaaf85cd3aab6e0e9164a9cbaa70da7fddda7491c52a43` |
| `img/dog-terrier-puppy.jpg` | `aa4a7958718081781410e988ec77a6b5e60511eafbb895c81e99227874945444` |
| `img/favicon.svg` | `91385e88b87133ffd16ee1f7eda749decbdf4aa82e960612375bd74bcd55b30a` |
| `img/share.svg` | `db9aa62d7db034555f6641396168f1792c243d3160bdf35ac03beb89f052969c` |
| `js/book.js` | `05a11b9c2cb3da0fa6f55c84e3939150deb2a30d1bd0b9a1e4103460556b9b10` |
| `js/chapters/arrivals-card.js` | `46b2507cf97b12dedf00e67f9aa34ac924a06b51de8294f6a630efba038a31cc` |
| `js/chapters/grounds-for-halting.js` | `8cb2e9b010cafb609584f9e7b58223ac796bf5eb1e1e8c9a0df2148d2ad28ff7` |
| `js/chapters/invisible-ink.js` | `943e81c94fa0cd59eb9f63e61b533c9be2e2cdefd5b2b026514b3d3be9ffcfa8` |
| `js/chapters/officers-on-duty.js` | `02ac1b643d51a13fc9b8888a7e63e04bb6891df93126fa3124970ab58e05a36d` |
| `js/chapters/the-application.js` | `44c916c20265d0d3b013a2dd7f0ab463f72d07c2afe255fd2d615ba6acf858f8` |
| `js/chapters/the-cover.js` | `0b00e395c8234f7b8cb21accb5e432a2a98f8ca48bdf39547b813d3c865c7707` |
| `js/chapters/the-dryer.js` | `ad98a5850948700130c8c9f9202b2de2aa553f30d420e9f80a279c9425e41982` |
| `js/chapters/the-holder-page.js` | `f7a2d8d05184258dae9b7ecfbebc7a0461bb593ff9fd5223bf7823e44bc62beb` |
| `js/chapters/the-nose-exam.js` | `555e6bb864f3fad3ef50201b604b0cef21a1ba35ea12d01127ca1ef418325e73` |
| `js/chapters/the-queue.js` | `ff6a9a09fd6dc2eb9111511515597ed1916aa7a489e165d3cbbcb3b400e71ea7` |
| `js/chapters/the-rule.js` | `b176b52ec0940de92f2d93af9cbdeeb771ac8df7ebf434ba81234dec08e4a6bf` |
| `js/chapters/the-stub.js` | `ff4a2ec9e6a0638e70321afab085701ab306f2b1c2747c917dceec8e971b6dc9` |
| `js/chapters/the-wet-page.js` | `a275bba2ff688367621236e2de65508ad1d5a60a926b67d4f21b64cc88fc38ed` |
| `licenses/LENIS-LICENSE.txt` | `bba15b1137346a73ed8c35e7f20961a69e0ed842d956a50339240c3e7b08c089` |
| `licenses/OFL-Besley.txt` | `11e20d127704ea8b91ab38917a45827e382b627f35e51840cc999bf501fdaf3f` |
| `licenses/OFL-KronaOne.txt` | `bc99cd932411179751bd52bbff94d27209b9cb70c56d712d60ed66b46f1ab927` |
| `licenses/PROVENANCE.md` | `217ec5490599c937868628957204260eae61cd8bcb392b327d42b5d598c39594` |
| `licenses/THIRD-PARTY.md` | `ec393ad458423d3ceb81f720d3998559c79ac8e854148ec2885e2d7b0c03c519` |
| `vendor/LENIS-LICENSE.txt` | `bba15b1137346a73ed8c35e7f20961a69e0ed842d956a50339240c3e7b08c089` |
| `vendor/lenis.min.js` | `53195c9797e7ce7bf9d7fa9242b08209e57f46de4c9dac126a6494fa780e3346` |

## 3. Rights and honesty

- Krona One and Besley 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 machine-readable strip asks for the system fonts `OCR A Std` or `OCR A Extended` and falls back to Courier New; no OCR font file is shipped.
- Lenis 1.3.26 is MIT (`vendor/LENIS-LICENSE.txt`), unmodified.
- The six dog pictures were generated for this project with an image model; the scripts turn them into engraved line prints. They are labelled on the page as specimen portraits, not dogs that have visited. `img/favicon.svg` and `img/share.svg` were drawn for this project. `js/book.js` and `js/chapters/*.js` were written for this project.
- Sniffwell, its "officers" and its email address are invented. The page shows `officers@sniffwell.example`, a reserved address that cannot be delivered. The application form sends nothing until a form service URL is put in its `data-endpoint` attribute, and the back cover says that the shop is made up and that nothing on the page books a real appointment or takes a payment. There are no prices on the page. The dog breathing facts are general; check them before publishing. Before anyone publishes the site, the name, city, email and copy should be replaced or checked, and the `noindex` tag removed.

## 4. Page markup

Create `index.html` exactly as below. It holds every leaf, every hook the leaf scripts look for (classes, ids and `data-` attributes) and all of the copy. The scripts read the markup, so do not rename, reorder or drop elements. `data-len` on each leaf sets how many screen heights of scrolling that leaf takes in book mode. The script tags at the end load Lenis, the book engine and the thirteen leaf scripts in page order.

```html
<!doctype html>
<!-- Fictional demo site. Sniffwell, its officers and its address are invented. -->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Sniffwell Dog Grooming, Austin. Your dog smells everything first.</title>
<meta name="description" content="A dog groomer in Austin, Texas for nervous and rescue dogs. Every tool is smelled by your dog before anything starts. Apply for an appointment.">
<meta name="robots" content="noindex">
<meta name="theme-color" content="#1B2C58">
<meta property="og:title" content="Sniffwell Dog Grooming, Austin">
<meta property="og:description" content="Every tool in this shop must clear your dog's nose.">
<meta property="og:type" content="website">
<meta property="og:image" content="img/share.svg">
<link rel="icon" href="img/favicon.svg" type="image/svg+xml">
<link rel="preload" href="fonts/krona-one-latin-400-normal.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="fonts/besley-latin-400-normal.woff2" as="font" type="font/woff2" crossorigin>
<script src="js/boot.js"></script>
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"LocalBusiness","name":"Sniffwell","description":"Dog grooming for nervous and rescue dogs. Every tool is smelled by the dog before anything starts.","address":{"@type":"PostalAddress","addressLocality":"Austin","addressRegion":"TX","addressCountry":"US"}}
</script>
<link rel="stylesheet" href="site.css">
</head>
<body>
<svg width="0" height="0" style="position:absolute" aria-hidden="true" focusable="false">
  <defs>
    <filter id="ink-edge" x="-5%" y="-5%" width="110%" height="110%">
      <feTurbulence type="fractalNoise" baseFrequency=".9" numOctaves="2" seed="7" result="n"/>
      <feDisplacementMap in="SourceGraphic" in2="n" scale="2.4"/>
    </filter>
    <filter id="ink-edge-large" x="-5%" y="-5%" width="110%" height="110%">
      <feTurbulence type="fractalNoise" baseFrequency=".28" numOctaves="3" seed="11" result="n"/>
      <feDisplacementMap in="SourceGraphic" in2="n" scale="5"/>
    </filter>
  </defs>
</svg>
<a class="skip" href="#the-application">Skip to the booking form</a>
<a class="ribbon" href="#the-application" aria-label="Apply for an appointment"><span>Apply</span></a>
<nav class="edges" aria-label="Pages of the book"></nav>
<main>
<!-- chapter: the-cover -->
<section class="leaf" data-chapter="the-cover" data-title="The cover" data-len="1.6">
  <div class="page cover">
    <svg class="cover__defs" width="0" height="0" aria-hidden="true" focusable="false">
      <defs>
        <pattern id="cover-weave-tile" width="5" height="5" patternUnits="userSpaceOnUse">
          <rect x=".2" y=".6" width="2.1" height="1.3" rx=".65" fill="currentColor"/>
          <rect x="2.7" y=".2" width="1.3" height="2.1" rx=".65" fill="currentColor"/>
          <rect x=".6" y="2.7" width="1.3" height="2.1" rx=".65" fill="currentColor"/>
          <rect x="2.7" y="3.1" width="2.1" height="1.3" rx=".65" fill="currentColor"/>
        </pattern>
        <filter id="cover-buckram" x="0" y="0" width="100%" height="100%" color-interpolation-filters="sRGB">
          <feTurbulence type="fractalNoise" baseFrequency=".016 .3" numOctaves="2" seed="3" result="slubA"/>
          <feDisplacementMap in="SourceGraphic" in2="slubA" scale="2.6" xChannelSelector="R" yChannelSelector="G" result="warpA"/>
          <feTurbulence type="fractalNoise" baseFrequency=".28 .014" numOctaves="2" seed="9" result="slubB"/>
          <feDisplacementMap in="warpA" in2="slubB" scale="2.6" xChannelSelector="G" yChannelSelector="R" result="warpB"/>
          <feGaussianBlur in="warpB" stdDeviation=".5" result="soft"/>
          <feDiffuseLighting in="soft" surfaceScale="1.8" diffuseConstant="1.1" style="lighting-color:var(--cloth-lit)"><feDistantLight azimuth="225" elevation="46"/></feDiffuseLighting>
        </filter>
        <filter id="cover-fray" x="-20%" y="-20%" width="140%" height="140%">
          <feTurbulence type="fractalNoise" baseFrequency=".34" numOctaves="2" seed="6" result="n"/>
          <feDisplacementMap in="SourceGraphic" in2="n" scale="4.2"/>
        </filter>
        <g id="cover-nose">
          <path fill="currentColor" fill-rule="evenodd" d="M150 78C112 71 74 75 56 97 40 117 45 147 63 167 81 185 112 194 130 200 139 203 145 207 150 216 155 207 161 203 170 200 188 194 219 185 237 167 255 147 260 117 244 97 226 75 188 71 150 78ZM124 126C116 117 97 117 89 127 81 137 83 151 72 166 91 166 104 157 113 147 123 139 129 133 124 126ZM176 126C184 117 203 117 211 127 219 137 217 151 228 166 209 166 196 157 187 147 177 139 171 133 176 126ZM148.6 170H151.4V216H148.6Z"/>
          <g style="fill:var(--cloth)">
            <circle cx="150" cy="93" r="3.2"/><circle cx="133" cy="94" r="3"/><circle cx="167" cy="94" r="3"/><circle cx="116" cy="94" r="2.8"/><circle cx="184" cy="94" r="2.8"/><circle cx="100" cy="97" r="2.6"/><circle cx="200" cy="97" r="2.6"/><circle cx="142" cy="107" r="2.8"/><circle cx="158" cy="107" r="2.8"/><circle cx="150" cy="120" r="2.6"/><circle cx="143" cy="134" r="2.4"/><circle cx="157" cy="134" r="2.4"/><circle cx="150" cy="148" r="2.4"/><circle cx="70" cy="122" r="2.4"/><circle cx="230" cy="122" r="2.4"/><circle cx="127" cy="176" r="2.3"/><circle cx="173" cy="176" r="2.3"/>
          </g>
          <circle cx="150" cy="150" r="141" fill="none" stroke="currentColor" stroke-width="3.4"/>
          <circle cx="150" cy="150" r="134" fill="none" stroke="currentColor" stroke-width="1.1"/>
        </g>
      </defs>
    </svg>

    <div class="cover__cam">
      <div class="cover__desk" aria-hidden="true"></div>

      <div class="cover__print">
        <div class="cover__frame" aria-hidden="true"></div>
        <div class="cover__copy">
          <h1 class="cover__h1"><span>Every tool </span><span>in this shop </span><span>must clear </span><span>your dog’s </span><span>nose.</span></h1>
          <p class="cover__says">Sniffwell is a dog groomer in Austin, Texas, for nervous and rescue dogs. Baths, haircuts, nails and brushing, and your dog smells every tool before we use it.</p>
          <a class="cover__cta" href="#the-application">Ask for an appointment</a>
        </div>
        <p class="cover__hint">Open the book by scrolling</p>
        <div class="cover__band" aria-hidden="true"></div>
      </div>

      <div class="cover__cast" aria-hidden="true"></div>

      <div class="cover__wrap">
        <div class="cover__book">
          <div class="cover__ring cover__ring--back" aria-hidden="true"></div>
          <i class="cover__strip cover__strip--back-r" aria-hidden="true"></i>
          <i class="cover__strip cover__strip--back-b" aria-hidden="true"></i>
          <i class="cover__pages cover__pages--r" aria-hidden="true"></i>
          <i class="cover__pages cover__pages--b" aria-hidden="true"></i>

          <div class="cover__well">
            <a class="cover__ribbon" href="#the-application" aria-label="Apply for an appointment">
              <span class="cover__ribbon-shadow" aria-hidden="true"></span>
              <span class="cover__cloth"><span>Apply</span></span>
            </a>
          </div>

          <div class="cover__ring cover__ring--paper" aria-hidden="true"></div>
          <i class="cover__fall" aria-hidden="true"></i>

          <div class="cover__lid">
            <i class="cover__strip cover__strip--lid-r" aria-hidden="true"></i>
            <i class="cover__strip cover__strip--lid-b" aria-hidden="true"></i>
            <i class="cover__strip cover__strip--lid-t" aria-hidden="true"></i>
            <div class="cover__face cover__face--front">
              <svg class="cover__weave" width="100%" height="100%" aria-hidden="true" focusable="false"><rect width="100%" height="100%" fill="url(#cover-weave-tile)" filter="url(#cover-buckram)"/></svg>
              <i class="cover__groove" aria-hidden="true"></i>
              <i class="cover__lamp" aria-hidden="true"></i>
              <svg class="cover__wear cover__wear--tr" viewBox="0 0 40 40" aria-hidden="true" focusable="false"><g filter="url(#cover-fray)"><path d="M40 0H17l5 2 8 1 5 5 1 8 4 5Z"/><path d="M0 0 40 0" stroke-width="1.2" fill="none"/></g></svg>
              <svg class="cover__wear cover__wear--br" viewBox="0 0 40 40" aria-hidden="true" focusable="false"><g filter="url(#cover-fray)"><path d="M40 40V16l-2 6-1 9-6 5-9 1-5 3Z"/></g></svg>
              <svg class="cover__wear cover__wear--bl" viewBox="0 0 40 40" aria-hidden="true" focusable="false"><g filter="url(#cover-fray)"><path d="M0 40h22l-5-2-9-1-5-5-1-8-2-5Z"/></g></svg>
              <p class="cover__foil cover__name">Sniffwell</p>
              <svg class="cover__crest" viewBox="0 0 300 300" role="img" aria-label="A gold foil crest of a dog’s nose seen head on">
                <use class="cover__crest-low" href="#cover-nose" x="1.1" y="1.1"/>
                <use class="cover__crest-high" href="#cover-nose" x="-.9" y="-.9"/>
                <use class="cover__crest-dull" href="#cover-nose"/>
                <use class="cover__crest-warm" href="#cover-nose"/>
              </svg>
              <p class="cover__foil cover__line">Dog grooming. Austin, Texas.</p>
              <i class="cover__sheen" aria-hidden="true"></i>
              <i class="cover__dim cover__dim--front" aria-hidden="true"></i>
            </div>
            <div class="cover__face cover__face--inner" aria-hidden="true">
              <svg class="cover__guilloche" viewBox="-230 -320 460 640" preserveAspectRatio="xMidYMid slice" focusable="false"><path/></svg>
              <i class="cover__dim cover__dim--inner"></i>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>

<!-- chapter: the-rule -->
<section class="leaf" data-chapter="the-rule" data-title="The rule" data-len="1.8">
  <div class="page rule">
    <svg class="rule__rosette" viewBox="-500 -500 1000 1000" aria-hidden="true" focusable="false"><path/></svg>
    <h2 class="rule__sr">Nothing touches the dog until the dog has smelled it.</h2>
    <div class="rule__sheet">
      <div class="rule__words stamp-word" aria-hidden="true">
        <span class="rule__word stampable"><span class="ink ink--large" data-ink="Nothing">Nothing</span></span>
        <span class="rule__word stampable"><span class="ink ink--large" data-ink="touches">touches</span></span>
        <span class="rule__word stampable"><span class="ink ink--large" data-ink="the">the</span></span>
        <span class="rule__word stampable"><span class="ink ink--large" data-ink="dog">dog</span></span>
        <span class="rule__word stampable"><span class="ink ink--large" data-ink="until">until</span></span>
        <span class="rule__word stampable"><span class="ink ink--large" data-ink="the">the</span></span>
        <span class="rule__word stampable"><span class="ink ink--large" data-ink="dog">dog</span></span>
        <span class="rule__word stampable"><span class="ink ink--large" data-ink="has">has</span></span>
        <span class="rule__word stampable"><span class="ink ink--large" data-ink="smelled">smelled</span></span>
        <span class="rule__word stampable"><span class="ink ink--large" data-ink="it.">it.</span></span>
      </div>
    </div>
    <p class="rule__small stampable">This is the only rule in the book. The other pages are about how it works.</p>
    <span class="page__no">Leaf 1</span>
    <div class="page__shade"></div>
  </div>
</section>

<!-- chapter: officers-on-duty -->
<section class="leaf" data-chapter="officers-on-duty" data-title="Officers on duty" data-len="1.3">
  <div class="page officers">
    <div class="officers__file">
      <h2 class="officers__title stamp-word">The officers arrive shaking.</h2>
      <p class="officers__body">A lot of the dogs who come to us are nervous rescues. Some have no history anyone can tell you. They keep full authority over every tool in the building anyway.</p>
      <p class="officers__note">Specimen portraits, for illustration. These dogs have not been to our shop. We are new, and our real officers have not sat for theirs.</p>
    </div>

    <div class="officers__feed">
      <ol class="officers__strip">
        <li class="officer" tabindex="0">
          <div class="officer__frame">
            <img src="img/dog-tan-floppy.jpg" alt="A tan and white mixed-breed dog with floppy brown ears and a dark muzzle, head slightly tilted." width="800" height="800" data-focus=".42">
            <canvas class="officer__screen officer__screen--coarse" aria-hidden="true"></canvas>
            <canvas class="officer__screen officer__screen--fine" aria-hidden="true"></canvas>
            <span class="officer__specimen" aria-hidden="true">SPECIMEN</span>
          </div>
          <p class="officer__rank" style="--n:33"><span>Officer, Under the Chair Division</span><i aria-hidden="true"></i></p>
        </li>
        <li class="officer" tabindex="0">
          <div class="officer__frame">
            <img src="img/dog-golden-puppy.jpg" alt="A fluffy golden retriever puppy walking towards the camera with its head lowered." width="800" height="800" data-focus=".5">
            <canvas class="officer__screen officer__screen--coarse" aria-hidden="true"></canvas>
            <canvas class="officer__screen officer__screen--fine" aria-hidden="true"></canvas>
            <span class="officer__specimen" aria-hidden="true">SPECIMEN</span>
          </div>
          <p class="officer__rank" style="--n:36"><span>Officer, Will Not Get Out of the Car</span><i aria-hidden="true"></i></p>
        </li>
        <li class="officer" tabindex="0">
          <div class="officer__frame">
            <img src="img/dog-shaggy-puppy.jpg" alt="A shaggy black and white puppy with long fur falling around its face." width="800" height="1062">
            <canvas class="officer__screen officer__screen--coarse" aria-hidden="true"></canvas>
            <canvas class="officer__screen officer__screen--fine" aria-hidden="true"></canvas>
            <span class="officer__specimen" aria-hidden="true">SPECIMEN</span>
          </div>
          <p class="officer__rank" style="--n:33"><span>Senior Officer, Leans on Your Legs</span><i aria-hidden="true"></i></p>
        </li>
        <li class="officer" tabindex="0">
          <div class="officer__frame">
            <img src="img/dog-terrier-puppy.jpg" alt="A small terrier puppy with a white stripe down its face and brown patches around its eyes." width="800" height="1062">
            <canvas class="officer__screen officer__screen--coarse" aria-hidden="true"></canvas>
            <canvas class="officer__screen officer__screen--fine" aria-hidden="true"></canvas>
            <span class="officer__specimen" aria-hidden="true">SPECIMEN</span>
          </div>
          <p class="officer__rank" style="--n:43"><span>Officer on Probation, Has Never Seen a Hose</span><i aria-hidden="true"></i></p>
        </li>
        <li class="officer officer--last" tabindex="0">
          <div class="officer__frame">
            <img src="img/dog-doberman-puppy.jpg" alt="A black and tan Doberman puppy with one ear up and one ear folded over." width="800" height="1062">
            <canvas class="officer__screen officer__screen--coarse" aria-hidden="true"></canvas>
            <canvas class="officer__screen officer__screen--fine" aria-hidden="true"></canvas>
            <span class="officer__specimen" aria-hidden="true">SPECIMEN</span>
          </div>
          <p class="officer__rank" style="--n:28"><span>Officer, Records Unavailable</span><i aria-hidden="true"></i></p>
        </li>
      </ol>
    </div>

    <svg class="officers__nose" viewBox="40 50 180 160" aria-hidden="true" focusable="false">
      <defs>
        <pattern id="officers-nose-hatch" width="12.5" height="12.5" patternUnits="userSpaceOnUse" patternTransform="rotate(27)"><rect class="officers__nose-line" width="1.7" height="12.5"/></pattern>
        <clipPath id="officers-nose-clip"><path d="M130 70C170 64 204 76 212 104 220 134 200 160 172 168 158 172 150 178 144 186 140 192 135 196 130 196 125 196 120 192 116 186 110 178 102 172 88 168 60 160 40 134 48 104 56 76 90 64 130 70Z"/></clipPath>
      </defs>
      <path class="officers__nose-body" d="M130 70C170 64 204 76 212 104 220 134 200 160 172 168 158 172 150 178 144 186 140 192 135 196 130 196 125 196 120 192 116 186 110 178 102 172 88 168 60 160 40 134 48 104 56 76 90 64 130 70Z"/>
      <g class="officers__nose-print">
        <rect class="officers__nose-screen" x="30" y="40" width="200" height="180" fill="url(#officers-nose-hatch)" clip-path="url(#officers-nose-clip)"/>
        <path class="officers__nose-hole" d="M156 120C170 112 186 116 190 130 194 146 196 152 200 158 190 154 180 146 172 142 162 140 152 138 148 130 146 124 150 122 156 120Z"/>
        <path class="officers__nose-hole" d="M104 120C90 112 74 116 70 130 66 146 64 152 60 158 70 154 80 146 88 142 98 140 108 138 112 130 114 124 110 122 104 120Z"/>
      </g>
    </svg>
    <div class="officers__black" aria-hidden="true"></div>
    <span class="page__no">Leaf 2</span>
  </div>
</section>

<!-- chapter: the-nose-exam -->
<section class="leaf" data-chapter="the-nose-exam" data-title="The nose exam" data-len="2">
  <div class="page nose">
    <div class="nose__macro" aria-hidden="true">
      <svg class="nose__plate" viewBox="-160 -100 320 200" preserveAspectRatio="xMidYMid slice" role="presentation">
        <defs>
          <pattern id="nose-cells" width="12" height="10.4" patternUnits="userSpaceOnUse">
            <circle cx="3" cy="2.6" r="4.2"/><circle cx="9" cy="7.8" r="4.2"/>
          </pattern>
        </defs>
        <rect x="-160" y="-100" width="320" height="200" fill="url(#nose-cells)"/>
        <path class="nose__plate-hole" d="M-74-22c-20 2-36 16-30 34 5 15 26 18 38 8 8-7 3-21 11-28 2-9-8-16-19-14Z"/>
        <path class="nose__plate-hole" d="M74-22c20 2 36 16 30 34-5 15-26 18-38 8-8-7-3-21-11-28-2-9 8-16 19-14Z"/>
        <path class="nose__plate-hole" d="M-1-100h2v200h-2z"/>
      </svg>
    </div>

    <div class="nose__printed">
      <h2 class="nose__title nose__tag stamp-word"><span class="nose__title-ink">This is the inspection equipment.</span></h2>

      <p class="nose__col nose__col--left nose__tag">Each nostril pulls in its own sample of air, so a dog gets two separate reads of whatever it is smelling.</p>

      <div class="nose__col nose__col--right nose__tag">
        <p>About 12 percent of each breath is routed into a recessed olfactory area. The smell stays on the receptors after the breath is gone.</p>
        <p class="nose__source">Airflow figures from published studies of how dogs sniff.</p>
      </div>

      <div class="nose__bench">
        <div class="nose__strip nose__tag">
          <button class="nose__tap" type="button" aria-expanded="false" aria-controls="nose-micro"><i aria-hidden="true"></i><span>Hold the loupe over the small print</span></button>
          <p class="nose__label">Hold the loupe over the small print</p>
          <p class="nose__micro" id="nose-micro">A dog breathes out through the side slits of the nose, aimed so the breath does not disturb what it is sniffing. Short fast sniffs are for close inspection. Long ones are for distance. Sniffing a dryer is a dog collecting evidence.</p>
        </div>
        <button class="nose__sniff" type="button"><i aria-hidden="true"></i><span class="nose__sniff-label">Hold to sniff</span></button>
      </div>

      <button class="nose__loupe" type="button" aria-label="Loupe. Drag it, or use the arrow keys, to read the small print." aria-describedby="nose-micro">
        <span class="nose__lens" aria-hidden="true"><span class="nose__lens-copy">A dog breathes out through the side slits of the nose, aimed so the breath does not disturb what it is sniffing. Short fast sniffs are for close inspection. Long ones are for distance. Sniffing a dryer is a dog collecting evidence.</span></span>
      </button>

      <span class="page__no">Leaf 4</span>
    </div>

    <p class="sr-only" role="status" aria-live="polite"></p>
  </div>
</section>

<!-- chapter: arrivals-card -->
<section class="leaf" data-chapter="arrivals-card" data-title="Arrivals card" data-len="1">
  <div class="page arr">
    <div class="arr__card">
      <svg class="arr__clip" viewBox="0 0 34 76" aria-hidden="true" focusable="false">
        <path class="arr__clip-light" d="M11 22V9a6 6 0 0 1 12 0v52a9 9 0 0 1-18 0V17"/>
        <path class="arr__clip-dark" d="M11 22V9a6 6 0 0 1 12 0v52a9 9 0 0 1-18 0V17"/>
      </svg>
      <p class="arr__form">Form 1 of 1</p>
      <h2 class="arr__title stamp-word">Arrivals card, table and loop</h2>
      <dl class="arr__list">
        <div class="arr__row"><dt>Name of applicant</dt><dd><span class="arr__typed" style="--n:14">Grooming table</span></dd></div>
        <div class="arr__row"><dt>Travelling with</dt><dd><span class="arr__typed" style="--n:14">Groomer’s loop</span></dd></div>
        <div class="arr__row"><dt>Purpose of visit</dt><dd><span class="arr__typed" style="--n:25">To be stood on, eventually</span></dd></div>
        <div class="arr__row"><dt>Anything to declare</dt><dd><span class="arr__typed" style="--n:20">Smells of other dogs</span></dd></div>
        <div class="arr__row"><dt>Length of stay</dt><dd><span class="arr__typed" style="--n:22">Depends on the officer</span></dd></div>
      </dl>
      <p class="arr__note">Both must be presented to the officer’s nose before the officer is asked to go near them.</p>
      <div class="ink arr__print" aria-hidden="true">
        <svg viewBox="-110 -100 220 200" focusable="false">
          <defs>
            <pattern id="arr-cells" width="11" height="10" patternUnits="userSpaceOnUse">
              <circle cx="3" cy="3" r="3.8"/><circle cx="8.6" cy="8" r="3.8"/>
            </pattern>
          </defs>
          <path fill="url(#arr-cells)" fill-rule="evenodd" d="M0 88C-30 88-96 40-96-10-96-60-50-84 0-84S96-60 96-10C96 40 30 88 0 88ZM-58-16c-16 2-26 16-22 26 4 10 18 14 28 8 6-4 2-18 8-24 2-6-6-12-14-10Zm116 0c16 2 26 16 22 26-4 10-18 14-28 8-6-4-2-18-8-24-2-6 6-12 14-10Z"/>
        </svg>
        <svg class="arr__print-wet" viewBox="-110 -100 220 200" focusable="false">
          <path fill-rule="evenodd" d="M0 88C-30 88-96 40-96-10-96-60-50-84 0-84S96-60 96-10C96 40 30 88 0 88ZM-58-16c-16 2-26 16-22 26 4 10 18 14 28 8 6-4 2-18 8-24 2-6-6-12-14-10Zm116 0c16 2 26 16 22 26-4 10-18 14-28 8-6-4-2-18-8-24-2-6 6-12 14-10Z"/>
        </svg>
      </div>
    </div>
    <span class="page__no">Leaf 5</span>
    <div class="page__shade"></div>
  </div>
</section>

<!-- chapter: the-wet-page -->
<section class="leaf" data-chapter="the-wet-page" data-title="The wet page" data-len="1.5">
  <div class="page wet">
    <div class="wet__stage" aria-hidden="true"></div>
    <svg class="wet__tide" viewBox="0 0 1000 40" preserveAspectRatio="none" aria-hidden="true" focusable="false">
      <path d="M0 16c60-9 118 8 176 3s112-14 184-6 124 13 198 7 96-12 170-5 104 9 172 4h100v21H0z"/>
    </svg>
    <div class="wet__words">
      <h2 class="wet__title stamp-word">The tub has applied for baths.</h2>
      <p class="wet__body">It is shown to the officer empty first. Then the water is run where the officer can smell it. Only then is anyone asked to get in.</p>
    </div>
    <div class="wet__stamps">
      <p class="wet__stamp wet__stamp--wet stamp-word" aria-hidden="true"><span class="ink ink--large" data-ink="Page damaged in transit">Page damaged in transit</span></p>
      <p class="wet__stamp wet__stamp--dry stamp-word"><span class="ink ink--large" data-ink="Dried and re-examined">Dried and re-examined</span></p>
    </div>
    <span class="page__no">Leaf 6</span>
    <div class="page__shade"></div>
  </div>
</section>

<!-- chapter: the-queue -->
<section class="leaf" data-chapter="the-queue" data-title="The queue" data-len="3">
  <div class="page queue">
    <svg width="0" height="0" style="position:absolute" aria-hidden="true" focusable="false">
      <defs>
        <pattern id="q-h-a" width="4" height="4" patternUnits="userSpaceOnUse" patternTransform="rotate(38)"><line x1="0" y1="0" x2="0" y2="4" stroke="#15111A" stroke-width="1"/></pattern>
        <pattern id="q-h-b" width="3" height="3" patternUnits="userSpaceOnUse" patternTransform="rotate(-52)"><line x1="0" y1="0" x2="0" y2="3" stroke="#15111A" stroke-width=".9"/></pattern>
        <pattern id="q-h-c" width="6" height="6" patternUnits="userSpaceOnUse" patternTransform="rotate(90)"><line x1="0" y1="0" x2="0" y2="6" stroke="#15111A" stroke-width=".7"/></pattern>
        <pattern id="q-h-s" width="5" height="5" patternUnits="userSpaceOnUse" patternTransform="rotate(12)"><line x1="0" y1="0" x2="0" y2="5" stroke="#15111A" stroke-width=".8"/></pattern>
        <pattern id="q-pins" width="8" height="8" patternUnits="userSpaceOnUse" patternTransform="rotate(18)"><circle cx="2" cy="2" r="1.3" fill="#15111A"/><circle cx="6" cy="6" r="1.3" fill="#15111A"/></pattern>
      </defs>
    </svg>

    <h2 class="queue__title stamp-word">One at a time, please.</h2>

    <div class="queue__floor" aria-hidden="true"></div>

    <div class="queue__track">
      <ol class="queue__list" aria-label="The queue, one tool at a time. Use the arrow keys to step through it.">

        <li class="queue__item" tabindex="0">
          <div class="queue__tool" style="--h:380">
            <svg class="queue__art" viewBox="0 0 220 380" role="presentation">
              <path d="M34 352h104l78 20-96 4-92-12z" fill="url(#q-h-s)"/>
              <g fill="none" stroke="#15111A" stroke-width="2.2" stroke-linejoin="round" stroke-linecap="round">
                <path d="M108 196 78 20c-2-9-13-8-13 1l21 179z" fill="#DFE8DC"/>
                <path d="M108 196 78 20c-2-9-13-8-13 1l21 179z" fill="url(#q-h-b)"/>
                <path d="m92 196 30-176c2-9 13-8 13 1l-22 179z" fill="#DFE8DC"/>
                <path d="m92 196 30-176c2-9 13-8 13 1l-22 179z" fill="url(#q-h-c)"/>
                <path d="M126 28 104 192" stroke-width="1.1"/>
                <path d="M86 198c-6 42-18 64-24 92l14 3c8-30 28-52 36-93z" fill="url(#q-h-a)"/>
                <path d="M114 198c6 42 18 64 24 92l-14 3c-8-30-28-52-36-93z" fill="url(#q-h-a)"/>
                <circle cx="58" cy="322" r="31" fill="url(#q-h-b)"/>
                <circle cx="58" cy="322" r="20" fill="#DFE8DC"/>
                <circle cx="142" cy="322" r="31" fill="url(#q-h-b)"/>
                <circle cx="142" cy="322" r="20" fill="#DFE8DC"/>
                <path d="M170 340c12 12 26 16 34 8" stroke-width="3.4"/>
                <circle cx="100" cy="196" r="8.5" fill="#DFE8DC"/>
                <path d="m95 192 10 8" stroke-width="1.6"/>
              </g>
            </svg>
          </div>
          <div class="queue__ticket">
            <div class="queue__card">
              <div class="queue__face queue__face--a">
                <span class="queue__no">No. 1</span>
                <h3 class="queue__name">Shears</h3>
                <p class="queue__applying"><span>Applying for</span> Haircuts</p>
              </div>
              <div class="queue__face queue__face--b">
                <p class="queue__b-head" aria-hidden="true"><b>Shears</b> Haircuts</p>
                <p class="queue__statement">Can be held still and smelled closed.</p>
                <p class="queue__now" aria-hidden="true">Now being smelled</p>
              </div>
            </div>
            <i class="queue__bit" aria-hidden="true"></i>
          </div>
        </li>

        <li class="queue__item" tabindex="-1">
          <div class="queue__tool" style="--h:380">
            <svg class="queue__art" viewBox="0 0 220 380" role="presentation">
              <path d="M52 340h110l52 26-92 8-88-14z" fill="url(#q-h-s)"/>
              <g fill="none" stroke="#15111A" stroke-width="2.2" stroke-linejoin="round" stroke-linecap="round">
                <path d="M58 46v-16M66 46v-16M74 46v-16M82 46v-16M90 46v-16M98 46v-16M106 46v-16M114 46v-16M122 46v-16M130 46v-16M138 46v-16M146 46v-16" stroke-width="2.6"/>
                <path d="M52 46h100l-4 44H56z" fill="url(#q-h-a)"/>
                <path d="M56 90c-4 66-8 140-8 206 0 54 112 54 112 0 0-66-4-140-8-206z" fill="#DFE8DC"/>
                <path d="M56 90c-4 66-8 140-8 206 0 54 112 54 112 0 0-66-4-140-8-206z" fill="url(#q-h-c)"/>
                <path d="M122 90c6 70 8 150 8 206 0 18-6 30-22 36 34-2 52-16 52-36 0-66-4-140-8-206z" fill="url(#q-h-b)"/>
                <rect x="80" y="130" width="40" height="58" rx="7" fill="#DFE8DC"/>
                <rect x="88" y="138" width="24" height="24" rx="4" fill="url(#q-h-a)"/>
                <path d="M72 214h56M72 224h56M72 234h56M72 244h56M72 254h56" stroke-width="1.3"/>
                <path d="M104 342c0 22 24 34 54 24s34-30 22-36" stroke-width="6"/>
                <path d="M104 342c0 22 24 34 54 24s34-30 22-36" stroke="#DFE8DC" stroke-width="2.6"/>
              </g>
            </svg>
          </div>
          <div class="queue__ticket">
            <div class="queue__card">
              <div class="queue__face queue__face--a">
                <span class="queue__no">No. 2</span>
                <h3 class="queue__name">Clippers</h3>
                <p class="queue__applying"><span>Applying for</span> Haircuts and clean-ups</p>
              </div>
              <div class="queue__face queue__face--b">
                <p class="queue__b-head" aria-hidden="true"><b>Clippers</b> Haircuts and clean-ups</p>
                <p class="queue__statement">Will be switched on across the room first.</p>
                <p class="queue__now" aria-hidden="true">Now being smelled</p>
              </div>
            </div>
            <i class="queue__bit" aria-hidden="true"></i>
          </div>
        </li>

        <li class="queue__item" tabindex="-1">
          <div class="queue__tool" style="--h:200">
            <svg class="queue__art" viewBox="0 0 220 200" role="presentation">
              <path d="M46 190h100l60 8-86 2-74-4z" fill="url(#q-h-s)"/>
              <g fill="none" stroke="#15111A" stroke-width="2.2" stroke-linejoin="round" stroke-linecap="round">
                <path d="M94 100C80 72 74 44 92 22c8-9 20-8 20 2l-6 26c-3 12-1 28 8 44z" fill="#DFE8DC"/>
                <path d="M94 100C80 72 74 44 92 22c8-9 20-8 20 2l-6 26c-3 12-1 28 8 44z" fill="url(#q-h-a)"/>
                <path d="M126 100c14-28 20-56 2-78-8-9-20-8-20 2l6 26c3 12 1 28-8 44z" fill="#DFE8DC"/>
                <path d="M126 100c14-28 20-56 2-78-8-9-20-8-20 2l6 26c3 12 1 28-8 44z" fill="url(#q-h-b)"/>
                <circle cx="110" cy="44" r="7.5" fill="#DFE8DC"/>
                <path d="M96 104c-16 32-34 52-42 84-2 9 11 12 14 4 12-36 34-58 44-86z" fill="url(#q-h-c)"/>
                <path d="M124 104c16 32 34 52 42 84 2 9-11 12-14 4-12-36-34-58-44-86z" fill="url(#q-h-c)"/>
                <path d="M78 150l9-10 9 11 9-11 9 11 9-11 9 10" stroke-width="1.6"/>
                <circle cx="110" cy="102" r="7" fill="#DFE8DC"/>
              </g>
            </svg>
          </div>
          <div class="queue__ticket">
            <div class="queue__card">
              <div class="queue__face queue__face--a">
                <span class="queue__no">No. 3</span>
                <h3 class="queue__name">Nail clippers</h3>
                <p class="queue__applying"><span>Applying for</span> Nails</p>
              </div>
              <div class="queue__face queue__face--b">
                <p class="queue__b-head" aria-hidden="true"><b>Nail clippers</b> Nails</p>
                <p class="queue__statement">Small. Has a reputation.</p>
                <p class="queue__now" aria-hidden="true">Now being smelled</p>
              </div>
            </div>
            <i class="queue__bit" aria-hidden="true"></i>
          </div>
        </li>

        <li class="queue__item" tabindex="-1">
          <div class="queue__tool" style="--h:380">
            <svg class="queue__art" viewBox="0 0 220 380" role="presentation">
              <path d="M72 352h76l66 18-84 4-70-10z" fill="url(#q-h-s)"/>
              <g fill="none" stroke="#15111A" stroke-width="2.2" stroke-linejoin="round" stroke-linecap="round">
                <path d="M92 150c2 70-8 140-10 186-1 22 56 22 55 0-2-46-12-116-10-186z" fill="#DFE8DC"/>
                <path d="M92 150c2 70-8 140-10 186-1 22 56 22 55 0-2-46-12-116-10-186z" fill="url(#q-h-a)"/>
                <path d="M118 150c-2 70 6 140 8 186 0 10-8 16-22 18 18 2 34-4 33-18-2-46-12-116-10-186z" fill="url(#q-h-b)"/>
                <circle cx="109" cy="330" r="7" fill="#DFE8DC"/>
                <rect x="44" y="24" width="130" height="134" rx="40" fill="#DFE8DC"/>
                <rect x="44" y="24" width="130" height="134" rx="40" fill="url(#q-h-c)"/>
                <rect x="58" y="38" width="102" height="106" rx="30" fill="#DFE8DC"/>
                <rect x="58" y="38" width="102" height="106" rx="30" fill="url(#q-pins)" stroke-width="1.4"/>
                <path d="M46 62l-11-6M44 92l-13 0M46 122l-11 6M172 62l11-6M174 92l13 0M172 122l11 6M78 26l-5-12M109 24l0-13M140 26l5-12" stroke-width="1.6"/>
              </g>
            </svg>
          </div>
          <div class="queue__ticket">
            <div class="queue__card">
              <div class="queue__face queue__face--a">
                <span class="queue__no">No. 4</span>
                <h3 class="queue__name">Brush</h3>
                <p class="queue__applying"><span>Applying for</span> Brushing and de-matting</p>
              </div>
              <div class="queue__face queue__face--b">
                <p class="queue__b-head" aria-hidden="true"><b>Brush</b> Brushing and de-matting</p>
                <p class="queue__statement">Smells like the last officer.</p>
                <p class="queue__now" aria-hidden="true">Now being smelled</p>
              </div>
            </div>
            <i class="queue__bit" aria-hidden="true"></i>
          </div>
        </li>

        <li class="queue__item" tabindex="-1">
          <div class="queue__tool" style="--h:360">
            <svg class="queue__art" viewBox="0 0 170 360" role="presentation">
              <path d="M36 342h64l64 14-76 4-60-8z" fill="url(#q-h-s)"/>
              <g fill="none" stroke="#15111A" stroke-width="2.2" stroke-linejoin="round" stroke-linecap="round">
                <path d="M62 28h60M62 39h60M62 50h60M62 61h60M62 72h60M62 83h60M62 94h60M62 105h60M62 116h60M62 127h60M62 138h60M62 149h60M62 160h60M62 171h60" stroke-width="3.6"/>
                <path d="M62 188h62M62 194h62M62 200h62M62 206h62M62 212h62M62 218h62M62 224h62M62 230h62M62 236h62M62 242h62M62 248h62M62 254h62M62 260h62M62 266h62M62 272h62M62 278h62M62 284h62M62 290h62M62 296h62M62 302h62M62 308h62M62 314h62M62 320h62" stroke-width="1.8"/>
                <path d="M34 18h26c4 0 6 3 6 7v316c0 5-3 8-7 8H34c-4 0-7-3-7-8V25c0-4 3-7 7-7z" fill="#DFE8DC"/>
                <path d="M34 18h26c4 0 6 3 6 7v316c0 5-3 8-7 8H34c-4 0-7-3-7-8V25c0-4 3-7 7-7z" fill="url(#q-h-a)"/>
                <path d="M54 22v324" stroke-width="1.2"/>
              </g>
            </svg>
          </div>
          <div class="queue__ticket">
            <div class="queue__card">
              <div class="queue__face queue__face--a">
                <span class="queue__no">No. 5</span>
                <h3 class="queue__name">Comb</h3>
                <p class="queue__applying"><span>Applying for</span> Going wherever the brush got to</p>
              </div>
              <div class="queue__face queue__face--b">
                <p class="queue__b-head" aria-hidden="true"><b>Comb</b> Going wherever the brush got to</p>
                <p class="queue__statement">No objections recorded.</p>
                <p class="queue__now" aria-hidden="true">Now being smelled</p>
              </div>
            </div>
            <i class="queue__bit" aria-hidden="true"></i>
          </div>
        </li>
      </ol>

      <div class="queue__window">
        <div class="queue__frame">
          <div class="queue__opening">
            <div class="queue__paper"></div>
            <div class="queue__blind" aria-hidden="true"></div>
          </div>
          <p class="queue__sign stamp-word"><span class="ink ink--large" data-ink="Next">Next</span></p>
          <p class="queue__note">The window closes whenever the officer wants it to.</p>
        </div>
      </div>
    </div>

    <span class="page__no">Leaf 7</span>
    <div class="page__shade"></div>
  </div>
</section>

<!-- chapter: the-dryer -->
<section class="leaf" data-chapter="the-dryer" data-title="The dryer" data-len="4">
  <div class="page dryer">
    <div class="dryer__lineup" aria-hidden="true">
      <div class="dryer__chart">
        <span style="--i:0">48”</span><span style="--i:1">42”</span><span style="--i:2">36”</span><span style="--i:3">30”</span><span style="--i:4">24”</span><span style="--i:5">18”</span><span style="--i:6">12”</span>
      </div>
      <figure class="dryer__shot dryer__shot--front">
        <svg viewBox="0 0 320 560" role="presentation">
          <defs>
            <pattern id="dry-a" class="dry-h" width="2.8" height="2.8" patternUnits="userSpaceOnUse" patternTransform="rotate(38)"><line x1="0" y1="0" x2="0" y2="2.8" stroke-width=".9"/></pattern>
            <pattern id="dry-b" class="dry-h" width="2.2" height="2.2" patternUnits="userSpaceOnUse" patternTransform="rotate(-52)"><line x1="0" y1="0" x2="0" y2="2.2" stroke-width=".9"/></pattern>
            <pattern id="dry-c" class="dry-h" width="3.4" height="3.4" patternUnits="userSpaceOnUse" patternTransform="rotate(90)"><line x1="0" y1="0" x2="0" y2="3.4" stroke-width=".7"/></pattern>
            <pattern id="dry-d" class="dry-h" width="1.9" height="1.9" patternUnits="userSpaceOnUse" patternTransform="rotate(14)"><line x1="0" y1="0" x2="0" y2="1.9" stroke-width="1.1"/></pattern>
            <pattern id="dry-e" class="dry-h" width="1.6" height="1.6" patternUnits="userSpaceOnUse" patternTransform="rotate(104)"><line x1="0" y1="0" x2="0" y2="1.6" stroke-width="1"/></pattern>
          </defs>
          <g class="dry-draw">
            <!-- Floor shadow, thrown right and down by the lamp -->
            <path d="M52 546h236l28 10-232 4z" fill="url(#dry-c)" stroke="none"/>
            <!-- Post and hook carry the hose above the canister -->
            <path d="M160 302V118" stroke-width="5"/>
            <!-- Long ribbed hose, draped over the hook to the nozzle -->
            <path id="hose-f" d="M218 302C292 252 296 134 218 104 172 86 96 92 74 170" stroke-width="22"/>
            <path class="dry-cut" d="M218 302C292 252 296 134 218 104 172 86 96 92 74 170" stroke-width="17"/>
            <path class="dry-rib" d="M218 302C292 252 296 134 218 104 172 86 96 92 74 170" stroke-width="17" stroke-dasharray="1.3 3.7"/>
            <path d="M218 302C292 252 296 134 218 104 172 86 96 92 74 170" transform="translate(3 4)" stroke="url(#dry-e)" stroke-width="8"/>
            <path d="M160 118c0-14 18-14 18 0" stroke-width="5"/>
            <!-- Hose collar -->
            <g transform="translate(222 300) rotate(-38)"><rect class="dry-paper" x="-17" y="-14" width="34" height="28" rx="3"/><rect x="-17" y="-14" width="34" height="28" rx="3" fill="url(#dry-a)"/></g>
            <!-- Concentrator nozzle at the end of the hose -->
            <rect class="dry-paper" x="56" y="158" width="36" height="13" rx="3"/>
            <rect x="56" y="158" width="36" height="13" rx="3" fill="url(#dry-b)"/>
            <path class="dry-paper" d="M61 171h26l-7 66-14 3z"/>
            <path d="M61 171h26l-7 66-14 3z" fill="url(#dry-d)"/>
            <path d="M65 240l15-4" stroke-width="4"/>
            <!-- Low wheeled stand -->
            <rect class="dry-paper" x="100" y="468" width="14" height="22"/><rect x="100" y="468" width="14" height="22" fill="url(#dry-a)"/>
            <rect class="dry-paper" x="206" y="468" width="14" height="22"/><rect x="206" y="468" width="14" height="22" fill="url(#dry-a)"/>
            <rect class="dry-paper" x="58" y="488" width="204" height="13" rx="3"/>
            <rect x="58" y="488" width="204" height="13" rx="3" fill="url(#dry-d)"/>
            <path class="dry-paper" d="M74 501l-5 21h22l-5-21z"/><path d="M74 501l-5 21h22l-5-21z" fill="url(#dry-b)"/>
            <path class="dry-paper" d="M234 501l-5 21h22l-5-21z"/><path d="M234 501l-5 21h22l-5-21z" fill="url(#dry-b)"/>
            <circle class="dry-paper" cx="80" cy="534" r="15"/><circle cx="80" cy="534" r="15" fill="url(#dry-a)"/><circle class="dry-dark" cx="80" cy="534" r="5.5"/>
            <circle class="dry-paper" cx="240" cy="534" r="15"/><circle cx="240" cy="534" r="15" fill="url(#dry-a)"/><circle class="dry-dark" cx="240" cy="534" r="5.5"/>
            <!-- The canister body, drum end on, with its air intake -->
            <rect class="dry-paper" x="70" y="300" width="180" height="170" rx="28"/>
            <rect x="70" y="300" width="180" height="170" rx="28" fill="url(#dry-a)"/>
            <path d="M198 300h24c16 0 28 12 28 28v114c0 16-12 28-28 28h-24z" fill="url(#dry-d)"/>
            <path d="M70 438c0 18 12 32 28 32h124c16 0 28-14 28-32z" fill="url(#dry-e)"/>
            <path d="M74 324h172M74 446h172" stroke-width="1.2"/>
            <path d="M84 354v62M92 350v70M100 354v62" stroke-width="1.3"/>
            <!-- Carry handle on top -->
            <path d="M112 300c0-34 96-34 96 0" stroke-width="10"/>
            <path class="dry-cut" d="M112 300c0-34 96-34 96 0" stroke-width="5.5"/>
            <!-- Grille -->
            <circle class="dry-paper" cx="160" cy="385" r="64"/>
            <circle cx="160" cy="385" r="64" fill="url(#dry-b)"/>
            <circle class="dry-paper" cx="160" cy="385" r="52"/>
            <circle cx="160" cy="385" r="46" stroke-width="1.3"/><circle cx="160" cy="385" r="38" stroke-width="1.3"/><circle cx="160" cy="385" r="30" stroke-width="1.3"/><circle cx="160" cy="385" r="22" stroke-width="1.3"/>
            <path d="M160 333v104M108 385h104M123 348l74 74M197 348l-74 74" stroke-width="1.6"/>
            <circle class="dry-paper" cx="160" cy="385" r="14"/><circle cx="160" cy="385" r="14" fill="url(#dry-d)"/><circle class="dry-dark" cx="160" cy="385" r="5"/>
            <!-- Switch plate -->
            <rect class="dry-paper" x="186" y="438" width="52" height="24" rx="3"/>
            <rect class="dry-dark" x="196" y="442" width="16" height="16" rx="2"/>
            <path d="M220 444v12M228 444v12" stroke-width="1.3"/>
          </g>
        </svg>
        <figcaption>Front</figcaption>
      </figure>
      <figure class="dryer__shot dryer__shot--side">
        <svg viewBox="0 0 320 560" role="presentation">
          <g class="dry-draw">
            <path d="M46 546h236l32 10-234 4z" fill="url(#dry-c)" stroke="none"/>
            <path d="M150 306V150" stroke-width="5"/>
            <path d="M48 392C-22 352-14 232 46 176 96 130 210 124 248 188 262 212 262 230 252 252" stroke-width="22"/>
            <path class="dry-cut" d="M48 392C-22 352-14 232 46 176 96 130 210 124 248 188 262 212 262 230 252 252" stroke-width="17"/>
            <path class="dry-rib" d="M48 392C-22 352-14 232 46 176 96 130 210 124 248 188 262 212 262 230 252 252" stroke-width="17" stroke-dasharray="1.3 3.7"/>
            <path d="M48 392C-22 352-14 232 46 176 96 130 210 124 248 188 262 212 262 230 252 252" transform="translate(3 4)" stroke="url(#dry-e)" stroke-width="8"/>
            <path d="M150 150c0-14-20-14-20 0" stroke-width="5"/>
            <g transform="translate(44 392) rotate(200)"><rect class="dry-paper" x="-17" y="-14" width="34" height="28" rx="3"/><rect x="-17" y="-14" width="34" height="28" rx="3" fill="url(#dry-a)"/></g>
            <rect class="dry-paper" x="234" y="244" width="36" height="13" rx="3"/>
            <rect x="234" y="244" width="36" height="13" rx="3" fill="url(#dry-b)"/>
            <path class="dry-paper" d="M239 257h26l-5 68-14-2z"/>
            <path d="M239 257h26l-5 68-14-2z" fill="url(#dry-d)"/>
            <path d="M246 325l14 1" stroke-width="4"/>
            <rect class="dry-paper" x="96" y="468" width="14" height="22"/><rect x="96" y="468" width="14" height="22" fill="url(#dry-a)"/>
            <rect class="dry-paper" x="204" y="468" width="14" height="22"/><rect x="204" y="468" width="14" height="22" fill="url(#dry-a)"/>
            <rect class="dry-paper" x="56" y="488" width="208" height="13" rx="3"/>
            <rect x="56" y="488" width="208" height="13" rx="3" fill="url(#dry-d)"/>
            <path class="dry-paper" d="M76 501l-5 21h22l-5-21z"/><path d="M76 501l-5 21h22l-5-21z" fill="url(#dry-b)"/>
            <path class="dry-paper" d="M226 501l-5 21h22l-5-21z"/><path d="M226 501l-5 21h22l-5-21z" fill="url(#dry-b)"/>
            <circle class="dry-paper" cx="82" cy="534" r="15"/><circle cx="82" cy="534" r="15" fill="url(#dry-a)"/><circle class="dry-dark" cx="82" cy="534" r="5.5"/>
            <circle class="dry-paper" cx="232" cy="534" r="15"/><circle cx="232" cy="534" r="15" fill="url(#dry-a)"/><circle class="dry-dark" cx="232" cy="534" r="5.5"/>
            <!-- The long drum, side on, with a ribbed motor housing at the far end -->
            <rect class="dry-paper" x="46" y="306" width="222" height="164" rx="36"/>
            <rect x="46" y="306" width="222" height="164" rx="36" fill="url(#dry-a)"/>
            <path d="M222 306h10c20 0 36 16 36 36v92c0 20-16 36-36 36h-10z" fill="url(#dry-d)"/>
            <path d="M46 436c0 20 16 34 36 34h150c20 0 36-14 36-34z" fill="url(#dry-e)"/>
            <path d="M92 312v152M118 310v156M144 310v156M170 310v156M196 310v156" stroke-width="1"/>
            <path d="M240 340v40M250 336v48M260 342v36" stroke-width="1.6"/>
            <path d="M114 306c0-26 72-26 72 0" stroke-width="10"/>
            <path class="dry-cut" d="M114 306c0-26 72-26 72 0" stroke-width="5.5"/>
          </g>
        </svg>
        <figcaption>Profile</figcaption>
      </figure>
      <div class="dryer__slate"><span>DRYER</span></div>
      <svg class="dryer__still-seal" viewBox="-110 -100 220 200" aria-hidden="true">
        <defs><pattern id="seal-cells" width="11" height="10" patternUnits="userSpaceOnUse"><circle cx="3" cy="3" r="3.8" fill="#C2301F"/><circle cx="8.6" cy="8" r="3.8" fill="#C2301F"/></pattern></defs>
        <path fill="url(#seal-cells)" fill-rule="evenodd" d="M0 88C-30 88-96 40-96-10-96-60-50-84 0-84S96-60 96-10C96 40 30 88 0 88ZM-58-16c-16 2-26 16-22 26 4 10 18 14 28 8 6-4 2-18 8-24 2-6-6-12-14-10Zm116 0c16 2 26 16 22 26-4 10-18 14-28 8-6-4-2-18-8-24-2-6 6-12 14-10Z"/>
      </svg>
    </div>

    <div class="dryer__file">
      <h2 class="dryer__title stamp-word"><span class="dryer__title-line">Switched on and off.</span> <span class="dryer__title-line">Has not touched the dog.</span></h2>
      <p class="dryer__statement">It is the loudest thing we own, so it is switched on across the room and switched off again as many times as the officer needs. Nothing about it goes near anyone until the officer’s nose has been over it.</p>
      <button class="dryer__switch" type="button" aria-pressed="false"><i aria-hidden="true"></i><span>Switch it on</span></button>
      <p class="dryer__left" aria-live="polite"></p>
    </div>

    <p class="dryer__seal-word stamp-word" aria-hidden="true"><span class="ink ink--large" data-ink="Cleared by nose">Cleared by nose</span></p>
    <p class="sr-only">Across the page, a large print of a dog’s nose has been stamped, with the words Cleared by nose.</p>
    <span class="page__no">Leaf 8</span>
    <div class="page__shade"></div>
  </div>
</section>

<!-- chapter: grounds-for-halting -->
<section class="leaf" data-chapter="grounds-for-halting" data-title="Grounds for halting" data-len="1">
  <div class="page halt">
    <svg class="halt__ghost" viewBox="-110 -100 220 200" aria-hidden="true" focusable="false">
      <defs><pattern id="halt-cells" width="11" height="10" patternUnits="userSpaceOnUse"><circle cx="3" cy="3" r="3.8" fill="#9DBDAE"/><circle cx="8.6" cy="8" r="3.8" fill="#9DBDAE"/></pattern></defs>
      <path fill="url(#halt-cells)" fill-rule="evenodd" d="M0 88C-30 88-96 40-96-10-96-60-50-84 0-84S96-60 96-10C96 40 30 88 0 88ZM-58-16c-16 2-26 16-22 26 4 10 18 14 28 8 6-4 2-18 8-24 2-6-6-12-14-10Zm116 0c16 2 26 16 22 26-4 10-18 14-28 8-6-4-2-18-8-24-2-6 6-12 14-10Z"/>
    </svg>
    <p class="halt__ghost-word stamp-word" aria-hidden="true">Cleared by nose</p>

    <div class="halt__text">
      <h2 class="halt__title">Grounds for halting</h2>
      <ul class="halt__lines" role="list">
        <li>The officer has frozen.</li>
        <li>Trembling counts.</li>
        <li>So does a guarded paw.</li>
      </ul>
      <p class="halt__note">Any one of these and the work stops. Fear in a dog is often quiet. Nobody here is waiting for a growl.</p>
      <p class="halt__pencil" role="status"></p>
    </div>

    <div class="halt__stamp stampable">
      <div class="halt__inner">
        <span class="ink halt__frame" data-ink="" aria-hidden="true"></span>
        <span class="halt__bleed stamp-word" aria-hidden="true">HALT</span>
        <span class="ink ink--large halt__word stamp-word" data-ink="HALT">HALT</span>
      </div>
    </div>

    <div class="halt__holes" aria-hidden="true"></div>

    <span class="page__no">Leaf 9</span>
    <div class="page__shade"></div>
  </div>
</section>

<!-- chapter: the-stub -->
<section class="leaf" data-chapter="the-stub" data-title="The stub" data-len="1.4">
  <div class="page stub">
    <div class="stub__lamp" aria-hidden="true"></div>

    <div class="stub__ticket">
      <canvas class="stub__sheet" aria-hidden="true"></canvas>

      <div class="stub__keep">
        <h2 class="stub__band stamp-word">Your dog's itinerary</h2>
        <dl class="stub__plan">
          <div><dt>On arrival</dt><dd>You come in together. Nobody is taken from anybody at the door.</dd></div>
          <div><dt>Then</dt><dd>Your dog walks the room and smells the tools, one at a time.</dd></div>
          <div><dt>Only after that</dt><dd>The first tool is used.</dd></div>
          <div><dt>If it is too much</dt><dd>We stop, and we tell you what happened and where we got to.</dd></div>
        </dl>
        <button class="stub__tear" type="button"><span class="stub__tear-word">Tear here</span></button>
      </div>

      <div class="stub__grab" aria-hidden="true"></div>
      <div class="stub__flap">
        <div class="stub__slip">
          <p class="stub__name stamp-word">Sniffwell</p>
          <p class="stub__seat">Seat: wherever the officer likes.</p>
        </div>
      </div>
      <div class="stub__seam" aria-hidden="true"></div>
    </div>

    <div class="stub__dark" aria-hidden="true"></div>
    <span class="page__no">Leaf 10</span>
    <div class="page__shade"></div>
  </div>
</section>

<!-- chapter: invisible-ink -->
<section class="leaf" data-chapter="invisible-ink" data-title="Invisible ink" data-len="1.6">
  <div class="page uv">
    <div class="uv__print">
      <div class="uv__head">
        <h2 class="uv__title stamp-word">Printed where only you will look</h2>
        <p class="uv__hint">Move the lamp</p>
      </div>
      <dl class="uv__list">
        <div class="uv__item">
          <dt><button class="uv__q" type="button">We don’t know where our dog came from. Is that a problem?</button></dt>
          <dd class="uv__a">Write unknown on the form. A lot of our officers came that way.</dd>
        </div>
        <div class="uv__item">
          <dt><button class="uv__q" type="button">My dog has never been groomed.</button></dt>
          <dd class="uv__a">Say so on the application. It tells us to go slower.</dd>
        </div>
        <div class="uv__item">
          <dt><button class="uv__q" type="button">My dog has bitten someone.</button></dt>
          <dd class="uv__a">Please tell us. Nobody is going to be cross. It helps us keep your dog and our hands safe.</dd>
        </div>
        <div class="uv__item">
          <dt><button class="uv__q" type="button">Are you going to rush the smelling part?</button></dt>
          <dd class="uv__a">It comes first, and it is the point of coming here.</dd>
        </div>
      </dl>
    </div>

    <div class="uv__lamp" aria-hidden="true">
      <div class="uv__lit">
        <svg class="uv__fibres"></svg>
        <svg class="uv__nose" viewBox="-110 -100 220 200">
          <defs><pattern id="uv-cells" width="11" height="10" patternUnits="userSpaceOnUse"><circle cx="3" cy="3" r="3.8"/><circle cx="8.6" cy="8" r="3.8"/></pattern></defs>
          <path fill="url(#uv-cells)" fill-rule="evenodd" d="M0 88C-30 88-96 40-96-10-96-60-50-84 0-84S96-60 96-10C96 40 30 88 0 88ZM-58-16c-16 2-26 16-22 26 4 10 18 14 28 8 6-4 2-18 8-24 2-6-6-12-14-10Zm116 0c16 2 26 16 22 26-4 10-18 14-28 8-6-4-2-18-8-24-2-6 6-12 14-10Z"/>
        </svg>
      </div>
    </div>

    <div class="uv__warm" aria-hidden="true"></div>
    <span class="page__no uv__no">Leaf 11</span>
    <div class="page__shade"></div>
  </div>
</section>

<!-- chapter: the-holder-page -->
<section class="leaf" data-chapter="the-holder-page" data-title="The holder page" data-len="2">
  <div class="page holder">
    <div class="holder__sheet">
      <div class="holder__portrait">
        <svg class="holder__art" viewBox="0 0 360 460" role="img" aria-label="A small engraved shopfront with a striped awning and a sign reading Sniffwell.">
          <defs>
            <pattern id="ho-a" width="5" height="5" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><line x1="0" y1="0" x2="0" y2="5"/></pattern>
            <pattern id="ho-b" width="4" height="4" patternUnits="userSpaceOnUse" patternTransform="rotate(-48)"><line x1="0" y1="0" x2="0" y2="4"/></pattern>
            <pattern id="ho-c" width="6" height="6" patternUnits="userSpaceOnUse"><line x1="0" y1="3" x2="6" y2="3"/></pattern>
          </defs>
          <rect class="ho-fill-c ho-thin" width="360" height="460"/>
          <path class="ho-fill-paper" d="M42 74h276v312H42z"/>
          <path class="ho-fill-c ho-thin" d="M42 74h276v312H42z"/>
          <path class="ho-fill-paper" d="M30 56h300v22H30z"/>
          <path class="ho-fill-b" d="M30 68h300v10H30z"/>
          <path d="M42 74h276v312H42zM30 56h300v22H30z"/>
          <path class="ho-fill-paper" d="M62 94h236v46H62z"/>
          <path d="M62 94h236v46H62zM68 100h224v34H68z"/>
          <text class="holder__art-sign" x="180" y="125" text-anchor="middle">SNIFFWELL</text>
          <path class="ho-fill-paper" d="M62 158h236l18 40H44z"/>
          <path class="ho-fill-a" d="M62 158h39l-5 40H44zM140 158h40l1 40h-41zM218 158h40l18 40h-47z"/>
          <path d="M62 158h236l18 40H44z"/>
          <path d="M44 198c6 12 13 12 19 0 6 12 13 12 19 0 6 12 13 12 19 0 6 12 13 12 19 0 6 12 13 12 19 0 6 12 13 12 19 0 6 12 13 12 19 0 6 12 13 12 19 0 6 12 13 12 19 0 6 12 13 12 19 0 6 12 13 12 19 0 6 12 13 12 19 0 6 12 13 12 19 0"/>
          <path class="ho-fill-paper" d="M62 222h122v126H62z"/>
          <path class="ho-fill-b ho-thin" d="M78 222h38l-44 126H62zM146 222h22l-44 126h-22z"/>
          <path d="M62 222h122v126H62zM123 222v126M62 285h122"/>
          <path class="ho-fill-paper" d="M54 348h138v12H54z"/>
          <path class="ho-fill-a" d="M54 354h138v6H54z"/>
          <path d="M54 348h138v12H54z"/>
          <path class="ho-fill-paper" d="M208 214h88v172h-88z"/>
          <path class="ho-fill-b" d="M208 214h88v172h-88z"/>
          <path class="ho-fill-paper" d="M222 228h60v74h-60z"/>
          <path d="M208 214h88v172h-88zM222 228h60v74h-60zM222 318h60v50h-60z"/>
          <path d="M218 305h8"/>
          <circle class="ho-fill-paper" cx="282" cy="310" r="5"/>
          <path class="ho-fill-paper" d="M196 386h112v10H196z"/>
          <path d="M196 386h112v10H196z"/>
          <path class="ho-fill-a ho-thin" d="M308 396l40 40H238l-30-40z"/>
          <path d="M0 396h360M0 418h360M60 396l-16 22M150 396l-10 22M250 396l8 22M330 396l16 22"/>
        </svg>
        <div class="holder__foil" aria-hidden="true"><i class="holder__sheen"></i></div>
      </div>

      <div class="holder__data">
        <div class="holder__name">
          <p class="holder__role">Holder</p>
          <h2 class="holder__who stamp-word ink ink--large" data-ink="Sniffwell">Sniffwell</h2>
        </div>
        <p class="holder__reveal">This was never your dog’s passport. It is ours. Every page in it is us asking to come closer.</p>
        <dl class="holder__fields">
          <div class="holder__field"><dt>Surname</dt><dd><span class="holder__val stamp-word ink" data-ink="Well">Well</span></dd></div>
          <div class="holder__field"><dt>Given name</dt><dd><span class="holder__val stamp-word ink" data-ink="Sniff">Sniff</span></dd></div>
          <div class="holder__field holder__field--wide"><dt>Place of issue</dt><dd><span class="holder__val stamp-word ink" data-ink="Austin, Texas">Austin, Texas</span></dd></div>
          <div class="holder__field"><dt>Occupation</dt><dd><span class="holder__val stamp-word ink" data-ink="Asking">Asking</span></dd></div>
          <div class="holder__field"><dt>Status</dt><dd><span class="holder__val stamp-word ink" data-ink="New">New</span></dd></div>
        </dl>
      </div>

      <figure class="holder__ghost">
        <img src="img/dog-profile.jpg" alt="A dark brown and white speckled dog in profile, facing right with its nose raised." decoding="async">
        <canvas aria-hidden="true"></canvas>
        <span class="holder__spec" aria-hidden="true">SPECIMEN</span>
      </figure>

      <p class="holder__mrz" role="img" tabindex="0" aria-label="Machine-readable strip, reading: Passport. Well, Sniff. Asking permission. Sniff first.">
        <span class="holder__mrz-line">P&lt;USAWELL&lt;&lt;SNIFF&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;</span>
        <span class="holder__mrz-line">ASKING&lt;PERMISSION&lt;&lt;SNIFF&lt;FIRST&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;</span>
      </p>
    </div>

    <span class="page__no">Leaf 12</span>
    <div class="page__shade"></div>
  </div>
</section>

<!-- chapter: the-application -->
<section class="leaf leaf--flow" id="the-application" data-chapter="the-application" data-title="The application" data-len="2">
  <div class="page appl">
    <header class="appl__head">
      <h2 class="appl__title stamp-word"><span class="ink ink--large" data-ink="Your dog’s">Your dog’s</span> <span class="ink ink--large" data-ink="blank page">blank page</span></h2>
      <p class="appl__intro">Tell us about the officer. We read every line before we reply.</p>
    </header>

    <form class="appl__form" data-endpoint="" novalidate>

      <div class="appl__row">
        <span class="appl__num" aria-hidden="true">1</span>
        <label class="appl__label" for="ap-dog">Officer’s name</label>
        <div class="appl__slot">
          <span class="appl__rule"><input id="ap-dog" name="dogName" type="text" autocomplete="off" required aria-required="true" aria-describedby="ap-dog-err"></span>
          <p class="appl__err" id="ap-dog-err" aria-live="polite"></p>
        </div>
      </div>

      <div class="appl__row">
        <span class="appl__num" aria-hidden="true">2</span>
        <label class="appl__label" for="ap-origin">Place of origin</label>
        <div class="appl__slot">
          <span class="appl__rule">
            <input id="ap-origin" name="origin" type="text" autocomplete="off" placeholder="Unknown" aria-describedby="ap-origin-help">
            <span class="appl__accepted" aria-hidden="true"><span class="ink" data-ink="Accepted">Accepted</span></span>
          </span>
          <p class="appl__typed" id="ap-origin-help">Unknown is an accepted answer.</p>
          <p class="appl__sr" id="ap-origin-said" aria-live="polite"></p>
        </div>
      </div>

      <div class="appl__row" role="group" aria-labelledby="ap-needs-l">
        <span class="appl__num" aria-hidden="true">3</span>
        <span class="appl__label" id="ap-needs-l">What the officer needs</span>
        <div class="appl__slot">
          <div class="appl__ticks">
            <label class="appl__tick"><input type="checkbox" name="needs" value="A bath"><span class="appl__box" aria-hidden="true"><i>X</i></span><span>A bath</span></label>
            <label class="appl__tick"><input type="checkbox" name="needs" value="A haircut"><span class="appl__box" aria-hidden="true"><i>X</i></span><span>A haircut</span></label>
            <label class="appl__tick"><input type="checkbox" name="needs" value="Nails"><span class="appl__box" aria-hidden="true"><i>X</i></span><span>Nails</span></label>
            <label class="appl__tick"><input type="checkbox" name="needs" value="Brushing or de-matting"><span class="appl__box" aria-hidden="true"><i>X</i></span><span>Brushing or de-matting</span></label>
            <label class="appl__tick"><input type="checkbox" name="needs" value="Not sure yet"><span class="appl__box" aria-hidden="true"><i>X</i></span><span>Not sure yet</span></label>
          </div>
        </div>
      </div>

      <div class="appl__row">
        <span class="appl__num" aria-hidden="true">4</span>
        <label class="appl__label" for="ap-afraid">What is the officer afraid of?</label>
        <div class="appl__slot">
          <textarea class="appl__lines" id="ap-afraid" name="afraid" rows="3" aria-describedby="ap-afraid-help"></textarea>
          <p class="appl__help" id="ap-afraid-help">Dryers, men in hats, the sound of a zip. Anything at all.</p>
        </div>
      </div>

      <div class="appl__row" role="group" aria-labelledby="ap-days-l">
        <span class="appl__num" aria-hidden="true">5</span>
        <span class="appl__label" id="ap-days-l">Which days suit you?</span>
        <div class="appl__slot">
          <div class="appl__ticks appl__ticks--days">
            <label class="appl__tick"><input type="checkbox" name="days" value="Monday"><span class="appl__box" aria-hidden="true"><i>X</i></span><span>Monday</span></label>
            <label class="appl__tick"><input type="checkbox" name="days" value="Tuesday"><span class="appl__box" aria-hidden="true"><i>X</i></span><span>Tuesday</span></label>
            <label class="appl__tick"><input type="checkbox" name="days" value="Wednesday"><span class="appl__box" aria-hidden="true"><i>X</i></span><span>Wednesday</span></label>
            <label class="appl__tick"><input type="checkbox" name="days" value="Thursday"><span class="appl__box" aria-hidden="true"><i>X</i></span><span>Thursday</span></label>
            <label class="appl__tick"><input type="checkbox" name="days" value="Friday"><span class="appl__box" aria-hidden="true"><i>X</i></span><span>Friday</span></label>
            <label class="appl__tick"><input type="checkbox" name="days" value="Saturday"><span class="appl__box" aria-hidden="true"><i>X</i></span><span>Saturday</span></label>
            <label class="appl__tick"><input type="checkbox" name="days" value="Sunday"><span class="appl__box" aria-hidden="true"><i>X</i></span><span>Sunday</span></label>
          </div>
          <div class="appl__ticks appl__ticks--times">
            <label class="appl__tick"><input type="checkbox" name="times" value="Morning"><span class="appl__box" aria-hidden="true"><i>X</i></span><span>Morning</span></label>
            <label class="appl__tick"><input type="checkbox" name="times" value="Afternoon"><span class="appl__box" aria-hidden="true"><i>X</i></span><span>Afternoon</span></label>
          </div>
        </div>
      </div>

      <div class="appl__row">
        <span class="appl__num" aria-hidden="true">6</span>
        <label class="appl__label" for="ap-owner">Your name</label>
        <div class="appl__slot">
          <span class="appl__rule"><input id="ap-owner" name="ownerName" type="text" autocomplete="name"></span>
        </div>
      </div>

      <div class="appl__contact">
        <div class="appl__row">
          <span class="appl__num" aria-hidden="true">7</span>
          <label class="appl__label" for="ap-phone">Phone</label>
          <div class="appl__slot">
            <span class="appl__rule"><input id="ap-phone" name="phone" type="tel" autocomplete="tel" inputmode="tel" aria-describedby="ap-contact-err"></span>
          </div>
        </div>
        <div class="appl__row">
          <span class="appl__num" aria-hidden="true">8</span>
          <label class="appl__label" for="ap-email">Email</label>
          <div class="appl__slot">
            <span class="appl__rule"><input id="ap-email" name="email" type="email" autocomplete="email" inputmode="email" aria-describedby="ap-contact-err"></span>
            <p class="appl__err" id="ap-contact-err" aria-live="polite"></p>
          </div>
        </div>
      </div>

      <div class="appl__desk">
        <!-- An open tin stamp pad, seen from above: lid thrown back on its hinge, inked felt in the tray. -->
        <svg class="appl__pad" viewBox="0 0 320 222" aria-hidden="true">
          <defs>
            <pattern id="ap-felt" width="5" height="5" patternUnits="userSpaceOnUse" patternTransform="rotate(38)"><rect class="pad-wet" width="5" height="5"/><path class="pad-nap" d="M0 2.5h5"/></pattern>
            <pattern id="ap-tin" width="4" height="4" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect class="pad-tin" width="4" height="4"/><path class="pad-tin-line" d="M0 0v4"/></pattern>
            <pattern id="ap-cloth" width="3" height="3" patternUnits="userSpaceOnUse"><rect class="pad-lid" width="3" height="3"/><path class="pad-cloth" d="M0 1.5h3M1.5 0v3"/></pattern>
          </defs>
          <rect class="pad-cast" x="18" y="18" width="298" height="200" rx="12"/>
          <rect x="10" y="6" width="296" height="80" rx="10" fill="url(#ap-cloth)"/>
          <rect class="pad-rim" x="18" y="14" width="280" height="64" rx="6"/>
          <text class="pad-word" x="158" y="53" text-anchor="middle">Stamp pad</text>
          <rect class="pad-hinge" x="44" y="80" width="52" height="11" rx="2"/>
          <rect class="pad-hinge" x="220" y="80" width="52" height="11" rx="2"/>
          <rect x="8" y="88" width="300" height="126" rx="12" fill="url(#ap-tin)"/>
          <rect class="pad-edge" x="8" y="88" width="300" height="126" rx="12"/>
          <rect class="pad-recess" x="20" y="100" width="276" height="102" rx="7"/>
          <rect x="26" y="106" width="264" height="90" rx="5" fill="url(#ap-felt)"/>
          <rect class="pad-crust" x="31" y="111" width="254" height="80" rx="4"/>
          <path class="pad-gleam" d="M42 121c28-5 62-6 96-3l-10 5c-30-2-55-1-80 3zM60 137c15-3 31-3 46-2l-5 3c-13-1-26-1-38 1zM148 118c8 0 16 0 24 1l-3 3c-7-1-14-1-20-1z"/>
          <ellipse class="pad-press" cx="206" cy="152" rx="56" ry="26" transform="rotate(-6 206 152)"/>
          <path class="pad-tab" d="M138 214h40l-5 8h-30z"/>
          <circle class="pad-spot" cx="300" cy="96" r="2.4"/>
          <circle class="pad-spot" cx="14" cy="202" r="1.8"/>
        </svg>

        <div class="appl__act">
          <button class="appl__send" type="submit"><span>Send to the officer’s desk</span></button>
          <p class="appl__status" role="status"></p>
        </div>

        <div class="appl__seal" aria-hidden="true">
          <span class="appl__seal-label">Cleared by nose</span>
          <div class="appl__print">
            <svg class="appl__print-still" viewBox="-110 -100 220 200">
              <defs><pattern id="ap-cells" width="11" height="10" patternUnits="userSpaceOnUse"><circle cx="3" cy="3" r="3.8"/><circle cx="8.6" cy="8" r="3.8"/></pattern></defs>
              <path fill="url(#ap-cells)" fill-rule="evenodd" d="M0 88C-30 88-96 40-96-10-96-60-50-84 0-84S96-60 96-10C96 40 30 88 0 88ZM-58-16c-16 2-26 16-22 26 4 10 18 14 28 8 6-4 2-18 8-24 2-6-6-12-14-10Zm116 0c16 2 26 16 22 26-4 10-18 14-28 8-6-4-2-18-8-24-2-6 6-12 14-10Z"/>
            </svg>
          </div>
        </div>
      </div>
    </form>

    <span class="page__no">Leaf 13</span>
    <div class="page__shade"></div>
  </div>

  <footer class="back">
    <div class="back__stage">
      <div class="back__cover">
        <svg class="back__crest" viewBox="-110 -100 220 200" aria-hidden="true">
          <path fill-rule="evenodd" d="M0 88C-30 88-96 40-96-10-96-60-50-84 0-84S96-60 96-10C96 40 30 88 0 88ZM-58-16c-16 2-26 16-22 26 4 10 18 14 28 8 6-4 2-18 8-24 2-6-6-12-14-10Zm116 0c16 2 26 16 22 26-4 10-18 14-28 8-6-4-2-18-8-24-2-6 6-12 14-10Z"/>
          <path d="M0-82V88" fill="none" stroke-width="3"/>
        </svg>
        <p class="back__found">If found, please return to Sniffwell, Austin, Texas</p>
        <p class="back__reviews">No reviews yet. We are new, and the officers have not filed their reports.</p>
        <p class="back__reviews"><a href="mailto:officers@sniffwell.example">officers@sniffwell.example</a></p>
        <p class="back__made">Sniffwell is a made-up shop for this demo. The form sends nothing, and nothing on this page books a real appointment or takes a payment.</p>
        <div class="back__colophon">
          <p>Notice to the bearer. This book is set in Krona One, cut wide and low like the rubber letters on a customs stamp, and in Besley, a Clarendon face in the manner of government forms and ledgers. The strip along the bottom of the holder page is OCR type.</p>
          <p>Deliberately absent from these pages: prices, opening hours, a street address, available appointments, reviews, and any photograph of a dog that has actually been here, because we do not have them yet and will not print a guess. Paw prints are absent because the nose is the one that signs.</p>
        </div>
      </div>
    </div>
  </footer>
</section>
</main>
<noscript><style>.ribbon{position:static}</style></noscript>
<script src="vendor/lenis.min.js"></script>
<script defer src="js/book.js"></script>
<script defer src="js/chapters/the-cover.js"></script>
<script defer src="js/chapters/the-rule.js"></script>
<script defer src="js/chapters/officers-on-duty.js"></script>
<script defer src="js/chapters/the-nose-exam.js"></script>
<script defer src="js/chapters/arrivals-card.js"></script>
<script defer src="js/chapters/the-wet-page.js"></script>
<script defer src="js/chapters/the-queue.js"></script>
<script defer src="js/chapters/the-dryer.js"></script>
<script defer src="js/chapters/grounds-for-halting.js"></script>
<script defer src="js/chapters/the-stub.js"></script>
<script defer src="js/chapters/invisible-ink.js"></script>
<script defer src="js/chapters/the-holder-page.js"></script>
<script defer src="js/chapters/the-application.js"></script>
</body>
</html>
```

Create `404.html` exactly as below.

```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Refused entry. Sniffwell, Austin.</title>
<meta name="robots" content="noindex">
<meta name="theme-color" content="#1B2C58">
<link rel="icon" href="img/favicon.svg" type="image/svg+xml">
<style>
  @font-face { font-family: 'Krona One'; src: url(fonts/krona-one-latin-400-normal.woff2) format('woff2'); font-display: swap; }
  @font-face { font-family: 'Besley'; src: url(fonts/besley-latin-400-normal.woff2) format('woff2'); font-display: swap; }
  :root { --paper: #DFE8DC; --wet: #15111A; --dried: #B92B1B; --buckram: #1B2C58; --font-stamp: 'Krona One', 'Arial Black', sans-serif; --font-body: 'Besley', Georgia, serif; }
  html, body { margin: 0; min-height: 100%; background: var(--buckram); }
  main { min-height: 100svh; display: grid; place-items: center; padding: 24px; box-sizing: border-box; }
  .leaf { background: var(--paper); color: var(--wet); max-width: 620px; padding: 56px 40px; font: 400 18px/1.5 var(--font-body); clip-path: polygon(0 0, 100% 0, 100% 92%, 94% 100%, 87% 94%, 78% 100%, 69% 95%, 60% 100%, 50% 95%, 41% 100%, 31% 94%, 22% 100%, 11% 95%, 0 100%); }
  h1 { font: 400 clamp(28px, 6vw, 46px)/1 var(--font-stamp); text-transform: uppercase; color: var(--dried); margin: 0 0 20px; transform: rotate(-3deg); }
  a { color: inherit; text-underline-offset: .18em; display: inline-block; padding: 10px 0; }
  a:focus-visible { outline: 2px dashed var(--wet); outline-offset: 3px; }
</style>
</head>
<body>
<main>
  <div class="leaf">
    <h1>This page was refused entry.</h1>
    <p>Someone has torn it out of the book. <a href="./">Go back to the first leaf</a></p>
  </div>
</main>
</body>
</html>
```

## 5. Styles

Create `site.css` exactly as below. It holds the fonts, the colour tokens (security paper `#DFE8DC`, guilloche green `#9DBDAE`, wet ink `#15111A`, dried vermilion `#B92B1B`, buckram navy `#1B2C58`, gold foil `#CDA95C`), the book (leaves stacked with `position: sticky`, turned on the spine by the script), every leaf's layout, the phone layout (below 760 pixels wide the book becomes a normal scrolling page) and the reduced-motion layout (`html.still`).

```css
/* Krona One and Besley: SIL Open Font License 1.1, see fonts/OFL-*.txt */
@font-face{font-family:'Krona One';src:url(fonts/krona-one-latin-400-normal.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Besley';src:url(fonts/besley-latin-400-normal.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Besley';src:url(fonts/besley-latin-700-normal.woff2) format('woff2');font-weight:700;font-display:swap}
/* world/00-tokens.css */
:root {
  --paper: #DFE8DC;
  --guilloche: #9DBDAE;
  --wet: #15111A;
  --dried: #B92B1B;
  --buckram: #1B2C58;
  --foil: #CDA95C;

  --font-stamp: 'Krona One', 'Arial Black', sans-serif;
  --font-body: 'Besley', Georgia, serif;
  --font-ocr: 'OCR A Std', 'OCR A Extended', 'Courier New', monospace;

  --arrive: cubic-bezier(.16, 1, .3, 1);
  --answer: cubic-bezier(.2, .8, .2, 1);
  --carry: cubic-bezier(.65, 0, .35, 1);
  --drop: cubic-bezier(.55, 0, .85, .4);

  --dry-time: 2.4s;
  --gutter: clamp(20px, 4vw, 64px);
}


/* world/01-base.css */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--buckram); color: var(--wet); scrollbar-color: var(--foil) var(--buckram); font-synthesis: none; }
body { margin: 0; font: 400 clamp(16px, 1.15vw, 19px)/1.55 var(--font-body); overflow-x: clip; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
::selection { background: var(--dried); color: var(--paper); }
:focus-visible { outline: 2px dashed var(--wet); outline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }

.skip { position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--paper); padding: 12px 16px; }
.skip:focus { top: 12px; }

/* A chapter is a stretch of scroll holding one leaf of paper. */
.leaf { position: relative; }
.page {
  position: relative; min-height: 100svh; overflow: hidden;
  background-color: var(--paper);
  background-image:
    repeating-radial-gradient(circle at 78% 22%, transparent 0 13px, color-mix(in srgb, var(--guilloche) 28%, transparent) 13px 14px),
    repeating-radial-gradient(circle at 18% 84%, transparent 0 17px, color-mix(in srgb, var(--guilloche) 18%, transparent) 17px 18px);
}
/* Every leaf is bound: a gutter falling into the spine on the left, a stack of leaf edges on the right. */
html.book .page::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 76px; z-index: 39; pointer-events: none; background: linear-gradient(90deg, rgba(21,17,26,.42), rgba(21,17,26,.12) 34%, transparent); }
html.book .page::after { content: ''; position: absolute; inset: 0 0 0 auto; width: 9px; z-index: 39; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(21,17,26,.2) 0 1px, transparent 1px 3px); }
.page__shade { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(21,17,26,.55), rgba(21,17,26,.08) 55%, rgba(21,17,26,.3)); z-index: 40; }
.page__no { position: absolute; right: var(--gutter); bottom: 22px; font-size: 13px; font-variant-numeric: tabular-nums; z-index: 5; }

html.book .leaf { height: calc(var(--len, 1) * 100vh); }
html.book .page { position: fixed; inset: 0; min-height: 0; height: 100vh; transform-origin: left center; backface-visibility: hidden; }
html.book .leaf.is-off .page { opacity: 0; pointer-events: none; }
html.book .leaf--flow { height: auto; }
html.book .leaf--flow .page { position: relative; height: auto; min-height: 100vh; }

/* Stamped type. The base colour is dried ink; a wet copy sits on top and is faded away. */
.ink { position: relative; display: inline-block; color: var(--dried); filter: url(#ink-edge); }
.ink--large { filter: url(#ink-edge-large); }
.ink::after { content: attr(data-ink); position: absolute; left: 0; top: 0; color: var(--wet); white-space: pre; opacity: 0; pointer-events: none; }
.ink.is-wet::after { opacity: 1; transition: none; }
.ink.is-dry::after { opacity: 0; transition: opacity var(--dry-time) linear; }
.stampable { transform: scale(1.5); opacity: 0; }
.stampable.is-down { transform: none; opacity: 1; transition: transform 110ms var(--drop), opacity 40ms linear; }

.stamp-word { font-family: var(--font-stamp); text-transform: uppercase; line-height: .95; letter-spacing: -.02em; }

.ribbon {
  position: fixed; z-index: 100; right: 58px; top: 0; width: 44px; padding: 14px 0 26px;
  background: var(--dried); color: var(--paper); text-decoration: none; writing-mode: vertical-rl;
  font: 400 13px/44px var(--font-stamp); text-align: center; transform: translateY(-10px);
  transition: transform 140ms var(--answer); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 16px), 0 100%);
}
.ribbon:hover { transform: translateY(0); }
.ribbon:active { transform: translateY(4px); }
.ribbon:focus-visible { outline-color: var(--paper); outline-offset: -6px; }

/* Page edges: a stack of thin leaves down the right side. Thins on one side as leaves turn. */
.edges { position: fixed; z-index: 90; right: 0; top: 50%; transform: translateY(-50%); display: none; flex-direction: column; }
html.book .edges { display: flex; }
.edges a { display: block; width: 44px; height: 22px; position: relative; }
.edges a::after { content: ''; position: absolute; right: 0; top: 10px; height: 2px; width: 16px; background: var(--foil); transition: transform 140ms var(--answer); transform-origin: right; }
.edges a.is-past::after { transform: scaleX(.4); }
.edges a[aria-current="true"]::after { transform: scaleX(2); }
.edges a:hover::after { transform: scaleX(1.6); }
.edges a:focus-visible { outline: 2px dashed var(--foil); outline-offset: -2px; }

@media (max-width: 759px) {
  .ribbon { top: auto; bottom: 0; right: 0; left: 0; width: auto; writing-mode: horizontal-tb; padding: 0; line-height: 52px; clip-path: none; transform: none; }
  body { padding-bottom: 52px; }
}

@media print {
  .ribbon, .edges, .skip { display: none; }
  .leaf:not(#the-application) { display: none; }
  .page { background: #fff; }
}


/* world/02-gl.css */
.gl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; }


/* chapter: the-cover */
/* The cover: a navy buckram passport lying askew on an oxblood leather blotter, one lamp at upper left. */
.cover {
  --desk: color-mix(in srgb, var(--dried) 24%, var(--wet));
  --cloth: var(--buckram);
  --cloth-lit: color-mix(in srgb, var(--buckram) 84%, var(--paper));
  --cloth-edge: color-mix(in srgb, var(--buckram) 66%, var(--wet));
  --paper-edge: color-mix(in srgb, var(--paper) 66%, var(--wet));
  --ink-shadow: color-mix(in srgb, var(--wet) 82%, transparent);
  --lip: color-mix(in srgb, var(--paper) 20%, transparent);
  --foil-dull: color-mix(in srgb, var(--foil) 50%, var(--buckram));
  --foil-glint: color-mix(in srgb, var(--foil) 55%, var(--paper));

  --bh: min(70vh, 60vw);
  --bw: calc(var(--bh) * .71);
  --t: clamp(32px, calc(var(--bw) * .11), 54px);
  --b: 4px;
  --o: 5px;
  --r: 12px;
  --bx: clamp(56px, 10.5vw, 190px);
  --by: calc((100vh - var(--bh)) / 2 - 3.6vh);
  --angle: -5.5deg;
  --persp: 1000px;
  --lens: 760px;

  color: var(--foil);
  background-color: var(--desk);
  background-image: var(--leather);
  background-blend-mode: overlay;
  --leather: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='l' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='turbulence' baseFrequency='.42' numOctaves='3' seed='14' stitchTiles='stitch'/%3E%3CfeDiffuseLighting surfaceScale='1.4' diffuseConstant='.95'%3E%3CfeDistantLight azimuth='225' elevation='58'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='520' height='520' filter='url(%23l)'/%3E%3C/svg%3E");
  --pore: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' seed='8'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 2.2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23p)'/%3E%3C/svg%3E");
}
.cover::before, .cover::after { display: none; }
.cover__defs { position: absolute; }

/* The camera. Everything on the desk lives inside it. */
.cover__cam { position: relative; }
.cover__desk {
  position: absolute; inset: -100vh -100vw;
  background-color: var(--desk);
  background-image:
    radial-gradient(120vmax 90vmax at calc(100vw + 12vw) calc(100vh + 8vh), color-mix(in srgb, var(--foil) 16%, transparent), transparent 66%),
    radial-gradient(160vmax 120vmax at calc(100vw + 12vw) calc(100vh + 8vh), transparent 34%, color-mix(in srgb, var(--wet) 78%, transparent) 90%),
    var(--leather);
  background-blend-mode: normal, normal, overlay;
}
.cover__cast {
  position: absolute; left: var(--bx); top: var(--by); width: var(--bw); height: var(--bh);
  transform: rotate(var(--angle));
  box-shadow:
    5px 7px 2px var(--ink-shadow),
    14px 19px 7px color-mix(in srgb, var(--wet) 58%, transparent),
    30px 40px 22px color-mix(in srgb, var(--wet) 34%, transparent);
}

/* The 3D book. */
.cover__wrap {
  position: absolute; left: var(--bx); top: var(--by); width: var(--bw); height: var(--bh);
  perspective: var(--persp);
  perspective-origin: calc(50% + var(--lens)) calc(50% + var(--lens));
}
.cover__book { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateZ(var(--angle)); }
.cover__book > * { position: absolute; display: block; }

.cover__ring { inset: 0; pointer-events: none; }
/* Back board: only the two sides the lens can see, so nothing crosses the opening. */
.cover__ring--back { border-right: var(--o) solid var(--cloth-edge); border-bottom: var(--o) solid var(--cloth-edge); transform: translateZ(var(--b)); }
.cover__ring--paper {
  inset: var(--o); border: var(--r) solid var(--paper);
  transform: translateZ(calc(var(--t) - var(--b)));
}

/* Board edges: thin slabs of cloth, the lamp side a touch brighter. */
.cover__strip { position: absolute; display: block; background: var(--cloth-edge); backface-visibility: hidden; }
.cover__strip--back-r { left: 100%; top: 0; height: 100%; width: var(--b); transform-origin: 0 0; transform: translateZ(var(--b)) rotateY(90deg); }
.cover__strip--back-b { top: 100%; left: 0; width: 100%; height: var(--b); transform-origin: 0 0; transform: translateZ(var(--b)) rotateX(-90deg); }

/* The page block, set back from the boards. */
.cover__pages { backface-visibility: hidden; background-color: var(--paper-edge); transform-origin: 0 0; }
.cover__pages--r {
  left: calc(100% - var(--o)); top: var(--o); height: calc(100% - var(--o) * 2); width: calc(var(--t) - var(--b) * 2);
  transform: translateZ(calc(var(--t) - var(--b))) rotateY(90deg);
  background-image:
    linear-gradient(90deg, color-mix(in srgb, var(--wet) 62%, transparent), transparent 22%, transparent 80%, color-mix(in srgb, var(--wet) 40%, transparent)),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--wet) 30%, transparent) 0 1px, transparent 1px 2.5px, color-mix(in srgb, var(--wet) 14%, transparent) 2.5px 3px, transparent 3px 4.5px);
}
.cover__pages--b {
  left: var(--o); top: calc(100% - var(--o)); width: calc(100% - var(--o) * 2); height: calc(var(--t) - var(--b) * 2);
  transform: translateZ(calc(var(--t) - var(--b))) rotateX(-90deg);
  background-image:
    linear-gradient(180deg, color-mix(in srgb, var(--wet) 72%, transparent), transparent 24%, transparent 78%, color-mix(in srgb, var(--wet) 46%, transparent)),
    repeating-linear-gradient(180deg, color-mix(in srgb, var(--wet) 24%, transparent) 0 1px, transparent 1px 2.5px, color-mix(in srgb, var(--wet) 10%, transparent) 2.5px 3px, transparent 3px 4.5px);
}

/* The light cut off by the rising lid, thrown across the first leaf. */
.cover__fall {
  left: var(--o); top: var(--o); right: var(--o); bottom: var(--o);
  background: linear-gradient(90deg, var(--wet), color-mix(in srgb, var(--wet) 62%, transparent) 86%, transparent);
  opacity: 0; transform-origin: 0 50%; pointer-events: none;
  transform: translateZ(calc(var(--t) - var(--b) + .5px));
}

/* The lid. */
.cover__lid { inset: 0; transform-style: preserve-3d; transform-origin: 0 50%; transform: translateZ(calc(var(--t) - var(--b))); }
.cover__lid .cover__strip { background: var(--cloth-edge); }
.cover__strip--lid-r { left: 100%; top: 0; height: 100%; width: var(--b); transform-origin: 0 0; transform: translateZ(var(--b)) rotateY(90deg); }
.cover__strip--lid-b { top: 100%; left: 0; width: 100%; height: var(--b); transform-origin: 0 0; transform: translateZ(var(--b)) rotateX(-90deg); }
.cover__strip--lid-t { top: 0; left: 0; width: 100%; height: var(--b); transform-origin: 0 0; transform: rotateX(90deg); }

.cover__face { position: absolute; inset: 0; backface-visibility: hidden; overflow: hidden; }
.cover__face--front {
  transform: translateZ(var(--b));
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: calc(var(--bh) * .085) calc(var(--bw) * .09) calc(var(--bh) * .07);
  background-color: var(--cloth);
  border-radius: 1.5px 2.5px 2.5px 1.5px;
}
.cover__weave { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The joint: the groove where the board bends at the spine. */
.cover__groove {
  position: absolute; inset: 0 auto 0 0; width: 11.5%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--wet) 62%, transparent) 0 6%, color-mix(in srgb, var(--wet) 10%, transparent) 40%, color-mix(in srgb, var(--wet) 40%, transparent) 70%, color-mix(in srgb, var(--paper) 10%, transparent) 80%, transparent);
}
/* The lamp raking the cloth: bright at the corner nearest it, falling away across the board. */
.cover__lamp {
  position: absolute; inset: 0;
  background: linear-gradient(139deg, color-mix(in srgb, var(--foil) 10%, transparent) 0%, transparent 42%, color-mix(in srgb, var(--wet) 46%, transparent) 100%);
}
.cover__wear { position: absolute; width: 40px; height: 40px; color: color-mix(in srgb, var(--paper) 34%, var(--cloth)); }
.cover__wear path { fill: currentColor; stroke: currentColor; }
.cover__wear--tr { right: 0; top: 0; }
.cover__wear--br { right: 0; bottom: 0; }
.cover__wear--bl { left: 0; bottom: 0; }

/* Foil is one flat colour, pressed in: a dark inner wall on the lamp side, a pale lip on the far side. */
.cover__foil { position: relative; color: var(--foil); text-align: center; text-shadow: -1px -1px 0 var(--ink-shadow), 1px 1px 0 var(--lip); }
.cover__name { font: 400 calc(var(--bw) * .09)/1.05 var(--font-stamp); letter-spacing: .01em; }
.cover__line { font: 400 calc(var(--bw) * .043)/1.3 var(--font-body); letter-spacing: .02em; }
.cover__crest { position: relative; width: 62%; height: auto; overflow: visible; }
.cover__crest-low { color: var(--ink-shadow); opacity: 1; }
.cover__crest-high { color: var(--lip); }
.cover__crest-dull { color: var(--foil-dull); }
.cover__crest-warm { color: var(--foil); opacity: 0; transition: opacity 1.8s linear; }
.cover.is-warm .cover__crest-warm { opacity: 1; }

/* The moving highlight is a band of light across the whole cover. The letters are not clipped to it. */
.cover__sheen {
  position: absolute; inset: -40% -60%; pointer-events: none; mix-blend-mode: soft-light; opacity: .5;
  background: linear-gradient(112deg, transparent 40%, var(--foil-glint) 50%, transparent 60%);
  transform: translateX(calc(-16% + var(--sheen-x, 0) * 18%));
}
.cover__dim { position: absolute; inset: 0; background: var(--wet); opacity: 0; pointer-events: none; }

/* Inside the lid: security paper. */
.cover__face--inner {
  transform: rotateY(180deg);
  background-color: var(--paper);
  background-image: linear-gradient(240deg, color-mix(in srgb, var(--foil) 14%, transparent), transparent 56%);
}
.cover__guilloche { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover__guilloche path { fill: none; stroke: var(--guilloche); stroke-width: .6; }

/* The blotter's own tooling: a gold-ruled border and the shop's rule, foil on leather. */
.cover__print { position: absolute; inset: 0; pointer-events: none; }
.cover__frame {
  position: absolute; inset: 2.6vh 2.4vw;
  border: 2px solid color-mix(in srgb, var(--foil) 62%, transparent);
  outline: 1px solid color-mix(in srgb, var(--foil) 34%, transparent);
  outline-offset: -7px;
  box-shadow: inset -1px -1px 0 var(--ink-shadow), 1px 1px 0 var(--lip);
}
/* The rule, then in plain words what the shop is and where, then the way to ask for a day. */
.cover__copy {
  position: absolute;
  left: calc(var(--bx) + var(--bw) + 6vw);
  right: 76px;
  top: 50%;
  transform: translateY(-50%);
  --cover-avail: calc(100vw - var(--bx) - var(--bw) - 6vw - 76px);
}
.cover__h1 {
  font: 400 min(calc(var(--cover-avail) / 8.4), 11.5vh)/1.04 var(--font-stamp);
  letter-spacing: -.012em;
  color: var(--foil);
  text-shadow: -1.5px -1.5px 0 var(--ink-shadow), 1.5px 1.5px 0 var(--lip);
  -webkit-mask-image: var(--pore); mask-image: var(--pore);
  pointer-events: auto;
}
.cover__h1 span { display: block; }
.cover__says {
  max-width: 34em; margin-top: clamp(14px, 3vh, 30px);
  font: 400 clamp(16px, min(1.3vw, 2.3vh), 21px)/1.45 var(--font-body);
  color: color-mix(in srgb, var(--foil) 72%, var(--paper));
  text-shadow: 1px 1px 0 var(--ink-shadow);
  pointer-events: auto;
}
.cover__cta {
  display: inline-flex; align-items: center; min-height: 48px; margin-top: clamp(14px, 3vh, 28px); padding: 12px 20px;
  border: 2px solid var(--foil); border-radius: 2px;
  font: 400 clamp(13px, .95vw, 15px)/1.2 var(--font-stamp); letter-spacing: .03em; color: var(--foil); text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink-shadow);
  pointer-events: auto;
  transition: background-color 140ms var(--answer), color 140ms var(--answer), transform 140ms var(--answer), box-shadow 140ms var(--answer);
}
.cover__cta:hover { background-color: var(--foil); color: var(--buckram); }
.cover__cta:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink-shadow); transition-duration: 60ms; }
.cover__cta:focus-visible { outline: 2px dashed var(--paper); outline-offset: 4px; }
.cover.is-opening .cover__cta { pointer-events: none; }
.cover__hint {
  position: absolute;
  left: calc(var(--bx) + var(--bw) + 6vw);
  bottom: 7vh;
  font: 400 clamp(14px, 1.05vw, 17px)/1.3 var(--font-body);
  color: var(--foil);
  transition: opacity 140ms linear;
}
.cover.is-opening .cover__hint { opacity: 0; }
.cover__band {
  position: absolute; left: 30%; right: -8%; top: -20%; bottom: -20%; pointer-events: none; mix-blend-mode: color-dodge;
  background: linear-gradient(104deg, transparent 44%, color-mix(in srgb, var(--foil) 14%, var(--wet)) 50%, transparent 56%);
  transform: translateX(calc(var(--sheen-x, 0) * 16%));
}

/* The ribbon: real link, hanging from the bottom edge of the page block. */
.cover__well {
  display: none;
  left: 62%; top: calc(100% - var(--o)); width: 140px; height: calc(100vh - var(--by) - var(--bh) + 8px); min-height: 100px;
  overflow: hidden; pointer-events: none;
  transform-origin: 0 0;
  transform: translateZ(calc(var(--t) * .5));
}
.cover__ribbon { position: absolute; left: 38px; top: -6px; display: block; width: 56px; height: calc(100% - 14px); pointer-events: auto; color: var(--foil); text-decoration: none; transform-origin: 50% 0; }
.cover__cloth, .cover__ribbon-shadow {
  position: absolute; inset: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 18px), 0 100%);
  transition: transform 140ms var(--answer);
}
.cover__ribbon-shadow { background: var(--wet); opacity: .55; transform: translate(6px, 8px); }
.cover__cloth {
  display: flex; align-items: flex-start; justify-content: center; padding-top: 42px;
  background-color: var(--dried);
  background-image:
    linear-gradient(90deg, color-mix(in srgb, var(--wet) 28%, transparent), transparent 18% 72%, color-mix(in srgb, var(--wet) 40%, transparent)),
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--wet) 26%, transparent) 0 1px, transparent 1px 2px);
}
.cover__cloth > span { writing-mode: vertical-rl; font: 400 15px/1 var(--font-stamp); letter-spacing: .04em; text-shadow: -1px -1px 0 var(--ink-shadow); }
.cover__ribbon:hover .cover__cloth, .cover__ribbon:hover .cover__ribbon-shadow { transform: translateY(10px); }
.cover__ribbon:active .cover__cloth, .cover__ribbon:active .cover__ribbon-shadow { transform: translateY(15px) scaleX(.92); transition-duration: 60ms; }
.cover__ribbon:focus-visible { outline: 2px dashed var(--paper); outline-offset: -4px; }

/* First paint and JS off: the cover already lies shut. */
html.book .cover { background: none; }
html.book .cover__well { display: block; }

/* The desk has a hole exactly where the first leaf lies. */
html.book .cover__desk {
  --hx: calc(var(--bx) + var(--bw) / 2);
  --hy: calc(var(--by) + var(--bh) / 2);
  --hw: calc(var(--bw) / 2 - var(--o) - var(--r) + 2px);
  --hh: calc(var(--bh) / 2 - var(--o) - var(--r) + 2px);
  --c: .9954; --s: -.0958;
  clip-path: polygon(evenodd,
    0 0, 100% 0, 100% 100%, 0 100%, 0 0,
    calc(100vw + var(--cover-hole-x, var(--hx)) - var(--cover-hole-w, var(--hw)) * var(--c) + var(--cover-hole-h, var(--hh)) * var(--s)) calc(100vh + var(--cover-hole-y, var(--hy)) - var(--cover-hole-w, var(--hw)) * var(--s) - var(--cover-hole-h, var(--hh)) * var(--c)),
    calc(100vw + var(--cover-hole-x, var(--hx)) + var(--cover-hole-w, var(--hw)) * var(--c) + var(--cover-hole-h, var(--hh)) * var(--s)) calc(100vh + var(--cover-hole-y, var(--hy)) + var(--cover-hole-w, var(--hw)) * var(--s) - var(--cover-hole-h, var(--hh)) * var(--c)),
    calc(100vw + var(--cover-hole-x, var(--hx)) + var(--cover-hole-w, var(--hw)) * var(--c) - var(--cover-hole-h, var(--hh)) * var(--s)) calc(100vh + var(--cover-hole-y, var(--hy)) + var(--cover-hole-w, var(--hw)) * var(--s) + var(--cover-hole-h, var(--hh)) * var(--c)),
    calc(100vw + var(--cover-hole-x, var(--hx)) - var(--cover-hole-w, var(--hw)) * var(--c) - var(--cover-hole-h, var(--hh)) * var(--s)) calc(100vh + var(--cover-hole-y, var(--hy)) - var(--cover-hole-w, var(--hw)) * var(--s) + var(--cover-hole-h, var(--hh)) * var(--c)),
    calc(100vw + var(--cover-hole-x, var(--hx)) - var(--cover-hole-w, var(--hw)) * var(--c) + var(--cover-hole-h, var(--hh)) * var(--s)) calc(100vh + var(--cover-hole-y, var(--hy)) - var(--cover-hole-w, var(--hw)) * var(--s) - var(--cover-hole-h, var(--hh)) * var(--c)));
}
html.book .cover__cam { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
html.book .cover__book, html.book .cover__lid { will-change: transform; }

/* Exactly one ribbon: the book's, until the cover has pulled it in; then the page's. */
html.book:not(.cover-handed):has([data-chapter="the-cover"]:not(.is-off)) .ribbon { visibility: hidden; }

/* Wide, but no book mode (reduced motion or no script): the same closed composition, flat. */
@media (min-width: 760px) {
  html:not(.book) .cover { min-height: 100svh; }
  html:not(.book) .cover__cam { position: absolute; inset: 0; }
  html:not(.book) .cover__hint { display: none; }
}

/* Phone: the book stands portrait, the sentence follows it, the page ribbon is the only ribbon. */
@media (max-width: 759px) {
  .cover {
    --bw: min(calc(100vw - 80px), calc(40svh * .71));
    --bh: calc(var(--bw) / .71);
    --t: 22px; --o: 4px; --r: 8px; --b: 3px;
    --bx: calc((100vw - var(--bw)) / 2); --by: 26px; --angle: -3deg;
    --lens: 520px;
  }
  .cover__desk { inset: 0; background-image:
    radial-gradient(120vmax 90vmax at 12vw 4vh, color-mix(in srgb, var(--foil) 26%, transparent), transparent 62%),
    radial-gradient(160vmax 120vmax at 12vw 4vh, transparent 40%, color-mix(in srgb, var(--wet) 72%, transparent) 88%),
    var(--leather); }
  .cover__cam { position: relative; min-height: 100svh; padding: calc(var(--by) + var(--bh) + 46px) 20px 72px; }
  .cover__print { position: static; }
  .cover__frame { position: absolute; inset: 8px; }
  .cover__copy { position: relative; left: auto; right: auto; top: auto; transform: none; }
  .cover__h1 { font-size: clamp(28px, 9.2vw, 44px); }
  .cover__h1 span { display: inline; }
  .cover__says { margin-top: 16px; font-size: 17px; }
  .cover__cta { margin-top: 20px; font-size: 14px; }
  .cover__hint, .cover__band { display: none; }
  .cover__wrap { position: absolute; left: var(--bx); top: var(--by); }
}

@media (prefers-reduced-motion: reduce) {
  .cover__crest-warm, .cover__hint { transition: none; }
}


/* chapter: the-rule */
.rule__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.rule__rosette { position: absolute; right: -14vmin; top: 50%; width: 118vmin; height: 118vmin; transform: translateY(-50%); }
.rule__rosette path { fill: none; stroke: var(--wet); stroke-width: .7; opacity: .12; }

/* The right padding keeps the sentence clear of the ribbon bookmark that hangs down this edge. */
.rule__sheet { position: absolute; inset: 0; padding: 3.4vh calc(clamp(70px, 8vw, 130px) + 72px) 11vh var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.rule__words { display: flex; flex-wrap: wrap; column-gap: .24em; row-gap: .02em; font-size: clamp(56px, 9.4vw, 170px); line-height: .96; }

.rule__line { display: flex; column-gap: .24em; width: max-content; white-space: nowrap; }

.rule__word { display: inline-block; flex: none; transition: transform 90ms var(--carry), opacity 90ms linear; }
.rule__word.is-down { transition: transform 110ms var(--drop), opacity 40ms linear; }
.rule__word:nth-child(3n + 1) .ink { transform: rotate(-.7deg); }
.rule__word:nth-child(3n + 2) .ink { transform: rotate(.45deg) translateY(.015em); }
.rule__word:nth-child(3n) .ink { transform: rotate(-.2deg); }

/* A hand on a rubber stamp: heavy lower left, starved upper right, with bare speckle where the rubber missed. */
.rule__word .ink {
  text-shadow: -.014em .014em 0 currentColor, -.007em .007em 0 currentColor;
  -webkit-mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.4 2.95'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23s)'/%3E%3C/svg%3E"),
    linear-gradient(32deg, var(--wet) 52%, color-mix(in srgb, var(--wet) 62%, transparent) 100%);
  mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.4 2.95'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23s)'/%3E%3C/svg%3E"),
    linear-gradient(32deg, var(--wet) 52%, color-mix(in srgb, var(--wet) 62%, transparent) 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.rule__small { position: absolute; left: var(--gutter); bottom: 26px; max-width: 46ch; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.4; transform-origin: 0 100%; z-index: 5; }
.rule__small.stampable { transform: scale(1.12); }
.rule__small.stampable.is-down { transform: none; }

/* No script and reduced motion: the finished sentence, dried. */
html:not(.js) .rule__word, html.still .rule__word,
html:not(.js) .rule__small, html.still .rule__small { opacity: 1; transform: none; }

@media (max-width: 759px) {
  .rule { min-height: 0; }
  .rule__rosette { right: -40vw; top: 34%; width: 120vw; height: 120vw; }
  .rule__sheet { position: relative; padding: 72px 16px 22px; }
  .rule__words { flex-direction: column; flex-wrap: nowrap; font-size: 22vw; line-height: 1; }
  .rule__small { position: relative; left: auto; bottom: auto; margin: 16px 16px 0; padding-bottom: 76px; }
}


/* chapter: officers-on-duty */
.officers { --strip: var(--paper); --cut: var(--paper); --ph: 50vh; --pw: calc(var(--ph) * .75); }
@supports (color: rgb(from red r g b)) {
  .officers { --strip: rgb(from var(--paper) calc(r * 1.13) calc(g * 1.09) calc(b * 1.14)); --cut: var(--strip); }
}

/* The file fills everything the strip does not: a headline as tall as the page, the copy under it in two columns. */
.officers__file { position: relative; z-index: 6; padding: 9vh var(--gutter) 0; width: min(calc(100vw - var(--pw) - 200px), 1100px); }
html.book .officers__file { display: grid; grid-template-columns: 1fr 1fr; column-gap: 34px; align-items: start; min-height: 100vh; padding-bottom: 7vh; align-content: space-between; }
html.book .officers__title { grid-column: 1 / -1; }
.officers__title { font-size: clamp(34px, min(7.4vw, 14vh), 150px); line-height: 1.02; margin-bottom: 34px; text-wrap: balance; }
.officers__body { max-width: 44ch; margin-bottom: 26px; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.5; }
.officers__note { max-width: 44ch; font-size: clamp(13px, .95vw, 15px); line-height: 1.5; }

/* The strip: one long photo-booth print, white border, feeding up through the page. */
.officers__feed { position: absolute; top: 0; left: calc(100vw - var(--pw) - 160px); width: calc(var(--pw) + 30px); transform: rotate(1.4deg); transform-origin: 50% 40%; z-index: 4; }
.officers__strip {
  position: relative; display: block; padding: 2vh 15px 3vh;
  background-color: var(--strip);
  background-image:
    radial-gradient(circle at 104% 100%, color-mix(in srgb, var(--foil) 46%, transparent), color-mix(in srgb, var(--foil) 16%, transparent) 34px, transparent 74px),
    radial-gradient(ellipse 54px 30px at 92% 99%, color-mix(in srgb, var(--dried) 16%, transparent), transparent 80%);
  box-shadow: 8px 11px 0 color-mix(in srgb, var(--wet) 22%, transparent);
  will-change: transform;
}

.officer { display: block; outline-offset: 4px; cursor: default; }
.officer + .officer { margin-top: 1vh; }
.officer:focus-visible { outline: 2px dashed var(--wet); }

.officer__frame { position: relative; height: var(--ph); width: 100%; overflow: hidden; background: var(--paper); isolation: isolate; }

/* Never the untreated photo: if the engraving cannot run, the picture is at least screened into paper. */
.officer__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.5) brightness(1.08); mix-blend-mode: multiply; }
.officer__frame::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(62deg, var(--paper) 0 1.3px, transparent 1.3px 3.6px); z-index: 2; }
.officer__frame.is-engraved img { opacity: 0; }
.officer__frame.is-engraved::after { content: none; }

.officer__screen { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; transition: opacity 300ms var(--answer); }
.officer__screen--fine { opacity: 0; }
.officer:hover .officer__screen--fine, .officer:focus-visible .officer__screen--fine { opacity: 1; }
.officer:hover .officer__screen--coarse, .officer:focus-visible .officer__screen--coarse { opacity: 0; }

.officer__specimen {
  position: absolute; left: 27%; top: 80%; z-index: 4; font: 400 calc(var(--pw, 220px) * .105)/1 var(--font-stamp); letter-spacing: .03em; white-space: nowrap;
  color: var(--dried); transform: translate(calc(-50% + 2px), calc(-50% - 1.5px)) rotate(-45deg); filter: url(#ink-edge); mix-blend-mode: multiply;
  text-shadow: 2px 1.5px 0 color-mix(in srgb, var(--dried) 40%, transparent);
  pointer-events: none;
}

.officer__rank { position: relative; overflow: hidden; height: 5vh; display: flex; align-items: center; font-size: clamp(10.5px, 1.28vh, 13px); line-height: 1.2; white-space: nowrap; }
.officer__rank i { position: absolute; inset: 0; background: var(--strip); transform: translateX(101%); pointer-events: none; }
.officer:hover .officer__rank i, .officer:focus-visible .officer__rank i { animation: officer-type calc(var(--n) * 28ms) steps(var(--n)) both; }
@keyframes officer-type { from { transform: translateX(0); } to { transform: translateX(101%); } }

/* In the book the fifth has its rank withheld until asked, and it sits on the frame because the page edge has taken the border. */
html.book .officer--last { position: relative; }
html.book .officer--last .officer__rank { position: absolute; left: 0; right: 0; top: 6px; height: auto; padding: 4px 6px; z-index: 5; pointer-events: none; opacity: 0; }
html.book .officer--last .officer__rank > span { background: var(--strip); padding: 2px 6px; }
html.book .officer--last .officer__rank i { background: var(--strip); }
html.book .officer--last:hover .officer__rank, html.book .officer--last:focus-visible .officer__rank { opacity: 1; }

.officers__nose { display: none; position: absolute; left: 0; top: 0; width: 72px; height: 64px; transform-origin: 50% 50%; z-index: 30; pointer-events: none; }
.officers__nose-body { fill: var(--wet); }
.officers__nose-line { fill: var(--paper); opacity: .7; }
.officers__nose-hole { fill: color-mix(in srgb, var(--wet) 62%, var(--buckram)); }
.officers__black { display: none; position: absolute; inset: 0; background: var(--wet); z-index: 31; opacity: 0; pointer-events: none; }
html.book .officers__nose, html.book .officers__black { display: block; }
html.book .officers__nose { visibility: hidden; }

/* Phones: one portrait at a time, swiped natively. */
@media (max-width: 759px) {
  .officers { padding: 66px 0 70px; }
  .officers__file { width: auto; padding: 0 16px 26px; }
  .officers__title { font-size: 34px; }
  .officers__feed { position: static; width: auto; left: auto; transform: none; --pw: 76vw; --ph: 101vw; }
  .officers__strip { display: flex; gap: 12px; padding: 12px 12vw 18px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; will-change: auto; box-shadow: none; transform: none !important; }
  .officer { flex: 0 0 76vw; scroll-snap-align: center; }
  .officer + .officer { margin-top: 0; }
  .officer__rank { height: auto; min-height: 44px; padding: 8px 0; white-space: normal; font-size: 13.5px; }
  .officer__rank i { display: none; }
}

/* Reduced motion and no script on a wide screen: four portraits side by side, the fifth at the page edge. */
@media (min-width: 760px) {
  html.still .officers, html:not(.js) .officers { min-height: 100svh; padding: 6vh 0 8vh; }
  html.still .officers__file, html:not(.js) .officers__file { width: auto; max-width: 60ch; padding: 0 var(--gutter) 3vh; }
  html.still .officers__feed, html:not(.js) .officers__feed { position: static; width: auto; transform: none; --pw: calc((100vw - var(--gutter) * 2) / 4.35); --ph: calc(var(--pw) / .75); margin-left: var(--gutter); }
  html.still .officers__strip, html:not(.js) .officers__strip { display: flex; gap: 14px; padding: 14px 14px 10px; width: max-content; will-change: auto; }
  html.still .officer, html:not(.js) .officer { width: var(--pw); }
  html.still .officer + .officer, html:not(.js) .officer + .officer { margin-top: 0; }
  html.still .officer__rank i, html:not(.js) .officer__rank i { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .officer__screen { transition: none; }
  .officer:hover .officer__rank i, .officer:focus-visible .officer__rank i { animation: none; }
}


/* chapter: the-nose-exam */
.nose { color: var(--paper); background: var(--wet); }
html.book.nose-gl .nose { background: none; }
html.book.nose-gl .nose__macro { display: none; }
html.nose-gl:not(.still) .nose__plate { display: none; }

.nose__macro { position: absolute; inset: 0; background: var(--wet); }
.nose__plate { width: 100%; height: 100%; }
.nose__plate circle { fill: color-mix(in srgb, var(--paper) 13%, var(--wet)); }
.nose__plate-hole { fill: var(--wet); }
.nose__baked { position: absolute; inset: 0; width: 100%; height: 100%; }

.nose__printed { position: absolute; inset: 0; z-index: 30; transform-origin: 50% 48%; }
/* Paper labels pinned to the leather: every word on this page has real paper under it. */
.nose__tag { --tag-tilt: -.5deg; rotate: var(--tag-tilt); background: var(--paper); color: var(--wet); padding: 15px 18px; box-shadow: 5px 6px 0 color-mix(in srgb, var(--wet) 62%, transparent); }
.nose__tag::before { content: ''; position: absolute; left: 50%; top: 6px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--foil); box-shadow: 1px 1.5px 0 var(--wet); }

.nose__title { position: absolute; left: var(--gutter); top: 6vh; width: min(34vw, 480px); font-size: clamp(26px, 3.3vw, 56px); text-wrap: balance; padding: 18px 24px 14px; --tag-tilt: -.8deg; }
.nose__title-ink { display: inline-block; filter: url(#ink-edge-large); }
.nose__col { position: absolute; bottom: 12vh; width: min(23vw, 330px); font-size: clamp(15px, 1.08vw, 17px); line-height: 1.5; }
.nose__col--left { left: var(--gutter); --tag-tilt: .7deg; }
.nose__col--right { right: calc(var(--gutter) + 48px); --tag-tilt: -.4deg; }
.nose__source { margin-top: 12px; font-size: 12px; line-height: 1.4; }

.nose__bench { position: absolute; left: 50%; bottom: 12vh; width: 360px; margin-left: -180px; display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
@media (max-width: 1100px) { .nose__col { bottom: 34vh; width: 21vw; } }
.nose__sniff { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; min-width: 216px; justify-content: center; padding: 8px 22px; border: 0; background: var(--paper); color: var(--wet); font: 400 13px var(--font-stamp); cursor: pointer; touch-action: manipulation; user-select: none; -webkit-touch-callout: none; transition: transform 90ms var(--answer); }
.nose__sniff i { width: 12px; height: 12px; border-radius: 50%; background: var(--wet); transition: transform 90ms var(--answer); }
.nose__sniff:hover { background: var(--foil); }
.nose__sniff:active { transform: translateY(2px); }
.nose__sniff.is-sniffing { background: var(--foil); }
.nose__sniff.is-sniffing i { transform: scale(1.5); }
.nose__sniff.is-done i { background: var(--dried); }
.nose__sniff:focus-visible, .nose__tap:focus-visible { outline-color: var(--paper); }

/* The label stays at the left of the slip; the loupe starts on the right end, so it never lands on its own label. */
.nose__strip { position: relative; flex: none; align-self: stretch; text-align: left; }
.nose__label { font-size: 13px; line-height: 1.35; margin-bottom: 8px; max-width: 200px; }
.nose__tap { display: none; }
.nose__micro, .nose__lens-copy { font-size: 6.5px; line-height: 1.5; width: 324px; text-align: left; color: var(--wet); }
.nose__micro { margin: 0; }

/* The loupe: a brass ring on the leather. The shader magnifies the cobbles behind it. */
.nose__loupe { position: absolute; left: 0; top: 0; width: 180px; height: 180px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: grab; touch-action: none; display: none; }
.nose__loupe::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 215deg, var(--foil), color-mix(in srgb, var(--foil) 55%, var(--wet)) 30%, var(--foil) 55%, color-mix(in srgb, var(--foil) 72%, var(--paper)) 78%, var(--foil)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); transition: transform 140ms var(--answer); }
.nose__loupe::after { content: ''; position: absolute; inset: 16px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--paper); transform: rotate(-38deg); opacity: .55; }
.nose__loupe:hover::before { transform: rotate(10deg); }
.nose__loupe:active { cursor: grabbing; }
.nose__loupe:active::before { transform: rotate(10deg) scale(.985); }
.nose__loupe:focus-visible { outline: 2px dashed var(--paper); outline-offset: 5px; border-radius: 50%; }
.nose__lens { position: absolute; inset: 9px; border-radius: 50%; overflow: hidden; clip-path: circle(50%); }
/* The lens shows the slip it is held over: magnified paper, opaque, so the small print is never doubled under it. */
.nose__lens-copy { position: absolute; left: 0; top: 0; transform-origin: 0 0; background: var(--paper); box-shadow: 0 0 0 30px var(--paper); }
html.book .nose__loupe { display: block; }
html.book .nose__micro { user-select: none; }

.nose .page__no { color: var(--wet); background: var(--paper); padding: 2px 9px; }

/* Readers without the book: the small print is simply printed at reading size. */
html.still .nose__micro, html:not(.js) .nose__micro, html.no-gl:not(.book) .nose__micro { font-size: 14px; line-height: 1.5; width: 100%; max-width: 42ch; }
html.still .nose__label, html:not(.js) .nose__label { display: none; }
html.still .nose__tap, html:not(.js) .nose__tap { display: none; }

@media (min-width: 760px) {
  html:not(.book) .nose { height: 100vh; }
  html.still .nose__micro { max-width: 340px; }
}

@media (max-width: 759px) {
  .nose { overflow: clip; }
  .nose__macro { position: sticky; top: 0; height: 100svh; }
  .nose__printed { position: relative; inset: auto; margin-top: -100svh; padding: 76px 20px 40px; display: flex; flex-direction: column; }
  .nose__title { position: relative; left: auto; top: auto; width: auto; font-size: clamp(28px, 8.6vw, 38px); margin-bottom: 62svh; rotate: -.5deg; }
  .nose__col { position: relative; bottom: auto; left: auto; right: auto; width: auto; font-size: 17px; margin-bottom: 70svh; rotate: none; }
  .nose__col--right { margin-bottom: 18svh; }
  .nose__source { font-size: 13px; }
  .nose__bench { position: static; width: auto; margin: 0; flex-direction: column-reverse; align-items: stretch; gap: 18px; }
  .nose__sniff { width: 100%; min-height: 60px; }
  .nose__strip { text-align: left; min-height: 150px; }
  .nose__label { display: none; }
  .nose__tap { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0; border: 0; background: none; color: var(--wet); text-align: left; cursor: pointer; font-size: 14px; }
  .nose__tap i { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 5px solid var(--foil); transition: transform 90ms var(--answer); }
  .nose__tap:hover i { transform: rotate(12deg) scale(1.08); }
  .nose__tap:active i { transform: scale(.9); }
  .nose__micro { width: 165px; font-size: 7px; margin: 12px 0 0; transform-origin: 0 0; transition: transform 200ms var(--arrive); }
  .nose.is-enlarged .nose__micro { transform: scale(2.05); }
  .nose .page__no { position: static; margin-top: 18px; align-self: flex-start; }
}


/* chapter: arrivals-card */
.arr { display: grid; place-items: center; }

.arr__card {
  position: relative; width: clamp(340px, 28vw, 430px); padding: 34px 34px 30px;
  background: color-mix(in srgb, var(--paper) 86%, var(--foil));
  box-shadow: 6px 8px 0 color-mix(in srgb, var(--wet) 16%, transparent);
  transform: rotate(-1.1deg); z-index: 10;
}
.arr__clip { position: absolute; left: 22px; top: -14px; width: 22px; height: 50px; overflow: visible; }
.arr__clip path { fill: none; stroke-linecap: round; stroke-width: 2.4; }
.arr__clip-light { stroke: var(--paper); transform: translate(1.2px, 1.2px); }
.arr__clip-dark { stroke: color-mix(in srgb, var(--guilloche) 70%, var(--wet)); }

.arr__form { position: absolute; right: 22px; top: 14px; font-size: 12px; font-variant-numeric: tabular-nums; }
.arr__title { font-size: 15px; line-height: 1.25; padding: 16px 0 16px; border-bottom: 2px solid var(--wet); margin-bottom: 8px; text-wrap: balance; }

.arr__row { padding: 9px 0 5px; border-bottom: 1px solid color-mix(in srgb, var(--wet) 30%, transparent); }
.arr__row dt { font-size: 12px; line-height: 1.3; }
.arr__row dd { font-family: var(--font-ocr); font-size: 17px; line-height: 26px; height: 26px; white-space: pre; }
.arr__typed { display: inline-block; width: calc(var(--n) * 1ch); height: 26px; white-space: pre; transform-origin: top; }
html.js:not(.still) .arr__typed { animation: arr-type 1s steps(var(--n), end) both paused; animation-delay: calc(var(--k, 0) * -1s); }
@keyframes arr-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.arr__note { font-size: 13px; line-height: 1.45; margin-top: 14px; padding-right: 98px; }

.arr__print { position: absolute; right: 18px; bottom: 14px; width: 104px; height: 95px; transform: rotate(-9deg); filter: url(#ink-edge); }
.arr__print svg { width: 100%; height: 100%; }
.arr__print circle { fill: currentColor; }
.arr__print-wet { position: absolute; left: 0; top: 0; fill: var(--wet); opacity: 0; pointer-events: none; }
.arr__print.is-wet .arr__print-wet { opacity: 1; transition: opacity var(--dry-time) linear; }
.arr__print.is-dry .arr__print-wet { opacity: 0; transition: opacity var(--dry-time) linear; }
html.js:not(.still) .arr__print { opacity: 0; }
html.js:not(.still) .arr__print.is-down { opacity: 1; transition: opacity 40ms linear; }

.arr .page__no { color: var(--wet); }

@media (max-width: 759px) {
  .arr { display: block; background: color-mix(in srgb, var(--paper) 86%, var(--foil)); }
  .arr__card { width: 100%; min-height: 100svh; padding: 56px 20px 64px; box-shadow: none; transform: none; background: none; }
  .arr__clip { left: 20px; top: 0; }
  .arr__form { right: 20px; top: 20px; }
  .arr__title { font-size: 19px; }
  .arr__row dd { font-size: 16px; }
  .arr__note { font-size: 15px; padding-right: 0; margin-bottom: 112px; }
  .arr__print { right: 20px; bottom: 64px; }
}


/* chapter: the-wet-page */
.wet { color: var(--wet); }
html.book.wet-gl .wet { background: none; }
html.wet-gl .wet__tide { display: none; }

.wet__stage { position: absolute; inset: 0; z-index: 1; }
.wet__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* The tide line that water left behind: drawn plainly for readers without the shader. */
.wet__tide { position: absolute; left: 0; right: 0; bottom: 14vh; width: 100%; height: 12px; z-index: 2; }
.wet__tide path { fill: color-mix(in srgb, var(--guilloche) 70%, var(--wet) 16%); }

.wet__words { position: relative; z-index: 10; padding: 11vh var(--gutter) 0; width: min(68vw, 980px); }
.wet__title { font-size: clamp(44px, 7vw, 116px); letter-spacing: -.02em; margin-bottom: 4vh; }
.wet__body { font-size: clamp(18px, 1.5vw, 24px); line-height: 1.5; max-width: 40ch; }
.wet__word { color: inherit; }
html.wet-gl .wet__title, html.wet-gl .wet__body { color: transparent; }

/* Both stamps share one spot and only one is ever shown. */
.wet__stamp { position: absolute; right: calc(var(--gutter) + 96px); top: 47vh; z-index: 30; font-size: clamp(14px, 1.45vw, 22px); text-align: center; white-space: nowrap; transform: rotate(-7deg); }
.wet__stamp--dry { transform: rotate(5deg); }
.wet__stamp .ink { display: inline-block; padding: .28em .5em; }
.wet__stamp .ink::before { content: ''; position: absolute; inset: 0; border: 3px solid currentColor; }

.wet__stamps { display: contents; }
/* With nothing to dry, only the dried stamp remains. */
html.still .wet__stamp--wet, html:not(.js) .wet__stamp--wet { display: none; }
html.js:not(.still) .wet__stamp.stampable { transform: rotate(-7deg) scale(1.5); }
html.js:not(.still) .wet__stamp.stampable.is-down { transform: rotate(-7deg); }
html.js:not(.still) .wet__stamp--dry.stampable { transform: rotate(5deg) scale(1.5); }
html.js:not(.still) .wet__stamp--dry.stampable.is-down { transform: rotate(5deg); }

/* The outer corner is the one that curls, so the leaf number sits at the spine edge here. */
.wet .page__no { color: var(--wet); right: auto; left: var(--gutter); z-index: 25; }

@media (min-width: 760px) {
  html:not(.book) .wet { height: 100vh; }
}

@media (max-width: 759px) {
  .wet { padding-bottom: 72px; }
  .wet__stage { width: 50%; height: 50%; inset: 0 auto auto 0; transform: scale(2); transform-origin: 0 0; }
  .wet__words { padding: 64px 20px 0; width: auto; }
  .wet__title { font-size: 46px; margin-bottom: 24px; }
  .wet__body { font-size: 22px; }
  .wet__tide { bottom: 72px; height: 18px; }
  /* One place on the phone: the dried stamp replaces the wet one without moving the page. */
  .wet__stamps { display: grid; position: relative; z-index: 30; margin: 36px 20px 0; justify-items: start; }
  .wet__stamp, .wet__stamp--dry { grid-area: 1 / 1; position: relative; right: auto; top: auto; white-space: normal; text-align: left; font-size: 18px; }
  .wet__stamp .ink { padding: .3em .55em; }
}


/* chapter: the-queue */
/* The queue. Laid out as a vertical line first; the sideways track only exists inside html.book. */
.queue { padding: 44px var(--gutter) 72px; }
.queue__title { font-size: clamp(30px, 8vw, 66px); margin-bottom: 34px; max-width: 14ch; }

.queue__list { display: grid; gap: 34px; }
.queue__item { position: relative; display: grid; grid-template-columns: minmax(96px, 34%) 1fr; align-items: end; gap: 16px; outline-offset: 6px; }
.queue__item:focus-visible { outline: 2px dashed var(--wet); outline-offset: 6px; }
.queue__item::before { content: ''; position: absolute; left: 17%; top: 100%; height: 34px; width: 0; border-left: 2px dotted var(--wet); }
.queue__item:last-child::before { display: none; }

.queue__art { width: 100%; height: auto; transition: transform 180ms var(--answer); }
.queue__tool { will-change: transform; }

.queue__ticket { position: relative; }
.queue__card { position: relative; transition: transform 90ms var(--answer); }
.queue__item:active .queue__card { transform: translateY(2px); }
.queue__face { background: color-mix(in srgb, var(--guilloche) 42%, var(--paper)); border: 1.5px solid var(--wet); padding: 12px 14px; box-shadow: 3px 4px 0 color-mix(in srgb, var(--wet) 22%, transparent); }
.queue__face--a { border-bottom-style: dashed; }
.queue__face--b { border-top: 0; }
.queue__item:hover .queue__face { background: color-mix(in srgb, var(--foil) 34%, var(--paper)); }

.queue__no { display: block; font: 400 clamp(22px, 2.2vw, 32px)/1 var(--font-stamp); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.queue__name { font: 700 18px/1.2 var(--font-body); }
.queue__applying { font-size: 15px; line-height: 1.35; margin-top: 4px; }
.queue__applying span { display: block; font-size: 13px; }
.queue__statement { font-size: 16px; line-height: 1.35; }
/* A vermilion stamp on the ticket: Security Paper on Dried Stamp is 4.9:1, on any ticket colour. */
.queue__now { width: fit-content; font: 400 12px/1.3 var(--font-stamp); color: var(--paper); background: var(--dried); padding: 3px 8px; margin-top: 8px; opacity: 0; transition: opacity 60ms linear; }
/* The back of the ticket repeats who and what, so a flipped ticket never loses them. */
.queue__b-head { display: none; }

.queue__bit { position: absolute; left: 10%; bottom: -8px; width: 32%; height: 22px; background: color-mix(in srgb, var(--guilloche) 42%, var(--paper)); border: 1.5px solid var(--wet); opacity: 0; transform: translateY(-14px); transition: transform 260ms var(--arrive), opacity 60ms linear; pointer-events: none; }
.queue__item.is-front .queue__bit { opacity: 1; transform: translate(10px, 20px) rotate(14deg); }
.queue__item.is-front .queue__now { opacity: 1; }
.queue__item.is-front .queue__face { clip-path: polygon(0 0, 100% 0, 100% 94%, 92% 100%, 84% 94%, 76% 100%, 68% 94%, 60% 100%, 52% 94%, 44% 100%, 36% 94%, 28% 100%, 20% 94%, 12% 100%, 4% 94%, 0 100%); }

/* The window. In flow it is simply the end of the line. */
.queue__window { margin-top: 44px; }
.queue__frame { position: relative; height: 92vw; max-height: 560px; border: 2.4px solid var(--wet); background: repeating-linear-gradient(38deg, var(--wet) 0 1px, transparent 1px 4px), var(--paper); }
.queue__opening { position: absolute; inset: 22px 22px 92px; overflow: hidden; border: 2.4px solid var(--wet); }
.queue__paper { position: absolute; inset: 0; background-color: var(--paper); background-image:
    repeating-radial-gradient(circle at 78% 22%, transparent 0 13px, color-mix(in srgb, var(--guilloche) 28%, transparent) 13px 14px),
    repeating-radial-gradient(circle at 18% 84%, transparent 0 17px, color-mix(in srgb, var(--guilloche) 18%, transparent) 17px 18px); }
.queue__blind { position: absolute; left: 0; right: 0; top: 0; height: 38%; border-bottom: 2.4px solid var(--wet); background: repeating-linear-gradient(0deg, var(--wet) 0 1px, transparent 1px 7px), var(--paper); will-change: transform; }
.queue__sign { position: absolute; left: 50%; top: 44px; transform: translateX(-50%); background: var(--paper); border: 2.4px solid var(--wet); padding: 8px 20px; font-size: clamp(20px, 2.2vw, 32px); }
.queue__note { position: absolute; left: 22px; right: 22px; bottom: 12px; height: 68px; display: grid; align-items: center; font-size: 15px; line-height: 1.3; background: var(--paper); padding: 0 12px; border: 1.5px solid var(--wet); }

/* The sideways queue, wide screens with motion only. */
html.book .queue { padding: 0; }
html.book .queue__title { position: absolute; left: var(--gutter); top: 7vh; margin: 0; z-index: 5; font-size: clamp(34px, 4.4vw, 74px); max-width: none; }
html.book .queue__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 15vh; border-top: 2.4px solid var(--wet); background: repeating-linear-gradient(78deg, color-mix(in srgb, var(--wet) 48%, transparent) 0 1px, transparent 1px 8px); }
html.book .queue__track { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: flex-end; will-change: transform; z-index: 10; }
html.book .queue__list { display: flex; align-items: flex-end; height: 100%; gap: 0; }
html.book .queue__item { display: flex; align-items: flex-end; flex: 0 0 clamp(440px, 38vw, 640px); margin-bottom: 14.4vh; height: auto; gap: 14px; }
html.book .queue__item::before { display: none; }
html.book .queue__tool { flex: 0 0 auto; }
html.book .queue__art { height: calc(var(--h) * .135vh); width: auto; }
html.book .queue__ticket { flex: 0 0 clamp(220px, 17.5vw, 268px); margin-bottom: 1vh; perspective: 900px; }
html.book .queue__b-head { display: block; font-size: 14px; line-height: 1.25; margin-bottom: 8px; padding-bottom: 7px; border-bottom: 1px dashed var(--wet); }
html.book .queue__b-head b { display: block; font: 700 16px/1.2 var(--font-body); }
html.book .queue__card { height: clamp(196px, 26vh, 248px); transform-style: preserve-3d; transition: transform 320ms var(--carry); }
html.book .queue__face { position: absolute; inset: 0; backface-visibility: hidden; display: flex; flex-direction: column; border-style: solid; border-width: 1.5px; }
html.book .queue__face--b { transform: rotateY(180deg); justify-content: center; }
html.book .queue__item.is-front .queue__card,
html.book .queue__item:hover .queue__card,
html.book .queue__item:focus-visible .queue__card { transform: rotateY(180deg); }
html.book .queue__item:active .queue__card { transform: rotateY(180deg) translateY(2px); }
html.book .queue.is-back .queue__art { transform: scaleX(-1); }

html.book .queue__window { flex: 0 0 auto; width: clamp(360px, 30vw, 480px); height: 62vh; margin: 0 0 14.4vh 7vw; position: relative; z-index: 12; }
html.book .queue__frame { height: 100%; max-height: none; }
html.book .queue__paper { box-shadow: 0 0 0 24px var(--paper); }

@media (min-width: 760px) {
  html:not(.book) .queue__list { grid-template-columns: repeat(3, 1fr); }
  html:not(.book) .queue__item::before { display: none; }
  html:not(.book) .queue__window { max-width: 560px; }
}

@media (prefers-reduced-motion: reduce) {
  .queue__bit, .queue__now, .queue__card, .queue__art { transition: none; }
}


/* chapter: the-dryer */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.dryer { display: grid; grid-template-columns: minmax(300px, 34%) 1fr; }
.dryer__file { grid-column: 1; grid-row: 1; align-self: center; padding: 0 clamp(16px, 3vw, 48px) 0 var(--gutter); position: relative; z-index: 30; }
.dryer__title { font-size: clamp(26px, 2.75vw, 46px); margin-bottom: 26px; }
.dryer__title-line { display: block; }
.dryer__title-line + .dryer__title-line { text-wrap: balance; }
.dryer__statement { max-width: 44ch; margin-bottom: 32px; }

.dryer__switch { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 22px 8px 10px; background: var(--wet); color: var(--paper); border: 0; cursor: pointer; font: 400 14px var(--font-stamp); transition: transform 90ms var(--answer); }
.dryer__switch:hover { background: var(--buckram); }
.dryer__switch:active { transform: translateY(2px); }
.dryer__switch i { width: 18px; height: 34px; background: var(--paper); position: relative; }
.dryer__switch i::after { content: ''; position: absolute; left: 3px; right: 3px; top: 3px; height: 13px; background: var(--wet); transition: transform 90ms var(--answer); }
.dryer__switch[aria-pressed="true"] i::after { transform: translateY(15px); background: var(--dried); }
.dryer__left { min-height: 1.6em; margin-top: 14px; font-size: 15px; }

/* The push-in anchors on the column's left edge, so the height chart can never swing into the headline. */
.dryer__lineup { grid-column: 2; grid-row: 1; position: relative; min-height: 100vh; will-change: transform; transform-origin: 0% 42%; }
.dryer__chart { position: absolute; inset: 7vh 6% 13vh 0; background: repeating-linear-gradient(0deg, transparent 0 calc(100% / 6 - 2px), var(--wet) calc(100% / 6 - 2px) calc(100% / 6)); opacity: .9; }
.dryer__chart span { position: absolute; left: 0; top: calc(var(--i) * (100% / 6)); transform: translateY(-3px); font: 400 13px var(--font-stamp); background: var(--paper); padding-right: 8px; }

.dryer__shot { position: absolute; bottom: 13vh; height: calc(86vh - 13vh); margin: 0; width: 34%; }
.dryer__shot svg { width: 100%; height: 100%; overflow: visible; }
.dry-draw { fill: none; stroke: var(--wet); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.dry-h line { stroke: var(--wet); }
.dry-paper { fill: var(--paper); }
.dry-dark { fill: var(--wet); }
.dry-cut { stroke: var(--paper); }
.dry-rib { stroke-linecap: butt; }
.dryer__shot figcaption { position: absolute; bottom: -34px; left: 0; right: 0; text-align: center; font-size: 14px; }
.dryer__shot--front { left: 7%; }
.dryer__shot--side { left: 50%; }
.dryer.is-on .dryer__shot svg { animation: dryer-hum 90ms linear infinite; }
@keyframes dryer-hum { 0% { transform: translate(.8px, 0); } 50% { transform: translate(-.8px, .6px); } 100% { transform: translate(.8px, 0); } }

.dryer__slate { position: absolute; left: 36%; bottom: 3.6vh; background: var(--wet); color: var(--paper); padding: 8px 18px; font: 400 clamp(16px, 1.6vw, 24px) var(--font-stamp); }

/* Sits above the seal, in the gap beside the ribbon, wholly on the page. */
.dryer__seal-word { position: absolute; left: calc(34% + 24px); top: 6vh; z-index: 30; font-size: clamp(22px, 3vw, 46px); opacity: 0; transform: rotate(-5deg) scale(1.4); }
.dryer__seal-word.is-down { opacity: 1; transform: rotate(-5deg); transition: transform 110ms var(--drop), opacity 40ms linear; }

html.book:not(.still) :is(.dryer__chart, .dryer__shot, .dryer__slate, .dryer__title, .dryer__statement, .dryer__switch) { opacity: 0; }
html.book:not(.still) :is(.dryer__chart, .dryer__shot, .dryer__slate, .dryer__title, .dryer__statement, .dryer__switch).is-down { opacity: 1; transition: opacity 60ms linear; }

.dryer__still-seal { display: none; position: absolute; left: 12%; top: 8%; width: 72%; height: 84%; opacity: .92; }
html.no-gl .dryer__still-seal, html.still .dryer__still-seal { display: block; }
html.still .dryer__seal-word, html.no-gl.still .dryer__seal-word { opacity: 1; transform: rotate(-5deg); }

@media (max-width: 759px) {
  .dryer { display: block; padding: 40px 0 64px; }
  .dryer__file { padding: 22px 20px 24px; }
  .dryer__title-line { text-wrap: balance; }
  .dryer__lineup { min-height: 0; height: 150vw; margin: 0 20px; }
  .dryer__chart { inset: 0 0 42px; }
  .dryer__shot { bottom: 42px; height: 42%; width: 62%; left: 19%; }
  .dryer__shot--front { top: 2%; bottom: auto; }
  .dryer__shot--side { bottom: 42px; }
  .dryer__shot figcaption { bottom: auto; top: 0; left: -24%; right: auto; }
  .dryer__slate { bottom: 0; left: 64px; }
  .dryer__seal-word { position: static; text-align: center; margin-top: 18px; opacity: 1; transform: rotate(-3deg); }
  .dryer__seal-word.is-down { transform: rotate(-3deg); }
}

@media (prefers-reduced-motion: reduce) {
  .dryer.is-on .dryer__shot svg { animation: none; }
}


/* chapter: grounds-for-halting */
/* --halt-x is the same column the next leaf's perforation falls on. */
.halt { --halt-x: 78vw; display: flex; flex-direction: column; justify-content: flex-end; padding: 25vh var(--gutter) 13vh; }

.halt__ghost { position: absolute; left: 44%; top: 8vh; width: 46vw; max-width: 720px; height: auto; transform: scaleX(-1); opacity: .15; }
.halt__ghost-word { position: absolute; left: 7%; top: 11vh; font-size: clamp(20px, 3vw, 46px); color: var(--guilloche); opacity: .26; transform: scaleX(-1) rotate(5deg); }

.halt__text { position: relative; z-index: 2; max-width: calc(var(--halt-x) - var(--gutter) - 90px); }
.halt__title { font: 400 clamp(18px, 1.5vw, 24px)/1.3 var(--font-body); margin-bottom: 18px; }
/* The loudest text on the site, set plain and large; the sizes differ so the three never read as a matching row. */
.halt__lines { font: 700 clamp(30px, 4.7vw, 74px)/1.14 var(--font-body); letter-spacing: -.012em; }
.halt__lines li:nth-child(2) { font-size: .78em; margin-top: .5em; font-weight: 400; }
.halt__lines li:nth-child(3) { font-size: .86em; margin-top: .16em; }
.halt__note { max-width: 40ch; margin-top: 22px; font-size: 16px; }

.halt__pencil { min-height: 1.5em; margin-top: 26px; font-size: 13px; color: color-mix(in srgb, var(--wet) 64%, var(--paper)); transform: rotate(-1.4deg); transform-origin: 0 50%; }
.halt__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.halt__pencil i { font-style: normal; display: inline-block; white-space: pre; opacity: 0; transition: opacity 0s linear var(--d, 0ms); }
.halt__pencil.is-written i { opacity: 1; }

/* The stamp is positioned here and turned on the inner element, because .stampable owns the outer transform. */
.halt__stamp { position: absolute; left: var(--halt-x); top: 58vh; margin-left: -66px; width: 132px; z-index: 3; }
.halt__inner { position: relative; transform: rotate(-6deg); padding: 10px 12px; text-align: center; }
.halt__frame { position: absolute; inset: 0; display: block; border: 3px solid var(--dried); }
.halt__frame::after { content: ''; inset: -3px; width: auto; border: 3px solid var(--wet); }
.halt__word { font-size: 26px; line-height: 1; }
.halt__stamp .ink.is-wet::after { transition: none; }
.halt__bleed { position: absolute; left: 12px; right: 12px; top: 10px; font-size: 26px; line-height: 1; color: var(--dried); opacity: 0; filter: url(#ink-edge-large) blur(1.4px); }

.halt__holes { position: absolute; left: var(--halt-x); top: 14vh; height: 72vh; width: 0; z-index: 2; }
.halt__hole { position: absolute; left: -4.5px; width: 9px; height: 9px; border-radius: 50%; background: var(--wet); box-shadow: 0 0 0 1px var(--dried); opacity: 0; }

html:not(.js) .halt__stamp, html.still .halt__stamp { transform: none; opacity: 1; transition: none; }
html.still .halt__pencil i { transition: none; }

@media (max-width: 759px) {
  .halt { padding: 40vh 20px 8vh; }
  .halt__ghost { left: 20%; top: 10vh; width: 72vw; }
  .halt__ghost-word { left: 6%; top: 8vh; }
  .halt__stamp { left: auto; right: 16px; top: 30vh; margin-left: 0; width: 104px; }
  .halt__word, .halt__bleed { font-size: 20px; }
  .halt__text { max-width: none; }
  .halt__lines { font-size: clamp(30px, 9.4vw, 44px); }
  .halt__holes { left: 0; right: 0; top: auto; bottom: 0; height: 0; width: auto; }
  .halt__hole { left: auto; top: -4.5px; }
}


/* chapter: the-stub */
/* The stub is manila card, a different stock from the green leaf it lies on.
   The sheet and the slip are painted on canvas by chapter.js (paper, holes, teeth, lamp shadow); the words on the keep half stay DOM. */
.stub {
  --stock: color-mix(in srgb, var(--foil) 68%, var(--paper));
  --ink: var(--buckram);
  --edge: var(--wet);
  padding: 40px 14px 92px;
}

/* One lamp, high on the upper left. The light it throws across the leaf is the only soft thing here. */
.stub__lamp {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 6% -8%, color-mix(in srgb, var(--foil) 34%, transparent), transparent 66%),
    linear-gradient(150deg, transparent 52%, color-mix(in srgb, var(--wet) 22%, transparent));
}

.stub__ticket { position: relative; z-index: 2; }
.stub__sheet { position: absolute; left: 0; top: 0; z-index: 1; display: none; pointer-events: none; }
html.js .stub__sheet { display: block; }

.stub__keep { position: relative; z-index: 5; color: var(--ink); }
html:not(.js) .stub__keep, html:not(.js) .stub__flap { background: var(--stock); }

/* The carrier band: heavy ink, type reversed out of it. On canvas it runs across the perforation. */
.stub__band {
  position: relative; display: block; padding: 22px 16px 20px; color: var(--stock);
  font-size: clamp(28px, 9.4vw, 44px); line-height: 1.05; letter-spacing: -.01em;
  filter: url(#ink-edge);
}
html:not(.js) .stub__band { background: var(--ink); }

.stub__plan { padding: 0 16px 6px; }
.stub__plan > div { padding: 14px 0 15px; border-top: 1.5px solid var(--ink); }
.stub__plan > div:first-child { border-top: 0; }
.stub__plan dt { color: var(--dried); font-weight: 700; font-size: 17px; line-height: 1.25; margin-bottom: 3px; }
.stub__plan dd { font-size: 19px; line-height: 1.34; }

/* Printed along the perforation like the instruction on a real stub. Filled in only by the visitor's hand. */
.stub__tear {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 56px; padding: 6px 12px;
  background: none; border: 0; color: var(--ink); cursor: pointer;
  font: 400 15px/1 var(--font-stamp); text-transform: uppercase;
  transition: transform 110ms var(--answer);
}
.stub__tear::before {
  content: ''; position: absolute; inset: 6px 4px; border: 1.5px solid var(--ink); opacity: 0;
  transition: opacity 120ms var(--answer);
}
.stub__tear:hover::before, .stub__tear:focus-visible::before { opacity: 1; }
.stub__tear:active { transform: translateY(2px); }
.stub__tear:focus-visible { outline: 2px dashed var(--wet); outline-offset: 1px; }
.stub__tear[aria-disabled="true"] { cursor: default; color: var(--dried); }
.stub__tear[aria-disabled="true"]::before { opacity: 0; }
.stub__tear[aria-disabled="true"]:active { transform: none; }
html:not(.js) .stub__tear { display: none; }

/* The slip. The art is on canvas; these words stay for readers and for no-script. */
.stub__flap { position: relative; z-index: 3; min-height: 214px; transition: transform 140ms var(--answer); }
.stub__slip { padding: 22px 16px; color: var(--ink); }
.stub__name { font-size: 30px; margin-bottom: 10px; }
.stub__seat { font-size: 17px; }
html.js .stub__slip { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.stub__seam { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 4; pointer-events: none; }
.stub__seam i { position: absolute; display: block; }

/* Where a hand takes hold. It sits over the slip and never over the words of the keep half. */
.stub__grab { position: absolute; z-index: 6; cursor: grab; touch-action: pan-y; }
.stub__grab:active { cursor: grabbing; }
.stub.is-torn .stub__grab { display: none; }
.stub__grab:hover ~ .stub__flap { transform: translate(3px, 2px); }
.stub__grab:active ~ .stub__flap { transform: translate(6px, 3px); }
.stub.is-torn .stub__flap { transition: none; }

.stub__flap canvas { position: absolute; display: block; pointer-events: none; }

.stub__dark { position: absolute; inset: 0; z-index: 41; background: var(--wet); opacity: 0; pointer-events: none; }

html.book .stub { padding: 0; }
html.book .stub__ticket { position: absolute; left: 8vw; top: 8vh; width: 89vw; height: 84vh; transform: rotate(-.7deg); transform-origin: 70vw 50%; }
html.book .stub__keep { position: absolute; left: 0; top: 0; width: 70vw; height: 100%; display: flex; flex-direction: column; }
html.book .stub__band { padding: 3.1vh 74px 2.9vh 3.1vw; font-size: clamp(30px, 3.55vw, 72px); white-space: nowrap; }
html.book .stub__plan {
  flex: 1; min-height: 0; padding: 0 74px 2.2vh 3.1vw;
  display: grid; grid-template-columns: minmax(0, 27%) 1fr; grid-auto-rows: 1fr;
}
html.book .stub__plan > div { display: contents; }
html.book .stub__plan dt, html.book .stub__plan dd { display: flex; align-items: center; padding: 0; margin: 0; border-top: 1.5px solid var(--ink); }
html.book .stub__plan > div:first-child dt, html.book .stub__plan > div:first-child dd { border-top: 0; }
html.book .stub__plan dt { font-size: clamp(18px, 1.75vw, 32px); }
html.book .stub__plan dd { font-size: clamp(20px, 2.2vw, 42px); line-height: 1.24; }
html.book .stub__tear { position: absolute; right: 0; top: 0; bottom: 0; margin: auto 0; width: 60px; min-height: 0; height: 248px; padding: 0; }
html.book .stub__tear-word { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
html.book .stub__tear::before { inset: 4px 8px; }
html.book .stub__flap { position: absolute; left: 70vw; top: 0; width: 19vw; height: 100%; min-height: 0; }
html.book .stub__grab { touch-action: none; }

html.still .stub__flap, html.still .stub__tear { transition: none; }
@media (min-width: 760px) {
  html:not(.book) .stub__ticket { max-width: 1040px; margin: 0 auto; }
}


/* chapter: invisible-ink */
/* The same printing twice. The faint copy is the real text; the lit copy is a clone seen only under the lamp. */
.uv {
  /* The one colour not in the palette: the cold glow of an ultraviolet lamp. Used only on this leaf. */
  --uv-light: #1F34C7;
  /* The always-on copy: as dim as it can go and still clear 4.5:1 on Wet Nose. */
  --uv-faint: color-mix(in srgb, var(--guilloche) 66%, var(--wet));
  --uv-pool: color-mix(in srgb, var(--uv-light) 42%, var(--wet));
  background-color: var(--wet);
  background-image: none;
  color: var(--uv-faint);
}

.uv__print {
  position: relative; z-index: 2; height: 100%;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 6vw;
  padding: 9vh var(--gutter) 8vh;
}
html:not(.js) .uv__print { color: var(--paper); }

.uv__head { align-self: start; }
.uv__title { font-size: clamp(34px, min(4.5vw, 8vh), 74px); text-wrap: balance; }
.uv__hint { margin-top: 26px; font-size: 16px; color: var(--paper); }
html:not(.js) .uv__hint, html.still .uv__hint { display: none; }

.uv__list { display: flex; flex-direction: column; justify-content: center; gap: min(4.2vh, 44px); align-self: center; }
.uv__item { max-width: 34em; }
.uv__item:nth-child(2) { margin-left: 13%; }
.uv__item:nth-child(3) { margin-left: 3%; }
.uv__item:nth-child(4) { margin-left: 19%; }

.uv__q {
  display: block; min-height: 44px; padding: 8px 0; width: 100%;
  background: none; border: 0; color: inherit; cursor: pointer; text-align: left;
  font: 700 clamp(19px, min(1.6vw, 3vh), 27px)/1.25 var(--font-body);
}
.uv__q:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.uv__q:active { transform: translateY(2px); }
.uv__q:focus-visible { outline: 2px dashed var(--paper); outline-offset: 4px; }
.uv__a { font-size: clamp(17px, min(1.3vw, 2.5vh), 21px); line-height: 1.45; }

/* The lamp: a soft-edged disc that moves by transform, with the lit print counter-moved inside it. */
.uv__lamp {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
  width: clamp(440px, 47vw, 700px); aspect-ratio: 1; overflow: hidden;
  -webkit-mask-image: radial-gradient(closest-side, var(--wet) 56%, transparent 100%);
  mask-image: radial-gradient(closest-side, var(--wet) 56%, transparent 100%);
}
.uv__lit {
  position: absolute; left: 0; top: 0; color: var(--paper); background-color: var(--uv-pool);
  background-image:
    repeating-radial-gradient(circle at 78% 22%, transparent 0 13px, color-mix(in srgb, var(--guilloche) 26%, transparent) 13px 14px),
    repeating-radial-gradient(circle at 18% 84%, transparent 0 17px, color-mix(in srgb, var(--guilloche) 16%, transparent) 17px 18px);
}
.uv__lit .uv__print { position: absolute; inset: 0; }
.uv__lit .uv__q { cursor: default; }
.uv__lit .uv__a { color: var(--paper); }

.uv__fibres { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 1.1; stroke-linecap: round; max-width: none; }
.uv__fibre--a { stroke: var(--foil); }
.uv__fibre--b { stroke: var(--paper); }
.uv__fibre--c { stroke: var(--guilloche); }

.uv__nose { position: absolute; left: 6%; bottom: 9vh; width: 104px; transform: rotate(-11deg); opacity: .9; }
.uv__nose circle { fill: var(--guilloche); }

/* The whole page lit: reduced motion, or no pointer at all. */
html.still .uv__lamp, .uv--open .uv__lamp {
  width: 100%; height: 100%; aspect-ratio: auto; -webkit-mask-image: none; mask-image: none;
}
html.still .uv__lamp .uv__lit, .uv--open .uv__lamp .uv__lit { background-color: color-mix(in srgb, var(--uv-pool) 62%, var(--wet)); }

.uv__warm {
  position: absolute; inset: 0; z-index: 8; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 96% 78% at 14% -8%, color-mix(in srgb, var(--foil) 70%, var(--paper)) 0%, color-mix(in srgb, var(--foil) 34%, transparent) 46%, transparent 80%);
}

.uv__no { color: var(--uv-faint); z-index: 9; }

/* The band: phones and touch screens. A strip of lamp the finger never has to cover. */
.uv--band .uv__lamp {
  width: 100%; aspect-ratio: auto; height: 44vh; height: 44svh;
  -webkit-mask-image: linear-gradient(transparent, var(--wet) 24%, var(--wet) 76%, transparent);
  mask-image: linear-gradient(transparent, var(--wet) 24%, var(--wet) 76%, transparent);
}

@media (max-width: 759px) {
  .uv__print { display: block; padding: 64px 20px 170px; height: auto; }
  .uv__title { font-size: clamp(32px, 9.4vw, 44px); }
  .uv__hint { margin-bottom: 8px; }
  .uv__list { display: block; margin-top: 44px; }
  .uv__item, .uv__item:nth-child(n) { margin: 0 0 34px; }
  .uv__q { font-size: 20px; }
  .uv__a { font-size: 17px; }
  .uv__nose { left: 20px; bottom: 48px; width: 86px; }
}


/* chapter: the-holder-page */
.holder { color: var(--wet); }
.holder__sheet {
  position: absolute; inset: 0; transform-origin: 0 0;
  display: grid; grid-template-columns: minmax(250px, 23vw) minmax(0, 1fr) minmax(190px, 23vw); grid-template-rows: minmax(0, 1fr) auto;
  column-gap: 3.2vw; padding: 7vh var(--gutter) 4vh;
}

/* A rosette printed through the data area, as on every real data page. */
.holder__sheet::before {
  content: ''; position: absolute; left: 34%; top: 8vh; width: 62vh; aspect-ratio: 1; border-radius: 50%; pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(color-mix(in srgb, var(--guilloche) 60%, transparent) 0 1deg, transparent 1deg 5deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent 24%, var(--wet) 28%, var(--wet) 96%, transparent);
  mask-image: radial-gradient(closest-side, transparent 24%, var(--wet) 28%, var(--wet) 96%, transparent);
}

.holder__portrait { position: relative; grid-column: 1; grid-row: 1; align-self: center; aspect-ratio: 360 / 460; max-height: 74vh; border: 2px solid var(--wet); background: var(--paper); }
.holder__art { width: 100%; height: 100%; }
.holder__art line { stroke: var(--wet); stroke-width: 1; }
.holder__art path, .holder__art rect, .holder__art circle { fill: none; stroke: var(--wet); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.holder__art .ho-fill-paper { fill: var(--paper); stroke: none; }
.holder__art .ho-fill-a { fill: url(#ho-a); stroke: none; }
.holder__art .ho-fill-b { fill: url(#ho-b); stroke: none; }
.holder__art .ho-fill-c { fill: url(#ho-c); stroke: none; }
.holder__art .ho-thin { opacity: .34; }
.holder__art-sign { font: 400 24px var(--font-stamp); fill: var(--wet); }

/* The foil strip across the portrait. The sheen turns, the colours stay in the foil family. */
.holder__foil { position: absolute; left: -14px; right: -14px; bottom: 11%; height: 9%; overflow: hidden; background: var(--foil); }
.holder__sheen {
  position: absolute; left: 50%; top: 50%; width: 220%; aspect-ratio: 1; margin-left: -110%; margin-top: -110%;
  background: repeating-conic-gradient(from 0deg, var(--foil) 0 16deg, color-mix(in srgb, var(--foil) 40%, var(--paper)) 40deg, color-mix(in srgb, var(--foil) 72%, var(--wet)) 68deg, var(--foil) 90deg);
}

.holder__data { grid-column: 2; grid-row: 1; align-self: center; position: relative; }
.holder .ink::after { content: attr(data-ink) / ""; }

/* A real field: the printed label beside it, the value alone in the heading. */
.holder__name { display: flex; align-items: baseline; gap: 16px; width: fit-content; max-width: 100%; }
.holder__role { font-size: clamp(14px, 1vw, 16px); }
.holder__who { font-weight: 400; font-size: clamp(24px, min(3.9vw, 8.4vh), 66px); white-space: nowrap; }
/* The reveal is printed in the page under the name, a line of its own that nothing lies across. */
.holder__reveal { margin: min(2.2vh, 20px) 0 min(4.4vh, 40px); max-width: 56ch; font-size: clamp(16px, min(1.32vw, 2.5vh), 21px); line-height: 1.34; }
.holder__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: min(3.4vh, 30px) 2.6vw; }
.holder__field--wide { grid-column: 1 / -1; }
.holder__field dt { font-size: clamp(13px, .95vw, 15px); margin-bottom: 4px; }
.holder__val { font-size: clamp(17px, min(1.7vw, 3.1vh), 28px); }

.holder__ghost { position: relative; grid-column: 3; grid-row: 1; align-self: end; margin: 0 0 3vh; aspect-ratio: 1; max-height: 52vh; }
.holder__ghost img, .holder__ghost canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The photograph is only ever a source for the engraving. Without a script it is at least reduced to one ink. */
.holder__ghost img { filter: grayscale(1) contrast(1.8); mix-blend-mode: multiply; opacity: .55; }
html.js .holder__ghost img { opacity: 0; }
html.js .holder__ghost.is-raw img { opacity: .55; }
.holder__spec {
  position: absolute; left: 44%; top: 79%; transform: translate(-50%, -50%) rotate(-24deg);
  font: 400 clamp(19px, 2.1vw, 32px)/1 var(--font-stamp); color: var(--dried); white-space: nowrap;
}

.holder__mrz {
  grid-column: 1 / -1; grid-row: 2; margin-top: 3vh; padding: 1.4vh 0;
  font: 400 min(2.9vw, 40px)/1.38 var(--font-ocr); background: var(--paper); position: relative;
}
.holder__mrz-line { display: block; white-space: pre; overflow-x: auto; scrollbar-width: none; }
.holder__mrz:focus-visible { outline: 2px dashed var(--wet); outline-offset: -2px; }
.holder__mrz i { font-style: normal; }

@media (max-width: 1100px) {
  .holder__sheet { grid-template-columns: minmax(200px, 24vw) minmax(0, 1fr) minmax(150px, 18vw); }
  .holder__who { font-size: clamp(24px, min(3.2vw, 8.4vh), 42px); }
}

@media (max-width: 759px) {
  .holder { padding-bottom: 72px; }
  .holder__sheet { position: static; display: block; padding: 44px 20px 0; }
  .holder__sheet::before { left: -24vw; top: 180px; width: 120vw; }
  .holder__portrait { width: min(70vw, 280px); margin: 0 auto 30px; }
  .holder__name { flex-wrap: wrap; gap: 4px 12px; }
  .holder__who { font-size: clamp(27px, 9.4vw, 44px); }
  .holder__reveal { margin: 16px 0 28px; font-size: 19px; }
  .holder__fields { gap: 22px 16px; }
  .holder__val { font-size: 21px; }
  .holder__ghost { width: 68vw; margin: 30px auto 6px; }
  .holder__spec { font-size: 22px; }
  .holder__mrz { margin-top: 26px; padding: 10px 0; font-size: 17px; line-height: 1.5; }
}

@media print { .holder__sheet { position: static; } }


/* chapter: the-application */
/* The last leaf of the book: a printed government form, then the back cover closing over it. */
[data-chapter="the-application"] { overflow-x: clip; }
.appl {
  --margin: 60px;
  color: var(--wet);
  padding: clamp(40px, 7vh, 84px) clamp(112px, 9vw, 150px) 84px clamp(92px, 8vw, 128px);
}

/* While the cover swings the form holds still under it; the script sets how far it stops. */
html.js:not(.still) .leaf--flow .page.appl { position: sticky; }

.appl .ink::after { content: attr(data-ink) / ""; }

/* Leaves that are closed behind this one must not take clicks meant for the form; the cover's heading otherwise does. */
html.book .leaf.is-off .page, html.book .leaf.is-off .page * { pointer-events: none !important; }

.appl__head { margin-left: var(--margin); max-width: 880px; padding-bottom: clamp(22px, 4vh, 40px); }
.appl__title { font-size: clamp(32px, 4.3vw, 66px); }
.appl__title .ink { line-height: 1.06; white-space: nowrap; }
.appl__title .ink + .ink { transition-delay: 90ms; }
.appl__intro { margin-top: 16px; font-size: clamp(17px, 1.35vw, 21px); max-width: 44ch; }

/* The numbers sit outside a printed rule running the height of the form, as on a real one. */
.appl__form { position: relative; max-width: 1140px; }
.appl__form::before { content: ''; position: absolute; left: calc(var(--margin) - 14px); top: 0; bottom: 0; width: 1.5px; background: var(--wet); }

.appl__row {
  display: grid; grid-template-columns: var(--margin) minmax(150px, 26%) minmax(0, 1fr);
  align-items: baseline; padding: 11px 0 3px;
}
.appl__num { grid-column: 1; font-weight: 700; font-size: clamp(16px, 1.2vw, 19px); font-variant-numeric: tabular-nums; }
.appl__label { grid-column: 2; font-weight: 700; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.3; padding-right: 24px; }
.appl__slot { grid-column: 3; min-width: 0; }

/* Typed answers sit on a printed rule. Pressing darkens the rule, it never moves the line. */
.appl__rule { position: relative; display: block; }
.appl__rule::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--wet); transform: scaleY(1); transform-origin: 0 100%; transition: transform 120ms var(--answer); pointer-events: none; }
.appl__rule:hover::after, .appl__rule:focus-within::after { transform: scaleY(2); }
.appl input[type=text], .appl input[type=tel], .appl input[type=email] {
  display: block; width: 100%; height: 48px; padding: 20px 4px 0; background: transparent; border: 0; border-radius: 0; appearance: none;
  font: 400 clamp(18px, 1.5vw, 22px)/1.2 var(--font-ocr); caret-color: var(--wet); color: var(--wet);
}
.appl input:-webkit-autofill { -webkit-text-fill-color: var(--wet); box-shadow: inset 0 0 0 48px var(--paper); }
.appl input::placeholder { color: color-mix(in srgb, var(--wet) 52%, var(--paper)); opacity: 1; }
.appl input:focus-visible, .appl textarea:focus-visible { outline-offset: 2px; }
.appl__rule:has([aria-invalid="true"])::after { background: var(--dried); transform: scaleY(2); }

.appl__lines {
  display: block; width: 100%; height: 111px; padding: 0 4px; border: 0; border-radius: 0; resize: none; appearance: none;
  font: 400 clamp(18px, 1.5vw, 22px)/37px var(--font-ocr); caret-color: var(--wet); color: var(--wet);
  background: repeating-linear-gradient(to bottom, transparent 0 30px, var(--wet) 30px 31.5px, transparent 31.5px 37px) local;
}
.appl__lines:hover, .appl__lines:focus { background: repeating-linear-gradient(to bottom, transparent 0 30px, var(--wet) 30px 33px, transparent 33px 37px) local; }

.appl__err, .appl__help, .appl__typed { font-size: clamp(15px, 1.05vw, 17px); line-height: 1.35; padding-top: 3px; }
.appl__err { min-height: 1.75em; color: var(--dried); }
.appl__help { min-height: 1.75em; }
.appl__typed { font-family: var(--font-ocr); min-height: 1.75em; }
.appl__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.appl__accepted { position: absolute; right: 6px; bottom: 9px; font: 400 14px/20px var(--font-stamp); text-transform: uppercase; transform: rotate(-5deg) scale(1.5); opacity: 0; pointer-events: none; }
.appl__accepted.is-down { transform: rotate(-5deg); opacity: 1; transition: transform 110ms var(--drop), opacity 40ms linear; }

/* Printed tick boxes. The whole label is the target, never less than 44px tall. */
.appl__ticks { display: flex; flex-wrap: wrap; gap: 0 30px; padding-bottom: 8px; }
.appl__ticks--days { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 0 14px; }
.appl__ticks--times { margin-top: 2px; }
.appl__tick { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: clamp(16px, 1.15vw, 18px); }
.appl__tick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.appl__box { position: relative; display: block; width: 26px; height: 26px; flex: none; border: 1.5px solid var(--wet); background: var(--paper); transition: transform 90ms var(--answer); }
.appl__box i { position: absolute; inset: 0; font: 400 24px/23px var(--font-ocr); font-style: normal; text-align: center; color: var(--wet); opacity: 0; transform: scale(1.5); }
.appl__tick input:checked ~ .appl__box i { opacity: 1; transform: none; transition: transform 90ms var(--drop), opacity 30ms linear; }
.appl__tick:hover .appl__box { border-width: 2.5px; }
.appl__tick input:active ~ .appl__box { transform: translateY(2px); }
.appl__tick input:focus-visible ~ .appl__box { outline: 2px dashed var(--wet); outline-offset: 3px; }

/* The bottom of the form: pad, button, and the box the nose lands in. */
.appl__desk {
  display: grid; grid-template-columns: clamp(170px, 18vw, 244px) minmax(0, 1fr) clamp(140px, 13vw, 180px);
  gap: 0 clamp(20px, 2.6vw, 40px); align-items: start;
  margin: 18px 0 0 var(--margin); padding-top: 22px;
  border-top: 3px double var(--wet);
}
.appl__pad { width: 100%; height: auto; }
.pad-cast { fill: color-mix(in srgb, var(--wet) 30%, transparent); }
.pad-lid { fill: var(--buckram); }
.pad-cloth { stroke: color-mix(in srgb, var(--paper) 14%, transparent); stroke-width: .7; }
.pad-rim { fill: none; stroke: var(--foil); stroke-width: 1.5; }
.pad-word { font: 400 21px var(--font-stamp); fill: var(--foil); }
.pad-hinge { fill: var(--foil); stroke: var(--wet); stroke-width: 1; }
.pad-tin { fill: var(--foil); }
.pad-tin-line { stroke: color-mix(in srgb, var(--wet) 16%, transparent); stroke-width: 1; }
.pad-edge { fill: none; stroke: var(--wet); stroke-width: 1.5; }
.pad-recess { fill: color-mix(in srgb, var(--wet) 70%, var(--foil)); stroke: var(--wet); stroke-width: 1; }
.pad-wet { fill: var(--wet); }
.pad-nap { stroke: color-mix(in srgb, var(--guilloche) 34%, transparent); stroke-width: 1; }
.pad-crust { fill: none; stroke: var(--dried); stroke-width: 4; stroke-dasharray: 26 5 9 7 44 4 16 9; stroke-linecap: round; }
.pad-gleam { fill: var(--paper); opacity: .5; transition: opacity 160ms var(--answer); }
.appl__desk:has(.appl__send:hover) .pad-gleam { opacity: .9; }
.pad-press { fill: color-mix(in srgb, var(--wet) 70%, var(--guilloche)); opacity: .7; }
.pad-tab { fill: var(--foil); stroke: var(--wet); stroke-width: 1; }
.pad-spot { fill: var(--wet); }

.appl__act { min-width: 0; }
.appl__send {
  position: relative; display: block; width: 100%; max-width: 440px; min-height: 66px; padding: 14px 30px;
  background: var(--dried); color: var(--paper); border: 0; cursor: pointer; text-align: left;
  font: 400 clamp(14px, 1.2vw, 18px)/1.3 var(--font-stamp);
  box-shadow: 4px 5px 0 color-mix(in srgb, var(--wet) 30%, transparent);
  transition: transform 90ms var(--answer);
}
.appl__send::before { content: ''; position: absolute; inset: 5px; border: 1.5px solid var(--paper); opacity: .5; pointer-events: none; transition: opacity 120ms var(--answer); }
.appl__send:hover { transform: translateY(-1px); }
.appl__send:hover::before { opacity: 1; }
.appl__send:active { transform: translate(2px, 2px); box-shadow: 2px 3px 0 color-mix(in srgb, var(--wet) 30%, transparent); }
.appl__send:focus-visible { outline-offset: 4px; }
.appl__send[disabled] { cursor: progress; }
.appl__send[disabled]::before { opacity: 0; }
.appl__send.is-done { cursor: default; }
.appl__status { min-height: 5.6em; padding-top: 14px; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.4; max-width: 46ch; }
.appl__status.is-not { color: var(--dried); }

/* The box for the nose. Empty until something has really arrived. */
.appl__seal { position: relative; aspect-ratio: 1; border: 1.5px dashed var(--wet); }
.appl__seal-label { position: absolute; left: 8px; top: 6px; font-size: 12.5px; line-height: 1.2; }
.appl__print { position: absolute; inset: 14% 8% 2%; opacity: 0; transform: rotate(-8deg) scale(1.5); }
.appl__print.is-down { opacity: 1; transform: rotate(-8deg); transition: transform 110ms var(--drop), opacity 40ms linear; }
.appl__print-still { display: none; width: 100%; height: 100%; }
.appl__print-still circle { fill: var(--dried); }
.appl__print.is-flat .appl__print-still { display: block; }

/* The back cover. In normal flow by default, so it is simply the last page without scripts. */
.back { position: relative; z-index: 1; color: var(--foil); }
.back__cover {
  position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto auto 1fr; gap: 0 6vw;
  min-height: 100svh; padding: 11vh clamp(112px, 9vw, 150px) 8vh clamp(92px, 8vw, 128px);
  background-color: var(--buckram);
  background-image:
    linear-gradient(90deg, color-mix(in srgb, var(--wet) 58%, transparent), transparent 74px),
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--wet) 22%, transparent) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--paper) 7%, transparent) 0 1px, transparent 1px 3px);
}
/* The cover's only change of tone: it is darker while it faces away from the desk lamp. */
.back__cover::after { content: ''; position: absolute; inset: 0; background: var(--wet); opacity: var(--shade, 0); pointer-events: none; }
.back__cover > * { position: relative; z-index: 1; }
.back__crest { grid-column: 1; width: clamp(92px, 10vw, 150px); margin-bottom: 5vh; }
.back__crest path { fill: var(--foil); stroke: var(--buckram); }
.back__found { grid-column: 1; font: 400 clamp(30px, 4.4vw, 70px)/1.08 var(--font-stamp); max-width: 16ch; text-wrap: balance; }
.back__reviews { grid-column: 1; margin-top: 4vh; font-size: clamp(18px, 1.4vw, 22px); max-width: 36ch; }
.back__made { grid-column: 1; margin-top: 2.4vh; font-size: clamp(14px, .98vw, 16px); line-height: 1.5; max-width: 44ch; color: color-mix(in srgb, var(--foil) 72%, var(--paper)); }
.back__colophon { grid-column: 2; grid-row: 1 / span 4; align-self: end; font-size: clamp(14px, .98vw, 16px); line-height: 1.55; color: color-mix(in srgb, var(--foil) 72%, var(--paper)); max-width: 46ch; }
.back__colophon p + p { margin-top: 1em; }

/* With motion, the cover hangs off the spine, out of frame, and swings shut over the held form. */
html.js:not(.still) .back:not(.back--flat) { z-index: 30; margin-top: -100svh; height: calc(100svh + 160vh); pointer-events: none; }
html.js:not(.still) .back:not(.back--flat) .back__stage { position: sticky; top: 0; height: 100svh; overflow: clip; perspective: 320vw; perspective-origin: 50% 42%; }
html.js:not(.still) .back:not(.back--flat) .back__cover { position: absolute; inset: 0; min-height: 0; overflow: hidden; transform-origin: 0 50%; transform: rotateY(-104deg); backface-visibility: hidden; pointer-events: auto; }

@media (max-width: 759px) {
  .appl { --margin: 34px; padding: 40px 18px 72px; }
  .appl__head { padding-bottom: 28px; }
  .appl__title { font-size: clamp(30px, 10.4vw, 46px); }
  .appl__row { grid-template-columns: var(--margin) minmax(0, 1fr); padding: 10px 0 6px; }
  .appl__label { grid-column: 2; padding-right: 0; }
  .appl__slot { grid-column: 2; margin-top: 2px; }
  .appl input[type=text], .appl input[type=tel], .appl input[type=email] { height: 48px; font-size: 19px; }
  .appl__lines { font-size: 19px; }
  .appl__ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
  .appl__ticks--days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .appl__tick { min-height: 48px; font-size: 16px; }
  .appl__desk { grid-template-columns: minmax(0, 1fr) minmax(0, 104px); gap: 16px 14px; margin-left: 0; }
  .appl__pad { grid-column: 1; grid-row: 1; align-self: center; }
  .appl__seal { grid-column: 2; grid-row: 1; align-self: center; }
  .appl__act { grid-column: 1 / -1; }
  .appl__send { max-width: none; min-height: 62px; font-size: 16px; }
  .appl__status { min-height: 8.5em; }
  .back__cover { display: block; padding: clamp(40px, 7svh, 72px) 20px 78px 28px; }
  .back__crest { width: 68px; margin-bottom: 22px; }
  .back__found { font-size: clamp(28px, 8.4vw, 38px); }
  .back__reviews { margin-top: 18px; font-size: 16.5px; line-height: 1.4; }
  .back__made { margin-top: 14px; font-size: 14px; line-height: 1.45; }
  .back__colophon { margin-top: 24px; font-size: 13px; line-height: 1.45; }
}

@media print {
  .appl { padding: 0; }
  .appl__pad, .appl__send, .appl__status, .back { display: none; }
}


/* Portrait tablets in book mode: the feed narrows and moves to the edge so the file keeps a readable column. */
@media (min-width: 760px) and (max-aspect-ratio: 4/5) {
  html.book .officers { --ph: 44vw; }
  html.book .officers__feed { left: calc(100vw - var(--pw) - 56px); }
  html.book .officers__file { width: calc(100vw - var(--pw) - 116px); grid-template-columns: minmax(0, 1fr); align-content: start; }
  html.book .officers__title { font-size: min(6vw, 12vh); }
}

/* Landscape phones (wide but short, so no book mode): the cover copy is set smaller to fit one screen. */
@media (min-width: 760px) and (max-height: 559px) {
  .cover__copy { right: 48px; }
  .cover__h1 { font-size: min(calc(var(--cover-avail) / 8.4), 8vh); }
  .cover__says { margin-top: 10px; font-size: 14.5px; line-height: 1.38; }
  .cover__cta { min-height: 40px; margin-top: 12px; padding: 9px 16px; font-size: 13px; }
  /* The leaves laid out on one screen get a taller sheet, so their labels and text do not collide. */
  html:not(.book) .nose { height: 680px; }
  html:not(.book) .nose__col { bottom: 90px; }
  /* no loupe outside book mode: the small print is printed at reading size, as on the still page */
  html:not(.book) .nose__micro { font-size: 14px; line-height: 1.5; width: 100%; max-width: 340px; }
  html:not(.book) .nose__label { display: none; }
  html:not(.book) .nose__bench { left: 46%; width: 300px; margin-left: -150px; }
  html:not(.book) .wet { min-height: 600px; }
  html:not(.book) .wet__title { font-size: min(7vw, 15vh); margin-bottom: 44px; }
}

/* Short phones: a smaller book, so the plain line about the shop starts on the first screen. */
@media (max-width: 759px) and (max-height: 700px) {
  .cover { --bw: min(calc(100vw - 80px), calc(30svh * .71)); }
  .cover__says { font-size: 16px; line-height: 1.4; }
}
```

## 6. Boot script

Create `js/boot.js` exactly as below. It is loaded without `defer` in the `<head>`, so the mode classes are set before the first paint: `js` always, `book` on windows at least 760 pixels wide and 560 pixels tall when motion is allowed (so landscape phones get the scrolling page), `still` when the visitor prefers reduced motion. The mode is chosen once, when the page loads.

```js
/* Runs in the head before first paint: sets the page mode classes on <html>. */
(function (d) {
  var reduce = matchMedia('(prefers-reduced-motion: reduce)').matches;
  // Book mode needs room for a whole leaf: landscape phones get the scrolling page.
  var wide = matchMedia('(min-width: 760px) and (min-height: 560px)').matches;
  d.classList.add('js');
  if (!reduce && wide) d.classList.add('book');
  if (reduce) d.classList.add('still');
})(document.documentElement);
```

## 7. What the supporting code does

You do not write these files, but you need to know what they do to check the result. All of them run after the markup is parsed (`defer`).

- `js/book.js` defines `window.Book` and `Book.gl`. It finds every `[data-chapter]` leaf, numbers each `.page__no` as "Leaf n", builds the tab edges in `.edges`, starts Lenis (lerp .1) in book mode, runs one frame loop that gives each leaf its progress `p` (0 to 1 over its `data-len` screens), marks the current leaf, turns links to `#leaf-id` into page turns, turns the book with the Left and Right arrow keys, stamps words with wet ink that dries to vermilion (`Book.stamp`), turns pages on the spine (`Book.turn`, up to 94 degrees with a shade), and keeps one shared WebGL2 canvas that moves into whichever leaf needs a full-screen shader. On phones the same handlers run on normal scrolling.
- `the-cover.js`: the closed book on the desk tilts toward the pointer; scrolling swings the lid open on the spine, the lamp and shadow move with it, and the view drops into the first leaf. The red ribbon sways and is pulled into the book.
- `the-rule.js`: "Nothing touches the dog until the dog has smelled it." is stamped one word at a time, each line fitted to the page width, over a guilloche rosette; then the leaf turns.
- `officers-on-duty.js`: five dog photographs become one-colour engraved line screens on the security paper, fed past on a roller strip as you scroll, each stamped SPECIMEN.
- `the-nose-exam.js`: a WebGL dog's nose (leathery plates, wet sheen, nostrils that flare). "Hold to sniff": a short press is three quick sniffs, a long press one slow deep one. A loupe magnifies the small print as you move it.
- `arrivals-card.js`: the arrivals card for the grooming table and loop, typed in worn-ribbon letters, with a nose print landing on it.
- `the-wet-page.js`: the page soaks, puckers and dries; the heading's ink runs down in drips to a tide line and a lower corner folds; "Page damaged in transit" then "Dried and re-examined".
- `the-queue.js`: shears, clippers, nail clippers, brush and comb stand in a queue and shuffle up one place at a time to a window as you scroll; each card says "Now being smelled" in turn; scrolling back turns them round. Arrow keys step through the queue.
- `the-dryer.js`: the dryer drawn front and profile against a height chart; "Switch it on" runs it; a nose print is pressed across the page in two halves and stamped "Cleared by nose".
- `grounds-for-halting.js`: "The officer has frozen." with a HALT stamp that punches a row of real holes through the paper; waiting without scrolling shows a small note.
- `the-stub.js`: the itinerary ticket on manila card; its stub with the shop name tears off hole by hole along the perforation as you scroll.
- `invisible-ink.js`: a dark page "Printed where only you will look"; a desk lamp (move it with the pointer, or it reads the page by itself) lights the questions one at a time.
- `the-holder-page.js`: the passport holder page: the shopfront engraving, the fields stamped in the clerk's order, the dog in profile as a coarse line screen, and the OCR strip typed one character at a time as you scroll. In book mode the camera then pushes in on the name until the name and the sentence under it fill the frame, never so far that the sentence runs off the page.
- `the-application.js`: the application form: required officer's name and a phone or email (errors "Every officer needs a name, even a new one." and "We need a phone number or an email to reply to."), "Unknown is an accepted answer" stamp, a nose-print stamp pad, sending to `data-endpoint` (empty, so it says "This form is not connected yet, so nothing has been sent. Your answers are still on the page."), and the back cover swinging shut over the form at the end of the book.

## 8. Interactions to confirm by hand

1. Desktop at 1440 x 900: the closed navy book "Sniffwell, Dog grooming. Austin, Texas." on an oxblood desk with "Every tool in this shop must clear your dog's nose.", the plain line "Sniffwell is a dog groomer in Austin, Texas, for nervous and rescue dogs. ..." and the gold-outlined "Ask for an appointment" link under it. Move the pointer: the book tilts. Scroll: the lid opens and the first leaf fills the screen. "Ask for an appointment" turns the book to the application.
2. The rule stamps word by word in red; every following leaf turns on the spine as you scroll; the tab edges on the right show the current leaf; Left and Right arrows turn leaves.
3. The specimen dog portraits appear as engraved prints.
4. Press and hold "Hold to sniff": the nose flares. Hold the loupe over the small print.
5. The wet page soaks and dries with running ink; the queue shuffles to the window; the dryer is cleared by a red nose print; the stub tears off; the lamp lights the invisible questions; the holder page types its strip.
6. Submit the application empty to see the errors, then fill in a name and email and submit to see the "not connected" message.
7. Phone at 390 x 844: the same content as a single scrolling page, no book turning, no horizontal overflow; the first screen shows a smaller book, the headline, the plain line and the start of the button. Landscape phone at 844 x 390: the scrolling page too, with the cover copy set smaller so it fits the screen.

## 9. Verify, then show the result

Serve the folder (section 1) and open it. Check desktop near 1440 x 900, a portrait tablet near 768 x 1024, phone widths near 390 and 320 and a landscape phone near 844 x 390: no horizontal overflow, no missing files, no console errors, no request to another domain. With a browser tool, check the interactions in section 8 with motion allowed (if your browser reports reduced motion, the page shows the still layout, which is intended). If WebGL2 is unavailable where you test, say so.

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/paws/preview/.
