/* SystemiQ website styles: design concept "clean"
   Square edges, flat colour, few boxes and very few icons. Structure comes from
   typography, white space, thin rules and photography.
   Brand: SystemiQ Brand Guidelines (2018) and the SystemiQ proposal style guide (2026).
   Accessibility target: WCAG 2.2 AA throughout, AAA where possible.
   Every text/background pair is checked by tools/check-contrast.pl. */

/* ---------- Fonts (headings: Lato, SIL Open Font Licence) ---------- */
/* Text uses each device's own interface font (San Francisco on Apple devices, Segoe UI on Windows,
   Roboto on Android): nothing to download. Main headings (h1, h2) use "SystemiQ Headings", a trimmed
   copy of Lato Bold made by tools/subset-font.pl and renamed as its open font licence requires.
   Characters outside the unicode-range fall back to the text font. */
@font-face { font-family: "SystemiQ Headings"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/systemiq-headings-bold.woff") format("woff"); unicode-range: U+0020-007E, U+00A0-0101, U+0112-0113, U+012A-012B, U+014C-014D, U+0152-0153, U+0160-0161, U+016A-016B, U+0178, U+017D-017E, U+2010, U+2012-2015, U+2018-201E, U+2020-2022, U+2026, U+2030, U+2032-2033, U+2039-203A, U+20AC, U+2122, U+2190-2193, U+2212; }

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --navy: #002235;
  --cyan: #1dbae7;
  --teal: #44d4c6;
  --royal: #1c134f;

  /* Text roles (ratios on white / on --bg-soft) */
  --heading: #002235;       /* 16.4:1 */
  --text: #2b3a42;          /* 11.8:1 */
  --text-muted: #46525a;    /* 8.0:1 / 7.6:1 */
  --link: #04516a;          /* 8.8:1 on white, 8.3:1 on --bg-soft */
  --label: #04516a;
  --deep-blue: #07708f;     /* large text, list markers and rules only */

  /* Surfaces and rules (all flat) */
  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --line: #d5dee4;          /* decorative dividers */
  --control-border: #7b8a94; /* form field outlines: 3:1 against both white and --bg-soft (WCAG 1.4.11) */
  --error: #9e1a20;          /* error messages: 8.0:1 on white, 7.5:1 on --bg-soft */

  /* On navy and royal */
  --on-dark: #ffffff;
  --on-dark-muted: #d3dde3;
  --on-dark-line: rgb(255 255 255 / 0.26);
  --focus: #002235;
  --focus-on-dark: #44d4c6;

  /* The brand's short title rule is the only gradient on the site */
  --rule: linear-gradient(90deg, var(--cyan), var(--teal));

  /* Type scale: sizes grow smoothly with the screen, between the limits shown */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-heading: "SystemiQ Headings", var(--font);
  --step--1: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);      /* small text and labels, 16 to 17px */
  --step-card: clamp(1.0625rem, 1.02rem + 0.2vw, 1.125rem); /* card and list summaries, 17 to 18px */
  --step-0: clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem);      /* body, 18 to 20px */
  --step-1: clamp(1.25rem, 1.18rem + 0.3vw, 1.375rem);      /* small headings, 20 to 22px */
  --step-2: clamp(1.3125rem, 1.2rem + 0.5vw, 1.5rem);       /* lede and quotes, 21 to 24px */
  --step-3: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem);        /* headings in long text, 24 to 30px */
  --step-4: clamp(1.625rem, 1.35rem + 0.9vw, 2.125rem);     /* section headings, 26 to 34px */
  --step-5: clamp(2rem, 1.6rem + 1.25vw, 2.625rem);          /* page titles, 32 to 42px */
  --step-hero: clamp(2.25rem, 1.8rem + 1.5vw, 3rem);         /* home page title, 36 to 48px */

  /* Space */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem; --space-9: 6rem;
  --measure: 58ch;          /* about 70 characters in the system fonts (66 to 72 measured), within the 80-character limit (WCAG 1.4.8) */

  /* Page width. The side margin is 5% of the screen (20px on phones, 96px on a
     1920px monitor), so content uses the width of every screen in proportion.
     On screens wider than 1920px the whole layout is centred. */
  --container: 120rem;
  --gutter: clamp(1.25rem, 5vw, 6rem);

  /* The page's two columns on wide screens. Text and photos, headings and
     introductions, and content and sidebars all line up on the same columns. */
  --cols: minmax(0, 1fr) minmax(0, 1.1fr);
  --col-gap: var(--space-8);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--space-6); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg, picture, video { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; margin: 0 0 var(--space-4); font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--step-5); letter-spacing: -0.015em; line-height: 1.12; }
h2 { font-size: var(--step-4); letter-spacing: -0.01em; line-height: 1.18; }
h1, h2 { font-family: var(--font-heading); }   /* main headings in Lato; everything else in the text font */
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }
p, ul, ol, dl, blockquote, figure, table { margin: 0 0 var(--space-5); }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.4em; }
li + li { margin-top: var(--space-2); }
li::marker { color: var(--deep-blue); }
strong, b { font-weight: 700; }
cite { font-style: italic; }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--heading); text-decoration-thickness: 2px; }
/* A link on a line of its own gets a 44px click area without changing the layout (WCAG 2.5.5) */
.solo-link { display: inline-block; padding-block: 0.4em; margin-block: -0.4em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.site-footer :focus-visible, .band--royal :focus-visible, .section--navy :focus-visible { outline-color: var(--focus-on-dark); }

.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -10rem; z-index: 100;
  background: var(--navy); color: var(--on-dark); padding: var(--space-3) var(--space-5);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: var(--space-4); outline-color: var(--focus-on-dark); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--measure); }
/* A full-width section of reading text keeps the page's left edge, with a comfortable line length */
.container.prose { max-width: var(--container); }
.container.prose > * { max-width: var(--measure); }
/* Every block of reading text keeps a comfortable line length, measured in its own font size */
p, dd, blockquote, figcaption, .prose li, .check-list, .rule-list { max-width: var(--measure); }
.prose > :last-child { margin-bottom: 0; }
.prose h2:not(.rule-after) { font-size: var(--step-3); margin-top: var(--space-7); }
.prose h3:not(.card__title, .case-study__title) { margin-top: var(--space-6); }
.prose > h2:first-child, .prose > h3:first-child, .prose > .eyebrow + h2 { margin-top: 0; }

.brand-strip { display: none; }

/* Short brand rule under titles (brand: title, short rule, key message) */
.page-header h1::after, .hero h1::after, .rule-after::after {
  content: ""; display: block; width: 3rem; height: 3px; margin-top: var(--space-4); background: var(--rule);
}
.page-header h1::after, .hero h1::after { margin-top: var(--space-5); }
h2.rule-after { margin-bottom: var(--space-5); }

/* Small label above a heading */
.eyebrow { margin: 0 0 var(--space-3); font-size: var(--step--1); font-weight: 700; line-height: 1.4; letter-spacing: 0.02em; color: var(--label); }
.lede { font-size: var(--step-2); line-height: 1.5; color: var(--text); max-width: 44ch; margin: 0; }
.text-large { font-size: var(--step-1); line-height: 1.6; }

/* ---------- Header and navigation ---------- */
.site-header { position: relative; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 5rem; flex-wrap: wrap; }
.site-logo { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding-block: var(--space-2); }
.site-logo img { height: clamp(2.375rem, 24.5vw - 2.75rem, 3.5625rem); width: auto; } /* 57px, 1.5x the earlier 38px (9 November 2026); smaller on phones under about 410px, so the Menu button stays beside it */
@media (min-width: 78rem) and (max-width: 79.99rem) { .site-logo img { height: 3.125rem; } } /* 50px where the full menu first appears, so it stays on one line */

.nav-toggle {
  display: none; align-items: center; gap: var(--space-2);
  min-height: 48px; min-width: 48px; padding: var(--space-2) var(--space-4);
  font: inherit; font-weight: 700; color: var(--heading);
  background: var(--bg); border: 1px solid var(--heading); cursor: pointer;
}
.js .nav-toggle { display: inline-flex; }
.nav-toggle:hover { background: var(--bg-soft); }
.nav-toggle__icon { width: 1.25rem; height: 0.875rem; position: relative; border-block: 2px solid currentColor; }
.nav-toggle__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid currentColor; transform: translateY(-50%); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { border-color: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid currentColor; transform: rotate(-45deg); }

.site-nav { width: 100%; }
.site-nav__list { list-style: none; margin: 0; padding: 0 0 var(--space-4); }
.site-nav__item { margin: 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
.site-nav__link { flex: 1; display: flex; align-items: center; min-height: 48px; padding: var(--space-2) 0; color: var(--heading); font-weight: 700; text-decoration: none; }
.site-nav__link:hover { color: var(--heading); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.site-nav__link[aria-current] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--deep-blue); text-underline-offset: 0.35em; }
/* In the phone menu the arrow sits at the right of its 48px button, in line with the Services and Industries arrows
   (iPhone testing, 22 November 2026) */
.site-nav__sub-toggle { display: inline-flex; align-items: center; justify-content: flex-end; padding: 0; width: 48px; height: 48px; background: transparent; border: 0; color: var(--heading); cursor: pointer; }
.site-nav__sub-toggle[hidden] { display: none; }
.site-nav__sub-toggle svg { width: 1rem; height: 1rem; transition: transform 0.15s ease; }
.site-nav__sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-nav__sub-toggle:hover { background: var(--bg-soft); }
/* A section with no page of its own (Industries): its heading is one button that opens the list */
.site-nav__menu-button { background: transparent; border: 0; font: inherit; font-weight: 700; cursor: pointer; text-align: left; justify-content: space-between; gap: var(--space-2); }
.site-nav__menu-button svg { width: 1rem; height: 1rem; flex: none; transition: transform 0.15s ease; }
.site-nav__menu-button[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-nav__menu-button.is-current { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--deep-blue); text-underline-offset: 0.35em; }
/* Without JavaScript, dropdowns open on hover and keyboard focus instead */
html:not(.js) .site-nav__item:hover > .site-nav__sub, html:not(.js) .site-nav__item:focus-within > .site-nav__sub { display: block; }
.site-nav__sub { list-style: none; margin: 0; padding: 0 0 var(--space-3) var(--space-4); width: 100%; }
.site-nav__sub[hidden] { display: none; }
.site-nav__sub li { margin: 0; }
.site-nav__sub a { display: flex; align-items: center; min-height: 44px; padding: var(--space-1) var(--space-3); color: var(--link); text-decoration: none; }
.site-nav__sub a:hover { background: var(--bg-soft); color: var(--heading); text-decoration: underline; }
.site-nav__sub a[aria-current="page"] { font-weight: 700; color: var(--heading); background: var(--bg-soft); }

@media (max-width: 77.99rem) { .js .site-nav:not(.is-open) { display: none; } }
/* From 1248px the full menu fits on one line, with room to spare in any device's system font */
@media (min-width: 78rem) {
  /* The header is deliberately not sticky, so it can never cover the focused element (WCAG 2.4.11 and 2.4.12). */
  .site-header__inner { flex-wrap: nowrap; }
  .js .nav-toggle, .nav-toggle { display: none; }
  .site-nav { width: auto; display: block; flex: 1 1 auto; min-width: 0; }
  /* If the menu cannot fit on one line (for example with increased text spacing, WCAG 1.4.12), it wraps to a second row instead of running off the screen */
  .site-nav__list { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 0 var(--space-2); padding: 0; }
  .site-nav__item { border: 0; position: relative; flex-wrap: nowrap; }
  .site-nav__link { padding: var(--space-2) var(--space-3); font-size: var(--step--1); white-space: nowrap; }
  .site-nav__link:hover, .site-nav__link[aria-current] { text-underline-offset: 0.5em; }
  .site-nav__sub-toggle { width: 44px; height: 44px; margin-left: -12px; justify-content: flex-start; padding: 0 0 0 0.5rem; } /* 44px target (WCAG 2.5.5) */
  .site-nav__sub-toggle:hover { background: transparent; color: var(--link); }
  .site-nav__sub {
    position: absolute; top: calc(100% + 0.625rem); left: 0; min-width: 20rem; z-index: 30;
    width: max-content; max-width: min(30rem, calc(100vw - 2rem));   /* wide enough for each label on one line */
    background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--navy);
    box-shadow: 0 18px 36px -18px rgb(0 34 53 / 0.35); padding: var(--space-3);
  }
  /* The last item's menu (Resources) opens leftwards, lined up with its right edge, so it stays inside the page
     (18 November 2026: it ran about 220px past the right edge of a 1,440px screen) */
  .site-nav__item:last-child > .site-nav__sub { left: auto; right: 0; }
  .site-nav__sub a { font-size: var(--step--1); }
  .site-nav__item--cta { margin-left: var(--space-3); }
  .site-nav__item--cta .site-nav__link { min-height: 48px; padding-inline: var(--space-5); background: var(--navy); color: var(--on-dark); }
  .site-nav__item--cta .site-nav__link:hover { background: var(--link); color: var(--on-dark); text-decoration: none; }
  .site-nav__item--cta .site-nav__link[aria-current] { text-decoration-color: var(--teal); }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { margin-bottom: var(--space-5); font-size: var(--step--1); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin: 0 0.75em; border-top: 2px solid var(--text-muted); border-right: 2px solid var(--text-muted); transform: rotate(45deg); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.breadcrumb a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* ---------- Page header (inner pages) ---------- */
/* Title on the left; the photo runs below it on small screens, and fills the right half,
   edge to edge, on wide screens. */
.page-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.page-header > .container { padding-block: var(--space-5) var(--space-8); }
.page-header__grid { display: grid; gap: var(--space-6); }
.page-header h1 { max-width: 26ch; }
.page-header__art { display: none; }
.page-header__media { margin: 0 calc(-1 * var(--gutter)) calc(-1 * var(--space-8)); }
.page-header__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.page-header__media--whole img { aspect-ratio: auto; height: auto; }
.page-header + .section:not(.section--soft, .section--tint, .section--navy) { padding-top: var(--space-8); }

/* Section introduction: the heading and its text together in a centred reading column (9 November 2026, replacing
   heading-left, text-right, which left empty space under the heading). Cards, photos and lists below use the full width. */
.split-head { max-width: 46rem; margin-inline: auto; }
.container.split-head { max-width: calc(46rem + 2 * var(--gutter)); }   /* allow for the container's side padding, so every section lines up */
.split-head h2 { margin-bottom: var(--space-5); }
.split-head .prose { max-width: var(--measure); }

/* Heading and text beside a portrait photo (home page, 9 November 2026). The text is on the left, or on the right
   with --reverse; on phones the photo follows the text, in landscape so it doesn't push the page down too far. */
.media-pair { display: grid; gap: var(--space-6); }
.media-pair__text .prose { max-width: var(--measure); }
.media-pair__media { margin: 0; }
.media-pair__media img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 60rem) {
  .media-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); column-gap: var(--space-9); align-items: center; }
  .media-pair--reverse { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); }
  .media-pair--reverse .media-pair__media { order: -1; }
  .media-pair__media img { aspect-ratio: 4 / 5; }
  .media-pair--fit { align-items: start; }   /* narrower laptops: the text runs long, so the photo keeps its portrait shape, level with the heading */
}
/* --fit, wider screens: the photo runs from the top of the heading to the foot of the text (10 November 2026), with the
   text and photo in equal columns so more of a landscape photo shows (a narrower photo column makes the text taller) */
@media (min-width: 88rem) {
  .media-pair--fit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-8); align-items: stretch; }
  .media-pair--fit .media-pair__media { position: relative; margin-block: 0.5rem 0.7rem; }   /* level with the tops of the heading's letters and the foot of the last line */
  .media-pair--fit .media-pair__media img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-8); }
@media (min-width: 60rem) { .section { padding-block: var(--space-9); } }
.section:not(.section--soft, .section--tint, .section--navy) + .section:not(.section--soft, .section--tint, .section--navy) { padding-top: 0; }
.section--soft, .section--tint { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: var(--on-dark-muted); }
.section--navy h2, .section--navy h3 { color: var(--on-dark); }
.section--navy a { color: var(--on-dark); }
.section--navy .eyebrow { color: var(--teal); }
.section__intro { max-width: var(--measure); margin-bottom: var(--space-7); }
.section__intro > :last-child { margin-bottom: 0; }
.two-col { display: grid; gap: var(--space-7); }
@media (min-width: 60rem) {
  .two-col { grid-template-columns: var(--cols); gap: var(--col-gap); align-items: start; }
  .two-col--center { align-items: center; }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 52px; padding: 0.875rem 1.5rem;
  font: inherit; font-size: var(--step-card); font-weight: 700; line-height: 1.2; text-align: center;
  color: var(--on-dark); background: var(--navy); border: 2px solid var(--navy);
  text-decoration: none; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.button:hover { color: var(--on-dark); background: var(--link); border-color: var(--link); text-decoration: none; }
.button--gradient { color: var(--on-dark); }
.button--secondary, .button--ghost { background: transparent; color: var(--heading); border-color: var(--heading); }
.button--secondary:hover, .button--ghost:hover { background: var(--heading); border-color: var(--heading); color: var(--on-dark); }
.button--light { background: var(--bg); border-color: var(--bg); color: var(--navy); }
.button--light:hover { background: var(--bg-soft); border-color: var(--bg-soft); color: var(--navy); }
.button__arrow { transition: transform 0.15s ease; }
.button:hover .button__arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: var(--space-6) 0 0; }

/* ---------- Home hero ---------- */
.hero { background: var(--bg); border-bottom: 1px solid var(--line); }
.hero__text { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.hero h1 { font-size: var(--step-hero); max-width: 16ch; }
.hero .lede { max-width: 44ch; }
.hero__media { margin: 0 calc(-1 * var(--gutter)); }
.hero__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 60rem) {
  .hero__inner { padding-block: var(--space-7); }
  .hero__text { padding-block: var(--space-6); }
}

/* Credibility figures, divided by thin rules */
.facts { border-bottom: 1px solid var(--line); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats li { margin: 0; padding: var(--space-5) var(--space-4) var(--space-5) 0; }
.stats li:nth-child(even) { padding-left: var(--space-4); border-left: 1px solid var(--line); }
.stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }
@media (min-width: 60rem) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats li, .stats li:nth-child(even) { padding: var(--space-6) var(--space-5); border-left: 1px solid var(--line); }
  .stats li:nth-child(n + 3) { border-top: 0; }
  .stats li:first-child { padding-left: 0; border-left: 0; }
}
.stat__value { display: block; margin-bottom: var(--space-3); font-size: clamp(2.25rem, 1.8rem + 1.4vw, 3.25rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--heading); }
.stat__label { display: block; font-size: var(--step-card); line-height: 1.5; color: var(--text); }

/* Efficient, effective, safe */
/* Short list of outcomes in a row, each with a tick: a step larger than body text, semi-bold */
.outcomes { list-style: none; margin: var(--space-4) 0 var(--space-5); padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.outcomes li { margin: 0; font-size: 1em; font-weight: 600; line-height: 1.4; color: var(--heading); }

/* ---------- Cards: no boxes, just a photo or a top rule ---------- */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-7) var(--space-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.card-grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
/* Course cards with a photo beside them, the photo matching the cards' height (Academy) */
.courses-photo__media { margin: var(--space-7) 0 0; }
.courses-photo__media img { display: block; width: 100%; max-width: 28rem; height: auto; }
@media (min-width: 60rem) {
  .courses-photo { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: var(--space-6); align-items: stretch; }
  .courses-photo .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .courses-photo__media { position: relative; margin: 0; min-height: 20rem; }
  .courses-photo__media img { position: absolute; inset: 0; max-width: none; height: 100%; object-fit: cover; }
}
.card-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
@media (min-width: 64rem) { .card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card-grid > li { margin: 0; }
/* Sets of 3, 6 or 9 cards sit three across, so no card is left alone on the last row */
@media (min-width: 64rem) { .card-grid:has(> li:last-child:nth-child(3n)):not(:has(> li:last-child:nth-child(4n))) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Five cards sit in one row on wide screens, rather than four and one */
@media (min-width: 80rem) { .card-grid:has(> li:last-child:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.card { position: relative; height: 100%; display: flex; flex-direction: column; padding-top: var(--space-5); border-top: 1px solid var(--line); }
.card > :last-child { margin-bottom: 0; }
.card--media { padding-top: 0; border-top: 0; }
.card--glass { border-top: 3px solid var(--navy); }
.card__number { margin: 0 0 var(--space-2); font-size: 1.25rem; font-weight: 700; line-height: 1.2; color: var(--deep-blue); }
.card__title { font-size: var(--step-1); margin-bottom: var(--space-2); }
.card p { font-size: var(--step-card); }
/* A card beside text (not in a grid) uses the body text size, to match its own list and the text beside it */
.two-col > .card p, .side-stack > .card p { font-size: inherit; }
/* A photo under the text or card in one column of a two-column section (for example team photos on About) */
.side-photo { margin: var(--space-6) 0 0; }
.side-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
/* A photo across the page below a section (for example the team photo on About) */
.wide-photo { margin-top: var(--space-7); }
.wide-photo img { display: block; width: 100%; max-width: 40rem; height: auto; }   /* about half the page on a laptop, uncropped */
.card--link .card__title a { color: var(--heading); text-decoration: none; }
.card--link .card__title a::after { content: ""; position: absolute; inset: 0; }
.card--link:hover .card__title a { text-decoration: underline; text-decoration-thickness: 2px; }
.card--link .card__title a:focus-visible { outline: none; }
.card--link:focus-within, .tile:focus-within, .person-card:focus-within { outline: 3px solid var(--focus); outline-offset: 6px; }
.card__more { margin-top: auto; padding-top: var(--space-1); font-size: var(--step--1); font-weight: 700; color: var(--link); }
.card__more::after { content: " \2192"; }

/* Photos in cards and tiles */
.card__media, .tile__media { margin: 0 0 var(--space-4); aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.card__media img, .tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
@media (prefers-reduced-motion: no-preference) {
  .card--link:hover .card__media img, .tile:hover .tile__media img { transform: scale(1.04); }
}
/* On phones, photo cards and tiles become compact rows with a small square photo */
@media (max-width: 39.99rem) {
  .card-grid, .tile-grid { gap: var(--space-6); }
  .card--media, .tile--media { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: var(--space-4); align-content: start; }
  .card--media .card__media { grid-row: 1 / span 3; }
  .card--media .card__media, .tile--media .tile__media { aspect-ratio: 1; margin: 0; }
  .card--media .card__title { margin-bottom: var(--space-1); }
  .card--media p, .tile--media .tile__body p { font-size: var(--step--1); }
  .card--media .card__more { display: none; }
}
.icon-chip { display: none; }

/* Focal points for photos cropped to fit (set in photos/manifest.tsv) */
img.focus-left { object-position: 20% 50%; } img.focus-right { object-position: 82% 50%; }
img.focus-top { object-position: 50% 0; } img.focus-bottom { object-position: 50% 80%; }
/* Crop positions in 10% steps (15 November 2026), set per photo in the manifest's focus column: y0 shows the top of
   the photo, y100 the bottom; x0 the left, x100 the right. Both can be given, for example "x80 y0". */
img[class*="focus-x"], img[class*="focus-y"] { object-position: var(--fx, 50%) var(--fy, 50%); }
img.focus-y0 { --fy: 0%; } img.focus-y10 { --fy: 10%; } img.focus-y20 { --fy: 20%; } img.focus-y30 { --fy: 30%; } img.focus-y40 { --fy: 40%; } img.focus-y50 { --fy: 50%; } img.focus-y60 { --fy: 60%; } img.focus-y70 { --fy: 70%; } img.focus-y80 { --fy: 80%; } img.focus-y90 { --fy: 90%; } img.focus-y100 { --fy: 100%; }
img.focus-x0 { --fx: 0%; } img.focus-x10 { --fx: 10%; } img.focus-x20 { --fx: 20%; } img.focus-x30 { --fx: 30%; } img.focus-x40 { --fx: 40%; } img.focus-x50 { --fx: 50%; } img.focus-x60 { --fx: 60%; } img.focus-x70 { --fx: 70%; } img.focus-x80 { --fx: 80%; } img.focus-x90 { --fx: 90%; } img.focus-x100 { --fx: 100%; }

/* Photos are shown as they are, with no colour treatment (removed 16 October 2026). */
.hero__media, .card__media, .tile__media, .page-header__media, .media-split__media { position: relative; }

/* Industry tiles (photo, title and summary) */
.tile-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-7) var(--space-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.tile-grid > li { margin: 0; }
.tile { position: relative; height: 100%; display: flex; flex-direction: column; }
.tile:not(.tile--media) { padding-top: var(--space-5); border-top: 1px solid var(--line); }
.tile__title { font-size: var(--step-1); margin: 0 0 var(--space-2); }
.tile__title a { color: var(--heading); text-decoration: none; }
.tile__title a::after { content: ""; position: absolute; inset: 0; }
.tile:hover .tile__title a { text-decoration: underline; text-decoration-thickness: 2px; }
.tile__title a:focus-visible { outline: none; }
.tile__body p { margin: 0; font-size: var(--step-card); color: var(--text-muted); }

/* Photo inside page content */
.photo-frame { margin: 0; }
.photo-frame img { width: 100%; }
.photo-frame figcaption { margin-top: var(--space-3); font-size: var(--step--1); color: var(--text-muted); }

/* ---------- Text beside a photo ----------
   Used by the home page hero, the inner page headers and .media-split sections.
   On small screens the photo runs edge to edge, above or below the text. On wide
   screens text and photo share the page's two columns (see --cols), so the photo keeps
   the same side margin as the text and the space on both sides of the page is even. */
.media-split__media { margin: 0 calc(-1 * var(--gutter)) var(--space-6); }
@media (max-width: 59.99rem) { .band .media-split__media:first-child { margin-top: calc(-1 * var(--space-8)); } }
.media-split__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.media-split__text > :first-child { margin-top: 0; }
@media (min-width: 60rem) {
  .media-split, .hero__inner, .page-header__grid--media {
    display: grid; grid-template-columns: var(--cols); column-gap: var(--col-gap); align-items: center;
  }
  .media-split--left .media-split__media { grid-column: 1; grid-row: 1; }
  .media-split--left .media-split__text { grid-column: 2; grid-row: 1; }
  .media-split--right .media-split__media { grid-column: 2; grid-row: 1; }
  .media-split--right .media-split__text { grid-column: 1; grid-row: 1; }
  /* The photo fills its column to the height of the text beside it, with a sensible minimum */
  .media-split__media, .hero__media, .page-header__media { position: relative; align-self: stretch; margin: 0; min-height: 22rem; }
  .hero__media { min-height: 26rem; }
  .page-header__media { min-height: 26rem; }   /* the same as the home banner photo, so headers look alike */
  /* photo_fit: whole shows the whole photo at its own shape, with no cropping (for example the team photo on Contact) */
  .page-header__media.page-header__media--whole { min-height: 0; align-self: center; }
  .page-header__media.page-header__media--whole img { position: static; height: auto; }
  .media-split__media img, .hero__media img, .page-header__media img {
    position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover;
  }
}

/* List of pages, separated by rules */
.link-list { list-style: none; margin: var(--space-6) 0 0; padding: 0; border-top: 1px solid var(--line); }
.link-list li { position: relative; margin: 0; padding: var(--space-4) var(--space-7) var(--space-4) 0; border-bottom: 1px solid var(--line); }
.link-list li::after {
  content: ""; position: absolute; right: var(--space-3); top: 50%; width: 0.625rem; height: 0.625rem;
  border-top: 2px solid var(--link); border-right: 2px solid var(--link); transform: translateY(-50%) rotate(45deg); transition: transform 0.15s ease;
}
.link-list li:hover::after { transform: translate(4px, -50%) rotate(45deg); }
.link-list__title { font-size: var(--step-1); margin: 0 0 var(--space-1); }
.link-list__title a { color: var(--heading); text-decoration: none; }
.link-list__title a::after { content: ""; position: absolute; inset: 0; }
.link-list li:hover .link-list__title a { text-decoration: underline; text-decoration-thickness: 2px; }
.link-list__title a:focus-visible { outline: none; }
.link-list li:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.link-list p { margin: 0; font-size: var(--step-card); color: var(--text-muted); }

/* Numbered steps: a rule above each, with a short accent */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); counter-reset: step; }
/* Five steps sit in one row on wide screens, rather than four and one */
@media (min-width: 80rem) { .steps:has(> li:last-child:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.steps li { position: relative; margin: 0; padding-top: var(--space-5); border-top: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; margin-bottom: var(--space-3); font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--deep-blue); }
.steps li::after { content: ""; position: absolute; left: 0; top: -2px; width: 3rem; height: 3px; background: var(--cyan); }
.steps h3 { font-size: var(--step-1); margin-bottom: var(--space-2); }
.steps p { margin: 0; font-size: var(--step-card); }

/* CORS program cycle */
.cycle { list-style: none; margin: var(--space-5) 0 var(--space-6); padding: 0; display: grid; gap: var(--space-5) var(--space-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); counter-reset: cycle; }
.cycle li { margin: 0; padding-top: var(--space-4); border-top: 1px solid var(--line); font-weight: 700; line-height: 1.35; color: var(--heading); }
.cycle li::before { counter-increment: cycle; content: counter(cycle, decimal-leading-zero); display: block; margin-bottom: var(--space-2); font-size: 1.25rem; line-height: 1; color: var(--deep-blue); }
.cycle__note { font-size: var(--step--1); color: var(--text-muted); }

/* ---------- Accordion: rows divided by rules ---------- */
.accordion { max-width: 62rem; border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__heading { margin: 0; font-size: var(--step-1); }
.accordion__trigger {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 64px; padding: var(--space-4) 0; background: transparent; border: 0;
  font: inherit; font-weight: 700; line-height: 1.35; color: var(--heading); text-align: left; cursor: pointer;
}
.accordion__trigger:hover { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.accordion__icon { flex: none; position: relative; width: 1.25rem; height: 1.25rem; }
/* Drawn with borders rather than backgrounds, so the plus and minus stay visible in Windows high contrast mode */
.accordion__icon::before, .accordion__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1rem; height: 0; border-top: 2px solid var(--deep-blue); transform: translate(-50%, -50%); }
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.15s ease; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.accordion__panel { padding: 0 0 var(--space-6); max-width: var(--measure); }
/* hidden="until-found" keeps the element's box, so drop its padding while collapsed */
.accordion__panel[hidden] { padding-block: 0; }
.accordion__panel > :last-child { margin-bottom: 0; }
.accordion__heading:not(:has(button)) { padding: var(--space-4) 0 var(--space-2); }

/* ---------- Case studies ---------- */
.case-list { display: grid; gap: var(--space-7); max-width: 56rem; }
/* Examples as rows: title on the left and description on the right, on the page's two columns */
.case-list--rows { max-width: none; gap: 0; border-bottom: 1px solid var(--line); }
.case-list--rows .case-study { padding-block: var(--space-6); }
@media (min-width: 60rem) {
  .case-list--rows .case-study { display: grid; grid-template-columns: var(--cols); column-gap: var(--col-gap); }
  .case-list--rows .case-study__header { margin-bottom: 0; }
}
.section > .container > .case-study { max-width: 56rem; }
.case-study { padding-top: var(--space-5); border-top: 1px solid var(--line); }
.case-study__header { margin-bottom: var(--space-4); }
.case-study__sector { margin: 0 0 var(--space-2); font-size: var(--step--1); font-weight: 700; color: var(--label); }
.case-study__title { margin: 0; font-size: var(--step-3); }
.case-study__body > :last-child { margin-bottom: 0; }
.case-study__outcome { padding: var(--space-1) 0 var(--space-1) var(--space-5); border-left: 3px solid var(--teal); }
.case-study__outcome strong { color: var(--label); }
/* A case study with a photo beside its text: the photo sits above the text on phones, and to the right on wide screens */
.case-list--wide { max-width: none; }
/* A photo under a case study's title, in the left column of the row layout (Insights and Analytics) */
.case-study__header-photo { margin: var(--space-5) 0 0; max-width: 32rem; }
.case-study__header-photo img { display: block; width: 100%; height: auto; }
/* Text with a photo beside it, the photo keeping its shape at the top (text on the left on wide screens; photo after the text on phones) */
.text-photo__media { margin: var(--space-6) 0 0; }
.text-photo__media img, .case-study__photo img { max-height: 32rem; }
.text-photo__media img { display: block; width: 100%; height: auto; }
@media (min-width: 60rem) {
  .text-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr); column-gap: var(--col-gap); align-items: start; }
  .text-photo__media { margin: 0; }
  .text-photo__head { grid-column: 1 / -1; }   /* a heading across both columns, so the photo lines up with the text below it */
}
.photo-credit { margin-top: var(--space-2); font-size: var(--step--1); color: var(--text-muted); }
.feed-frame { display: block; width: 100%; height: 56rem; max-height: 85vh; margin-top: var(--space-5); border: 1px solid var(--line); background: var(--bg); }   /* the sandboxed Tagembed feed on the News page */
.skip-feed { position: absolute; left: -999rem; }   /* keyboard users can jump past the feed's many posts; shown only when focused */
/* Links standing alone on a short line (the Accessibility statement's phone and email): 44px tall to tap (WCAG 2.5.5, AAA) */
.tap-links a { display: inline-flex; align-items: center; min-height: 44px; }
.skip-feed:focus { position: static; display: inline-block; min-height: 44px; box-sizing: border-box; margin-top: var(--space-4); padding: var(--space-3) var(--space-5); background: var(--navy); color: var(--on-dark); font-weight: 700; text-decoration: none; outline-color: var(--focus-on-dark); }
.photo-credit a { display: inline-block; padding-block: 0.25em; }   /* 24px minimum tap height (WCAG 2.5.8) */
.case-study__photo { margin: 0 0 var(--space-6); }
.case-study__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case-study__photo--whole img { aspect-ratio: auto; }   /* show the whole photo, for wide subjects such as a bus */
@media (min-width: 60rem) {
  .case-study__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr); column-gap: var(--col-gap); align-items: start; }
  .case-study__grid .case-study__photo { grid-column: 2; grid-row: 1; margin: 0; }
  .case-study__grid .case-study__photo--drop { margin-top: 1lh; }   /* starts below the first line of text, clear of the heading */
}

/* ---------- Lists ---------- */
.rule-list { list-style: none; margin: 0 0 var(--space-7); padding: 0; border-top: 1px solid var(--line); }
.rule-list li { margin: 0; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.rule-list:last-child { margin-bottom: 0; }
.check-list { list-style: none; padding: 0; }
/* Ticks (18 November 2026, Allison): the bright brand cyan and a little larger. They are decorative (the list's words
   carry the meaning), so WCAG 1.4.11's 3:1 does not apply; with "increase contrast" switched on they use the darker blue.
   The tick's tip sits on the baseline of the first line whatever the line spacing (0.5lh + 0.37em is the baseline;
   1.03rem is the tip's depth below the top of the rotated box); browsers without the lh unit use 0.3em. */
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before { content: ""; position: absolute; left: 0.25rem; top: 0.3em; top: calc(0.5lh + 0.37em - 1.03rem); width: 0.55rem; height: 1rem; border-right: 3px solid var(--cyan); border-bottom: 3px solid var(--cyan); transform: rotate(40deg); }
@media (prefers-contrast: more) { .check-list li::before { border-color: var(--deep-blue); } }
.columns-2 { columns: 2 16rem; column-gap: var(--space-7); }
.columns-2 li { break-inside: avoid; }
.name-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.name-list li { margin: 0; font-size: var(--step-card); font-weight: 700; color: var(--heading); }
/* Membership logos (About, 22 November 2026): each on a small white tile with no border (Allison), as the HFES logo has a white background */
.logo-row { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--space-2); container-type: inline-size; }
.logo-row li { margin: 0; display: flex; align-items: center; padding: var(--space-2) var(--space-3); background: #ffffff; }
.logo-row a { display: block; }
/* As large as fits on one row (the three logos together are 15.46 times as wide as they are tall, plus 5.5rem of
   padding and gaps), up to 48px, the sharpest the files allow; never below 30px, where they wrap instead */
.logo-row img { display: block; width: auto; height: 1.875rem; height: clamp(1.875rem, (100cqi - 5.75rem) / 15.5, 3rem); }
/* On phones each logo has its own row, so there is room for them to be larger */
@media (max-width: 39.99rem) { .logo-row img { height: 2.5rem; } }

/* ---------- Quotations ---------- */
blockquote { margin: 0 0 var(--space-5); padding: var(--space-1) 0 var(--space-1) var(--space-5); border-left: 3px solid var(--cyan); }
blockquote p { margin: 0; }
/* Participant quotes, two across on wide screens */
.quote-grid { display: grid; gap: var(--space-6) var(--col-gap); }
.quote-grid blockquote { margin: 0; }
@media (min-width: 60rem) { .quote-grid { grid-template-columns: 1fr 1fr; } }
.pull-quote { margin: 0; }
.pull-quote blockquote { margin: 0 0 var(--space-3); font-size: var(--step-2); line-height: 1.5; color: var(--heading); }
.pull-quote figcaption { padding-left: calc(var(--space-5) + 3px); font-size: var(--step--1); color: var(--text-muted); }

/* ---------- Colour band (Academy) ---------- */
.band { padding-block: var(--space-8); }
@media (min-width: 60rem) { .band { padding-block: var(--space-9); } }
.band--royal { background: var(--royal); color: var(--on-dark-muted); }
.band--royal h2, .band--royal h3, .band--royal .eyebrow { color: var(--on-dark); }
.band--royal a:not(.button) { color: var(--on-dark); }
.band p { max-width: 50ch; }
.course-list { list-style: none; margin: var(--space-6) 0 0; padding: 0; border-top: 1px solid var(--on-dark-line); }
.course-list li { margin: 0; padding: var(--space-4) 0; border-bottom: 1px solid var(--on-dark-line); font-size: var(--step-1); font-weight: 700; line-height: 1.35; color: var(--on-dark); }

/* ---------- Contact section with a short form (foot of every page) ---------- */
.cta { background: var(--bg-soft); border-top: 1px solid var(--line); padding-block: var(--space-8); }
/* After a grey section, the contact section is white so the two stay distinct */
.section--soft + .cta, .section--tint + .cta { background: var(--bg); }
@media (min-width: 60rem) { .cta { padding-block: var(--space-9); } }
.cta__grid { display: grid; gap: var(--space-6) var(--space-8); }
@media (min-width: 60rem) { .cta__grid { grid-template-columns: var(--cols); column-gap: var(--col-gap); align-items: start; } }
.cta__prompt { font-size: var(--step-1); line-height: 1.5; max-width: 40ch; }
.cta__actions { margin: var(--space-5) 0 var(--space-4); }
.cta__more { max-width: 40ch; }
.cta__more a { white-space: nowrap; }
.cta .cta__form { max-width: 48rem; }
.form__row { display: grid; gap: var(--space-5); }
@media (min-width: 40rem) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.contact-card { background: var(--bg-soft); border-top: 3px solid var(--navy); padding: var(--space-6); overflow-wrap: anywhere; }   /* long email addresses can wrap on narrow screens */
.contact-card h2, .contact-card h3 { font-size: var(--step-2); margin-bottom: var(--space-3); }
.contact-card p { font-size: var(--step-card); }
.contact-card .button { width: 100%; }
.contact-details { list-style: none; padding: 0; margin: var(--space-5) 0 0; font-size: var(--step-card); }
.contact-details li { margin: 0; }
.contact-details li + li { margin-top: var(--space-1); }
.contact-details a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-details__label { font-weight: 700; color: var(--heading); margin-right: 0.35em; }
/* The office address (Contact page): beside its label like the phone and email, its second line lined up under the
   first, with the same height and spacing as the lines with links */
.contact-details__office { display: flex; align-items: baseline; column-gap: 0.28em; padding-block: 0.6rem; }
.contact-details__office address { display: block; }

/* ---------- Content with sidebar ---------- */
/* Same two columns as the page header above: the reading column lines up with the
   title, and the sidebar starts where the header photo starts */
.with-sidebar { display: grid; gap: var(--space-7); }
@media (min-width: 60rem) {
  .with-sidebar { grid-template-columns: var(--cols); column-gap: var(--col-gap); align-items: start; }
  .with-sidebar > .sidebar { max-width: 26rem; }
}
.sidebar { display: grid; gap: var(--space-7); }
.related { padding-top: var(--space-5); border-top: 1px solid var(--line); }
.related h2 { font-size: var(--step-1); }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin: 0; }
.related li > a, nav.related > p > a { display: flex; align-items: center; min-height: 44px; padding-block: var(--space-1); }   /* page lists and the overview link (not links in sentences) */
.related li > a[aria-current="page"] { color: var(--heading); font-weight: 700; text-decoration: none; }

/* ---------- Team ---------- */
.team-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-7) var(--space-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.team-grid > li { margin: 0; }
.person-card { position: relative; height: 100%; }
/* The team portraits are supplied as circles on white, so show them round */
.person-card img, .person__photo img { border-radius: 50%; }
.person-card img { width: 100%; max-width: 12rem; height: auto; aspect-ratio: 1; object-fit: cover; margin-bottom: var(--space-4); }
.person-card h3 { font-size: var(--step-1); margin-bottom: var(--space-1); }
.person-card h3 a { color: var(--heading); text-decoration: none; }
.person-card h3 a::after { content: ""; position: absolute; inset: 0; }
.person-card:hover h3 a { text-decoration: underline; text-decoration-thickness: 2px; }
.person-card h3 a:focus-visible { outline: none; }
.person-card__role { margin: 0; font-size: var(--step--1); font-weight: 700; color: var(--label); }

/* Home page team section: introduction beside the portraits, on the page's two columns */
.team-band { display: grid; gap: var(--space-7); }
@media (min-width: 60rem) { .team-band { grid-template-columns: var(--cols); column-gap: var(--col-gap); align-items: center; } }
.team-band__intro > :last-child { margin-bottom: 0; }
.team-band .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); }
/* Four across only when each card is wide enough for a name on one line (about 10.5rem in the system fonts, Helvetica or Arial) */
.team-band__people { container-type: inline-size; }
@container (min-width: 47rem) { .team-band .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.team-band .person-card img { max-width: 10rem; margin-bottom: var(--space-3); }
.team-band .person-card h3 { font-size: var(--step-0); }
.person { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 48rem) { .person { grid-template-columns: 14rem minmax(0, 1fr); } }

/* ---------- Team bios in pop-ups (About, 22 November 2026, Allison) ----------
   Each bio is a modal <dialog> opened by assets/js/site.js from the team cards. Without the script (no
   "js" class, or "no-bio-dialogs" in a browser without <dialog>), the bios show as ordinary sections below the cards. */
.bio-dialog { color: var(--text); }
.bio-dialog__head { display: flex; align-items: center; gap: var(--space-5); margin-bottom: var(--space-5); }
.bio-dialog__head img { flex: none; width: 6rem; height: 6rem; border-radius: 50%; object-fit: cover; }
.bio-dialog__head h3 { font-size: var(--step-2); margin: 0 0 var(--space-1); }
.bio-dialog .prose > :last-child { margin-bottom: 0; }
.js .bio-dialog[open] {
  width: min(46rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; overscroll-behavior: contain;
  padding: var(--space-7) var(--space-6) var(--space-6); border: 0; border-top: 3px solid var(--navy); background: var(--bg);
  box-shadow: 0 24px 48px -12px rgb(0 34 53 / 0.45);
}
.bio-dialog::backdrop { background: rgb(0 34 53 / 0.6); }
/* The close button stays at the top right while a long bio scrolls (iPhone testing, 22 November 2026: it scrolled out
   of view). It sits in the pop-up's top padding on a white backing, and its margins cancel out its height, so the
   bio starts where it did. */
.bio-dialog__close {
  position: sticky; top: calc(var(--space-2) - var(--space-7)); z-index: 1;   /* browsers measure from inside the top padding */ display: flex; align-items: center; justify-content: center;
  margin: calc(var(--space-2) - var(--space-7)) calc(var(--space-2) - var(--space-6)) calc(var(--space-7) - var(--space-2) - 44px) auto;
  width: 44px; height: 44px; padding: 0; border: 0; background: var(--bg); color: var(--heading); font-size: 2rem; line-height: 1; cursor: pointer;
}
.bio-dialog__close:hover { background: var(--bg-soft); }
@media (prefers-reduced-motion: no-preference) {
  .js .bio-dialog[open] { animation: bio-in 0.3s ease-out; }
}
@keyframes bio-in { from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; transform: none; } }
@media (max-width: 39.99rem) {
  .js .bio-dialog[open] { padding: var(--space-7) var(--space-4) var(--space-5); }
  .bio-dialog__close { margin-right: calc(var(--space-2) - var(--space-4)); }
  .bio-dialog__head { gap: var(--space-4); }
  .bio-dialog__head img { width: 4.5rem; height: 4.5rem; }
}
/* Without the script: the bios as sections below the cards (the links jump to them) */
html:not(.js) .bio-dialog, .no-bio-dialogs .bio-dialog { display: block; position: static; inset: auto; width: auto; max-width: var(--measure); margin: var(--space-8) 0 0; padding: 0; border: 0; background: none; }
html:not(.js) .bio-dialog__close, .no-bio-dialogs .bio-dialog__close { display: none; }
@media print { .bio-dialog { display: block; position: static; margin: var(--space-6) 0 0; padding: 0; border: 0; } .bio-dialog__close { display: none; } }
.person__photo img { width: 14rem; height: 14rem; object-fit: cover; }

/* ---------- Glossary and definition lists ---------- */
.glossary dt { font-weight: 700; color: var(--heading); margin-top: var(--space-5); }
.glossary dd { margin: var(--space-1) 0 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: var(--step-card); }
caption { text-align: left; font-weight: 700; color: var(--heading); margin-bottom: var(--space-3); }
th, td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
thead th { background: var(--navy); color: var(--on-dark); }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-5); max-width: 40rem; }
.field { display: grid; gap: var(--space-2); }
.field label { font-weight: 700; color: var(--heading); }
.field__hint { font-size: var(--step--1); color: var(--text-muted); margin: 0; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: var(--space-3) var(--space-4);
  font: inherit; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--control-border); border-radius: 0;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-note { font-size: var(--step--1); color: var(--text-muted); }
/* Form errors and messages, added by assets/js/site.js (WCAG 3.3.1, 3.3.3, 4.1.3) */
.error-summary { padding: var(--space-5); border: 3px solid var(--error); background: var(--bg); }
.error-summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.error-summary__title { font-size: var(--step-1); margin: 0 0 var(--space-3); }
.error-summary ul { margin: 0; padding-left: 1.25rem; }
.error-summary li + li { margin-top: var(--space-2); }
.error-summary a { color: var(--error); font-weight: 700; }
.field--error { border-left: 4px solid var(--error); padding-left: var(--space-4); }
.field__error { margin: 0; color: var(--error); font-weight: 700; }
.field--error input, .field--error textarea { border: 2px solid var(--error); }
.form-status { margin: 0; }
.form-status:not(:empty) { margin-top: var(--space-4); font-weight: 700; color: var(--heading); }
.form-status--error:not(:empty) { color: var(--error); }
.button[aria-disabled="true"] { cursor: progress; opacity: 0.75; }

/* ---------- Footer ---------- */
/* Simple footer, in the spirit of the current website: logo, one line about the
   company, LinkedIn, copyright and the two policy pages */
.site-footer { background: var(--navy); color: var(--on-dark-muted); font-size: var(--step-card); }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--teal); }
.site-footer__main { display: grid; gap: var(--space-5) var(--space-7); padding-block: var(--space-8); }
/* Phones: stacked. Tablets: the logo and text across the top, the links and LinkedIn below.
   Laptops and up: the links sit on one line between the text and LinkedIn (9 November 2026), and the extra
   height keeps navy and purple in about the old site's proportions. */
@media (min-width: 48rem) { .site-footer__main { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } .site-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 75rem) { .site-footer__main { grid-template-columns: minmax(0, 56ch) minmax(max-content, 1fr) auto; padding-block: 6.5rem; } .site-footer__brand { grid-column: auto; } .site-footer__links { justify-self: center; } }
.site-footer__logo { display: inline-block; }
.site-footer__logo img { height: 2.375rem; width: auto; margin-bottom: var(--space-4); }
.site-footer__brand p { max-width: 56ch; margin: 0; }
.site-footer__social { margin: 0; }
.site-footer__social a { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; color: var(--on-dark); }
.site-footer__social svg { width: 2rem; height: 2rem; fill: currentColor; }
.site-footer__links { font-size: var(--step--1); }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
/* The purple strip along the bottom, with the copyright line, as on the old website (9 November 2026). Navy and purple
   are in about the old site's proportions on a laptop (6.6 to 1). #7a2a72, the deeper brand purple, keeps white text
   at 8.7:1 (AAA); the brand #95338a would give 6.7:1. */
.site-footer__strip { background: #7a2a72; color: var(--on-dark); padding-block: var(--space-3); font-size: var(--step--1); }
.site-footer__strip p { margin: 0; }
.site-footer__links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }
.site-footer__links li { margin: 0; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-6 { margin-top: var(--space-6); } .mt-7 { margin-top: var(--space-7); } .mb-6 { margin-bottom: var(--space-6); } .mb-7 { margin-bottom: var(--space-7); }
.center { text-align: center; }
.stack { display: grid; gap: var(--space-6); align-content: start; }



/* ==========================================================================
   Home page banner (chosen 10 November 2026): a full-width photo of an aircraft
   at dusk, the headline and buttons in white over a navy–purple shade, and three
   figure squares overlapping the foot of the photo at the right.
   The shade starts at #4e275b (60% of the way from brand navy #002235 to purple
   #95338a, an eighth darker) and shifts to navy as it fades. Measured against the
   photo at 1,024, 1,280, 1,440 and 1,920px, the headline and introduction (large
   text on laptops) stay at 5.6:1 or more over every pixel behind them (AAA).
   ========================================================================== */
.xh-banner { position: relative; background: var(--navy); color: var(--on-dark); }
.xh-banner :focus-visible { outline-color: var(--focus-on-dark); }
.xh-banner__media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.xh-banner__text { padding-block: var(--space-7) var(--space-8); }
.xh-banner h1 { font-size: clamp(2.25rem, 1.5rem + 2vw, 3.25rem); line-height: 1.08; max-width: 14ch; color: var(--on-dark); }
.xh-banner h1::after { content: ""; display: block; width: 3rem; height: 3px; margin-top: var(--space-5); background: var(--rule); }
.xh-banner .lede { max-width: 40ch; color: var(--on-dark); }

/* Buttons on a dark banner: white, and a white outline */
.button--outline-light { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
.button--outline-light:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--navy); }

/* The three figures as white squares, overlapping the foot of the photo */
.xh-panel-row { position: relative; z-index: 1; margin-top: -3rem; }
.xh-facts .stats { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.xh-facts .stats li, .xh-facts .stats li:nth-child(even), .xh-facts .stats li:first-child {
  margin: 0; padding: var(--space-5); background: var(--bg); border: 1px solid var(--line);
  box-shadow: 0 18px 36px -18px rgb(0 34 53 / 0.35); }
.xh-facts .stat__value { font-family: var(--font-heading); }
.xh-facts .stat__label { font-size: var(--step--1); line-height: 1.45; }
/* Entrance (18 November 2026, Allison: "enter with a slight movement", "appear together", "much more subtle"): the
   three squares come up together from a faded version (35%) to full strength, rising only 2px, gently (1.2s, easing
   out), soon after the page opens. Only the opacity and transform change, so nothing else on the page moves. Not shown
   to anyone whose device asks for reduced motion (WCAG 2.3.3). */
@keyframes rise-in-slight { from { opacity: 0.35; transform: translateY(2px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .xh-facts .stats li { animation: rise-in-slight 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s both; }
}
/* Sections fade in (18 November 2026, Allison, after the old site's "very gentle elegant animation of each section as
   it appears"): on every page, each section below the banner fades in and rises 16px (except the first, which shows straight away) over 0.75 seconds, evenly eased in
   and out (the old site's easing; it takes one second, tried here and then 0.75s chosen), once, as it scrolls into view. assets/js/site.js chooses the parts that move (a
   section's content, or its parts if taller than the screen) and adds "reveal" to the page, "is-revealed" as each
   appears and "is-done" when it has finished, so without the script nothing is hidden, and afterwards nothing is left
   moved. Screens only, so a printed page never has hidden sections; never for anyone who asks for reduced motion. */
@keyframes section-in { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
@media screen and (prefers-reduced-motion: no-preference) {
  .reveal .reveal-item { opacity: 0; }
  .reveal .reveal-item.is-revealed { opacity: 1; animation: section-in 0.75s ease-in-out both; }
  .reveal .reveal-item.is-done { animation: none; }
}
@media (min-width: 48rem) {   /* tablets and up: three squares in a row */
  .xh-facts .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xh-facts .stats li, .xh-facts .stats li:nth-child(even), .xh-facts .stats li:first-child { aspect-ratio: 1; }
}

@media (min-width: 60rem) {
  .xh-banner { min-height: 32rem; display: flex; align-items: center; }
  .xh-banner__media { position: absolute; inset: 0; overflow: hidden; }
  /* Zoomed in 7%, positioned high so the top of the aircraft is just inside the banner; the 4,109px copy keeps it sharp on Retina screens */
  .xh-banner__media img { height: 100%; aspect-ratio: auto; object-position: 50% 88%; transform: scale(1.07); transform-origin: 85% 88%; }
  .xh-banner__media::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgb(78 39 91 / 0.83) 0, rgb(56 37 79 / 0.76) 30%, rgb(0 34 53 / 0.62) 48%, rgb(0 34 53 / 0.55) 51%, rgb(0 34 53 / 0.45) 54%, rgb(0 34 53 / 0.33) 57%, rgb(0 34 53 / 0.22) 60%, rgb(0 34 53 / 0.12) 63%, rgb(0 34 53 / 0.05) 66%, rgb(0 34 53 / 0) 70%); }
  .xh-banner__inner { position: relative; z-index: 1; width: 100%; }
  .xh-banner__text { max-width: 36rem; padding-block: var(--space-8) calc(var(--space-8) + 3rem); }
  /* The squares at the right, no larger than 240px, a third of each over the photo; the next section starts closer beneath them */
  .xh-panel-row { margin-top: -5rem; }
  .xh-panel-row + .section { padding-top: var(--space-7); }
  .xh-facts { width: fit-content; margin-left: auto; }
  .xh-facts .stats { grid-template-columns: repeat(3, 15rem); }
}
/* Narrower laptops: the introduction runs further across the banner, so the navy part of the shade reaches further too */
@media (min-width: 60rem) and (max-width: 79.99rem) {
  .xh-banner__media::after { background: linear-gradient(90deg, rgb(78 39 91 / 0.83) 0, rgb(56 37 79 / 0.78) 34%, rgb(0 34 53 / 0.66) 60%, rgb(0 34 53 / 0.58) 63%, rgb(0 34 53 / 0.47) 66%, rgb(0 34 53 / 0.35) 69%, rgb(0 34 53 / 0.23) 72%, rgb(0 34 53 / 0.12) 75%, rgb(0 34 53 / 0.05) 78%, rgb(0 34 53 / 0) 82%); }
}
/* Very wide screens crop more of the photo, so it sits a little lower to keep the top of the aircraft inside the banner */
@media (min-width: 100rem) { .xh-banner__media img { object-position: 50% 70%; transform-origin: 85% 70%; } }

/* ==========================================================================
   Page banners (17 November 2026, Allison): like the home page, the photo fills
   the banner behind the title and buttons, under a light shade in a brand colour
   that fades out to the right. The colour: purple (plum, #4e275b) for photos with
   a lot of purple or pink, Royal Blue (#1c134f) for photos with a lot of blue
   (30% or more of the part shown, measured by tools/photo-tones.pl), otherwise
   navy (#002235). The shade is only as strong as each photo needs for WCAG AA:
   white text at 4.5:1 over every pixel behind the introduction and the outline
   button, and 3:1 behind the title (large text). tools/banner-shade.js measures
   this, the manifest's eighth column holds it, and tools/check-banner-contrast.pl
   checks the rendered pages. On phones the photo sits above the text, which is on
   solid colour. With banner_photo: right a page instead shows the photo beside the
   text, on solid colour (the layout used from 11 to 17 November 2026). The
   breadcrumb stays above the banner, on white.
   ========================================================================== */
.page-header--banner { border-bottom: 0; }
.page-header--banner > .container { padding-block: var(--space-4); }
.page-header--banner .breadcrumb { margin-bottom: 0; }
.page-banner { --tone: 0 34 53; --shade: 0.75; --text-w: 37rem; --tail: 24rem; position: relative; background: rgb(var(--tone)); color: var(--on-dark); }
.page-banner--royal { --tone: 28 19 79; }
.page-banner--plum { --tone: 78 39 91; }
/* banner_fade: short (18 November 2026): for a page whose text is at most 33rem wide, the shade fades out sooner after it */
.page-banner--fade-short { --text-w: 33.5rem; --tail: 12rem; }
/* banner_fade: medium (18 November 2026, Building Capability): a gradual fade (15rem) that still ends early, so it
   starts a little before the end of the longest line of text (30rem); that line stays well above AA (checked) */
.page-banner--fade-medium { --text-w: 30rem; --tail: 15rem; }
/* banner_fade: long (18 November 2026, Human Factors in Safety Management): darker at the left (14 points above
   --shade instead of 8), then a long fade across most of the banner, very light from about three-quarters across and
   gone by 92% of its width (at least the standard 24rem) */
.page-banner--fade-long { --lift: 0.14; }
/* banner_fade: wide (18 November 2026, Technology and Automation): like medium, but darker at the left edge (14 points
   above --shade) and fading further, over 22rem, so the shade lessens gradually. The full-strength part reaches 33rem (was 30rem; Allison, 22 November 2026, "extend the darker part slightly") */
.page-banner--fade-wide { --text-w: 33rem; --tail: 22rem; --lift: 0.14; }
/* banner_lede: narrow (18 November 2026, Threat and Error Management): wraps the introduction at 33rem, so the gradual
   fade (which starts at 30rem) can be used on a page whose introduction would otherwise run wider */
.page-banner.page-banner--lede-narrow .lede { max-width: 33rem; }
/* banner_lede: narrower (22 November 2026, Technology and Automation, "can the text wrap more?"): 28rem, about level
   with the buttons */
.page-banner.page-banner--lede-narrower .lede { max-width: 28rem; }
.page-banner--fade-long .page-banner__media::after { --tail: max(24rem, calc(92% - var(--end))); }   /* set here, where --end is */
.page-banner--shade-20 { --shade: 0.2; } .page-banner--shade-22 { --shade: 0.22; } .page-banner--shade-24 { --shade: 0.24; } .page-banner--shade-26 { --shade: 0.26; }
.page-banner--shade-28 { --shade: 0.28; } .page-banner--shade-30 { --shade: 0.3; } .page-banner--shade-32 { --shade: 0.32; } .page-banner--shade-34 { --shade: 0.34; }
.page-banner--shade-36 { --shade: 0.36; } .page-banner--shade-38 { --shade: 0.38; } .page-banner--shade-40 { --shade: 0.4; } .page-banner--shade-42 { --shade: 0.42; }
.page-banner--shade-44 { --shade: 0.44; } .page-banner--shade-46 { --shade: 0.46; } .page-banner--shade-48 { --shade: 0.48; } .page-banner--shade-50 { --shade: 0.5; }
.page-banner--shade-52 { --shade: 0.52; } .page-banner--shade-54 { --shade: 0.54; } .page-banner--shade-56 { --shade: 0.56; } .page-banner--shade-58 { --shade: 0.58; }
.page-banner--shade-60 { --shade: 0.6; } .page-banner--shade-62 { --shade: 0.62; } .page-banner--shade-64 { --shade: 0.64; } .page-banner--shade-66 { --shade: 0.66; }
.page-banner--shade-68 { --shade: 0.68; } .page-banner--shade-70 { --shade: 0.7; } .page-banner--shade-72 { --shade: 0.72; } .page-banner--shade-74 { --shade: 0.74; }
.page-banner--shade-76 { --shade: 0.76; } .page-banner--shade-78 { --shade: 0.78; } .page-banner--shade-80 { --shade: 0.8; } .page-banner--shade-82 { --shade: 0.82; }
.page-banner--shade-84 { --shade: 0.84; } .page-banner--shade-86 { --shade: 0.86; } .page-banner--shade-88 { --shade: 0.88; } .page-banner--shade-90 { --shade: 0.9; }
.page-banner--shade-92 { --shade: 0.92; } .page-banner--shade-94 { --shade: 0.94; } .page-banner--shade-96 { --shade: 0.96; }
.page-banner :focus-visible { outline-color: var(--focus-on-dark); }
.page-banner__media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* Where the photo sits above the text (below 960px), it takes at most 40% of the window's height, so the heading starts
   on the first screen in short, wide windows: large Windows text sizes, browser zoom, phones and tablets held sideways
   (Windows testing, 22 November 2026). Upright phones and tablets are unchanged or barely cropped. Not the About page's
   grey banner, whose team photo needs its full height. */
@media (max-width: 59.99rem) {
  .xh-banner__media img, .page-banner:not(.page-banner--grey) .page-banner__media img { max-height: max(40vh, 11rem); }
}
.page-banner__text { padding-block: var(--space-7) var(--space-8); }
.page-banner h1 { color: var(--on-dark); max-width: 22ch; }
.page-banner .lede { color: var(--on-dark); max-width: 44ch; }
@media (min-width: 60rem) {
  /* Height (18 November 2026, Allison: "like the home page"): 512px, the home page banner's height, up to a 1,536px
     screen, then a third of the screen width, to at most 768px, so the full-width photo is cropped less on wide screens
     (640px at 1,920px). */
  .page-banner { min-height: clamp(32rem, 33.333vw, 48rem); display: flex; align-items: center; }
  .page-banner__media { position: absolute; inset: 0; overflow: hidden; }
  .page-banner__media img { height: 100%; aspect-ratio: auto; }
  .page-banner__media::after { content: ""; position: absolute; inset: 0;
    /* A light shade, like the home page's (17 November 2026): --shade strong behind the text (up to the text column's
       start, --x, plus --text-w, 37rem), then an eased fade to nothing over --tail, 24rem, with no sudden change of rate, so no edge shows.
       --shade is set per photo (the --shade-N classes below), as the lowest that keeps the text at AA contrast. */
    --x: calc(max(0px, (100% - var(--container)) / 2) + var(--gutter));
    --end: calc(var(--x) + var(--text-w));
    /* Darkest behind the text (18 November 2026, Allison): 8 points stronger from the left edge to where the text
       starts, easing smoothly (no flat stretch, so no darker-looking band where the fade begins) down to --shade at the
       text's right edge, then fading out. The text is never on less than --shade. */
    --peak: min(calc(var(--shade) + var(--lift, 0.08)), 0.95);
    background: linear-gradient(90deg,
      rgb(var(--tone) / var(--peak)) 0, rgb(var(--tone) / var(--peak)) var(--x),
      rgb(var(--tone) / calc(var(--shade) + (var(--peak) - var(--shade)) * 0.84)) calc(var(--x) + var(--text-w) * 0.25),
      rgb(var(--tone) / calc(var(--shade) + (var(--peak) - var(--shade)) * 0.5)) calc(var(--x) + var(--text-w) * 0.5),
      rgb(var(--tone) / calc(var(--shade) + (var(--peak) - var(--shade)) * 0.16)) calc(var(--x) + var(--text-w) * 0.75),
      rgb(var(--tone) / var(--shade)) var(--end),
      rgb(var(--tone) / calc(var(--shade) * 0.97)) calc(var(--end) + var(--tail) * 0.1), rgb(var(--tone) / calc(var(--shade) * 0.9)) calc(var(--end) + var(--tail) * 0.2),
      rgb(var(--tone) / calc(var(--shade) * 0.78)) calc(var(--end) + var(--tail) * 0.3), rgb(var(--tone) / calc(var(--shade) * 0.63)) calc(var(--end) + var(--tail) * 0.4),
      rgb(var(--tone) / calc(var(--shade) * 0.47)) calc(var(--end) + var(--tail) * 0.5), rgb(var(--tone) / calc(var(--shade) * 0.32)) calc(var(--end) + var(--tail) * 0.6),
      rgb(var(--tone) / calc(var(--shade) * 0.19)) calc(var(--end) + var(--tail) * 0.7), rgb(var(--tone) / calc(var(--shade) * 0.09)) calc(var(--end) + var(--tail) * 0.8),
      rgb(var(--tone) / calc(var(--shade) * 0.03)) calc(var(--end) + var(--tail) * 0.9), rgb(var(--tone) / 0) calc(var(--end) + var(--tail) * 1)); }
  .page-banner__inner { position: relative; z-index: 1; width: 100%; }
  .page-banner__text { max-width: 36rem; padding-block: var(--space-8); }
}

/* banner: grey (18 November 2026, Allison, About page): a banner of the same height on light grey, with the dark text
   and standard buttons, and the photo (the team) whole at the right instead of behind the text, so no faces are
   cropped or shaded. #eceff1: --text 10.4:1, --text-muted 7.1:1, --link 7.6:1, --heading 14.3:1 (AAA). */
.page-banner--grey { --bg-grey: #eceff1; background: var(--bg-grey); color: var(--text); }
.page-banner--grey h1 { color: var(--heading); }
.page-banner--grey .lede { color: var(--text); }
.page-banner--grey :focus-visible { outline-color: var(--focus); }
.page-banner--grey .page-banner__media img { aspect-ratio: 4 / 3; object-position: 50% 0; }
@media (min-width: 60rem) {
  /* The photo is as wide as it is at the other banners' height (4:3), or half the page if less, flush with the right
     edge; the text starts at the page's usual left edge. The banner is as tall as the photo, or the text if taller. */
  .page-banner--grey { --photo-w: min(50%, calc(clamp(32rem, 33.333vw, 48rem) * 4 / 3));
    display: grid; grid-template-columns: minmax(0, 1fr) var(--photo-w); align-items: center; min-height: 0;
    padding-left: calc(max(0px, (100% - var(--container)) / 2) + var(--gutter)); }
  .page-banner--grey .page-banner__media { position: relative; inset: auto; grid-column: 2; grid-row: 1; align-self: stretch;
    min-height: calc(min(50vw, clamp(32rem, 33.333vw, 48rem) * 4 / 3) * 3 / 4); }
  .page-banner--grey .page-banner__media::after { content: none; }
  .page-banner--grey .page-banner__media img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
  .page-banner--grey .page-banner__inner { grid-column: 1; grid-row: 1; max-width: none; margin: 0; padding-left: 0; padding-right: var(--space-7); }
}

/* --photo-right (11 November 2026, the default layout): the photo fills the banner from just after the text to the
   right-hand edge, so its subject is never under the text. The solid block is only as wide as each page's own text
   (its buttons, or 28rem if wider, up to 37rem) plus a small margin: the banner is a grid whose
   text column fits its content. The text sits wholly on the solid tone, so the photo needs no shade for contrast;
   its left edge has just a short eased fade (6rem) so it blends into the colour without a visible line. */
@media (min-width: 60rem) {
  .page-banner--photo-right { display: grid; align-items: stretch;
    grid-template-columns: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))) fit-content(39rem) minmax(0, 1fr); }
  .page-banner--photo-right .page-banner__inner { display: contents; }
  /* The buttons set the width: the title and introduction wrap to fit beside them (contain: inline-size stops their
     length widening the column), with a minimum of 28rem plus the margin for pages without buttons */
  .page-banner--photo-right .page-banner__text { grid-column: 2; grid-row: 1; align-self: center; max-width: none; min-width: 30rem; padding-right: var(--space-6); }
  .page-banner--photo-right .page-banner__text h1, .page-banner--photo-right .page-banner__text .lede { contain: inline-size; max-width: none; }
  .page-banner--photo-right .page-banner__media { position: relative; inset: auto; grid-column: 3; grid-row: 1; }
  .page-banner--photo-right .page-banner__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .page-banner--photo-right .page-banner__media::after {
    background: linear-gradient(90deg, rgb(var(--tone)) 0, rgb(var(--tone) / 0.97) 0.6rem, rgb(var(--tone) / 0.9) 1.2rem,
      rgb(var(--tone) / 0.78) 1.8rem, rgb(var(--tone) / 0.65) 2.4rem, rgb(var(--tone) / 0.5) 3rem, rgb(var(--tone) / 0.35) 3.6rem,
      rgb(var(--tone) / 0.22) 4.2rem, rgb(var(--tone) / 0.1) 4.8rem, rgb(var(--tone) / 0.03) 5.4rem, rgb(var(--tone) / 0) 6rem); }
}

/* "fit" crop (15 November 2026): on laptops and up the whole photo shows at the banner's full height, at the left of
   the photo area, and its right edge fades into a matching colour that fills the rest. For photos on a plain
   background whose subject is lost when cropped. The fill colour is set per photo below. */
@media (min-width: 60rem) {
  /* Photo behind the text: the whole photo at the right of the banner, its left edge fading into the fill */
  .page-banner__media img.focus-fit { width: auto; max-width: 100%; margin-left: auto; object-position: 100% 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%); mask-image: linear-gradient(90deg, transparent, #000 28%); }
  /* Photo beside the text: the whole photo at the left of the photo area, its right edge fading into the fill */
  .page-banner--photo-right .page-banner__media img.focus-fit { right: auto; margin-left: 0; object-position: 0 50%;
    -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent); mask-image: linear-gradient(90deg, #000 72%, transparent); }
  .page-banner__media:has(img[src*="/magnifying-glass-"]) { background: linear-gradient(#92d4f2, #89d0ef); }   /* sampled from the photo's edge */
}

/* ==========================================================================
   Overrides for user settings and printing. Kept at the very end of the stylesheet so they win over the ordinary
   rules they replace, which have the same specificity (Windows testing, 22 November 2026, found print and contrast-
   theme rules that came earlier and so never took effect). Add any new print, forced-colours, contrast or
   reduced-motion overrides here.
   ========================================================================== */
/* ---------- User preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .card--link:hover .card__media img, .tile:hover .tile__media img { transform: none; }
}
@media (prefers-contrast: more) {
  :root { --line: #46525a; --text-muted: #2b3a42; }
}
@media (forced-colors: active) {
  .button, .nav-toggle, .accordion__trigger, .site-nav__sub-toggle, .site-nav__item--cta .site-nav__link { border: 2px solid ButtonText; }
  .page-header h1::after, .hero h1::after, .rule-after::after, .steps li::after { background: CanvasText; }
  :focus-visible { outline-color: Highlight; }
}

@media (forced-colors: active) {
  .xh-banner__media::after, .page-banner__media::after { display: none; }
  .xh-banner h1::after, .page-banner h1::after { background: CanvasText; }
  /* Every button gets a solid backing and the theme's button colours, so outline buttons over a photo match the others
     (Windows testing, 22 November 2026: "Book a call" showed the photo through it, with a link-coloured border) */
  .button { background-color: Canvas; border-color: ButtonText; color: ButtonText; }
}
/* ---------- Print ---------- */
@media print {
  .site-nav, .nav-toggle, .skip-link, .cta, .hero__media, .media-split__media, .page-header__media, .xh-banner__media, .page-banner__media { display: none !important; }
  .xh-banner, .page-banner, .xh-banner h1, .page-banner h1, .xh-banner .lede, .page-banner .lede { background: none; color: #000; }
  .site-footer, .site-footer__strip, .band--royal, .section--soft { background: none; color: #000; }
  .band--royal h2, .band--royal .eyebrow, .course-list li { color: #000; }
  .accordion__panel[hidden] { display: block !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.875em; }
  /* White text on screen (footer links and buttons) prints black: Edge and Chrome print white text as pale grey */
  .site-footer a, .button, .button--outline-light, .button--secondary, .button--light { color: #000; border-color: #000; background: none; }
  /* No entrance animations on paper, so nothing prints part-faded if printed straight after the page opens */
  *, *::before, *::after { animation: none !important; box-shadow: none !important; }   /* and no shadows, which some PDF viewers draw as grey blocks */
}
