
/* Figtree, latin subset, embedded so the page needs no network (Fontsource 5.3.0, OFL) */
@font-face{font-family:'Figtree';font-style:normal;font-weight:400;font-display:swap;src:url("fonts/figtree-8f98dd642986.woff2") format('woff2');}
@font-face{font-family:'Figtree';font-style:normal;font-weight:500;font-display:swap;src:url("fonts/figtree-953a6a4294b1.woff2") format('woff2');}
@font-face{font-family:'Figtree';font-style:normal;font-weight:600;font-display:swap;src:url("fonts/figtree-367d71328791.woff2") format('woff2');}
@font-face{font-family:'Figtree';font-style:normal;font-weight:700;font-display:swap;src:url("fonts/figtree-7ec4f08d09f9.woff2") format('woff2');}

/* ==========================================================================
   Satisco — Design system
   Built from 02_MARKETING_COMMUNICATION/brand-identity.md (Charte v1.0, août 2026)
   Rules: le marine parle, le bleu agit, l'ambre souligne · aucun angle vif ·
          l'espace sépare les sections, pas les traits · famille unique Figtree
   ========================================================================== */

@layer reset, base, theme, layout, components, utilities;

/* ---------------------------------------------------------------- tokens */
@layer theme {
  :root {
    /* Tier 1 — literal brand values (brand-identity.md §2) */
    --color-navy:   #141F45;
    --color-blue:   #2450A4;
    --color-amber:  #F8A911;
    --color-muted:  #5A6478;
    --color-brand:  #2F2D72; /* logotype only — never UI */
    --color-bg:     #F3F6FB;
    --color-surface:#FFFFFF;
    --color-surface-alt:#E9EEF8;
    --color-success:#12775C;
    --color-warning:#A75A0F;
    --color-danger: #A6273B;

    /* navy tonal steps, used instead of color-mix where a step exists */
    --navy-700: #1c2a56;
    --navy-600: #24346a;
    --blue-100: #dfe8f7;
    --blue-200: #c3d4f0;
    --amber-100:#fdefd2;

    /* Tier 2 — semantic */
    --ink:            var(--color-navy);
    --ink-secondary:  var(--color-muted);
    --ink-on-dark:    #ffffff;
    --ink-on-dark-2:  color-mix(in oklab, #ffffff 74%, var(--color-navy));
    --action:         var(--color-blue);
    --action-ink:     var(--color-blue); /* blue text/borders; lightens on navy */
    --accent:         var(--color-amber);
    --surface:        var(--color-surface);
    --surface-alt:    var(--color-surface-alt);
    --page:           var(--color-bg);
    --hairline:       color-mix(in oklab, var(--color-navy) 10%, transparent);
    --hairline-on-dark: color-mix(in oklab, #ffffff 16%, transparent);

    /* Typography — single family, four weights (§3) */
    --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    --w-body:400; --w-label:500; --w-title:600; --w-figure:700;

    /* Fluid type, anchored on the charter's screen sizes */
    --t-h1: clamp(2.25rem, 1.35rem + 2.6vw, 3.25rem);   /*  36 → 52 */
    --t-h2: clamp(1.75rem, 1.25rem + 1.5vw, 2.375rem);  /*  28 → 38 */
    --t-h3: clamp(1.375rem, 1.1rem + .8vw, 1.6875rem);  /*  22 → 27 */
    --t-h4: 1.3125rem;                                   /*  21 */
    --t-h5: 1.0625rem;                                   /*  17 */
    --t-lead: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); /*  17 → 19 */
    --t-body: 1rem;
    --t-small:.9375rem;
    --t-kicker:.75rem;

    /* Space — 4px scale (§4) */
    --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:24px;
    --s-6:32px; --s-7:48px; --s-8:64px; --s-9:96px;

    /* Radius (§4) — no sharp angles anywhere */
    --r-sm:8px; --r-md:12px; --r-lg:20px; --r-xl:28px; --r-pill:999px;

    /* Shadows — navy tinted, never black (§4) */
    --sh-sm: 0 1px 2px rgba(20,31,69,.06), 0 2px 8px rgba(20,31,69,.05);
    --sh-md: 0 8px 20px rgba(20,31,69,.10), 0 2px 6px rgba(20,31,69,.06);
    --sh-lg: 0 24px 56px rgba(20,31,69,.16);

    --measure: 68ch;
    --page-max: 1240px;
  }

  /* Navy surfaces flip the semantic ink tokens instead of duplicating rules */
  .on-navy {
    --ink: var(--ink-on-dark);
    --ink-secondary: var(--ink-on-dark-2);
    --surface: color-mix(in oklab, #ffffff 7%, var(--color-navy));
    --hairline: var(--hairline-on-dark);
    background: var(--color-navy);
    color: var(--ink-on-dark);
  }
  /* Dark surfaces: blue text and borders step up the tonal range so they stay
     readable on navy. Fills keep --action. */
  :where(.on-navy, .hero, .page-head, .cta, .panel-navy, .site-footer) {
    --action-ink: var(--blue-200);
  }
  .on-alt { background: var(--surface-alt); }
  .on-page { background: var(--page); }
}

/* ----------------------------------------------------------------- reset */
@layer reset {
  html { box-sizing: border-box; }
  :where(*, *::before, *::after) { box-sizing: inherit; }
  :where(body, h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
  :where(ul[role="list"], ol[role="list"], .plain) { list-style: none; padding: 0; }
  :where(img, svg, picture) { max-inline-size: 100%; display: block; }
  :where(button, input, select, textarea) { font: inherit; color: inherit; }
  :where(a) { color: inherit; text-decoration: none; }
}

/* ------------------------------------------------------------------ base */
@layer base {
  html {
    scroll-behavior: smooth;
    scroll-padding-block-start: 96px;
    accent-color: var(--action);
    -webkit-text-size-adjust: 100%;
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    font-family: var(--font);
    font-size: var(--t-body);
    font-weight: var(--w-body);
    line-height: 1.6;
    color: var(--ink);
    background: var(--page);
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: tabular-nums lining-nums;
  }

  h1, h2, h3, h4, h5 {
    font-weight: var(--w-title);
    line-height: 1.14;
    color: var(--ink);
    text-wrap: balance;
  }
  h1 { font-size: var(--t-h1); letter-spacing: -.03em; }
  h2 { font-size: var(--t-h2); letter-spacing: -.02em; }
  h3 { font-size: var(--t-h3); letter-spacing: -.02em; }
  h4 { font-size: var(--t-h4); letter-spacing: -.02em; }
  h5 { font-size: var(--t-h5); letter-spacing: -.02em; }

  p { text-wrap: pretty; max-inline-size: var(--measure); }
  p + p { margin-block-start: var(--s-4); }

  strong, b { font-weight: var(--w-title); }
  /* charter: rien en italique */
  em, i, cite, address { font-style: normal; }

  :focus-visible {
    outline: 2px solid var(--action);
    outline-offset: 2px;
    border-radius: var(--r-sm);
  }
  .on-navy :focus-visible { outline-color: #fff; }

  ::selection { background: var(--blue-200); color: var(--color-navy); }

  @media (forced-colors: active) {
    .card, .panel, .tile { border: 1px solid CanvasText; }
  }
}

/* ---------------------------------------------------------------- layout */
@layer layout {
  .wrap { max-inline-size: var(--page-max); margin-inline: auto; padding-inline: var(--s-5); }
  @media (width >= 48rem) { .wrap { padding-inline: var(--s-6); } }

  .section { padding-block: clamp(var(--s-7), 6vw, var(--s-9)); }
  .section-sm { padding-block: clamp(var(--s-6), 4vw, var(--s-7)); }

  .stack { display: grid; gap: var(--s-5); }
  .stack-lg { display: grid; gap: var(--s-6); }
  .head { display: grid; gap: var(--s-4); max-inline-size: 62ch; margin-block-end: var(--s-7); }
  .head-2 { display: grid; gap: var(--s-4) var(--s-7); margin-block-end: var(--s-7); max-inline-size: none; }
  @media (width >= 62rem) {
    .head-2 { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: end; }
    .head-2 > .kicker { grid-column: 1; }
    .head-2 > h2 { grid-column: 1; }
    .head-2 > .lead { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
  }

  .grid { display: grid; gap: var(--s-5); }
  .g-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
  .g-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
  .g-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
  /* the four sector cards hold one row on a wide screen, then fold to two */
  .sectors { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
  @media (width >= 68rem) { .sectors { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  /* the technical panel sits on the card floor, so the four align across the row */
  .sectors .card { grid-template-rows: auto 1fr auto; align-content: stretch; }

  .split { display: grid; gap: var(--s-7); align-items: start; }
  .split > *, .stack > *, .stack-lg > * { min-inline-size: 0; }
  /* Dutch and Luxembourgish compounds are long: let headings break rather
     than push the page sideways on a phone. */
  h1, h2, h3, h4, .tile b, .case-figure b { overflow-wrap: break-word; hyphens: auto; }
  /* a long address or email must not set the column's minimum width */
  .panel .link, .panel-navy .link, .person a { overflow-wrap: anywhere; }
  @media (width >= 62rem) { .split { grid-template-columns: minmax(0,1.4fr) minmax(0,.6fr); } }
  .split-even { display: grid; gap: var(--s-6); align-items: start; }
  @media (width >= 56rem) { .split-even { grid-template-columns: 1fr 1fr; } }
}

/* ------------------------------------------------------------ components */
@layer components {

  /* ---- logotype (§8): live text in Figtree 500, never an image ---- */
  .logo {
    display: inline-flex; align-items: baseline; gap: 0;
    font-weight: var(--w-label); letter-spacing: -.045em;
    font-size: 1.5rem; line-height: 1; color: var(--color-brand);
    padding-inline: .12em; /* clear space ≈ 1 "s" height handled by parent gap */
  }
  .logo .dotless { position: relative; }
  .logo .dotless::after {
    content: ""; position: absolute; inset-block-start: .05em; inset-inline-start: 50%;
    translate: -50% 0; inline-size: .17em; aspect-ratio: 1;
    border-radius: 50%; background: var(--accent);
  }
  .logo .amber { color: var(--accent); }
  /* final "o" as an open amber ring: a 302deg arc, so it reads as an o, not a c */
  .logo .ring {
    inline-size: .58em; aspect-ratio: 1; align-self: baseline;
    margin-inline-start: .035em; border-radius: 50%;
    background: conic-gradient(from 24deg, var(--accent) 0 302deg, transparent 302deg 360deg);
    mask: radial-gradient(closest-side, transparent 0 60%, #000 63% 100%);
    -webkit-mask: radial-gradient(closest-side, transparent 0 60%, #000 63% 100%);
  }
  @supports not (mask: radial-gradient(closest-side, #000, #000)) {
    .logo .ring { background: none; border: .135em solid var(--accent);
                  border-inline-end-color: transparent; rotate: -42deg; }
  }
  .on-navy .logo, .logo-inverse { color: var(--ink-on-dark); }

  .logo-lockup { display: grid; gap: 2px; }
  .powered {
    font-size: .8125rem; font-weight: var(--w-body); color: var(--ink-secondary);
    letter-spacing: .01em; white-space: nowrap;
  }
  .powered b { color: var(--color-brand); font-weight: var(--w-title); }
  .on-navy .powered { color: var(--ink-on-dark-2); }
  .on-navy .powered b { color: var(--ink-on-dark); }

  /* ---- header ---- */
  .site-header {
    position: sticky; inset-block-start: 0; z-index: 80;
    background: color-mix(in oklab, var(--color-surface) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    box-shadow: var(--sh-sm);
  }
  @supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--color-surface); } }

  .hdr { display: flex; align-items: center; gap: var(--s-4); min-block-size: 76px; }
  .hdr .brand { flex: none; }
  .hdr .logo { font-size: 1.3125rem; }
  .hdr .powered { font-size: .75rem; }
  @media (width < 90rem) { .hdr .powered { font-size: .6875rem; } }
  /* hidden only in the band where the full menu competes for the room;
     below that the menu is a drawer and the signature fits again */
  /* In the band where seven menu items compete with the signature for the room,
     tighten the menu rather than drop the Alan Allman line: it belongs on every
     page next to the logotype. */
  @media (70rem <= width < 82rem) {
    .hdr .powered { font-size: .625rem; }
    .hdr .nav .top { padding-inline: 5px; font-size: .9125rem; }
    .hdr { gap: var(--s-3); }
    .hdr .btn { padding-inline: var(--s-3); font-size: .8125rem; }
  }
  @media (width < 30rem) { .hdr .powered { font-size: .625rem; } }
  /* 320px phones: the logotype, the language button and the burger have to
     share 272px of content width. */
  @media (width < 23rem) {
    .hdr { gap: var(--s-2); }
    .hdr .lang-btn { padding-inline: 8px; gap: 5px; }
    .hdr .powered { font-size: .5625rem; }
  }
  .hdr .btn { min-block-size: 42px; padding-inline: var(--s-4); font-size: .875rem; white-space: nowrap; }
  .hdr .lang-btn { min-block-size: 42px; }
  .hdr-spacer { margin-inline-start: auto; }
  .hdr-actions { display: flex; align-items: center; gap: var(--s-2); margin-inline-start: auto; }
  @media (width < 70rem) { .hdr .hdr-cta { display: none; } }

  .nav { display: none; align-items: center; gap: 0; }
  @media (width >= 70rem) { .nav { display: flex; } }
  .nav > li { list-style: none; position: relative; }
  .nav .top {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    min-block-size: 44px; padding-inline: 10px;
    border-radius: var(--r-pill); font-weight: var(--w-label);
    font-size: .9375rem; color: var(--ink);
  }
  .nav .top:hover:not([aria-current]) { background: var(--surface-alt); }
  /* charter: amber marks the current page in navigation — one of its 3 allowed uses */
  .nav .top[aria-current] { color: var(--color-navy); box-shadow: inset 0 -3px 0 var(--accent); }
  .nav li:has(> .mega) > .top::after {
    content: ""; inline-size: 6px; aspect-ratio: 1;
    border-inline-end: 1.75px solid currentColor; border-block-end: 1.75px solid currentColor;
    rotate: 45deg; translate: 0 -2px; opacity: .55;
  }

  .mega {
    position: absolute; inset-block-start: calc(100% + 6px); inset-inline-start: 50%;
    translate: -50% 0; min-inline-size: 46rem;
    background: var(--color-surface); border-radius: var(--r-xl);
    box-shadow: var(--sh-md); padding: var(--s-5);
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5);
    opacity: 0; visibility: hidden; translate: -50% 6px;
    transition: opacity .16s ease, translate .16s ease, visibility .16s;
  }
  .nav li:hover > .mega, .nav li:focus-within > .mega { opacity: 1; visibility: visible; translate: -50% 0; }
  .mega-col { display: grid; gap: var(--s-2); align-content: start; }
  .mega-col .col-head {
    font-size: var(--t-kicker); font-weight: var(--w-title);
    letter-spacing: .13em; text-transform: uppercase; color: var(--action-ink);
  }
  .mega-col ul { display: grid; gap: 2px; list-style: none; padding: 0; margin: 0; }
  .mega-col a.item {
    display: block; padding: 10px var(--s-3); border-radius: var(--r-md);
    font-size: .9375rem; font-weight: var(--w-label); color: var(--ink);
  }
  .mega-col a.item:hover { background: var(--surface-alt); }
  .mega-col a.item span { display: block; font-weight: var(--w-body); font-size: .8125rem; color: var(--ink-secondary); margin-block-start: 2px; }
  .mega-note {
    grid-column: 1 / -1; background: var(--surface-alt); border-radius: var(--r-lg);
    padding: var(--s-4); font-size: var(--t-small); color: var(--ink-secondary);
  }
  .mega-note a { color: var(--action); font-weight: var(--w-label); }

  /* ---- language switcher (anchor-positioned popover with fallback) ---- */
  .lang { position: relative; }
  .lang-btn {
    display: inline-flex; align-items: center; gap: 8px;
    min-block-size: 44px; padding-inline: var(--s-3);
    border: 1px solid var(--hairline); border-radius: var(--r-pill);
    background: transparent; cursor: pointer;
    font-size: .875rem; font-weight: var(--w-label); color: var(--ink);
  }
  .lang-btn:hover { background: var(--surface-alt); }
  .lang-btn .globe { inline-size: 18px; aspect-ratio: 1; flex: none; }
  .lang-menu {
    position: absolute; inset-block-start: calc(100% + 6px); inset-inline-end: 0;
    min-inline-size: 13rem; background: var(--color-surface);
    border-radius: var(--r-lg); box-shadow: var(--sh-md);
    padding: var(--s-2); display: grid; gap: 2px; list-style: none; margin: 0;
    opacity: 0; visibility: hidden; translate: 0 6px;
    transition: opacity .14s ease, translate .14s ease, visibility .14s;
  }
  .lang:hover .lang-menu, .lang:focus-within .lang-menu { opacity: 1; visibility: visible; translate: 0 0; }
  .lang-menu a {
    display: flex; justify-content: space-between; gap: var(--s-3);
    padding: 10px var(--s-3); border-radius: var(--r-md);
    font-size: .9375rem; font-weight: var(--w-label);
  }
  .lang-menu a:hover { background: var(--surface-alt); }
  .lang-menu a[aria-current] { color: var(--action); }
  .lang-menu a small { color: var(--ink-secondary); font-weight: var(--w-body); }

  /* ---- mobile drawer, CSS-only via :has() on a hidden checkbox ---- */
  .drawer-toggle { position: absolute; opacity: 0; pointer-events: none; }
  .burger {
    display: inline-grid; place-items: center; align-content: center; gap: 4px;
    block-size: 44px; inline-size: 44px; padding: 0;
    border: 1px solid var(--hairline); border-radius: var(--r-pill);
    background: transparent; cursor: pointer; flex: none;
  }
  body:has(.drawer-toggle:checked) .burger { background: var(--surface-alt); }
  @media (width >= 70rem) { .burger { display: none; } }
  .burger span { display: block; inline-size: 18px; block-size: 1.75px; background: currentColor; border-radius: 2px; }
  .drawer {
    display: grid; gap: var(--s-2); padding: var(--s-4) var(--s-5) var(--s-6);
    background: var(--color-surface); box-shadow: var(--sh-md);
    max-block-size: 0; overflow: hidden; visibility: hidden;
    transition: max-block-size .28s ease, visibility .28s;
  }
  body:has(.drawer-toggle:checked) .drawer { max-block-size: 78svh; overflow: auto; visibility: visible; }
  @media (width >= 70rem) { .drawer { display: none; } }
  .drawer .d-head {
    font-size: var(--t-kicker); font-weight: var(--w-title); letter-spacing: .13em;
    text-transform: uppercase; color: var(--action); margin-block-start: var(--s-3);
  }
  .drawer a { display: block; padding: 11px var(--s-3); border-radius: var(--r-md); font-weight: var(--w-label); }
  .drawer a:hover { background: var(--surface-alt); }

  /* ---- buttons: pill, one blue primary per view (§9) ---- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    min-block-size: 48px; padding-inline: var(--s-5);
    border: 1.75px solid transparent; border-radius: var(--r-pill);
    font-weight: var(--w-title); font-size: .9375rem; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  }
  .btn-primary { background: var(--action); color: #fff; }
  .btn-primary:hover:not(:disabled) { background: var(--navy-600); }
  .btn-secondary { border-color: var(--action-ink); color: var(--action-ink); background: transparent; }
  .btn-secondary:hover:not(:disabled) { background: var(--blue-100); color: var(--color-navy); }
  :where(.on-navy, .hero, .page-head, .cta, .panel-navy) .btn-secondary {
    border-color: color-mix(in oklab, var(--blue-200) 62%, transparent); color: var(--blue-200); }
  :where(.on-navy, .hero, .page-head, .cta, .panel-navy) .btn-secondary:hover:not(:disabled) {
    background: color-mix(in oklab, #fff 14%, transparent); border-color: var(--blue-200); color: #fff; }
  .btn-quiet { color: var(--action); background: var(--surface-alt); }
  .btn-quiet:hover { background: var(--blue-100); }
  .btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

  .link {
    color: var(--action-ink); font-weight: var(--w-label);
    display: inline-flex; align-items: center; gap: 6px;
  }
  .link::after { content: "→"; transition: translate .15s ease; }
  .link:hover::after { translate: 3px 0; }
  .on-navy .link { color: var(--action-ink); }

  /* ---- kicker ---- */
  .kicker {
    font-size: var(--t-kicker); font-weight: var(--w-title);
    letter-spacing: .13em; text-transform: uppercase; color: var(--action-ink);
  }
  .on-navy .kicker { color: var(--action-ink); }
  .lead { font-size: var(--t-lead); line-height: 1.55; color: var(--ink-secondary); max-inline-size: var(--measure); }
  .on-navy .lead { color: var(--ink-on-dark-2); }
  .small { font-size: var(--t-small); color: var(--ink-secondary); }
  .mark { background: var(--amber-100); border-radius: var(--r-sm); padding: .05em .3em; color: var(--color-navy); }

  /* ---- cards ---- */
  .card {
    container-type: inline-size;
    background: var(--surface); border-radius: var(--r-lg);
    padding: var(--s-5); box-shadow: var(--sh-sm);
    display: grid; gap: var(--s-3); align-content: start;
  }
  .on-navy .card { box-shadow: none; }
  a.card { transition: box-shadow .18s ease, translate .18s ease; }
  a.card:hover { box-shadow: var(--sh-md); translate: 0 -2px; }
  .card > h3 { font-size: var(--t-h4); }
  .card .small, .card p { color: var(--ink-secondary); }
  @container (width >= 26rem) { .card { padding: var(--s-6); } }

  .panel {
    background: var(--surface-alt); border-radius: var(--r-lg);
    padding: var(--s-5); display: grid; gap: var(--s-3);
  }
  .panel-navy {
    background: var(--color-navy); color: #fff; border-radius: var(--r-lg);
    padding: var(--s-5); display: grid; gap: var(--s-3);
    --ink: #fff; --ink-secondary: var(--ink-on-dark-2);
  }
  .panel-navy h4, .panel-navy h3 { color: #fff; }
  .panel-navy p { color: var(--ink-on-dark-2); }

  .panel h4, .panel-navy h4, .card h4 {
    font-size: var(--t-kicker); font-weight: var(--w-title);
    letter-spacing: .13em; text-transform: uppercase; color: var(--action-ink);
  }
  .panel-navy h4 { color: var(--blue-200); }
  .panel ul, .panel-navy ul, .card ul.plain { display: grid; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
  .panel li, .panel-navy li { font-size: var(--t-small); color: var(--ink-secondary); }
  .panel-navy li { color: var(--ink-on-dark-2); }

  /* ---- hero ---- */
  .hero {
    background:
      radial-gradient(90rem 40rem at 82% -20%, color-mix(in oklab, var(--color-blue) 34%, transparent), transparent 62%),
      linear-gradient(168deg, #141F45, #1b2b5c 58%, #141F45);
    color: #fff; padding-block: clamp(var(--s-7), 7vw, var(--s-9));
    --ink: #fff; --ink-secondary: var(--ink-on-dark-2); --hairline: var(--hairline-on-dark);
    border-end-start-radius: var(--r-xl); border-end-end-radius: var(--r-xl);
  }
  .hero h1 { color: #fff; }
  .hero-grid { display: grid; gap: var(--s-7); align-items: start; }
  @media (width >= 62rem) { .hero-grid { grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); } }
  .hero-facets { display: grid; gap: var(--s-4); }
  .facet {
    background: color-mix(in oklab, #fff 8%, transparent);
    border-radius: var(--r-lg); padding: var(--s-4) var(--s-5);
  }
  .facet dt { font-size: var(--t-kicker); font-weight: var(--w-title); letter-spacing: .13em;
              text-transform: uppercase; color: var(--blue-200); }
  .facet dd { margin: 6px 0 0; font-size: var(--t-small); color: var(--ink-on-dark-2); }

  .kpis { display: grid; gap: var(--s-4); margin-block-start: var(--s-7);
          grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); }
  .kpi { background: color-mix(in oklab, #fff 8%, transparent); border-radius: var(--r-lg); padding: var(--s-4); }
  .kpi b { display: block; font-size: 1.875rem; font-weight: var(--w-figure); line-height: 1;
           color: #fff; }
  .kpi span { display: block; margin-block-start: 6px; font-size: .8125rem; color: var(--ink-on-dark-2); }

  /* ---- page head ---- */
  .page-head {
    background: linear-gradient(168deg, #141F45, #1e2f61);
    color: #fff; padding-block: clamp(var(--s-7), 5vw, var(--s-8));
    --ink: #fff; --ink-secondary: var(--ink-on-dark-2);
    border-end-start-radius: var(--r-xl); border-end-end-radius: var(--r-xl);
  }
  .page-head h1 { color: #fff; }
  .crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--t-small); color: var(--ink-on-dark-2); }
  .crumb a { color: var(--blue-200); }
  .promise {
    background: color-mix(in oklab, #fff 9%, transparent);
    border-radius: var(--r-lg); padding: var(--s-4) var(--s-5);
    font-size: var(--t-lead); line-height: 1.55; color: #fff; max-inline-size: 60ch;
  }

  /* ---- pillar cards ---- */
  .pillar { background: var(--color-surface); border-radius: var(--r-xl); padding: var(--s-6);
            box-shadow: var(--sh-sm); display: grid; gap: var(--s-4); align-content: start; }
  .pillar .pname { font-size: var(--t-h3); font-weight: var(--w-title); color: var(--color-navy); letter-spacing: -.02em; }
  .pillar .pverb { font-size: var(--t-kicker); font-weight: var(--w-title); letter-spacing: .13em;
                   text-transform: uppercase; color: var(--action); margin-block-start: 4px; }
  .pillar p { color: var(--color-muted); font-size: var(--t-small); }
  .pillar ul { display: grid; gap: 4px; list-style: none; padding: 0; margin: 0; }
  .pillar ul a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
                 padding: 12px var(--s-4); border-radius: var(--r-md); background: var(--surface-alt);
                 font-weight: var(--w-label); font-size: .9375rem; color: var(--color-navy); }
  .pillar ul a:hover { background: var(--blue-100); color: var(--action); }
  .pillar ul a::after { content: "→"; color: var(--action); }

  /* ---- steps / chain ---- */
  .steps { display: grid; gap: var(--s-4); counter-reset: step;
           grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
  @media (width >= 68rem) { .steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
  .step { background: var(--surface); border-radius: var(--r-lg); padding: var(--s-5); display: grid; gap: var(--s-2); align-content: start; }
  .on-navy .step { background: color-mix(in oklab, #fff 7%, transparent); }
  .step .idx { counter-increment: step; font-size: .8125rem; font-weight: var(--w-figure); color: var(--action);
               display: inline-grid; place-items: center; inline-size: 30px; aspect-ratio: 1;
               border-radius: 50%; background: var(--blue-100); }
  .on-navy .step .idx { background: color-mix(in oklab,#fff 14%,transparent); color: #fff; }
  .step .idx::before { content: counter(step, decimal-leading-zero); }
  .step b { font-size: var(--t-h5); font-weight: var(--w-title); }
  .step p { font-size: var(--t-small); color: var(--ink-secondary); }
  .step .meta { font-size: var(--t-kicker); font-weight: var(--w-title); letter-spacing: .1em;
                text-transform: uppercase; color: var(--ink-secondary); }

  /* ---- figures / stats ---- */
  .tiles { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
  .tile { background: var(--surface); border-radius: var(--r-lg); padding: var(--s-5); display: grid; gap: var(--s-2); align-content: start; }
  .on-navy .tile { background: color-mix(in oklab, #fff 7%, transparent); }
  .tile b { font-size: 2rem; font-weight: var(--w-figure); line-height: 1.05; color: var(--action); }
  .on-navy .tile b { color: #fff; }
  .tile span { font-weight: var(--w-label); font-size: .9375rem; }
  .tile small { font-size: .8125rem; color: var(--ink-secondary); }

  /* ---- timeline: cards separated by space, not rules ---- */
  .timeline { display: grid; gap: var(--s-3); }
  .tl {
    background: var(--surface); border-radius: var(--r-lg); padding: var(--s-4) var(--s-5);
    display: grid; gap: var(--s-2);
  }
  @media (width >= 48rem) { .tl { grid-template-columns: 9rem 15rem 1fr; gap: var(--s-5); align-items: baseline; } }
  .on-navy .tl { background: color-mix(in oklab, #fff 7%, transparent); }
  .tl .when { font-weight: var(--w-figure); font-size: .9375rem; color: var(--action); }
  .on-navy .tl .when { color: var(--blue-200); }
  .tl .what { font-weight: var(--w-title); }
  .tl .why { font-size: var(--t-small); color: var(--ink-secondary); }

  /* ---- capability list ---- */
  .caps { display: grid; gap: var(--s-3); list-style: none; padding: 0; margin: 0; }
  .caps li { background: var(--surface); border-radius: var(--r-lg); padding: var(--s-4) var(--s-5); }
  .caps li b { display: block; margin-block-end: 4px; }
  .caps li span { font-size: var(--t-small); color: var(--ink-secondary); }

  /* ---- chips ---- */
  .chips, .panel ul.chips, .panel-navy ul.chips, .card ul.chips {
    display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
  .chips li { font-size: .8125rem; font-weight: var(--w-label); padding: 7px 14px;
              border-radius: var(--r-pill); background: var(--surface); color: var(--ink-secondary); box-shadow: var(--sh-sm); }
  .on-navy .chips li { background: color-mix(in oklab,#fff 10%,transparent); color: #fff; box-shadow: none; }

  /* ---- reference cards ---- */
  .ref { background: var(--surface); border-radius: var(--r-lg); padding: var(--s-5);
         display: grid; gap: var(--s-3); align-content: start; box-shadow: var(--sh-sm); }
  .ref .sector { font-size: var(--t-kicker); font-weight: var(--w-title); letter-spacing: .12em;
                 text-transform: uppercase; color: var(--action); }
  .ref h3 { font-size: var(--t-h5); }
  .ref p { font-size: var(--t-small); color: var(--ink-secondary); }
  .ref .stack { font-size: .8125rem; color: var(--ink-secondary); background: var(--surface-alt);
                border-radius: var(--r-md); padding: 10px var(--s-3); }

  /* ---- quote ---- */
  .quote {
    background: var(--surface-alt); border-radius: var(--r-xl); padding: var(--s-6);
    display: grid; gap: var(--s-4);
  }
  .quote blockquote { font-size: var(--t-h5); font-weight: var(--w-label); line-height: 1.5;
                      letter-spacing: -.01em; color: var(--color-navy); max-inline-size: 52ch; }
  /* short pull quotes on offer pages can carry more weight */
  .quote-lead blockquote { font-size: var(--t-h4); font-weight: var(--w-title); line-height: 1.35;
                           letter-spacing: -.02em; }
  .quote figcaption { font-size: var(--t-small); color: var(--ink-secondary); }
  .quote figcaption b { color: var(--color-navy); }

  /* ---- architecture diagram: the deck slide, reproduced as-is ---- */
  .arch-figure {
    margin: 0; border-radius: var(--r-xl); overflow: hidden;
    background: var(--color-surface); box-shadow: var(--sh-sm);
  }
  .arch-figure img { inline-size: 100%; block-size: auto; }
  .arch-caption {
    font-size: .8125rem; line-height: 1.5; color: var(--ink-secondary);
    padding: var(--s-4) var(--s-5) var(--s-5);
  }

  /* ---- case studies: photo or figure beside the heading ---- */
  .case-head { display: grid; gap: var(--s-5); align-items: center; }
  @media (width >= 60rem) { .case-head { grid-template-columns: 1.15fr .85fr; gap: var(--s-7); } }
  .case-photo { margin: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-sm); }
  .case-photo img { inline-size: 100%; block-size: auto; display: block; aspect-ratio: 3 / 2; object-fit: cover; }
  .case-figure {
    display: grid; gap: var(--s-2); align-content: center; justify-items: start;
    background: var(--color-navy); color: #fff; border-radius: var(--r-xl);
    padding: var(--s-6) var(--s-6); min-block-size: 12rem;
  }
  .case-figure b { font-size: clamp(2.5rem, 6vw, 3.75rem); font-weight: var(--w-figure); line-height: 1; }
  .case-figure span { font-size: var(--t-small); color: var(--ink-on-dark-2); }
  .case-head .lead { max-inline-size: 46rem; }

  /* ---- case studies: jump list beside the page title ---- */
  .case-intro { display: grid; gap: var(--s-6); align-items: start; }
  @media (width >= 62rem) { .case-intro { grid-template-columns: minmax(0, 1.5fr) minmax(0, 20rem); gap: var(--s-7); } }
  .case-nav {
    background: color-mix(in oklab, #fff 8%, transparent);
    border-radius: var(--r-xl); padding: var(--s-5);
  }
  .case-nav .cn-head {
    font-size: var(--t-kicker); font-weight: var(--w-title); letter-spacing: .12em;
    text-transform: uppercase; color: var(--blue-200); margin-block-end: var(--s-3);
  }
  .case-nav ol { list-style: none; margin: 0; padding: 0; counter-reset: cn; display: grid; gap: var(--s-2); }
  .case-nav li { counter-increment: cn; }
  .case-nav a {
    display: grid; gap: 2px; padding: var(--s-3) var(--s-4) var(--s-3) var(--s-6);
    border-radius: var(--r-md); position: relative; color: #fff;
    transition: background .15s ease;
  }
  .case-nav a::before {
    content: counter(cn, decimal-leading-zero);
    position: absolute; inset-inline-start: var(--s-3); inset-block-start: var(--s-3);
    font-size: .75rem; font-weight: var(--w-figure); color: var(--blue-200);
  }
  .case-nav a:hover, .case-nav a:focus-visible { background: color-mix(in oklab, #fff 12%, transparent); }
  .case-nav .cn-sector {
    font-size: var(--t-kicker); font-weight: var(--w-title); letter-spacing: .1em;
    text-transform: uppercase; color: var(--blue-200);
  }
  .case-nav .cn-figure { font-size: 1.25rem; font-weight: var(--w-figure); line-height: 1.15; }
  .case-nav .cn-figure small { font-size: .8125rem; font-weight: var(--w-body); color: var(--ink-on-dark-2); }
  .case-nav .cn-since { font-size: .8125rem; color: var(--ink-on-dark-2); }
  .case-cols { align-items: start; }

  /* ---- two-column prose, and grids that stay at three or four across ---- */
  /* long-form argument: one column, set at a readable measure */
  .prose-2 { display: grid; gap: var(--s-5); max-inline-size: 54rem; }
  .trio { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
  @media (width >= 62rem) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .caps.quad { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
  @media (width >= 68rem) { .caps.quad { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  .caps.quad li { display: grid; gap: 6px; align-content: start; }
  .case-cols > .stack { align-content: start; }
  .case-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: start;
    margin: var(--s-3) 0 0; }
  .case-actions .btn { flex: 0 0 auto; }
  a.card .sector, .ref .sector { font-size: var(--t-kicker); font-weight: var(--w-title);
    letter-spacing: .12em; text-transform: uppercase; color: var(--action-ink); }

  /* ---- photography (§8): rounded frames, never tinted, never cut out ---- */
  .portrait { display: grid; gap: var(--s-3); margin: 0; }
  .portrait img {
    inline-size: 100%; block-size: auto; aspect-ratio: 1;
    object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--sh-sm);
  }
  .portrait figcaption { font-size: var(--t-small); color: var(--ink-secondary); }
  .portrait figcaption b { color: var(--ink); }

  .person { display: flex; align-items: center; gap: var(--s-4); }
  .person .avatar {
    inline-size: 68px; block-size: 68px; flex: none;
    border-radius: var(--r-lg); object-fit: cover;
  }

  /* ---- photo reserve (§8: name what should appear) ---- */
  .placeholder {
    border-radius: var(--r-xl); background: var(--surface-alt);
    display: grid; place-items: center; text-align: center; gap: 6px;
    padding: var(--s-6); min-block-size: 13rem; color: var(--ink-secondary);
  }
  .placeholder b { display: block; font-size: var(--t-kicker); letter-spacing: .13em;
                   text-transform: uppercase; color: var(--action); }
  .placeholder span { font-size: var(--t-small); max-inline-size: 28ch; }

  /* ---- CTA band ---- */
  .cta {
    background: linear-gradient(150deg, #141F45, #24346a);
    border-radius: var(--r-xl); padding: clamp(var(--s-6), 4vw, var(--s-8));
    color: #fff; display: grid; gap: var(--s-5); align-items: center;
    --ink: #fff; --ink-secondary: var(--ink-on-dark-2);
  }
  @media (width >= 56rem) { .cta { grid-template-columns: 1fr auto; gap: var(--s-7); } }
  .cta h2 { color: #fff; }
  .cta p { color: var(--ink-on-dark-2); }
  .cta .btn-primary { background: #fff; color: var(--color-navy); }
  .cta .btn-primary:hover { background: var(--blue-100); }

  /* ---- next nav ---- */
  .next { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
  .next a { background: var(--surface); border-radius: var(--r-lg); padding: var(--s-5);
            display: grid; gap: 6px; box-shadow: var(--sh-sm); transition: box-shadow .18s, translate .18s; }
  .next a:hover { box-shadow: var(--sh-md); translate: 0 -2px; }
  .next span { font-size: var(--t-kicker); font-weight: var(--w-title); letter-spacing: .12em;
               text-transform: uppercase; color: var(--action); }
  .next b { font-size: var(--t-h5); font-weight: var(--w-title); letter-spacing: -.02em; }

  /* ---- forms ---- */
  .form { display: grid; gap: var(--s-4); }
  @media (width >= 40rem) { .form { grid-template-columns: 1fr 1fr; } }
  .field { display: grid; gap: 6px; }
  .field.full { grid-column: 1 / -1; }
  label { font-size: var(--t-small); font-weight: var(--w-label); color: var(--color-navy); }
  input, select, textarea {
    min-block-size: 48px; padding: 12px var(--s-4);
    border: 1.5px solid var(--hairline); border-radius: var(--r-md);
    background: var(--color-surface); color: var(--ink); font-size: var(--t-body);
  }
  textarea { min-block-size: 8rem; resize: vertical; field-sizing: content; }
  input::placeholder, textarea::placeholder { color: var(--ink-secondary); }
  input:hover, select:hover, textarea:hover { border-color: color-mix(in oklab, var(--color-navy) 22%, transparent); }
  :is(input, select, textarea):user-invalid { border-color: var(--color-danger); }
  .form-msg { color: var(--color-success); font-weight: var(--w-label); font-size: var(--t-small); }

  /* ---- footer ---- */
  .site-footer {
    background: var(--color-navy); color: var(--ink-on-dark-2);
    padding-block: var(--s-8) var(--s-5); margin-block-start: var(--s-8);
    border-start-start-radius: var(--r-xl); border-start-end-radius: var(--r-xl);
    --ink: #fff; --ink-secondary: var(--ink-on-dark-2);
  }
  .foot { display: grid; gap: var(--s-6); }
  @media (width >= 56rem) { .foot { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s-7); } }
  .site-footer h4 { font-size: var(--t-kicker); font-weight: var(--w-title); letter-spacing: .13em;
                    text-transform: uppercase; color: var(--blue-200); margin-block-end: var(--s-3); }
  .site-footer ul { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: var(--t-small); }
  .site-footer a:hover { color: #fff; }
  .site-footer p { font-size: var(--t-small); color: var(--ink-on-dark-2); }
  .offices li b { display: block; color: #fff; font-weight: var(--w-title); }
  .foot-bottom { margin-block-start: var(--s-7); padding-block-start: var(--s-4);
                 display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between;
                 font-size: .8125rem; color: color-mix(in oklab,#fff 55%,var(--color-navy)); }
}

/* ------------------------------------------------------------- utilities */
@layer utilities {
  .visually-hidden {
    position: absolute; inline-size: 1px; block-size: 1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .skip {
    position: absolute; inset-block-start: -3rem; inset-inline-start: var(--s-4); z-index: 99;
    background: var(--action); color: #fff; padding: 10px var(--s-4); border-radius: var(--r-pill);
    transition: inset-block-start .15s ease;
  }
  .skip:focus { inset-block-start: var(--s-3); }
  .measure-narrow { max-inline-size: 52ch; }
  .lang-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); text-align: start; }
  .lang-grid p, .lang-grid h3 { margin-inline: 0; text-align: start; }
  .center { margin-inline: auto; text-align: center; }
  .center p, .center .lead { margin-inline: auto; }
}

/* ------------------------------------------- cross-document transitions */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .22s ease both; }
  ::view-transition-new(root) { animation: vt-in .26s ease both; }
  @keyframes vt-out { to { opacity: 0; translate: 0 -6px; } }
  @keyframes vt-in { from { opacity: 0; translate: 0 8px; } }
  .site-header { view-transition-name: site-header; }
  .site-footer { view-transition-name: site-footer; }
}

/* ------------------------------------------------ scroll-driven reveals */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal { from { opacity: 0; translate: 0 18px; } }
    .reveal > * {
      animation: reveal auto linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}


/* ---------------- company mini-menu (About / Technologies / Careers / Blog) --- */
@layer components {
  .nav li:has(> .mini) > .top::after {
    content: ""; inline-size: 6px; aspect-ratio: 1;
    border-inline-end: 1.75px solid currentColor; border-block-end: 1.75px solid currentColor;
    rotate: 45deg; translate: 0 -2px; opacity: .55;
  }
  .mini {
    position: absolute; inset-block-start: calc(100% + 6px); inset-inline-start: 50%;
    translate: -50% 6px; min-inline-size: 13rem;
    background: var(--color-surface); border-radius: var(--r-lg);
    box-shadow: var(--sh-md); padding: var(--s-2);
    display: grid; gap: 2px;
    opacity: 0; visibility: hidden;
    transition: opacity .16s ease, translate .16s ease, visibility .16s;
  }
  .nav li:hover > .mini, .nav li:focus-within > .mini { opacity: 1; visibility: visible; translate: -50% 0; }
  .mini a {
    display: block; padding: 10px var(--s-3); border-radius: var(--r-md);
    font-size: .9375rem; font-weight: var(--w-label); color: var(--ink); white-space: nowrap;
  }
  .mini a:hover { background: var(--surface-alt); }

  /* ---------------- technologies page ---------------- */
  .tech-wall {
    margin: 0; background: var(--color-surface); border-radius: var(--r-lg);
    padding: var(--s-4); box-shadow: var(--sh-sm); overflow-x: auto;
  }
  .tech-wall img { display: block; inline-size: 100%; min-inline-size: 34rem; block-size: auto; }

  /* ---------------- careers page ---------------- */
  .card .sector, .post .sector {
    font-size: var(--t-kicker); font-weight: var(--w-title); letter-spacing: .12em;
    text-transform: uppercase; color: var(--action-ink);
  }
  .stack-line {
    font-size: .8125rem; color: var(--ink-secondary); background: var(--surface-alt);
    border-radius: var(--r-md); padding: 8px var(--s-3); overflow-wrap: anywhere;
  }
  .job-list { display: grid; gap: var(--s-3); }
  .job {
    background: var(--surface); border-radius: var(--r-lg); padding: var(--s-5);
    display: grid; gap: var(--s-2); align-content: start; min-inline-size: 0;
  }
  .job-head { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: baseline; justify-content: space-between; }
  .job-head h3 { font-size: var(--t-h5); }
  .job-meta { font-size: .8125rem; color: var(--ink-secondary); font-weight: var(--w-label); }
  .job p { font-size: var(--t-small); color: var(--ink-secondary); }

  /* ---------------- blog page ---------------- */
  .post {
    background: var(--surface); border-radius: var(--r-lg); padding: var(--s-5);
    display: grid; gap: var(--s-2); align-content: start; min-inline-size: 0;
  }
  .post h3 { font-size: var(--t-h5); }
  .post h3 a { color: var(--ink); }
  .post h3 a:hover { color: var(--action); }
  .post p { font-size: var(--t-small); color: var(--ink-secondary); }
  .post .post-meta { font-size: .8125rem; color: var(--ink-secondary); font-weight: var(--w-label); margin-block-start: -4px; }
  .post .link, .job .link { overflow-wrap: anywhere; }

  /* ---------------- article page ---------------- */
  .art-byline { font-size: .8125rem; color: var(--blue-200); font-weight: var(--w-label); }
  .article > * + * { margin-block-start: var(--s-4); }
  .article p { font-size: 1.0625rem; line-height: 1.66; color: var(--ink-secondary); }
  .article h2 { font-size: var(--t-h3); margin-block-start: var(--s-7); color: var(--ink); }
  .article h3 { font-size: var(--t-h5); margin-block-start: var(--s-5); color: var(--ink); }
  .article h2 + p, .article h3 + p { margin-block-start: var(--s-3); }
  .article ul.bullets { display: grid; gap: var(--s-2); padding-inline-start: 1.15em; margin: 0; }
  .article ul.bullets li { font-size: 1.0625rem; line-height: 1.6; color: var(--ink-secondary); }
  .article .pull {
    margin: var(--s-6) 0; padding: var(--s-5); background: var(--surface-alt);
    border-radius: var(--r-lg); display: grid; gap: var(--s-3);
  }
  .article .pull p { font-size: 1.1875rem; line-height: 1.5; color: var(--ink); font-weight: var(--w-label); }
  .article .pull cite {
    font-style: normal; font-size: var(--t-kicker); font-weight: var(--w-title);
    letter-spacing: .1em; text-transform: uppercase; color: var(--action-ink);
  }
}

