/* Public site (home page and Insights): the navy and ivory "Definitive" design.
   Loaded only by templates/public/base.html, after site.css, so the portal, sign-in and admin keep their
   own look. It resets site.css's colour names (--bg, --ink, --accent…) to the new palette, so the shared
   article styles (prose, case box, highlights) pick it up; case-note-dark.css loads after this file on case
   notes and keeps the same colours, adding its own fonts. System fonts only: nothing to download. */

:root {
  color-scheme: light;

  /* Brand */
  --navy: #15323e;
  --navy-hover: #2d5262;
  --navy-rule: #526c77;
  --paper: #f7f4ed;
  --sage: #e5e9e2;
  --slate: #526e76;
  --bronze: #8f5831;
  --gold: #d6b18b;
  --on-navy: #f7f4ed;
  --on-navy-muted: #c7d4d8;

  /* site.css names, used by every shared part of the public pages */
  --bg: var(--paper);
  --surface: #fffdf8;
  --ink: #18313d;
  --heading: #18313d;
  --muted: #55656c;
  --line: #ced2cc;
  --accent: var(--bronze);
  --accent-ink: #ffffff;
  --danger: #a4332b;
  --ok: #2f6b3f;
  --tint: #eceee7;
  --button-bg: var(--navy);
  --button-ink: #ffffff;
  --button-hover: var(--navy-hover);
  --focus: #ae6838;

  /* Light highlight colours, whatever the system setting (site.css swaps them for dark mode). */
  --hl-case: #6d32d6; --hl-law: #1d63c2; --hl-cite: #b13c0b; --hl-money: #15703a; --hl-date: #0f6b64;

  /* Form fields, chosen options and the strong rule over panels */
  --field: #ffffff;
  --field-line: var(--slate);
  --choice-line: #b4bdb8;
  --strong: var(--navy);
  /* The header's Contact us button: the accent colour, so it's the one thing that stands out */
  --cta: var(--accent);
  --cta-ink: #ffffff;
  --cta-hover: #774826;

  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --header-height: 96px;
}

/* Dark mode: the navy palette. Articles start in it; the header button switches any public page (public.js). */
:root[data-public-theme="dark"] {
  color-scheme: dark;
  --bg: #102833;
  --surface: #15323e;
  --ink: #e9eeec;
  --heading: #f4f1ea;
  --muted: #9fb1b6;
  --line: #2a4753;
  --accent: var(--gold);
  --accent-ink: #102833;
  --danger: #ef8a80;
  --ok: #86c797;
  --tint: rgba(255, 255, 255, .05);
  --button-bg: var(--gold);
  --button-ink: #102833;
  --button-hover: #e4c6a6;
  --focus: var(--gold);
  --sage: #15323e;
  --slate: #c9d4d6;
  --navy: #0b1f28;
  --field: #0c222c;
  --field-line: #5d7a85;
  --choice-line: #3a5865;
  --strong: var(--gold);
  /* Contact us keeps light mode's bronze and white text (white on gold would be too faint to read) */
  --cta: var(--bronze);
  --cta-ink: #ffffff;
  --cta-hover: #a3653a;
  --hl-case: #c4a5ff; --hl-law: #7cb5ff; --hl-cite: #ffa36b; --hl-money: #6fdc9a; --hl-date: #5fd4c4;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body {
  background: var(--bg); color: var(--ink);
  font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body h1, body h2, body h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.03em; line-height: 1.12; color: var(--heading); }
:where(.home-page, .pub-header, .pub-footer, .insight-grid, .enquiry-page) a { color: inherit; }
.case-box a { color: var(--accent); }
img, svg { max-width: 100%; }
:where(a, button, summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 1px; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }

.pub-container { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.wide-only { display: inline; }

.pub-skip {
  position: fixed; top: -100px; left: 16px; z-index: 100; padding: 14px 20px;
  background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none;
}
.pub-skip:focus { top: 12px; }

.pub-kicker {
  margin: 0; color: var(--accent);
  font: 600 12px/1.6 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}

/* Buttons and links */
.pub-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 54px; padding: 13px 24px;
  border: 1px solid transparent; font: 600 14px/1.3 var(--sans); letter-spacing: .01em; text-decoration: none;
  transition: background-color .2s, color .2s, transform .2s, border-color .2s;
}
.pub-btn:hover { transform: translateY(-2px); }
.pub-btn-solid { background: var(--button-bg); color: var(--button-ink); }
.pub-btn-solid:hover { background: var(--button-hover); }
a.pub-btn-solid { color: var(--button-ink); }
.pub-btn-outline { border-color: var(--ink); color: var(--ink); }
.pub-btn-outline:hover { background: var(--tint); }

.pub-quiet-link, .pub-read-link, .pub-light-link {
  display: inline-flex; align-items: center; gap: 18px; min-height: 44px;
  font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.pub-quiet-link:hover, .pub-read-link:hover { color: var(--accent); }
.pub-light-link { color: var(--on-navy); }
.pub-light-link:hover { color: var(--gold); }

/* Header */
.pub-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}
.pub-header-inner { position: relative; display: flex; align-items: center; gap: 30px; height: var(--header-height); }
.pub-brand { display: flex; align-items: center; gap: 14px; flex: none; color: var(--ink); text-decoration: none; }
.pub-monogram { position: relative; width: 42px; height: 46px; font: 45px/.9 var(--serif); letter-spacing: -.1em; }
.pub-monogram span { position: absolute; left: 15px; top: 17px; font-size: 31px; }
.pub-wordmark { font: 17px/1.13 var(--serif); letter-spacing: -.025em; }
.pub-wordmark b { font-size: 22px; font-weight: 400; }
.pub-nav { --nav-gap: 34px; order: 1; display: flex; align-items: center; gap: var(--nav-gap); margin-left: auto; font-size: 14px; }
.pub-nav a { display: flex; align-items: center; gap: 22px; min-height: 46px; color: var(--ink); text-decoration: none; }
.pub-nav a:hover, .pub-nav a[aria-current="page"] { color: var(--accent); }
.pub-nav-portal { padding: 10px 19px; border: 1px solid var(--line); }
.pub-nav a.pub-nav-portal:hover { border-color: var(--accent); }
/* Contact us: a solid bronze button with white text in both modes, close to Client portal */
.pub-nav a.pub-nav-contact {
  margin-left: calc(12px - var(--nav-gap)); padding: 10px 20px; border: 1px solid var(--cta);
  background: var(--cta); color: var(--cta-ink); font-weight: 600; transition: background-color .2s, border-color .2s;
}
.pub-nav a.pub-nav-contact:hover, .pub-nav a.pub-nav-contact[aria-current="page"] {
  background: var(--cta-hover); border-color: var(--cta-hover); color: var(--cta-ink);
}
.pub-menu-toggle { display: none; }
.pub-theme-toggle {
  order: 2; display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line); color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s;
}
.pub-theme-toggle[hidden] { display: none; }
.pub-theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.pub-theme-toggle svg { width: 20px; height: 20px; }
.pub-theme-toggle .icon-sun, [data-public-theme="dark"] .pub-theme-toggle .icon-moon { display: none; }
[data-public-theme="dark"] .pub-theme-toggle .icon-sun { display: block; }

/* Insights dropdown in the header (templates/insights/nav_menu.html): latest case notes and guides */
.pub-nav-menu > summary {
  display: flex; align-items: center; gap: 10px; min-height: 46px; color: var(--ink); cursor: pointer; list-style: none;
}
.pub-nav-menu > summary::-webkit-details-marker { display: none; }
.pub-nav-menu > summary:hover, .pub-nav-menu > summary.is-current, .pub-nav-menu[open] > summary { color: var(--accent); }
.pub-nav-chevron {
  width: 7px; height: 7px; margin-top: -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .2s, margin .2s;
}
.pub-nav-menu[open] .pub-nav-chevron { margin-top: 3px; transform: rotate(-135deg); }
.pub-nav-menu { position: relative; }
.pub-nav-panel {
  position: absolute; top: calc(100% + 20px); left: 50%; z-index: 30; width: 410px; padding: 26px 26px 4px;
  background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--accent);
  box-shadow: 0 24px 44px rgba(9, 24, 31, .22); transform: translateX(-50%);
}
.pub-nav-kicker { margin: 0 0 6px; color: var(--accent); font: 600 11px/1.6 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
/* Case notes and Practical guides: icon, name and a line under it, arrow at the end */
.pub-nav .pub-nav-section {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 0 14px;
  min-height: 0; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--heading);
}
.pub-nav-section svg { width: 26px; height: 26px; color: var(--accent); }
.pub-nav-section b { display: block; font: 400 26px/1.15 var(--serif); letter-spacing: -.025em; transition: color .15s; }
.pub-nav-section small { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.pub-nav-arrow { color: var(--accent); font-size: 18px; transition: transform .15s; }
.pub-nav-section:hover b { color: var(--accent); }
.pub-nav-section:hover .pub-nav-arrow, .pub-nav-latest:hover .pub-nav-latest-action > span { transform: translate(2px, -2px); }
/* The latest case note */
.pub-nav .pub-nav-latest { display: block; min-height: 0; padding: 22px 0 18px; border-bottom: 1px solid var(--line); color: var(--heading); }
.pub-nav-latest-label { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.pub-nav-latest-label > span { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.pub-nav-latest-title { display: block; margin: 14px 0 18px; font: 400 23px/1.25 var(--serif); letter-spacing: -.02em; text-wrap: balance; transition: color .15s; }
.pub-nav-latest:hover .pub-nav-latest-title { color: var(--accent); }
.pub-nav-latest-action { display: flex; justify-content: space-between; color: var(--ink); font-size: 13px; font-weight: 600; }
.pub-nav-latest-action > span { color: var(--accent); font-size: 16px; transition: transform .15s; }
.pub-nav .pub-nav-all {
  display: flex; justify-content: space-between; align-items: center; min-height: 58px; padding: 0;
  color: var(--ink); font-size: 14px; font-weight: 600;
}
.pub-nav-all > span { color: var(--accent); font-size: 20px; transition: transform .15s; }
.pub-nav .pub-nav-all:hover { color: var(--accent); }
.pub-nav-all:hover > span { transform: translateX(3px); }

/* After a page is swapped in, focus moves to it (public.js) for screen readers; no outline for that. */
#page:focus { outline: none; }

/* Messages (sign-out notices and the like) under the sticky header */
body:has(.pub-header) .messages { max-width: 1280px; margin-top: 16px; }

/* Footer */
.pub-footer { border-top: 1px solid var(--line); }
.pub-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding-block: 30px 38px; }
.pub-footer-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.pub-footer-nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.pub-footer-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.pub-footer p { margin: 0; color: var(--muted); font-size: 13px; }

/* Home: hero */
.home-hero { display: grid; grid-template-columns: 1.27fr 1fr; gap: 50px; align-items: center; min-height: 630px; padding-block: 32px 40px; }
.home-hero h1 { margin: 21px 0 27px; font-size: clamp(48px, 5.3vw, 77px); line-height: 1.08; letter-spacing: -.04em; }
.home-hero h1 em { color: var(--slate); font-weight: 400; }
.home-intro { max-width: 490px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.home-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 34px; }
.home-hero-actions .pub-quiet-link { font-weight: 400; }
.home-hero-footnote { display: flex; align-items: center; gap: 13px; margin: 53px 0 0; color: var(--muted); font-size: 13px; letter-spacing: .03em; }
.home-hero-footnote > span { width: 31px; height: 1px; background: var(--accent); }
.home-hero-visual { position: relative; height: 552px; margin: 0; overflow: hidden; background: #203c49; }
.home-hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-hero-visual figcaption {
  position: absolute; inset: auto 0 0 0; display: flex; align-items: flex-end; min-height: 91px; padding: 24px 27px;
  background: linear-gradient(transparent, rgba(18, 44, 57, .9)); color: var(--on-navy);
  font: 24px/1.2 var(--serif); letter-spacing: -.015em;
}

/* Home: shortcuts to the four areas */
.area-shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.area-shortcuts a {
  display: flex; align-items: center; gap: 17px; min-height: 75px; padding: 22px;
  border-left: 1px solid var(--line); font-size: 14px; text-decoration: none; transition: background-color .2s, color .2s;
}
.area-shortcuts a:first-child { border-left: 0; padding-left: 0; }
.area-shortcuts a > span:first-child { color: var(--accent); font-size: 12px; }
.area-shortcuts b { font-weight: 400; }
.area-shortcuts a > span:last-child { margin-left: auto; font-size: 18px; }
.area-shortcuts a:hover { background: var(--tint); color: var(--accent); }

/* Home: areas of expertise */
.areas { display: grid; grid-template-columns: .88fr 1.12fr; gap: 92px; padding-block: 88px 92px; }
.areas-intro h2 { margin: 18px 0 25px; font-size: clamp(34px, 3.2vw, 46px); }
.areas-intro > p:last-child { max-width: 340px; margin: 0; color: var(--muted); font-size: 16px; }
.area { border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-height) + 16px); }
.area:last-child { border-bottom: 1px solid var(--line); }
.area summary {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) 26px; grid-template-areas: "num stage icon" "num title icon" "num text icon";
  column-gap: 21px; padding-block: 25px; list-style: none; cursor: pointer;
}
.area summary::-webkit-details-marker { display: none; }
.area-number { grid-area: num; padding-top: 22px; color: var(--accent); font-size: 12px; }
.area-stage { grid-area: stage; margin-bottom: 7px; color: var(--muted); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
.area summary h3 { grid-area: title; margin: 0; font-size: 29px; transition: color .2s; }
.area-summary { grid-area: text; max-width: 450px; margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.area-icon {
  grid-area: icon; justify-self: end; display: grid; place-items: center; width: 26px; height: 26px; margin-top: 20px;
  color: var(--accent); font: 26px/1 var(--sans); transition: transform .2s;
}
.area[open] .area-icon { transform: rotate(45deg); }
.area summary:hover h3 { color: var(--accent); }
.area-content { padding: 0 34px 28px 43px; }
.area-content > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 15px; }
.area-content .area-scope { margin-top: 19px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--slate); font-size: 13px; letter-spacing: .02em; }
.area-content .pub-read-link { margin-top: 9px; }

/* Home: the process, on navy */
.approach { padding-block: 64px 38px; background: var(--navy); color: var(--on-navy); }
.approach .pub-kicker { color: var(--gold); }
.approach h2, .approach h3 { color: var(--on-navy); }
.approach-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 70px; }
.approach-heading h2 { margin: 16px 0 0; font-size: clamp(34px, 3.2vw, 45px); }
.approach-heading > p { max-width: 350px; margin: 0; color: var(--on-navy-muted); font-size: 16px; }
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 40px; margin-bottom: 0; padding: 0; list-style: none; }
.process li { padding-block: 24px 20px; border-top: 1px solid var(--navy-rule); }
.process-index { color: var(--gold); font-size: 12px; letter-spacing: .11em; text-transform: uppercase; }
.process h3 { margin: 19px 0 12px; font: 600 18px/1.5 var(--sans); letter-spacing: 0; }
.process p { max-width: 340px; margin: 0; color: var(--on-navy-muted); font-size: 15px; line-height: 1.8; }
.approach-foot { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--navy-rule); }
.approach-foot > span { color: var(--on-navy-muted); font-size: 13px; }

/* Home: latest insights */
.home-insights { padding-block: 84px 78px; }
.pub-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 35px; }
.pub-section-heading h2 { margin: 16px 0 0; font-size: clamp(34px, 3.2vw, 46px); }
.editorial-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 59px; }
.editorial-grid.is-single { grid-template-columns: minmax(0, 860px); }
.editorial-grid a { text-decoration: none; }
.editorial-featured { display: flex; flex-direction: column; min-height: 427px; padding: 37px 40px; background: var(--sage); border-top: 3px solid var(--strong); }
.editorial-label { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 13px; }
.editorial-label > span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.editorial-featured h3 { margin: 28px 0 21px; font-size: clamp(30px, 2.8vw, 39px); line-height: 1.17; text-wrap: balance; }
.editorial-grid p { max-width: 460px; margin: 0; color: var(--muted); font-size: 15px; }
.editorial-action { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; margin-top: auto; padding-top: 25px; font-size: 14px; font-weight: 600; }
.editorial-list { display: flex; flex-direction: column; justify-content: space-between; gap: 35px; }
.editorial-list > a { display: flex; flex: 1; flex-direction: column; padding-top: 22px; border-top: 1px solid var(--line); }
.editorial-list h3 { margin: 20px 0 15px; font-size: clamp(24px, 2.1vw, 28px); line-height: 1.22; text-wrap: balance; }
.editorial-list .editorial-action { padding-top: 17px; }
.editorial-grid a h3 { transition: color .2s; }
.editorial-grid a:hover h3 { color: var(--accent); }

/* Home: next step */
.next-step { display: grid; grid-template-columns: .68fr 1.32fr; gap: 70px; padding-block: 54px 58px; border-top: 1px solid var(--line); }
.next-step h2 { margin: 17px 0 0; font-size: clamp(32px, 2.9vw, 42px); }
.next-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.next-paths > div { display: flex; flex-direction: column; align-items: flex-start; }
.next-label { color: var(--accent); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; }
.next-paths h3 { margin: 13px 0 17px; font-size: 27px; }
.next-paths p { max-width: 290px; min-height: 50px; margin: 0; color: var(--muted); font-size: 15px; }
.next-paths .pub-btn { margin-top: 23px; }
.next-paths small { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; }

/* Insights list and articles in the light design */
.public-page { width: min(1280px, calc(100% - 112px)); max-width: none; margin: 0 auto; padding: 40px 0 88px; }
.public-page.article { width: min(760px, calc(100% - 112px)); }
.public-head { max-width: 760px; margin: 24px 0 48px; }
.public-head h1 { margin: 18px 0 20px; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -.04em; }
.public-head .lede { max-width: 620px; margin: 0; color: var(--muted); font-size: 18px; }
.article-head h1 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.article-head .eyebrow, .article .eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .16em; }
.article .crumbs { font-size: 14px; }
.article .crumbs a:hover { color: var(--accent); }
.case-box { border-radius: 0; border-left-width: 3px; background: var(--surface); }
.prose h2 { letter-spacing: -.02em; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.more-insights h2 { font-size: 28px; }

/* All / Case notes / Guides on the Insights list */
.insight-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 36px; }
.insight-filters a {
  display: inline-flex; align-items: center; min-height: 42px; padding: 8px 18px;
  border: 1px solid var(--line); color: var(--ink); font-size: 14px; text-decoration: none; transition: border-color .2s, color .2s;
}
.insight-filters a:hover { border-color: var(--accent); color: var(--accent); }
.insight-filters a[aria-current="page"] { background: var(--button-bg); border-color: var(--button-bg); color: var(--button-ink); }

.insight-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 48px; }
.insight-card {
  display: flex; flex-direction: column; padding: 24px 0 28px; border: 0; border-top: 1px solid var(--line); border-radius: 0;
  background: none; color: var(--ink); text-decoration: none; transition: none;
}
.insight-card:hover { transform: none; }
.insight-meta { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 13px; letter-spacing: 0; }
.insight-meta > span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.insight-card h3 { margin: 18px 0 14px; font-size: 26px; line-height: 1.22; letter-spacing: -.03em; text-wrap: balance; transition: color .2s; }
.insight-card:hover h3 { color: var(--accent); }
.insight-card p { flex: 1; margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.insight-more { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--ink); font-size: 14px; font-weight: 600; }

/* Enquiry page (/enquire/): the "register your interest" form for people who aren't clients yet */
.enquiry-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 84px; align-items: start; }
.public-head.enquiry-head { margin: 24px 0 0; }
.enquiry-head h1 { text-wrap: balance; }
.enquiry-steps { margin: 40px 0 0; padding: 0; list-style: none; }
.enquiry-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding-block: 15px; border-top: 1px solid var(--line); font-size: 15px; }
.enquiry-steps li:last-child { border-bottom: 1px solid var(--line); }
.enquiry-steps li > span { padding-top: 2px; color: var(--accent); font-size: 12px; }
.enquiry-client { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin: 28px 0 0; color: var(--muted); font-size: 14px; }
.enquiry-client a { color: var(--ink); }

.enquiry-form { margin-top: 24px; padding: 40px 44px 44px; background: var(--sage); border-top: 3px solid var(--strong); }
.enquiry-field { min-width: 0; margin: 0 0 26px; padding: 0; border: 0; }
.enquiry-field > label, .enquiry-field > legend { display: block; margin: 0 0 8px; padding: 0; font-size: 15px; font-weight: 600; }
.enquiry-optional { color: var(--muted); font-weight: 400; }
.enquiry-field > small { display: block; margin: -2px 0 10px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.enquiry-field :is(input[type=text], input[type=email], input[type=tel], textarea) {
  display: block; width: 100%; min-height: 52px; margin: 0; padding: 12px 14px;
  background: var(--field); border: 1px solid var(--field-line); border-radius: 0; color: var(--ink);
  font: 16px/1.5 var(--sans);
}
.enquiry-field textarea { min-height: 168px; resize: vertical; }
.enquiry-form :is(input, textarea):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--strong); }

.enquiry-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.enquiry-choice {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px;
  background: var(--field); border: 1px solid var(--choice-line); font-size: 15px; cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.enquiry-choice:last-child { grid-column: 1 / -1; }
.enquiry-choice:hover { border-color: var(--field-line); }
.enquiry-choice:has(input:checked) { border-color: var(--strong); box-shadow: inset 0 0 0 1px var(--strong); }
.enquiry-choice input, .enquiry-consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--strong); }

.enquiry-consent label { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; cursor: pointer; }
.enquiry-consent input { margin-top: 2px; }

.enquiry-field.has-error { padding-left: 16px; border-left: 3px solid var(--danger); }
.enquiry-field.has-error :is(input[type=text], input[type=email], input[type=tel], textarea) { border: 2px solid var(--danger); }
.enquiry-error { margin: 0 0 8px; color: var(--danger); font-size: 14px; font-weight: 600; }
.enquiry-errors { margin: 0 0 32px; padding: 20px 24px; background: var(--surface); border: 2px solid var(--danger); }
.enquiry-errors:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.enquiry-errors h2 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.02em; }
.enquiry-errors ul { margin: 0; padding-left: 20px; }
.enquiry-errors li + li { margin-top: 4px; }
.enquiry-errors a { color: var(--danger); font-weight: 600; text-underline-offset: 3px; }

/* The honeypot field: off screen, out of the tab order and hidden from screen readers. */
.enquiry-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.enquiry-privacy { margin: 4px 0 24px; color: var(--muted); font-size: 14px; }
.enquiry-form button { cursor: pointer; }

.enquiry-sent { margin-bottom: 0; padding-bottom: 40px; }
/* Phone and organisation share a row, aligned at the bottom so the boxes line up despite the hint under phone. */
.enquiry-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; align-items: end; }
.enquiry-ref { margin: 18px 0 0; color: var(--muted); font-size: 15px; letter-spacing: .02em; }
.enquiry-ref strong { margin-left: 8px; color: var(--ink); font: 600 20px/1.3 var(--mono, ui-monospace, monospace); letter-spacing: .04em; }
.enquiry-track-note { max-width: 60ch; margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.enquiry-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 40px 0 0; padding: 0; list-style: none; }
.enquiry-track li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 26px 16px 0 0; color: var(--muted); font-size: 14px; }
.enquiry-track li::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--line); }
.enquiry-track li.is-done::before { background: var(--accent); }
.enquiry-track-dot { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--surface, var(--sage)); border: 2px solid var(--line); }
.enquiry-track li.is-done .enquiry-track-dot { background: var(--accent); border-color: var(--accent); }
.enquiry-track li.is-current .enquiry-track-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); }
.enquiry-track-label { color: var(--ink); font-size: 16px; font-weight: 600; }
.enquiry-track li:not(.is-done):not(.is-current) .enquiry-track-label { color: var(--muted); font-weight: 400; }
.enquiry-facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); font-size: 15px; }
.enquiry-facts dt { color: var(--muted); }
.enquiry-facts dd { margin: 0; }
.enquiry-sent-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  /* Page changes: the header stays put and the content cross-fades in about 220ms, the new page lifting
     a few pixels into place. The page behind (ivory or navy) fades at the same pace. */
  .pub-header { view-transition-name: site-header; }
  ::view-transition-group(root), ::view-transition-group(site-header), ::view-transition-group(page) {
    animation-duration: .22s; animation-timing-function: cubic-bezier(.2, .8, .2, 1);
  }
  ::view-transition-old(page) { animation: .16s cubic-bezier(.4, 0, 1, 1) both pub-page-out; }
  ::view-transition-new(page) { animation: .22s cubic-bezier(.2, .8, .2, 1) both pub-page-in; }

  /* Article cards: the border and arrow answer the pointer quickly. */
  .insight-card { transition: border-color .15s ease; }
  .insight-card:hover { border-top-color: var(--accent); }
  :is(.insight-more, .editorial-action) > span:last-child { transition: transform .15s ease; }
  :is(.insight-card, .editorial-grid a):hover :is(.insight-more, .editorial-action) > span:last-child { transform: translate(3px, -3px); }

  /* Home page: each section after the hero eases in once as it scrolls into view. */
  @supports (animation-timeline: view()) {
    @media screen {
      .home-page > :is(section, nav):not(.home-hero) > * {
        animation: pub-reveal linear both;
        animation-timeline: view();
        animation-range: entry 5% entry 60%;
      }
    }
  }

  /* Areas of expertise: panels slide open and closed instead of snapping. */
  @supports selector(::details-content) {
    .area-list { interpolate-size: allow-keywords; }
    .area::details-content {
      block-size: 0;
      opacity: 0;
      overflow-y: clip;
      transition: block-size .34s cubic-bezier(.2, .8, .2, 1), opacity .24s ease, content-visibility .34s allow-discrete;
    }
    .area[open]::details-content { block-size: auto; opacity: 1; }
    .area-jump .area::details-content { transition: none; }
  }
}
@keyframes pub-reveal { from { opacity: 0; transform: translateY(24px); } }
@keyframes pub-page-out { to { opacity: 0; } }
@keyframes pub-page-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pub-btn, .area-icon, .area summary h3, .area-shortcuts a, .editorial-grid a h3, .insight-card h3, .enquiry-choice, .pub-theme-toggle, .pub-nav-chevron, .insight-filters a,
  .pub-nav-arrow, .pub-nav-all > span, .pub-nav-latest-action > span { transition: none; }
  .pub-btn:hover { transform: none; }
}

/* Laptops and small desktops */
@media (max-width: 1100px) {
  .pub-container, .public-page { width: calc(100% - 72px); }
  .public-page.article { width: min(760px, calc(100% - 72px)); }
  .pub-nav { --nav-gap: 24px; }
  .home-hero { grid-template-columns: 1.2fr 1fr; gap: 35px; min-height: 590px; }
  .home-hero-visual { height: 520px; }
  .home-hero-visual figcaption { padding-inline: 22px; font-size: 23px; }
  .area-shortcuts a { gap: 11px; padding-inline: 16px; font-size: 13px; }
  .areas { gap: 55px; }
  .process { gap: 32px; }
  .editorial-grid { gap: 40px; }
  .editorial-featured { padding: 32px; }
  .next-step { grid-template-columns: .6fr 1.4fr; gap: 40px; }
  .next-paths { gap: 25px; }
  .next-paths h3 { font-size: 25px; }
  .enquiry-layout { gap: 48px; }
  .enquiry-form { padding: 36px; }
  .pub-footer-nav { gap: 20px; }
}

/* Narrower screens: the nav moves into the Menu button (it no longer fits on one line) */
@media (max-width: 960px) {
  .pub-header-inner { gap: 10px; }
  .pub-theme-toggle { margin-left: auto; }
  .pub-menu-toggle {
    order: 3; display: flex; align-items: center; gap: 16px; min-height: 44px; padding: 10px 14px;
    background: none; border: 1px solid var(--line); color: var(--ink); font: 14px var(--sans); cursor: pointer;
  }
  .pub-menu-toggle > span { font-size: 20px; line-height: 1; transition: transform .2s; }
  .pub-menu-toggle[aria-expanded="true"] > span { transform: rotate(45deg); }
  .pub-nav {
    position: absolute; top: calc(100% - 6px); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 18px 28px rgba(24, 49, 61, .1);
  }
  .pub-nav.is-open { display: flex; }
  .pub-nav { max-height: calc(100dvh - var(--header-height)); overflow-y: auto; }
  .pub-nav a { min-height: 48px; padding-inline: 10px; font-size: 16px; }
  .pub-nav-portal, .pub-nav a.pub-nav-contact { justify-content: space-between; }
  .pub-nav a.pub-nav-contact { margin: 6px 0 0; }
  .pub-nav-menu > summary { min-height: 48px; padding-inline: 10px; font-size: 16px; justify-content: space-between; }
  .pub-nav-panel {
    position: static; width: auto; padding: 4px 10px 0; transform: none;
    background: none; border: 0; box-shadow: none;
  }
  .pub-nav .pub-nav-section { padding-block: 14px; }
  .pub-nav-section b { font-size: 22px; }
  .pub-nav-latest-title { font-size: 20px; }
  .pub-nav .pub-nav-all { min-height: 52px; }
}

/* Tablets and phones: single column */
@media (max-width: 800px) {
  :root { --header-height: 80px; }
  .pub-container, .public-page, .public-page.article { width: calc(100% - 40px); }
  .wide-only { display: none; }
  .pub-brand { gap: 12px; }
  .pub-monogram { width: 38px; font-size: 40px; }
  .pub-monogram span { left: 14px; font-size: 28px; }
  .pub-wordmark { font-size: 16px; }
  .pub-wordmark b { font-size: 21px; }

  .home-hero { grid-template-columns: 1fr; gap: 32px; min-height: 0; padding-block: 34px; }
  .home-hero h1 { margin: 18px 0 22px; font-size: clamp(42px, 9vw, 64px); }
  .home-intro { font-size: 17px; }
  .home-hero-actions { margin-top: 28px; }
  .home-hero-footnote { margin-top: 30px; }
  .home-hero-visual { height: clamp(320px, 62vw, 455px); }
  .home-hero-visual img { object-position: center 53%; }

  .area-shortcuts { grid-template-columns: 1fr 1fr; }
  .area-shortcuts a, .area-shortcuts a:first-child { min-height: 64px; padding: 16px 14px; border-left: 0; border-bottom: 1px solid var(--line); }
  .area-shortcuts a:nth-child(2n) { border-left: 1px solid var(--line); }
  .area-shortcuts a:nth-last-child(-n + 2) { border-bottom: 0; }

  .areas { grid-template-columns: 1fr; gap: 30px; padding-block: 58px; }
  .areas-intro > p:last-child { max-width: 520px; }
  .area-summary { max-width: none; }
  .area-content > p { max-width: none; }

  .approach { padding-block: 48px 28px; }
  .approach-heading { flex-direction: column; align-items: flex-start; gap: 22px; }
  .approach-heading > p { max-width: 540px; }
  .process { grid-template-columns: 1fr; gap: 0; margin-top: 30px; }

  .home-insights { padding-block: 58px; }
  .pub-section-heading { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
  .editorial-grid { grid-template-columns: 1fr; gap: 34px; }
  .editorial-featured { min-height: 0; padding: 30px; }
  .editorial-grid p { max-width: none; }

  .next-step { grid-template-columns: 1fr; gap: 28px; padding-block: 46px; }
  .next-paths p { max-width: none; min-height: 0; }

  .public-page { padding-top: 24px; }
  .public-head { margin: 16px 0 36px; }

  .enquiry-layout { grid-template-columns: 1fr; gap: 8px; }
  .public-head.enquiry-head { margin-top: 16px; }
  .enquiry-steps { margin-top: 30px; }
  .enquiry-form { padding: 32px 28px 36px; }

  .pub-footer-inner { flex-wrap: wrap; gap: 18px 25px; }
  .pub-footer p { width: 100%; }
}

/* Phones */
@media (max-width: 520px) {
  .home-hero { padding-top: 26px; gap: 28px; }
  .home-intro { font-size: 16px; }
  .home-hero-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .home-hero-actions .pub-btn { justify-content: space-between; }
  .home-hero-actions .pub-quiet-link { align-self: flex-start; }
  .home-hero-visual figcaption { padding: 20px; font-size: 21px; }
  .area-shortcuts a, .area-shortcuts a:first-child { gap: 10px; padding: 14px 10px; font-size: 13px; }
  .area-shortcuts a > span:last-child { font-size: 16px; }
  .area summary { grid-template-columns: 18px minmax(0, 1fr) 26px; column-gap: 14px; padding-block: 22px; }
  .area summary h3 { font-size: 26px; }
  .area-summary { font-size: 14px; }
  .area-content { padding: 0 0 24px 32px; }
  .area-content > p { font-size: 14px; }
  .approach-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .editorial-featured { padding: 24px; }
  .editorial-label { flex-direction: column; gap: 4px; }
  .next-paths { grid-template-columns: 1fr; gap: 32px; }
  .next-paths > div { padding-top: 24px; border-top: 1px solid var(--line); }
  .next-paths .pub-btn { align-self: stretch; justify-content: space-between; }
  .insight-card h3 { font-size: 24px; }
  .enquiry-form { margin-inline: -20px; padding: 28px 20px 32px; }
  .enquiry-choices { grid-template-columns: 1fr; }
  .enquiry-pair { grid-template-columns: 1fr; }
  .enquiry-track { grid-template-columns: 1fr; gap: 18px; }
  .enquiry-track li { padding: 0 0 0 30px; }
  .enquiry-track li::before { top: 18px; bottom: -18px; left: 7px; right: auto; width: 2px; height: auto; }
  .enquiry-track li:last-child::before { display: none; }
  .enquiry-form .pub-btn { width: 100%; justify-content: space-between; }
  .enquiry-sent-links { flex-direction: column; align-items: stretch; gap: 8px; }
  .enquiry-sent-links .pub-btn { justify-content: space-between; }
  .enquiry-sent-links .pub-quiet-link { align-self: flex-start; }
}

/* Very small phones */
@media (max-width: 360px) {
  .pub-container, .public-page, .public-page.article { width: calc(100% - 32px); }
  .pub-wordmark { font-size: 15px; }
  .pub-wordmark b { font-size: 19px; }
  .pub-menu-toggle { gap: 10px; padding-inline: 12px; }
  .area-shortcuts a > span:first-child { display: none; }
  .enquiry-form { margin-inline: -16px; padding-inline: 16px; }
}

@media print {
  .pub-header { position: static; backdrop-filter: none; }
  .pub-menu-toggle, .pub-theme-toggle, .pub-skip, .area-shortcuts, .pub-nav-menu { display: none; }
  .approach { background: none; color: var(--ink); }
  .approach h2, .approach h3, .process p, .approach-heading > p { color: var(--ink); }
  details { break-inside: avoid; }
}
