/* Hallmark · shape: three surfaces, one kit · genre: editorial · theme: custom (Corbel kit, pinned by request) · job: hire (construction) and book (agents) · gateway: two doors, each showing its world at work · construction: the site record, calm · agents: the office at work, scroll-driven workbenches in depth · imagery: none yet, documents and drafts carry the pages until photographs arrive
 * axes: one light world, four colours: white, soft blue, black, one brown · contrast: pass · fold: pass · v2.1.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: E, no photographs yet; each surface shows its own paperwork at work instead */
/* Hallmark · waive 7b · pure white is pinned by the owner: white for every background is one of the four colours, by request */
/* Hallmark · waive 64 · IBM Plex Mono is the outlier face, set on labels, data and stamps · the Corbel kit names Plex Mono as its label, data and stamp face, so mono is the brand voice here, not a default */
/* Hallmark · answered F15 · the plain pages keep the 64px split gap; each surface sets its own gaps in its own stylesheet because the three buyers get three systems */

/* Base: tokens, type, controls, stamps, header, footer and the pages that are not scenes (company, forms, legal, 404).
   Each surface adds its own system on top: gateway.css (two doors), construction.css (the site record, day) and
   agents.css (the office at work, scroll-driven workbenches). */
@view-transition { navigation: auto; }

:root {
  /* The whole palette. Four colours and nothing else (check.py fails any other): white for every background, soft blue
     for whatever is in progress, black for text and rules, brown for the one thing to press. Everything below derives. */
  --paper: #ffffff; --sky: #bcddf2; --ink: #13212c; --brown: #7a4a28;
  --ink-muted: rgb(19 33 44 / 0.7); --ink-faint: rgb(19 33 44 / 0.4);
  --line: var(--sky); --line-strong: var(--ink);
  --paper-raised: var(--paper); --paper-high: var(--paper); --paper-sunk: var(--sky);
  --on-sky: var(--ink); --sky-deep: var(--ink); --ink-press: var(--ink);
  --brown-press: color-mix(in srgb, var(--brown) 84%, var(--ink)); --on-brown: var(--paper);
  --focus: var(--ink);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px;
  --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-1: 4px;
  --font-display: Archivo, "Arial Narrow", system-ui, sans-serif;
  --font-body: Archivo, system-ui, sans-serif;
  --font-outlier: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --set: cubic-bezier(0.16, 1, 0.3, 1);
  --state: 160ms;
  --lay: 560ms;
  --turn: 900ms;
  --pass: 1100ms;
  --hd: 68px;
  --gutter: clamp(16px, 4.5vw, 64px);
  --pad-face: clamp(20px, 3vw, 48px);
  --pad-page: clamp(48px, 8svh, 96px);
  --pad-hero: clamp(48px, 9svh, 112px);
  --pad-arrive: clamp(32px, 7svh, 88px);
  --pad-pin: clamp(24px, 5svh, 56px);
  --joint: var(--paper);
  --joint: var(--paper);
  /* Drawing tones for the workbenches: black lines, soft-blue fills. */
  --draw: var(--ink); --draw-faint: var(--ink-faint); --fill-dim: var(--sky); --fill-dep: var(--sky);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scrollbar-color: var(--ink-muted) var(--paper-sunk); accent-color: var(--brown); scroll-padding-top: calc(var(--hd) + 20px); background: var(--paper); }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; caret-color: var(--brown); }
::selection { background: var(--sky); color: var(--on-sky); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: var(--ink); text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 0.22em; transition: text-decoration-color var(--state); }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; transition: none; }
.skip { position: absolute; left: var(--space-4); top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: var(--space-3) var(--space-4); border-radius: var(--radius-1); }
.skip:focus-visible, .skip:focus { top: var(--space-4); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: 1376px; margin-inline: auto; padding-inline: var(--gutter); }

/* Type */
.display-xl, .display, h1, h2.display { font-family: var(--font-display); font-weight: 700; font-stretch: 112.5%; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.display-xl { font-size: clamp(44px, 7vw, 96px); line-height: 0.94; letter-spacing: -0.02em; max-width: 13ch; }
.display { font-size: clamp(32px, 4.2vw, 56px); line-height: 0.98; letter-spacing: -0.015em; }
.h2 { font: 600 24px/1.2 var(--font-display); }
.lede { font-size: 19px; line-height: 1.5; max-width: 52ch; text-wrap: pretty; }
.label { font: 500 13px/1.35 var(--font-outlier); }
.data { font: 400 14px/1.4 var(--font-outlier); font-variant-numeric: tabular-nums; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: var(--space-3) var(--space-6); border: 2px solid transparent; border-radius: var(--radius-1); font: 600 16px/1.2 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--state), border-color var(--state), color var(--state), transform var(--state); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.btn-primary { background: var(--brown); color: var(--on-brown); }
.btn-primary:hover { background: var(--brown-press); }
.btn-secondary { background: var(--ink); color: var(--paper); }
.btn-secondary:hover { background: var(--sky); color: var(--ink); border-color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover { background: var(--paper-sunk); border-color: var(--ink); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--paper-sunk); color: var(--ink-muted); border-color: transparent; cursor: not-allowed; transform: none; }
.link { color: var(--ink); font-weight: 600; text-decoration-color: var(--sky); text-decoration-thickness: 2px; }
.link:hover { text-decoration-color: var(--ink); }
.link:active { text-decoration-thickness: 3px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-8); margin-top: var(--space-8); }

/* Stamps: the kit's five, exact wording */
.stamp { display: inline-flex; align-items: center; white-space: nowrap; padding: var(--space-2) var(--space-3); border: 2px solid; border-radius: var(--radius-1); font: 600 12px/1 var(--font-outlier); }
.stamp-verified { color: var(--ink); border-color: var(--ink); }
.stamp-reported { color: var(--ink); border-color: var(--ink); border-style: dashed; }
.stamp-unknown { color: var(--ink-muted); border-color: var(--ink-muted); border-style: dotted; }
.stamp-conflict { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stamp-needs { background: var(--brown); color: var(--on-brown); border-color: var(--brown); }

/* Courses drawing */
.courses .f-ink { fill: var(--ink); }
.courses .f-paper { fill: var(--paper); }
.courses .f-sky { fill: var(--sky); }
.courses .f-skydeep { fill: var(--ink); }
.courses .f-brown { fill: var(--brown); }
.courses .joint { fill: var(--joint); }

/* Header: the brown-capped mark beside the wordmark, the side's nav, and a black outline button, so the one brown on any
   screen is always something on the page itself. */
.hd { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); view-transition-name: header; }
.hd-in { display: flex; align-items: center; gap: var(--space-6); min-height: var(--hd); }
.hd-logo { flex: none; margin-right: auto; display: inline-flex; align-items: center; gap: var(--space-2); }
.hd-logo .mk { width: 26px; height: 26px; }
.hd-logo .wm { width: auto; height: 21px; }
.hd-turn, .hd-nav a { color: inherit; font: 600 15px/1.2 var(--font-body); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--sky); padding: var(--space-2) 0; transition: text-underline-offset var(--state), text-decoration-color var(--state); }
.hd-turn:hover, .hd-nav a:hover { text-underline-offset: 8px; text-decoration-color: var(--ink); }
.hd-turn:active, .hd-nav a:active { text-decoration-thickness: 3px; }
.hd-nav { display: flex; gap: var(--space-6); }
.hd-act { display: flex; align-items: center; gap: var(--space-6); }
.hd-side { color: var(--ink-muted); font: 500 14px/1.2 var(--font-body); text-decoration: none; padding: var(--space-2) 0; transition: color var(--state); }
.hd-side:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--sky); }
.hd-act .btn { min-height: 44px; padding-inline: var(--space-4); font-size: 15px; }
.hd-c .hd-nav, .hd-a .hd-nav { margin-right: auto; }
.hd-c .hd-logo, .hd-a .hd-logo { margin-right: var(--space-6); }
.hd-c .hd-nav a, .hd-a .hd-nav a { text-decoration: none; font-weight: 500; }
.hd-c .hd-nav a:hover, .hd-a .hd-nav a:hover, .hd-a .hd-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--sky); }
.hd-a .hd-nav a { color: var(--ink-muted); }
.hd-a .hd-nav a:hover, .hd-a .hd-nav a[aria-current] { color: var(--ink); }
.hd-a .hd-nav a[aria-current] { text-decoration-color: var(--ink); }

/* Plain page heroes (company) and sections */
.hero { overflow: clip; padding-block: var(--pad-hero); }
.hero-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-12); align-items: end; }
.hero .lede { margin-top: var(--space-6); }
.hero-co { border-bottom: 2px solid var(--ink); }
.sec { padding-block: var(--space-24); }
.sec-sunk { border-top: 2px solid var(--ink); }
.sec-head { max-width: 880px; margin-bottom: var(--space-12); }
.sec-head .lede, .split-head .lede { margin-top: var(--space-4); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-12) var(--space-16); align-items: start; }
.split-head { position: sticky; top: calc(var(--hd) + 36px); }
.long { display: grid; gap: var(--space-6); max-width: 62ch; }
.long .data { color: var(--ink-muted); }

/* Monday report */
.rp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-6); padding-bottom: var(--space-3); border-bottom: 2px solid var(--ink); }
.rp-title { font: 600 24px/1.2 var(--font-display); }
.rp-head .data { color: var(--ink-muted); }
.rp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-4); align-items: start; padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
.rp-what { font-weight: 600; }
.rp-why { font-size: 15px; line-height: 1.45; color: var(--ink-muted); margin-top: var(--space-1); max-width: 52ch; }
.rp-note { color: var(--ink-muted); margin-top: var(--space-4); }

/* Company: the corbel drawn large in the hero, and the two businesses as a ledger with the agents column in soft blue. */
.co-art { width: 100%; max-width: 520px; justify-self: end; }
.tbl-wrap { overflow-x: auto; }
.two { width: 100%; min-width: 640px; border-collapse: collapse; }
.two thead th { text-align: left; font: 700 28px/1.1 var(--font-display); font-stretch: 112.5%; padding: var(--space-4); border-bottom: 2px solid var(--ink); }
.two thead th + th { background: var(--sky); }
.two th[scope="row"] { text-align: left; vertical-align: top; width: 18%; font: 500 14px/1.35 var(--font-outlier); color: var(--ink-muted); padding: var(--space-6) var(--space-6) var(--space-6) 0; border-top: 1px solid var(--line); }
.two td { vertical-align: top; font-size: 17px; padding: var(--space-6) var(--space-4); border-top: 1px solid var(--line); }
.two td + td { box-shadow: inset 2px 0 0 var(--ink); }

/* Forms: every request is a job sheet. A soft-blue head, ruled rows, mono labels on the left, and the row you are filling
   in turns soft blue. The brown button sits under the sheet. */
.form-sec { padding-block: var(--pad-page) var(--space-24); }
.form-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-12) var(--space-16); align-items: start; }
.form-head { position: sticky; top: calc(var(--hd) + 36px); display: grid; gap: var(--space-6); }
.form-notes { color: var(--ink-muted); font-size: 15px; display: grid; gap: var(--space-2); max-width: 44ch; }
.form { display: grid; background: var(--paper); border: 2px solid var(--ink); }
.sheet-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: var(--space-3) var(--space-4); background: var(--sky); border-bottom: 2px solid var(--ink); }
.sheet-top b { font: 700 18px/1.1 var(--font-display); font-stretch: 112.5%; }
.sheet-top span { font: 400 12px/1.3 var(--font-outlier); }
.fld { display: grid; grid-template-columns: 180px minmax(0, 1fr); border-bottom: 1px solid var(--line); transition: background-color var(--state); }
.fld:focus-within { background: var(--sky); }
.fld label { grid-column: 1; grid-row: 1 / span 3; padding: var(--space-4); border-right: 1px solid var(--line); font: 500 13px/1.4 var(--font-outlier); }
.fld:focus-within label { border-right-color: var(--ink); }
.fld > input, .fld > textarea, .fld > .sel { grid-column: 2; grid-row: 1; }
.fld .hint { grid-column: 2; grid-row: 2; padding: 0 var(--space-4) var(--space-3); }
.fld .err { grid-column: 2; grid-row: 3; padding: 0 var(--space-4) var(--space-3); }
.opt { font: 400 12px/1 var(--font-outlier); color: var(--ink-muted); margin-left: var(--space-2); }
.hint { font-size: 14px; color: var(--ink-muted); }
.fld input, .fld select, .fld textarea { width: 100%; font: 400 17px/1.4 var(--font-body); color: var(--ink); background: transparent; border: 0; border-radius: 0; padding: var(--space-4); }
.fld textarea { resize: vertical; min-height: 120px; }
.sel { position: relative; display: block; }
.sel::after { content: ""; position: absolute; right: 16px; top: calc(50% - 4px); width: 12px; height: 8px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 50% 100%); pointer-events: none; }
.fld select { appearance: none; padding-right: 44px; cursor: pointer; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--ink-muted); }
.fld input:focus-visible, .fld select:focus-visible, .fld textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.fld input:disabled, .fld select:disabled, .fld textarea:disabled { color: var(--ink-muted); cursor: not-allowed; }
.fld [aria-invalid="true"] { outline: 2px dashed var(--ink); outline-offset: -4px; }
.err { font-size: 14px; font-weight: 600; }
.form-foot { display: grid; gap: var(--space-3); justify-items: start; padding: var(--space-4); }
.form-status { margin: 0 var(--space-4) var(--space-4); background: var(--sky); color: var(--on-sky); padding: var(--space-6); display: grid; gap: var(--space-2); }
.form-status[hidden] { display: none; }
.form-status p:first-child { font-weight: 600; }

/* The job picker (agents close and the walkthrough page). Send us one job: start with the job. Picking a tile lights the agent who would take it and says what comes back. */
.book-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-6); }
.route { display: flex; flex-wrap: wrap; font: 500 13px/1.3 var(--font-outlier); }
.route li { padding: var(--space-2) var(--space-3); border: 1px solid var(--ink); margin-left: -1px; transition: background-color 400ms var(--set); }
.route li.now { background: var(--sky); }
.picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: var(--space-8) 0 0; padding: 0; border: 2px solid var(--ink); min-width: 0; }
.pick { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-6); min-height: 240px; padding: 20px; border-right: 2px solid var(--ink); background: var(--paper); cursor: pointer; transition: background-color 300ms var(--set); }
.pick:last-of-type { border-right: 0; }
.pick:hover { background: var(--sky); }
.pick .job { font: 650 21px/1.15 var(--font-display); }
.pick .who { display: block; font: 800 40px/1 var(--font-display); font-stretch: 120%; letter-spacing: -0.02em; color: var(--ink-muted); transition: color 300ms var(--set), transform 500ms var(--set); }
.pick .does { display: block; min-height: 4.4em; font-size: 15px; line-height: 1.45; opacity: 0; transition: opacity 300ms var(--set); }
.pick:has(input:checked), .pick.on { background: var(--sky); }
.pick:has(input:checked) .who, .pick.on .who { color: var(--ink); transform: translateY(-6px); }
.pick:has(input:checked) .does, .pick.on .does { opacity: 1; }
.pick:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: -6px; }
.pick:active .who { transform: translateY(-2px); }
.who-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: var(--space-4); align-items: end; margin-top: var(--space-6); }
.wf { display: grid; gap: var(--space-2); }
.wf label { font: 500 13px/1.3 var(--font-outlier); }
.wf input { width: 100%; min-height: 48px; padding: var(--space-3); border: 1px solid var(--ink); border-radius: var(--radius-1); background: var(--paper); color: var(--ink); font: 400 16px/1.2 var(--font-body); transition: background-color var(--state); }
.wf input:hover { background: var(--sky); }
.wf input:focus-visible { background: var(--sky); outline: 2px solid var(--ink); outline-offset: 2px; }
.wf input[aria-invalid="true"] { border-style: dashed; outline: 1px dashed var(--ink); outline-offset: -3px; }
.pickform .hint { margin-top: var(--space-4); }
.pickform .form-err { margin-top: var(--space-4); }
.pickform .form-status { margin-top: var(--space-4); }
/* The same picker sits at the top of the walkthrough page's job sheet. */
.form .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 0; border-bottom: 2px solid var(--ink); }
.form .pick { min-height: 180px; border-bottom: 1px solid var(--ink); }
.form .pick:nth-of-type(2n) { border-right: 0; }
.form .pick:nth-last-of-type(-n+2) { border-bottom: 0; }
.form .pick .who { font-size: 32px; }
/* Legal and 404 */
.legal { padding-block: var(--pad-page) var(--space-24); }
.legal-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-12) var(--space-16); align-items: start; }
.legal-head { position: sticky; top: calc(var(--hd) + 36px); display: grid; gap: var(--space-6); }
.draft { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 2px dashed var(--ink); font-size: 14px; }
.toc { display: grid; font-size: 15px; }
.toc a { display: block; padding: var(--space-2) 0 var(--space-2) var(--space-3); border-left: 2px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color var(--state); }
.toc a:hover { border-left-color: var(--ink-muted); }
.toc a[aria-current] { border-left-color: var(--ink); font-weight: 600; }
.prose { max-width: 68ch; font-size: 17px; }
.prose h2 { margin: var(--space-12) 0 var(--space-3); }
.prose h2:first-child { margin-top: 0; }
/* 404: the two doors again, small, so a lost visitor still picks a side. */
.nf-in { padding-block: var(--space-16) var(--space-24); display: grid; gap: var(--space-6); }
.nf-doors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: var(--space-6); border: 2px solid var(--ink); }
.nf-door { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-12); min-height: 260px; padding: var(--space-6); color: var(--ink); text-decoration: none; }
.nf-door + .nf-door { background: var(--sky); border-left: 2px solid var(--ink); }
.nf-door span { font: 500 13px/1.3 var(--font-outlier); }
.nf-door b { font: 800 clamp(30px, 3.4vw, 48px)/0.95 var(--font-display); font-stretch: 115%; letter-spacing: -0.02em; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: transparent; transition: text-decoration-color var(--state); }
.nf-door:hover b, .nf-door:focus-visible b { text-decoration-color: currentColor; }
.nf-door:active b { text-decoration-thickness: 4px; }
.nf-door:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }

/* Footer: end on the logo. Three short columns, then the software line and the address. */
.ft { border-top: 2px solid var(--ink); padding-block: var(--space-12) var(--space-6); }
.ft-in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.6fr)); gap: var(--space-8); }
.ft-brand p { margin-top: var(--space-4); max-width: 36ch; font-size: 15px; color: var(--ink-muted); }
.ft-logo { display: inline-flex; align-items: center; gap: var(--space-4); }
.ft-logo .mk { width: 40px; height: 40px; }
.ft-logo .wm { width: auto; height: 32px; }
.ft h2 { margin-bottom: var(--space-2); font: 500 12px/1.3 var(--font-outlier); color: var(--ink-muted); }
.ft-col a { display: block; padding: var(--space-1) 0; color: var(--ink); font-size: 15px; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color var(--state); }
.ft-col a:hover { text-decoration-color: var(--sky); }
.ft-col a:active { text-decoration-color: var(--ink); }
.ft-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3) var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); }
.ft-base nav { display: flex; gap: var(--space-6); }
.ft-base a { color: var(--ink); }

@media (max-width: 899px) {
  .hd-c .hd-nav, .hd-a .hd-nav, .hd-side { display: none; }
  .hd-c .hd-logo, .hd-a .hd-logo { margin-right: auto; }
  .hero-in, .split, .form-in, .legal-in { grid-template-columns: minmax(0, 1fr); }
  .ft-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .route { flex-direction: column; }
  .route li { margin: -1px 0 0; }
  .picks { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pick { min-height: 200px; border-bottom: 2px solid var(--ink); }
  .pick:nth-of-type(2n) { border-right: 0; }
  .pick:nth-last-of-type(-n+2) { border-bottom: 0; }
  .pick .who { font-size: 30px; }
  .who-row { grid-template-columns: minmax(0, 1fr); }
  .ft-brand { grid-column: 1 / -1; }
  .co-art { justify-self: start; max-width: 360px; }
  .split-head, .form-head, .legal-head { position: static; }
}
@media (max-width: 599px) {
  :root { --hd: 60px; }
  .hd-in { gap: var(--space-3); }
  .hd-logo .mk { width: 22px; height: 22px; }
  .hd-logo .wm { height: 18px; }
  .fld { grid-template-columns: minmax(0, 1fr); }
  .fld label { grid-row: auto; border-right: 0; padding-bottom: 0; }
  .fld > input, .fld > textarea, .fld > .sel, .fld .hint, .fld .err { grid-column: 1; grid-row: auto; }
  .nf-doors { grid-template-columns: minmax(0, 1fr); }
  .nf-door + .nf-door { border-left: 0; border-top: 2px solid var(--ink); }
  .nf-door { min-height: 180px; }
  .hd-act .btn { min-height: 40px; padding-inline: var(--space-3); font-size: 14px; }
  .rp-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .rp-row .stamp { justify-self: start; }
  .pick { min-height: 0; gap: var(--space-3); padding: var(--space-4); }
  .pick .does { display: none; min-height: 0; }
  .pick:has(input:checked) .does, .pick.on .does { display: block; }
  .pick .who { font-size: 26px; }
  .form .pick { min-height: 0; }
  .form .pick .who { font-size: 26px; }
  .sec { padding-block: var(--space-16); }

  /* Job-sheet forms on a phone: each answer sits on a visible line, so a row reads as a blank to fill, not white space. */
  .fld > input, .fld > textarea, .fld > .sel { width: auto; margin: 0 var(--space-4) var(--space-4); }
  .fld input, .fld select, .fld textarea { padding: var(--space-2) 0; border-bottom: 2px solid var(--ink); }
  .fld textarea { min-height: 96px; }

  /* The company ledger on a phone: each row is the question, then the construction answer, then the agents answer on
     soft blue, instead of a table wider than the screen. */
  .tbl-wrap { overflow: visible; }
  .two { min-width: 0; }
  .two thead { display: none; }
  .two tr { display: grid; padding: var(--space-6) 0; border-top: 1px solid var(--line); }
  .two th[scope="row"], .two td { width: auto; padding: 0; border: 0; box-shadow: none; }
  .two th[scope="row"] { padding-bottom: var(--space-3); }
  .two td { font-size: 16px; }
  .two td::before { content: "Construction"; display: block; margin-bottom: var(--space-1); font: 500 12px/1.3 var(--font-outlier); color: var(--ink-muted); }
  .two td + td { margin-top: var(--space-3); padding: var(--space-3); background: var(--sky); box-shadow: none; }
  .two td + td::before { content: "Agents"; }

  /* Privacy and terms on a phone: the contents become one row of tabs that stays under the header while you read,
     instead of a screen of links before the first word. */
  .legal-head { display: contents; }
  .legal-in nav { position: sticky; top: var(--hd); z-index: 5; margin: 0 calc(-1 * var(--gutter)); background: var(--paper); border-bottom: 1px solid var(--line); }
  .legal-in .toc { display: flex; gap: var(--space-2); padding: var(--space-3) var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .toc a { flex: none; padding: var(--space-2) var(--space-3); border: 1px solid var(--ink); font-size: 14px; white-space: nowrap; }
  .toc a[aria-current] { background: var(--sky); border-left-color: var(--ink); font-weight: 500; }
}

/* Load motion for the plain pages: the 404 and company courses lay in. Only when turn.js has set .motion. */
.js.motion .courses .course { transform-box: fill-box; animation: course-in var(--lay) var(--set) backwards; animation-delay: calc(var(--i) * 80ms + 160ms); }
.js.motion .courses .course:first-child { animation-name: slab-land; animation-delay: 620ms; }
@keyframes course-in { from { transform: translateX(72px); opacity: 0; } }
@keyframes slab-land { from { transform: translateY(-28px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; }
  ::view-transition-group(*) { animation: none !important; }
  ::view-transition-old(*) { animation: fade-out 120ms linear both !important; }
  ::view-transition-new(*) { animation: fade-in 120ms linear both !important; }
}
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
