/* ==========================================================================
   Aptris: shared design system (v2, technology consulting firm)
   --------------------------------------------------------------------------
   DO NOT EDIT FROM PAGE BUILDS. Page-specific styles go in
   /assets/css/pages/<page>.css. Copy-paste markup for every component lives
   in /partials/components.md; class names below are the contract.

   Contents
   01. Tokens (spec §3) + legacy aliases (admin.css still uses them)
   02. Reset & base
   03. Typography (headings, lead, eyebrow, links, prose)
   04. Layout (container, section, section-head)
   05. Utilities
   06. Buttons & text links
   07. Header & navigation (dropdowns, mobile panel)
   08. Decorative "+" grid
   09. Home hero split + hero carousel
   10. Page hero (inner pages) + article hero + cover
   11. Split (image + text)
   12. Services grid
   13. Statement
   14. Case cards + case grid
   15. Dark band
   16. Values grid, principles, steps
   (17 and 19 removed: no quote blocks or people grids on this site)
   18. Challenges
   20. CTA band
   21. Chips & filter bar
   22. Article layout, at a glance, metrics, notes
   23. Forms
   24. Footer
   27. Content components (v3): nav fit, services grid ×3, proof stats,
       credentials, technology groups, product cards, platform cards,
       phase timeline
   28. Shared content patterns (v3.1): label, labelled chip row, two
       columns, check-list columns, three principles, 5/7 case lists,
       related links, cover focal point
   25. Legacy helpers (badges, tables, cluster, icon) for admin
   26. Motion, reveal, print
   ========================================================================== */

/* 01. Tokens ============================================================== */
:root {
  /* Spec §3 palette */
  --canvas: #F3F4EF;
  --surface: #FFFFFF;
  --brand-950: #081B33;
  --brand-900: #0B2545;
  --brand-800: #0E3263;
  --brand-700: #174A86;
  --accent-600: #0A72A4; /* 4.80:1 on canvas, 4.62:1 on accent-100 */
  --accent-500: #1AA7DD;
  --accent-200: #A9DDF3;
  --accent-100: #E1F2FA;
  --text: #243447;
  --text-muted: #55657A;
  --on-dark: #EEF2F6;
  --on-dark-muted: #B7C4D3;
  --line: rgba(14, 50, 99, 0.18);
  --line-strong: rgba(14, 50, 99, 0.32);
  --line-on-dark: rgba(238, 242, 246, 0.16);
  --hero-mid: #4B6B8F; /* on-dark text 4.91:1 */
  --hero-end: #C9D6E2;

  /* Context-aware roles (dark sections flip these, see .on-dark below) */
  --heading-color: var(--brand-800);
  --body-color: var(--text);
  --muted-color: var(--text-muted);
  --eyebrow-color: var(--accent-600);
  --link-color: var(--accent-600);
  --numeral-color: var(--accent-600);
  --rule-color: var(--line);
  --rule-strong: var(--line-strong);
  --tile-bg: var(--surface);          /* credential / tile background */
  --tile-tint: var(--accent-100);     /* duration pills, soft fills */
  --focus-ring: var(--accent-600);

  /* Type */
  --font-heading: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-h1: clamp(2.5rem, 1.6rem + 3vw, 4rem);          /* 40 -> 64 */
  --fs-h2: clamp(2.125rem, 1.45rem + 2.3vw, 3.5rem);   /* 34 -> 56 */
  --fs-h3: clamp(1.375rem, 1.24rem + 0.45vw, 1.75rem); /* 22 -> 28 */
  --fs-h4: 1.25rem;                                    /* 20 */
  --fs-body: 1.125rem;                                 /* 18 */
  --fs-lead: clamp(1.1875rem, 1.13rem + 0.2vw, 1.25rem); /* 19 -> 20 */
  --fs-small: 0.9375rem;                               /* 15 */
  --fs-eyebrow: 0.875rem;                              /* 14 */
  --lh-heading: 1.1;
  --lh-body: 1.6;

  /* Layout */
  --container: 1200px;
  --container-narrow: 820px;
  --gutter: 40px;
  --section-y: 120px;
  --header-h: 88px;
  --grid-gap: clamp(24px, 3vw, 40px);

  /* Shape & depth */
  --radius-btn: 4px;
  --radius-card: 6px;
  --radius-pill: 999px;
  --shadow-menu: 0 18px 48px -12px rgba(8, 27, 51, 0.28), 0 2px 6px rgba(8, 27, 51, 0.08);
  --shadow-card: 0 1px 2px rgba(8, 27, 51, 0.06), 0 12px 32px -16px rgba(8, 27, 51, 0.18);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur: 250ms;
  --dur-slow: 700ms;

  /* ---- Legacy aliases (do not use in new pages; kept for admin.css) ---- */
  --white: #FFFFFF;
  --ink-950: var(--brand-950);
  --ink-900: var(--brand-900);
  --ink-800: var(--brand-800);
  --slate-50: #F8F9F6;
  --slate-100: #ECEEE8;
  --slate-150: #E4E7E0;
  --slate-200: #DADED6;
  --slate-300: #B7C4D3;
  --slate-400: #8A97A8;
  --slate-500: var(--text-muted);
  --slate-600: #455468;
  --accent-50: #EEF7FC;
  --accent-300: var(--accent-200);
  --accent-700: #075C85;
  --sf-50: #E6F6FD;
  --sf-100: #CBEBFA;
  --sf-300: #7FD0F0;
  --sf-500: var(--accent-500);
  --sf-700: #08618C;
  --java-50: #FFF5E6;
  --java-100: #FDE6BF;
  --java-300: #F7C873;
  --java-500: #E0950F;
  --java-700: #8F5500;
  --success-50: #E7F6EF;
  --success-500: #1E9E6A;
  --success-700: #116B47;
  --danger-50: #FCEDED;
  --danger-500: #D64545;
  --danger-700: #A82A30;
  --color-text: var(--text);
  --color-heading: var(--brand-800);
  --color-text-muted: var(--text-muted);
  --color-border: var(--line);
  --color-border-strong: var(--line-strong);
  --color-link: var(--accent-600);
  --color-surface: var(--surface);
  --color-surface-alt: var(--canvas);
  --font-display: var(--font-heading);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --gradient-brand: linear-gradient(135deg, var(--brand-800) 0%, var(--accent-600) 100%);
  --fs-xs: 0.75rem;
  --fs-sm: 0.9375rem;
  --fs-base: var(--fs-body);
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.3rem, 1.18rem + 0.5vw, 1.6rem);
  --fs-2xl: clamp(1.65rem, 1.35rem + 1.3vw, 2.35rem);
  --fs-3xl: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 6rem;
  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --shadow-xs: 0 1px 2px rgba(8, 27, 51, 0.05);
  --shadow-sm: 0 1px 2px rgba(8, 27, 51, 0.06), 0 2px 8px -2px rgba(8, 27, 51, 0.06);
  --shadow: var(--shadow-card);
  --shadow-lg: 0 4px 8px rgba(8, 27, 51, 0.04), 0 24px 48px -16px rgba(8, 27, 51, 0.22);
  --shadow-xl: 0 30px 80px -20px rgba(4, 12, 26, 0.6);

  color-scheme: light;
}

@media (max-width: 1023.98px) {
  :root { --header-h: 72px; --section-y: 96px; }
}
@media (max-width: 767.98px) {
  :root { --gutter: 16px; --section-y: 72px; }
}

/* Dark contexts flip the role tokens. */
.on-dark,
.site-header,
.hero-split__panel,
.page-hero,
.band-dark,
.cta-band,
.site-footer,
.product-card--feature {
  --heading-color: #FFFFFF;
  --body-color: var(--on-dark);
  --muted-color: var(--on-dark-muted);
  --eyebrow-color: var(--accent-200);
  --link-color: var(--accent-200);
  --numeral-color: var(--accent-500);
  --rule-color: var(--line-on-dark);
  --rule-strong: rgba(238, 242, 246, 0.28);
  --tile-bg: rgba(255, 255, 255, 0.04);
  --tile-tint: rgba(169, 221, 243, 0.12);
  --focus-ring: var(--accent-500);
  color: var(--body-color);
}

/* 02. Reset & base ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html.nav-open,
html.nav-open body { overflow: hidden; }
main { display: block; overflow-x: clip; }

img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
svg { flex-shrink: 0; }

input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:where(button, [role="button"]) { -webkit-tap-highlight-color: transparent; }

p, h1, h2, h3, h4, h5, h6, figure, blockquote, dl, dd { margin: 0; }
:where(ul[class], ol[class]) { margin: 0; padding: 0; list-style: none; }

a { color: var(--link-color); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

hr {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--rule-color);
}

::selection { background: rgba(26, 167, 221, 0.28); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }

/* 03. Typography =========================================================== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: normal;
  color: var(--heading-color);
  text-wrap: balance;
}
h1, .h1 { font-size: var(--fs-h1); line-height: 1.06; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.08; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4, .h4 { font-size: var(--fs-h4); line-height: 1.3; }

p { text-wrap: pretty; }
strong, b { font-weight: 600; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--body-color);
}
.muted { color: var(--muted-color); }
.text-strong {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--heading-color);
}

.eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eyebrow-color);
}
.eyebrow--plain { /* legacy alias, same look */ }

.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--accent-600); }
.prose blockquote {
  padding-left: 24px;
  border-left: 3px solid var(--accent-500);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--heading-color);
}

/* 04. Layout =============================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.container--wide { max-width: calc(1360px + 2 * var(--gutter)); }

.section { position: relative; padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
/* Two consecutive sections on the same background share their spacing. */
.section:not(.section--surface) + .section:not(.section--surface),
.section--surface + .section--surface { padding-top: calc(var(--section-y) * 0.5); }
/* ...unless the second one asks for no top padding (e.g. after .statement). */
.section:not(.section--surface) + .section.section--flush-top,
.section--surface + .section.section--surface.section--flush-top { padding-top: 0; }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head > * + * { margin-top: 20px; }
.section-head > .eyebrow + * { margin-top: 16px; }
.section-head p:not(.eyebrow) { color: var(--muted-color); font-size: var(--fs-lead); line-height: 1.55; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px clamp(40px, 6vw, 96px);
  align-items: end;
  max-width: none;
}
.section-head--split > * + * { margin-top: 0; }
.section-head__aside { display: grid; gap: 20px; justify-items: start; }
@media (max-width: 899.98px) {
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
}

/* 05. Utilities ============================================================ */
.sr-only {
  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;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--brand-900);
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; outline: 2px solid var(--accent-500); outline-offset: 2px; }

.text-center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.stack--sm { gap: 12px; }
.stack--lg { gap: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.mt-0 { margin-top: 0 !important; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 56px; }
.icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 06. Buttons & text links ================================================= */
.btn {
  --btn-bg: var(--brand-800);
  --btn-bg-hover: var(--brand-700);
  --btn-fg: #FFFFFF;
  --btn-fg-hover: var(--btn-fg);
  --btn-border: transparent;
  --btn-border-hover: var(--btn-border);
  --btn-shadow: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-btn);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-fg-hover);
  box-shadow: var(--btn-shadow);
  text-decoration: none;
}
.btn .icon { width: 1.1rem; height: 1.1rem; transition: transform var(--dur) var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(3px); }

.btn--primary { /* default solid */ }
.btn--outline,
.btn--secondary {
  --btn-bg: transparent;
  --btn-bg-hover: var(--brand-800);
  --btn-fg: var(--brand-800);
  --btn-fg-hover: #FFFFFF;
  --btn-border: var(--brand-800);
  --btn-border-hover: var(--brand-800);
}
.btn--outline-light {
  --btn-bg: transparent;
  --btn-bg-hover: var(--canvas);
  --btn-fg: var(--on-dark);
  --btn-fg-hover: var(--brand-900);
  --btn-border: rgba(238, 242, 246, 0.72);
  --btn-border-hover: var(--canvas);
}
.btn--light {
  --btn-bg: var(--canvas);
  --btn-bg-hover: #FFFFFF;
  --btn-fg: var(--brand-900);
  --btn-fg-hover: var(--brand-900);
}
.btn--dark {
  --btn-bg: var(--brand-900);
  --btn-bg-hover: var(--brand-800);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-bg-hover: var(--accent-100);
  --btn-fg: var(--accent-600);
  --btn-fg-hover: var(--btn-fg);
  padding-inline: 14px;
}
/* Secondary buttons inside dark contexts (legacy markup, e.g. the consent banner) */
.on-dark .btn--secondary,
.band-dark .btn--secondary,
.cta-band .btn--secondary,
.site-footer .btn--secondary,
.site-header .btn--secondary {
  --btn-bg: transparent;
  --btn-bg-hover: var(--canvas);
  --btn-fg: var(--on-dark);
  --btn-fg-hover: var(--brand-900);
  --btn-border: rgba(238, 242, 246, 0.72);
  --btn-border-hover: var(--canvas);
}

.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 1.0625rem; }
.btn--block { display: flex; width: 100%; }

.btn[aria-busy="true"] { pointer-events: none; opacity: 0.85; }
.btn[aria-busy="true"]::after {
  content: "";
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* Text link with arrow: <a class="link-arrow" href="…">View all <span aria-hidden="true">→</span></a> */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--link-color);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.link-arrow .icon, .link-arrow > span[aria-hidden] { transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover .icon, .link-arrow:hover > span[aria-hidden] { transform: translateX(3px); }

/* Uppercase "LET'S TALK ↗" style link (used by .cta-band; usable anywhere) */
.link-caps {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  color: var(--link-color);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--dur) var(--ease-out), gap var(--dur) var(--ease-out);
}
.link-caps:hover { color: var(--heading-color); gap: 14px; }

/* 07. Header & navigation ================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-900);
  transition: box-shadow var(--dur) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(4, 12, 26, 0.7); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand__logo { width: auto; height: 44px; }
@media (max-width: 1023.98px) { .brand__logo { height: 38px; } }

/* Header logo intro, first page of a visit only (logo-intro.js sets .logo-intro on <html>;
   internal clicks, back/forward and reloads skip it): the white stroke draws down from the
   apex, then the three blue strokes slide in from the left, innermost first, to complete the A.
   Visitors who ask for reduced motion see the finished logo. */
@media (prefers-reduced-motion: no-preference) {
  .logo-intro .brand__logo--animated .logo-stem {
    stroke-dasharray: 1;
    animation: logo-stem-draw 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.15s both;
  }
  .logo-intro .brand__logo--animated .logo-blade {
    animation: logo-blade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .logo-intro .brand__logo--animated .logo-blade--3 { animation-delay: 0.6s; }
  .logo-intro .brand__logo--animated .logo-blade--2 { animation-delay: 0.8s; }
  .logo-intro .brand__logo--animated .logo-blade--1 { animation-delay: 1s; }
}
@keyframes logo-stem-draw {
  from { stroke-dashoffset: 1; opacity: 0; }
  15% { opacity: 1; }
  to { stroke-dashoffset: 0; opacity: 1; }
}
/* No "to" keyframe: each stroke settles at its own opacity (0.45, 0.7, 1). */
@keyframes logo-blade-in {
  from { opacity: 0; transform: translateX(-18px); }
}

.site-nav { display: flex; align-items: center; flex: 1; gap: 24px; min-width: 0; }
.site-nav__list { display: flex; align-items: center; gap: 4px; }
.site-nav__item { position: relative; display: flex; align-items: center; }

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--on-dark);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) ease;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: var(--accent-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.site-nav__link:hover { color: #FFFFFF; }
.site-nav__link:hover::after { transform: scaleX(1); background: var(--on-dark-muted); }
.site-nav__link[aria-current="page"]::after,
.site-nav__link.is-active::after { transform: scaleX(1); background: var(--accent-500); }
.site-nav__link[aria-current="page"],
.site-nav__link.is-active { color: #FFFFFF; }

.nav__item--has-menu .site-nav__link { padding-right: 4px; }
.nav__item--has-menu .site-nav__link::after { right: 0; }
.site-nav__menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 44px;
  margin-right: 4px;
  border-radius: var(--radius-btn);
  color: var(--on-dark-muted);
  transition: color var(--dur-fast) ease;
}
.site-nav__menu-toggle:hover { color: #FFFFFF; }
.site-nav__menu-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur) var(--ease-out);
}
.site-nav__menu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Dropdown panel (desktop) */
.site-nav__menu {
  position: absolute;
  top: calc(100% + ((var(--header-h) - 44px) / 2));
  left: 0;
  z-index: 110;
  min-width: 340px;
  padding: 12px;
  border-top: 3px solid var(--accent-500);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-menu);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.site-nav__menu::before { /* hover bridge across the gap to the header bottom */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: calc((var(--header-h) - 44px) / 2 + 3px);
}
.nav__item--has-menu.is-open > .site-nav__menu,
html:not(.has-js) .nav__item--has-menu:hover > .site-nav__menu,
html:not(.has-js) .nav__item--has-menu:focus-within > .site-nav__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.site-nav__menu-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-btn);
  color: var(--brand-800);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color var(--dur-fast) ease;
}
.site-nav__menu-link:hover { background: var(--accent-100); }
.site-nav__menu-link[aria-current="page"] { background: var(--accent-100); box-shadow: inset 3px 0 0 var(--accent-500); }
.site-nav__menu-num {
  flex: none;
  min-width: 1.6em;
  color: var(--accent-600);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.site-nav__menu-desc { display: block; margin-top: 2px; color: var(--text-muted); font-family: var(--font-body); font-size: 0.9375rem; font-weight: 400; }

.site-nav__cta { margin-left: auto; }

/* Hamburger */
.nav-toggle {
  display: none;
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  margin-right: -8px;
  border-radius: var(--radius-btn);
  color: #FFFFFF;
}
.nav-toggle__bar {
  position: absolute;
  left: 13px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.nav-toggle__bar:nth-child(1) { top: 16px; }
.nav-toggle__bar:nth-child(2) { top: 23px; }
.nav-toggle__bar:nth-child(3) { top: 30px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023.98px) {
  .has-js .nav-toggle { display: block; }

  /* Full-height panel under the header */
  .has-js .site-nav {
    position: fixed;
    top: var(--nav-top, var(--header-h));
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 16px var(--gutter) 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--brand-900);
    border-top: 1px solid var(--line-on-dark);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .has-js .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

  /* Without JS the nav simply wraps under the logo */
  html:not(.has-js) .site-header { position: relative; }
  html:not(.has-js) .site-header__inner { flex-wrap: wrap; height: auto; padding-block: 16px; }
  html:not(.has-js) .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 16px; }

  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line-on-dark); }
  .site-nav__link { flex: 1; min-height: 60px; padding: 0; font-size: 1.375rem; }
  .site-nav__link::after { left: 0; right: auto; width: 32px; bottom: 10px; }
  .nav__item--has-menu .site-nav__link { padding-right: 0; }
  .nav__item--has-menu .site-nav__link::after { right: auto; }
  .site-nav__menu-toggle { width: 48px; height: 48px; margin-right: -12px; border: 0; }
  .site-nav__menu-toggle svg { width: 18px; height: 18px; }

  .site-nav__menu {
    position: static;
    flex-basis: 100%;
    min-width: 0;
    padding: 0 0 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    display: none;
  }
  .site-nav__menu::before { display: none; }
  .nav__item--has-menu.is-open > .site-nav__menu,
  html:not(.has-js) .site-nav__menu { display: block; }
  .site-nav__menu-link { padding: 10px 0 10px 4px; color: var(--on-dark-muted); font-size: 1.0625rem; }
  .site-nav__menu-link:hover { background: transparent; color: #FFFFFF; }
  .site-nav__menu-link[aria-current="page"] { background: transparent; box-shadow: none; color: #FFFFFF; }
  .site-nav__menu-num { color: var(--accent-200); }
  .site-nav__menu-desc { display: none; }

  .site-nav__cta { align-self: flex-start; margin-left: 0; min-height: 52px; padding-inline: 32px; }
}

/* 08. Decorative "+" grid ================================================== */
/* <span class="decor-plus decor-plus--bl" aria-hidden="true"></span> inside a position:relative parent. */
.decor-plus {
  position: absolute;
  z-index: 0;
  width: 196px;
  height: 140px;
  color: var(--decor-color, rgba(169, 221, 243, 0.42));
  background-color: currentColor;
  pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M7 2v10M2 7h10' stroke='black' stroke-width='1.25'/%3E%3C/svg%3E") 0 0 / 28px 28px repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M7 2v10M2 7h10' stroke='black' stroke-width='1.25'/%3E%3C/svg%3E") 0 0 / 28px 28px repeat;
}
.decor-plus--bl { left: var(--gutter); bottom: 32px; }
.decor-plus--br { right: var(--gutter); bottom: 32px; }
.decor-plus--tl { left: var(--gutter); top: 40px; }
.decor-plus--tr { right: var(--gutter); top: 40px; }
.decor-plus--sm { width: 112px; height: 84px; }
.decor-plus--muted { --decor-color: rgba(14, 50, 99, 0.2); }
@media (max-width: 767.98px) {
  .decor-plus { width: 112px; height: 84px; }
}

/* 09. Home hero split + carousel =========================================== */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  min-height: clamp(620px, calc(100vh - var(--header-h)), 800px);
  background: var(--brand-900);
}
.hero-split__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 96px 208px;
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
  padding-right: clamp(32px, 4vw, 56px);
  background: var(--brand-900);
}
.hero-split__panel > :not(.decor-plus) { position: relative; z-index: 1; }
.hero-split__eyebrow { margin-bottom: 24px; }
.hero-split__title {
  max-width: 19ch;
  font-size: clamp(2.5rem, 1.6rem + 2vw, 3.25rem);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
  color: #FFFFFF;
}
.hero-split__lead {
  max-width: 34rem;
  margin-top: 28px;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--on-dark);
}
.hero-split__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
/* 4 rows (112px) from 32px: clears the CTA, which sits at least 208px above the panel's bottom edge */
.hero-split__panel .decor-plus { left: max(var(--gutter), calc((100vw - var(--container)) / 2)); bottom: 32px; height: 112px; }
.hero-split__media { position: relative; min-width: 0; background: var(--brand-950); }

.hero-carousel { position: relative; height: 100%; }
.hero-carousel__viewport {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hero-carousel__viewport::-webkit-scrollbar { display: none; }
.hero-carousel__slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 100%;
  scroll-snap-align: start;
  overflow: hidden;
}
.hero-carousel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-carousel__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  display: block;
  width: min(560px, calc(100% - 168px));
  padding: 28px 32px 30px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.hero-carousel__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-heading);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-600);
}
.hero-carousel__index { color: var(--text-muted); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.hero-carousel__title {
  display: block;
  margin-top: 10px;
  font-family: var(--font-heading);
  font-size: clamp(1.1875rem, 1.05rem + 0.4vw, 1.4375rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--brand-800);
}
.hero-carousel__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-600);
}
.hero-carousel__more span[aria-hidden] { transition: transform var(--dur) var(--ease-out); }
.hero-carousel__caption:hover .hero-carousel__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.hero-carousel__caption:hover .hero-carousel__more span[aria-hidden] { transform: translate(2px, -2px); }
.hero-carousel__caption:focus-visible { outline-offset: -4px; }

.hero-carousel__controls {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  background: var(--brand-900);
  --focus-ring: var(--accent-500);
}
.hero-carousel__btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--on-dark);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.hero-carousel__btn + .hero-carousel__btn { border-left: 1px solid var(--line-on-dark); }
.hero-carousel__btn:hover { background: var(--brand-800); color: #FFFFFF; }
.hero-carousel__btn:focus-visible { outline-offset: -3px; }
.hero-carousel__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-carousel__btn .icon-play { display: none; }
.hero-carousel.is-paused .hero-carousel__btn .icon-pause { display: none; }
.hero-carousel.is-paused .hero-carousel__btn .icon-play { display: block; }

/* Enhanced (JS): slides cross-fade in one stacked cell. Keyed on html.has-js
   (set in <head> by logo-intro.js) so the first paint already has this layout;
   until main.js adds .is-enhanced and .is-active, the first slide shows. */
.has-js .hero-carousel__viewport { display: grid; overflow: hidden; }
.has-js .hero-carousel__slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms var(--ease-out), visibility 0s linear 900ms;
}
.has-js .hero-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.has-js .hero-carousel:not(.is-enhanced) .hero-carousel__slide:first-child { opacity: 1; visibility: visible; transition: none; }
.hero-carousel.is-enhanced .hero-carousel__slide .hero-carousel__img { transform: scale(1.035); transition: transform 7.5s linear; }
.hero-carousel.is-enhanced .hero-carousel__slide.is-active .hero-carousel__img { transform: scale(1); }

@media (max-width: 1023.98px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-split__panel { padding: 72px var(--gutter) 176px; }
  .hero-split__panel .decor-plus { left: var(--gutter); bottom: 32px; }
  .hero-split__title { max-width: 19ch; }
  .hero-carousel__slide { display: flex; flex-direction: column; min-height: 0; }
  .hero-carousel__img { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 10; }
  .hero-carousel__caption { position: relative; width: 100%; flex: 1; padding: 24px var(--gutter) 28px; }
  .hero-carousel__controls { top: 0; bottom: auto; }
  .hero-carousel.is-enhanced .hero-carousel__slide .hero-carousel__img { transform: none; transition: none; }
}
h1, .h1 { overflow-wrap: break-word; }
@media (max-width: 359.98px) {
  :root { --fs-h1: 2.125rem; }
  .hero-split__panel { padding-top: 48px; }
  .hero-split__title { font-size: var(--fs-h1); }
}
@media (max-width: 1023.98px) and (min-width: 600px) {
  .hero-carousel__img { aspect-ratio: 21 / 10; }
}
@media (max-width: 599.98px) {
  /* 3 rows of "+" (84px) from 32px: 12px of air under the button */
  .hero-split__panel { padding-bottom: 128px; }
  .hero-split__panel .decor-plus { height: 84px; }
}

/* 10. Page hero ============================================================ */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 420px;
  /* Bottom padding clears the bottom-left "+" grid (24 + 112 + 56 of air). */
  padding-block: clamp(72px, 8vw, 104px) 192px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--brand-900) 0%, var(--brand-900) 16%, var(--hero-mid) 74%, var(--hero-end) 100%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero__eyebrow { margin-bottom: 20px; }
.page-hero__title { max-width: 18ch; color: #FFFFFF; }
.page-hero__subtitle {
  max-width: 40rem;
  margin-top: 24px;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--on-dark);
}
.page-hero .decor-plus { --decor-color: rgba(11, 37, 69, 0.3); }
.page-hero .decor-plus--bl { bottom: 24px; height: 112px; }
@media (max-width: 767.98px) {
  /* decor is 112x84 here: 32 + 84 + 20 of air */
  .page-hero { min-height: 360px; padding-bottom: 136px; }
  .page-hero .decor-plus--bl { bottom: 32px; height: 84px; }
}

/* Article (case study) hero: solid band, chips, title, subtitle */
.page-hero--article {
  min-height: 0;
  padding-block: clamp(64px, 7vw, 96px) clamp(64px, 7vw, 88px);
  background: var(--brand-900);
}
.page-hero--article .page-hero__title { max-width: 24ch; font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.5rem); }
@media (max-width: 359.98px) { .page-hero--article .page-hero__title { font-size: 2rem; } }
.page-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.page-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: var(--accent-200);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.page-hero__back:hover { text-decoration: underline; }
.page-hero--article .decor-plus { --decor-color: rgba(169, 221, 243, 0.32); }
/* Below 1024px the corner grid would sit on the subtitle. */
@media (max-width: 1023.98px) {
  .page-hero--article .decor-plus { display: none; }
}

/* Full-width cover image after .page-hero--article */
.article-cover { margin: 0; background: var(--brand-950); }
.article-cover img { width: 100%; height: clamp(260px, 38vw, 560px); object-fit: cover; }

/* 11. Split (image + text) ================================================= */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(40px, 7vw, 112px);
  align-items: center;
}
.split__media { position: relative; margin: 0; min-width: 0; }
.split__media img {
  width: 100%;
  aspect-ratio: var(--split-ratio, 1 / 1);
  object-fit: cover;
  background: var(--brand-900);
}
.split__media--portrait { --split-ratio: 3 / 4; }
.split__media--wide { --split-ratio: 16 / 10; }
.split__media--landscape { --split-ratio: 4 / 3; }
.split--reverse .split__media { order: 2; }
.split__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
}
.split__body > .eyebrow + * { margin-top: -8px; }
.split__body p { max-width: 36rem; }
.split__body .btn, .split__body .actions { margin-top: 12px; }
.split__body .actions .btn { margin-top: 0; }
.split--top { align-items: start; }
@media (max-width: 899.98px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__media { order: 0; }
  /* Once stacked, a 3:4 image would be ~480px tall on a phone: crop to 4:3. */
  .split__media--portrait { --split-ratio: 4 / 3; }
  /* A stacked square would be as tall as the column is wide: crop to 4:3 too. */
  .split__media:not(.split__media--wide):not(.split__media--landscape):not(.split__media--portrait) { --split-ratio: 4 / 3; }
}
/* Side by side on small laptops, 16:10 reads as a thin strip beside the copy. */
@media (min-width: 900px) and (max-width: 1199.98px) { .split__media--wide { --split-ratio: 4 / 3; } }

/* 12. Services grid ======================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 56px var(--grid-gap);
}
.service-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 32px;
  border-top: 1px solid var(--rule-color);
}
.service-col__num {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 2rem + 1.4vw, 3.25rem);
  font-weight: 500;
  line-height: 1;
  color: var(--numeral-color);
  font-variant-numeric: tabular-nums;
}
.service-col__title { margin-top: 28px; font-size: var(--fs-h3); line-height: 1.2; }
/* Two-line slot so taglines line up across a row even when a title fits on one line. */
@media (min-width: 1100px) {
  .services-grid .service-col__title { min-height: 2.4em; }
}
.service-col__tagline {
  margin-top: 14px;
  font-family: var(--font-heading);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted-color);
}
.service-col__text { margin-top: 18px; color: var(--body-color); }
.service-col__list { margin-top: 18px; display: grid; gap: 8px; color: var(--body-color); }
.service-col__list li { position: relative; padding-left: 18px; }
.service-col__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; background: var(--accent-500); }
.service-col__action { margin-top: auto; padding-top: 32px; }
@media (max-width: 1099.98px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599.98px) {
  .services-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}

/* 13. Statement ============================================================ */
.statement { text-align: center; }
.statement__inner { max-width: 780px; margin-inline: auto; }
.statement__mark { width: 48px; height: auto; margin: 0 auto; }
.statement__text {
  margin-top: 28px;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--brand-800);
  text-wrap: balance;
}
.statement__rule { margin-top: clamp(56px, 6vw, 80px); }

/* 14. Case cards =========================================================== */
.case-cards {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px clamp(40px, 6vw, 88px);
  align-items: start;
}
.case-cards__intro {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.case-cards__intro > .eyebrow + * { margin-top: -4px; }
.case-cards__intro p:not(.eyebrow) { color: var(--muted-color); }
.case-cards__intro .btn { margin-top: 12px; }
.case-cards__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.case-cards--three .case-cards__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-cards--stacked { grid-template-columns: minmax(0, 1fr); row-gap: clamp(32px, 4vw, 48px); }
.case-cards--stacked .case-cards__intro { position: static; }
/* Stacked intro as a split row: heading left, text + link right.
   <div class="case-cards__intro case-cards__intro--split"><div>eyebrow + h2</div><div>p + link</div></div>
   A .section-head as the first child works too; the grid gap replaces its margin. */
.case-cards__intro--split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px clamp(40px, 6vw, 96px);
  align-items: end;
}
.case-cards__intro--split > div { display: grid; gap: 16px; justify-items: start; }
.case-cards__intro--split .btn { margin-top: 4px; }
.case-cards--stacked > .section-head { margin-bottom: 0; }
@media (max-width: 899.98px) {
  .case-cards__intro--split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023.98px) {
  .case-cards { grid-template-columns: minmax(0, 1fr); }
  .case-cards__intro { position: static; }
  .case-cards--three .case-cards__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Tablet: a 3-card list shows the first card full width, then two, instead of 2 + 1. */
@media (min-width: 600px) and (max-width: 1023.98px) {
  .case-cards--three .case-cards__list > li:first-child:nth-last-child(3) { grid-column: 1 / -1; }
  .case-cards--three .case-cards__list > li:first-child:nth-last-child(3) .case-card { aspect-ratio: auto; min-height: 380px; height: 100%; }
}
@media (max-width: 599.98px) {
  .case-cards__list,
  .case-cards--three .case-cards__list { grid-template-columns: minmax(0, 1fr); }
}

/* Listing grid (insights): 3 → 2 → 1 columns */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 1023.98px) { .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599.98px) { .case-grid { grid-template-columns: minmax(0, 1fr); } }

.case-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 4 / 5;
  min-height: 360px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--brand-900);
  color: #FFFFFF;
  text-decoration: none;
}
.case-card__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
/* The only portrait art: keep the summit in frame when a card is wider than 3:4. */
.case-card__img[src$="summit.svg"] { object-position: 50% 20%; }
.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 27, 51, 0.55) 0%, rgba(8, 27, 51, 0) 26%),
    linear-gradient(180deg, rgba(8, 27, 51, 0) 34%, rgba(8, 27, 51, 0.62) 62%, rgba(8, 27, 51, 0.94) 100%);
}
.case-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case-card__body { display: grid; gap: 14px; }
.case-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1.1rem + 0.45vw, 1.5rem);
  font-weight: 500;
  line-height: 1.25;
  color: #FFFFFF;
  text-wrap: balance;
}
.case-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-200);
}
.case-card:hover .case-card__img { transform: scale(1.045); }
.case-card:hover .case-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.case-card:focus-visible { outline-offset: 3px; }
.case-card--wide { aspect-ratio: 16 / 10; }
/* Phones: full-width 4:5 cards are ~490px tall each; square them up. */
@media (max-width: 599.98px) {
  .case-card, .case-card--wide { aspect-ratio: 1 / 1; min-height: 340px; width: 100%; }
}

/* 15. Dark band ============================================================ */
.band-dark {
  position: relative;
  padding-block: var(--section-y);
  background: var(--brand-900);
}
.band-dark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--accent-500);
}
.band-dark .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.band-dark .split__media { --split-ratio: 3 / 4; }
.band-dark .split__media--wide { --split-ratio: 16 / 10; }
.band-dark .split__media--landscape { --split-ratio: 4 / 3; }
.band-dark .split__media img { max-height: 680px; }
.band-dark .split__body p { color: var(--on-dark); }
.band-dark a:not(.btn) { color: var(--accent-200); }
.band-dark a:not(.btn):hover { color: #FFFFFF; }
.band-dark__statement {
  max-width: 22ch;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  font-weight: 400;
  line-height: 1.25;
  color: #FFFFFF;
}
@media (max-width: 899.98px) {
  .band-dark .split { grid-template-columns: minmax(0, 1fr); }
  .band-dark .split__media { --split-ratio: 4 / 3; }
}

/* 16. Values grid, principles, steps ======================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px var(--grid-gap);
}
.values-grid__item { padding-top: 28px; border-top: 1px solid var(--rule-color); }
.values-grid__title { font-size: clamp(1.25rem, 1.15rem + 0.35vw, 1.5rem); }
.values-grid__text { margin-top: 14px; color: var(--muted-color); }
@media (max-width: 1023.98px) { .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599.98px) { .values-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
/* Two-column tablet grids: an odd last item spans the row instead of sitting alone. */
@media (min-width: 600px) and (max-width: 1023.98px) {
  .values-grid > :last-child:nth-child(odd),
  .product-cards--three > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 600px) and (max-width: 1099.98px) {
  .services-grid--three > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px var(--grid-gap);
}
.principles__item { position: relative; padding-top: 32px; }
.principles__item::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 3px; background: var(--accent-500); }
.principles__title { font-size: clamp(1.625rem, 1.35rem + 0.9vw, 2.125rem); line-height: 1.12; }
.principles__text { margin-top: 18px; color: var(--muted-color); }
@media (max-width: 1023.98px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599.98px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* Numbered steps: "How we hire", "What happens next" */
.steps { display: grid; gap: 0; counter-reset: step; }
.steps__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 4px 24px;
  padding-block: 28px;
  border-top: 1px solid var(--rule-color);
}
.steps__item:last-child { border-bottom: 1px solid var(--rule-color); }
.steps__num {
  grid-row: span 2;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--numeral-color);
  font-variant-numeric: tabular-nums;
}
.steps__title { font-size: var(--fs-h4); }
.steps__text { color: var(--muted-color); }
.steps--row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); }
.steps--row .steps__item { grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; border-bottom: 0; }
.steps--row .steps__num { grid-row: auto; font-size: 2.5rem; }
@media (max-width: 1023.98px) { .steps--row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599.98px) {
  .steps--row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps__item { grid-template-columns: 52px minmax(0, 1fr); }
  .steps__num { font-size: 1.625rem; }
}

/* 18. Challenges =========================================================== */
.challenges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(40px, 6vw, 96px);
}
.challenges li {
  position: relative;
  padding: 18px 0 18px 28px;
  border-top: 1px solid var(--rule-color);
  color: var(--body-color);
}
.challenges li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(18px + 0.62em);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-500);
}
@media (max-width: 767.98px) { .challenges { grid-template-columns: minmax(0, 1fr); } }

/* Check list (capabilities): same bullet, no rules */
.list-check { display: grid; gap: 10px; }
.list-check li { position: relative; padding-left: 26px; }
.list-check li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-500); }

/* 20. CTA band ============================================================= */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-y);
  background: var(--brand-900);
  text-align: center;
}
.cta-band > .container { position: relative; z-index: 1; }
.cta-band__text {
  max-width: 900px;
  margin-inline: auto;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--on-dark);
  text-wrap: balance;
}
.cta-band__link { margin-top: 40px; }
.cta-band .decor-plus { --decor-color: rgba(169, 221, 243, 0.3); }
/* Keep the top-left grid inside the band's top padding so it never meets the sentence. */
.cta-band .decor-plus--tl { top: 16px; height: 84px; }
@media (max-width: 1023.98px) {
  .cta-band .decor-plus--tl { top: 12px; height: 56px; }
}

/* 21. Chips & filter bar =================================================== */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 13px;
  border: 1px solid var(--accent-200);
  border-radius: var(--radius-pill);
  background: var(--accent-100);
  color: var(--brand-800);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.chip--on-dark {
  border-color: rgba(169, 221, 243, 0.5);
  background: rgba(255, 255, 255, 0.07);
  color: var(--on-dark);
}
.chip--on-image {
  border-color: rgba(169, 221, 243, 0.55);
  background: rgba(8, 27, 51, 0.62);
  color: #FFFFFF;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
/* Interactive chips (filters): <button class="chip" aria-pressed="false"> */
button.chip {
  min-height: 44px;
  padding: 8px 18px;
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--brand-800);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
button.chip:hover { border-color: var(--brand-800); }
button.chip[aria-pressed="true"],
button.chip.is-active { border-color: var(--brand-800); background: var(--brand-800); color: #FFFFFF; }
.chip__count {
  min-width: 1.5rem;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--canvas);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.chip[aria-pressed="true"] .chip__count { background: rgba(255, 255, 255, 0.18); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.filter-bar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.filter-bar__label {
  margin-right: 8px;
  font-family: var(--font-heading);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.filter-bar__count { color: var(--text-muted); font-size: var(--fs-small); }
/* The chips only work with main.js; without it every card shows and the chips are hidden. */
html:not(.has-js) .filter-bar__group { display: none; }
/* Tablet: the label takes its own line so the chips wrap evenly. */
@media (min-width: 600px) and (max-width: 899.98px) { .filter-bar__label { flex-basis: 100%; margin: 0 0 4px; } }
.filter-empty { padding: 48px 0; color: var(--text-muted); text-align: center; }

/* 22. Article layout, at a glance, metrics, notes ========================== */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px clamp(40px, 6vw, 96px);
  align-items: start;
}
.article-layout__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.article-layout__body > * + * { margin-top: 56px; }
@media (max-width: 899.98px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-layout__aside { position: static; }
}

.glance {
  padding: 32px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.glance__title { font-size: var(--fs-h4); }
.glance__list { display: grid; gap: 0; margin-top: 20px; }
.glance__row { padding-block: 14px; border-top: 1px solid var(--line); }
.glance__row dt {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.glance__row dd { margin-top: 4px; color: var(--brand-800); font-weight: 600; }

.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.metric { padding-top: 24px; border-top: 2px solid var(--accent-500); }
.metric__value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 1.8rem + 1.4vw, 3rem);
  font-weight: 500;
  line-height: 1;
  color: var(--brand-800);
  font-variant-numeric: tabular-nums;
}
.metric__label { display: block; margin-top: 12px; color: var(--muted-color); font-size: 1rem; }
@media (max-width: 599.98px) { .metrics { grid-template-columns: minmax(0, 1fr); } }

/* "Illustrative figures" footnote */
.note {
  margin-top: 16px;
  color: var(--muted-color);
  font-size: 0.875rem;
  font-style: italic;
}

/* Panel: a white card for grouped content (expertise panels, contact details) */
.panel {
  padding: clamp(28px, 3vw, 48px);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

/* Open roles list */
.role-list { border-top: 1px solid var(--line); }
.role-list__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: center;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.role-list__title { font-size: var(--fs-h4); }
.role-list__meta { margin-top: 4px; color: var(--text-muted); font-size: var(--fs-small); }
@media (max-width: 599.98px) { .role-list__item { grid-template-columns: minmax(0, 1fr); } }

/* Contact details list */
.contact-list { display: grid; gap: 20px; }
.contact-list__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-list__value { display: block; margin-top: 4px; color: var(--brand-800); font-weight: 600; text-decoration: none; }
a.contact-list__value:hover { color: var(--accent-600); text-decoration: underline; }

/* 23. Forms ================================================================ */
.form { display: grid; gap: 24px; }
.form__group { display: grid; gap: 20px; margin: 0; padding: 0; border: 0; min-width: 0; }
.form__group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  padding: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 500;
  color: var(--brand-800);
}
.form__group-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-100);
  color: var(--accent-600);
  font-size: 0.875rem;
  font-weight: 600;
}
.form__row { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) { .form__row > :only-child { grid-column: 1 / -1; } }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; }
.form__note { max-width: 46ch; font-size: 0.875rem; color: var(--text-muted); }
.form__status:empty { display: none; }
.form__status {
  padding: 14px 16px;
  border-radius: var(--radius-btn);
  background: var(--danger-50);
  color: var(--danger-700);
  font-size: var(--fs-small);
  font-weight: 600;
}

.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field__label { font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--brand-800); }
.field__req { margin-left: 2px; color: var(--danger-700); }
.field__optional { font-family: var(--font-body); font-size: 0.875rem; font-weight: 400; color: var(--text-muted); }
.field__hint { font-size: 0.875rem; line-height: 1.45; color: var(--text-muted); }
.field__error { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--danger-700); }
.field__error:empty { display: none; }
.field__error::before {
  content: "";
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 14H9v-2h2v2Zm0-4H9V5h2v5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 14H9v-2h2v2Zm0-4H9V5h2v5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.input,
.select,
.textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid rgba(14, 50, 99, 0.55);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.4;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--brand-700); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--accent-600);
}
.textarea { min-height: 150px; resize: vertical; }
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2355657A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea { border-color: var(--danger-500); box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.14); }
.field.is-valid .input,
.field.is-valid .select,
.field.is-valid .textarea { border-color: var(--success-500); }

.checkbox { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; color: var(--text); cursor: pointer; }
.checkbox input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; accent-color: var(--brand-800); }

.choice-group { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.choice-group legend { margin-bottom: 10px; padding: 0; font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 600; color: var(--brand-800); }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid rgba(14, 50, 99, 0.55);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  pointer-events: none;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.choice input:hover + span { border-color: var(--brand-800); }
.choice input:checked + span { border-color: var(--brand-800); background: var(--accent-100); color: var(--brand-800); }
.choice input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-card {
  padding: clamp(24px, 3vw, 48px);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.form-success { display: grid; justify-items: center; gap: 16px; padding: 48px 16px; text-align: center; }
.form-success:focus { outline: none; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-100);
  color: var(--accent-600);
  animation: pop 0.5s var(--ease-out);
}
.form-success__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.form-success__title { font-size: clamp(1.625rem, 1.35rem + 1vw, 2.25rem); }
.form-success__text { max-width: 44ch; color: var(--text-muted); }

/* 24. Footer =============================================================== */
.site-footer {
  padding-top: clamp(72px, 8vw, 104px);
  background: var(--brand-950);
  color: var(--on-dark-muted);
  font-size: 1rem;
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 48px 32px;
}
.site-footer__brand .brand__logo { height: 44px; }
.site-footer__address {
  display: grid;
  gap: 6px;
  margin-top: 28px;
  font-style: normal;
  line-height: 1.5;
}
.site-footer__address a { color: var(--on-dark); text-decoration: none; }
.site-footer__address a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer__social { display: flex; gap: 10px; margin-top: 28px; }
.site-footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-on-dark);
  border-radius: 50%;
  color: var(--on-dark);
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.site-footer__social a:hover { border-color: var(--accent-500); background: var(--accent-500); color: var(--brand-950); }
.site-footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer__col-title {
  margin-bottom: 18px;
  font-family: var(--font-heading);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.site-footer__links { display: grid; gap: 10px; }
.site-footer__links a { color: var(--on-dark-muted); text-decoration: none; line-height: 1.4; }
.site-footer__links a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: clamp(56px, 6vw, 88px);
  padding-block: 28px;
  border-top: 1px solid var(--line-on-dark);
  font-size: 0.9375rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.site-footer__legal a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer__legal a:hover { color: #FFFFFF; text-decoration: underline; }
@media (max-width: 1023.98px) {
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
  .site-footer__top { gap: 40px 16px; }
}
@media (max-width: 479.98px) {
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* 27. Content components (v3) ============================================= */
/* Copy-paste markup for everything below: partials/components.md ("v3"). */

/* --- Desktop: services dropdown width; touch-size chevrons --- */
@media (min-width: 1024px) {
  .site-nav__menu--wide { min-width: 400px; }
}
@media (min-width: 1024px) and (pointer: coarse) {
  .site-nav__menu-toggle { width: 40px; }
}

/* --- Footer: brand line + plain-text certification list --- */
.site-footer__tagline {
  margin-top: 20px;
  font-family: var(--font-heading);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-200);
}
.site-footer__tagline + .site-footer__address { margin-top: 20px; }
.site-footer__plain { display: grid; gap: 10px; color: var(--on-dark-muted); }
.site-footer__plain li { position: relative; padding-left: 16px; }
.site-footer__plain li::before { content: ""; position: absolute; left: 0; top: calc(0.8em - 3px); width: 6px; height: 6px; background: var(--accent-500); }

/* --- Services grid, 3 columns (six offerings: 3x2, then 2x3, then stacked) --- */
.services-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 64px; }
@media (max-width: 1099.98px) { .services-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; } }
@media (max-width: 599.98px) { .services-grid--three { grid-template-columns: minmax(0, 1fr); row-gap: 48px; } }

/* --- Proof stats: figure + label + line (light or dark) --- */
.proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px var(--grid-gap);
}
.proof--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proof--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.proof__item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 28px;
  border-top: 1px solid var(--rule-color);
}
.proof__item::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-500);
}
.proof__figure {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 2.3rem + 2.2vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--heading-color);
  font-variant-numeric: tabular-nums;
}
.proof__label {
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--heading-color);
}
.proof__text { margin-top: 8px; font-size: 1rem; line-height: 1.5; color: var(--muted-color); }
/* Compact: inside cards and side columns */
.proof--compact { gap: 28px 24px; }
.proof--compact .proof__item { padding-top: 18px; }
.proof--compact .proof__figure { font-size: clamp(2rem, 1.75rem + 0.9vw, 2.5rem); }
.proof--compact .proof__label { margin-top: 10px; font-size: 1rem; font-weight: 500; }
@media (max-width: 1023.98px) {
  .proof, .proof--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Five stats: one row on desktop; 2 + 3 on tablet. */
@media (min-width: 1024px) { .proof--five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 600px) and (max-width: 1023.98px) {
  .proof--five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .proof--five > :nth-child(-n+2) { grid-column: span 3; }
  .proof--five > :nth-child(n+3) { grid-column: span 2; }
}
@media (max-width: 599.98px) {
  /* Phones: one stat per row, figure left, label + line right. */
  .proof:not(.proof--compact) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .proof:not(.proof--compact) .proof__item {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
    padding-top: 22px;
  }
  .proof:not(.proof--compact) .proof__figure { grid-row: span 2; font-size: 2.5rem; }
  .proof:not(.proof--compact) .proof__label { margin-top: 2px; }
  .proof:not(.proof--compact) .proof__text { margin-top: 4px; }
}

/* --- Credentials: text badges (certifications, partnerships), no logos --- */
.credentials { display: flex; flex-wrap: wrap; gap: 12px; }
.credential {
  display: grid;
  grid-template-columns: 22px auto;
  column-gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 10px 20px 10px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-card);
  background: var(--tile-bg);
}
.credential::before {
  content: "";
  grid-row: span 2;
  width: 22px;
  height: 22px;
  background-color: var(--numeral-color);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5 4.5 5.5v6c0 4.6 3.1 8.6 7.5 10 4.4-1.4 7.5-5.4 7.5-10v-6L12 2.5Z'/%3E%3Cpath d='m8.5 12 2.4 2.4 4.6-4.8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5 4.5 5.5v6c0 4.6 3.1 8.6 7.5 10 4.4-1.4 7.5-5.4 7.5-10v-6L12 2.5Z'/%3E%3Cpath d='m8.5 12 2.4 2.4 4.6-4.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.credential__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--heading-color);
}
.credential__desc { font-size: 0.875rem; line-height: 1.35; color: var(--muted-color); }
/* Equal-width badges that fill the row: 4 across, 2 below 900px, 1 below 600px (use with 2 or 4 badges) */
.credentials--fill { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 899.98px) { .credentials--fill { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Small label above a badge row; .label-caps is the same label anywhere else */
.credentials-row { display: grid; gap: 20px; }
.credentials-row__label,
.label-caps {
  font-family: var(--font-heading);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--eyebrow-color);
}
@media (max-width: 599.98px) {
  .credentials, .credentials--fill { display: grid; grid-template-columns: minmax(0, 1fr); }
}

/* Proof band = stats + credentials row in one section */
.proof-band__foot { margin-top: clamp(48px, 5vw, 72px); padding-top: 32px; border-top: 1px solid var(--rule-color); }

/* --- Technology groups: group title + chip list --- */
.tech-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px var(--grid-gap);
}
.tech-group { min-width: 0; padding-top: 28px; border-top: 1px solid var(--rule-color); }
.tech-group__num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--numeral-color);
  font-variant-numeric: tabular-nums;
}
.tech-group__title { font-size: clamp(1.25rem, 1.15rem + 0.35vw, 1.5rem); }
.tech-group__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tech-group__list .chip { white-space: normal; }
@media (max-width: 1023.98px) { .tech-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599.98px) { .tech-groups { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* Chip with a leading number: <li class="chip"><span class="chip__num">01</span>Ingest</li> */
.chip__num { color: var(--numeral-color); font-weight: 600; font-variant-numeric: tabular-nums; }
.chip--on-dark .chip__num, .chip--on-image .chip__num { color: var(--accent-200); }

/* --- Product cards: name, kicker, description, verbs, link --- */
.product-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.product-cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(28px, 3vw, 44px);
  border-top: 3px solid var(--accent-500);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.product-card__kicker {
  font-family: var(--font-heading);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--eyebrow-color);
}
.product-card__name { margin-top: 12px; font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.25rem); }
.product-card__text { margin-top: 16px; color: var(--body-color); }
.product-card__verbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-top: 20px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--heading-color);
}
.product-card__verbs li:not(:last-child)::after { content: "\00B7"; margin: 0 10px; color: var(--accent-500); }
.product-card__meta { margin-top: 20px; }
.product-card__action { margin-top: auto; padding-top: 28px; }
/* Featured (dark) card, e.g. Meridian on /products */
.product-card--feature { background: var(--brand-900); box-shadow: none; }
.product-card--feature .product-card__text { color: var(--on-dark); }
@media (max-width: 1023.98px) { .product-cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  .product-cards, .product-cards--three { grid-template-columns: minmax(0, 1fr); }
}

/* --- Platform cards: capability center + compact stats + link --- */
.platform-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.platform-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(28px, 3.5vw, 48px);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.platform-card__title { margin-top: 12px; font-size: var(--fs-h3); }
.platform-card__text { margin-top: 14px; color: var(--muted-color); }
/* Stats sit at the bottom so they line up across cards in a row. */
.platform-card .proof { width: 100%; margin-top: auto; padding-top: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.platform-card__action { padding-top: 32px; }
@media (max-width: 899.98px) { .platform-cards { grid-template-columns: minmax(0, 1fr); } }

/* --- Phase timeline (delivery models): number, title, duration, text --- */
.timeline {
  --timeline-cols: 6;
  display: grid;
  grid-template-columns: repeat(var(--timeline-cols), minmax(0, 1fr));
  gap: 40px 24px;
}
.timeline--3 { --timeline-cols: 3; }
.timeline--4 { --timeline-cols: 4; }
.timeline--5 { --timeline-cols: 5; }
.timeline__item { position: relative; display: flex; flex-direction: column; min-width: 0; }
.timeline__item::before { /* connector to the next phase */
  content: "";
  position: absolute;
  top: 22px;
  left: 56px;
  right: -20px;
  height: 1px;
  background: var(--rule-strong);
}
.timeline__item:last-child::before { display: none; }
.timeline__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--numeral-color);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  color: var(--numeral-color);
  font-variant-numeric: tabular-nums;
}
.timeline__head { margin-top: 24px; }
.timeline__title { font-size: var(--fs-h4); line-height: 1.25; }
.timeline__meta {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--tile-tint);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--eyebrow-color);
}
.timeline__body { margin-top: 14px; }
.timeline__text { font-size: 1rem; line-height: 1.55; color: var(--muted-color); }
.timeline__list { display: grid; gap: 6px; font-size: 0.9375rem; line-height: 1.45; color: var(--muted-color); }
.timeline__text + .timeline__list { margin-top: 12px; }
.timeline__list li { position: relative; padding-left: 14px; }
.timeline__list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px; background: var(--accent-500); }
/* Row mode needs room: 5-6 phases go vertical below 1200px, 3-4 phases below 1024px. */
@media (max-width: 1199.98px) {
  .timeline:not(.timeline--3):not(.timeline--4) { --timeline-cols: 1; row-gap: 0; }
  .timeline:not(.timeline--3):not(.timeline--4) .timeline__item {
    display: grid;
    grid-template-columns: 44px minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 28px;
    align-items: start;
    padding-bottom: 36px;
  }
  .timeline:not(.timeline--3):not(.timeline--4) .timeline__item::before { top: 52px; bottom: 8px; left: 22px; right: auto; width: 1px; height: auto; }
  .timeline:not(.timeline--3):not(.timeline--4) .timeline__head,
  .timeline:not(.timeline--3):not(.timeline--4) .timeline__body { margin-top: 8px; }
}
@media (max-width: 1023.98px) {
  .timeline--3, .timeline--4 { --timeline-cols: 1; row-gap: 0; }
  .timeline--3 .timeline__item, .timeline--4 .timeline__item {
    display: grid;
    grid-template-columns: 44px minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 28px;
    align-items: start;
    padding-bottom: 36px;
  }
  .timeline--3 .timeline__item::before, .timeline--4 .timeline__item::before { top: 52px; bottom: 8px; left: 22px; right: auto; width: 1px; height: auto; }
  .timeline--3 .timeline__head, .timeline--4 .timeline__head,
  .timeline--3 .timeline__body, .timeline--4 .timeline__body { margin-top: 8px; }
}
@media (max-width: 767.98px) {
  .timeline:not(.timeline--3):not(.timeline--4) .timeline__item,
  .timeline--3 .timeline__item,
  .timeline--4 .timeline__item { grid-template-columns: 44px minmax(0, 1fr); column-gap: 20px; padding-bottom: 32px; }
  .timeline .timeline__num { grid-row: span 2; }
  .timeline:not(.timeline--3):not(.timeline--4) .timeline__body,
  .timeline--3 .timeline__body,
  .timeline--4 .timeline__body { grid-column: 2; margin-top: 12px; }
}

/* 28. Shared content patterns (v3.1) ====================================== */
/* Patterns that several page families needed. Context roles only, so each
   one also reads inside .band-dark / .on-dark. Markup: partials/components.md. */

/* --- Small uppercase label: .label-caps shares the .credentials-row__label
   rule in section 27. <p class="label-caps">Built with</p> (or an h3 heading a block) */

/* --- Labelled chip row: label above a .chip-group ---
   --rule: hairline above (inside split bodies, article bodies);
   --spaced: extra space when it follows a timeline or grid. */
.chip-row { display: grid; gap: 14px; width: 100%; }
.chip-row__label {
  font-family: var(--font-heading);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted-color);
}
.chip-row .chip { white-space: normal; }
.chip-row--rule { padding-top: 24px; border-top: 1px solid var(--rule-color); }
.chip-row--spaced { margin-top: clamp(40px, 5vw, 64px); }
.chip-row--spaced.chip-row--rule { padding-top: 28px; }

/* --- Two columns (blocks side by side, e.g. inside .proof-band__foot) ---
   7/5 with --wide-left; one column below 900px. */
.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(40px, 6vw, 96px);
  align-items: start;
}
.cols-2--wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.cols-2 > .credentials-row { justify-items: start; }
.cols-2__title { font-size: var(--fs-h4); line-height: 1.3; }
@media (max-width: 899.98px) {
  .cols-2, .cols-2--wide-left { grid-template-columns: minmax(0, 1fr); }
}

/* --- Check list in columns: 3, then 2 below 1024px, then 1 below 600px --- */
.list-check--cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px clamp(24px, 4vw, 56px);
  color: var(--body-color);
}
@media (max-width: 1023.98px) { .list-check--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599.98px) { .list-check--cols { grid-template-columns: minmax(0, 1fr); } }

/* --- Three principles, with an optional detail list under each --- */
.principles--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.principles__list {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-color);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--body-color);
}
@media (max-width: 1023.98px) { .principles--three { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* --- Case-card lists of 5 or 7 without orphan rows (use in .case-cards--three) ---
   A spanning card drops its 4:5 ratio and fills its cell: a ratio plus the
   card's 360px min-height would otherwise force a wide minimum width.
   7 cards: 3 columns, first and last span two; 2 columns, the first spans.
   5 cards: 3 then 2 wider cards; 2 columns, the first spans. */
@media (min-width: 600px) {
  .case-cards__list--seven > li:first-child { grid-column: span 2; }
  .case-cards__list--seven > li:first-child .case-card { aspect-ratio: auto; height: 100%; }
}
@media (min-width: 1024px) {
  .case-cards__list--seven > li:last-child { grid-column: span 2; }
  .case-cards__list--seven > li:last-child .case-card { aspect-ratio: auto; height: 100%; }
  .case-cards__list.case-cards__list--five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .case-cards__list--five > li { grid-column: span 2; }
  .case-cards__list--five > li:nth-child(n+4) { grid-column: span 3; }
  .case-cards__list--five > li:nth-child(n+4) .case-card { aspect-ratio: auto; min-height: 380px; height: 100%; }
}
@media (min-width: 600px) and (max-width: 1023.98px) {
  .case-cards__list--five > li:first-child { grid-column: span 2; }
  .case-cards__list--five > li:first-child .case-card { aspect-ratio: auto; min-height: 380px; height: 100%; }
}

/* --- Related links: quiet numbered links at the end of a page ---
   3 columns, 2 below 1024px, 1 below 600px; hairlines between rows.
   The --all cell (no numeral) links back to the hub. */
.related-links-title { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); }
.related-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 var(--grid-gap);
  border-top: 1px solid var(--rule-color);
}
.related-links__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px 16px;
  align-items: baseline;
  align-content: start;
  height: 100%;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule-color);
  color: var(--heading-color);
  text-decoration: none;
}
.related-links__num {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--numeral-color);
  font-variant-numeric: tabular-nums;
}
.related-links__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: 1.3;
}
.related-links__tag { grid-column: 2; font-size: var(--fs-small); color: var(--muted-color); }
.related-links__arrow {
  grid-row: 1;
  grid-column: 3;
  color: var(--accent-600);
  transition: transform var(--dur) var(--ease-out);
}
.related-links__link--all { grid-template-columns: minmax(0, 1fr) auto; }
.related-links__link--all .related-links__title { grid-column: 1; color: var(--link-color, var(--accent-600)); }
.related-links__link--all .related-links__arrow { grid-column: 2; }
.related-links__link--all .related-links__tag { grid-column: 1; }
.related-links__link:hover .related-links__title { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.related-links__link:hover .related-links__arrow { transform: translateX(4px); }
@media (max-width: 1023.98px) { .related-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599.98px) { .related-links { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .related-links__arrow { transition: none; } }

/* --- Cover focal point: portrait art used in a wide .article-cover --- */
.article-cover--top img { object-position: 50% 18%; }

/* --- Small screens: stacked verbs, 404 decor, tap targets --- */
@media (max-width: 599.98px) {
  .principles__title br { display: none; }
  .product-card__verbs { flex-direction: column; gap: 6px; }
  .product-card__verbs li:not(:last-child)::after { content: none; }
  .notfound-hero .decor-plus { display: none; }
}
@media (max-width: 767.98px) {
  .site-footer__links { gap: 0; }
  .site-footer__links a { display: block; padding-block: 11px; }
  .site-footer__legal a, .site-footer__cookie-btn { display: inline-flex; align-items: center; gap: 0.25em; min-height: 44px; }
  /* 44px hit area without moving the text: padding out, negative margin back. */
  .link-arrow { padding-block: 9px; margin-block: -9px; }
  .page-hero__back { padding-block: 9px; margin-top: -9px; margin-bottom: 23px; }
  .site-footer__address a { padding-block: 10px; margin-block: -10px; }
  /* CTA band link: invisible 45px hit area; the text and its underline stay put. */
  .cta-band__link { position: relative; }
  .cta-band__link::before { content: ""; position: absolute; inset: -7px 0; }
}
.site-footer__address a { justify-self: start; }
/* AI Coach stats on /products: 2 x 2 while the column is narrow. */
@media (min-width: 1024px) and (max-width: 1279.98px) { .page-products .pp-block .proof--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 25. Legacy helpers (admin) =============================================== */
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--canvas);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
}
.badge--accent { border-color: var(--accent-200); background: var(--accent-100); color: var(--brand-800); }
.badge--sf { border-color: var(--sf-100); background: var(--sf-50); color: var(--sf-700); }
.badge--java { border-color: var(--java-100); background: var(--java-50); color: var(--java-700); }
.badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9375rem; }
.table caption { padding: 16px 20px; text-align: left; font-weight: 600; color: var(--brand-800); }
.table th, .table td { padding: 14px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th {
  background: var(--canvas);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr:hover { background: #FAFBF8; }

/* 26. Motion, reveal, print ================================================ */
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Reveal: content is only hidden once main.js has added .reveal-ready */
.reveal-ready [data-reveal] {
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-ready [data-reveal]:not(.is-visible) { opacity: 0; transform: translate3d(0, 16px, 0); }
.reveal-ready [data-reveal="fade"]:not(.is-visible) { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-ready [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
  .hero-carousel.is-enhanced .hero-carousel__img { transform: none !important; }
  .case-card:hover .case-card__img { transform: none; }
}

@media print {
  .site-header, .nav-toggle, .hero-carousel__controls, .cta-band, .decor-plus, .consent { display: none !important; }
  body { background: #FFFFFF; }
  .hero-split, .hero-split__panel, .page-hero, .band-dark, .site-footer { background: #FFFFFF !important; color: #000000 !important; }
  .hero-split *, .page-hero *, .band-dark *, .site-footer * { color: #000000 !important; }
  /* The footer logo is the on-dark (light) version, which would print white on white. */
  .site-footer .brand { display: none !important; }
}
