/* ==========================================================================
   Clauzius Group — Design System
   Palette per Corporate Colour Guide. Type: Instrument Serif + Public Sans.
   ========================================================================== */

/* --- 1. Tokens ------------------------------------------------------------ */
:root {
  /* Brand */
  --ink:        #03193D;   /* Regal Navy     — headings, ink */
  --navy:       #073277;   /* Prussian Blue  — secondary navy, logomark */
  --teal-mid:   #128098;   /* Mid Teal       — group labels */
  --teal-deep:  #0E6376;   /* Derived        — accent text on tints (AA safe) */
  --accent:     #1AA1BF;   /* Turquoise Surf — rules, graphics, accent fills */
  --pale:       #A4DEEA;   /* Pale Teal      — light fields, on-navy secondary */
  --mist:       #EEF7F9;   /* Mist           — alternate section tint */
  --slate:      #5A6472;   /* Slate          — body copy */
  --white:      #FFFFFF;

  /* Surfaces */
  --surface:        var(--white);
  --surface-tint:   var(--mist);
  --surface-deep:   var(--ink);
  --line:           #DCE6EA;
  --line-strong:    #C3D6DD;
  --line-on-deep:   rgba(164, 222, 234, .24);

  /* Text roles */
  --text:           var(--slate);
  --text-strong:    var(--ink);
  --text-muted:     #667080;
  --text-on-deep:   var(--white);
  --text-on-deep-2: var(--pale);

  /* Type */
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.8125rem;
  --fs-base: 1rem;
  --fs-md:   1.0625rem;
  --fs-lg:   1.1875rem;
  --fs-xl:   clamp(1.375rem, 1.15rem + 0.95vw, 1.75rem);
  --fs-h3:   clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h2:   clamp(2rem, 1.35rem + 2.9vw, 3.5rem);
  --fs-h1:   clamp(2.75rem, 1.6rem + 5.1vw, 5.75rem);
  --fs-stat: clamp(2rem, 1.45rem + 2.3vw, 3rem);

  /* Space — 4/8 rhythm */
  --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: 4rem;     --space-9: 6rem;
  --space-10: 8rem;

  --section-y: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  --container: 1240px;
  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 2.5rem);

  /* Prose measure. Deliberately rem, not ch: the ch unit is the "0" glyph width,
     which is far wider than an average prose character, so Nch overshoots N
     characters badly. These land body copy at ~65-72 characters per line. */
  --measure:       34rem;  /* 17px body  */
  --measure-lead:  38rem;  /* 19px lead  */
  --measure-tight: 33rem;  /* 16px inside cards/accordions */

  /* Radius & elevation */
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(3,25,61,.05), 0 2px 8px rgba(3,25,61,.04);
  --shadow-2: 0 2px 4px rgba(3,25,61,.05), 0 12px 28px rgba(3,25,61,.08);
  --shadow-3: 0 4px 10px rgba(3,25,61,.07), 0 24px 56px rgba(3,25,61,.12);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
  --dur-slow: 520ms;

  /* Layers */
  --z-base: 0; --z-raised: 10; --z-sticky: 40; --z-header: 100; --z-overlay: 1000;

  /* Header. The tagline inside the logo is only 46 of the lockup's 424 units
     tall (10.9%), so logo height drives whether "Built to keep working" can be
     read at all: 38px gave ~4px and was illegible; 76px gives ~8.2px and reads
     comfortably. The clamp only bites below ~400px, where the full lockup plus
     the menu button would otherwise overflow the bar.
     Header height derives from the logo, and everything that has to clear a
     sticky header (scroll offsets, the mobile nav panel, sticky cards) reads
     --header-h, so the whole set stays in sync if the logo size changes. */
  --logo-h: clamp(56px, 19vw, 76px);
  --header-h: calc(var(--logo-h) + 1.5rem);
  --sticky-top: calc(var(--header-h) + 1rem);
}

/* --- 2. Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--sticky-top); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
ul, ol { list-style: none; padding: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.on-deep :focus-visible { outline-color: var(--pale); }
::selection { background: var(--pale); color: var(--ink); }

/* --- 3. Typography -------------------------------------------------------- */
h1, h2, h3, h4 { color: var(--text-strong); line-height: 1.1; text-wrap: balance; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.03;
}
h1.display { font-size: var(--fs-h1); }
h2.display { font-size: var(--fs-h2); line-height: 1.06; }
.display em { font-style: italic; color: var(--teal-mid); }
.on-deep .display em { color: var(--pale); }

h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
h4 { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.005em; line-height: 1.3; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .625rem;
  font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--teal-deep);
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 2px; flex: none;
  background: var(--accent); border-radius: 2px;
}
.on-deep .eyebrow { color: var(--pale); }

.lead { font-size: var(--fs-lg); line-height: 1.62; color: var(--text); max-width: var(--measure-lead); }
.framing { font-size: var(--fs-md); color: var(--text); max-width: var(--measure); }
.on-deep .lead, .on-deep .framing { color: var(--text-on-deep-2); }
.on-deep { color: var(--text-on-deep-2); }
.on-deep h1, .on-deep h2, .on-deep h3, .on-deep h4 { color: var(--text-on-deep); }

.prose { max-width: var(--measure); }
.prose p + p { margin-top: var(--space-4); }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* --- 4. Layout ------------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--surface-tint); }
.section--deep { background: var(--surface-deep); color: var(--text-on-deep-2); }

.section-head { max-width: 46rem; }
.section-head .eyebrow { margin-bottom: var(--space-4); }
.eyebrow + h2, .eyebrow + h1 { margin-top: var(--space-4); }
.section-head h2 { margin-bottom: var(--space-4); }

.skip-link {
  position: absolute; left: var(--gutter); top: var(--space-4);
  transform: translateY(-180%);
  z-index: var(--z-overlay);
  background: var(--ink); color: var(--white);
  padding: .75rem 1.25rem; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); color: var(--white); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- 5. Buttons & links --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8125rem 1.5rem;
  font-size: var(--fs-base); font-weight: 600; letter-spacing: -.005em;
  border-radius: var(--r-pill);
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  touch-action: manipulation;
}
.btn .ico { flex: none; transition: transform var(--dur-base) var(--ease-out); }

.btn--primary { background: var(--ink); color: var(--white); box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--navy); color: var(--white); box-shadow: var(--shadow-2); }
.btn--primary:hover .ico { transform: translateX(3px); }

.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--pale); color: var(--ink); }
.btn--accent:hover .ico { transform: translateX(3px); }

.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: var(--mist); color: var(--ink); }

.on-deep .btn--ghost { color: var(--white); border-color: var(--line-on-deep); }
.on-deep .btn--ghost:hover { background: rgba(255,255,255,.09); border-color: var(--pale); color: var(--white); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px;
  font-weight: 600; color: var(--teal-deep); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.link-arrow .ico { transition: transform var(--dur-base) var(--ease-out); }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover .ico { transform: translateX(4px); }
.on-deep .link-arrow { color: var(--pale); }
.on-deep .link-arrow:hover { color: var(--white); }
.link-arrow--back { flex-direction: row-reverse; }
.link-arrow--back:hover .ico { transform: translateX(-4px); }

.ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* --- 6. Header ------------------------------------------------------------ */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-1); background: rgba(255,255,255,.94); }

.header__inner {
  display: flex; align-items: center; gap: var(--space-5);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: none; margin-right: auto; min-height: 44px; }
.brand img, .brand svg { height: var(--logo-h); width: auto; }
.brand:hover { opacity: .82; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav__link {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: .5rem .875rem;
  font-size: var(--fs-base); font-weight: 500;
  color: var(--ink); text-decoration: none;
  border-radius: var(--r-pill);
  position: relative;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.nav__link:hover { color: var(--teal-deep); background: var(--mist); }
.nav__link[aria-current] { color: var(--teal-deep); font-weight: 600; }
.nav__link[aria-current]::after {
  content: ""; position: absolute; left: .875rem; right: .875rem; bottom: .375rem;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.header .btn { min-height: 44px; padding: .625rem 1.25rem; }

/* The nav carries its own CTA for the mobile panel. On desktop the CTA lives in
   .header__actions instead, so hide the in-nav copy or both render. */
@media (min-width: 1120px) { .nav > .btn { display: none; } .nav { flex-wrap: nowrap; } }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  border-radius: var(--r-pill); color: var(--ink);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.nav-toggle:hover { background: var(--mist); }
.nav-toggle .ico { width: 26px; height: 26px; }
.nav-toggle .ico--close { display: none; }
.nav-toggle[aria-expanded="true"] .ico--menu { display: none; }
.nav-toggle[aria-expanded="true"] .ico--close { display: block; }

@media (max-width: 1119px) {
  .nav-toggle { display: inline-flex; }
  .header__inner { gap: var(--space-3); }
  .header__actions { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: var(--space-4) var(--gutter) var(--space-6);
    box-shadow: var(--shadow-3);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur-base) var(--ease-out),
                transform var(--dur-base) var(--ease-out),
                visibility var(--dur-base);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__link { min-height: 52px; padding-inline: var(--space-4); font-size: var(--fs-lg); }
  .nav__link[aria-current]::after { left: var(--space-4); right: auto; width: 1.5rem; bottom: .625rem; }
  .nav .btn { margin-top: var(--space-3); width: 100%; min-height: 52px; }
}

/* --- 7. Hero -------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 1rem + 7vw, 6.5rem) 0; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 88% 12%, rgba(26,161,191,.12), transparent 62%),
    radial-gradient(720px 480px at 6% 0%, rgba(238,247,249,.9), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: var(--space-8); align-items: center;
}
.hero__copy { max-width: 34rem; }
.hero__copy .eyebrow { margin-bottom: var(--space-5); }
.hero h1 { margin-bottom: var(--space-5); }
.hero .lead { margin-bottom: var(--space-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.hero__art { position: relative; min-height: 420px; display: grid; place-items: center; }

/* Stats strip */
.stats {
  position: relative;
  margin-top: clamp(3rem, 1.5rem + 5vw, 5.5rem);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stats__item {
  display: flex; flex-direction: column-reverse; justify-content: flex-end;
  align-items: center; text-align: center;
  padding: var(--space-5) var(--space-4);
  border-right: 1px solid var(--line);
}
.stats__item:last-child { border-right: 0; }

/* Sans, not the display serif. Instrument Serif's digits are 0.39em wide in a
   1.30em box — roughly a third narrower than a normal serif while sitting
   taller, which reads as vertically stretched at stat size. That proportion is
   an asset in the big headlines and a liability in a row of figures. */
.stats__value {
  display: block;
  font-family: var(--font-sans); font-weight: 600;
  font-size: var(--fs-stat); line-height: 1.05; color: var(--ink);
  letter-spacing: -.02em; margin-bottom: var(--space-2);
}
.stats__label { font-size: var(--fs-sm); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }

/* Sector rail (replaces the reference logo strip) */
.rail { border-block: 1px solid var(--line); background: var(--mist); }
.rail__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6);
  padding-block: var(--space-5);
}
.rail__label { font-size: var(--fs-sm); font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--teal-deep); }
.rail__list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.rail__item {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-base); font-weight: 600; color: var(--ink);
}
.rail__item .ico { width: 1.15em; height: 1.15em; color: var(--teal-mid); }

/* --- 8. Brand geometry ---------------------------------------------------- */
.glyph { color: var(--navy); }
.glyph--hero { width: min(100%, 560px); height: auto; }
.glyph-mark { fill: currentColor; }

.field-hex { fill: none; stroke: currentColor; stroke-width: 1.25; opacity: .34; }

/* Colour utilities for inline brand geometry */
.glyph-navy   { color: var(--navy); }
.glyph-pale   { color: var(--pale); }

/* --- 9. About ------------------------------------------------------------- */
.about__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start;
}
.about__copy .eyebrow { margin-bottom: var(--space-4); }
.about__copy h2 { margin-bottom: var(--space-5); }

.card-leader {
  position: sticky; top: var(--sticky-top);
  background: var(--ink); color: var(--text-on-deep-2);
  border-radius: var(--r-xl); padding: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  box-shadow: var(--shadow-3); overflow: hidden; isolation: isolate;
}
.card-leader::before {
  content: ""; position: absolute; inset: auto -30% -45% auto;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,161,191,.34), transparent 66%);
  z-index: -1;
}
.card-leader__mark { width: 44px; height: auto; color: var(--accent); margin-bottom: var(--space-5); }
.card-leader h3 { margin-bottom: var(--space-1); }
.card-leader__title {
  font-size: var(--fs-base); font-weight: 600; color: var(--pale);
  margin-bottom: var(--space-5);
}
.card-leader__roles { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }
.card-leader__role {
  display: flex; gap: .75rem; font-size: var(--fs-base); line-height: 1.5;
  padding-left: .875rem; border-left: 2px solid var(--line-on-deep);
}
.card-leader__creds { display: flex; flex-wrap: wrap; gap: var(--space-2); padding-top: var(--space-5); border-top: 1px solid var(--line-on-deep); }
.chip {
  display: inline-flex; align-items: center;
  padding: .3125rem .75rem; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: .02em;
  background: rgba(164,222,234,.14); color: var(--pale);
  border: 1px solid var(--line-on-deep);
}

/* --- 10. Operating values (deep band) ------------------------------------- */
.values { position: relative; overflow: hidden; }
.values::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(760px 520px at 92% 8%, rgba(26,161,191,.20), transparent 60%),
    radial-gradient(620px 420px at 4% 96%, rgba(7,50,119,.55), transparent 62%);
  pointer-events: none;
}
.values > .container { position: relative; }
.values__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); align-items: end; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }

.values__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-on-deep); border: 1px solid var(--line-on-deep); border-radius: var(--r-lg); overflow: hidden; }
.value {
  background: var(--ink); padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  transition: background-color var(--dur-base) var(--ease-out);
}
.value:hover { background: #061F49; }
.value__index {
  display: block; font-size: var(--fs-sm); font-weight: 700; letter-spacing: .12em;
  color: var(--accent); margin-bottom: var(--space-4);
}
.value h3 { margin-bottom: var(--space-3); }
.value p { font-size: var(--fs-base); line-height: 1.6; color: var(--text-on-deep-2); }

/* --- 11. Services --------------------------------------------------------- */
.services__head { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.services__groups { display: grid; gap: clamp(2.5rem, 1.5rem + 3vw, 4rem); }

.svc-group { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.svc-group__intro { position: sticky; top: var(--sticky-top); }
.svc-group__label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-deep); margin-bottom: var(--space-4);
}
.svc-group h3 { font-size: var(--fs-xl); margin-bottom: var(--space-3); }
.svc-group__sub { font-size: var(--fs-base); color: var(--text); max-width: 24rem; }

.accordion { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__trigger {
  display: flex; align-items: flex-start; gap: var(--space-4);
  width: 100%; min-height: 64px; padding: var(--space-5) 0;
  text-align: left; color: var(--ink);
  transition: color var(--dur-fast) var(--ease-out);
  touch-action: manipulation;
}
.acc__trigger:hover { color: var(--teal-deep); }
.acc__num { font-size: var(--fs-sm); font-weight: 700; color: var(--teal-deep); padding-top: .35rem; min-width: 1.75rem; }
.acc__title { flex: 1; font-size: var(--fs-xl); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.acc__icon {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); display: grid; place-items: center;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.acc__icon .ico { width: 18px; height: 18px; }
.acc__trigger:hover .acc__icon { border-color: var(--accent); background: var(--mist); }
.acc__trigger[aria-expanded="true"] .acc__icon { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: rotate(45deg); }

.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-base) var(--ease-out); }
.acc-init .acc__panel { transition: none; }
.acc__panel[data-open="true"] { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; min-height: 0; }
.acc__body { padding: 0 var(--space-8) var(--space-6) 2.75rem; font-size: var(--fs-base); line-height: 1.65; max-width: var(--measure-tight); }

.services__record {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-4) var(--space-6); justify-content: space-between;
}
.services__record .framing { margin: 0; max-width: 38rem; }

/* --- 12. Sectors ---------------------------------------------------------- */
.sectors__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); margin-top: clamp(2rem, 1.2rem + 2.5vw, 3.5rem); }
.sector {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  display: flex; flex-direction: column; gap: var(--space-4);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.sector:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.sector__art { position: absolute; inset: auto -18% -22% auto; width: 190px; color: var(--pale); opacity: .5; z-index: -1; }
.sector__icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--mist); color: var(--teal-mid); border: 1px solid var(--line);
}
.sector__icon .ico { width: 24px; height: 24px; }
.sector p { font-size: var(--fs-base); }

/* --- 13. Capability statement --------------------------------------------- */
.cap { position: relative; overflow: hidden; }
.cap__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.cap__copy .eyebrow { margin-bottom: var(--space-4); }
.cap__copy h2 { margin-bottom: var(--space-4); }
.cap__copy .framing { margin-bottom: var(--space-5); }

.cap__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-bottom: var(--space-6); max-width: 34rem; }
.cap__fact { display: flex; gap: .75rem; align-items: flex-start; font-size: var(--fs-base); line-height: 1.5; }
.cap__fact .ico { color: var(--teal-mid); margin-top: .2rem; }
.cap__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.cap__meta { font-size: var(--fs-sm); color: var(--text-muted); }

/* Rendered cover — geometry only, no photography */
.cover-wrap { display: grid; place-items: center; perspective: 1400px; }
.cover {
  position: relative; width: min(100%, 384px); aspect-ratio: 3 / 4.1;
  background: linear-gradient(158deg, #073277 0%, #03193D 58%, #021128 100%);
  border-radius: 4px 14px 14px 4px;
  box-shadow: var(--shadow-3), inset 1px 0 0 rgba(164,222,234,.16);
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  display: flex; flex-direction: column;
  color: var(--pale); overflow: hidden; isolation: isolate;
  transform: rotate(-2.2deg);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
.cover:hover { transform: rotate(0deg) translateY(-6px); }
.cover::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px;
  background: linear-gradient(180deg, var(--accent), var(--teal-mid));
  z-index: 1;
}
.cover__art { position: absolute; inset: auto -22% -12% auto; width: 300px; color: var(--accent); opacity: .16; z-index: -1; }
.cover__mark { width: 40px; height: auto; color: var(--white); margin-bottom: auto; }
.cover__eyebrow { font-size: var(--fs-sm); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-3); }
.cover__title { font-family: var(--font-display); font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); line-height: 1.05; color: var(--white); margin-bottom: var(--space-4); }
.cover__rule { width: 56px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: var(--space-4); }
.cover__foot { font-size: var(--fs-sm); line-height: 1.5; color: var(--pale); }

/* --- 14. Insights --------------------------------------------------------- */
.insights__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-5); align-items: end; margin-bottom: clamp(2rem, 1.2rem + 2.5vw, 3.5rem); }
.insights__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }

/* --- Insights rail (homepage) -------------------------------------------
   Horizontal scroller, newest first so the latest publication sits leftmost.
   Cards are the same .insight component the grid uses; only the container
   differs. Every card contains links, so the region is reachable by Tab
   without adding a separate tab stop for the scroller itself. */
.insights__rail {
  display: flex; gap: var(--space-5);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline-start: 2px;
  padding: 2px 2px var(--space-4);   /* 2px keeps focus rings from clipping */
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.insights__rail > .insight {
  flex: 0 0 clamp(17rem, 78vw, 22rem);
  scroll-snap-align: start;
}
.insights__rail::-webkit-scrollbar { height: 8px; }
.insights__rail::-webkit-scrollbar-track { background: transparent; }
.insights__rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--r-pill); }
.insights__rail::-webkit-scrollbar-thumb:hover { background: var(--teal-mid); }

.rail-nav { display: flex; gap: var(--space-2); }
.rail-nav[hidden] { display: none; }
.rail-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--white);
  display: grid; place-items: center; color: var(--ink);
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
  touch-action: manipulation;
}
.rail-btn:hover:not(:disabled) { border-color: var(--accent); background: var(--mist); }
.rail-btn:disabled { opacity: .35; cursor: default; }
.rail-btn .ico { width: 20px; height: 20px; }

.insight {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; isolation: isolate;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.insight:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.insight__banner {
  position: relative; aspect-ratio: 16 / 8; overflow: hidden;
  background: linear-gradient(140deg, #073277, #03193D);
  display: grid; place-items: center; color: var(--accent);
}
.insight__banner svg { width: 62%; height: auto; opacity: .5; }
.insight__body { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.insight__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; font-size: var(--fs-sm); font-weight: 600; color: var(--teal-deep); letter-spacing: .04em; }
.insight__meta time { color: var(--text-muted); font-weight: 500; }
.insight__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.insight h2, .insight h3 { font-size: var(--fs-lg); line-height: 1.35; font-weight: 600; letter-spacing: -.01em; color: var(--text-strong); }
.insight h2 a, .insight h3 a { color: inherit; text-decoration: none; }
.insight h2 a:hover, .insight h3 a:hover { color: var(--teal-deep); text-decoration: underline; }
.insights__all { margin-top: var(--space-6); }
.insight p { font-size: var(--fs-base); }
.insight .link-arrow { margin-top: auto; }

/* --- 14b. Track record table ---------------------------------------------
   A real <table>: the data is genuinely tabular, and search engines extract
   comparison tables into snippets. On narrow screens it scrolls horizontally
   inside a focusable region rather than collapsing into cards, so the row
   relationships survive. */
.record__heading { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }

.table-scroll {
  overflow-x: auto; overscroll-behavior-x: contain;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  margin-top: var(--space-5);
}
.table-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.record { width: 100%; border-collapse: collapse; min-width: 46rem; }
.record caption {
  text-align: left; padding: var(--space-5) var(--space-5) 0;
  font-size: var(--fs-sm); color: var(--text-muted);
}
.record th, .record td {
  text-align: left; padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.record thead th {
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal-deep);
  border-bottom: 2px solid var(--accent); white-space: nowrap;
}
.record tbody th {
  font-size: var(--fs-base); font-weight: 700; color: var(--ink);
  line-height: 1.35; min-width: 11rem;
}
.record td { font-size: var(--fs-base); line-height: 1.55; }
.record tbody tr:last-child th, .record tbody tr:last-child td { border-bottom: 0; }
.record tbody tr:nth-child(even) th, .record tbody tr:nth-child(even) td { background: var(--mist); }
.record__loc { display: block; color: var(--text-muted); font-size: var(--fs-sm); margin-top: .15rem; }
.record__scale { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.record__scale span { display: block; font-weight: 400; color: var(--text-muted); font-size: var(--fs-sm); white-space: normal; }

.scroll-hint { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--space-3); }
@media (min-width: 900px) { .scroll-hint { display: none; } }

/* --- 15. Contact ---------------------------------------------------------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.contact__copy .eyebrow { margin-bottom: var(--space-4); }
.contact__copy h2 { margin-bottom: var(--space-4); }
.contact__copy .framing { margin-bottom: var(--space-6); }

.detail-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.detail {
  display: flex; align-items: flex-start; gap: var(--space-4);
  background: var(--white); padding: var(--space-5);
}
.detail__icon { width: 44px; height: 44px; flex: none; border-radius: var(--r-md); display: grid; place-items: center; background: var(--mist); color: var(--teal-mid); }
.detail__icon .ico { width: 21px; height: 21px; }
.detail__label { display: block; font-size: var(--fs-sm); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .25rem; }
.detail__value { font-size: var(--fs-lg); font-weight: 600; color: var(--ink); line-height: 1.4; overflow-wrap: anywhere; }
.detail__value a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.detail__value a:hover { color: var(--teal-deep); text-decoration: underline; }
.detail--action { min-height: 76px; }

/* --- 16. Footer ----------------------------------------------------------- */
.footer { background: var(--ink); color: var(--text-on-deep-2); padding-block: clamp(3rem, 2rem + 3vw, 5rem) var(--space-6); position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; inset: auto auto -40% -8%;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(7,50,119,.7), transparent 66%);
  pointer-events: none;
}
.footer > .container { position: relative; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(0, .85fr)); gap: var(--space-7) var(--space-6); padding-bottom: var(--space-7); border-bottom: 1px solid var(--line-on-deep); }
.footer__brand img, .footer__brand svg { height: 84px; width: auto; margin-bottom: var(--space-4); }
.footer__tagline { font-size: var(--fs-base); max-width: 20rem; margin-bottom: var(--space-5); }
/* Social links. A <ul> so more platforms can be added without restyling. */
.social { display: flex; gap: var(--space-2); margin-top: var(--space-5); }
.social__link {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-on-deep);
  color: var(--text-on-deep-2);
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  touch-action: manipulation;
}
.social__link:hover { background: rgba(255,255,255,.09); border-color: var(--pale); color: var(--white); }
.social__link .ico { width: 20px; height: 20px; }

.footer__col h3 { font-size: var(--fs-sm); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: var(--space-4); }
.footer__list { display: grid; gap: .125rem; }
.footer__list a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text-on-deep-2); text-decoration: none; font-size: var(--fs-base);
  transition: color var(--dur-fast) var(--ease-out);
  overflow-wrap: anywhere;
}
.footer__list a:hover { color: var(--white); text-decoration: underline; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: center; justify-content: space-between; padding-top: var(--space-5); font-size: var(--fs-base); }
.footer__legal { color: var(--text-on-deep-2); }

/* --- 17. Article page ----------------------------------------------------- */
.article { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.article__head { max-width: 46rem; margin-inline: auto; margin-bottom: clamp(2rem, 1.2rem + 2.5vw, 3rem); }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: var(--space-4); font-size: var(--fs-sm); font-weight: 600; letter-spacing: .04em; color: var(--teal-deep); }
.article__meta time { color: var(--text-muted); font-weight: 500; }
.article h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); }
.article__byline { font-size: var(--fs-base); color: var(--text); margin-top: var(--space-4); }
.article__byline span { font-weight: 600; color: var(--ink); }
.article__rule { width: 64px; height: 3px; background: var(--accent); border-radius: 2px; margin-top: var(--space-5); }
.article__body { max-width: 42rem; margin-inline: auto; font-size: var(--fs-lg); line-height: 1.72; }
.article__body p + p { margin-top: var(--space-5); }
.article__body sup a { font-weight: 600; text-decoration: none; padding-inline: .1em; }
.article__body sup a:hover { text-decoration: underline; }
/* Subheadings within a long-form article. Sans, not the display serif — the
   serif is reserved for the H1 so the hierarchy stays legible. */
.article__body h2 {
  font-family: var(--font-sans); font-size: var(--fs-lg); font-weight: 600;
  line-height: 1.3; letter-spacing: 0; color: var(--ink);
  margin-top: var(--space-7); margin-bottom: var(--space-4);
}
.article__body h2:first-child { margin-top: 0; }
.article__body h2 + p { margin-top: 0; }

/* Charts and tables inside an article break the prose measure deliberately —
   they need more width than 42rem to stay legible. */
.article-figure { margin: var(--space-6) 0; }
.article-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.article-figure figcaption { margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.5; }
.article__body .table-scroll { margin: var(--space-6) 0; }
.article__body .record { font-size: var(--fs-sm); }
.article__body .record th, .article__body .record td { line-height: 1.5; }

/* Callout — definitions and asides set apart from the argument. Stays within
   the prose measure, unlike figures and tables, because it is still reading. */
.callout {
  margin: var(--space-6) 0;
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-6);
  background: var(--mist);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  font-size: var(--fs-base);
  line-height: 1.65;
}
.callout__title {
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep);
  margin-bottom: var(--space-4);
}
.callout p + p { margin-top: var(--space-4); }
.callout b { font-weight: 600; color: var(--ink); }

/* Source note under a table or chart — same weight as a figcaption, so the
   two read as one family of apparatus rather than two. */
.article__body p.article-note {
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: var(--space-3);
}
.article__body .table-scroll + p.article-note,
.article__body .article-figure + p.article-note { margin-top: calc(var(--space-3) - var(--space-6)); }
@media (min-width: 900px) {
  .article-figure, .article__body .table-scroll { width: calc(100% + 8rem); margin-inline: -4rem; }
}

.footnotes { max-width: 46rem; margin-inline: auto; margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.footnotes h2 { font-size: var(--fs-lg); font-weight: 600; font-family: var(--font-sans); letter-spacing: 0; margin-bottom: var(--space-5); }
.footnotes ol { display: grid; gap: var(--space-4); counter-reset: fn; }
.footnotes li { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: var(--space-3); font-size: var(--fs-base); line-height: 1.6; }
.footnotes li::before { content: counter(fn); counter-increment: fn; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.footnotes a { overflow-wrap: anywhere; }
.footnotes cite { font-style: italic; }

.article-nav { border-bottom: 1px solid var(--line); }
.article-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--header-h); }

/* --- 18. Motion ----------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal] { transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: none; }
html:not(.js) [data-reveal],
.reveal-all [data-reveal] { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .cover { transform: none; }
}

/* --- 19. Responsive ------------------------------------------------------- */
@media (max-width: 1023px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .hero__copy { max-width: 26rem; }
  .hero__art { min-height: 0; order: -1; }
  .glyph--hero { width: min(78%, 380px); }
  .values__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__grid,
  .cap__grid,
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .card-leader, .svc-group__intro { position: static; }
  .svc-group { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .sectors__grid, .insights__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cover-wrap { justify-items: start; }
}

@media (max-width: 767px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; }
  .stats__item { border-bottom: 1px solid var(--line); }
  .stats__item:nth-child(2n) { border-right: 0; }
  .stats__item:nth-last-child(-n+2) { border-bottom: 0; }
  .values__grid, .sectors__grid, .insights__grid { grid-template-columns: minmax(0, 1fr); }
  .cap__facts { grid-template-columns: minmax(0, 1fr); }
  .insights__head { grid-template-columns: minmax(0, 1fr); }
  .acc__body { padding-right: 0; padding-left: 2.75rem; }
  .acc__title { font-size: var(--fs-lg); }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .detail { padding: var(--space-4); }
}

@media (max-width: 420px) {
  .hero__actions .btn { width: 100%; }
  .acc__body { padding-left: 0; }
  .acc__trigger { gap: var(--space-3); }
}

@media print {
  .header, .footer, .nav-toggle, .rail, [data-reveal] { transition: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .header { position: static; }
}

