/* Distil design tokens, Graphite & Powder (decided 13 Oct 2026), and the shared table, fill and status rules.
   GENERATED by _common/design/build-tokens.js from skill-tokens/*.css (the distil-advisory-design skill),
   aliases.js and parts/rules.css. Do not edit: change the source and run `node _common/design/build-tokens.js`.
   Questrial is not loaded here; link it in the page head (README, "Adopting"). */
:root{
color-scheme:light;
/* ===== colors (skill tokens/colors.css) ===== */
/* --- Ink: graphite near-blacks. Distil never uses pure #000 in layouts. --- */
--ink-900:#15181C; --ink-800:#1C1B18; --ink-700:#26241F; --ink-600:#4C473F;
/* --- Warm neutrals (paper family) --- */
--warm-500:#6B675F; --warm-400:#8A8680; --warm-300:#B9B5AD; --warm-200:#C9C6BF;
--warm-150:#E2E1DB; --warm-100:#EAE8E3; --paper:#FFFFFF;
/* --- Sand: the Warm Graphite header bands (Excel, document tables), lightest to darkest --- */
--sand-100:#FBF3E8; --sand-200:#EDE7DE; --sand-300:#D6CFC3;
/* --- Cool neutrals (tables, rules, diagram strokes in framework documents) --- */
--cool-700:#1D1F20; --cool-500:#6E6F71; --cool-400:#9C9D9F; --cool-300:#C2C3C5;
/* --- Signal: powder blue, the website's accent. Fills, rules, bands and the dot field take
   powder-400; anything that has to be read (links, kickers, priority scores) takes powder-700. --- */
--powder-700:#3E7F8B; --powder-600:#5FA3AE; --powder-500:#86C3CC; --powder-400:#A6D7DF;
--powder-200:#C3E4EA; --powder-100:#DCEEF2;
/* Retired names from the aqua system, kept so older files still resolve. Use powder-*. */
--aqua-400:var(--powder-400); --aqua-300:var(--powder-500); --aqua-150:var(--powder-200); --aqua-100:var(--powder-100);
/* --- Functional fills (spreadsheets): fixed, never used as brand colour --- */
--fill-input:var(--powder-100); --fill-check-pass:#E2EFDA; --fill-check-fail:#FCE4E4;
/* --- Status (RAG), Check-fill aligned, adopted 18 October 2026. Trackers, KPI tables and charts
   only: never the maturity scale, findings or the dot field. Always with the word and a marker. --- */
--rag-off:#9E3A30;  --rag-off-text:#9E2F2A;  --rag-off-tint:var(--fill-check-fail);
--rag-risk:#D9A441; --rag-risk-text:#855A0C; --rag-risk-tint:#FBEBC9;
--rag-on:#5E9A55;   --rag-on-text:#3B6B2E;   --rag-on-tint:var(--fill-check-pass);

/* --- Semantic aliases --- */
--text-primary:var(--ink-900);
--text-secondary:var(--warm-500);
--text-muted:var(--warm-400);
--text-inverse:#FFFFFF;
--text-accent:var(--powder-700);
--text-accent-deep:var(--powder-700);
--text-link:var(--powder-700);
--text-link-hover:var(--ink-900);

--surface-page:#FFFFFF;
--surface-card:#FFFFFF;
--surface-subtle:var(--warm-100);
--surface-tint:var(--powder-100);
--surface-tint-strong:var(--powder-200);
--surface-sand:var(--sand-100);
--surface-band:var(--sand-300);
--surface-inverse:var(--ink-900);

--border-hairline:var(--warm-150);
--border-default:var(--warm-200);
--border-strong:var(--ink-900);
--border-accent:var(--powder-400);

--accent:var(--powder-400);
--accent-deep:var(--powder-700);
--accent-hover:var(--powder-700);

/* Assessment scale — monochrome depth; the signal marks priority, never alarm. */
--status-strong:var(--ink-900);
--status-developing:var(--warm-500);
--status-priority:var(--powder-700);
--status-empty:var(--warm-150);
/* ===== typography (skill tokens/typography.css) ===== */
--font-core:"Questrial","Helvetica Neue",Arial,sans-serif;
--font-mono:ui-monospace,"SFMono-Regular",Menlo,monospace;

--weight-regular:400; --weight-medium:500; --weight-semibold:600; --weight-bold:700; --weight-black:800;

/* Document / web scale */
--text-display:56px; --lh-display:1.04;
--text-h1:40px; --lh-h1:1.1;
--text-h2:28px; --lh-h2:1.15;
--text-h3:20px; --lh-h3:1.25;
--text-h4:16px; --lh-h4:1.3;
--text-body-lg:17px; --lh-body-lg:1.55;
--text-body:15px; --lh-body:1.55;
--text-body-sm:13.5px; --lh-body-sm:1.5;
--text-caption:12px; --lh-caption:1.45;
--text-eyebrow:11px; --lh-eyebrow:1.2;

/* 1280x720 slide scale — a slide title is 52px, body never below 14px */
--slide-title:52px; --slide-subtitle:20px; --slide-body:15px; --slide-bullet:14.5px;
--slide-cover-title:66px; --slide-divider-title:60px;

--track-eyebrow:0.18em;
--track-logotype:0.30em;
--track-display:-0.02em;
--track-tight:-0.01em;
--track-normal:0;
/* ===== spacing (skill tokens/spacing.css) ===== */
--space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:20px;
--space-6:24px; --space-8:32px; --space-10:40px; --space-12:48px; --space-16:64px;
--space-20:80px; --space-24:96px;
/* Slide geometry — the findings deck uses a 1280x720 frame with a 52px gutter
   and a two-column body split by a 40px channel. */
--slide-w:1280px; --slide-h:720px; --slide-pad-x:52px; --slide-pad-y:38px;
--slide-col-gap:40px;
/* Document geometry */
--doc-measure:76ch; --doc-pad-x:64px;
/* Web layout */
--container-max:1200px; --container-pad:32px; --section-y:96px;
--radius-none:0; --radius-xs:2px; --radius-sm:4px; --radius-md:6px; --radius-pill:999px;
--rule-hairline:1px; --rule-heavy:2px; --rule-accent:3px;
/* ===== elevation (skill tokens/elevation.css) ===== */
/* Distil is a flat, print-derived system: borders do the work, shadows are rare. */
--shadow-none:none;
--shadow-card:0 1px 2px rgba(18,18,18,.04);
--shadow-raised:0 4px 14px rgba(18,18,18,.07);
--shadow-overlay:0 18px 48px rgba(18,18,18,.16);
/* Photo protection scrim for full-bleed section dividers */
--scrim-divider:linear-gradient(180deg,rgba(18,18,18,.34) 0%,rgba(18,18,18,.30) 45%,rgba(18,18,18,.66) 100%);
--scrim-side:linear-gradient(90deg,rgba(18,18,18,.72) 0%,rgba(18,18,18,.30) 55%,rgba(18,18,18,0) 100%);
/* ===== motion (skill tokens/motion.css) ===== */
--ease-standard:cubic-bezier(.4,0,.2,1);
--ease-out:cubic-bezier(0,0,.2,1);
--dur-fast:120ms; --dur-base:180ms; --dur-slow:320ms;
--transition-ui:color var(--dur-base) var(--ease-standard),background-color var(--dur-base) var(--ease-standard),border-color var(--dur-base) var(--ease-standard);
/* ===== aliases: the names the apps use today (aliases.js). New code uses the names above. ===== */
/* Short names */
--ink:var(--ink-900);
--ink-2:var(--ink-600);
--section:var(--ink-600);
--muted:var(--warm-500);
--faint:var(--warm-400);
--rule:var(--warm-200);
--hair:var(--warm-150);
--grand:var(--warm-100);
--powder:var(--powder-400);
--pass:var(--fill-check-pass);
--fail:var(--fill-check-fail);
--font:var(--font-core);
--sans:var(--font-core);
--mono:var(--font-mono);
--ease:var(--ease-standard);
/* Role names */
--bg:var(--surface-page);
--ground:var(--surface-page);
--panel:var(--surface-card);
--subtle:var(--warm-100);
--shade-3:var(--warm-100);
--line:var(--warm-150);
--line-strong:var(--warm-200);
--mute:var(--warm-500);
--row-hover:var(--sand-100);
--hover:var(--sand-100);
--sand:var(--sand-300);
--sand-hover:var(--sand-100);
--band-1:var(--sand-300);
--band-2:var(--sand-200);
--band-3:var(--sand-100);
--band:var(--sand-100);
--total:var(--warm-100);
--brand:var(--ink-900);
--brand-hover:var(--ink-700);
--ink-hover:var(--ink-700);
--brand-soft:var(--powder-100);
--sel:var(--powder-100);
--signal:var(--powder-400);
--signal-text:var(--powder-700);
--accent-fill:var(--powder-400);
--accent-text:var(--powder-700);
--accent-soft:var(--powder-100);
--accent-line:var(--powder-200);
--cell:var(--fill-input);
--cell-tint:var(--fill-input);
--cell-hover:var(--powder-200);
--cell-tint-hover:var(--powder-200);
--radius:var(--radius-sm);
/* d- prefix */
--d-ink:var(--ink-900);
--d-ink-800:var(--ink-800);
--d-ink-700:var(--ink-700);
--d-ink-600:var(--ink-600);
--d-warm-500:var(--warm-500);
--d-warm-400:var(--warm-400);
--d-warm-300:var(--warm-300);
--d-warm-200:var(--warm-200);
--d-warm-150:var(--warm-150);
--d-warm-100:var(--warm-100);
--d-powder-700:var(--powder-700);
--d-powder-600:var(--powder-600);
--d-powder-500:var(--powder-500);
--d-powder-400:var(--powder-400);
--d-powder-200:var(--powder-200);
--d-powder-100:var(--powder-100);
--d-sand-300:var(--sand-300);
--d-sand-200:var(--sand-200);
--d-sand-100:var(--sand-100);
--d-font:var(--font-core);
/* ===== platform role tokens (parts/platform-tokens.css) ===== */
/* Platform role tokens (Stage 3, Steve, 24 Oct 2026): meanings every app shares that the design skill does not
   name. Each is a reference to a skill token, so nothing here adds a colour to the palette. PALETTE.md maps every
   app's colours onto these and the skill's tokens. */
/* Negative figures: brackets, in the off-track red (Steve, 24 Oct 2026), on every screen. Red still means off
   track only when a status word and marker go with it. Excel exports keep the red-bracket number format. */
--negative:var(--rag-off-text);
/* Messages and destructive actions: text in the status colour on its tint, never a colour alone. */
--danger-text:var(--rag-off-text);
--danger-tint:var(--fill-check-fail);
--warning-text:var(--rag-risk-text);
--warning-tint:var(--rag-risk-tint);
--success-text:var(--rag-on-text);
--success-tint:var(--fill-check-pass);
/* Table header bands are --band-1 to --band-3 (aliases.js, Budgets' names: sand-300, 200, 100). */
/* Input cells: pale blue, for input only (design skill, functional fills). */
--input-tint:var(--powder-100);
/* Links and anything powder that must be read or drawn as a line; powder-400 is a fill, never text. */
--link:var(--powder-700);
--selection:var(--powder-400);
--selection-tint:var(--powder-100);
/* Charts. Grey first, the one thing that matters in the emphasis colour (Storytelling With Data). Categorical
   series in this order; ordered categories (stages, bands) on the powder ramp, low to high. */
--chart-neutral:var(--warm-400);
--chart-emphasis:var(--powder-700);
--chart-1:var(--powder-700);
--chart-2:var(--ink-600);
--chart-3:var(--powder-400);
--chart-4:var(--warm-400);
--chart-5:var(--sand-300);
--chart-6:var(--powder-600);
--chart-7:var(--ink-900);
--chart-8:var(--warm-200);
--seq-1:var(--powder-100);
--seq-2:var(--powder-200);
--seq-3:var(--powder-400);
--seq-4:var(--powder-600);
--seq-5:var(--powder-700);
}

/* ---------------------------------------------------------------- shared rules (parts/rules.css)
   Opt-in classes, all prefixed d- so nothing here restyles an app until it asks. The one exception is the
   numeric-column rule on .num, which every app that has the class already means this way; it carries zero
   specificity (:where), so an app's own rule still wins. */

/* Numeric columns, firm-wide (design skill, "Numeric columns in tables"): figures and their headers
   right-aligned with tabular figures, one format down a column. Text columns stay left. Nothing is centred. */
:where(th.num, td.num, .d-num){text-align:right;font-variant-numeric:tabular-nums}

/* The table: a sand header band (each extra header row a step lighter), hairline rows, a sand-100 hover with
   ink text, bold totals with a thin rule above and none below, grand totals on warm-100. */
.d-table-scroll{overflow-x:auto;margin-bottom:var(--space-5)}
.d-table{border-collapse:collapse;width:100%;font-size:14px;font-variant-numeric:tabular-nums}
.d-table thead th{background:var(--band-1);color:var(--ink);text-align:left;vertical-align:bottom;font-size:13px;font-weight:var(--weight-bold);padding:11px 12px;white-space:nowrap}
.d-table thead tr + tr th{background:var(--band-2)}
.d-table thead tr + tr + tr th{background:var(--band-3)}
.d-table thead tr:first-child th:first-child{border-radius:var(--radius-sm) 0 0 0}
.d-table thead tr:first-child th:last-child{border-radius:0 var(--radius-sm) 0 0}
.d-table td{padding:11px 12px;border-bottom:1px solid var(--hair);vertical-align:top}
.d-table tbody tr:hover td{background:var(--band-3);color:var(--ink)}
.d-table th.num,.d-table td.num{text-align:right;font-variant-numeric:tabular-nums}
.d-table tr.d-total td,.d-table tr.d-total th{font-weight:var(--weight-bold);border-top:1px solid var(--rule);border-bottom:none}
.d-table tr.d-grand td,.d-table tr.d-grand th{font-weight:var(--weight-bold);background:var(--grand);border-top:1px solid var(--rule);border-bottom:none}
.d-table tbody tr.d-grand:hover td{background:var(--grand)}

/* Functional fills (spreadsheet standard): input cells, a passed check, a failed check. Never decorative. */
.d-fill-input{background:var(--fill-input)}
.d-fill-pass{background:var(--fill-check-pass)}
.d-fill-fail{background:var(--fill-check-fail)}

/* Status (RAG): trackers, KPI tables and charts only. Always the word and its marker (off track a square,
   at risk a triangle, on track a circle); the text in the -text tone, never the solid. */
.d-rag{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:var(--weight-bold);line-height:1.3;padding:3px 8px;border-radius:var(--radius-xs);white-space:nowrap}
.d-rag::before{content:"";width:9px;height:9px;flex:none}
.d-rag.off{background:var(--rag-off-tint);color:var(--rag-off-text)}
.d-rag.off::before{background:var(--rag-off)}
.d-rag.risk{background:var(--rag-risk-tint);color:var(--rag-risk-text)}
.d-rag.risk::before{background:var(--rag-risk);width:10px;clip-path:polygon(50% 0,100% 100%,0 100%)}
.d-rag.on{background:var(--rag-on-tint);color:var(--rag-on-text)}
.d-rag.on::before{background:var(--rag-on);border-radius:50%}

/* ---------------------------------------------------------------- dark palette (parts/dark.css)
   Steve, 24 Oct 2026: a dark version of the palette, first for the Engagement Planner's resource board. Opt-in:
   a page sets data-theme="dark" on <html> (or the class d-dark on a container). It redefines the role tokens
   and the aliases the apps use, never the palette steps' meaning, so an app written against --ink, --muted,
   --rule, --surface-page, --link and the status tokens turns dark without a second stylesheet.
   Graphite ground; warm greys lifted for text; powder as the signal, lifted for text; status colours lifted so
   they read on graphite (the light values are set for white paper). Every text colour here is held to at
   least 4.5:1 on the page and the card by test/design.test.js. These values are new to the palette: the
   Distil Advisory Design System artifact should take them at its next revision. */
:root[data-theme="dark"],.d-dark{
color-scheme:dark;
--surface-page:#15181C;
--surface-card:#1C1B18;
--paper:#1C1B18;
--text-inverse:#15181C;
--ink:#EAE8E3;
--ink-2:#C9C6BF;
--section:#C9C6BF;
--muted:#B9B5AD;
--faint:#9A968F;
--rule:#4C473F;
--hair:#2E2B26;
--grand:#26241F;
--band-1:#3A3630;
--band-2:#302D28;
--band-3:#282622;
--link:#A6D7DF;
--selection:#3E7F8B;
--selection-tint:#22343A;
--input-tint:#22343A;
--rag-on-text:#9CCB8B;
--rag-risk-text:#E3B451;
--rag-off-text:#EC9286;
--negative:#EC9286;
--danger-text:#EC9286;
--warning-text:#E3B451;
--success-text:#9CCB8B;
--danger-tint:#3D2522;
--warning-tint:#3A2F1A;
--success-tint:#22301E;
--chart-neutral:#8A8680;
--chart-emphasis:#A6D7DF;
}

/* Distil Website: page styles on the Graphite & Powder tokens (vendor/distil-common/design/distil-tokens.css).
   Register Section 05: 1440px desktop first, one idea per screen, white space; no pills, near-square radii, three rule
   weights; Questrial everywhere (self-hosted, W-O02). Powder is the single signal; graphite for text and bands. */

@font-face {
  font-family: "Questrial";
  src: url("/fonts/questrial-latin-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --font: "Questrial", "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ink: var(--ink-900, #15181C);
  --ink-soft: var(--ink-600, #4C473F);
  --muted: var(--warm-500, #6B675F);
  --rule: var(--warm-150, #E2E1DB);
  --rule-mid: var(--warm-200, #C9C6BF);
  --paper: #FFFFFF;
  --subtle: var(--warm-100, #EAE8E3);
  --powder: var(--powder-400, #A6D7DF);
  --powder-deep: var(--powder-700, #3E7F8B);
  --powder-tint: var(--powder-100, #DCEEF2);
  --radius: 2px;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --space: clamp(64px, 8vw, 112px);
  --t-head: 22px;
  --t-lede: clamp(18px, 1.45vw, 20px);
  --measure: 52rem;   /* the one width for running text: the testimonials' (Nick, 25 Nov 2026), 2% wider (Steve, 26 Nov 2026) */
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* the button styles would otherwise keep a hidden button showing */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* No paragraph ends on a single word where the browser can avoid it (Steve, 26 Nov 2026: "next." sat alone in the
   contact band). */
p, li, figcaption, summary { text-wrap: pretty; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--powder-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--powder-deep); outline-offset: 3px; }
h1, h2, h3 { font-weight: 400; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 88px); }
h2 { font-size: clamp(30px, 3.3vw, 46px); }
h3 { font-size: var(--t-head); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 16px; }
.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--powder-deep); margin: 0 0 16px; }
.eyebrow-inverse, .eyebrow-inverse a { color: var(--powder); }
/* The type scale (Steve and Nick, 24 Nov 2026): display (h1, h2), 22px heads (--t-head), 20px ledes (--t-lede), 17px body,
   15px small, 13px labels. The same kind of line is the same size wherever it appears. */
.lede { font-size: var(--t-lede); color: var(--ink-soft); max-width: var(--measure); }
.small { font-size: 15px; color: var(--muted); }
.prose p { max-width: 74ch; }
.band { padding: var(--space) 0; }
.band-grey { background: var(--subtle); }
/* Deep powder on the grey bands is 3.7:1 (Lighthouse, 20 Nov 2026); small text there is ink-soft, powder stays the rule */
.band-grey .eyebrow { color: var(--ink-soft); }
.band-grey .person-more { color: var(--ink-soft); }   /* powder-deep was 3.7:1 on the grey band; ink-soft passes 4.5:1 (Lighthouse, 27 Nov 2026) */
.band-grey a { color: var(--ink); text-decoration-color: var(--powder-deep); text-decoration-thickness: 2px; }
/* Prose that fills the content width as two columns of readable length, not one narrow column at the left */
/* A section's opening paragraphs: two equal columns under one rule, across the one width, so they read as one piece
   (What we do, Who we are; Nick, 25 Nov 2026). One column on a phone. */
.prose-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 48px; margin-top: 32px; max-width: var(--measure);
  border-top: 1px solid var(--ink); padding-top: 20px; }
@media (min-width: 760px) { .prose-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.prose-pair p { color: var(--ink-soft); max-width: none; }
.prose-pair > div > p:last-child { margin-bottom: 0; }
@media (max-width: 759px) { .prose-pair > div + div { margin-top: 1em; } }
/* Text on the left at the one width, a call-out in what is left on the right (What we do, Who we are). */
.with-callout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 64px; align-items: start; }
/* Side by side only where the call-out gets a readable width (at 1100px it was 116px, a word or two a line). */
@media (min-width: 1280px) { .with-callout { grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr); } }
.callout { max-width: var(--measure); }
.callout { border-top: 3px solid var(--powder-deep); padding-top: 18px; }
.callout .eyebrow { margin-bottom: 10px; }
.callout h3 { font-size: var(--t-head); margin: 0 0 16px; }
.callout > p:last-child { color: var(--ink); margin: 0; }

/* Buttons: near-square, no pills */
.button { display: inline-block; font: inherit; font-size: 17px; line-height: 1; padding: 16px 24px; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.button-primary { background: var(--powder); color: var(--ink); border-color: var(--powder); }
.button-primary:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.button-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.button-ghost:hover { background: #fff; color: var(--ink); }

/* Header: logo circa 64px (F1) */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.2) blur(6px); }
.head-inner { display: flex; align-items: center; gap: 32px; min-height: 96px; }
.brand img { height: 64px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 17px; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--powder-deep); }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 10px 14px; border: 1px solid var(--rule-mid); border-radius: var(--radius); }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--paper); border: 1px solid var(--rule);
  min-width: 240px; display: grid; padding: 8px 0; box-shadow: 0 12px 32px -16px rgba(21, 24, 28, 0.35); }
.menu nav a { padding: 12px 20px; color: var(--ink); text-decoration: none; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .head-book { margin-left: auto; }
  .menu { display: block; margin-left: 0; }
}
@media (max-width: 640px) {
  .head-inner { min-height: 72px; gap: 12px; }
  .brand img { height: 44px; }
  .head-book { display: none; }
  .menu { margin-left: auto; }
}

/* Hero: image with a scrim, tagline left, no logo over the hero (F2). No dot field here (Steve, 24 Nov 2026): the dots
   stay in the contact band, and the Start here button is powder so the hero keeps the accent. */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; min-height: min(86vh, 860px); display: flex; align-items: flex-end; }
.hero-img, .hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(21, 24, 28, 0.88) 0%, rgba(21, 24, 28, 0.55) 55%, rgba(21, 24, 28, 0.25) 100%); }
/* The Distil dot mark, top right of the contact band, as the design system places it (Nick, 20 Nov 2026) */
/* About one SVG unit to a pixel on a wide screen (dots 12px); on narrower screens the field is cropped at the left, not shrunk */
.dot-mark { position: absolute; top: 0; right: 0; width: max(720px, 73vw); max-width: 1056px; height: auto; z-index: 2; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 42%); mask-image: linear-gradient(to right, transparent 0, #000 42%); }
.hero-inner { position: relative; z-index: 3; padding-top: 160px; padding-bottom: clamp(64px, 10vw, 140px); width: 100%; }
.hero h1 { max-width: 12ch; }
.hero-sub { font-size: var(--t-head); max-width: var(--measure); color: rgba(255, 255, 255, 0.9); margin-bottom: 40px; }

/* Start here: four across, two by two, stacked; hover reveals without moving the band (F8, F9) */
.journeys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 1100px) { .journeys { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .journeys { grid-template-columns: 1fr; } }
.journey-card { position: relative; border: 1px solid var(--rule-mid); border-top: 3px solid var(--powder); border-radius: var(--radius);
  padding: 28px 24px; min-height: 320px; background: var(--paper); overflow: hidden; outline-offset: 4px; }
.journey-card { cursor: pointer; }   /* the whole tile opens its journey page (Nick, 20 Nov 2026) */
.journey-card h3 { font-size: var(--t-head); }
.journey-line { color: var(--ink-soft); }
.journey-reveal { position: absolute; inset: 0; padding: 28px 24px; background: var(--ink); color: #fff; display: flex; flex-direction: column;
  justify-content: space-between; opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.journey-reveal p { font-size: 17px; }
.journey-link { color: var(--powder); align-self: flex-start; }
.journey-link:hover { color: #fff; }
.journey-card:hover .journey-reveal, .journey-card:focus-within .journey-reveal, .journey-card.is-open .journey-reveal { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 640px) {
  .journey-card { min-height: 0; }
  .journey-reveal { position: static; opacity: 1; transform: none; pointer-events: auto; display: flex; margin: 16px -24px -28px; }   /* no hover on a phone: shown on the tile */
}
@media (prefers-reduced-motion: reduce) { .journey-reveal { transition: none; } }

/* What we do (Steve and Nick, 24 Nov 2026): the intro across the top, then Lead, Plan, Report and Transact as four tiles
   across the page (two by two on a tablet, stacked on a phone), each a white card under a full-width powder bar like the
   Start here cards. The exclusive accordion (F11) runs across all four. */
.what-we-do-intro .prose-pair { margin-top: 0; }
.what-we-do-intro { margin-top: 32px; }
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
@media (max-width: 1100px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .services { grid-template-columns: minmax(0, 1fr); } }
.service-group { background: var(--paper); border: 1px solid var(--rule-mid); border-top: 3px solid var(--powder); border-radius: var(--radius);
  padding: 24px 22px 12px; }
.service-group h3 { margin: 0 0 12px; display: grid; gap: 6px; }
.group-name { text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--t-head); line-height: 1.1; color: var(--ink); }
.group-line { color: var(--ink-soft); font-size: 17px; line-height: 1.4; letter-spacing: 0; }
@media (min-width: 641px) { .group-line { min-height: 2.8em; } }   /* two lines where tiles sit side by side, so the lists line up */
.service { border-top: 1px solid var(--rule); }
.service summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; font-size: 17px; line-height: 1.3; position: relative; }
.service summary::-webkit-details-marker { display: none; }
.service summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink); transform: translateY(-75%) rotate(45deg); transition: transform .2s; }
.service[open] summary { color: var(--powder-deep); }
.service[open] summary::after { transform: translateY(-25%) rotate(-135deg); border-color: var(--powder-deep); }
/* the longest description, plus what this tile is short of the tallest tile in its row; both set by site.js */
.service-body { overflow: hidden; min-height: calc(var(--service-space, 0px) + var(--tile-pad, 0px)); }
.service-body p { padding-bottom: 18px; margin: 0; font-size: 17px; color: var(--ink-soft); }

/* Our clients: white logos on Graphite, marquee that pauses on hover (F13 to F16). Each logo carries its own width and
   height from lib/buildpack.js (about the same area each, 28 to 50px tall), so no size is set here. */
.logo-band { background: var(--ink); padding: 48px 0 56px; }
.marquee { display: flex; overflow: hidden; margin-top: 24px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 64px; padding: 0 32px; margin: 0; list-style: none; flex-shrink: 0;
  animation: marquee 90s linear infinite; }
.marquee:hover .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
.band-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.band-head .eyebrow { margin: 0; }
.marquee-track img { max-width: none; opacity: 0.92; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  .marquee-track[aria-hidden="true"] { display: none; }
}
.our-clients { padding-bottom: clamp(40px, 5vw, 72px); }
/* Testimonials: stacked in one grid cell so the box is as tall as the longest quote and never jumps as they fade */
/* The client location map (W-D22, Nick 23 Nov 2026): places listed on the left, the dot-matrix map on the right */
.client-map { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; padding-top: clamp(56px, 7vw, 96px); }
@media (min-width: 900px) { .client-map { grid-template-columns: 4fr 8fr; gap: 64px; } }
.client-places { list-style: none; padding: 0; margin: 0 0 24px; columns: 2; column-gap: 24px; }
.client-places li { padding: 6px 0; break-inside: avoid; }
.client-places li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--powder-deep); margin-right: 12px; vertical-align: 1px; }
.client-map-key { color: var(--ink-soft); font-size: 15px; margin: 0; }
.key-home { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); margin-right: 12px; vertical-align: 1px; }
.client-map-figure { margin: 0; }
.client-map-svg { width: 100%; height: auto; display: block; }
.map-land { fill: var(--warm-200, #C9C6BF); }
.map-dot { fill: var(--powder-deep); }
.map-ring { fill: none; stroke: var(--powder); stroke-width: 2; }
.map-home { fill: var(--ink); }
.client-map + .testimonials { padding-top: clamp(40px, 5vw, 72px); }
.testimonials { display: grid; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(32px, 4vw, 48px); }
.testimonials-head { grid-area: 1 / 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.testimonials-label { margin: 0; }
/* A faint chevron either side of the quote (Steve and Nick, 26 Nov 2026): no outline, no count, ink at low opacity,
   stronger on hover and focus. Level with the quote's first line, so they stay put whichever quote is showing (the box
   is as tall as the longest; centred, they floated beside empty space under a short one). 24px clear of the text. On a
   wide desktop they hang in the margin so the quote keeps the page's left edge; on narrower screens the quote steps in. */
.testimonial-stage { grid-area: 2 / 1; position: relative; display: grid; max-width: var(--measure); }
.testimonial-step { position: absolute; top: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: calc(var(--t-lede) * 1.5); padding: 0; border: 0; background: transparent; color: var(--ink);
  opacity: 0.22; cursor: pointer; transition: opacity .15s; }
.testimonial-step svg { width: 12px; height: 24px; }   /* a quarter smaller than the first version (16px by 32px) */
.testimonial-step:hover, .testimonial-step:focus-visible { opacity: 0.75; }
.testimonial-step[hidden] { display: none; }
.testimonial-prev { left: -56px; }
.testimonial-next { right: -56px; }
@media (max-width: 1399px) {
  .testimonial-stage { padding: 0 48px; max-width: calc(var(--measure) + 96px); }
  .testimonial-prev { left: 0; }
  .testimonial-next { right: 0; }
}
@media (max-width: 640px) {
  .testimonial-stage { padding: 0 32px; }
  .testimonial-step { width: 24px; }
  .testimonial-prev { left: -4px; }
  .testimonial-next { right: -4px; }
}
.testimonial { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.testimonial.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.testimonial blockquote { margin: 0 0 20px; font-size: var(--t-lede); line-height: 1.5; max-width: var(--measure); }   /* the benchmark: every lead text takes this size and width */
.testimonial blockquote p { margin: 0; }
.testimonial blockquote p::before { content: "\201C"; }
.testimonial blockquote p::after { content: "\201D"; }
.testimonial figcaption { color: var(--muted); font-size: 15px; }
.testimonial figcaption::before { content: ""; display: inline-block; width: 32px; height: 2px; background: var(--powder); vertical-align: middle; margin-right: 12px; }

/* Who we are: a grey band of its own (Steve, 24 Nov 2026), so it reads apart from Our clients above */
.team { list-style: none; padding: 0; margin: 56px 0 24px; display: grid; grid-template-columns: repeat(5, 1fr); column-gap: 20px; row-gap: 0; }
/* Each person spans five rows of the team grid (photo, name, title, Bio line, bio) through a subgrid, so the parts line up
   across a row: a two-line title beside a one-line one no longer shifts that person's bio (Nick, 20 Nov 2026). */
.person { display: grid; grid-row: span 5; grid-template-rows: subgrid; align-content: start; margin-bottom: 32px; }
@media (max-width: 1100px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .team { grid-template-columns: repeat(2, 1fr); column-gap: 16px; } }
.person img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; border-radius: var(--radius); background: var(--rule-mid); }
.person-name { display: block; font-size: var(--t-lede); margin-top: 12px; }
.person-title { display: block; color: var(--muted); font-size: 15px; }
.person-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 8px; min-height: 28px; }
.person-more { margin-right: auto; padding: 0; background: none; border: 0; border-bottom: 1px solid var(--powder); font: inherit; font-size: 15px; color: var(--powder-deep); cursor: pointer; }
.person-more[aria-expanded="true"] { border-bottom-color: var(--ink); color: var(--ink); }
.person img[data-bio-photo] { cursor: pointer; }
.bio { padding-top: 12px; font-size: 15px; color: var(--ink-soft); }
.bio { min-height: var(--bio-space, auto); }   /* the longest bio's height, set by site.js */
.bio-line { display: block; }                    /* a sentence per line, post-nominals last (Nick, 24 Nov 2026) */
.bio-line + .bio-line { margin-top: 6px; }
.person-linkedin, .person-email { display: inline-flex; color: var(--ink-soft); }
.person-linkedin:hover, .person-email:hover { color: var(--powder-deep); }
/* How we are different, what you can expect, how we work: three blocks side by side, each under its own rule, so one no
   longer runs into the next (Steve and Nick, 24 Nov 2026) */
.detail-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 48px; }
@media (min-width: 760px) { .detail-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.detail-col { border-top: 1px solid var(--ink); padding-top: 20px; }
.detail-col h3 { font-size: var(--t-head); margin: 0 0 16px; }
.detail-col p { max-width: none; font-size: 17px; color: var(--ink-soft); }
.values { list-style: none; padding: 0; margin: 0; }
.values li { padding: 11px 0; border-bottom: 1px solid var(--rule-mid); }
.values li:first-child { border-top: 1px solid var(--rule-mid); }
/* Recognition: one award is a line at the foot of the band, not the largest thing on the page (Steve, 24 Nov 2026). Built
   as a list so further awards or news items sit beside it. */
.recognition { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule-mid); padding-top: 24px; }
.recognition .eyebrow { margin-bottom: 16px; }
.recognition-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 24px 56px; }
.recognition-list li { display: flex; align-items: center; gap: 20px; }
.recognition-list img { height: 68px; width: auto; }
.recognition-list p { margin: 0; max-width: 34ch; color: var(--ink); }

/* Contact band */
.contact-band { position: relative; background: var(--ink); color: #fff; padding: var(--space) 0; overflow: hidden; }
.contact-band .dot-mark { width: max(600px, 58vw); max-width: 880px; }
/* On a phone both fields fade out downwards, clear of the headline and the contact eyebrow; dots stay about 7px */
@media (max-width: 640px) {
  .contact-band { padding-top: 150px; }
  .dot-mark, .contact-band .dot-mark { width: 600px; max-width: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 22%, transparent 48%); mask-image: linear-gradient(to bottom, #000 0, #000 22%, transparent 48%); }
  .contact-band .dot-mark { -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 14%, transparent 34%); mask-image: linear-gradient(to bottom, #000 0, #000 14%, transparent 34%); }
}   /* clear of the eyebrow on a phone */
.nowrap { white-space: nowrap; }
.contact-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 56px; }
/* 7fr 5fr and a 64px gap (was 6fr 5fr, 96px), so "Tell us where the business is at..." sits on one line on a desktop
   (Steve, 26 Nov 2026). */
@media (min-width: 1000px) { .contact-inner { grid-template-columns: 7fr 5fr; gap: 64px; } }
.contact-band h2 { max-width: 20ch; }
.contact-band .lede { color: rgba(255, 255, 255, 0.82); }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0; }
.contact-details { color: rgba(255, 255, 255, 0.8); }
.contact-details a, .contact-band .form-note a { color: var(--powder); }
.enquiry { display: grid; gap: 18px; }
/* The form sits on a solid graphite panel so the dot field frames it rather than showing through the fields */
.contact-form-wrap { position: relative; z-index: 3; }
.contact-form-wrap:has(.enquiry:not([hidden])) { background: var(--ink); padding: clamp(20px, 3vw, 32px); margin: calc(-1 * clamp(20px, 3vw, 32px)); border-radius: var(--radius); }
.enquiry[hidden] { display: none; }
.enquiry label { display: grid; gap: 6px; font-size: 17px; color: rgba(255, 255, 255, 0.9); }
.enquiry input:not([type="radio"]), .enquiry select, .enquiry textarea { font: inherit; font-size: 17px; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.35); background: #1F2429; color: #fff; }
.enquiry select option { color: var(--ink); }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: 2px solid var(--powder); outline-offset: 1px; }
.enquiry fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.enquiry legend { font-size: 17px; margin-bottom: 8px; color: rgba(255, 255, 255, 0.9); }
.enquiry .choice { display: flex; gap: 10px; align-items: baseline; font-size: 17px; }
.enquiry .choice input { accent-color: var(--powder); }
.enquiry button { justify-self: start; }
.form-note { font-size: 15px; color: rgba(255, 255, 255, 0.7); margin: 0; }
.form-status { min-height: 1.6em; margin: 0; color: var(--powder); }
.form-sent { font-size: var(--t-head); border-left: 3px solid var(--powder); padding-left: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Journey pages: a plain Graphite band with the quote as the title (W-D23) */
.journey-band { background: var(--ink); color: #fff; padding: clamp(96px, 12vw, 160px) 0 clamp(56px, 7vw, 96px); }
.journey-band h1 { font-size: clamp(32px, 4.2vw, 58px); max-width: 22ch; }
.journey-band .lede { color: rgba(255, 255, 255, 0.82); }
/* minmax(0, 1fr), not 1fr: the services table is at least 760px wide, and as a grid item it stretched the whole column to
   that width, so on a phone every paragraph ran off the screen instead of wrapping (found by Steve, 24 Nov 2026). Now the
   table scrolls inside its own wrapper and the text wraps. */
.journey-body { padding-top: var(--space); padding-bottom: var(--space); display: grid; grid-template-columns: minmax(0, 1fr); gap: 64px; }
.journey-body h2 { font-size: clamp(24px, 2.4vw, 32px); }
/* On a desktop each block is its heading on the left and its text on the right, so the text sits across the page rather
   than in a narrow column at the left edge. The services table keeps the full width. */
@media (min-width: 1000px) {
  .journey-body > section:not(.journey-services) { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 56px; align-items: start; }
  .journey-body > section:not(.journey-services) > h2 { margin: 0; }
}
.journey-body > section { border-top: 1px solid var(--rule-mid); padding-top: 28px; }
.journey-body .prose p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); margin-top: 20px; }
.matrix { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 15px; }
.matrix th, .matrix td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; font-weight: 400; }
.matrix thead th { font-size: 13px; color: var(--muted); background: var(--sand-100, #FBF3E8); }
.matrix thead th.is-current { color: var(--ink); font-weight: 700; }   /* bold on the sand header row; only the body cells take the powder tint (Nick, 20 and 24 Nov 2026) */
.matrix td.is-current { background: var(--powder-tint); font-weight: 700; }
.matrix .is-other { color: var(--warm-500, #6B675F); }   /* 5.1:1 on the sand header, 5.6:1 on white (was 1.9:1) */
.matrix td.is-current.is-leads { color: var(--ink); }
.matrix td.is-current.is-applies { color: var(--ink-soft); }
/* On a phone the five-column table ran off the screen and had to be scrolled sideways. There it shows two columns: the
   service and this page's own situation (Nick, 25 Nov 2026). The other three are a tap away on their own pages. */
@media (max-width: 640px) {
  .matrix { min-width: 0; }
  .matrix .is-other { display: none; }
  .matrix .is-current { width: 42%; }
}
.faqs { display: grid; gap: 32px; }
.faq h3 { font-size: var(--t-head); margin-bottom: 8px; }
.faq p { max-width: 74ch; color: var(--ink-soft); margin: 0; }

/* Legal pages */
.legal { padding-top: clamp(64px, 8vw, 120px); padding-bottom: var(--space); }
.legal h1 { font-size: clamp(32px, 4.2vw, 58px); }   /* the same as the Start here pages' */
.legal .prose { max-width: 72ch; }
.legal .prose p, .legal .prose li { color: var(--ink-soft); }
.legal .prose strong { color: var(--ink); font-weight: 400; font-size: var(--t-lede); display: inline-block; margin-top: 12px; }

/* Footer */
/* One black (24 Nov 2026): the footer was #1C1B18 under the contact band's #15181C, two near-blacks side by side. Both are
   Graphite now, with a hairline between them. */
.site-foot { background: var(--ink); color: rgba(255, 255, 255, 0.78); padding: 56px 0 48px; font-size: 15px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.site-foot a { color: rgba(255, 255, 255, 0.9); }
.site-foot a:hover { color: var(--powder); }
.foot-inner { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .foot-inner { grid-template-columns: 1fr 1fr; gap: 64px; } }
.foot-brand img { height: 64px; width: auto; margin-bottom: 20px; }   /* the header logo size exactly (Nick, 24 Nov 2026) */
@media (max-width: 640px) { .foot-brand img { height: 44px; } }
.foot-locality span { white-space: nowrap; }   /* each locality line stays whole */
/* The firm's own LinkedIn and Instagram, in place of five names and five LinkedIn links (Steve and Nick, 24 Nov 2026) */
.foot-social { list-style: none; padding: 0; margin: 20px 0 0; display: flex; gap: 16px; }
.foot-social a { display: inline-flex; padding: 4px; }
.foot-social svg { width: 22px; height: 22px; }
.foot-legal p { margin-bottom: 8px; }


/* Pause/play for the logo band and the testimonials (WCAG 2.2.2; Nick, 23 Nov 2026). Quiet by design (Nick, 24 Nov 2026):
   no border, a small icon in a muted tone that still meets 3:1 contrast, full tone on hover and focus. The 26px target
   stays above the 24px WCAG 2.5.8 minimum. */
.motion-toggle { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; flex-shrink: 0;
  border: 0; border-radius: var(--radius); background: transparent; cursor: pointer; transition: color .15s; }
.motion-toggle svg { width: 11px; height: 11px; }
.motion-toggle[hidden] { display: none; }
.motion-toggle-light { color: rgba(255, 255, 255, 0.5); }
.motion-toggle-light:hover, .motion-toggle-light:focus-visible { color: #fff; }
.motion-toggle-dark { color: var(--muted); }
.motion-toggle-dark:hover, .motion-toggle-dark:focus-visible { color: var(--ink); }
.motion-toggle .icon-play { display: none; }
.motion-toggle.is-paused .icon-play { display: block; }
.motion-toggle.is-paused .icon-pause { display: none; }
.motion-toggle-light:focus-visible { outline-color: var(--powder); }
/* What we do tiles: equal heights while all are closed; once one is open only that tile grows, so the others are not left
   as tall empty cards */
.services:has(details[open]) { align-items: start; }
