/* Hallmark · v2.1.0 · full redesign · the routing desk
   critique: P4 H5 E5 S4 R4 V5 · weakest: S — the second pass still read as a stack of bands; the fix was to set the page on a grid and give each section a different shape of it
   nav: rail — wordmark left, plain text links right, an icon-only theme switch; no call to action in the bar
   footer: a mast — the business's own words set large, the links under them
   built: the project · redesign: full · scope: site */@font-face {
  font-family: "Document Serif";
  src: url("/assets/fonts/libserif-latin-bold.b8923a98a6.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Document Serif";
  src: url("/assets/fonts/libserif-latin-regular.ecabc95903.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
/* The display face, built on this machine from an OFL source and subset to the
   characters the site prints. Local file, no other origin. The file names carry
   their own content hash, so a page and the stylesheet it asks for can never be
   served from two different builds. */
@font-face {
  font-family: "Display Sans";
  src: url("/assets/fonts/cantarell-latin-regular.2e8913e79b.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Display Sans";
  src: url("/assets/fonts/cantarell-latin-bold.ae28c7c2dd.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

:root {
  color-scheme: dark;

  /* ---- type ------------------------------------------------------------ */
  --font-display: "Display Sans", "Cantarell", "Trebuchet MS", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* the data face: every figure, model name and code on the page is set in it */
  --font-mono: ui-monospace, SFMono-Regular, "DejaVu Sans Mono", Menlo, Consolas, monospace;
  /* the face for the marks the site's copy prints but the other faces may not
     carry: the baht sign and the euro sign. It ends in a Thai-capable family
     so the baht is never dropped. */
  --font-symbol: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Thai", sans-serif;

  --text-mega:    clamp(2.375rem, 1.5rem + 3.5vw, 3.75rem);
  --text-display: clamp(1.875rem, 1.45rem + 1.7vw, 2.625rem);
  --text-title:   clamp(1.25rem, 1.16rem + 0.44vw, 1.5rem);
  --text-lead:    clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --text-body:    1.0625rem;
  --text-small:   0.9375rem;
  --text-label:   0.875rem;
  --text-micro:   0.8125rem;

  --leading-mega:    1.02;
  --leading-display: 1.1;
  --leading-title:   1.25;
  --leading-lead:    1.45;
  --leading-body:    1.62;
  --leading-tight:   1.35;

  --tracking-mega:    -0.035em;
  --tracking-display: -0.025em;
  --tracking-title:   -0.015em;
  --tracking-body:    0;
  --tracking-label:   0.004em;

  --measure: 64ch;
  --measure-wide: 78ch;

  /* the vertical rhythm of the document: one space between two sections,
     and one space between a section and the rule that opens it */
  --space-section: var(--space-xl);

  /* ---- space ----------------------------------------------------------- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-s:   1rem;
  --space-m:   1.5rem;
  --space-l:   2rem;
  --space-xl:  3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* ---- surfaces and colour --------------------------------------------- */
  --surface-page:   #0a0a11;
  --surface-raised: #101019;
  --surface-card:   #161622;
  --surface-inset:  #0c0c14;
  --surface-sunken: #0d0d17;

  --border:        #26263a;
  --border-strong: #3a3a56;
  --rule:          #1e1e30;

  --text-primary:   #f2f0fb;
  --text-secondary: #c3c1de;
  --text-muted:     #9492b6;

  --accent:       #7c3aed;
  --accent-hover: #6d28d9;
  --accent-deep:  #5b21b6;
  --accent-text:  #b6a2fb;
  --accent-soft:  rgba(139, 92, 246, 0.16);
  --accent-line:  rgba(139, 92, 246, 0.42);
  --accent-ink:   #ffffff;
  /* the one button that sits on the accent: it inverts, and its pair is
     named so the contrast check can read it */
  --accent-inverse-bg:  #f4f2fb;
  --accent-inverse-ink: #4c1d95;

  --success: #4ade80;
  --danger:  #f87171;

  /* ---- the gradient accent ------------------------------------------------
     The reference's violet-to-blue. The stops are named, not baked into the
     gradient, so the contrast check can read each end of the ramp and hold
     it to AA in both themes. */
  --grad-accent-a: #6d3fe0;
  --grad-accent-b: #2f6fe0;
  --grad-text-a:   #b9a6ff;
  --grad-text-b:   #7db0ff;
  --gradient-accent: linear-gradient(100deg, var(--grad-accent-a) 0%, var(--grad-accent-b) 100%);
  --gradient-text:   linear-gradient(100deg, var(--grad-text-a) 0%, var(--grad-text-b) 100%);


  /* ---- the soft shapes at the edges of the page ---------------------------- */
  --blob-1: rgba(124, 92, 255, 0.20);
  --blob-2: rgba(79, 140, 255, 0.14);
  --blob-3: rgba(240, 162, 92, 0.10);

  --shadow-sm: 0 1px 2px rgba(3, 3, 10, 0.5);
  --shadow-md: 0 1px 2px rgba(3, 3, 10, 0.45), 0 14px 30px -14px rgba(3, 3, 10, 0.85);
  --shadow-art: 0 22px 48px -24px rgba(3, 3, 10, 0.95);

  /* ---- shape and motion ------------------------------------------------ */
  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-pill: 999px;

  --duration-fast: 140ms;
  --duration-base: 240ms;
  --ease-out: cubic-bezier(0.16, 0.84, 0.44, 1);

  --wrap: 1280px;
  --gutter: var(--space-l);
  --columns: 12;
  --header-height: 68px;

  --surface-page: #100e1a;
  --surface-raised: #16131f;
  --surface-card: #1b1727;
  --surface-inset: #0b0913;
  --surface-sunken: #131020;
  --border: #282238;
  --border-strong: #3b3353;
  --rule: #1f1a2e;
  --text-primary: #f3f0fd;
  --text-secondary: #c6c0de;
  --text-muted: #9b94b6;
  --accent: #6d3fe0;
  --accent-hover: #7c4ef0;
  --accent-deep: #5527b8;
  --accent-text: #b5a4ff;
  --accent-soft: rgba(124, 92, 255, 0.16);
  --accent-line: rgba(124, 92, 255, 0.44);
  --accent-ink: #ffffff;
  --accent-inverse-bg: #f3f0fd;
  --accent-inverse-ink: #2a1a6b;
  --grad-accent-a: #6d3fe0;
  --grad-accent-b: #2f6fe0;
  --grad-text-a: #b9a6ff;
  --grad-text-b: #7db0ff;
  --gradient-accent: linear-gradient(100deg, var(--grad-accent-a) 0%, var(--grad-accent-b) 100%);;
  --gradient-text: linear-gradient(100deg, var(--grad-text-a) 0%, var(--grad-text-b) 100%);;
  --warm: #f0a25c;
  --warm-soft: rgba(240, 162, 92, 0.16);
  --blob-1: rgba(124, 92, 255, 0.22);
  --blob-2: rgba(79, 140, 255, 0.16);
  --blob-3: rgba(240, 162, 92, 0.10);
  --success: #4ade80;
  --danger: #f87171;
  --font-display: "Display Sans", "Cantarell", "Trebuchet MS", system-ui, sans-serif;;
  --font-body: "Document Serif", "Liberation Serif", Georgia, "Times New Roman", serif;;
  --font-symbol: "Document Serif", "Liberation Serif", Georgia, "Times New Roman", "Noto Sans Thai", serif;;
  --font-mono: ui-monospace, SFMono-Regular, "DejaVu Sans Mono", Menlo, Consolas, "Noto Sans Thai", monospace;;
  --text-mega: clamp(2.5rem, 1.7rem + 3.4vw, 4rem);;
  --text-display: clamp(1.625rem, 1.3rem + 1.3vw, 2.25rem);;
  --text-title: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);;
  --text-lead: clamp(1.1875rem, 1.05rem + 0.35vw, 1.375rem);;
  --text-body: 1.125rem;;
  --text-small: 1rem;;
  --text-label: 0.9375rem;;
  --text-micro: 0.875rem;;
  --leading-body: 1.66;;
  --tracking-mega: -0.03em;;
  --tracking-display: -0.02em;;
  --measure: 68ch;;
  --measure-wide: 84ch;;
  --duration-fast: 120ms;
  --duration-base: 260ms;
  --ease-out: cubic-bezier(0.25, 0.6, 0.25, 1);
}

html[data-theme="light"] {
  color-scheme: light;

  --surface-page:   #f6f6fb;
  --surface-raised: #ffffff;
  --surface-card:   #ffffff;
  --surface-inset:  #eeeef7;
  --surface-sunken: #f0f0f8;

  --border:        #dcDCEb;
  --border-strong: #b8b8d0;
  --rule:          #e1e1ef;

  --text-primary:   #14142b;
  --text-secondary: #3c3c58;
  --text-muted:     #575770;

  --accent:       #6d28d9;
  --accent-hover: #5b21b6;
  --accent-deep:  #4c1d95;
  --accent-text:  #5b21b6;
  --accent-soft:  rgba(109, 40, 217, 0.10);
  --accent-line:  rgba(109, 40, 217, 0.34);
  --accent-ink:   #ffffff;
  --accent-inverse-bg:  #ffffff;
  --accent-inverse-ink: #4c1d95;

  --success: #047857;
  --danger:  #b91c1c;

  /* the gradient's text end is darker on the light ground, so it holds AA */
  --grad-text-a: #5b3ad9;
  --grad-text-b: #2560d0;

  --shadow-sm: 0 1px 2px rgba(20, 20, 43, 0.06);
  --shadow-md: 0 1px 2px rgba(20, 20, 43, 0.05), 0 14px 30px -16px rgba(20, 20, 43, 0.22);
  --shadow-art: 0 22px 48px -26px rgba(20, 20, 43, 0.3);

  --surface-page: #f7f5ff;
  --surface-raised: #ffffff;
  --surface-card: #ffffff;
  --surface-inset: #eeebfc;
  --surface-sunken: #f2effe;
  --border: #dad4f0;
  --border-strong: #b4abD6;
  --rule: #e4e0f4;
  --text-primary: #17132a;
  --text-secondary: #3f3a56;
  --text-muted: #5d5775;
  --accent: #5b3ad9;
  --accent-hover: #4a2dbb;
  --accent-deep: #3b219b;
  --accent-text: #5334c7;
  --accent-soft: rgba(106, 73, 240, 0.10);
  --accent-line: rgba(106, 73, 240, 0.30);
  --accent-ink: #ffffff;
  --accent-inverse-bg: #ffffff;
  --accent-inverse-ink: #3a22a8;
  --grad-text-a: #5b3ad9;
  --grad-text-b: #2560d0;
  --gradient-accent: linear-gradient(100deg, var(--grad-accent-a) 0%, var(--grad-accent-b) 100%);;
  --gradient-text: linear-gradient(100deg, var(--grad-text-a) 0%, var(--grad-text-b) 100%);;
  --warm: #b4561f;
  --warm-soft: rgba(240, 162, 92, 0.18);
  --blob-1: rgba(124, 92, 255, 0.16);
  --blob-2: rgba(79, 140, 255, 0.12);
  --blob-3: rgba(240, 162, 92, 0.12);
  --success: #047857;
  --danger: #b91c1c;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  /* the ground: soft organic shapes at the edges, in the page's own tokens */
  background-color: var(--surface-page);
  background-image:
    radial-gradient(52rem 34rem at 92% -12%, var(--blob-1), transparent 62%),
    radial-gradient(38rem 26rem at 4% 6%, var(--blob-2), transparent 64%),
    radial-gradient(44rem 30rem at 102% 78%, var(--blob-3), transparent 60%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
  /* no synthetic bolding: the faces carry their own weights */
  font-synthesis: none;
}

::selection { background: var(--accent-soft); color: var(--text-primary); }
* { scrollbar-color: var(--border-strong) var(--surface-page); }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  overflow-wrap: break-word;
  min-width: 0;
  margin: 0;
}

a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: var(--space-2xs) var(--space-s);
  z-index: 50;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* the page is set on a grid; the sections place themselves on it */
.wrap { width: min(100% - 2 * var(--space-m), var(--wrap)); margin-inline: auto; }
.grid12 {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: var(--space-m) var(--gutter);
}
.grid12 > * { min-width: 0; }

/* ---------- the running head: the document's own header ----------
   One rule, stated once. Two agents edited this block in parallel and each
   left a copy; the copy that survives carries the wider column gap (the mono
   face needs it to separate the document's name from the section), the
   taller band and the tighter tracking. */
.running-head {
  border-bottom: 1px solid var(--border-strong);
  background: var(--surface-inset);
}
.running-head__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2xs) var(--space-m);
  padding-block: var(--space-2xs);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.02em;
  color: var(--text-muted);
}
.running-head__doc { color: var(--text-secondary); font-weight: 600; }
.running-head__section { color: var(--text-primary); }
.running-head__date { margin-left: auto; }

/* ---------- the gradient accent ---------- */
/* The one word that matters. It is only ever used at display size, where
   both ends of the ramp clear AA against the ground; hard-contrast text
   never carries it. */
.grad {
  background-image: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad { color: var(--accent-text); }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface-page) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  min-height: var(--header-height);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.brand:hover { color: var(--text-primary); }
.brand:hover img { opacity: 0.85; }
.brand img { width: 34px; height: 34px; }

/* The navigation wraps: at every width every link is on the page and readable.
   A navigation that scrolls sideways hides links behind a fade, and a
   navigation in a fixed row pushes the theme switch off the edge of a tablet
   — both were measured, and both are "the layout clashes". */
.nav { display: flex; align-items: center; gap: var(--space-2xs); flex-wrap: wrap; min-width: 0; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-2xs) var(--space-xs);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: var(--text-small);
  white-space: nowrap;
  transition: opacity var(--duration-fast) var(--ease-out);
}
.nav a:hover { color: var(--text-primary); background: var(--surface-inset); }
.nav a[aria-current="page"] { color: var(--text-primary); background: var(--accent-soft); }
/* The link to the page you are on still has to answer the pointer: the
   current page's rule came after the hover rule and won, so the one link a
   reader is most likely to press back to did nothing when pressed. */
.nav a[aria-current="page"]:hover { color: var(--accent-text); background: var(--accent-soft); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-xs);
  min-height: 44px;
  font: inherit;
  font-size: var(--text-label);
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--duration-fast) var(--ease-out);
}
.theme-toggle:hover { color: var(--text-primary); border-color: var(--border-strong); }
.theme-toggle:active { background: var(--surface-inset); }
.theme-toggle__icon { width: 16px; height: 16px; fill: currentColor; flex: none; }

/* ---------- the masthead: the promise and the mechanism ---------- */
.masthead { padding-block: var(--space-3xl) var(--space-l); position: relative; }

/* The substrate: the owner's own drawing in the cloudy gray, large, pale,
   and bleeding off the edge of the page. The mask runs from transparent at
   the text to solid at the outer edge, with a soft mid-stop, so the drawing
   dissolves into the page instead of sitting on it. */
/* The substrate anchors the side of the hero the words are NOT on, and
   dissolves towards them: the mask runs from transparent at the text edge to
   solid at the outer edge, with a soft mid-stop. */
/* The substrate: the owner's own drawing, pale and large, bleeding off the
   edge of the page behind everything.

   It is placed so the **character reads**: the hat is above the headline and
   the cookie's face is behind it, the way the reference sets its ghost. The
   mask dissolves it toward the words, so it never fights them. */
.masthead__substrate {
  position: absolute;
  top: -70px;
  left: -180px;
  width: min(58vw, 820px);
  pointer-events: none;
  z-index: 0;
}
.masthead__substrate img {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(250deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.25) 30%,
    rgba(0, 0, 0, 0.85) 52%,
    rgba(0, 0, 0, 1) 70%);
  mask-image: linear-gradient(250deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.25) 30%,
    rgba(0, 0, 0, 0.85) 52%,
    rgba(0, 0, 0, 1) 70%);
}
/* The presence is pale in the light theme and deeper in the dark one: the
   same drawing on two grounds needs two weights, or it is a smudge on one
   and a stain on the other. */
html[data-theme="dark"] .masthead__substrate { opacity: 0.34; }
/* **The light theme is the one that exposes the drawing.** A grey shape on a
   near-white ground reads as a smudge rather than as a presence, and the
   human rejected the light mode for exactly that: the mascot sat over the
   headline like a stain. So in the light theme the mask keeps only the hat —
   the part of the drawing that sits above the words — and dissolves the body
   of the mascot before it can reach the headline. What is left is a pale mark
   in the corner, and the owner's own mark in the bar answers it. */
html[data-theme="light"] .masthead__substrate {
  opacity: 0.16;
  top: -110px;
}
html[data-theme="light"] .masthead__substrate img { filter: blur(1.5px); }
html[data-theme="light"] .masthead__substrate img {
  -webkit-mask-image: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.55) 12%,
    rgba(0, 0, 0, 0.12) 22%,
    rgba(0, 0, 0, 0) 32%);
  mask-image: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.55) 12%,
    rgba(0, 0, 0, 0.12) 22%,
    rgba(0, 0, 0, 0) 32%);
}
/* The mark, in the column the drawing would have taken. */
.masthead__mark { position: relative; z-index: 1; }
.masthead__mark img { width: min(100%, 260px); height: auto; }
.masthead__inner { position: relative; z-index: 1; }
.masthead__inner {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: var(--space-xl) var(--gutter);
  /* the copy sits at the foot of its cell: the mechanism column is taller,
     and the words end next to the strip instead of floating above a gap */
  align-items: end;
}
.masthead__copy { grid-column: 1 / span 6; }
.masthead__figure { grid-column: 8 / span 5; }

h1 {
  font-size: var(--text-mega);
  line-height: var(--leading-mega);
  letter-spacing: var(--tracking-mega);
  margin-bottom: var(--space-m);
  max-width: 15ch;
}
.lead {
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
  color: var(--text-secondary);
  max-width: 46ch;
  margin: 0 0 var(--space-m);
}

/* the routing diagram, with its legend set as a caption rather than as marks */
.flow { margin: 0; }
.flow svg { width: 100%; height: auto; filter: drop-shadow(var(--shadow-art)); }
.flow__caption {
  margin: 0 0 var(--space-2xs);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.flow__legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xs) var(--space-m);
  margin: var(--space-m) 0 0;
  padding: var(--space-xs) 0 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--text-micro);
  line-height: var(--leading-tight);
}
.flow__legend b { color: var(--text-secondary); font-weight: 600; }
.flow__gloss { display: block; margin-left: 18px; }
/* The key to the drawing's marks. It is a **rule**, not a square: a square
   with a border reads as a ticked box, and the key is not a box. */
.flow__key {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 1px;
  margin-right: var(--space-2xs);
  vertical-align: baseline;
  background: var(--accent);
}
.flow__key--routing { background: var(--accent); }
.flow__legend div + div .flow__key {
  background: repeating-linear-gradient(90deg,
    var(--border-strong) 0 4px, transparent 4px 7px);
}

/* ---------- the principles: a row of statements, not a list of ticks ---------- */
.principles {
  border-top: 1px solid var(--rule);
  padding-block: var(--space-l);
}
.principles__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-l);
}
.principles__row li {
  list-style: none;
  padding-right: var(--space-l);
  border-right: 1px solid var(--rule);
  color: var(--text-secondary);
  font-size: var(--text-small);
}
.principles__row li:last-child { border-right: 0; padding-right: 0; }

/* ---------- sections ---------- */
main { display: block; }
.section { padding-block: var(--space-section); }
.section--raised {
  background: var(--surface-raised);
  border-block: 1px solid var(--rule);
  padding-block: var(--space-section);
}
.section--sunken {
  background: var(--surface-sunken);
  border-block: 1px solid var(--rule);
  padding-block: var(--space-section);
}
.section__head { max-width: var(--measure); margin-bottom: var(--space-xl); }
.section__head h2 {
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  margin: 0 0 var(--space-xs);
}
/* The lead under a section title is the argument, not a caption: it is set
   large enough to read as a second voice and in the primary text colour, so
   the title and the lead are not two sizes of the same grey line. */
.section__head p {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  line-height: 1.42;
  max-width: var(--measure);
  text-wrap: pretty;
}

/* ---------- a listing: columns under a rule, no boxes ---------- */
.listing {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: var(--space-l) var(--gutter);
}
.listing__item { grid-column: span 4; border-top: 1px solid var(--border-strong); padding-top: var(--space-s); }
.listing__item h3 {
  font-size: var(--text-title);
  line-height: var(--leading-title);
  letter-spacing: var(--tracking-title);
  margin: 0 0 var(--space-2xs);
}
.listing__item p { margin: 0 0 var(--space-s); color: var(--text-secondary); font-size: var(--text-small); }
/* The row itself reacts, not only the title inside it: the pointer target is
   the row, and a target that changes nothing under the pointer is a dead
   link. The colour is put back on the children so only the title moves. */
a.listing__item:hover { color: var(--accent-text); }
a.listing__item:hover h3 { color: var(--accent-text); }
a.listing__item:hover p { color: var(--text-secondary); }
a.listing__item:hover .listing__note { color: var(--text-muted); }
.listing__note { display: block; color: var(--text-muted); font-size: var(--text-micro); margin-bottom: var(--space-2xs); }
.listing__more {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: var(--space-2xs);
  color: var(--accent-text);
  font-size: var(--text-label);
  font-weight: 600;
}
a.listing__item { text-decoration: none; color: inherit; }
a.listing__item:hover h3 { color: var(--accent-text); }

/* ---------- the catalogue: three specimens, separated by rules ---------- */
.specimens {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: var(--space-l) var(--gutter);
}
.specimen { grid-column: span 6; border-top: 1px solid var(--border-strong); padding-top: var(--space-s); }
.specimen h3 {
  font-size: var(--text-title);
  line-height: var(--leading-title);
  letter-spacing: var(--tracking-title);
  margin: 0 0 var(--space-2xs);
}
.specimen p { margin: 0 0 var(--space-s); color: var(--text-secondary); font-size: var(--text-small); max-width: 52ch; }
.specimen__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2xs);
  margin: var(--space-s) 0;
}
.specimen__amount {
  font-family: var(--font-display);
  font-size: 2.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.specimen__unit { color: var(--text-muted); font-size: var(--text-small); }
.specimen__alt {
  font-family: var(--font-symbol);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3xs) var(--space-2xs);
  margin: var(--space-3xs) 0 0;
  color: var(--text-muted);
  font-size: var(--text-micro);
  font-variant-numeric: tabular-nums;
}
.specimen__alt-mark { color: var(--text-muted); }
.specimen__bullets {
  margin: var(--space-s) 0 0;
  padding-left: 1.1rem;
  color: var(--text-secondary);
  font-size: var(--text-small);
}
.specimen__bullets li { margin-bottom: var(--space-3xs); }
.specimen__meta {
  margin-top: var(--space-s);
  padding-top: var(--space-s);
  border-top: 1px solid var(--rule);
  color: var(--text-muted);
  font-size: var(--text-micro);
}
.specimen__meta b { color: var(--text-secondary); font-weight: 600; }
.specimen__more { margin-top: var(--space-s); }

/* The other versions of this product. The block is a labelled list, and each
   version is three pieces with a hierarchy between them: the version's name,
   its own price, and the note that says what it is. Nothing here repeats the
   price printed above it. */
.specimen__versions {
  margin-top: var(--space-s);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--rule);
  display: grid;
  gap: var(--space-2xs);
}
.specimen__versions-label {
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.specimen__versions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-xs);
}
.specimen__version {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 var(--space-s);
  align-items: baseline;
}
.specimen__version-name {
  color: var(--text-primary);
  font-weight: 600;
}
.specimen__version-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.specimen__version-note {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: var(--text-micro);
  line-height: var(--leading-tight);
}

.reference { margin-top: var(--space-xl); }
.reference h3 { font-size: var(--text-title); margin: 0 0 var(--space-s); }
.terms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--space-l) var(--space-xl);
}
.terms__block { min-width: 0; }
.terms__text { margin: 0; color: var(--text-secondary); font-size: var(--text-small); }
.terms__label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: var(--space-3xs);
}
.terms__list { margin: 0; padding-left: 1.1rem; color: var(--text-secondary); font-size: var(--text-small); }
.terms__line { margin: 0; color: var(--text-primary); }
.voices { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.voices li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-s);
  border-bottom: 1px solid var(--rule);
  padding-bottom: var(--space-xs);
}
.voice__name { font-weight: 600; min-width: 12rem; }
.voice__length { color: var(--text-muted); font-size: var(--text-label); }

.empty {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-l);
  color: var(--text-secondary);
  background: var(--surface-card);
}

/* ---------- the steps: a rail with stops on it ----------
   The order is carried by the **rail**, not by a number. The human rejected
   the numbered version twice: a bare "1" in the margin reads as an ordinal
   with nothing to be an ordinal of, and the specification-sheet variant made
   it worse by prefixing the section's number ("5.1"), so the steps carried a
   number that belonged to something else. The list keeps `role="list"` on an
   `<ol>`, so a screen reader still announces the order; the page shows a
   line with a stop on it and an arrow between the stops. */
.flowline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: var(--space-l) 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.flowline__step {
  position: relative;
  grid-column: span 4;
  padding: var(--space-s) var(--gutter) 0 0;
  border-top: 1px solid var(--border-strong);
}
/* the stop: the step's own place on the rail */
.flowline__mark {
  position: absolute;
  top: -0.25rem;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}
/* the direction of the rail: an arrow between two stops, on the line itself */
.flowline__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: -0.32rem;
  left: calc(100% - var(--gutter) + 0.45rem);
  width: 0.4rem;
  height: 0.4rem;
  border-top: 1.5px solid var(--accent-text);
  border-right: 1.5px solid var(--accent-text);
  transform: rotate(45deg);
}
.flowline__step h3 {
  font-size: var(--text-title);
  line-height: var(--leading-title);
  margin: 0 0 var(--space-2xs);
}
.flowline__step p { margin: 0; color: var(--text-secondary); font-size: var(--text-small); }

/* ---------- a text section: the argument, and the support beside it ------ */
.prose {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: var(--space-l) var(--gutter);
  align-items: start;
}
.prose__main { grid-column: 1 / span 7; }
.prose__main h2 {
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  margin: 0 0 var(--space-m);
}
.prose__lede {
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.4;
  color: var(--text-primary);
  max-width: 54ch;
  margin: 0;
  text-wrap: pretty;
}
.prose__support {
  grid-column: 9 / span 4;
  border-top: 1px solid var(--border-strong);
  padding-top: var(--space-s);
  color: var(--text-secondary);
  font-size: var(--text-small);
}
.prose__support p { max-width: 46ch; }
.prose__support p:last-child { margin-bottom: 0; }

/* ---------- the comparison: the claim large, the table beneath ---------- */
.statement {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-l);
}
.statement__text {
  font-family: var(--font-display);
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  color: var(--text-primary);
  margin: 0;
  max-width: 26ch;
}
.statement__source {
  color: var(--text-muted);
  font-size: var(--text-micro);
  max-width: var(--measure);
  margin: var(--space-s) 0 0;
}
/* The link to the price list is a target: it is at least as tall as a finger
   and it says so when it is hovered. */
/* The link under a claim: a **tap target**, not a line of text. */
.statement__link {
  display: inline-block;
  padding-block: 10px;
  color: var(--accent-text);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-line);
}
.statement__link:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---------- the table ---------- */
.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}
table { border-collapse: collapse; width: 100%; min-width: 32rem; }
/* the price sheet's own table is three narrow columns: it fits a phone, and
   a table that has to be scrolled sideways on a phone is a table that has
   been asked to carry more than it should */
.price-table { min-width: 0; }
.price-table caption {
  text-align: left;
  padding: var(--space-2xs) 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-table thead th {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid var(--text-primary);
}
.price-table td, .price-table th { padding: var(--space-xs) var(--space-m) var(--space-xs) 0; }
.price-table tbody tr:last-child td { border-bottom: 1px solid var(--border-strong); }
caption {
  text-align: left;
  padding: var(--space-2xs) 0 var(--space-2xs);
  color: var(--text-muted);
  font-size: var(--text-micro);
}
th, td {
  text-align: left;
  padding: var(--space-xs) var(--space-m) var(--space-xs) 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--text-small);
  vertical-align: top;
}
thead th {
  color: var(--text-muted);
  font-size: var(--text-micro);
  font-weight: 600;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
  padding-top: var(--space-2xs);
}
tbody tr:last-child td { border-bottom: 0; }
td.cell-num, th.cell-num { text-align: right; font-variant-numeric: tabular-nums; }
td.cell-nowrap { white-space: nowrap; }
tbody td:last-child { color: var(--text-muted); font-size: var(--text-micro); }
.table-note { color: var(--text-muted); font-size: var(--text-micro); margin-top: var(--space-2xs); max-width: var(--measure); }

/* ---------- the method, with its note in the margin ---------- */
.method {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: var(--space-l) var(--gutter);
  align-items: start;
}
.method__body { grid-column: 1 / span 7; }
.method__note {
  grid-column: 9 / span 4;
  border-left: 2px solid var(--accent);
  padding-left: var(--space-m);
  color: var(--text-secondary);
  font-size: var(--text-small);
}
.method__body p { max-width: var(--measure); color: var(--text-secondary); }
.method__body ul { margin: var(--space-s) 0 0; padding-left: 1.1rem; color: var(--text-secondary); }
.method__body li { margin-bottom: var(--space-2xs); }

/* ---------- questions ---------- */
.qa { border-top: 1px solid var(--border-strong); }
.qa details { border-bottom: 1px solid var(--rule); padding: var(--space-s) 0; }
.qa summary { cursor: pointer; font-weight: 600; font-size: var(--text-lead); }
.qa details p { margin: var(--space-xs) 0 0; color: var(--text-secondary); max-width: var(--measure); }

/* ---------- contact ---------- */
.contact-list { display: grid; gap: var(--space-s); }
.contact-list__item {
  border-bottom: 1px solid var(--rule);
  padding-bottom: var(--space-s);
  min-width: 0;
}
.contact-list__label {
  display: block;
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  color: var(--text-muted);
  font-weight: 600;
}
.contact-list__value {
  display: block;
  font-size: var(--text-lead);
  font-weight: 600;
  overflow-wrap: break-word;
  min-width: 0;
}
/* A link is a tap target, and a tap target is at least 24 pixels tall: the
   address and the booking link were 21, which is under the floor. */
.contact-list__value a,
.footer__line a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

/* ---------- buttons and the facts under them ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-m); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: 48px;
  padding: var(--space-xs) var(--space-l);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background-color: var(--accent);
  background-image: var(--gradient-accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: var(--text-small);
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); color: var(--accent-ink); }
.btn:active { transform: translateY(0); }
.btn__arrow { width: 15px; height: 15px; flex: none; }
.btn--ghost {
  background-color: transparent;
  background-image: none;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background-color: var(--surface-inset); border-color: var(--accent); color: var(--text-primary); filter: none; }

.cta-note__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-s);
  margin: var(--space-s) 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: var(--text-label);
}
.cta-note__facts li { display: flex; align-items: center; gap: var(--space-2xs); }
.cta-note__facts li + li::before {
  content: "";
  width: 1px;
  height: 0.9em;
  background: var(--border-strong);
}

/* ---------- the closing band: full bleed, the only big colour ---------- */
.band {
  background: var(--accent);
  color: var(--accent-ink);
  padding-block: var(--space-2xl);
  margin-top: var(--space-xl);
}
.band__inner {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: var(--space-l) var(--gutter);
  align-items: end;
}
.band__copy { grid-column: 1 / span 7; }
.band__action { grid-column: 9 / span 4; justify-self: end; text-align: right; }
.band h2 {
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  color: var(--accent-ink);
  margin: 0 0 var(--space-xs);
}
.band p { color: var(--accent-ink); opacity: 0.92; margin: 0; max-width: 52ch; }
.band .btn { background: var(--accent-inverse-bg); color: var(--accent-inverse-ink); }
.band .btn:hover { background: var(--accent-inverse-bg); color: var(--accent-inverse-ink); border-color: var(--accent-inverse-ink); }
.band .btn--ghost { background: transparent; color: var(--accent-ink); border-color: var(--accent-ink); }
.band .btn--ghost:hover { background: rgba(255, 255, 255, 0.14); color: var(--accent-ink); }
.band .cta-note__facts { color: var(--accent-ink); opacity: 0.92; justify-content: flex-end; }
.band .cta-note__facts li + li::before { background: rgba(255, 255, 255, 0.45); }

/* ---------- the footer: a mast ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: var(--space-2xl) var(--space-l);
}
.site-footer__mast {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: var(--space-l) var(--gutter);
  align-items: start;
}
.site-footer__name { grid-column: 1 / span 5; }
.site-footer__name h2 {
  font-family: var(--font-display);
  font-size: var(--text-display);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-display);
  margin: 0 0 var(--space-xs);
}
.site-footer__tagline { color: var(--text-secondary); max-width: 40ch; margin: 0; }
.site-footer__cols {
  grid-column: 6 / span 7;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-l);
}
.site-footer__cols > * { min-width: 0; }
.site-footer__grid { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1.3fr) repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.site-footer__grid > * { min-width: 0; }
.site-footer__label {
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  color: var(--text-muted);
  margin: 0 0 var(--space-xs);
  font-weight: 600;
  display: block;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); }
.site-footer a { display: inline-block; padding: 4px 0; color: var(--text-primary); text-decoration: none; }
.site-footer a:hover { color: var(--accent-text); text-decoration: underline; }
.footer__line {
  margin: 0 0 var(--space-2xs);
  font-size: var(--text-small);
  overflow-wrap: anywhere;
}
.footer__label { font-size: var(--text-label); letter-spacing: var(--tracking-label); color: var(--text-muted); font-weight: 600; }
.site-footer__bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-m);
  border-top: 1px solid var(--rule);
  color: var(--text-muted);
  font-size: var(--text-label);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-m);
  justify-content: space-between;
}
.mark { width: 44px; height: 44px; }


/* ---------- the gradient accent ---------- */
/* The one word that matters. It is only ever used at display size, where
   the ramp's ends both clear AA against the ground; the hard-contrast text
   never carries it. */
.grad {
  background-image: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad { color: var(--accent-text); }
}

/* ---------- the lockup: the mark beside the wordmark ---------- */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-m);
}
.lockup__mark { flex: none; }
.lockup__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* ---------- the page's substrate: the mark, pale, at the edge ---------- */
.masthead__ghost {
  position: absolute;
  left: -16%;
  top: -12%;
  width: min(76vw, 760px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
  filter: blur(1.5px);
}
.masthead__ghost svg { width: 100%; height: auto; }

/* ---------- the soft shapes at the edges ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.blob--1 { background: var(--blob-1); width: 46vw; height: 46vw; right: -14vw; top: -18vw; }
.blob--2 { background: var(--blob-2); width: 34vw; height: 34vw; left: -12vw; bottom: -14vw; }
.blob--3 { background: var(--blob-3); width: 26vw; height: 26vw; right: 18vw; bottom: -10vw; }

/* ---------- a generated illustration ---------- */
/* The illustration is a local hashed file, served from the site's own origin.
   It sits in the margin of the section it belongs to, and it carries no text:
   the words are the copy's job. */
.illustration { margin: var(--space-m) 0 0; }
.illustration img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-inset);
}

.running-head__name { color: var(--text-secondary); font-weight: 600; }
.running-head__sep { color: var(--border-strong); }

/* ---------- the focal element: one per page ---------- */
.section--focal { padding-block: var(--space-2xl); }
.section--focal .section__head h2 { font-size: var(--text-display); }

/* ---------- the price table, as a table of record ---------- */
.table--record {
  border-top: 2px solid var(--text-primary);
  border-bottom: 1px solid var(--border-strong);
}
.table--record table { min-width: 0; }
.table--record caption {
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: var(--text-micro);
  padding-top: var(--space-2xs);
}
.table--record thead th { color: var(--text-secondary); }
.table--record tbody td { font-variant-numeric: tabular-nums; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .masthead__copy { grid-column: 1 / span 7; }
  .masthead__figure { grid-column: 8 / span 5; }
  .listing__item { grid-column: span 6; }
  .flowline__step { grid-column: span 4; }
  .method__body { grid-column: 1 / span 8; }
  .method__note { grid-column: 9 / span 4; }
}

@media (max-width: 1023px) {
  /* Below the laptop width the wordmark, the links and the theme switch no
     longer fit on one line, and the theme switch was pushed off the edge of
     the screen. The navigation takes its own lines instead: every link stays
     on the page, and the switch stays on the bar. */
  .site-header__inner { flex-wrap: wrap; row-gap: var(--space-2xs); }
  .nav {
    order: 3;
    width: 100%;
    gap: var(--space-2xs) var(--space-m);
  }
  .theme-toggle { order: 2; margin-left: auto; }
}

@media (max-width: 860px) {
  .masthead__inner, .band__inner, .site-footer__mast, .method, .prose { grid-template-columns: minmax(0, 1fr); }
  .masthead__copy, .masthead__figure, .band__copy, .band__action,
  .method__body, .method__note, .site-footer__name, .site-footer__cols,
  .prose__main, .prose__support { grid-column: 1 / -1; }
  /* the words come first, the mechanism follows */
  .masthead__figure { order: 2; }
  .masthead__copy { order: 1; }
  .band__action { justify-self: start; text-align: left; }
  .band .cta-note__facts { justify-content: flex-start; }
  .specimen { grid-column: span 12; }
  .listing__item { grid-column: span 12; }
  .flowline__step { grid-column: span 6; }
  /* the substrate is the page's substrate on a phone as well: it is scaled
     and moved so the character's face is still in view */
  .masthead__substrate {
    top: -40px;
    left: -120px;
    width: min(120vw, 520px);
  }
  html[data-theme="light"] .masthead__substrate { opacity: 0.26; top: -70px; }
  html[data-theme="dark"] .masthead__substrate { opacity: 0.3; }
  /* the strip keeps its place at the foot of the hero: the copy and the
     figure are ordered around it, and without an order of its own it would
     jump to the top of the stack */
  .principles__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-s); }
    .principles__row li { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: var(--space-s); }
  .principles__row li:last-child { border-bottom: 0; padding-bottom: 0; }
  .site-footer__cols { grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); }
}

@media (max-width: 720px) {
  /* The twelve-column grids carry eleven column gaps. At two rem a gap the
     gaps alone are wider than a phone's content column, so the grid overflowed
     the page by ten pixels and the content beside it was cut. The gutter is
     the gap, so the gutter is what shrinks. */
  :root { --gutter: var(--space-s); }
  .site-header__inner { flex-wrap: wrap; gap: var(--space-xs); padding-block: var(--space-2xs); }
  .brand { margin-right: 0; }
  .theme-toggle { order: 2; margin-left: auto; }
  /* the navigation takes its own lines and wraps: every link is on the page */
  .nav {
    order: 3;
    width: 100%;
    gap: var(--space-2xs);
  }
  /* the links are set at the type floor on a phone, so all seven of them
     take two lines instead of three: a header that owns a third of the first
     screen is a header that has taken over the page */
  .nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: var(--text-micro);
    padding-inline: var(--space-3xs);
  }
  .theme-toggle__text { display: none; }
  .theme-toggle { padding: 0; width: 44px; justify-content: center; }
  .section, .section--raised, .section--sunken { padding-block: var(--space-xl); }
  .masthead { padding-block: var(--space-xl) var(--space-m); }
  h1 { max-width: none; }
  .band { padding-block: var(--space-xl); }
  .btn { width: 100%; }
  .cta-row { gap: var(--space-2xs); }
  .flowline__step { grid-column: span 12; }
  /* the price sheet's own table fits a phone: its cells carry less padding
     there, because a table that is wider than the column it sits in pushes
     the column wide and the page scrolls sideways */
  .price-table td, .price-table th { padding-right: var(--space-s); }
  /* the rail is horizontal while the steps stand side by side; in one column
     the arrow between two stops would point at nothing */
  .flowline__step:not(:last-child)::after { display: none; }
}

@media (max-width: 380px) {
  .wrap { width: min(100% - 2 * var(--space-xs), var(--wrap)); }
  .flow__legend { grid-template-columns: minmax(0, 1fr); }
  .principle p { font-size: var(--text-label); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .flow svg { filter: none; }
}


/* ===================== variant: specification sheet =====================
   The page is a document. The body is set in a serif at a wide measure, the
   apparatus — labels, rules, figures — is set in the mono face, and the
   supporting notes live in the left margin.

   **There are no numbers.** The human signed the gate with the note that
   the section numbers are "strange" and that the "2.1" numbers are "oddly
   formatted", and that they "should be fixed". The clause-number device was
   a legalese affectation: a number in the margin that addressed nothing a
   reader could cite, and a sub-clause number that addressed a section rather
   than a step. So the device is **removed**, not restyled. What carries the
   structure now is the rule and the margin: a section is a titled block under
   a rule, and a step is a stop on a rail. */
html[data-variant="specification-sheet"] .site-header {
  background: var(--surface-page);
  border-bottom: 1px solid var(--text-primary);
}
html[data-variant="specification-sheet"] .nav a { font-size: var(--text-small); }
@media (max-width: 720px) {
  /* the specification sheet's own navigation is larger than the base one, so
     it needs its own small-width rule: on a phone the seven links have to
     take two lines, not three */
  html[data-variant="specification-sheet"] .nav a { font-size: var(--text-micro); }
}
html[data-variant="specification-sheet"] .lead { font-family: var(--font-body); }
html[data-variant="specification-sheet"] h1,
html[data-variant="specification-sheet"] h2,
html[data-variant="specification-sheet"] h3,
html[data-variant="specification-sheet"] h4 { font-family: var(--font-display); }

/* the drawing is a captioned plate under the text: the caption says what the
   drawing shows, and it is not numbered */
html[data-variant="specification-sheet"] .flow {
  border-top: 1px solid var(--text-primary);
  padding-top: var(--space-s);
}
html[data-variant="specification-sheet"] .flow__caption {
  margin: var(--space-2xs) auto 0;
  max-width: 360px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
html[data-variant="specification-sheet"] .flow__legend {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xs);
  max-width: 34ch;
}
html[data-variant="specification-sheet"] .flow svg {
  filter: none;
  max-width: 360px;
  margin-inline: auto;
}

/* The head of a section: the title stands in the margin and the lead stands
   beside it, under one rule. The title was a number in that margin; now the
   title itself is there, and it is the thing a reader can point at. */
html[data-variant="specification-sheet"] .section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xs);
  max-width: none;
  border-top: 2px solid var(--text-primary);
  padding-top: var(--space-s);
  position: relative;
}
html[data-variant="specification-sheet"] .section__head h2 { grid-column: 1; }
html[data-variant="specification-sheet"] .section__head p { grid-column: 1; }

/* the rule draws itself across the head of the section */
html[data-variant="specification-sheet"] .section__head::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: dc-rule 900ms var(--ease-out) forwards;
}
@keyframes dc-rule { to { transform: scaleX(1); } }

/* the supporting note is a marginal note */
html[data-variant="specification-sheet"] .prose__main p { font-family: var(--font-body); }

/* the claim is a pull-quote */
html[data-variant="specification-sheet"] .statement__text {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.15rem + 1.2vw, 2.125rem);
  line-height: 1.26;
  max-width: 30ch;
  border-left: 3px solid var(--warm);
  padding-left: var(--space-l);
}
html[data-variant="specification-sheet"] .statement__source { font-family: var(--font-mono); }

/* the catalogue is a schedule of entries */
html[data-variant="specification-sheet"] .specimens { counter-reset: entry; }
html[data-variant="specification-sheet"] .specimen {
  border-top: 1px solid var(--text-primary);
  padding-top: var(--space-s);
  counter-increment: entry;
}
html[data-variant="specification-sheet"] .specimen h3::before {
  content: counter(entry) ". ";
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* The marginal note is a device of the register, so it has to be READABLE at
   the size it is set: it is set at the body size in the apparatus face, in
   the outer margin, where it has the measure to be read in. */
html[data-variant="specification-sheet"] .prose__support {
  border-top: 0;
  border-left: 1px solid var(--border-strong);
  border-right: 0;
  padding-top: 0;
  padding-left: var(--space-m);
  padding-right: 0;
  font-family: var(--font-mono);
  font-size: var(--text-small);
  line-height: var(--leading-body);
}

/* the price sheet: each block of figures is a section of its own */
html[data-variant="specification-sheet"] .price-block { margin-top: var(--space-xl); }
html[data-variant="specification-sheet"] .price-block h3 {
  font-size: var(--text-title);
  margin: 0 0 var(--space-s);
}
html[data-variant="specification-sheet"] .price-block:first-of-type { margin-top: var(--space-l); }

/* the tables are the specification's own tables */
html[data-variant="specification-sheet"] thead th,
html[data-variant="specification-sheet"] caption {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
html[data-variant="specification-sheet"] td { font-family: var(--font-body); }
html[data-variant="specification-sheet"] td.cell-num,
html[data-variant="specification-sheet"] .specimen__amount,
html[data-variant="specification-sheet"] .specimen__version-price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* the buttons are pills: the primary one carries the gradient, the
   secondary one is an outline */
html[data-variant="specification-sheet"] .btn {
  border-radius: var(--radius-pill);
  padding-inline: var(--space-l);
  min-height: 52px;
  font-size: var(--text-small);
}
html[data-variant="specification-sheet"] .btn:not(.btn--ghost) {
  background: var(--gradient-accent);
  color: #ffffff;
  border-color: transparent;
}
html[data-variant="specification-sheet"] .btn:not(.btn--ghost):hover {
  background: var(--gradient-accent);
  filter: brightness(1.08);
  transform: translateY(-1px);
}
html[data-variant="specification-sheet"] .btn--ghost {
  border-radius: var(--radius-pill);
  border-color: var(--border-strong);
  background: transparent;
}
html[data-variant="specification-sheet"] .btn--ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
html[data-variant="specification-sheet"] .band .btn:not(.btn--ghost) {
  background: var(--gradient-accent);
  color: #ffffff;
}

/* **The choices are a decision, not three cards.**
   The section is called "Choose the starting point", and it used to answer
   that name with three flat columns of text under a number in the margin.
   Now the block is a **branch**: the rule under the head turns down the left
   margin, every row has its own stop on that line, and each row says what
   the choice is, what it costs and where it leads. The layout carries the
   choice, which is what the human asked for. */
html[data-variant="specification-sheet"] .listing {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  position: relative;
  padding-left: var(--space-m);
  border-top: 2px solid var(--text-primary);
}
/* the line the choices branch from */
html[data-variant="specification-sheet"] .listing::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--accent-line);
}
html[data-variant="specification-sheet"] .listing__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-column: 1 / -1;
  gap: var(--space-2xs);
  padding: var(--space-m) 0;
  border-bottom: 1px solid var(--rule);
}
/* the stop: this row's own place on the line */
html[data-variant="specification-sheet"] .listing__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-m) - 4px);
  top: calc(var(--space-m) + 0.45rem);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
html[data-variant="specification-sheet"] .listing__item h3 {
  grid-column: 1;
  margin: 0;
}
html[data-variant="specification-sheet"] .listing__item p {
  grid-column: 1;
  margin: 0;
}
html[data-variant="specification-sheet"] .listing__note {
  grid-column: 1;
  margin: 0;
}
html[data-variant="specification-sheet"] .listing__more {
  grid-column: 1;
  justify-self: start;
  margin-top: var(--space-2xs);
}
/* the arrow: the row leads somewhere */
html[data-variant="specification-sheet"] .listing__more::after {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.45rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  vertical-align: middle;
  transition: transform var(--duration-base) var(--ease-out);
}
/* The arrow travels along its own direction when the row is under the
   pointer. The row is a primary target, so it moves rather than only
   changing colour, and the movement is the arrow and nothing else. */
html[data-variant="specification-sheet"] a.listing__item:hover .listing__more::after {
  transform: translateX(0.28rem) rotate(45deg);
}

/* the title block: the peak of the page */
html[data-variant="specification-sheet"] h1 {
  font-size: var(--text-mega);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 13ch;
}
html[data-variant="specification-sheet"] .masthead__copy .lead {
  font-size: var(--text-lead);
  max-width: 40ch;
  color: var(--text-secondary);
}

/* the price table is a table of record: the provenance is a dated note in
   the margin, not a line under the table */
html[data-variant="specification-sheet"] .table-note {
  border-left: 2px solid var(--accent-line);
  padding-left: var(--space-s);
  max-width: 42ch;
  margin-top: var(--space-s);
}
html[data-variant="specification-sheet"] .table-wrap {
  border-top: 2px solid var(--text-primary);
}
html[data-variant="specification-sheet"] thead th {
  border-bottom: 1px solid var(--border-strong);
}
html[data-variant="specification-sheet"] td {
  font-variant-numeric: tabular-nums;
}

/* the closing band is a ruled block, not a shout */
html[data-variant="specification-sheet"] .band {
  background: transparent;
  color: var(--text-primary);
  border-top: 2px solid var(--text-primary);
  border-bottom: 1px solid var(--rule);
}
html[data-variant="specification-sheet"] .band h2 { color: var(--text-primary); }
html[data-variant="specification-sheet"] .band p { color: var(--text-secondary); }
html[data-variant="specification-sheet"] .band .cta-note__facts { color: var(--text-muted); }
html[data-variant="specification-sheet"] .band .cta-note__facts li + li::before { background: var(--border-strong); }
html[data-variant="specification-sheet"] .band .btn { background: var(--accent); color: var(--accent-ink); }
html[data-variant="specification-sheet"] .band .btn:hover { background: var(--accent-hover); }
html[data-variant="specification-sheet"] .band .btn--ghost { color: var(--text-primary); border-color: var(--border-strong); }
html[data-variant="specification-sheet"] .band .btn--ghost:hover { background: var(--surface-inset); color: var(--text-primary); }

/* The substrate: the owner's drawing in the cloudy gray, large and pale, and
   masked so that it dissolves towards the text. */
html[data-variant="specification-sheet"] .masthead__mark {
  top: calc(-1 * var(--space-xl));
  right: 0;
  width: min(28vw, 380px);
}

/* The mark, pale, bleeding off the edge of the page: the content sits over
   it, and it is the substrate the page is drawn on. */
html[data-variant="specification-sheet"] .masthead__ghost {
  left: -19%;
  top: -16%;
  width: min(82vw, 820px);
  opacity: 0.62;
  filter: blur(2px);
}

/* the focal element: one per page, and it is the only thing on the page
   that is set at display size */
html[data-variant="specification-sheet"] .section--focal {
  border-top: 2px solid var(--text-primary);
  border-bottom: 1px solid var(--rule);
  background: var(--surface-raised);
}
html[data-variant="specification-sheet"] .section--focal .section__head h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  line-height: 1.16;
}
html[data-variant="specification-sheet"] .section--focal .statement__text {
  font-size: clamp(1.5rem, 1.25rem + 1.3vw, 2.25rem);
}

/* the marginal note is a first-class device: a ruled column in the margin,
   set in the document's own apparatus face */
html[data-variant="specification-sheet"] .method__note {
  border-left: 2px solid var(--accent);
}

/* the price table, as a table of record: ruled, tabular, and captioned in
   the document's own voice */
html[data-variant="specification-sheet"] .table--record thead th {
  font-size: var(--text-micro);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--text-primary);
  letter-spacing: 0.08em;
}
html[data-variant="specification-sheet"] .table--record td {
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--rule);
}
html[data-variant="specification-sheet"] .table--record tbody tr:last-child td {
  border-bottom: 1px solid var(--border-strong);
}

@media (min-width: 861px) {
  html[data-variant="specification-sheet"] .wrap { width: min(100% - 2 * var(--space-m), 1160px); }
  /* the title stands in the margin, the lead beside it */
  html[data-variant="specification-sheet"] .section__head {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    column-gap: var(--space-xl);
    align-items: start;
  }
  html[data-variant="specification-sheet"] .section__head h2 { grid-column: 1; grid-row: 1; }
  html[data-variant="specification-sheet"] .section__head p { grid-column: 2; grid-row: 1; }
  /* a prose section has the marginal note beside it already, so its head
     stays in one column */
  html[data-variant="specification-sheet"] .prose__head {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-variant="specification-sheet"] .prose__head h2 { grid-column: 1; grid-row: 1; }
  html[data-variant="specification-sheet"] .prose__head p { grid-column: 1; grid-row: 2; }
  /* the rows of the choice: what it is | what it costs | where it leads */
  html[data-variant="specification-sheet"] .listing__item {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(0, 12rem);
    column-gap: var(--space-xl);
    align-items: start;
  }
  html[data-variant="specification-sheet"] .listing__item h3 { grid-column: 1; grid-row: 1 / span 3; }
  html[data-variant="specification-sheet"] .listing__item p { grid-column: 2; grid-row: 1; }
  html[data-variant="specification-sheet"] .listing__note { grid-column: 2; grid-row: 2; }
  html[data-variant="specification-sheet"] .listing__more {
    grid-column: 3;
    grid-row: 1 / span 3;
    justify-self: end;
    text-align: right;
    margin-top: 0;
  }
  html[data-variant="specification-sheet"] .masthead__copy { grid-column: 1 / span 6; }
  html[data-variant="specification-sheet"] .masthead__figure {
    grid-column: 8 / span 5;
    margin-top: 0;
    align-self: center;
  }
  html[data-variant="specification-sheet"] .masthead__figure .flow {
    border-top: 0;
    padding-top: 0;
  }
  html[data-variant="specification-sheet"] .masthead__figure .flow svg {
    max-width: 420px;
  }
  html[data-variant="specification-sheet"] .masthead__figure .flow__caption {
    max-width: 420px;
  }
  /* The text runs from the left edge and the marginal note sits in the
     **outer** margin, where it has the measure to be read in. The other
     arrangement put the note in a three-column strip on the left and left
     the rest of the page empty. */
  html[data-variant="specification-sheet"] .prose__main { grid-column: 1 / span 7; }
  html[data-variant="specification-sheet"] .prose__support { grid-column: 9 / span 4; }
  html[data-variant="specification-sheet"] .specimen { grid-column: span 6; }
}
