/* ==========================================================================
   Post Mantra · design system (postmantra.com, a brand of Aarla Nextech LLP)
   Shared with aarlanextech.com: only the brand block (wordmark + PM mark,
   search "Post Mantra brand") differs. Assets: ?v=20261015.
   --------------------------------------------------------------------------
   Type:   Schibsted Grotesk (display: headings, names, figures, 600/700)
           + IBM Plex Sans (body, UI, data, 400/500/600)
   Colour: Radix Colors v3 + the owner's brand indigo (sampled from the
           official banner). Slate = paper and ink. Iris = the one accent on
           paper (iris-9 marks, iris-11 text, brand indigo #1f2353 primary
           fill). Dark surfaces (homepage hero, CTA bands, footer) are the
           brand indigo-violet with one calm radial glow, iris-dark for lines,
           marks and accents. Green only where semantic (passed, certified).
   Never edit this file for one page: page CSS lives in css/<page>.css and
   loads after this file.

   Cascade layers (later layers win, unlayered page CSS wins over all):
     base        tokens, reset, element defaults
     layout      container, grid, splits, sections, section heads
     components  everything with a class name
     utilities   [hidden], .sr, small helpers

   Breakpoints (max-width unless noted):
     1180  header switches to the drawer (nav shows at min-width 1181)
     1080  wide two-column components tighten
      920  splits and section heads collapse to one column (min-width 921 = desktop layout)
      760  mobile: utility strip hidden, mockups stack
      520  small phones
      420  header label and wordmark tighten
   ========================================================================== */

@layer base, layout, components, utilities;

/* ==========================================================================
   BASE · tokens
   ========================================================================== */
@layer base {
  :root {
    /* Radix slate (light): paper and ink */
    --slate-1: #fcfcfd;
    --slate-2: #f9f9fb;
    --slate-3: #f0f0f3;
    --slate-4: #e8e8ec;
    --slate-5: #e0e1e6;
    --slate-6: #d9d9e0;
    --slate-7: #cdced6;
    --slate-8: #b9bbc6;
    --slate-9: #8b8d98;
    --slate-10: #80838d;
    --slate-11: #60646c;
    --slate-12: #1c2024;

    /* Radix slate (dark): the dark surface */
    --slate-d1: #111113;
    --slate-d2: #18191b;
    --slate-d3: #212225;
    --slate-d4: #272a2d;
    --slate-d5: #2e3135;
    --slate-d6: #363a3f;
    --slate-d7: #43484e;
    --slate-d8: #5a6169;
    --slate-d9: #696e77;
    --slate-d10: #777b84;
    --slate-d11: #b0b4ba;
    --slate-d12: #edeef0;

    /* Legacy names. The sand scale is retired: --sand-N now resolves to
       --slate-N so older page CSS follows the new paper. Use slate in new work. */
    --sand-1: var(--slate-1);
    --sand-2: var(--slate-2);
    --sand-3: var(--slate-3);
    --sand-4: var(--slate-4);
    --sand-5: var(--slate-5);
    --sand-6: var(--slate-6);
    --sand-7: var(--slate-7);
    --sand-8: var(--slate-8);
    --sand-9: var(--slate-9);
    --sand-10: var(--slate-10);
    --sand-11: var(--slate-11);
    --sand-12: var(--slate-12);

    /* Radix iris (light): the accent on paper */
    --iris-1: #fdfdff;
    --iris-2: #f8f8ff;
    --iris-3: #f0f1fe;
    --iris-4: #e6e7ff;
    --iris-5: #dadcff;
    --iris-6: #cbcdff;
    --iris-7: #b8baf8;
    --iris-8: #9b9ef0;
    --iris-9: #5b5bd6;
    --iris-10: #5151cd;
    --iris-11: #5753c6;
    --iris-12: #272962;

    /* Radix iris (dark): lines, marks and accents on the dark brand surface */
    --iris-d1: #13131e;
    --iris-d2: #171625;
    --iris-d3: #202248;
    --iris-d4: #262a65;
    --iris-d5: #303374;
    --iris-d6: #3d3e82;
    --iris-d7: #4a4a95;
    --iris-d8: #5958b1;
    --iris-d9: #5b5bd6;
    --iris-d10: #6e6ade;
    --iris-d11: #b1a9ff;
    --iris-d12: #e0dffe;

    /* Brand indigo (owner's official banner): glow centre, mid, edges */
    --brand-glow: #2e3470;
    --brand-mid: #1f2353;
    --brand-edge: #190936;
    --brand-violet: #180429;
    --brand-deep: #090110;
    --white: #ffffff;

    /* Radix green: semantic only (passed, certified, correct) */
    --green-2: #f4fbf6;
    --green-9: #30a46c;
    --green-11: #218358;
    --green-d9: #30a46c;
    --green-d11: #3dd68c;

    /* Legacy names. Jade was the accent before the brand assets arrived:
       --jade-N now resolves to --iris-N so older page CSS follows the brand. */
    --jade-1: var(--iris-1);
    --jade-2: var(--iris-2);
    --jade-3: var(--iris-3);
    --jade-4: var(--iris-4);
    --jade-5: var(--iris-5);
    --jade-6: var(--iris-6);
    --jade-7: var(--iris-7);
    --jade-8: var(--iris-8);
    --jade-9: var(--iris-9);
    --jade-10: var(--iris-10);
    --jade-11: var(--iris-11);
    --jade-12: var(--iris-12);
    --jade-d1: var(--iris-d1);
    --jade-d2: var(--iris-d2);
    --jade-d3: var(--iris-d3);
    --jade-d4: var(--iris-d4);
    --jade-d5: var(--iris-d5);
    --jade-d6: var(--iris-d6);
    --jade-d7: var(--iris-d7);
    --jade-d8: var(--iris-d8);
    --jade-d9: var(--iris-d9);
    --jade-d10: var(--iris-d10);
    --jade-d11: var(--iris-d11);
    --jade-d12: var(--iris-d12);

    /* Radix tomato (light). Form errors only */
    --tomato-2: #fffcfc;
    --tomato-3: #feebe7;
    --tomato-8: #ec8e7b;
    --tomato-11: #d13415;

    /* Type families */
    --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
    --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    /* Legacy alias: the serif is retired. Page CSS that still asks for
       --font-serif gets the display grotesk (at 600 when it asks for 400,
       since 600 is the lightest display weight loaded). */
    --font-serif: var(--font-display);

    /* Type scale (fluid) */
    --fs-display: clamp(2.5rem, 1.3rem + 4.1vw, 4.75rem);
    --fs-h1: clamp(2.25rem, 1.35rem + 2.8vw, 4rem);
    --fs-h2: clamp(1.875rem, 1.25rem + 1.9vw, 3rem);
    --fs-h3: clamp(1.25rem, 1.12rem + 0.45vw, 1.5rem);
    --fs-h4: 1.125rem;
    --fs-standfirst: clamp(1.125rem, 1.03rem + 0.35vw, 1.3125rem);
    --fs-lead: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
    --fs-body: 1.0625rem;
    --fs-small: 0.9375rem;
    --fs-caption: 0.8125rem;
    --fs-micro: 0.75rem;

    /* Spacing scale (mirrors Radix space 1 to 9) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;

    /* Layout */
    --maxw: 1360px;
    --gutter: clamp(16px, 3.4vw, 48px);
    --col-gap: clamp(16px, 2.2vw, 32px);
    --section-y: clamp(56px, 6.8vw, 104px);
    --util-h: 34px;
    --bar-h: 68px;

    /* Shape */
    --radius-1: 2px;
    --radius-2: 6px;
    --radius-3: 8px;
    --radius-4: 12px;
    --shadow-1: 0 1px 0 var(--slate-5);
    --shadow-2: 0 2px 0 var(--slate-5);

    /* Semantic tokens, paper surface (the default).
       Contrast on paper: fg 16:1, fg-2 5.8:1, accent (iris-11) 5.9:1,
       white on the brand indigo button 14.8:1, iris-9 marks 5.2:1 (non-text). */
    --bg: var(--slate-1);
    --bg-raised: var(--slate-1);
    --bg-muted: var(--slate-3);
    --bg-hover: var(--slate-4);
    --fg: var(--slate-12);
    --fg-2: var(--slate-11);
    --line: var(--slate-6);
    --line-2: var(--slate-7);
    --line-3: var(--slate-8);
    /* Section-top rules (FAQ, tables, plans, steps): a firmer grey, not ink.
       Bold modern direction: no black hairlines on paper. */
    --rule: var(--slate-8);
    --accent: var(--iris-11);
    --accent-fg: var(--slate-1);
    --mark: var(--iris-9);
    --mark-soft: var(--iris-2);
    --mark-soft-line: var(--iris-6);
    --mark-tint: var(--iris-4);
    --link-line: var(--iris-9);
    --focus: var(--iris-9);
    --btn-bg: var(--brand-mid);
    --btn-fg: var(--white);
    --btn-bg-hover: var(--brand-glow);
    --ok: var(--green-11);
    --ok-mark: var(--green-9);
    --btn2-fg: var(--slate-12);
    --btn2-line: var(--slate-9);
    --btn2-line-hover: var(--slate-12);
    --btn2-bg-hover: var(--slate-3);
    --danger: var(--tomato-11);
    --danger-line: var(--tomato-8);
    --danger-soft: var(--tomato-3);

    color-scheme: light;
  }

  /* ---------- Reset and element defaults ---------- */
  *, *::before, *::after { box-sizing: border-box; }
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--bar-h) + 24px);
  }
  html.is-locked, html.is-locked body { overflow: hidden; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
  }
  img, picture, svg, video { display: block; max-width: 100%; }
  img { height: auto; }
  h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
  ol, ul { padding: 0; list-style: none; }
  a {
    color: inherit;
    text-decoration-color: var(--link-line);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
  }
  a:hover { text-decoration-thickness: 2px; }
  b, strong { font-weight: 600; }
  button, input, select, textarea { font: inherit; color: inherit; }
  table { border-collapse: collapse; }
  address { font-style: normal; }
  fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
  legend { padding: 0; }
  hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
  :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-1); }
  ::selection { background: var(--iris-4); color: var(--slate-12); }

  h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--fg); text-wrap: balance; }
  h1 { font-size: var(--fs-h1); line-height: 1.03; letter-spacing: -0.032em; }
  h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.028em; }
  h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.018em; font-weight: 700; }
  h4 { font-family: var(--font-sans); font-size: var(--fs-h4); font-weight: 600; line-height: 1.35; }
  p { text-wrap: pretty; }
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
@layer layout {
  /* ---------- Surface scopes: remap the semantic tokens ---------- */
  .surface--paper, .surface--alt, .surface--raised, .surface--accent, .surface--dark { background: var(--bg); color: var(--fg); }

  .surface--paper {
    --bg: var(--slate-1); --bg-raised: var(--slate-1); --bg-muted: var(--slate-3); --bg-hover: var(--slate-4);
    --fg: var(--slate-12); --fg-2: var(--slate-11);
    --line: var(--slate-6); --line-2: var(--slate-7); --line-3: var(--slate-8); --rule: var(--slate-8);
    --accent: var(--iris-11); --accent-fg: var(--slate-1); --mark: var(--iris-9);
    --mark-soft: var(--iris-2); --mark-soft-line: var(--iris-6); --mark-tint: var(--iris-4);
    --link-line: var(--iris-9); --focus: var(--iris-9);
    --btn-bg: var(--brand-mid); --btn-fg: var(--white); --btn-bg-hover: var(--brand-glow);
    --ok: var(--green-11); --ok-mark: var(--green-9);
    --btn2-fg: var(--slate-12); --btn2-line: var(--slate-9); --btn2-line-hover: var(--slate-12); --btn2-bg-hover: var(--slate-3);
    color-scheme: light;
  }
  /* A light grey band (product bands, security). fg-2 on it: 5.2:1 */
  .surface--alt {
    --bg: var(--slate-3); --bg-raised: var(--slate-1); --bg-muted: var(--slate-4); --bg-hover: var(--slate-5);
    --line: var(--slate-6); --line-2: var(--slate-7); --line-3: var(--slate-8);
    --btn2-bg-hover: var(--slate-4);
    --shadow-1: 0 1px 0 var(--slate-6);
  }
  .surface--raised { --bg: var(--slate-1); --bg-muted: var(--slate-3); }
  /* Dark surface: the brand indigo-violet from the official banner, iris-dark
     for raised panels, lines, marks and accents. Text is iris-d12 / slate-d11.
     Contrast, worst case (on the glow centre #2e3470): fg 11.4:1, fg-2 5.5:1,
     accent and marks (iris-d11) 5.4:1, focus ring 5.4:1. On the edge #190936:
     fg 18.5:1, fg-2 8.9:1. Primary button: white fill, brand indigo text 14.8:1. */
  .surface--dark, .surface--accent, .head--dark .site-header {
    --bg: var(--brand-edge); --bg-raised: var(--iris-d3); --bg-muted: var(--iris-d4); --bg-hover: var(--iris-d4);
    --fg: var(--white); --fg-2: var(--slate-d11);
    --line: var(--iris-d5); --line-2: var(--iris-d6); --line-3: var(--iris-d8); --rule: var(--iris-d8);
    --accent: var(--iris-d11); --accent-fg: var(--brand-mid); --mark: var(--iris-d11);
    --mark-soft: var(--iris-d3); --mark-soft-line: var(--iris-d6); --mark-tint: var(--iris-d5);
    --link-line: var(--iris-d11); --focus: var(--iris-d11);
    --btn-bg: var(--white); --btn-fg: var(--brand-mid); --btn-bg-hover: var(--iris-d12);
    --btn2-fg: var(--iris-d12); --btn2-line: var(--iris-d11); --btn2-line-hover: var(--iris-d12); --btn2-bg-hover: var(--iris-d4);
    --ok: var(--green-d11); --ok-mark: var(--green-d11);
    --shadow-1: none; --shadow-2: none;
    color-scheme: dark;
  }
  /* The brand glow: one calm radial light, as on the official banner.
     On every closing CTA band (.surface--accent) and, opt-in, on a dark hero
     (.surface--glow). Move it with --glow-x / --glow-y on the element itself:
     the gradient is declared here (not as a :root token) so they take effect.
     Never stack two. */
  .surface--accent { --glow-x: 30%; --glow-y: 0%; }
  .surface--accent, .surface--glow {
    background-color: var(--brand-edge);
    background-image: radial-gradient(ellipse 62% 78% at var(--glow-x, 50%) var(--glow-y, 45%), var(--brand-glow) 0%, var(--brand-mid) 42%, var(--brand-edge) 100%);
  }
  .surface--dark ::selection, .surface--accent ::selection { background: var(--iris-d6); color: var(--iris-d12); }
  /* Opt-in for a page that opens on a dark hero (the homepage): put .head--dark
     on <body> and the header (utility strip, bar, panels, drawer) joins the hero. */
  .head--dark .site-header { color: var(--fg); }

  /* ---------- Container ---------- */
  .wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
  .wrap--narrow { max-width: calc(880px + 2 * var(--gutter)); }

  /* ---------- 12-column grid ---------- */
  .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }

  /* ---------- Split: exactly two children, one column below 921px ----------
     Desktop columns come from --a and --b on the .split element.
     Default 7/5. Modifiers set the pair. Pages may set --a/--b inline. */
  .split {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    row-gap: var(--split-gap, clamp(32px, 5vw, 48px));
    --a: 1 / span 7; --b: 8 / span 5;
  }
  .split > * { grid-column: 1 / -1; min-width: 0; }
  .split--offset { --a: 1 / span 7; --b: 9 / span 4; }
  .split--5-7 { --a: 1 / span 5; --b: 6 / span 7; }
  .split--4-8 { --a: 1 / span 4; --b: 6 / span 7; }
  .split--6-6 { --a: 1 / span 6; --b: 7 / span 6; }
  .split--8-4 { --a: 1 / span 8; --b: 9 / span 4; }
  .split--center { align-items: center; }
  .split--end { align-items: end; }
  @media (min-width: 921px) {
    .split > :first-child { grid-column: var(--a); }
    .split > :last-child { grid-column: var(--b); }
  }

  /* ---------- Cols: equal columns that wrap by themselves ---------- */
  .cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--col-min, 260px)), 1fr));
    gap: var(--cols-gap, var(--space-6)) var(--col-gap);
  }

  /* ---------- Sections ---------- */
  .section { padding-block: var(--section-y); }
  .section--tight { padding-block: calc(var(--section-y) * 0.6); }
  .section--flush-top { padding-top: 0; }
  /* Two paper sections in a row share one gap (the running head rule separates them) */
  :is(.section, .hero, .page-hero):not(.surface--alt, .surface--accent, .surface--dark) + .section:not(.surface--alt, .surface--accent, .surface--dark),
  .section.surface--alt + .section.surface--alt { padding-top: 0; }

  .stack > * + * { margin-top: var(--stack, var(--space-4)); }

  /* ---------- Running head: the section flag ---------- */
  .runhead {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
    gap: 6px 24px;
    margin-bottom: clamp(18px, 2vw, 26px);
    font-size: 0.875rem; line-height: 1.45;
  }
  .runhead__name { display: inline-flex; align-items: baseline; gap: 10px; font-weight: 600; color: var(--fg); }
  .runhead__name::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--mark); transform: translateY(-1px); }
  .runhead__meta { color: var(--fg-2); }
  .runhead__meta b, .runhead__new { color: var(--fg); font-weight: 600; }
  .runhead--stack { margin-bottom: var(--space-5); }

  /* ---------- Section head: anchored to the grid, never centred ---------- */
  .section-head {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    row-gap: var(--space-4);
    align-items: end;
    margin-bottom: clamp(36px, 4.4vw, 64px);
    --sh-a: 1 / span 7; --sh-b: 9 / span 4;
  }
  .section-head > * { grid-column: 1 / -1; min-width: 0; }
  .section-head__intro { color: var(--fg-2); max-width: 46ch; }
  .section-head:has(> .section-head__intro) { align-items: start; }
  .section-head__intro.t-lead { color: var(--fg-2); }
  .section-head--wide { --sh-a: 1 / span 8; --sh-b: 9 / span 4; }
  .section-head--stack { --sh-a: 1 / span 8; --sh-b: 1 / span 7; align-items: start; }
  /* Headline left, a short aside or the section's actions bottom-right */
  .section-head--split { --sh-a: 1 / span 7; --sh-b: 8 / span 5; }
  @media (min-width: 921px) {
    .section-head--split > :not(:first-child) { justify-self: end; justify-content: flex-end; }
  }
  @media (min-width: 921px) {
    .section-head > :first-child { grid-column: var(--sh-a); }
    .section-head > :not(:first-child) { grid-column: var(--sh-b); }
  }

  .section-foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: var(--space-4) var(--space-6);
    margin-top: clamp(28px, 3vw, 44px);
    padding-top: var(--space-5);
    border-top: 1px solid var(--line);
  }
  .section-foot > p { color: var(--fg-2); max-width: 60ch; font-size: var(--fs-small); }

  /* Sticky side head for a .split--4-8 whose right column is long */
  @media (min-width: 921px) {
    .is-sticky { position: sticky; top: calc(var(--bar-h) + 32px); align-self: start; }
  }
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */
@layer components {

  /* ---------- Type classes ---------- */
  .t-display { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-display); line-height: 1; letter-spacing: -0.036em; text-wrap: balance; }
  .t-h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h1); line-height: 1.03; letter-spacing: -0.032em; text-wrap: balance; }
  .t-h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.028em; text-wrap: balance; }
  .t-h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.018em; text-wrap: balance; }
  .t-h4 { font-family: var(--font-sans); font-size: var(--fs-h4); font-weight: 600; line-height: 1.35; letter-spacing: 0; }
  .t-standfirst { font-family: var(--font-sans); font-size: var(--fs-standfirst); line-height: 1.5; color: var(--fg-2); }
  .t-lead { font-family: var(--font-sans); font-size: var(--fs-lead); line-height: 1.55; color: var(--fg-2); }
  .t-body { font-size: var(--fs-body); }
  .t-small { font-size: var(--fs-small); line-height: 1.55; }
  .t-caption { font-size: var(--fs-caption); line-height: 1.5; }
  .t-muted { color: var(--fg-2); }
  .t-num { font-variant-numeric: tabular-nums; }

  .kicker {
    margin-bottom: clamp(18px, 2.2vw, 28px);
    font-size: 0.9375rem; font-weight: 600; color: var(--accent);
  }
  .new { color: var(--accent); font-weight: 600; }

  /* ---------- Icons (inline Radix Icons sprite) ---------- */
  .i { width: 15px; height: 15px; flex: none; fill: currentColor; }
  .i--sm { width: 13px; height: 13px; }
  .i--lg { width: 18px; height: 18px; }
  .i--flip { transform: scaleX(-1); }
  .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

  /* ---------- Skip link ---------- */
  .skip-link {
    position: absolute; left: 12px; top: -80px; z-index: 300;
    padding: 10px 14px; border-radius: var(--radius-2);
    background: var(--slate-12); color: var(--slate-1); font-weight: 500; text-decoration: none;
  }
  .skip-link:focus { top: 12px; }

  /* ---------- Links ---------- */
  .arrow-link {
    display: inline;
    font-weight: 500;
    text-decoration: underline; text-decoration-color: var(--link-line);
    text-decoration-thickness: 1px; text-underline-offset: 5px;
  }
  .arrow-link .i, .status-table__name .i { display: inline-block; vertical-align: -0.12em; margin-left: 8px; transition: transform .18s ease; }
  .arrow-link:hover { text-decoration-thickness: 2px; }
  .arrow-link:hover .i { transform: translateX(3px); }
  /* Back link: icon first, mirrored; it nudges left on hover and stays mirrored */
  .arrow-link--back .i { margin-left: 0; margin-right: 8px; }
  .arrow-link:hover .i--flip { transform: scaleX(-1) translateX(3px); }
  .links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
  .links--stack { flex-direction: column; align-items: flex-start; gap: 12px; }
  .link-quiet { text-decoration: none; }
  .link-quiet:hover { text-decoration: underline; }

  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 44px; padding: 0 20px;
    border: 1px solid transparent; border-radius: var(--radius-2);
    font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 600; line-height: 1.1;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  }
  .btn .i { transition: transform .18s ease; }
  .btn:hover .i--arrow { transform: translateX(3px); }
  .btn--sm { min-height: 38px; padding: 0 14px; font-size: 0.9063rem; }
  .btn--lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }
  .btn--block { width: 100%; }
  .btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
  .btn--primary:hover { background: var(--btn-bg-hover); }
  .btn--secondary { background: transparent; color: var(--btn2-fg); border-color: var(--btn2-line); }
  .btn--secondary:hover { background: var(--btn2-bg-hover); border-color: var(--btn2-line-hover); }
  .btn:disabled, .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
  .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  @media (max-width: 520px) {
    .actions--fill > .btn { flex: 1 1 100%; }
  }

  /* ==========================================================================
     Header: utility strip, sticky bar, dropdowns, drawer
     ========================================================================== */
  .site-header { position: sticky; top: calc(-1 * var(--util-h)); z-index: 50; }

  .utility { background: var(--bg); border-bottom: 1px solid var(--line); font-size: var(--fs-caption); color: var(--fg-2); }
  .utility__inner { min-height: var(--util-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
  .utility__links { display: flex; gap: var(--space-5); }
  .utility a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
  .utility a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
  .utility .i { width: 13px; height: 13px; }

  .bar { background: var(--bg); border-bottom: 1px solid var(--line-2); }
  .head--dark .bar { border-bottom-color: var(--line); }
  .bar__inner { height: var(--bar-h); display: flex; align-items: center; gap: clamp(12px, 2.4vw, 32px); }

  /* Post Mantra brand: the "PM" monogram tile (sprite #pm-mark, the same
     drawing as images/brand/favicon.svg) + "Post Mantra" in the display
     grotesk. Brand indigo on paper, white on the dark surfaces. There is no
     other logo: never use the Aarla Nextech artwork for Post Mantra. */
  .wordmark {
    display: inline-flex; align-items: center; gap: 10px; flex: none;
    font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1;
    color: var(--brand-mid); text-decoration: none; white-space: nowrap; border-radius: var(--radius-1);
  }
  .surface--dark .wordmark, .surface--accent .wordmark, .head--dark .site-header .wordmark { color: var(--fg); }
  .wordmark__mark { flex: none; width: 32px; height: 32px; border-radius: 7px; }
  .surface--dark .wordmark__mark, .surface--accent .wordmark__mark, .head--dark .site-header .wordmark__mark { box-shadow: 0 0 0 1px var(--line-2); }
  .wordmark b { font-weight: 700; }
  .wordmark--lg { font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem); }
  .wordmark--lg .wordmark__mark { width: 40px; height: 40px; border-radius: 9px; }

  /* Image logo classes (shared system; not used on Post Mantra, which uses
     the wordmark above). */
  .brand { display: inline-flex; align-items: center; flex: none; line-height: 0; text-decoration: none; border-radius: var(--radius-1); }
  .brand__logo { display: block; width: auto; height: 40px; }
  .brand__logo--white { display: none; }
  .head--dark .site-header .brand__logo--ink { display: none; }
  .head--dark .site-header .brand__logo--white { display: block; }
  .brand__lockup { display: block; width: clamp(168px, 14vw, 200px); height: auto; }

  .nav { display: none; }
  .nav__list { display: flex; align-items: center; gap: 2px; }
  .nav__item { position: relative; }
  .nav__trigger, .nav__link {
    display: inline-flex; align-items: center; gap: 6px;
    height: 40px; padding: 0 12px;
    background: none; border: 0; border-radius: var(--radius-2); cursor: pointer;
    font-size: 0.9688rem; font-weight: 500; color: var(--fg); text-decoration: none;
  }
  .nav__trigger:hover, .nav__link:hover, .nav__trigger[aria-expanded="true"] { background: var(--bg-hover); }
  .nav__link[aria-current="page"], .nav__trigger[data-current] {
    text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; text-underline-offset: 10px;
  }
  .nav__trigger .i { width: 14px; height: 14px; color: var(--fg-2); transition: transform .18s ease; }
  .nav__trigger[aria-expanded="true"] .i { transform: rotate(180deg); }

  .nav__panel {
    position: absolute; top: calc(100% + 12px); left: 0; z-index: 60;
    width: 340px; padding: 8px;
    background: var(--bg-raised); border: 1px solid var(--line-2); border-radius: var(--radius-3);
    box-shadow: var(--shadow-2);
  }
  .nav__panel--wide { width: 410px; }
  .nav__panel a { display: block; padding: 12px 14px; border-radius: var(--radius-2); text-decoration: none; }
  .nav__panel a:hover { background: var(--bg-muted); }
  .nav__panel a:focus-visible { outline-offset: -2px; }
  .nav__panel strong { display: block; font-size: 0.9688rem; font-weight: 600; }
  .nav__panel span { display: block; margin-top: 2px; font-size: 0.875rem; line-height: 1.45; color: var(--fg-2); }
  .nav__panel a[aria-current="page"] strong { text-decoration: underline; text-decoration-color: var(--mark); text-underline-offset: 4px; }
  /* Compact second list inside a panel: an overview link first, then plain sub-links */
  .nav__sublist { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
  .nav__panel .nav__sublist a { padding: 8px 14px; font-size: 0.9375rem; line-height: 1.4; }
  .nav__panel .nav__sublist a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--mark); text-underline-offset: 4px; }

  .bar__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
  .bar__demo { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 38px; padding: 0 12px;
    background: none; border: 1px solid var(--line-3); border-radius: var(--radius-2); cursor: pointer;
    font-size: 0.9063rem; font-weight: 500;
  }
  .menu-toggle:hover { border-color: var(--fg); }

  @media (min-width: 1181px) {
    .nav { display: block; margin-left: 4px; }
    .bar__demo { display: inline-flex; }
    .menu-toggle { display: none; }
  }
  @media (max-width: 760px) {
    :root { --util-h: 0px; --bar-h: 60px; }
    .utility { display: none; }
  }
  @media (max-width: 760px) {
    .brand__logo { height: 34px; }
  }
  @media (max-width: 420px) {
    .wordmark { font-size: 1.25rem; gap: 8px; }
    .wordmark__mark { width: 28px; height: 28px; border-radius: 6px; }
    .bar__inner { gap: 10px; }
    .bar__actions { gap: 8px; }
    .bar__actions .btn--sm { padding: 0 11px; font-size: 0.875rem; }
    .menu-toggle { padding: 0 10px; }
    .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  }
  @media (max-width: 340px) {
    .wordmark { font-size: 1.125rem; }
    .bar__inner .wordmark__mark { display: none; }
  }

  /* Drawer (mobile menu, modal dialog) */
  .drawer {
    position: fixed; inset: 0; z-index: 100;
    display: flex; flex-direction: column;
    background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  }
  .drawer__head { flex: none; display: flex; align-items: center; justify-content: space-between; height: var(--bar-h); border-bottom: 1px solid var(--line-2); }
  .drawer__close {
    display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px;
    background: none; border: 1px solid var(--line-3); border-radius: var(--radius-2); cursor: pointer;
    font-size: 0.9063rem; font-weight: 500;
  }
  .drawer__close:hover { border-color: var(--fg); }
  .drawer__body { padding-top: var(--space-2); padding-bottom: var(--space-7); }
  .drawer__group { padding: 20px 0 10px; border-bottom: 1px solid var(--line); }
  .drawer__group h2 { font-family: var(--font-sans); font-size: var(--fs-caption); font-weight: 600; line-height: 1.4; letter-spacing: 0; color: var(--fg-2); margin-bottom: 4px; }
  .drawer__group a {
    display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3);
    padding: 10px 0;
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; text-decoration: none;
  }
  .drawer__group a span { font-family: var(--font-sans); font-size: 0.875rem; font-weight: 400; letter-spacing: 0; color: var(--fg-2); text-align: right; }
  .drawer__group a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; text-underline-offset: 6px; }
  /* Compact sub-links under a group's main link (sans, smaller) */
  .drawer__sublist { padding-bottom: 6px; }
  .drawer__group .drawer__sublist a { padding: 7px 0; font-family: var(--font-sans); font-size: 1rem; font-weight: 500; letter-spacing: 0; line-height: 1.4; }
  .drawer__group .drawer__sublist a[aria-current="page"] { text-underline-offset: 4px; }
  .drawer__actions { display: grid; gap: 10px; padding-top: 28px; }
  .drawer__contact { margin-top: var(--space-3); font-size: var(--fs-small); line-height: 1.9; color: var(--fg-2); }
  .drawer__contact a { color: var(--fg); }

  /* ==========================================================================
     Hero (homepage and inner pages)
     ========================================================================== */
  .hero { padding-top: clamp(48px, 6.4vw, 96px); padding-bottom: var(--section-y); }
  .hero__title { max-width: 15ch; }
  .hero__standfirst { margin-top: clamp(18px, 2vw, 28px); max-width: 44ch; }
  .hero__actions { margin-top: clamp(24px, 3vw, 40px); }
  .hero__note { margin-top: 18px; font-size: var(--fs-small); color: var(--fg-2); }
  .hero__note a { color: var(--fg); white-space: nowrap; }
  .hero__panel { align-self: start; }
  .hero__panel > * + * { margin-top: var(--space-6); }
  .hero__panel .status-table + .spec { margin-top: var(--space-2); }
  .hero__panel .status-table + .spec > div:first-child { border-top: 0; }
  @media (min-width: 921px) {
    .hero__panel { padding-top: 6px; }
  }
  @media (max-width: 520px) {
    .hero__actions .btn { flex: 1 1 100%; }
  }

  /* Inner page hero: breadcrumbs, title, standfirst */
  .page-hero { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 88px); }
  .page-hero .crumbs { margin-bottom: clamp(28px, 3.4vw, 48px); }

  /* ---------- Breadcrumbs ---------- */
  .crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--fs-caption); color: var(--fg-2); }
  .crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--line-3); }
  .crumbs a { text-decoration: none; }
  .crumbs a:hover { text-decoration: underline; color: var(--fg); }
  .crumbs [aria-current="page"] { color: var(--fg); }

  /* ---------- Register: a hairline strip of short facts ---------- */
  .register {
    display: grid; grid-template-columns: repeat(var(--register-n, 3), minmax(0, 1fr));
    border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line);
  }
  .register > div { padding: 16px 24px 20px 0; min-width: 0; }
  .register > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
  .register dt { font-size: var(--fs-caption); font-weight: 600; color: var(--fg-2); margin-bottom: 4px; }
  .register dd { font-size: 1.0625rem; font-weight: 500; line-height: 1.45; }
  @media (max-width: 760px) {
    .register { grid-template-columns: 1fr; }
    .register > div, .register > div + div { padding: 14px 0 16px; border-left: 0; }
    .register > div + div { border-top: 1px solid var(--line); }
  }

  /* ==========================================================================
     Figures and photos
     ========================================================================== */
  .fig { min-width: 0; }
  .fig__cap { margin-top: 12px; font-size: var(--fs-caption); line-height: 1.5; color: var(--fg-2); max-width: 64ch; }
  .fig__cap b { color: var(--fg); font-weight: 600; margin-right: 6px; }

  /* Photo spread: uneven 2-up or 3-up row, compact fixed height */
  .spread {
    display: grid;
    grid-template-columns: var(--spread-cols, 3fr 2fr);
    gap: var(--space-3);
  }
  .spread--3 { --spread-cols: 2fr 1fr 1fr; }
  .spread--3-even { --spread-cols: 1fr 1fr 1fr; }
  .spread--2-even { --spread-cols: 1fr 1fr; }
  .spread__item { min-width: 0; }
  .spread__item img {
    width: 100%; height: var(--spread-h, clamp(220px, 22vw, 330px));
    object-fit: cover; background: var(--bg-muted); border-radius: var(--radius-3);
  }
  .spread__label { display: block; margin-top: 10px; font-size: var(--fs-caption); line-height: 1.45; color: var(--fg-2); }
  .spread__label b { color: var(--fg); font-weight: 600; margin-right: 4px; }
  .spread__item a, a.spread__item { display: block; text-decoration: none; }
  a.spread__item:hover .spread__label b { text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 3px; }
  @media (max-width: 600px) {
    .spread { --spread-h: clamp(170px, 48vw, 280px); }
    .spread--3, .spread--3-even { --spread-cols: 1fr 1fr; }
    .spread--3 > :first-child, .spread--3-even > :first-child { grid-column: 1 / -1; }
  }

  /* ==========================================================================
     Status table ("What we deploy")
     ========================================================================== */
  .status-table { width: 100%; }
  .status-table caption {
    text-align: left; padding-bottom: 10px; border-bottom: 1px solid var(--line-2);
    font-size: var(--fs-caption); font-weight: 600; color: var(--fg-2);
  }
  .status-table tr { border-bottom: 1px solid var(--line); }
  .status-table th, .status-table td { padding: 16px 0 17px; text-align: left; vertical-align: top; }
  .status-table th { font-weight: 400; padding-right: var(--space-4); }
  .status-table td { text-align: right; white-space: nowrap; }
  .status-table__name {
    display: inline;
    font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2;
    text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 1px; text-underline-offset: 5px;
  }
  .status-table__name:hover { text-decoration-thickness: 2px; }
  .status-table__name:hover .i { transform: translateX(3px); }
  .status-table__desc { display: block; margin-top: 4px; font-size: var(--fs-small); line-height: 1.45; color: var(--fg-2); }
  @media (max-width: 1080px) {
    .status-table__name { font-size: 1.1875rem; }
  }
  @media (max-width: 520px) {
    .status-table td { white-space: normal; width: 1%; min-width: 6.75em; }
    .status-table .state { text-align: left; }
    .status-table__name { font-size: 1.125rem; }
  }
  .status-table__foot { margin-top: var(--space-3); font-size: var(--fs-caption); color: var(--fg-2); }

  .state { display: inline-flex; align-items: baseline; gap: 8px; font-size: 0.875rem; font-weight: 500; line-height: 1.4; color: var(--fg); }
  .state::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--mark); transform: translateY(-1px); }
  .state--open::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--fg-2); }

  /* ==========================================================================
     Spec list (dt/dd rows) and facts table
     ========================================================================== */
  .spec > div {
    display: grid; grid-template-columns: minmax(96px, 30%) minmax(0, 1fr); gap: var(--space-4);
    padding: 14px 0; border-top: 1px solid var(--line);
  }
  .spec > div:last-child { border-bottom: 1px solid var(--line); }
  .spec dt { font-size: 0.875rem; font-weight: 600; padding-top: 2px; }
  .spec dd { font-size: 0.9688rem; line-height: 1.55; color: var(--fg-2); text-wrap: pretty; }
  .spec dd a { color: var(--fg); }
  .spec--compact > div { padding: 11px 0; }
  .spec--stacked > div { grid-template-columns: 1fr; gap: 2px; }
  @media (max-width: 520px) {
    .spec > div { grid-template-columns: 1fr; gap: 2px; }
  }

  .facts { width: 100%; border-top: 1px solid var(--rule); }
  .facts tr { border-bottom: 1px solid var(--line); }
  .facts th, .facts td { padding: 14px 0; text-align: left; vertical-align: top; }
  .facts th { width: 9.5em; padding-right: var(--space-4); font-size: 0.875rem; font-weight: 600; line-height: 1.7; }
  .facts td { font-size: var(--fs-body); line-height: 1.55; color: var(--fg-2); }
  .facts td a { color: var(--fg); font-weight: 500; white-space: nowrap; }
  @media (max-width: 520px) {
    .facts th { width: 7.5em; }
    .facts td { font-size: var(--fs-small); }
  }

  /* ==========================================================================
     Lists: checks, numbered steps, icon list
     ========================================================================== */
  /* Hairline rows with a small iris check. No dash markers anywhere. */
  .checks > li {
    position: relative;
    padding: 14px 0 14px 28px;
    border-top: 1px solid var(--line);
    line-height: 1.55;
  }
  .checks > li:last-child { border-bottom: 1px solid var(--line); }
  .checks > li > .i { position: absolute; left: 0; top: 18px; color: var(--mark); }
  .checks b { color: var(--fg); }
  .checks--muted > li { color: var(--fg-2); font-size: var(--fs-small); }
  .checks--plain > li { padding-left: 0; }
  /* No hairlines: short benefit bullets */
  .checks--clean > li, .checks--clean > li:last-child { padding: 5px 0 5px 28px; border: 0; }
  .checks--clean > li > .i { top: 9px; }

  .steps { counter-reset: step; border-top: 1px solid var(--line-2); }
  .steps > li {
    counter-increment: step; position: relative;
    padding: 14px 0 15px 40px; border-bottom: 1px solid var(--line-2);
    font-size: 0.9688rem; line-height: 1.55; color: var(--fg-2);
  }
  .steps > li::before {
    content: counter(step); position: absolute; left: 0; top: 11px;
    font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.2; color: var(--accent);
  }
  .steps b { color: var(--fg); }
  /* Horizontal variant: four columns, numerals above */
  .steps--row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); column-gap: var(--col-gap); border-top: 0; }
  .steps--row > li { padding: 52px 0 18px; border-bottom: 0; border-top: 1px solid var(--rule); }
  .steps--row > li::before { top: 12px; font-size: 1.75rem; }

  .icon-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .icon-list > li {
    display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: var(--space-3); align-content: start;
    padding: 18px 0 20px; border-top: 1px solid var(--line-2);
  }
  .icon-list .i { width: 16px; height: 16px; margin-top: 3px; color: var(--mark); grid-row: span 2; }
  .icon-list h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
  .icon-list p { margin-top: 4px; font-size: var(--fs-small); line-height: 1.55; color: var(--fg-2); }
  .icon-list p a { color: var(--fg); }
  @media (max-width: 760px) {
    .icon-list { grid-template-columns: 1fr; }
  }

  /* Note: a boxed aside with an icon (even 1px border, radius 8, like the cards) */
  .note {
    display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: var(--space-3);
    padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-3);
    background: var(--bg-raised); font-size: var(--fs-small); line-height: 1.55;
  }
  .note .i { margin-top: 3px; color: var(--mark); }
  .surface--accent .note { background: var(--bg-raised); }

  /* ==========================================================================
     Ledger: capability rows (name / description / typical work)
     ========================================================================== */
  .ledger > li {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--space-3);
    padding: clamp(22px, 2.4vw, 32px) 0; border-top: 1px solid var(--line-2);
  }
  .ledger > li:last-child { border-bottom: 1px solid var(--line-2); }
  .ledger + .section-foot { margin-top: 0; border-top: 0; }
  :where(.ledger > li) > * { grid-column: 1 / -1; min-width: 0; }
  .ledger__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.375rem, 1.15rem + 0.6vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em; }
  .ledger__stage { display: block; margin-top: 8px; font-family: var(--font-sans); font-size: var(--fs-caption); letter-spacing: 0; color: var(--fg-2); }
  .ledger__desc { font-size: 1rem; line-height: 1.6; }
  .ledger__list li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 0.9063rem; line-height: 1.45; color: var(--fg-2); }
  .ledger__list li:first-child { border-top: 0; padding-top: 2px; }
  @media (min-width: 921px) {
    .ledger__name { grid-column: 1 / span 4; }
    .ledger__desc { grid-column: 5 / span 4; }
    .ledger__list { grid-column: 9 / span 4; }
  }

  /* ==========================================================================
     Lifecycle: a horizontal process diagram (Discover, Design, Deploy, Support)
     ========================================================================== */
  .lifecycle { display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); column-gap: var(--col-gap); counter-reset: life; }
  .lifecycle > li { counter-increment: life; position: relative; padding-top: 34px; }
  .lifecycle > li::before {
    content: ""; position: absolute; top: 9px; left: 0; right: calc(-1 * var(--col-gap));
    height: 1px; background: var(--rule);
  }
  .lifecycle > li::after {
    content: ""; position: absolute; top: 5px; left: 0; width: 9px; height: 9px; background: var(--mark);
  }
  .lifecycle > li:last-child::before { right: 0; }
  .lifecycle__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.375rem, 1.2rem + 0.55vw, 1.75rem); line-height: 1.1; letter-spacing: -0.025em; }
  .lifecycle__name::before {
    content: counter(life, decimal-leading-zero); display: block; margin-bottom: 6px;
    font-family: var(--font-sans); font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0; line-height: 1.4;
    font-variant-numeric: tabular-nums; color: var(--accent);
  }
  .lifecycle p { margin-top: 10px; font-size: var(--fs-small); line-height: 1.55; color: var(--fg-2); max-width: 30ch; }
  @media (max-width: 920px) {
    .lifecycle { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-6); }
    .lifecycle > li::before { right: 0; }
  }
  @media (max-width: 520px) {
    .lifecycle { grid-template-columns: 1fr; row-gap: 0; }
    .lifecycle > li { padding: 0 0 22px 26px; }
    .lifecycle > li::before { top: 4px; bottom: 0; left: 4px; right: auto; width: 1px; height: auto; }
    .lifecycle > li:last-child::before { display: none; }
    .lifecycle > li::after { top: 6px; }
  }

  /* ==========================================================================
     Engagement stages: aligned rows across Pilot / Rollout / Scale
     Each .stage holds a head and a .stage__rows dl with up to 6 rows.
     ========================================================================== */
  .stages {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap);
    grid-template-rows: repeat(7, auto);
  }
  .stage { grid-row: span 7; display: grid; grid-template-rows: subgrid; min-width: 0; }
  .stage__head { position: relative; padding: 26px 0 var(--space-5); border-top: 1px solid var(--rule); }
  .stage__head::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--mark); }
  .stage:not(:last-child) .stage__head::after {
    content: ""; position: absolute; top: -4px; right: calc(-1 * var(--col-gap) / 2 - 4px); width: 7px; height: 7px;
    border-top: 1px solid var(--rule); border-right: 1px solid var(--rule); transform: rotate(45deg);
  }
  .stage__n { font-size: var(--fs-caption); font-weight: 600; color: var(--fg-2); }
  .stage__name { margin-top: 4px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.875rem, 1.5rem + 1.1vw, 2.625rem); line-height: 1; letter-spacing: -0.032em; }
  .stage__lead { margin-top: 12px; font-size: 1.0625rem; font-weight: 500; line-height: 1.45; max-width: 30ch; }
  .stage__rows { grid-row: span 6; display: grid; grid-template-rows: subgrid; }
  .stage__rows > div { padding: 12px 0 14px; border-top: 1px solid var(--line); }
  .stage__rows > div:last-child { border-bottom: 1px solid var(--line); }
  .stage__rows dt { font-size: var(--fs-caption); font-weight: 600; }
  .stage__rows dd { margin-top: 3px; font-size: var(--fs-small); line-height: 1.55; color: var(--fg-2); }
  .stage__rows .is-decision { border-top-color: var(--rule); }
  .stage__rows .is-decision dt { display: flex; align-items: center; gap: 8px; }
  .stage__rows .is-decision dt::before { content: ""; width: 8px; height: 8px; border: 1.5px solid var(--accent); transform: rotate(45deg); }
  .stage__rows .is-product { background: var(--mark-soft); border: 1px solid var(--mark-soft-line); border-radius: var(--radius-3); padding: 12px 14px 14px; margin-top: 10px; }
  .stage__rows .is-product dt { color: var(--accent); }
  .stage__rows .is-product dd { color: var(--fg); }
  .stage__rows .is-product + div, .stage__rows .is-product:last-child { border-bottom: 1px solid var(--mark-soft-line); }
  @supports not (grid-template-rows: subgrid) {
    .stage, .stage__rows { display: block; }
  }
  @media (max-width: 920px) {
    .stages { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: var(--space-7); }
    .stage, .stage__rows { grid-row: auto; display: block; }
    .stage:not(:last-child) .stage__head::after { display: none; }
  }

  /* Pricing line: a statement beside a button */
  .price-line {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6);
    margin-top: clamp(36px, 4vw, 56px); padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line);
  }
  .price-line p { font-size: var(--fs-lead); font-weight: 500; line-height: 1.5; max-width: 56ch; }

  /* ==========================================================================
     Tables: data table, capability matrix, plan comparison
     ========================================================================== */
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-scroll:focus-visible { outline-offset: 2px; }

  .data-table { width: 100%; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
  .data-table caption { text-align: left; padding-bottom: 10px; font-size: var(--fs-small); font-weight: 600; }
  .data-table thead th { padding: 12px 16px 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line-2); text-align: left; font-size: var(--fs-caption); font-weight: 600; color: var(--fg-2); }
  .data-table tbody th, .data-table td { padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
  .data-table tbody th { font-weight: 600; }
  .data-table td { color: var(--fg-2); }
  .data-table .num { text-align: right; }

  .matrix { width: 100%; }
  .matrix thead th {
    padding: 12px 8px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line-2);
    font-size: var(--fs-caption); font-weight: 600; text-align: center; white-space: nowrap; vertical-align: bottom;
  }
  .matrix thead th:first-child { text-align: left; padding-left: 0; }
  .matrix tbody tr { border-bottom: 1px solid var(--line); }
  .matrix tbody th { padding: 12px 16px 12px 0; text-align: left; font-weight: 600; font-size: 1rem; line-height: 1.3; }
  .matrix tbody th span { display: block; margin-top: 3px; font-size: 0.875rem; font-weight: 400; line-height: 1.45; color: var(--fg-2); }
  .matrix tbody th a { text-decoration-color: var(--link-line); text-underline-offset: 4px; }
  .matrix td { width: 15%; text-align: center; vertical-align: middle; }
  .mx { display: inline-block; vertical-align: middle; }
  .mx--yes { width: 10px; height: 10px; background: var(--mark); }
  .mx--no { width: 12px; height: 1px; background: var(--line-3); }
  .matrix__short { display: none; }
  @media (max-width: 520px) {
    .matrix thead th { padding-inline: 4px; }
    .matrix__long { display: none; }
    .matrix__short { display: inline; }
    .matrix tbody th { font-size: 0.9375rem; }
    .matrix tbody th span { font-size: 0.8125rem; }
  }

  .compare { width: 100%; min-width: 640px; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
  .compare thead th { padding: 14px 12px 12px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: bottom; }
  .compare thead th:first-child { padding-left: 0; }
  .compare__plan { display: block; font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
  .compare tbody th { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; vertical-align: top; }
  .compare td { padding: 13px 12px; border-bottom: 1px solid var(--line); color: var(--fg-2); vertical-align: top; }
  .compare td strong { color: var(--fg); font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: lining-nums proportional-nums; }
  .compare tbody tr.compare__group th { padding-top: 26px; border-bottom-color: var(--line-2); font-family: var(--font-sans); font-size: var(--fs-caption); font-weight: 600; color: var(--fg-2); }

  /* ==========================================================================
     Pull quote
     ========================================================================== */
  .pull { padding-top: 22px; border-top: 3px solid var(--rule); }
  .pull p {
    font-family: var(--font-display); font-style: normal; font-weight: 700;
    font-size: clamp(2rem, 1.2rem + 2.6vw, 3.75rem); line-height: 1.04; letter-spacing: -0.034em; text-wrap: balance;
  }
  .pull p { max-width: 15em; }
  .pull footer, .pull figcaption { margin-top: 18px; font-size: var(--fs-small); color: var(--fg-2); }
  .pull--bare { padding-top: 0; border-top: 0; }
  .pull--sm p { font-size: clamp(1.625rem, 1.1rem + 1.7vw, 2.625rem); }

  /* ==========================================================================
     Product mockups (flat, printed: hairline + 1px shadow)
     A mockup is one role="img" element with a full prose aria-label.
     Mockup colours come from the raw scales so a screen looks the same on
     any surface.
     ========================================================================== */
  .ui {
    --ui-bg: var(--slate-1); --ui-muted: var(--slate-2); --ui-soft: var(--slate-4);
    --ui-line: var(--slate-5); --ui-line-2: var(--slate-6);
    --ui-fg: var(--slate-12); --ui-fg-2: var(--slate-11); --ui-fg-3: var(--slate-9);
    --ui-mark: var(--iris-9); --ui-accent: var(--iris-11);
    --ui-coach: var(--iris-2); --ui-coach-line: var(--iris-6); --ui-hl: var(--iris-4); --ui-strike: var(--slate-5);
    --ui-ok: var(--green-11); --ui-ok-mark: var(--green-9);
    background: var(--ui-bg); color: var(--ui-fg);
    border: 1px solid var(--ui-line-2); border-radius: var(--radius-4); overflow: hidden;
    box-shadow: 0 1px 0 var(--ui-line);
    font-family: var(--font-sans); font-size: 0.875rem; line-height: 1.45;
    font-variant-numeric: tabular-nums;
  }
  /* Dark product screen, for mockups on the dark brand surface: an iris-dark
     app window (iris-d2) that sits on the glow. fg-2 on it 8.6:1, marks 3.3:1. */
  .ui--dark {
    --ui-bg: var(--iris-d2); --ui-muted: var(--iris-d1); --ui-soft: var(--iris-d4);
    --ui-line: var(--iris-d4); --ui-line-2: var(--iris-d6);
    --ui-fg: var(--iris-d12); --ui-fg-2: var(--slate-d11); --ui-fg-3: var(--slate-d9);
    --ui-mark: var(--iris-d9); --ui-accent: var(--iris-d11);
    --ui-coach: var(--iris-d3); --ui-coach-line: var(--iris-d6); --ui-hl: var(--iris-d5); --ui-strike: var(--iris-d6);
    --ui-ok: var(--green-d11); --ui-ok-mark: var(--green-d11);
    box-shadow: none;
  }
  .ui__bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
    padding: 12px 16px; border-bottom: 1px solid var(--ui-line); background: var(--ui-muted);
    font-size: var(--fs-caption); color: var(--ui-fg-2);
  }
  .ui__app { font-family: var(--font-display); font-size: 1rem; font-weight: 700; letter-spacing: -0.015em; color: var(--ui-fg); }
  .ui__crumb { padding-left: 14px; border-left: 1px solid var(--ui-line); }
  .ui__meta { margin-left: auto; font-weight: 500; color: var(--ui-fg); }
  .ui__action {
    margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 9px; border: 1px solid var(--ui-line-2); border-radius: var(--radius-2);
    font-size: var(--fs-micro); font-weight: 600; color: var(--ui-fg); background: var(--ui-bg);
  }
  .ui__action .i { width: 12px; height: 12px; }
  .ui__body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .ui__pane { display: flex; flex-direction: column; padding: 16px; min-width: 0; }
  .ui__pane + .ui__pane { border-left: 1px solid var(--ui-line); }
  .ui__label { font-size: var(--fs-micro); font-weight: 600; color: var(--ui-fg-2); }
  .ui__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font-size: var(--fs-caption); color: var(--ui-fg-2); }
  .ui__head b { color: var(--ui-fg); }
  .ui__head > :last-child:not(:first-child) { white-space: nowrap; }
  .ui__foot { padding: 10px 16px; border-top: 1px solid var(--ui-line); font-size: var(--fs-micro); color: var(--ui-fg-2); }

  /* Chapter progress: one segment per chapter */
  .segments { display: grid; grid-template-columns: repeat(var(--n, 11), minmax(0, 1fr)); gap: 3px; padding: 10px 16px 0; }
  .segments i { display: block; height: 4px; border-radius: 1px; background: var(--ui-soft); }
  .segments .is-done { background: var(--ui-mark); }
  .segments .is-now { background: var(--ui-fg); }

  /* Transcript: the conversation starts at the top of the pane and the
     Listening bar stays at the foot; spare height (when a side pane is
     taller) sits between them, never above the first message */
  .transcript { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 10px; }
  .transcript > .listening { margin-top: auto; }
  .msg { max-width: 92%; padding: 9px 12px 10px; border-radius: 10px; font-size: 0.8438rem; line-height: 1.5; }
  .msg p { margin: 0; }
  .msg__who { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 3px; font-size: var(--fs-micro); font-weight: 600; color: var(--ui-fg-2); }
  .msg__who span { display: inline-flex; align-items: center; gap: 6px; }
  .msg__who em { font-style: normal; font-weight: 400; }
  .msg__who .i { width: 12px; height: 12px; }
  .msg--rep { align-self: flex-end; background: var(--ui-muted); border-bottom-right-radius: var(--radius-1); }
  .msg--coach { align-self: flex-start; background: var(--ui-coach); border: 1px solid var(--ui-coach-line); border-bottom-left-radius: var(--radius-1); }
  .msg--coach .msg__who { color: var(--ui-accent); }
  .said-wrong { background: var(--ui-strike); text-decoration: line-through; text-decoration-thickness: 1.5px; padding: 0 2px; border-radius: var(--radius-1); }
  .said-right { background: var(--ui-hl); color: var(--ui-accent); font-weight: 500; padding: 0 2px; border-radius: var(--radius-1); }

  .listening {
    display: flex; align-items: center; gap: 10px; margin-top: auto;
    padding: 8px 12px; border: 1px solid var(--ui-line); border-radius: var(--radius-3);
    font-size: var(--fs-micro); color: var(--ui-fg-2);
  }
  .listening b { color: var(--ui-fg); font-weight: 600; }
  .listening__time { margin-left: auto; }
  .wave { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
  .wave i { display: block; width: 2px; background: var(--ui-mark); height: 40%; }
  .wave i:nth-child(2) { height: 75%; } .wave i:nth-child(3) { height: 55%; } .wave i:nth-child(4) { height: 100%; }
  .wave i:nth-child(5) { height: 35%; } .wave i:nth-child(6) { height: 80%; } .wave i:nth-child(7) { height: 50%; }

  /* Score card */
  .score__num { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; line-height: 1; color: var(--ui-fg-2); margin-top: 6px; font-variant-numeric: lining-nums proportional-nums; }
  .score__num span { font-size: 3.5rem; font-weight: 700; color: var(--ui-fg); letter-spacing: -0.045em; margin-right: 2px; }
  .meter { position: relative; height: 6px; margin-top: 12px; border-radius: 3px; background: var(--ui-soft); }
  .meter__fill { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--ui-mark); }
  .meter__pass { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ui-fg); }
  .score__status { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: var(--fs-caption); font-weight: 600; color: var(--ui-ok); }
  .score__sub { margin-top: 14px; margin-bottom: 4px; }
  .kp { border-top: 1px solid var(--ui-line); }
  .kp li {
    display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: start;
    padding: 7px 0; border-bottom: 1px solid var(--ui-soft); font-size: var(--fs-caption); line-height: 1.4;
  }
  .kp .i { width: 13px; height: 13px; margin-top: 2px; }
  .kp em { display: block; font-style: normal; font-size: var(--fs-micro); color: var(--ui-fg-2); }
  .kp .is-ok .i { color: var(--ui-ok-mark); }
  .kp .is-fixed .i { color: var(--ui-fg); }
  .kp .is-missed { color: var(--ui-fg-2); }
  .kp .is-missed .i { color: var(--ui-fg-2); }
  .fact-table { width: 100%; font-size: var(--fs-caption); }
  .fact-table th, .fact-table td { padding: 5px 8px 5px 0; text-align: left; font-weight: 400; border-bottom: 1px solid var(--ui-soft); }
  .fact-table thead th { font-size: var(--fs-micro); font-weight: 600; color: var(--ui-fg-2); border-bottom-color: var(--ui-line); }
  .fact-table tbody th { font-weight: 600; }
  .fact-table .is-wrong { text-decoration: line-through; color: var(--ui-fg-2); }
  .fact-table .is-right { color: var(--ui-accent); font-weight: 600; }
  .trend { display: grid; gap: 6px; margin-top: 6px; }
  .trend li { display: grid; grid-template-columns: 58px minmax(0, 1fr) 24px; align-items: center; gap: 8px; font-size: var(--fs-micro); color: var(--ui-fg-2); }
  .trend i { position: relative; display: block; height: 6px; background: var(--ui-soft); }
  .trend i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--ui-mark); }
  .trend li:first-child i::after { background: var(--ui-fg-3); }
  .trend b { text-align: right; font-weight: 500; color: var(--ui-fg); }

  /* KPI row */
  .kpis { display: grid; grid-template-columns: repeat(var(--kpis, 4), minmax(0, 1fr)); border-bottom: 1px solid var(--ui-line); }
  .kpis > div { padding: 12px 16px; min-width: 0; }
  .kpis > div + div { border-left: 1px solid var(--ui-line); }
  .kpis dt { font-size: var(--fs-micro); line-height: 1.3; color: var(--ui-fg-2); }
  .kpis dd { margin-top: 4px; font-family: var(--font-display); font-size: 1.625rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--ui-fg); font-variant-numeric: lining-nums proportional-nums; }
  .kpis dd small { font-family: var(--font-sans); font-size: var(--fs-caption); font-weight: 400; letter-spacing: 0; color: var(--ui-fg-2); margin-left: 2px; }

  /* Readiness table */
  .ui-table { width: 100%; font-size: 0.8438rem; }
  .ui-table th { padding: 9px 10px 8px; text-align: left; font-size: var(--fs-micro); font-weight: 600; color: var(--ui-fg-2); border-bottom: 1px solid var(--ui-line); white-space: nowrap; }
  .ui-table td, .ui-table tbody th { padding: 9px 10px; border-bottom: 1px solid var(--ui-soft); white-space: nowrap; text-align: left; }
  .ui-table tbody th { font-weight: 500; color: var(--ui-fg); }
  .ui-table th:first-child, .ui-table td:first-child { padding-left: 16px; }
  .ui-table th:last-child, .ui-table td:last-child { padding-right: 16px; }
  .ui-table .num { text-align: right; }
  .cells { display: inline-grid; grid-auto-flow: column; gap: 2px; vertical-align: middle; }
  .cells i { display: block; width: 7px; height: 12px; background: var(--ui-soft); }
  .cells .is-done { background: var(--ui-mark); }
  .cells .is-stuck { background: var(--ui-fg); }
  .st { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-caption); color: var(--ui-fg-2); }
  .st::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--ui-fg-3); }
  .st--ok { color: var(--ui-ok); font-weight: 500; }
  .st--ok::before { background: var(--ui-ok-mark); border-color: var(--ui-ok-mark); }
  .st--stuck { color: var(--ui-fg); font-weight: 500; }
  .st--stuck::before { border-color: var(--ui-fg); background: linear-gradient(90deg, var(--ui-fg) 50%, transparent 50%); }
  .st--due { color: var(--ui-fg); font-weight: 600; }
  .st--due::before { background: var(--ui-fg); border-color: var(--ui-fg); }
  .insight {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: end;
    margin: 12px 16px 16px; padding: 11px 13px; background: var(--ui-coach); border-left: 2px solid var(--ui-mark); border-radius: var(--radius-1);
  }
  .insight__label { grid-column: 1 / -1; font-size: var(--fs-micro); font-weight: 600; color: var(--ui-accent); }
  .insight p { margin-top: 2px; font-size: var(--fs-caption); line-height: 1.5; }
  .insight .ui__action { margin-left: 0; border-color: var(--ui-accent); color: var(--ui-accent); }

  @media (max-width: 760px) {
    .ui__body { grid-template-columns: minmax(0, 1fr); }
    .ui__pane + .ui__pane { border-left: 0; border-top: 1px solid var(--ui-line); }
    .ui__crumb { display: none; }
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kpis > div:nth-child(3) { border-left: 0; }
    .kpis > div:nth-child(n+3) { border-top: 1px solid var(--ui-line); }
    .msg { max-width: 100%; }
    .ui-hide-sm { display: none; }
  }
  @media (max-width: 420px) {
    .ui-hide-xs { display: none; }
    .ui-table th, .ui-table td, .ui-table tbody th { padding-inline: 6px; }
    .ui-table th:first-child, .ui-table td:first-child { padding-left: 12px; }
    .ui-table th:last-child, .ui-table td:last-child { padding-right: 12px; }
    .cells { gap: 1px; }
    .cells i { width: 5px; height: 11px; }
    .insight { grid-template-columns: 1fr; row-gap: 8px; }
    .insight .ui__action { justify-self: start; }
  }

  /* ==========================================================================
     Plans: pricing tiers (names, one line, features; price optional)
     ========================================================================== */
  .plans { display: grid; grid-template-columns: repeat(var(--plans, 3), minmax(0, 1fr)); column-gap: var(--col-gap); }
  .plan { display: flex; flex-direction: column; padding-top: 18px; border-top: 1px solid var(--rule); min-width: 0; }
  .plan__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1.3rem + 0.6vw, 2rem); line-height: 1.05; letter-spacing: -0.03em; }
  .plan__line { margin-top: 8px; font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
  .plan__price { margin-top: 18px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
  .plan__amount { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.25rem, 1.9rem + 1.1vw, 3rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: lining-nums proportional-nums; }
  .plan__unit { font-size: var(--fs-caption); color: var(--fg-2); }
  .plan__alt { margin-top: 6px; font-size: var(--fs-caption); color: var(--fg-2); }
  .plan__features { margin-top: 20px; }
  .plan__features li { position: relative; padding: 9px 0 9px 24px; border-top: 1px solid var(--line); font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
  .plan__features li .i { position: absolute; left: 0; top: 12px; width: 14px; height: 14px; color: var(--mark); }
  .plan__cta { margin-top: auto; padding-top: 24px; }
  @media (max-width: 920px) {
    .plans { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-7); }
  }

  /* Plan rows: compact tier list for an overview (name + line, hairline rows) */
  .plan-rows > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: var(--space-4); padding: 14px 0; border-top: 1px solid var(--line-2); }
  .plan-rows > div:last-child { border-bottom: 1px solid var(--line-2); }
  .plan-rows dt { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
  .plan-rows dd { font-size: var(--fs-small); line-height: 1.55; color: var(--fg-2); }
  @media (max-width: 420px) {
    .plan-rows > div { grid-template-columns: 1fr; gap: 2px; }
  }

  /* ==========================================================================
     FAQ (native details / summary)
     ========================================================================== */
  .faq { border-top: 1px solid var(--rule); }
  .faq__item { border-bottom: 1px solid var(--line-2); }
  .faq__item summary {
    display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-5);
    padding: 18px 0; cursor: pointer; list-style: none;
    font-family: var(--font-display); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); font-weight: 600; letter-spacing: -0.012em; line-height: 1.35;
  }
  .faq__item summary::-webkit-details-marker { display: none; }
  .faq__item summary .i { margin-top: 0.35em; color: var(--fg-2); transition: transform .18s ease; }
  .faq__item[open] summary .i { transform: rotate(180deg); }
  .faq__item summary:hover { color: var(--accent); }
  .faq__item summary:focus-visible { outline-offset: 2px; }
  .faq__body { padding: 0 0 20px; max-width: 68ch; color: var(--fg-2); }
  .faq__body > * + * { margin-top: 10px; }

  /* ==========================================================================
     Tabs ([data-tabs], WAI-ARIA tabs pattern; panels all show without JS)
     ========================================================================== */
  .tabs__list { display: none; flex-wrap: wrap; gap: 0 4px; border-bottom: 1px solid var(--line-2); margin-bottom: var(--space-6); }
  .tabs.is-enhanced .tabs__list { display: flex; }
  .tabs__tab {
    position: relative; padding: 12px 14px 13px; margin-bottom: -1px;
    background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
    font-size: var(--fs-small); font-weight: 500; color: var(--fg-2);
  }
  .tabs__tab:hover { color: var(--fg); }
  .tabs__tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--mark); }
  .tabs__tab:focus-visible { outline-offset: -2px; }
  .tabs__panel + .tabs__panel { margin-top: var(--space-7); }
  .tabs.is-enhanced .tabs__panel + .tabs__panel { margin-top: 0; }
  .tabs.is-enhanced .tabs__panel-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  @media (max-width: 520px) {
    .tabs__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .tabs__tab { flex: none; }
  }

  /* ==========================================================================
     CTA band (closing section, accent surface)
     ========================================================================== */
  .cta-band { padding-block: clamp(64px, 7.6vw, 112px); }
  .cta-band__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); line-height: 1.04; letter-spacing: -0.034em; text-wrap: balance; }
  .cta-band__body { margin-top: 22px; max-width: 46ch; color: var(--fg-2); }
  .cta-band__body strong { color: var(--fg); }
  .cta-band .actions { margin-top: 32px; }
  .cta-band__h { font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; line-height: 1.4; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
  .cta-band__list { counter-reset: inc; }
  .cta-band__list li { counter-increment: inc; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
  .cta-band__list li::before { content: counter(inc); font-family: var(--font-display); font-size: 1rem; font-weight: 700; line-height: 1.45; color: var(--accent); }
  .cta-band__list b { color: var(--fg); }
  .contact-lines { margin-top: var(--space-5); font-size: var(--fs-small); line-height: 1.5; }
  .contact-lines li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; }
  .contact-lines .i { margin-top: 3px; color: var(--mark); }
  .contact-lines a { white-space: nowrap; text-decoration-color: var(--link-line); }
  .contact-lines span { color: var(--fg-2); }
  @media (max-width: 520px) {
    .cta-band .actions .btn { flex: 1 1 100%; }
  }

  /* ==========================================================================
     Forms
     ========================================================================== */
  .form { display: grid; gap: var(--space-5); }
  .form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
  @media (max-width: 640px) {
    .form__row { grid-template-columns: minmax(0, 1fr); }
  }
  .field { display: grid; gap: 6px; min-width: 0; align-content: start; }
  .field__label { font-size: var(--fs-small); font-weight: 600; line-height: 1.4; }
  .field__opt { font-weight: 400; color: var(--fg-2); }
  .field__hint { font-size: var(--fs-caption); line-height: 1.45; color: var(--fg-2); }
  .field__error { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-caption); line-height: 1.45; font-weight: 500; color: var(--danger); }
  .field__error:empty { display: none; }
  .field__error .i { width: 13px; height: 13px; margin-top: 2px; }

  .input, .textarea, .select select {
    width: 100%; min-height: 46px; padding: 10px 14px;
    background: var(--bg-raised); color: var(--fg);
    border: 1px solid var(--line-3); border-radius: var(--radius-2);
    font-size: 1rem; line-height: 1.4;
    transition: border-color .15s ease;
  }
  .textarea { min-height: 132px; resize: vertical; }
  .input::placeholder, .textarea::placeholder { color: var(--slate-9); }
  .input:hover, .textarea:hover, .select select:hover { border-color: var(--fg-2); }
  .input:focus-visible, .textarea:focus-visible, .select select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--fg); }
  .input[aria-invalid="true"], .textarea[aria-invalid="true"], .select select[aria-invalid="true"] { border-color: var(--danger); background: var(--tomato-2); }
  .select { position: relative; }
  .select select { display: block; appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
  .select::after {
    content: ""; position: absolute; right: 14px; top: 50%; width: 15px; height: 15px; margin-top: -7px; pointer-events: none;
    background: var(--fg-2);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M11.16 6.13a.5.5 0 0 1 .7.73l-4 3.75a.5.5 0 0 1-.68 0l-4-3.75a.5.5 0 0 1 .68-.73L7.5 9.56z'/%3E%3C/svg%3E") center / 15px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M11.16 6.13a.5.5 0 0 1 .7.73l-4 3.75a.5.5 0 0 1-.68 0l-4-3.75a.5.5 0 0 1 .68-.73L7.5 9.56z'/%3E%3C/svg%3E") center / 15px no-repeat;
  }

  .fieldset { display: grid; gap: var(--space-3); }
  .fieldset > legend { margin-bottom: var(--space-3); font-size: var(--fs-small); font-weight: 600; }
  .fieldset > legend .field__hint { display: block; margin-top: 2px; font-weight: 400; }

  /* Checkbox and radio rows (native controls, iris mark: iris-9 on paper) */
  .choice-group { display: grid; gap: 2px; }
  .choice-group--cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); column-gap: var(--space-4); }
  .choice {
    display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 10px;
    padding: 9px 0; cursor: pointer; font-size: var(--fs-small); line-height: 1.45;
  }
  .choice input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--mark); cursor: pointer; }
  .choice small { display: block; color: var(--fg-2); font-size: var(--fs-caption); }

  /* Radio cards: a choice that reads as a card */
  .radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--space-3); }
  .radio-card {
    position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start;
    padding: 14px 16px; cursor: pointer;
    background: var(--bg-raised); border: 1px solid var(--line-3); border-radius: var(--radius-2);
    transition: border-color .15s ease, background-color .15s ease;
  }
  .radio-card:hover { border-color: var(--fg-2); }
  .radio-card input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--mark); cursor: pointer; }
  .radio-card__title { display: block; font-weight: 600; font-size: var(--fs-small); line-height: 1.4; }
  .radio-card__desc { display: block; margin-top: 2px; font-size: var(--fs-caption); line-height: 1.45; color: var(--fg-2); }
  .radio-card:has(input:checked) { border-color: var(--accent); background: var(--mark-soft); box-shadow: inset 0 0 0 1px var(--accent); }
  .radio-card:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }

  .form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-5); }
  .form__legal { font-size: var(--fs-caption); line-height: 1.5; color: var(--fg-2); max-width: 56ch; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  /* [data-form-status] live region */
  .form-status { font-size: var(--fs-small); line-height: 1.5; }
  .form-status:empty { display: none; }
  .form-status.is-pending { color: var(--fg-2); }
  .form-status.is-success, .form-status.is-error {
    display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px;
    padding: 12px 14px; border: 1px solid var(--line-2); border-left-width: 2px;
  }
  .form-status.is-success { border-left-color: var(--mark); background: var(--mark-soft); }
  .form-status.is-error { border-color: var(--danger-line); border-left-color: var(--danger); background: var(--tomato-2); color: var(--fg); }
  .form-status .i { margin-top: 3px; }
  .form-status.is-success .i { color: var(--mark); }
  .form-status.is-error .i { color: var(--danger); }

  /* Success panel swapped in for the form ([data-success] target) */
  .form-success { padding: var(--space-6); border: 1px solid var(--line-2); border-top: 3px solid var(--mark); background: var(--bg-raised); }
  .form-success:focus { outline: none; }
  .form-success__title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
  .form-success > :not(.form-success__title) { margin-top: 10px; color: var(--fg-2); }

  /* ==========================================================================
     Prose and legal pages
     ========================================================================== */
  .prose { max-width: 68ch; }
  .prose > * + * { margin-top: 1em; }
  .prose h2 { margin-top: 2.2em; font-size: var(--fs-h3); line-height: 1.15; }
  .prose h3 { margin-top: 1.8em; font-family: var(--font-sans); font-size: var(--fs-h4); font-weight: 600; letter-spacing: 0; }
  .prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
  .prose p, .prose li { color: var(--fg); line-height: 1.7; }
  .prose ul > li, .prose ol > li { position: relative; padding-left: 22px; }
  .prose ul > li + li, .prose ol > li + li { margin-top: 0.45em; }
  .prose ul > li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 6px; background: var(--mark); }
  .prose ol { counter-reset: prose; }
  .prose ol > li { counter-increment: prose; }
  .prose ol > li::before { content: counter(prose) "."; position: absolute; left: 0; color: var(--fg-2); font-variant-numeric: tabular-nums; }
  .prose a { text-decoration: underline; text-decoration-color: var(--link-line); }
  .prose a .i { display: inline-block; width: 12px; height: 12px; margin-left: 5px; vertical-align: -0.05em; color: var(--fg-2); }
  .prose strong { font-weight: 600; }
  .prose .prose__meta { font-size: var(--fs-small); color: var(--fg-2); }

  .legal { --a: 1 / span 3; --b: 5 / span 8; }
  .toc { font-size: var(--fs-small); }
  .toc__title { font-size: var(--fs-caption); font-weight: 600; color: var(--fg-2); padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
  .toc li { border-bottom: 1px solid var(--line); }
  .toc a { display: block; padding: 8px 0; text-decoration: none; line-height: 1.4; }
  .toc a:hover { text-decoration: underline; }
  @media (min-width: 921px) {
    .toc { max-height: calc(100vh - var(--bar-h) - 64px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  }
  @media (max-width: 920px) {
    .toc { display: none; }
  }

  /* ==========================================================================
     Lightbox ([data-lightbox], native dialog)
     ========================================================================== */
  .lightbox {
    width: min(100vw - 32px, 1200px); max-width: none; max-height: calc(100vh - 32px); padding: 0;
    border: 1px solid var(--line-2); border-radius: var(--radius-3);
    background: var(--slate-1); color: var(--fg);
  }
  .lightbox::backdrop { background: var(--brand-edge); opacity: 0.92; }
  .lightbox__inner { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(100vh - 34px); }
  .lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); font-size: var(--fs-caption); color: var(--fg-2); }
  .lightbox__img { width: 100%; height: 100%; max-height: calc(100vh - 160px); object-fit: contain; background: var(--slate-3); }
  .lightbox__cap { padding: 12px 16px; font-size: var(--fs-caption); color: var(--fg-2); }
  .lightbox__nav { display: flex; gap: 8px; }
  .icon-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 38px; min-height: 38px; padding: 0 10px;
    background: var(--bg-raised); border: 1px solid var(--line-3); border-radius: var(--radius-2); cursor: pointer;
    font-size: var(--fs-caption); font-weight: 500; color: var(--fg);
  }
  .icon-btn:hover { border-color: var(--fg); }

  /* ==========================================================================
     Panel and cards (crisp: 1px border, small radius, no shadow)
     ========================================================================== */
  .panel { padding: 18px 20px 6px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-3); min-width: 0; }
  .panel .status-table tr:last-child { border-bottom: 0; }

  .cards { display: grid; grid-template-columns: repeat(var(--cards, 3), minmax(0, 1fr)); gap: var(--space-4); }
  .cards--4 { --cards: 4; }
  @media (max-width: 1080px) { .cards--4 { --cards: 2; } }
  @media (max-width: 640px) { .cards { --cards: 1; } }
  .card {
    position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0;
    padding: clamp(20px, 1.9vw, 28px);
    background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-3);
    transition: border-color .15s ease;
  }
  .card__tag { display: inline-flex; align-items: baseline; gap: 8px; font-size: var(--fs-caption); font-weight: 600; line-height: 1.4; color: var(--fg-2); }
  .card__tag::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--mark); transform: translateY(-1px); }
  /* Optional step number in the tag ("01 Discover"): replaces the square */
  .card__tag:has(.card__n)::before { content: none; }
  .card__n { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent); }
  .card__title { font-family: var(--font-display); font-size: clamp(1.1875rem, 1.1rem + 0.3vw, 1.375rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.018em; text-wrap: balance; }
  .card__title a { text-decoration: none; }
  .card__text { font-size: var(--fs-small); line-height: 1.55; color: var(--fg-2); }
  .card__more { margin-top: auto; padding-top: 6px; color: var(--fg); }
  .card__more .i { transition: transform .18s ease; }
  /* Whole card clickable: the title link stretches over the card */
  .card--link .card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
  .card--link:hover { border-color: var(--mark); }
  .card--link:hover .card__more .i { transform: translateX(3px); }
  .card--link:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
  .card--link .card__title a:focus-visible { outline: none; }

  /* ==========================================================================
     Flow: three to four stages in a row, joined by a rail, each with an
     optional decision chip (Pilot, Rollout, Scale)
     ========================================================================== */
  .flow { display: grid; grid-template-columns: repeat(var(--flow, 3), minmax(0, 1fr)); gap: var(--col-gap); }
  .flow__step { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 30px; min-width: 0; }
  .flow__step::before { content: ""; position: absolute; top: 5px; left: 0; right: calc(-1 * var(--col-gap)); height: 2px; background: var(--line-2); }
  .flow__step:last-child::before { right: 0; }
  .flow__step::after { content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 12px; background: var(--mark); }
  .flow__n { font-size: var(--fs-caption); font-weight: 600; color: var(--fg-2); }
  .flow__name { font-family: var(--font-display); font-size: clamp(1.75rem, 1.45rem + 0.9vw, 2.375rem); font-weight: 700; line-height: 1; letter-spacing: -0.032em; }
  .flow__text { margin-bottom: 6px; font-size: var(--fs-small); line-height: 1.55; color: var(--fg-2); max-width: 42ch; }
  .flow__step .chip { margin-top: auto; }  /* chips line up across stages */
  /* Decision line: text after a diamond, no box (not a button). One .flow__legend
     near the heading explains the diamond; each line carries a .sr "Your decision:" prefix. */
  .flow__decision { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; font-size: var(--fs-small); font-weight: 500; line-height: 1.45; color: var(--fg); }
  .flow__decision::before, .flow__diamond { content: ""; flex: none; width: 8px; height: 8px; margin-inline: 1px; border: 1.5px solid var(--accent); transform: rotate(45deg); }
  .flow__legend { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); line-height: 1.45; color: var(--fg-2); }
  .flow__diamond { display: inline-block; }
  @media (max-width: 760px) {
    .flow { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
    .flow__step { padding: 0 0 28px 30px; }
    .flow__step::before { top: 6px; bottom: 0; left: 5px; right: auto; width: 2px; height: auto; }
    .flow__step:last-child::before { display: none; }
    .flow__step:last-child { padding-bottom: 0; }
  }

  /* Chip: a small rectangular label (never a pill, never a dot) */
  .chip {
    display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; max-width: 100%;
    padding: 5px 10px; border: 1px solid var(--line-2); border-radius: var(--radius-2);
    background: var(--bg-raised); font-size: var(--fs-caption); font-weight: 500; line-height: 1.35; color: var(--fg);
  }
  .chip b { font-weight: 600; white-space: nowrap; }
  .chip--decision::before { content: ""; flex: none; width: 7px; height: 7px; border: 1.5px solid var(--fg); transform: rotate(45deg); }

  /* ==========================================================================
     Assurances: short statements with an icon, four across
     ========================================================================== */
  .assure { display: grid; grid-template-columns: repeat(var(--assure, 4), minmax(0, 1fr)); gap: var(--space-5) var(--col-gap); }
  .assure > li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-content: start; min-width: 0; }
  .assure .i { width: 18px; height: 18px; margin-top: 2px; color: var(--mark); }
  .assure p { font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
  .assure b { display: block; margin-bottom: 2px; color: var(--fg); font-weight: 600; }
  @media (max-width: 1080px) { .assure { --assure: 2; } }
  @media (max-width: 520px) { .assure { --assure: 1; } }

  /* Facts line: short facts joined by middots, wraps cleanly */
  .facts-line { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }
  .facts-line li { white-space: nowrap; }
  .facts-line li + li::before { content: "·"; margin: 0 10px; color: var(--line-3); }
  .facts-line b { color: var(--fg); font-weight: 600; }
  @media (max-width: 760px) {
    .facts-line { flex-direction: column; gap: 2px; }
    .facts-line li + li::before { content: none; }
  }

  /* ==========================================================================
     Footer (dark surface: the partial carries surface--dark)
     ========================================================================== */
  .site-footer { padding-top: clamp(56px, 6vw, 88px); border-top: 1px solid var(--line); }
  /* After a light last section (legal pages) the colour change is the edge: no extra line */
  main:not(:has(> :last-child:is(.surface--dark, .surface--accent))) + .site-footer { border-top-color: transparent; }
  .site-footer .wordmark--lg { font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem); }
  .footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--space-7); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand p { margin-top: 14px; max-width: 32ch; font-size: var(--fs-small); color: var(--fg-2); }
  .footer__nav { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--col-gap); }
  .footer__group h2 {
    margin-bottom: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2);
    font-family: var(--font-sans); font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0; line-height: 1.4; color: var(--fg-2);
  }
  .footer__group li { padding: 5px 0; font-size: var(--fs-small); line-height: 1.45; }
  .footer__group a { text-decoration: none; }
  .footer__group a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .footer__group a .i { display: inline-block; margin-left: 4px; vertical-align: -1px; color: var(--fg-2); }
  .footer__group a[href^="mailto:"], .footer__group a[href^="tel:"] { white-space: nowrap; }
  .footer__group--contact { grid-column: 1 / -1; }
  .footer__muted { color: var(--fg-2); font-size: 0.875rem; }
  .footer__base {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
    margin-top: clamp(48px, 5vw, 72px); padding: 20px 0 28px; border-top: 1px solid var(--line-2);
    font-size: var(--fs-caption); color: var(--fg-2);
  }
  .footer__copy { margin-right: auto; }
  .footer__legal, .footer__social { display: flex; flex-wrap: wrap; gap: 6px 20px; }
  .footer__base a { display: inline-flex; align-items: center; gap: 4px; color: var(--fg); text-decoration: none; }
  .footer__base a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .footer__base .i { width: 12px; height: 12px; color: var(--fg-2); }
  /* Four link groups (Services, Products, Industries, Company) + Contact:
     2 columns on phones, 4 on tablets (Contact on its own row), 4 + Contact on desktop */
  @media (min-width: 761px) {
    .footer__nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }
  @media (min-width: 1181px) {
    .footer__brand { grid-column: 1 / span 3; }
    .footer__nav { grid-column: 4 / span 9; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.45fr); }
    .footer__group--contact { grid-column: -2 / -1; }
  }
  /* Base row: copyright and Back to top share the first line, links wrap below */
  @media (max-width: 1080px) {
    .footer__base { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; }
    .footer__copy { grid-column: 1 / span 2; margin-right: 0; }
    .footer__base > p:last-child { grid-column: 3; grid-row: 1; }
    .footer__legal { grid-column: 1; }
    .footer__social { grid-column: 2 / -1; }
  }
  @media (max-width: 520px) {
    .footer__legal, .footer__social { grid-column: 1 / -1; }
  }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
@layer utilities {
  [hidden] { display: none; }
  .sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  .nowrap { white-space: nowrap; }
  .op-top { object-position: 50% 22%; }
  .mt-0 { margin-top: 0; }
  .mt-4 { margin-top: var(--space-4); }
  .mt-5 { margin-top: var(--space-5); }
  .mt-6 { margin-top: var(--space-6); }
  .mt-7 { margin-top: var(--space-7); }
  .max-36 { max-width: 36ch; }
  .max-48 { max-width: 48ch; }
}

/* Reduced motion: the only place !important is allowed */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .skip-link, .site-header, .drawer, .menu-toggle, .site-footer, .cta-band .actions, .toc { display: none; }
  body { background: var(--slate-1); }
  .split > * { grid-column: 1 / -1; }
}
