@charset "utf-8";

/* ==========================================================================
   Typefaces

   Beausite Classic throughout (Fred, 20 Nov 2026: one face, for legibility;
   Rhymes Text, the brand document's serif, was taken out).

   BEAUSITE IS LICENSED. These are Fatype's own WOFF2 files, copied in byte for
   byte: the licence forbids modification, so they are NOT subset, which is why
   Clear is 73KB rather than the 9KB the trial cut was. The full 1030-glyph set
   is the point — the trial had 155 and no ampersand, so every "Storage &
   Handling" on the site was quietly falling back to Helvetica for that one
   character.

   Two conditions come with it, and neither is satisfied yet:
     - the site has to be registered at fatype.com/user/licenses, per domain;
     - Fatype require their htaccess referrer-guard beside the font files, and
       say in the policy that failing to install it terminates the agreement.
       GitHub Pages cannot run htaccess at all. See README, "Fonts".

   ========================================================================== */

@font-face {
  font-family: "Beausite Classic";
  src: url("../fonts/BeausiteClassicWeb-Clear.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Medium: the emphasis — words Fred marks **like this** in the editor, the
   subheadings and the opening words of a list item. */
@font-face {
  font-family: "Beausite Classic";
  src: url("../fonts/BeausiteClassicWeb-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* ==========================================================================
   Storehouse Fine Arts
   Built from the Storehouse Brand Identity (2025) by Dougal.

   Principles carried into code:
   Clarity    — nothing on the page that is not doing work.
   Structure  — one grid, one scale, one rule weight.
   Stillness  — motion is slow, optional, and never decorative.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Palette — taken directly from the brand document, page 10. */
  --ultramarine: #0f1b70;
  --charcoal:    #1f1f1f;
  --slate:       #9a9a9a;
  --canvas:      #fdfdfd;
  --paper:       #f4f4f4;

  /* The page sits on the brand blue, and the ink is the paper colour. Every
     rule below is written against --ground / --ink rather than against a fixed
     colour, so a section can invert simply by redeclaring these six lines.
     .on-paper does exactly that. */
  --ground:      var(--ultramarine);
  --ink:         var(--canvas);
  --ink-muted:        color-mix(in srgb, var(--canvas) 62%, var(--ultramarine));
  --ink-strong-muted: color-mix(in srgb, var(--canvas) 84%, var(--ultramarine));
  --accent:      var(--canvas);          /* the hover / active colour */
  --rule:        rgba(253, 253, 253, 0.2);
  --rule-strong: rgba(253, 253, 253, 0.48);
  --plate-bg:    color-mix(in srgb, var(--canvas) 10%, var(--ultramarine));

  /* Typography — the brand faces, with a close fallback while they load and
     for the handful of characters the trial cut is missing. */
  --sans:  "Beausite Classic", "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* One face for everything since Fred's 20 Nov round: he found the sans
     clearer to read than the serif (Rhymes), which is gone. --serif is kept
     as a name so the rules that used it needn't change. */
  --serif: var(--sans);
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* A single modular scale, fluid between 380px and 1600px. */
  --t-display: clamp(2.6rem, 1.4rem + 5.2vw, 6rem);
  --t-title:   clamp(1.75rem, 1.2rem + 2.4vw, 3.1rem);
  --t-lead:    clamp(1.15rem, 1.02rem + 0.55vw, 1.5rem);
  --t-body:    clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --t-small:   0.875rem;
  --t-label:   0.6875rem;

  /* Spacing — an 8px base, named by role rather than size. */
  --gutter:  clamp(1.25rem, 0.6rem + 2.6vw, 3.5rem);
  --measure: 34em;
  --band:    clamp(3.25rem, 1.6rem + 4.6vw, 6rem);   /* between major sections */
  --stack:   clamp(1.5rem, 0.9rem + 1.5vw, 2.25rem); /* within a section       */

  /* Set from the real masthead height on load, so the first screen ends
     exactly at the fold on any viewport. */
  --masthead-h: 5.5rem;
  --footer-h: 16rem;

  --shell: 88rem;  /* maximum line of the page */

  color-scheme: dark;
}

/* The inverse ground: paper, with the blue as ink. Used by the panels, the
   footer, the mobile menu and the map dialog — anything that was blue before
   the palette was turned over. */
.on-paper, .panel, .footer, .menu {
  --ground:      var(--canvas);
  --ink:         var(--charcoal);
  --ink-muted:        #6b6b6b;
  /* Charcoal lifted toward slate: darker than --ink-muted, same family. */
  --ink-strong-muted: #4a4a4a;
  --accent:      var(--ultramarine);
  --rule:        rgba(31, 31, 31, 0.16);
  --rule-strong: rgba(31, 31, 31, 0.4);
  --plate-bg:    var(--paper);
  background: var(--ground);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--masthead-h);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--t-body);
  /* Beausite Clear. Medium (500) is the emphasis. */
  font-weight: 400;
  letter-spacing: -0.006em;
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: -0.021em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--ink); color: var(--ground); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 1px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: 0; left: 0; z-index: 100;
  background: var(--ink); color: var(--ground);
  font: 400 var(--t-small)/1 var(--sans);
  text-decoration: none;
  /* Clipped where it stands rather than moved above the page. Safari paints
     the area above the document origin during a rubber-band scroll, so a link
     parked up there appeared every time anyone over-scrolled at the top. */
  width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
  width: auto; height: auto;
  padding: 0.75rem 1.25rem;
  overflow: visible; clip-path: none;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

/* The marginalia grid: a short label in the left margin, content on the right.
   This is the layout system from the brand document, page 11. */
.marginalia {
  display: grid;
  gap: 0.75rem var(--gutter);
  grid-template-columns: 1fr;
}

@media (min-width: 56rem) {
  .marginalia {
    grid-template-columns: minmax(9rem, 1fr) minmax(0, 3fr);
    gap: 0 var(--gutter);
  }
}

.marginalia > .aside { grid-column: 1; }
.marginalia > .main  { grid-column: 1; }

@media (min-width: 56rem) {
  .marginalia > .main { grid-column: 2; }
}

.band { padding-block: var(--band); }
.band + .band { padding-top: 0; }

/* A hairline above an entry, drawn inside the shell so it aligns with the text. */

/* --------------------------------------------------------------------------
   4. The ledger — index numbers, labels and captions
   -------------------------------------------------------------------------- */

.ledger {
  font-family: var(--mono);
  font-size: var(--t-label);
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

/* Words in the margin — Overview, Enquiries, the footer's headings — are set in
   the navigation's sans, in capitals, a size up from the numbers. The mono is
   kept for numbering only. */
.label,
.section-head h2,
.footer h3 {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.5;
}


/* The title in the margin — the brand document's own page structure. */
.marginalia > .aside .ledger { display: block; margin-bottom: 0.6rem; }
.marginalia > .aside h2 {
  font-size: var(--t-body);
  letter-spacing: -0.016em;
  margin: 0 0 1.25rem;
}
@media (min-width: 56rem) {
  .marginalia > .aside h2 { margin-bottom: 0; }
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--rule);
  margin-bottom: var(--stack);
}
/* Room between the lines when a long heading wraps on a phone. */
.section-head h2 { line-height: 1.7; }

figcaption {
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 30em;
}

/* --------------------------------------------------------------------------
   5. Masthead
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  /* Nothing at all at the top of a page: an 88% ultramarine bar plus a
     saturating backdrop reads as a slightly different blue against the plain
     ultramarine behind it, which is exactly what you do not want the first
     thing on the page to be. The border is declared transparent rather than
     added later so the 1px is always in the box and the masthead never
     changes height. */
  background: transparent;
  /* Two things keep the bar from flashing as the page starts to move.
     
     It used to be saturate(150%) blur(14px), and backdrop-filter was not in the
     transition list, so the filter landed whole on the first frame while the
     88% ultramarine was still fading in behind it: for a moment you saw the
     saturation boost with nothing damping it, and the bar went bright blue
     before settling. Measured, it jumped from rgb(15,27,112) to rgb(13,26,122)
     and eased back to rgb(14,27,117).
     
     So the filter is in the transition now, and it starts from an identity
     blur(0px) so there is something for the real one to grow out of. And the
     saturation is gone: over a flat ground it did nothing but brighten, which
     is what produced the overshoot, while the blur is what actually frosts the
     photographs that pass underneath. The bar now holds rgb(15,27,112) the
     whole way through — no jump, no hump. */
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease,
              backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
}

/* Once the page is moving, the bar separates itself from what is passing
   underneath: the backdrop comes on and the hairline is drawn. */
.masthead[data-scrolled="true"] {
  background: color-mix(in srgb, var(--ultramarine) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--rule);
}

/* Where the masthead is sitting over one of the paper sections it turns over
   with it, so the wordmark never disappears into the ground behind it. */
.masthead[data-over="paper"] {
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  color: var(--charcoal);
}
.masthead[data-over="paper"] .wordmark,
.masthead[data-over="paper"] .nav__link,
.masthead[data-over="paper"] .menu-toggle { color: var(--charcoal); }
.masthead[data-over="paper"] .nav__n { color: #6b6b6b; }
.masthead[data-over="paper"] .nav__link[aria-current="page"],
.masthead[data-over="paper"] .nav__link[aria-current="page"] .nav__n { color: var(--ultramarine); }
.masthead[data-over="paper"] .nav__link[aria-current="page"] .nav__t { border-bottom-color: var(--ultramarine); }
.masthead[data-over="paper"] .nav__link:hover .nav__t { border-bottom-color: rgba(31, 31, 31, 0.4); }

/* On the home page the small wordmark waits until the large one has scrolled
   away, so the first screen carries the name once. */
.wordmark-link { transition: opacity 0.45s ease, visibility 0s linear 0s; }
.js .masthead[data-hero="on"] .wordmark-link {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
  padding-block: 1.4rem;
}

.wordmark { display: block; width: clamp(8.5rem, 14vw, 12.5rem); color: var(--ink); }
/* The symbol carries no fill of its own, so every instance takes the ink of
   whatever it sits on. This is what lets the masthead invert over dark sections. */
.wordmark svg, .hero__mark svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 702 / 45.31;   /* Safari will not infer this from the viewBox alone */
  overflow: visible;
  fill: currentColor;
}
a.wordmark-link { text-decoration: none; }

.nav { display: none; }

/* 60rem rather than the layout's 56rem: "Collection Care & Management" (20 Nov)
   made the line longer, and at 56rem it ran within a few pixels of the
   wordmark. */
@media (min-width: 60rem) {
  .nav { display: flex; align-items: baseline; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
}

.nav__link { display: inline-flex; align-items: flex-start; gap: 0.4rem; position: relative; }

.nav__n {
  font-family: var(--mono);
  font-size: 0.5938rem;
  line-height: 1.32;          /* sets the number against the top of the label */
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  transition: color 0.25s ease;
}
.nav__link[aria-current="page"] .nav__n { color: var(--accent); }

.nav__link {
  font-family: var(--sans);
  font-size: var(--t-small);
  letter-spacing: -0.006em;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.25s ease;
}
.nav__t {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.nav__link:hover .nav__t { border-bottom-color: var(--rule-strong); }
.nav__link[aria-current="page"] { color: var(--accent); }
.nav__link[aria-current="page"] .nav__t { border-bottom-color: var(--accent); }

/* Mobile menu */
.menu-toggle {
  font-family: var(--sans);
  font-size: var(--t-small);
  background: none; border: 0; padding: 0.25rem 0;
  color: var(--ink); cursor: pointer;
}
@media (min-width: 60rem) { .menu-toggle { display: none; } }

.menu {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column;
  padding: 1.4rem var(--gutter) var(--band);
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}
.menu[data-open="true"] { transform: translateY(0); }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__top .menu-toggle { display: block; }
.menu__links { margin-top: auto; padding-top: var(--band); display: grid; gap: 0.35rem; }
.menu__links > a {
  display: block;
  font-family: var(--sans);
  font-size: clamp(2rem, 9vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-decoration: none;
  padding-block: 0.18em;
}
.menu__meta { margin-top: var(--stack); color: var(--ink-muted); }
.menu__meta a { color: inherit; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-top: clamp(2.5rem, 6vw, 5.5rem);
  padding-bottom: clamp(0.5rem, 1.2vh, 1rem);
  min-height: calc(100vh - var(--masthead-h));
  min-height: calc(100svh - var(--masthead-h));
  display: flex;
  flex-direction: column;
  transition: background-color 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* The wordmark sits low on the screen rather than on its centre line, the way a
   title sits low on an exhibition poster. One auto margin, above it, so the free
   space is all spent there and the cue follows underneath. */
.hero__centre { margin-top: auto; margin-bottom: clamp(0.6rem, 1.6vh, 1.25rem); }

/* Drag across the first screen and it takes the brand colour under the
   pointer — a mark the width of the cursor, laid over everything rather than
   behind it, so it can cross type and image alike. */
.hero-field { position: relative; isolation: isolate; }
html[data-cursor="on"] .hero-field { cursor: none; }

.paint {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  /* A canvas is a replaced element: without an explicit CSS size its layout
     width comes from the backing-store attributes, which are multiplied by the
     device pixel ratio. On a retina screen that is twice the width of the page. */
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .paint span { transition: none; }
}

/* Out to the right margin of the page, not to a measure of its own. */
.hero__mark { width: 100%; color: var(--ink); }

/* A quiet indication that the page continues. */
.scroll-cue {
  display: grid;
  place-items: center;
  align-self: center;
  width: 3rem; height: 3rem;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.3s ease, opacity 0.5s ease;
}
.scroll-cue:hover { color: var(--ink); }
.scroll-cue .chev {
  width: 11px; height: 11px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue { animation: cue-in 0.9s ease 2.2s backwards; }
  @keyframes cue-in {
    from { opacity: 0; transform: translateY(-0.4rem); }
    to   { opacity: 1; transform: none; }
  }

  .scroll-cue .chev { animation: cue 2.6s ease-in-out infinite; }
  @keyframes cue {
    0%, 60%, 100% { transform: rotate(45deg) translate(0, 0); }
    30%           { transform: rotate(45deg) translate(3px, 3px); }
  }
}

/* --------------------------------------------------------------------------
   7. Page titles (inner pages)
   -------------------------------------------------------------------------- */

.page-head { padding-top: clamp(2.5rem, 6vw, 5.5rem); padding-bottom: var(--band); }
.page-head + .band { padding-top: 0; }
.page-head h1 { font-size: clamp(2.4rem, 1.1rem + 4.2vw, 4.6rem); }
.page-head .ledger { margin-bottom: 1.4rem; display: block; }
.page-head .lead {
  margin-top: clamp(1.75rem, 4vw, 3rem);
  font-size: var(--t-lead);
  line-height: 1.5;
  max-width: 36em;
}

/* --------------------------------------------------------------------------
   9. Specification lists
   -------------------------------------------------------------------------- */

/* Specification lists — the plain facts, set apart from the prose. */
.spec { display: grid; gap: 0.55rem; align-content: start; }
.spec li {
  display: grid;
  grid-template-columns: 0.6rem 1fr;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: var(--t-small);
  line-height: 1.45;
  color: var(--ink-strong-muted);
}
.spec li::before {
  content: "";
  width: 0.6rem; height: 1px;
  background: var(--ink-strong-muted);
  transform: translateY(0.7em);
}

/* --------------------------------------------------------------------------
   9c. The expanding index — Storage, Transport & Handling, Services

   Every segment starts closed, so the page opens on its list of headings, and
   only one stands open at a time. The list runs the full width and each
   segment opens to its copy; the page's photographs run in a strip below.
   -------------------------------------------------------------------------- */

.services-page {
  padding-top: clamp(2.5rem, 6vw, 5.5rem);
  padding-bottom: var(--band);
  /* The blue holds the screen whatever the window. Without this the paper panel
     below it climbs up into the first screen on a tall display, and the page
     reads as a short blue band with a white page underneath it. */
  min-height: calc(100vh - var(--masthead-h));
  min-height: calc(100svh - var(--masthead-h));
}
/* The script decides what stays still when a segment opens; the browser's own
   scroll anchoring would otherwise make a second, different decision. It has
   to be off for the whole page: switched off on the section alone, the browser
   anchors to the panel below instead and pulls the page down as a segment
   opens. */
:root:has(.services-page) { overflow-anchor: none; }
.services-page__head .ledger { display: block; margin-bottom: 1.4rem; }
.services-page__head h1 { font-size: clamp(2.4rem, 1.1rem + 4.2vw, 4.6rem); }

.services { margin-top: clamp(2rem, 4vw, 3.25rem); border-top: 1px solid var(--rule); }

.service { border-bottom: 1px solid var(--rule); }

.service > summary {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.9rem;
  padding-block: 0.95rem;
  cursor: pointer;
  list-style: none;                     /* the disclosure triangle, removed */
  font-family: var(--sans);
  font-size: var(--t-body);
  letter-spacing: -0.016em;
  color: var(--ink-strong-muted);
  transition: color 0.25s ease;
}
.service > summary::-webkit-details-marker { display: none; }
.service > summary:hover,
.service[open] > summary { color: var(--accent); }

.service__index {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

/* Two rules crossed; the upright one turns flat when the entry opens, so the
   plus becomes a minus without a second glyph or an icon font. */
.service__sign {
  position: relative;
  width: 0.75rem; height: 0.75rem;
  align-self: center;
}
.service__sign::before,
.service__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: currentColor;
}
.service__sign::after {
  transform: rotate(90deg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.service[open] .service__sign::after { transform: rotate(0deg); }

/* What opens and closes. The script animates its height; the clip keeps the
   copy inside it as it does, while letting the white run out sideways. It
   holds the white's bottom margin too (flow-root), so that animates as well. */
.service__panel { display: flow-root; clip-path: inset(0 -100vmax); }

/* An open section reads on white, in grey, like the overview on the home page
   (Fred, 20 Nov: long copy is easier dark-on-light); the headings stay on the
   blue. The paper tokens make everything inside — rules, steps, the button —
   turn over with it. */
.service__body {
  --ground:      var(--canvas);
  --ink:         var(--charcoal);
  --ink-muted:        #6b6b6b;
  --ink-strong-muted: #4a4a4a;
  --accent:      var(--ultramarine);
  --rule:        rgba(31, 31, 31, 0.16);
  --rule-strong: rgba(31, 31, 31, 0.4);
  background: var(--ground);
  /* White the whole way across the window (Tom, 20 Nov), while the copy keeps
     its line under the section titles: a shadow of the same white spread
     sideways, clipped to the box's own height. Shadows never widen the page. */
  box-shadow: 0 0 0 100vmax var(--ground);
  clip-path: inset(0 -100vmax);
  color: var(--ink-strong-muted);
  padding: 1.6rem 1.25rem 2rem;
  margin-bottom: 1.1rem;
  display: grid;
  gap: 1.4rem;
}
/* Set under the title rather than under the number, so the opened copy lines up
   with the heading it belongs to. */
@media (min-width: 40rem) {
  .service__body { padding: clamp(2rem, 3vw, 2.75rem) 3.9rem clamp(2.25rem, 3.5vw, 3.25rem); }
}
/* The text of a section. Text only since Fred's November round, so it can take
   a wide measure: on a wide screen it runs to two-thirds of the way across
   the page, a size down from the body copy and with more leading, which is
   the breathing room he asked for. */
.prose {
  display: grid;
  gap: 1.05em;
  max-width: none;
  font-size: clamp(0.97rem, 0.93rem + 0.15vw, 1.0625rem);
  line-height: 1.72;
}
/* Two-thirds of the page, measured from its left edge (the copy itself starts
   3.9rem in, under the section titles, with the same inside the white's
   right-hand edge). */
@media (min-width: 56rem) { .prose { max-width: calc((100% + 7.8rem) * 2 / 3 - 3.9rem); } }
/* Emphasis — **words** in the editor — in Beausite Medium and the full ink, so
   it stands clear of the grey around it. */
strong { font-weight: 500; color: var(--ink); }
/* The site's paragraphs carry a bottom margin; here the grid's gap spaces them. */
.prose p { max-width: none; margin: 0; }

/* A short line on its own above its paragraph — "Perimeter and reception." —
   in Medium and pulled close to the paragraph it heads. */
.prose .subhead {
  margin: 0.55em 0 -0.95em;
  font-family: var(--sans);
  font-size: 1em;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.4;
  color: var(--ink);
}
.prose .subhead:first-child { margin-top: 0; }

/* Bullets and numbered steps. A bullet is a short rule, the site's own mark;
   a step is numbered in the mono, like everything else that is numbered. */
.prose ul,
.prose ol {
  display: grid;
  gap: 0.6em;
  margin: 0;
  padding: 0;
  list-style: none;
}
.prose li { position: relative; }
.prose ul > li { padding-left: 1.65em; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.86em;
  width: 0.75em;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}
.prose ol { counter-reset: step; }
.prose ol > li { padding-left: 2.6em; counter-increment: step; }
.prose ol > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.42em;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--ink-muted);
}
/* "Arrival." at the start of a bullet: picked out in Medium so a list reads
   as a set of answers. */
.prose .lead-in { font-weight: 500; color: var(--ink); }

/* The page's photographs, in the blue below the sections: a strip that runs
   the full width of the window, edge to edge, every photograph whole at one
   height, so a portrait and a landscape sit side by side as they are. It
   loops (Fred, 20 Nov): the set repeats end to end and drifts slowly left on
   its own, and it can be taken in hand by trackpad, touch, a drag with the
   mouse or the arrows under it. */
.strip {
  /* The indent that sets the arrows under the section titles' text line. */
  --strip-indent: 0rem;
  --strip-h: clamp(15rem, 62vw, 24rem);
  margin-top: clamp(3rem, 7vw, 5.5rem);
}
@media (min-width: 40rem) {
  .strip { --strip-indent: 3.9rem; --strip-h: clamp(18rem, 56vh, 34rem); }
}
.strip__track {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  outline-offset: -2px;
}
.strip__track::-webkit-scrollbar { display: none; }
/* The photographs, in a row. The script moves this row by the fraction of a
   pixel the scroll position can't hold, so the slow drift is smooth. */
.strip__rail {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.75rem, 1.4vw, 1.5rem);
  width: max-content;
}
.strip__track.is-dragging { cursor: grabbing; }
.strip__track.is-dragging img { pointer-events: none; }
/* On a touch screen each swipe settles on a photograph; with a mouse or a
   trackpad it moves freely, which is what a drag wants. */
@media (pointer: coarse) {
  .strip__track { scroll-snap-type: x mandatory; cursor: auto; }
  .strip__item { scroll-snap-align: start; }
  /* Except once it loops and drifts: snapping would fight the drift. */
  .strip.is-looping .strip__track { scroll-snap-type: none; }
}
.strip__item { flex: none; margin: 0; }
.strip__item img {
  display: block;
  height: var(--strip-h);
  width: auto;
  max-width: none;
  -webkit-user-drag: none;
  user-select: none;
}
/* On a phone a landscape photograph at that height would be wider than the
   screen; there each one fits within the width as well, still whole. */
@media (max-width: 39.999rem) {
  .strip__item img { height: min(var(--strip-h), (100vw - var(--gutter) * 3) / var(--ar, 1)); }
}
/* The caption takes the photograph's width and never widens it. */
.strip__item figcaption {
  width: 0; min-width: 100%;
  margin-top: 0.7rem;
  font-family: var(--serif);
  font-size: var(--t-small);
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--ink-strong-muted);
}
.strip__bar { margin-top: 1rem; padding-left: var(--strip-indent); }
.strip__controls { display: none; gap: 0.25rem; margin-left: -0.5rem; }
.js .strip__controls { display: inline-flex; }
.strip__controls[hidden] { display: none; }
.strip__controls .carousel__step:disabled { opacity: 0.3; cursor: default; color: var(--ink-strong-muted); }
.strip.is-looping .strip__item[aria-hidden] figcaption { user-select: none; }

/* A caption under a single photograph — the About portrait, the Contact
   photograph — set like the slideshow captions. */
.photo-caption {
  margin-top: 0.7rem;
  max-width: none;
  font-family: var(--serif);
  font-size: var(--t-small);
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--ink-strong-muted);
}

/* --------------------------------------------------------------------------
   9c-ii. The carousel — a set of photographs, stepped through by hand

   Every frame is stacked in one 3:4 plate and the first is the only one that
   starts showing, so with no script it is simply a photograph. The bar under
   it carries the caption of the frame showing (blank where there is none), a
   count, and two arrows. It turns over on its own, slowly, while it is on
   screen, and stops for good once someone has used the arrows.
   -------------------------------------------------------------------------- */
.carousel { margin: 0; }
.carousel__plate {
  position: relative;                   /* the frames take their inset from here */
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--plate-bg);
  touch-action: pan-y;                  /* a sideways swipe is ours, scrolling is the page's */
}
.carousel__plate img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  -webkit-user-drag: none;
  user-select: none;
}
.carousel__plate img:first-child { opacity: 1; }
.carousel__plate img[data-on="true"]  { opacity: 1; }
.carousel__plate img[data-on="false"] { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .carousel__plate img { transition: opacity 0.6s ease; }
}

.carousel__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.7rem;
  max-width: none;
}
.carousel__caption {
  font-family: var(--serif);
  font-size: var(--t-small);
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--ink-strong-muted);
  min-height: 1.5em;
}
.carousel__controls { display: none; align-items: center; gap: 0.25rem; flex: none; }
.js .carousel__controls { display: inline-flex; }
.carousel__count {
  margin-right: 0.6rem;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.carousel__step {
  --arrow-w: 1.5em;
  display: inline-grid;
  place-items: center;
  width: 2.5rem; height: 2rem;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink-strong-muted);
  cursor: pointer;
  transition: color 0.25s ease;
}
.carousel__step:hover { color: var(--accent); }
.carousel__step--prev .arrow { transform: scaleX(-1); }
@media (prefers-reduced-motion: no-preference) {
  .carousel__step .arrow { transition: translate 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
  .carousel__step--next:hover .arrow { translate: 0.2rem 0; }
  .carousel__step--prev:hover .arrow { translate: -0.2rem 0; }
}

/* --------------------------------------------------------------------------
   9d. Recent work — the Instagram grid on the home page

   Four across on a desktop, two on a phone, each at Instagram's own 4:5. The
   tiles are whatever sits between the instagram:start and instagram:end markers
   in index.html, which the feed rewrites when it is connected.
   -------------------------------------------------------------------------- */
.gram {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 1vw, 0.9rem);
}
@media (min-width: 56rem) { .gram { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* The word Instagram in the heading is the link to the profile. */
.section-head h2 a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule-strong); transition: color 0.25s ease, border-color 0.25s ease; }
.section-head h2 a:hover { color: var(--ink); border-bottom-color: currentColor; }
.gram__tile { aspect-ratio: 4 / 5; overflow: hidden; background: var(--plate-bg); }
.gram__tile a { display: block; height: 100%; }
.gram__tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.gram__tile a:hover img { transform: scale(1.03); }

/* --------------------------------------------------------------------------
   10. Ultramarine panel — one caesura per page
   -------------------------------------------------------------------------- */

.panel { padding-block: var(--band); }

/* The enquiry panel that closes a page: one line and one way in. */
.panel__lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  max-width: 32em;
}
.panel__action { margin-top: var(--stack); }
.overview p { font-size: var(--t-lead); line-height: 1.5; max-width: 38em; }
.overview p + p { margin-top: 1.3em; }

/* Where two paper sections run on into each other, and into the footer below
   them, a hairline keeps them from reading as one undivided block. */
.panel + .panel { border-top: 1px solid var(--rule); }
/* Where the enquiry panel runs straight into the footer, both are white and
   the footer's rule reads as the edge between them; the footer's own space
   above that rule is dropped, so "Get in touch" sits the same distance above
   the rule as the section's edge is above "Enquiries". */
main:has(> .panel:last-child) + .footer { padding-top: 0; }
.panel a { color: inherit; }
.panel h2 { font-size: var(--t-title); }
.panel p { color: var(--ink-strong-muted); }

/* --------------------------------------------------------------------------
   11. Figures and image sets
   -------------------------------------------------------------------------- */

figure { margin: 0; }

/* Sized from the height of the window rather than the width of its column, so
   it fills the screen it is on: the plate is 3:4, so a width of 46vh stands
   about 61vh tall and sits on the centre line with room above and below. */
.portrait {
  max-width: min(100%, clamp(20rem, 46vh, 30rem));
  margin-inline: auto;
}
.portrait__figure { position: relative; }

.plate { background: var(--plate-bg); overflow: hidden; }
.plate img { width: 100%; }
.plate--tall { aspect-ratio: 3 / 4; }
.plate--tall img { height: 100%; object-fit: cover; }
/* The 2025 photography is all 3:4, so the plates that carry it are cut to
   that or to 4:5, rather than to a landscape frame they would be gutted for. */
.plate--r45 { aspect-ratio: 4 / 5; }
.plate--r45 img { height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   12. Links, actions
   -------------------------------------------------------------------------- */

.link {
  font-family: var(--sans);
  font-size: var(--t-small);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 1px;
  transition: border-color 0.25s ease, color 0.25s ease;
  display: inline-block;
}
.link:hover { color: var(--accent); border-bottom-color: var(--accent); }

.link--trail {
  --arrow-w: 3.4em;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--sans);
  font-size: var(--t-body);
  text-decoration: none;
  border: 0;
  transition: color 0.25s ease;
}
.link--trail:hover { color: var(--accent); }
.link--trail .arrow { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.link--trail:hover .arrow { transform: translateX(0.3rem); }

/* A filled button. It takes the ink of whatever ground it is on and prints the
   ground back out of it, so it reverses cleanly on the paper sections. */
.btn {
  --arrow-w: 1.6em;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.62rem 1.05rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ground);
  /* Every button is in the same face as the copy around it. */
  font-family: var(--serif);
  font-size: var(--t-body);
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--ink-strong-muted); border-color: var(--ink-strong-muted); }
.btn .arrow { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.btn:hover .arrow { transform: translateX(0.25rem); }
.btn--self { justify-self: start; }

.action {
  display: inline-flex;
  align-items: baseline;
  gap: 0.9rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.55rem);
  letter-spacing: 0;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15em;
}
.arrow {
  display: inline-block;
  position: relative;
  width: var(--arrow-w, 1.9em);
  height: 0.8em;
  flex: none;
  vertical-align: middle;
}
/* The shaft, on the vertical centre of the element. */
.arrow::before {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  margin-top: -0.5px;
  background: currentColor;
}
/* The head: a square turned about its own centre, so its vertex lands exactly
   on the end of the shaft. Offset by 0.207 x its side, which is how far a
   45-degree rotation pushes the corner past the box. */
.arrow::after {
  content: "";
  position: absolute;
  top: 50%; right: 0.091em;
  width: 0.44em; height: 0.44em;
  margin-top: -0.22em;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.action .arrow { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.action:hover .arrow { transform: translateX(0.35rem); }

/* Directory of onward pages */
.directory { border-top: 1px solid var(--rule); }
.directory a {
  display: grid;
  grid-template-columns: 3.25rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding-block: clamp(1.25rem, 2.4vw, 1.9rem);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  font-family: var(--sans);
  font-size: clamp(1.15rem, 0.95rem + 1vw, 1.8rem);
  letter-spacing: -0.023em;
  transition: color 0.25s ease;
}
.directory a:hover { color: var(--accent); }
.directory .arrow { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.directory a:hover .arrow { transform: translateX(0.35rem); }

button.link { background: none; border: 0; border-bottom: 1px solid var(--rule-strong); cursor: pointer; font: inherit; color: inherit; }
button.link { font-family: var(--sans); font-size: var(--t-small); }

/* Contact and About are short enough to hold one screen, so their title sits
   beside the content rather than above it. */
.page--single {
  display: flex;
  flex-direction: column;
  /* One screen of content. The footer sits below it and is scrolled to. */
  min-height: calc(100vh - var(--masthead-h));
  min-height: calc(100svh - var(--masthead-h));
}
.page--single .page-head {
  padding-top: clamp(1.5rem, 3.5vh, 3rem);
  padding-bottom: 0;
}
.page--single .page-head h1 { font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.2rem); }
.page--single .page-head .lead { margin-top: clamp(0.75rem, 1.6vh, 1.25rem); font-size: var(--t-body); }
.page--single > .band {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-block: clamp(1.75rem, 4.5vh, 3.5rem);
}

.single-grid {
  display: grid;
  gap: var(--stack) var(--gutter);
  grid-template-columns: 1fr;
  align-items: start;
}

/* On a screen tall enough to hold the page, the columns stretch and their
   contents spread down it rather than bunching at the top. */
@media (min-width: 62rem) {
  .single-grid { flex: 1; align-items: stretch; }
  /* The portrait keeps its own block; only the text stacks become flex.
     Content groups at the top of its column; the enquiry list is the one thing
     that stretches, so the column still reaches the foot of the screen. */
  .single-grid > div:not(.portrait) {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .single-grid > div > :first-child { margin-top: 0; }

  /* The rows keep their own rhythm rather than sharing out the height of the
     column. Stretched to fill, each one stood 90px tall with the words floating
     in the middle of it, which read nothing like the ruled lists on the service
     pages — those are set by their padding and come out around 54px. Same
     padding here, same line. */
  .single-grid .enquiries a { align-items: baseline; padding-block: 0.95rem; }

  /* The portrait takes whatever height is left. */
  .single-grid--about .portrait { align-self: center; }
}
@media (min-width: 62rem) {
  .single-grid--contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); }
  .single-grid--about   { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

.single-title { font-size: clamp(2.1rem, 1rem + 3.4vh, 3.6rem); margin-top: clamp(0.6rem, 1.4vh, 1rem); }

/* Contact is meant to hold one screen. The photograph is therefore sized from
   the height that is going spare rather than from its own ratio, which is what
   was pushing the page over the fold on a short window. */
.single-grid--contact .plate {
  aspect-ratio: auto;
  height: clamp(6rem, 22vh, 15rem);
}
.single-grid--contact .plate img { height: 100%; object-fit: cover; }
.single-grid--contact figure { margin: 0 0 clamp(0.75rem, 1.6vh, 1.25rem) !important; }
.single-grid--contact address { margin-bottom: clamp(0.75rem, 1.6vh, 1.25rem) !important; }

.contact-email { margin-top: 1.25rem; font-size: var(--t-small); }
.contact-company {
  font-size: var(--t-small);
  line-height: 1.7;
  color: var(--ink-muted);
}

@media (max-width: 62rem) {
  /* One column of eight, the same as everywhere else. It was two of four, which
     halved the height but read as a grid of tiles rather than a list. */
  .single-grid--contact .enquiries a { padding-block: clamp(0.5rem, 1.1vh, 0.9rem); }
  .page--single > .band { padding-block: clamp(1.25rem, 2.8vh, 2.25rem); }
}

/* A short window — a small phone, or a laptop with a lot of browser chrome —
   gets one more turn of the screw before the page is allowed to scroll. */
@media (max-height: 820px) {
  .page--single > .band { padding-block: clamp(0.75rem, 2vh, 1.5rem); }
  .single-grid--contact { row-gap: 0.75rem; }
  .single-grid--contact .enquiries a { padding-block: 0.38rem; }
  .single-grid--contact .label { margin-bottom: 0.4rem !important; }
  .single-grid--contact address { line-height: 1.45; }
  .single-grid--contact .plate { height: clamp(5rem, 18vh, 10rem); }
}

@media (max-width: 30rem) {
  /* The photograph is the one thing here carrying no information. */
  .single-grid--contact figure { display: none; }
  /* Everything else gives up a little of its air so the page still lands on
     one screen on a phone. */
  .page--single > .band { padding-block: clamp(1rem, 2.4vh, 1.75rem); }
  .single-grid--contact { row-gap: 1rem; }
  .single-grid--contact .single-title + p { font-size: var(--t-small); line-height: 1.5; }
  .single-grid--contact .enquiries a { padding-block: 0.5rem; }
  .single-grid--contact address { line-height: 1.5; }
}

/* Eight enquiry rows have to share the screen with everything else, so they
   scale with viewport height as well as width. */
.enquiries a { padding-block: clamp(0.6rem, 1.5vh, 1.05rem); line-height: 1.35; }

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */

.enquiries { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.enquiries a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding-block: 0.72rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  font-family: var(--sans);
  font-size: var(--t-body);
  letter-spacing: -0.014em;
  transition: color 0.25s ease;
}
.enquiries a:hover { color: var(--accent); }
.enquiries .arrow { color: var(--ink-muted); transition: transform 0.3s ease, color 0.25s ease; }
.enquiries a:hover .arrow { color: var(--accent); transform: translateX(0.3rem); }

address {
  font-style: normal;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */

.footer {
  padding-block: clamp(1.75rem, 3.4vh, 3rem) clamp(1.5rem, 3vh, 2.5rem);
}
/* The rule sits at the top of the footer, inside the page margins. */
.footer__inner {
  border-top: 1px solid var(--rule);
  padding-top: clamp(1.25rem, 2.6vh, 2rem);
}
.footer__grid {
  display: grid;
  gap: clamp(1rem, 2vh, 1.5rem) var(--gutter);
  grid-template-columns: 1fr;
}
@media (min-width: 46rem) { .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.footer h3 { margin-bottom: 0.75rem; }
.footer ul { display: grid; gap: 0.3rem; }
.footer a { font-family: var(--sans); font-size: var(--t-small); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.25s ease; }
.footer a:hover { border-bottom-color: var(--rule-strong); }

/* --------------------------------------------------------------------------
   14b. The pointer — the dot from Dougal's holding page, turned over with
        the rest of the palette: paper on the blue, blue on the paper
   -------------------------------------------------------------------------- */

/* Gated three ways: a real mouse, scripting available, and motion allowed.
   The native cursor is only hidden once the dot is confirmed running, so a
   script failure can never leave someone without a pointer. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html[data-cursor="on"] body { cursor: none; }
  html[data-cursor="on"] a,
  html[data-cursor="on"] button,
  html[data-cursor="on"] summary,
  html[data-cursor="on"] [role="button"],
  html[data-cursor="on"] .strip__track { cursor: none; }

  .cursor-dot {
    position: fixed;
    top: 0; left: 0;
    z-index: 90;
    width: 9px; height: 9px;
    margin: -4.5px 0 0 -4.5px;
    border-radius: 50%;
    background: var(--canvas);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                margin 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                background-color 0.28s ease;
    /* Its own layer, so moving it never asks for a repaint of the page. */
    will-change: transform;
    transform: translateZ(0);
    contain: layout style paint;
  }
  html[data-cursor="on"] .cursor-dot { opacity: 1; }

  /* It opens up over anything you can act on. */
  .cursor-dot[data-over="link"] {
    width: 22px; height: 22px;
    margin: -11px 0 0 -11px;
    background: color-mix(in srgb, var(--canvas) 28%, transparent);
  }
  /* Over a strip of photographs it becomes a disc that says what to do. */
  .cursor-dot::after {
    content: "Drag";
    position: absolute; inset: 0;
    display: grid; place-items: center;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ultramarine);
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .cursor-dot[data-over="drag"] {
    width: 68px; height: 68px;
    margin: -34px 0 0 -34px;
  }
  .cursor-dot[data-over="drag"]::after { opacity: 1; transition-delay: 0.1s; }

  /* Over the paper sections it inverts, so it stays visible either way. */
  .cursor-dot[data-ground="paper"] { background: var(--ultramarine); }
  .cursor-dot[data-ground="paper"][data-over="link"] {
    background: color-mix(in srgb, var(--ultramarine) 34%, transparent);
  }
}

/* --------------------------------------------------------------------------
   15. Motion — slow, and easily declined
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  /* Scoped to .js so that a script failure can never leave content invisible. */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(1.1rem);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .js [data-reveal][data-shown="true"] { opacity: 1; transform: none; }

  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation-duration: 0.24s; }
  ::view-transition-new(root) { animation-duration: 0.34s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   16. Print — the site as a document, because this trade still prints things
   -------------------------------------------------------------------------- */

@media print {
  /* On paper the site is a document: black on white, whichever way the
     screen palette happens to be turned. */
  :root, .on-paper, .panel, .footer, .menu {
    --ground: #fff; --ink: #000; --ink-muted: #333;
    --ink-strong-muted: #222; --accent: #000;
    --rule: #ccc; --rule-strong: #999; --plate-bg: #fff;
  }
  body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.45; }
  .band { padding-block: 0.6cm; }
  .masthead, .panel, .footer, .menu { background: #fff !important; color: #000 !important; }
  .panel { border-block: 1px solid #000; }
  .btn { background: #fff !important; color: #000 !important; border-color: #000 !important; }
  .scroll-cue, .carousel__controls, .strip__controls { display: none !important; }
  figure, .plate { break-inside: avoid; }
  img { max-height: 8cm; object-fit: contain; }
  a { text-decoration: none; }
  .main a[href^="http"]::after,
  .main a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }
  .footer { margin-top: 0.8cm; }
}
