/* ==========================================================================
   Groves Talent Group LLC global stylesheet
   Single source of truth for every page on the site.
   Sections: 1 Tokens · 2 Reset · 3 Typography · 4 Layout · 5 Buttons
             6 Header/Nav · 7 Hero · 8 Cards & components · 9 Forms
             10 Careers · 11 Footer · 12 Motion & responsive
   ========================================================================== */

/* 0 · Fonts -------------------------------------------------------------- */
/* Self-hosted so there is no blocking round trip to a third party before the
   first paint. Both families are variable over 400-700, which is why there are
   four files rather than the seven static weights the hosted version served.
   The -ext files cover Central and Eastern European accents; the unicode-range
   means a browser only fetches one if the page actually needs those glyphs, so
   an English page pays for the two latin files alone (~148KB).
   To change a face: replace the files, these four blocks, and the matching
   --font-display or --font-sans token below. Nothing else references them. */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/source-serif-4-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Metric-matched fallback -------------------------------------------------
   Georgia stands in while Source Serif 4 loads, and it is 26% wider at the
   weight the headings use. The h1 is capped at 22ch, so that mismatch moved
   where the headline wrapped and the page reflowed when the real font
   arrived: a measured 0.0428 CLS, all of it on the page's best element.
   These two faces re-measure Georgia so it occupies the same space. The
   numbers are measured, not guessed: at 100px the same string sets 2832.2px
   in Source Serif 4 at 600 against Georgia's 3586.9px, and 2773.2 against
   3098.4 at 400. Vertically Source Serif 4 is ascent 1036, descent 335, line
   gap 0 per 1000em; each override is that metric divided by the size-adjust
   factor, because the overrides are relative to the adjusted em. If Georgia
   is absent the face does not load and the stack falls through unchanged. */
@font-face {
  font-family: "Source Serif Fallback";
  src: local("Georgia");
  font-weight: 400;
  size-adjust: 89.5%;
  ascent-override: 115.8%;
  descent-override: 37.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Source Serif Fallback";
  src: local("Georgia");
  font-weight: 600;
  size-adjust: 79%;
  ascent-override: 131.1%;
  descent-override: 42.4%;
  line-gap-override: 0%;
}

/* 1 · Design tokens ------------------------------------------------------ */
:root {
  /* Brand: dark forest green, the one highlight colour.
     Deep enough to pass AA on white at every step from 700 up. */
  --forest-900: #08291b;
  --forest-800: #0d3826;
  --forest-700: #124a31;
  --forest-600: #19613f;
  /* Was #1f7a50, which missed AA (4.5:1) on the sage bands. Darkened 7% so it
     clears on the darkest one the site actually paints text on, #dfe6e3:
     4.72:1 there, 5.03:1 on #e6edea, 5.98:1 on white. */
  --moss-500:   #1d714a;
  /* #2d6a4f existed only inside rgba() calls, in eight places, with no token to
     its name: nav hover, card hover, the sage panel, the accent tag and job
     hover. Named here so a brand change reaches all of them. */
  --moss-600:   #2d6a4f;
  --moss-400:   #2d9566;
  --sage-200:   #b9e2cb;
  --sage-100:   #e7f3ec;
  --sage-50:    #f3f9f5;

  /* Channel triples for the translucent brand tints. Each is composed as
     rgb(var(--x-rgb) / a) so it tracks its solid token instead of being a
     hand-copied literal. The page wash used to carry the literal 31 122 80,
     a copy of --moss-500 that went stale the moment that token was darkened
     for contrast. Keep every triple equal to its hex above. */
  --forest-700-rgb: 18 74 49;
  --moss-600-rgb:   45 106 79;
  --moss-500-rgb:   29 113 74;
  --moss-400-rgb:   45 149 102;
  --sage-200-rgb:   185 226 203;
  --sage-100-rgb:   231 243 236;
  --sage-50-rgb:    243 249 245;

  /* Supporting accents.
     Brass carries small warm flourishes (step numbers, the quote rule, the
     CTA button) so the green never has to compete with another loud colour. */
  --brass-600: #8a6a30;
  --brass-500: #a9823c;
  --brass-200: #eadfc6;
  /* Readable ink for the brass CTA; brass is too light for --ink to sit on. */
  --brass-ink:  #241a08;
  --brass-500-rgb: 169 130 60;

  /* Neutrals: a plain white page on cool, barely-there greys */
  --bg:       #ffffff;
  --white:    #ffffff;
  --ink:      #0f1a15;
  --body:     #3f4a45;
  /* Was #6a7571, which missed AA (4.5:1) on every tinted band. Darkened 9% so
     it clears on the darkest one, #dfe6e3 (the careers panel): 4.60:1 there,
     4.91:1 on #e6edea, 5.44:1 on #f7f7f7, 5.83:1 on white. Still clearly
     lighter than --body (7.28:1 on that same band), so the hierarchy holds. */
  --muted:    #5e6764;
  --line:     #e3e7e4;
  --line-dark: rgba(255, 255, 255, .16);
  /* Text on the dark greens, by role (was twelve near-identical values from
     .5 to .82). Each clears AA on the lightest dark ground it meets, the
     --forest-700 corner of the closing card: strong 7.45:1, body 6.41:1,
     quiet 5.24:1 (on --forest-900 they are 10.84, 9.07 and 7.14). */
  --on-dark-strong: rgb(255 255 255 / .82);
  --on-dark:        rgb(255 255 255 / .74);
  --on-dark-quiet:  rgb(255 255 255 / .64);
  /* 2.47:1 on white, below AA, kept light so a placeholder never reads as a
     filled value. No live field uses one: the contact example was removed in
     the November 2026 audit, since its hint says the same. It remains only for
     the dormant job-board search (README). Guidance goes in .hint text. */
  --placeholder: #9aa8a1;

  /* Type */
  /* Both faces are self-hosted; see section 0. Source Sans 3 is the sibling of
     Source Serif 4 - same designer, same superfamily - so the pairing is
     designed rather than assembled. It replaced Inter, which is used on enough
     of the web that it no longer reads as a choice. Display alternatives that
     were considered and work at these sizes: "Newsreader", "Lora", "Literata". */
  --font-display: "Source Serif 4", "Source Serif Fallback", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Shape */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(18, 33, 26, .06), 0 2px 6px rgba(18, 33, 26, .04);
  --shadow:    0 2px 4px rgba(18, 33, 26, .05), 0 12px 28px -8px rgba(18, 33, 26, .12);
  --shadow-lg: 0 4px 8px rgba(18, 33, 26, .06), 0 28px 60px -18px rgba(18, 33, 26, .22);

  /* Type roles. Serif for headings, sans for reading; every size on the
     site is one of these. Adjacent roles differ by at least ~15% at desktop,
     so a role is recognisable before it is read. */
  --type-display:    clamp(2.4rem, 5.4vw, 3.9rem);    /* page headline, one per page */
  --type-headline:   clamp(1.95rem, 3.6vw, 2.85rem);  /* section headings */
  --type-statement:  clamp(1.55rem, 2.7vw, 2.25rem);  /* the opening statement */
  --type-subhead:    clamp(1.5rem, 2.4vw, 1.95rem);   /* panel and block headings */
  --type-lead-title: clamp(1.375rem, 2vw, 1.6rem);    /* claims, panel headings */
  --type-title:      clamp(1.2rem, 1.7vw, 1.4rem);    /* card and sub-section headings */
  --type-minor:      1.125rem;                        /* serif labels: questions, steps, roles */
  --type-lede:       clamp(1.075rem, 1.5vw, 1.25rem); /* the paragraph under a headline */
  --type-body:       1.0625rem;                       /* prose and form fields */
  --type-small:      .95rem;                          /* supporting text, notes, nav, buttons */
  --type-fine:       .84rem;                          /* hints, errors, form notes, legal line */
  --type-label:      .75rem;                          /* tracked capitals */

  /* Rhythm */
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(64px, 9vw, 112px);
  --container: 1180px;
  --header-h: 76px;
}

/* 2 · Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* Without this the body background would propagate to the canvas and be
     sized against the viewport instead of the document. */
  background-color: var(--bg);
}

body {
  font-family: var(--font-sans);
  font-size: var(--type-body);
  line-height: 1.65;
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* Page wash. This lives on the body rather than on .hero so it carries down
     through every transparent section instead of stopping at the hero edge.
     Layers 1 and 2 are the pronounced tint at the top, sized in pixels so the
     fade distance is the same on a short page and a long one. Layer 3 is sized
     to the whole document, so a trace of the tint reaches the footer.
     Fades end on a zero-alpha copy of their own colour, never `transparent`,
     which some engines interpolate through grey. */
  background-color: var(--bg);
  background-image:
    radial-gradient(78% 58% at 82% 0%, rgb(var(--moss-500-rgb) / .15) 0%, rgb(var(--moss-500-rgb) / 0) 70%),
    linear-gradient(180deg, var(--sage-100) 0%, rgb(var(--sage-100-rgb) / 0) 100%),
    linear-gradient(180deg, var(--sage-50) 0%, rgb(var(--sage-50-rgb) / .45) 100%);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% 1150px, 100% 1700px, 100% 100%;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; padding: 0; }
/* The colour says "link"; a lighter underline confirms it without striping
   every paragraph that holds one. Hover darkens both. */
a { color: var(--moss-500); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(var(--moss-500-rgb) / .45); }
a:hover { color: var(--forest-700); text-decoration-color: currentColor; }

/* Browser surfaces in the palette: text selection, the caret, native controls
   and the page scrollbar no longer ship as browser defaults. The scrollbar
   thumb clears 3:1 against its track. */
:root { accent-color: var(--forest-700); caret-color: var(--forest-700); scrollbar-color: rgb(var(--moss-600-rgb) / .7) var(--sage-50); }
::selection { background: var(--sage-200); color: var(--forest-900); }

:focus-visible {
  outline: 3px solid var(--moss-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Available to assistive technology, absent from the page. The system had no
   such utility, which is why one band shipped with no heading at all. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--forest-800);
  color: var(--white);
  border-radius: 0 0 var(--r-sm) 0;
  text-decoration: none;
}
/* The global `a:hover` sets --forest-700, which on this element's --forest-800
   fill is 1.3:1. Today it cannot bite: `.skip-link:focus` outranks `a:hover`
   (0,2,0 vs 0,1,1) and the link sits at left:-9999px until focused, so the
   hover-without-focus state is unreachable by a mouse. Naming :hover costs one
   selector and keeps it unreachable if the reveal mechanism ever changes. */
.skip-link:focus { left: 0; }
.skip-link:focus, .skip-link:hover { color: var(--white); }

/* 3 · Typography --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: var(--type-display); }
h2 { font-size: var(--type-headline); }
h3 { font-size: var(--type-title); line-height: 1.25; }
h4 { font-size: var(--type-minor); line-height: 1.35; }

p { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }

.lede--tight { margin-top: 18px; }
.hero__aside { margin-top: 18px; }
.lede {
  font-size: var(--type-lede);
  line-height: 1.6;
  color: var(--body);
  max-width: 60ch;
}

/* The 62ch measure belongs to the paragraph. On the whole head it squeezed
   headline-size headings onto three lines. */
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head > h2 { max-width: 30ch; }
.section-head > p { max-width: 62ch; }
.section-head.center { text-align: center; }
.section-head.center > h2, .section-head.center > p { margin-left: auto; margin-right: auto; }
/* A centred paragraph of four lines or more is hard to read on a phone, where
   every line starts somewhere different. Left-aligned there. */
@media (max-width: 620px) { .section-head.center { text-align: left; } }
.section-head p { margin-top: 16px; font-size: var(--type-body); color: var(--muted); }

/* 4 · Layout ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container.narrow { max-width: 860px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 76px); }
/* A translucent sage band, so the page wash shows through it and the page's
   rhythm stays in the brand green. It used to be a grey (ink at 3.5%), the
   one place the palette dropped out of the green. Muted text still clears
   AA on it: it is lighter than the darkest band (#dfe6e3). */
.section--alt { background: rgb(var(--moss-600-rgb) / .055); }
/* Transparent, not white: these sections are the negative space the page wash
   is meant to show through. The class is kept so the markup still reads as a
   deliberate light band between the tinted and dark ones. */
.section--white { background: transparent; }
/* Light text on a dark ground reads thinner and tighter than the same text on
   white, so running text there gets a little more air. Zero specificity, so
   display text set as a paragraph (the owner statement) keeps its own leading. */
:where(.section--dark, .cta-band, .site-footer) p { letter-spacing: .008em; line-height: 1.7; }
/* Two plain sections in a row share one ground, so the band change that
   separates every other pair is missing and the space doubles (two section
   paddings, about 224px), which reads as a break rather than a turn. The
   pair gets one hairline at the column width, with a little more than one
   section of space split evenly around it. */
.section:not(.section--alt):not(.section--dark):has(+ .section--white) { padding-bottom: calc(var(--section) * .6); }
.section:not(.section--alt):not(.section--dark) + .section--white { padding-top: 0; }
.section:not(.section--alt):not(.section--dark) + .section--white > .container::before {
  content: ""; display: block; height: 1px; margin-bottom: calc(var(--section) * .6); background: var(--line);
}
/* When the first section already closes on a ruled list, that closing rule is
   the divider: a second hairline 67px below it would only repeat it. */
.section:has(> .container > .catalogue:last-child) + .section--white { padding-top: calc(var(--section) * .6); }
.section:has(> .container > .catalogue:last-child) + .section--white > .container::before { content: none; }
/* Likewise a section that opens on its own brass rule (the client quote). */
.section:not(.section--alt):not(.section--dark) + .section--white:has(> .container > .quote:first-child) { padding-top: calc(var(--section) * .6); }
.section:not(.section--alt):not(.section--dark) + .section--white > .container:has(> .quote:first-child)::before { content: none; }
/* Home: the one-line job-seeker band is a hinge between the questions and the
   closing call, so it sits midway rather than nearer the questions. */
.section--sideline + .section { padding-top: 0; }
.section--dark {
  background: var(--forest-800);
  color: var(--on-dark);
}
.section--dark h2, .section--dark h3, .section--dark h4, .section--dark strong { color: var(--white); }
/* No dark band carries a plain link today, so this changes nothing on sight.
   It is here because the defaults are both unreadable on --forest-800: `a` is
   --moss-500 (~2.2:1) and `a:hover` is --forest-700 (1.3:1). Pin them now
   rather than find out by shipping a link into a dark section later. */
.section--dark a:not(.btn) { color: var(--sage-200); }
.section--dark a:not(.btn):hover { color: var(--white); }
.section--dark .section-head p { color: var(--on-dark); }

.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}

/* Owner bio: the portrait panel needs far less width than the copy,
   so the text column takes the larger share and stays about as tall as the
   panel. Declared before the 860px query so the columns still stack there. */
.split--bio { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
/* Columns that start together at the top instead of centring against a
   taller neighbour, which left a heading floating mid-way down a panel. */
.split--top { align-items: start; }
/* Contact: the form gets the wider column. At 900px the even split left each
   field 146px wide, too narrow for an email address. */
.split--form { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 1000px) { .split--form .form-grid { grid-template-columns: minmax(0, 1fr); } }
/* The details column starts level with the form heading inside its panel. */
@media (min-width: 861px) { .contact-aside { padding-top: clamp(28px, 4vw, 44px); } }
/* A short note under a panel's main action. */
.panel__after { margin-top: 22px; color: var(--muted); font-size: var(--type-small); }

.divider { height: 1px; background: var(--line); border: 0; }

/* 5 · Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  font-size: var(--type-small);
  font-weight: 600;
  letter-spacing: .005em;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease,
              transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
/* On a phone a button already spans the column, so a label that no longer fits
   (a large browser font setting) wraps inside the pill instead of pushing the
   page sideways. At the default size no label here is long enough to wrap. */
@media (max-width: 620px) { .btn { white-space: normal; text-wrap: balance; max-width: 100%; } }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--forest-700); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--forest-800); color: var(--white); box-shadow: var(--shadow); }

.btn--accent { background: var(--brass-500); color: var(--brass-ink); }
.btn--accent:hover { background: var(--brass-200); color: var(--brass-ink); }

.btn--ghost { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn--ghost:hover { border-color: var(--moss-400); color: var(--forest-700); background: var(--white); }

.btn--on-dark { border-color: rgba(255, 255, 255, .38); color: var(--white); }
.btn--on-dark:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); color: var(--white); }

.btn--lg { padding: 16px 32px; font-size: var(--type-body); }
.btn--sm { padding: 9px 18px; font-size: var(--type-fine); }
.btn-row--spaced { margin-top: 44px; }
.btn-row--band { margin-top: clamp(36px, 5vw, 52px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: var(--type-small);
  text-decoration: none;
  color: var(--moss-500);
}
.link-arrow span { transition: transform .18s ease; }
/* Where an arrow link can wrap (the closing band on a phone, the hero panel),
   it flows inline so the arrow follows the last word, tied to it with a
   no-break space in the markup, instead of sitting beside a two-line block. */
.cta-band__secondary .link-arrow,
.hero__next-alt .link-arrow,
.hero__aside .link-arrow { display: inline; }
.cta-band__secondary .link-arrow span[aria-hidden],
.hero__next-alt .link-arrow span[aria-hidden],
.hero__aside .link-arrow span[aria-hidden] { display: inline-block; }
/* Phone numbers and the booking link broke at their hyphens on a phone. */
a[href^="tel:"], .book-instead a { white-space: nowrap; }
/* Text links that phones tap: padding grows the hit area to roughly 44px
   without moving the text (inline padding does not change the line box). */
.cta-band__secondary .link-arrow, .hero__next-alt .link-arrow, .hero__aside .link-arrow,
.book-instead a, .e404-links a { padding-block: 10px; }
.bio-card__link .link-arrow { padding-block: 8px; }
.link-arrow:hover span { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* 6 · Header / navigation ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* .97, not .86: at .86 large headings and the dark bands showed through
     behind the logo while scrolling. */
  background: rgba(255, 255, 255, .97);
  /* No backdrop-filter. It repainted on every scroll frame to produce an
     effect nobody asked for, and this system's own rules call glass and blur
     used as decoration a failure. The translucent fill alone separates the
     header from the page. */
  border-bottom: 1px solid var(--line);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--forest-800);
  flex-shrink: 0;
}
/* The tree-and-GTG mark, drawn in the logo's own green (#1f4d3a) as a PNG
   at 1x/2x/3x. It is wider than tall (1.41:1), so it is sized on height to
   sit level with the two-line name beside it. */
.brand__mark { display: block; width: 62px; height: 44px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  /* Never smaller than its default size, and grows with a larger font
     setting, but on a narrow phone only as far as the header can hold beside
     the menu button (at 150% it pushed the page 13px sideways at 390px). */
  font-size: min(1.115rem, max(17.84px, 5.2vw));
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--forest-800);
}
.brand__tag {
  /* 11.2px. Was .62rem (9.92px), under the 11px floor for functional text;
     uppercase at .17em tracking makes a small size read smaller still. */
  font-size: min(.7rem, max(11.2px, 3.3vw));
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
/* Scoped with :not(.btn) so the drawer CTA keeps its own button styling. A bare
   `.nav__links a` outranks `.btn--primary` on specificity (0,1,1 vs 0,1,0), which
   painted the mobile "Start a search" link in dark body text on its dark green
   fill and left it unreadable. */
.nav__links a:not(.btn) {
  display: block;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  font-size: var(--type-small);
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.nav__links a:not(.btn):hover { background: rgb(var(--moss-600-rgb) / .09); color: var(--forest-700); }
.nav__links a:not(.btn)[aria-current] { color: var(--forest-800); font-weight: 600; background: rgb(var(--moss-600-rgb) / .1); }

.nav__cta { flex-shrink: 0; }

/* The CTA inside the link list is for the mobile drawer only. The desktop
   layout already shows .nav__cta, so hiding it here prevents a duplicate. */
.nav__links .btn { display: none; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--white);
}
.nav__toggle span {
  position: relative;
  display: block;
  width: 19px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .22s ease, background-color .18s ease;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .22s ease, top .22s ease;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* 7 · Hero --------------------------------------------------------------- */
/* The hero is transparent: the wash on <body> shows through it and keeps
   going past it, so there is no edge where the tint stops. */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--body);
  padding-block: clamp(72px, 10vw, 120px) clamp(52px, 7vw, 88px);
}
.hero > .container { position: relative; z-index: 1; }
/* ch is font-relative, so this was retuned when the display face changed.
   Below 21ch the home headline breaks onto a third line. */
.hero h1 { color: var(--ink); max-width: 22ch; }
.hero__lede {
  margin-top: 22px;
  max-width: 54ch;
  font-size: var(--type-lede);
  /* Body, not Muted: the opening argument was the quietest text on the page. */
  color: var(--body);
}
.hero__note { margin-top: 14px; font-size: var(--type-small); color: var(--muted); }
.e404-links { margin-top: 28px; max-width: 54ch; color: var(--muted); font-size: var(--type-small); line-height: 2.1; }
.e404-path { margin-top: 14px; color: var(--muted); }
.e404-path code { font-family: inherit; font-weight: 600; color: var(--ink); word-break: break-all; }
.hero .btn-row { margin-top: 36px; }

.hero--page { padding-block: clamp(60px, 8vw, 96px) clamp(42px, 5vw, 60px); }
.hero--page h1 { max-width: 20ch; }

/* Inner-page openings: the pitch on the left, the page's strongest line on the
   right at headline strength under the brass rule, the same device as the
   Claims. Stacks at 1000px. */
.hero__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 24rem);
  gap: 36px clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero__statement {
  margin: 0;
  padding-top: 22px;
  border-top: 2px solid var(--brass-500);
  font-family: var(--font-display);
  font-size: var(--type-statement);
  font-weight: 600;
  /* 1.3, not headline leading: at two or three lines this reads as display-face
     prose, and tighter leading made it harder to read. */
  line-height: 1.3;
  letter-spacing: -.012em;
  color: var(--ink);
  text-wrap: balance;
}
/* Services: the two services as a large index, each a jump to its block. */
.hero__index { margin: 0; padding: 0; list-style: none; }
.hero__index a { display: block; padding: 20px 0 22px; text-decoration: none; color: var(--ink); }
.hero__index li:first-child a { border-top: 2px solid var(--brass-500); }
.hero__index li + li a { border-top: 1px solid var(--line); }
.hero__index-name {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-size: var(--type-subhead);
  font-weight: 600; line-height: 1.15; letter-spacing: -.012em;
}
.hero__index-desc { display: block; margin-top: 8px; font-size: var(--type-small); color: var(--body); }
.hero__index-arrow { font-size: .7em; color: var(--forest-700); transition: transform .18s ease; }
.hero__index a:hover .hero__index-name { color: var(--forest-700); }
.hero__index a:hover .hero__index-arrow { transform: translateY(3px); }
@media (max-width: 1000px) {
  .hero__split { grid-template-columns: minmax(0, 1fr); }
  .hero__statement { max-width: 30ch; font-size: clamp(1.35rem, 4.6vw, 1.75rem); }
  .hero__index { max-width: 34rem; }
}

/* Home: one claim leads its section at headline strength, the other three
   follow as a row. */
.claim.claim--lead {
  display: block;
  margin-top: clamp(34px, 5vw, 52px);
  padding-top: clamp(22px, 3vw, 30px);
  border-top: 2px solid var(--brass-500);
}
.claim.claim--lead h3 { max-width: 20ch; font-size: var(--type-headline); line-height: 1.12; }
.claim.claim--lead p { margin-top: 16px; max-width: 56ch; font-size: var(--type-lede); line-height: 1.6; color: var(--body); }
@media (min-width: 861px) { .claims.claims--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Client quote (README, "Adding a client testimonial"). On no page until there
   is a real client sentence with permission to use it. It opens under the
   claims' brass top rule; the old block's 3px left border is banned. */
.quote { margin: 0; max-width: 40rem; padding-top: clamp(22px, 3vw, 30px); border-top: 2px solid var(--brass-500); }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: var(--type-subhead); font-weight: 400; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.quote figcaption { margin-top: 18px; font-size: var(--type-small); color: var(--muted); }
.quote figcaption strong { display: block; font-weight: 600; color: var(--ink); }

/* Home hero: the headline, the pitch under it, and "what happens next". Three
   arrangements, chosen by whether the headline still holds two lines:
   - Wide (the container is 68rem or more: a window about 1180px wide and up at
     the default font size): the headline and the pitch share the left column and the panel sits
     beside both, centred on them. Starting it level with the pitch left a bare
     corner beside the headline and hung the panel 55px below the resume link.
     The headline's longer line measures 9.87em of its own size (616px at most)
     and the left column is 640-652px here, so it never takes a third line. The
     breakpoint is in rem, so a larger browser font setting raises it with the
     headline: at 17px and up the container never reaches it, and the layout
     below holds instead. Retune 68rem if the display face or headline changes.
   - From 1001px up to that: the headline keeps the full width on its own row,
     and the panel sits beside the pitch under it.
   - 1000px and under: one column, the panel after the resume link.
   Without :has() or container queries the wide arrangement never applies. */
.hero > .container:has(> .hero__body) { container: hero / inline-size; }
.hero__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 25rem);
  gap: 22px clamp(32px, 5vw, 72px);
  align-items: start;
}
.hero__body > h1 { grid-column: 1 / -1; }
.hero__body .hero__lede { margin-top: 0; }
@container hero (min-width: 68rem) {
  /* 48px rather than the 72px the gap reaches: it keeps the headline's longer
     line 24-36px clear of the column edge. */
  .hero__body { column-gap: 48px; }
  .hero__body > h1 { grid-column: 1; grid-row: 1; }
  .hero__main { grid-column: 1; grid-row: 2; }
  .hero__next { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
.hero__next { padding: clamp(22px, 3vw, 30px); }
.hero__next-title {
  font-size: var(--type-title);
  line-height: 1.25;
  margin: 0;
}
/* A real sequence, so it is numbered; the numerals are the display face in
   Deep Forest rather than brass, which stays reserved for the process band. */
.hero__steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  counter-reset: next;
  display: grid;
  gap: 12px;
}
.hero__steps li {
  counter-increment: next;
  position: relative;
  padding-left: 30px;
  font-size: var(--type-small);
  line-height: 1.5;
  color: var(--body);
  text-wrap: pretty;
}
.hero__steps li::before {
  content: counter(next);
  position: absolute;
  left: 2px;
  top: -1px;
  font-family: var(--font-display);
  font-size: var(--type-minor);
  font-weight: 600;
  color: var(--forest-700);
}
.hero__steps strong { color: var(--ink); font-weight: 600; }
.hero__next-alt {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgb(var(--moss-600-rgb) / .24);
}
/* Deep Forest, not the usual Moss: on the panel's tint, where the page wash's
   moss radial is strongest, Moss measured 4.48:1, under the floor. Deep
   Forest clears it at 7.7:1. */
.hero__next-alt .link-arrow { color: var(--forest-700); }
.hero__next-alt .link-arrow:hover { color: var(--forest-800); }

/* The two settled commitments. Plain statements under a hairline, not a metric
   row: a display-serif "In writing" set like a number promised a figure that
   was never there. */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px clamp(24px, 5vw, 72px);
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__stat dt {
  font-family: var(--font-display);
  font-size: var(--type-minor);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  text-wrap: balance;
}
.hero__stat dd {
  margin: 6px 0 0;
  font-size: var(--type-small);
  color: var(--muted);
  max-width: 46ch;
  text-wrap: pretty; /* "wrong." was left alone on the last line */
}

/* 8 · Cards & components ------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
/* Card labels that sit under an h2 and so must be h3 to keep the heading order
   unbroken, but are one-line labels rather than section headings: they keep the
   h4 type values (1.0625rem/1.35) they were set in before the level changed. */
.card h3 { margin-bottom: 10px; }
.card p { font-size: var(--type-small); color: var(--muted); max-width: 62ch; }
.card > * + .link-arrow { margin-top: 18px; }


/* Numbered process steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 28px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: var(--type-small);
  font-weight: 600;
  color: var(--brass-600);
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.step::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brass-500), var(--line));
}
.step h3 { font-size: var(--type-minor); margin-bottom: 8px; }
/* The note under the process steps: same size as the step text, a little
   quieter, on the dark band. */
.steps-note { margin-top: 32px; max-width: 62ch; font-size: var(--type-small); color: var(--on-dark); }
.step p { font-size: var(--type-small); color: var(--muted); }
.section--dark .step::after { background: linear-gradient(90deg, var(--sage-200), var(--line-dark)); }
.section--dark .step::before { color: var(--sage-200); }
.section--dark .step p { color: var(--on-dark); }

/* Checklist */
.checklist li:last-child { margin-bottom: 0; }
.checklist li { text-wrap: pretty; }
.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  font-size: var(--type-small);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sage-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23124a31' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.section--dark .checklist li::before { background-color: rgb(var(--sage-200-rgb) / .2); }
/* Things that will happen, not things included: a plain dot, because on the
   contact page a tick means done (the confirmation's first step). */
.checklist--next li { padding-left: 22px; }
.checklist--next li::before { top: .62em; left: 4px; width: 7px; height: 7px; background: var(--moss-500); }

/* Media / feature panel */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
}
/* Translucent so it always sits a step deeper than whatever is behind it. As
   a flat --sage-100 it disappeared against the page wash near the top of a
   page, which is exactly where these panels tend to be. */
.panel--sage { background: rgb(var(--moss-600-rgb) / .12); border-color: rgb(var(--moss-600-rgb) / .28); box-shadow: none; }

/* Owner portrait. The source file is 200x200, so it is deliberately never
   rendered larger than that, since scaling it up would show the softness. */
.portrait {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
  background: var(--sage-200);
}


/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--forest-700), var(--forest-900));
  border-radius: var(--r-lg);
  padding: clamp(36px, 5vw, 60px);
  color: var(--on-dark-strong);
  text-align: center;
}
.cta-band h2 { color: var(--white); max-width: 25ch; margin-inline: auto; }
.cta-band p { margin: 16px auto 0; max-width: 54ch; color: var(--on-dark); }
.cta-band .btn-row { margin-top: 30px; }
/* The secondary route, as a link rather than a second pill. As a co-equal
   button its outline measured 311px against the brass primary's 199px, so
   the page's closing ask was its quieter object. */
.cta-band__secondary { margin-top: 20px; }
.cta-band__secondary .link-arrow { color: var(--on-dark-strong); }
.cta-band__secondary .link-arrow:hover { color: var(--white); }

/* Role index -------------------------------------------------------------
   Six role categories as one-line entries rather than six cards. The visitor
   already knows which seat they need, so this is a list to scan, not six
   blocks to read; the descriptions moved to services.html, where someone who
   wants them is actually looking. */
.role-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 5vw, 64px);
  max-width: 52rem;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}
/* The owner-language example under each category: sans, muted, one line on
   desktop. The category above it stays the scan target. */
.role-index__eg {
  display: block;
  margin-top: 3px;
  font-family: var(--font-sans);
  font-size: var(--type-small);
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
}
.role-index li {
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: var(--type-minor);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

/* Catalogue --------------------------------------------------------------
   Term and definition, the way a reference volume sets an entry. This is the
   content that used to be a card grid on the home page: DESIGN.md forbids
   building a section out of same-size cards of heading plus text, so it is
   rebuilt as a ruled list rather than moved as-is. */
.catalogue { border-top: 1px solid var(--line); }
.catalogue > div {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 6px clamp(24px, 4vw, 56px);
  padding: clamp(20px, 3vw, 28px) 0;
  border-bottom: 1px solid var(--line);
}
.catalogue dt {
  font-family: var(--font-display);
  font-size: var(--type-minor);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.catalogue dd { margin: 0; color: var(--muted); font-size: var(--type-small); max-width: 62ch; text-wrap: pretty; }
/* The same ruled run on a dark band (owner, careers, advisory). */
.catalogue--dark { border-top-color: var(--line-dark); }
.catalogue--dark > div { border-bottom-color: var(--line-dark); }
.catalogue--dark dt { color: var(--white); }
.catalogue--dark dd { color: var(--on-dark); }
/* Claims at a lighter weight: a hairline, a smaller heading. For supporting
   statements that should not compete with the firm's main claims. */
.claims--plain .claim { border-top: 1px solid var(--line); }
.claims--plain .claim h3 { font-size: var(--type-title); }

/* Claims ----------------------------------------------------------------
   The four load-bearing reasons to choose this firm, set as statements under
   a brass rule rather than in cards. They used to sit in the same white box as
   a role label, which gave a category name and the firm's strongest argument
   identical weight. Brass because it is the system's one warm accent and
   these are the lines that have to land. Top border, not left: a coloured
   left border above 1px is banned. */
.claims { display: grid; gap: clamp(30px, 4vw, 46px); margin-top: clamp(34px, 5vw, 52px); }
.claim { padding-top: clamp(18px, 2.5vw, 24px); border-top: 2px solid var(--brass-500); }
.claim h3 {
  font-size: var(--type-lead-title);
  line-height: 1.25;
  color: var(--ink);
  max-width: 26ch;
}
.claim p { margin-top: 12px; color: var(--body); font-size: var(--type-small); max-width: 58ch; }

/* Direct routes that need neither the form nor the calendar: for anyone who
   would rather just write or ring. */
.cta-band p.cta-band__direct {
  /* Needs the tag in the selector. `.cta-band p` is (0,1,1) and a bare
     `.cta-band__direct` is (0,1,0), so the 54ch prose measure won and this
     row wrapped, stranding the separator at the end of line one - the very
     thing the rule below exists to prevent. Fourth instance of this exact
     trap in this stylesheet. */
  max-width: none;
  margin-top: 22px;
  font-size: var(--type-small);
  color: var(--on-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
}
.cta-band__direct a { color: var(--white); text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* The separator rides on a wrapper around the email link rather than being a
   flex item of its own, which left it stranded at the end of a wrapped line.
   It sits outside the link so it takes no underline and no tap. */
.cta-band__direct .sep::after { content: "\00b7"; margin-left: 12px; opacity: .6; }
.cta-band__direct a:hover { color: var(--sage-200); }

.cta-band__who {
  margin-top: 20px;
  font-size: var(--type-small);
  color: var(--on-dark);
}


/* Tags / pills */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  /* The small radius, not the pill: in the button's shape, labels read as
     things to tap. */
  border-radius: var(--r-sm);
  /* A faint sage tint, so a label reads as part of the brand rather than as a
     grey chip; the accent tag below stays the stronger sage. */
  background: rgb(var(--moss-600-rgb) / .075);
  /* No outline: a bordered chip reads as something to tap. The transparent
     border keeps the accent variant the same size. */
  border: 1px solid transparent;
  font-size: var(--type-fine);
  font-weight: 500;
  color: var(--body);
}
.tag--accent { background: var(--sage-100); color: var(--forest-700); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
/* Careers: the areas recruited for, as a plain centred line. Not chips: on a
   jobs page, chips read as filters. Separators sit at line ends. */
.areas-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 0; max-width: 44rem; margin: 14px auto 0; padding: 0; list-style: none; font-size: var(--type-small); color: var(--ink); }
.areas-list li:not(:last-child)::after { content: "\00b7"; margin: 0 .6em; color: var(--muted); }

/* Accordion (native details) */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: var(--type-minor);
  line-height: 1.35;
  text-wrap: balance;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d6a4f' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding-bottom: 24px; max-width: 62ch; color: var(--muted); }


/* Sideline --------------------------------------------------------------
   One quiet line pointing the other audience at their own page. Deliberately
   not the tracked-caps label: that is uppercase, right for a five-word attribute and
   wrong for a sentence - set as all caps it tripped the all-caps-body rule at
   95 characters, and it deserved to. */
.sideline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 14px;
  text-align: center;
  color: var(--muted);
  font-size: var(--type-small);
  line-height: 1.6;
}
.sideline strong {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}


/* Page helpers --------------------------------------------------------------
   These replaced inline style attributes on the inner pages. Each carries the
   same values the attribute did; the sizes are the Subhead and Small steps in
   DESIGN.md. */
.subhead { font-size: var(--type-subhead); }
.subhead--snug { margin-bottom: 10px; }
.subhead--spaced { margin-bottom: 26px; }
.hero--page .hero__title--wide { max-width: 24ch; }
.split--spaced { margin-bottom: clamp(56px, 8vw, 96px); }
.tag-row--spaced { margin-top: 24px; }
.btn-row--snug { margin-top: 28px; }
.divider--panel { margin: 24px 0; }
.panel__title { margin-bottom: 18px; }
.panel__note { font-size: var(--type-small); color: var(--muted); max-width: 62ch; }
.panel__heading { font-size: var(--type-lead-title); margin-bottom: 14px; }
.panel__heading--list { margin-bottom: 22px; }
.panel__text { color: var(--body); margin-bottom: 10px; }
.panel__aside { color: var(--muted); font-size: var(--type-small); margin-bottom: 26px; }
.panel-intro { color: var(--muted); font-size: var(--type-small); margin-bottom: 28px; }
.service-brief { max-width: 62ch; }
/* Services: advisory is a second service, not more of the first, so it opens
   under a hairline across the column, as it does in the opening index. The
   text keeps its measure. */
.split--spaced + .service-brief { max-width: none; padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.split--spaced + .service-brief > * { max-width: 62ch; }
.service-brief > * + * { margin-top: 20px; }
.service-brief > .subhead + p { margin-top: 14px; }
.form-actions { margin-top: 24px; }
.contact-next { margin-top: 32px; }
.contact-next h3 { margin-bottom: 12px; }
.areas-intro { margin-top: 34px; text-align: center; color: var(--muted); font-size: var(--type-small); }
/* A centred panel (careers). Its paragraphs left-align on a phone, where a
   centred four-line paragraph is hard to read. */
.panel--center { text-align: center; }
.panel--center > p { max-width: 54ch; margin: 16px auto 0; }
.panel--center > .panel__sub { margin-top: 18px; color: var(--body); }
.panel--center > .btn-row { margin-top: 30px; }
@media (max-width: 620px) {
  .panel--center { text-align: left; }
  .panel--center > p { margin-inline: 0; }
}
/* Owner bio card and the statement on the dark band. */
.bio-card { text-align: center; }
.bio-card__name { margin-top: 22px; font-family: var(--font-display); font-size: var(--type-lead-title); font-weight: 600; line-height: 1.25; color: var(--ink); }
.bio-card__role { margin-top: 6px; color: var(--moss-500); font-weight: 600; font-size: var(--type-small); }
.bio-card__tags { margin-top: 18px; font-size: var(--type-small); color: var(--body); text-wrap: balance; }
.bio-card__link { margin-top: 20px; }
/* The statement under a brass rule, like the Claims, not boxed on the dark band. */
.statement-wrap { margin-top: 44px; padding-top: 28px; border-top: 2px solid var(--brass-500); }
.statement { margin: 0; color: var(--white); text-align: center; font-family: var(--font-display); font-size: var(--type-subhead); line-height: 1.35; text-wrap: balance; }
/* Claims stacked in one column (owner page: the right half of a split). */
.claims.claims--stack { margin-top: 0; }
@media (min-width: 861px) {
  .claims.claims--stack { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .claims.claims--stack .claim { display: block; grid-row: auto; }
  .claims.claims--stack .claim p { margin-top: 12px; }
}
.sideline--after { margin-top: 28px; }
.nowrap { white-space: nowrap; }

/* 9 · Forms -------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: var(--type-fine);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .005em;
}
/* Block, not inline: as a run-on span it read as part of the label text and
   wrapped around the required asterisk. This line is the stated defence for
   the placeholder contrast exception, so it has to be findable. */
.field .hint { display: block; margin-top: 2px; font-size: var(--type-fine); color: var(--muted); font-weight: 400; }
/* A hint is its own line under the label (read as the field's description,
   not as part of its name), so it pulls up against the label. */
.field > .hint { margin-top: -4px; }
/* .field .hint sets display:block, which overrode the hidden attribute: the
   resume note showed to everyone. */
.field .hint[hidden] { display: none; }
/* One-tap options for "I am reaching out as". */
.choice { margin: 0; padding: 0; border: 0; min-width: 0; }
.choice legend { padding: 0; margin-bottom: 8px; font-size: var(--type-fine); font-weight: 600; color: var(--ink); }
.choice__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice__option {
  display: flex; align-items: center; gap: 10px; min-height: 46px;
  padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); font-size: var(--type-small); color: var(--ink); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
/* The label text wraps: as a bare text run in the flex label it would not shrink. */
.choice__option > span { flex: 1 1 auto; min-width: 0; }
/* .field input (full width, padding, border) would otherwise apply to the radios
   and stretch each one across the row; revert them to the native control. */
.choice .choice__option input[type="radio"] { all: revert; accent-color: var(--forest-700); width: 18px; height: 18px; flex-shrink: 0; margin: 0; cursor: pointer; }
.choice__option:hover { border-color: var(--moss-400); }
.choice__option:has(input:checked) { border-color: var(--forest-700); background: rgb(var(--moss-600-rgb) / .08); }
.choice__option:has(input:focus-visible) { outline: 3px solid var(--moss-400); outline-offset: 2px; }
/* The ring belongs to the whole option; `all: revert` above would otherwise
   bring back the browser's own 1px ring on the radio inside it as well. */
.choice .choice__option input[type="radio"]:focus-visible { outline: none; }
.choice__option:has(input[aria-invalid="true"]) { border-color: var(--brass-500); }
@media (max-width: 620px) { .choice__options { grid-template-columns: minmax(0, 1fr); } }
/* After a confirmed send, the intro and booking line above the form go too. */
.panel:has(#contact-form.is-sent) > .subhead,
.panel:has(#contact-form.is-sent) .panel-intro,
.panel:has(#contact-form.is-sent) .book-instead { display: none; }
.form-status--done .form-status__line { font-family: var(--font-display); font-size: var(--type-title); line-height: 1.25; }
.form-status__actions a { display: inline-block; padding-block: 10px; }
/* The form page: less space between the heading and the form. */
.hero--page.hero--snug { padding-bottom: clamp(16px, 2vw, 24px); }
.hero--snug + .section { padding-top: clamp(24px, 3vw, 40px); }
/* Field errors: brass, the attention tint, never red (the One Hue Rule). */
.field-error { margin: 0; font-size: var(--type-fine); font-weight: 600; color: var(--brass-600); }
.field [aria-invalid="true"] { border-color: var(--brass-500); }
.form-reply { align-self: center; font-size: var(--type-small); color: var(--muted); }
/* After a confirmed send the confirmation replaces the form. */
#contact-form.is-sent .form-grid,
#contact-form.is-sent .form-actions,
#contact-form.is-sent .form-note { display: none; }
.form-status__sent { margin-top: 14px; }
.form-status__sent summary { cursor: pointer; font-weight: 600; color: var(--forest-700); }
.form-status__sent pre { margin: 10px 0 0; white-space: pre-wrap; font: inherit; font-size: var(--type-small); color: var(--body); }
.form-status--done .btn { margin-top: 14px; }
.req { color: var(--brass-600); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: var(--type-body);
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 148px; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e6764' stroke-width='2.2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 17px;
  padding-right: 38px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--moss-400);
  box-shadow: 0 0 0 3px rgb(var(--moss-400-rgb) / .16);
}
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }

/* A placeholder in a single-line input cannot wrap, so an over-long one is cut
   mid-character at the right edge. Keep example text short enough to fit and put
   real guidance in a .hint under the label, where it stays visible while typing.
   This is the backstop for anything that still overflows. */
.field input { text-overflow: ellipsis; }

/* Shown unless js/main.js actually initialised. The inline script in <head>
   adds .js before main.js is even requested, so .js only means scripting is
   enabled - if the file is blocked by CSP or lost to the network, .js is
   there and the handler is not. main.js adds .js-ready once it has wired the
   form up, which is the real signal. */
html:not(.js-ready) .needs-js { display: none; }

/* The alternative to filling in seven fields, offered before the visitor
   starts rather than after they have given up. */
/* A plain line, not a bordered box inside the bordered form panel. */
.book-instead {
  margin: 0 0 26px;
  font-size: var(--type-small);
  color: var(--body);
}
.book-instead a { font-weight: 600; }

.form-note {
  margin-top: 16px;
  max-width: 62ch;
  font-size: var(--type-fine);
  color: var(--muted);
  line-height: 1.55;
}

/* The attention state: brass, because something is still outstanding. Only a
   send the server confirmed gets the green .form-status--done below. */
.form-status {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  /* A warm tint carries the attention rather than an accent rule: a 2px
     coloured border on a rounded box reads as a stripe stuck to a panel, and
     the detector says so. Derived from the token, not hand-mixed. */
  background: rgb(var(--brass-500-rgb) / .09);
  border: 1px solid rgb(var(--brass-500-rgb) / .32);
  font-size: var(--type-small);
  color: var(--body);
}
.form-status[hidden] { display: none; }
/* A confirmed send is the one outcome this site can state as fact, so it is
   the one that gets the affirmative colouring. Everything else stays brass:
   something is still outstanding. */
.form-status--done {
  background: rgb(var(--moss-600-rgb) / .1);
  border-color: rgb(var(--moss-600-rgb) / .3);
}
.form-status--done .form-status__line { color: var(--forest-700); }
/* The path inside the confirmation: the home hero's numbered steps, with
   step one drawn as a check. One authored stroke, drawn once. */
.done-path { margin: 14px 0 4px; }
.done-path li.is-done::before { content: none; }
.done-path li.is-done { color: var(--ink); font-weight: 600; }
.done-path__tick {
  position: absolute; left: 0; top: 1px; width: 20px; height: 20px;
  fill: none; stroke: var(--forest-700); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
@media (prefers-reduced-motion: no-preference) {
  .done-path__tick polyline { stroke-dasharray: 24; stroke-dashoffset: 24; animation: tick-draw .42s var(--ease-out) .18s forwards; }
}
@keyframes tick-draw { to { stroke-dashoffset: 0; } }
/* A kept draft, said out loud, with a way to clear it. */
.draft-note {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  margin: 0 0 20px; padding: 10px 14px; border-radius: var(--r-sm);
  background: rgb(var(--moss-600-rgb) / .08); font-size: var(--type-small); color: var(--body);
}
.draft-note__reset {
  padding: 6px 0; border: 0; background: none; font: inherit; font-weight: 600;
  color: var(--moss-500); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgb(var(--moss-500-rgb) / .45); cursor: pointer;
}
.draft-note__reset:hover { color: var(--forest-700); text-decoration-color: currentColor; }
.form-status.form-status--done:focus-visible { outline-color: var(--moss-400); }
/* Moss on the dark bands and the closing band measured about 2.7:1; sage clears 3:1. */
.section--dark :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--sage-200); }

/* Honeypot. Off-screen rather than display:none, which bots check for, and
   never reachable by keyboard or screen reader. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Brass, not the affirmative green. renderStatus() focuses this panel, which
   otherwise picks up the global moss focus ring - the one colour the panel is
   deliberately not using, wrapped around the whole thing. */
.form-status:focus-visible { outline-color: var(--brass-500); }
.form-status__line { margin: 0; color: var(--ink); font-weight: 600; }
.form-status__detail { margin: 8px 0 0; line-height: 1.55; }
/* The message the visitor would be sending, shown so the copy fallback's
   "select the text" instruction is actually followable. */
.form-status__body {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgb(var(--brass-500-rgb) / .3);
  border-radius: var(--r-sm);
  background: var(--white);
  font-family: inherit;
  font-size: var(--type-fine);
  line-height: 1.55;
  color: var(--body);
  resize: vertical;
}
.form-status__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 16px 0 0;
}
.form-status__actions a { font-weight: 600; }

/* Contact details list */
.contact-list li + li { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact-list dt {
  font-size: var(--type-label);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-list dd { margin: 0; font-size: var(--type-body); color: var(--ink); }
.contact-list dd a { text-decoration: none; font-weight: 500; }
.contact-list dd a:hover { text-decoration: underline; }
.contact-list .sub { display: block; font-size: var(--type-fine); color: var(--muted); margin-top: 4px; }

/* 10 · Careers ----------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.filters .field { flex: 1 1 190px; min-width: 0; }
.filters .field--search { flex: 2 1 260px; }

.results-count {
  margin: 26px 0 18px;
  font-size: var(--type-small);
  color: var(--muted);
}
.results-count strong { color: var(--ink); }

.job {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 28px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.job + .job { margin-top: 16px; }
.job:hover { box-shadow: var(--shadow); border-color: rgb(var(--moss-600-rgb) / .3); transform: translateY(-2px); }
.job[hidden] { display: none; }

.job__title { font-size: var(--type-title); margin-bottom: 10px; }
.job__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: var(--type-fine);
  color: var(--muted);
  margin-bottom: 14px;
}
.job__meta span { display: inline-flex; align-items: center; gap: 6px; }
.job__meta svg { width: 15px; height: 15px; stroke: currentColor; flex-shrink: 0; }
.job__desc { font-size: var(--type-small); color: var(--muted); max-width: 62ch; margin-bottom: 16px; }
.job__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.job__salary {
  font-family: var(--font-display);
  font-size: var(--type-body);
  color: var(--ink);
  white-space: nowrap;
  text-align: right;
}
.job__salary small { display: block; font-family: var(--font-sans); font-size: var(--type-label); color: var(--muted); font-weight: 500; }

.empty-state {
  display: none;
  text-align: center;
  padding: 56px 24px;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--r);
}
.empty-state.is-visible { display: block; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); }

/* 11 · Footer ------------------------------------------------------------ */
/* Mobile action bar -----------------------------------------------------
   Below 67.5em (1080px at the default font size) the header CTA is hidden,
   because it cannot fit beside the
   brand lockup and the menu toggle at 390px without shortening its label to
   something that no longer matches the label used everywhere else. Without
   it a phone visitor passes roughly 2,800px of the home page with nothing to
   tap. The bar carries the one primary action instead, and only appears once
   the hero's own button has scrolled away, so it never competes with it.
   Opaque rather than translucent: a blur here would be decoration. */
.action-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: none;
  padding: 10px var(--gutter);
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 10px rgba(18, 33, 26, .06);
}
.action-bar .btn { width: 100%; }

.site-footer {
  background: var(--forest-900);
  color: var(--on-dark-quiet);
  padding: clamp(48px, 6vw, 72px) 0 32px;
  font-size: var(--type-small);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
/* The footer carries the full stacked logo in cream, in place of the
   mark-and-name lockup the header uses. */
.brand--logo { display: block; width: fit-content; }
.brand--logo img { display: block; width: 180px; height: auto; }
.footer__blurb { margin-top: 18px; max-width: 34ch; color: var(--on-dark-quiet); font-size: var(--type-small); }

/* Footer column headings. They sit in the contentinfo landmark rather than under
   the last content section, so they are h2; as h4 they skipped a level on every
   page. Keyed on the class, not the tag, so the level can change again without
   disturbing the type. line-height is explicit because h4 inherited 1.35 while
   h2 inherits 1.12, and the rendered size should not move. */
.footer__col .footer__col-title {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: var(--type-label);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
/* The footer carries the phone number and the email address, which is the one
   thing a phone visitor most needs to tap, and it had the tightest targets on
   the site: roughly 24px of effective height. These pass WCAG 2.5.8 on the
   spacing exception either way, but passing a floor is not the same as being
   comfortable under a thumb. */
.footer__col li + li { margin-top: 14px; }
.footer__col li > a { display: inline-block; padding: 4px 0; }
.footer__col a { color: var(--on-dark-quiet); text-decoration: none; }
.footer__col a:hover { color: var(--white); text-decoration: underline; }

/* <address> renders italic by default, which reads as emphasis rather than as
   the contact block it is. The colour comes from .site-footer. */
.footer__address { font-style: normal; line-height: 1.5; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  font-size: var(--type-fine);
  color: var(--on-dark-quiet);
}
.footer__bottom a { color: var(--on-dark-quiet); }

/* 12 · Motion & responsive ----------------------------------------------- */

@media (max-width: 1000px) {
  .hero__body { grid-template-columns: minmax(0, 1fr); }
  /* 36px below the resume link: the row gap is the headline's 22px. */
  .hero__next { max-width: 36rem; margin-top: 14px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

/* The navigation collapses here, above the breakpoints that stack the grids.
   With "Meet the Owner" in the menu, the links plus the brand and the CTA
   stop fitting on one row just under 1060px, and a wrapped navigation bar
   looks broken rather than narrow. 1080px leaves a little margin.
   In em, not px: a media-query em is the visitor's default font size, so
   67.5em is 1080px at the usual 16px but 1350px for someone who set their
   browser to "Large" and 1620px at "Very large". In px the links kept
   growing with the text while the breakpoint stood still, and the header
   wrapped at 125% and pushed the page sideways by ~130px at 150%. */
@media (max-width: 67.5em) {
  .action-bar.is-shown { display: block; }
  /* While the bar is up, keep a focused element clear of it. Chrome scrolls a
     newly focused element to mid-screen, but Safari and Firefox stop at the
     bottom edge, which is exactly where the bar sits. */
  html:has(.action-bar.is-shown) { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  /* Room for the action bar, only on pages that have one. */
  body:has(> .action-bar) .site-footer { padding-bottom: 104px; }
  .nav__toggle { display: inline-flex; }
  /* Without main.js the toggle cannot open anything, so it is not offered;
     the footer carries every link. */
  html:not(.js-ready) .nav__toggle { display: none; }
  .nav__cta { display: none; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.is-open { display: flex; animation: drop-in .22s var(--ease-out); }
  .nav__links a:not(.btn) { padding: 13px 14px; border-radius: var(--r-sm); font-size: var(--type-body); }
  /* Full width, like every other control at this size. */
  .nav__links .btn { margin-top: 10px; justify-content: center; display: flex; }
}

@media (max-width: 860px) {
  .catalogue > div { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: 1fr; }
  /* Once the service blocks stack, always lead with the heading, never the
     bullet panel. The desktop left/right alternation is purely visual. */
  article.split > .panel { order: 2; }
  .job { grid-template-columns: 1fr; }
  .job__actions { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .job__salary { text-align: left; }
}

/* An email address has no break opportunities: in a padded panel at 320px it
   forced the panel wider than the screen. */
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* The narrowest phones, or a desktop window squeezed to 320px with a classic
   scrollbar: the 62px mark plus the name left the menu button 11px past the
   edge. A smaller mark and gap bring it back inside. */
@media (max-width: 360px) {
  .brand { gap: 8px; }
  .brand__mark { width: 50px; height: 36px; }
  .brand__name { font-size: 1.02rem; }
}

@media (max-width: 620px) {
  /* The closing band's paragraph ran centred across five lines on a phone,
     against this file's own rule for centred text. */
  .cta-band { text-align: left; }
  .cta-band h2, .cta-band p { margin-left: 0; margin-right: 0; }
  .cta-band .btn-row.center, .cta-band p.cta-band__direct { justify-content: flex-start; }
  /* The two hero commitments stack: side by side at 390px each heading broke
     onto three lines in a 160px column. */
  .hero__stats { grid-template-columns: minmax(0, 1fr); }
  /* Two links, two very different outcomes, previously 6px apart under a
     thumb. Stacked with real separation and a larger hit area. */
  .cta-band__direct { flex-direction: column; gap: 14px; }
  .cta-band__direct a { display: inline-block; padding: 6px 0; }
  .cta-band__direct .sep::after { content: none; }
  .role-index { grid-template-columns: minmax(0, 1fr); }
  .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 26px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .job__actions .btn { width: auto; }
}


@media (min-width: 861px) {
  /* Four claims, so two columns rather than three: a lone fourth on a second
     row reads as an afterthought, and these are the page's load-bearing
     arguments. */
  .claims { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 3.5vw, 48px); }
  /* Headings of one and two lines sit side by side, which left the body copy
     starting at different heights across a row. Subgrid aligns them; without
     support each .claim simply stacks as before. */
  .claims { grid-template-rows: repeat(2, auto); }
  @supports (grid-template-rows: subgrid) {
    .claim { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 12px; }
    .claim p { margin-top: 0; }
  }
}

/* Motion -------------------------------------------------------------------
   One authored moment and a handful of continuity transitions. Nothing
   decorative moves, and every section is visible before any script runs.
   Arrivals decelerate (--ease-out); exits are instant or faster. */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* The focal sequence: the four process steps drawn in turn (js section 2).
   Each rule draws left to right, 120ms after the one before, and its numeral
   brightens as the line reaches it. About 0.8s end to end, once. Only the
   rules and numerals wait; the step text is never hidden. */
@media (prefers-reduced-motion: no-preference) {
  .js-ready .steps .step::after {
    transform-origin: left center;
    transition: transform .46s var(--ease-out);
  }
  .js-ready .steps .step::before { transition: opacity .3s ease; }
  .js-ready .steps:not(.is-drawn) .step::after { transform: scaleX(0); }
  .js-ready .steps:not(.is-drawn) .step::before { opacity: .35; }
  .js-ready .steps .step:nth-child(2)::after { transition-delay: .12s; }
  .js-ready .steps .step:nth-child(3)::after { transition-delay: .24s; }
  .js-ready .steps .step:nth-child(4)::after { transition-delay: .36s; }
  .js-ready .steps .step:nth-child(1)::before { transition-delay: .26s; }
  .js-ready .steps .step:nth-child(2)::before { transition-delay: .38s; }
  .js-ready .steps .step:nth-child(3)::before { transition-delay: .5s; }
  .js-ready .steps .step:nth-child(4)::before { transition-delay: .62s; }

  /* FAQ answers open and close instead of snapping (where the browser can
     animate to height: auto; elsewhere they toggle as before). */
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size .3s var(--ease-out), content-visibility .3s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

/* Continuity: things that appear say where they came from. The phone menu
   drops from the header, the action bar rises from the bottom edge, and the
   contact form's messages settle into place. Exits are instant. */
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes rise-in { from { transform: translateY(100%); } }
@keyframes settle-in { from { opacity: 0; transform: translateY(4px); } }
.action-bar.is-shown { animation: rise-in .24s var(--ease-out); }
.form-status:not([hidden]) { animation: settle-in .26s var(--ease-out); }
.field-error:not([hidden]), .field .hint#candidate-note:not([hidden]) { animation: settle-in .18s var(--ease-out); }

/* One continuous site: moving between pages is a cross-document View
   Transition rather than a blank reload. The header holds perfectly still
   (the new page's marker is simply there; a gliding marker would carry its
   old label across the other links); the page title carries over into the
   next title; a pressed "Tell us about your role" button opens
   into the contact form panel; a link that names a page grows into that
   page's title (js section 11 picks the pressed link). Browsers without the
   API, and anyone who asks for reduced motion, get ordinary page loads. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  .site-header { view-transition-name: site-header; }
  .hero h1 { view-transition-name: page-title; }
  .panel:has(#contact-form) { view-transition-name: contact-panel; }

  /* The page underneath: the old one steps back fast, the new one settles up
     into place. */
  ::view-transition-old(root) { animation: vt-leave .18s ease-out both; }
  ::view-transition-new(root) { animation: vt-arrive .4s var(--ease-out) .05s both; }

  /* The header is the same on every page, so it does not crossfade at all. */
  ::view-transition-old(site-header) { display: none; }
  ::view-transition-new(site-header) { animation: none; }

  /* Shared elements travel together on the arrival curve. */
  ::view-transition-group(page-title),
  ::view-transition-group(contact-panel) { animation-duration: .46s; animation-timing-function: var(--ease-out); }
  ::view-transition-old(page-title),
  ::view-transition-old(contact-panel) { animation: vt-leave .16s ease-out both; }
  ::view-transition-new(page-title),
  ::view-transition-new(contact-panel) { animation: vt-fade .34s var(--ease-out) .08s both; }

  /* With no partner on the other page (no title, or no form),
     the element simply moves with the page it belongs to. */
  ::view-transition-new(page-title):only-child,
  ::view-transition-new(contact-panel):only-child { animation: vt-arrive .4s var(--ease-out) .05s both; }
  ::view-transition-old(page-title):only-child,
  ::view-transition-old(contact-panel):only-child { animation: vt-leave .18s ease-out both; }
}
@keyframes vt-leave { to { opacity: 0; } }
@keyframes vt-fade { from { opacity: 0; } }
@keyframes vt-arrive { from { opacity: 0; transform: translateY(10px); } }

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