/* ============================================================================
   Cortessa marketing site — self-contained styles.
   No CDNs, no trackers. Typefaces are SELF-HOSTED (IBM Plex Sans / Plex Mono,
   OFL-licensed, vendored in assets/fonts/ — the same faces the product ships),
   with a system-stack fallback. Light/dark aware; WCAG 2.2 AA; reduced-motion
   respected.

   DESIGN SYSTEM (2026-08-26 "controlled document" overhaul)
   ---------------------------------------------------------
   Direction: the visual grammar of high-assurance engineering documentation —
   hairline rules, monospaced designators, tabular figures, evidence lines set
   like test-report footnotes, a title-block footer — delivered with the
   restraint of the top defence-technology marques: large light-weight display
   type with tight tracking, a monochrome ground with one surgical accent,
   zero border-radius, zero drop shadows, a dark opening chapter.

     Display   IBM Plex Sans 400 at large sizes, tracking −0.02…−0.03em.
               Weight 600 is reserved for small UI (buttons, <strong>).
     Utility   IBM Plex Mono, uppercase, letter-spaced — designators,
               evidence labels, proof tags, nav, table headers.
     Ground    paper #fbfcfd · ink #10161d — plus the constant brand-navy
               #0b121c chapters where the cyan lives.

   CRITICAL contrast rule (accessibility, carried over): bright cyan #5cd2e6
   is a DARK-BACKGROUND-ONLY accent — 1.78:1 on white, it fails WCAG. It
   appears only on navy contexts (header, hero, .invert chapters, footer).
   On light sections, interactive ink is steel navy.
   ============================================================================ */

/* ---- Vendored brand faces (match the product console) ---------------------
   Weights on disk: Sans 400/500/600 · Mono 400/600. There is no 700 file —
   nothing may ask for 700, or browsers synthesise a faux bold.               */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/PlexSans-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/PlexSans-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/PlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/PlexMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/PlexMono-SemiBold.woff2") format("woff2");
  font-weight: 600 700; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light dark;

  /* ---- Type families ------------------------------------------------------ */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "Cascadia Code",
               Menlo, Consolas, monospace;

  /* ---- Spacing scale (8px base) ------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* ---- Type scale --------------------------------------------------------- */
  --fs-mono-xs: 0.6875rem;  /* 11 — designators, fine labels                  */
  --fs-mono-sm: 0.75rem;    /* 12 — evidence lines, table heads               */
  --fs-100: 0.875rem;       /* 14 — fine print                                */
  --fs-200: 1rem;           /* 16 — small                                     */
  --fs-300: 1.0625rem;      /* 17 — body                                      */
  --fs-400: 1.3125rem;      /* 21 — h4 / emphasized                           */

  /* Display sizes: weight 400, tight tracking — scale carries hierarchy.     */
  --h1: clamp(2.6rem, 1.5rem + 5vw, 4.75rem);        /* 41 → 76 */
  --h2: clamp(1.9rem, 1.35rem + 2.4vw, 3rem);        /* 30 → 48 */
  --h3: clamp(1.3rem, 1.15rem + 0.7vw, 1.625rem);    /* 21 → 26 */
  --lede: clamp(1.125rem, 1.05rem + 0.45vw, 1.375rem);
  --stat: clamp(2.4rem, 1.8rem + 2.6vw, 4rem);       /* data-table numerals   */

  --track-display: -0.025em;
  --track-mono: 0.14em;

  /* ---- Layout ------------------------------------------------------------- */
  --maxw: 78rem;                                     /* ~1248px container     */
  --measure: 64ch;
  --section-pad: clamp(3.75rem, 8vw, 7rem);
  --gap: clamp(1rem, 2.5vw, 2rem);
  --gutter: clamp(1.25rem, 5vw, 2.5rem);

  /* ---- Edges & motion — a document has rules, not shadows ---------------- */
  --hairline: 1px;
  --transition: 200ms cubic-bezier(.4, 0, .2, 1);

  /* ---- Light theme (default) ---------------------------------------------- */
  --bg: #fbfcfd;
  --bg-band: #f2f5f7;
  --surface: #ffffff;
  --border: #d9e0e6;
  --border-strong: #aeb9c4;
  --rule: #10161d;            /* strong document rules on light               */
  --text: #10161d;
  --text-muted: #4c5866;
  --accent: #12395c;          /* steel navy interactive ink; ~9:1 on paper    */
  --accent-strong: #0b121c;
  --accent-ink: #ffffff;
  --focus: #0b3352;

  --verified: #0b5c6b;
  --draft: #8a5a00;
  --refused: #a12222;

  /* ---- Constant brand-navy chrome (header, hero, .invert, footer) --------
     Fixed across themes so bright cyan is only ever on navy.                 */
  --nav-bg: #0b121c;
  --nav-bg-raise: #0e1622;
  --nav-surface: #131e2c;
  --nav-text: #e8eef4;
  --nav-muted: #b7c4d2;
  --nav-border: #24344a;
  --nav-rule: #3a5070;
  --nav-accent: #5cd2e6;
  --nav-accent-ink: #05222b;
  --nav-focus: #7fe0f0;

  --nav-verified: #5cd2e6;
  --nav-draft: #e6b74e;
  --nav-refused: #f28b8b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b121c;
    --bg-band: #101926;
    --surface: #131e2c;
    --border: #24344a;
    --border-strong: #3a5070;
    --rule: #8fa5bd;
    --text: #e8eef4;
    --text-muted: #aeb9c7;
    --accent: #5cd2e6;
    --accent-strong: #5cd2e6;
    --accent-ink: #05222b;
    --focus: #7fe0f0;

    --verified: #5cd2e6;
    --draft: #e6b74e;
    --refused: #f28b8b;
  }
}

/* ============================================================================
   Base
   ============================================================================ */
* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
  scrollbar-color: var(--border-strong) transparent;
}

/* Cross-page transitions: a quiet crossfade, with the chrome held steady.
   Progressive — engines without the at-rule simply navigate. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
.site-header { view-transition-name: site-header; }
.site-footer { view-transition-name: site-footer; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-300);
  line-height: 1.55;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  hanging-punctuation: first allow-end;
}

/* Paragraph-level line breaking: no runts where the engine supports it. */
p, li, figcaption, dd { text-wrap: pretty; }

/* Display type: weight 400, tight tracking. Hierarchy comes from scale.      */
h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: var(--track-display);
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: var(--h1); margin: 0 0 var(--space-5); }
h2 { font-size: var(--h2); margin: 0 0 var(--space-5); }
h3 { font-size: var(--h3); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 var(--space-3); }
h4 { font-size: var(--fs-400); line-height: 1.25; letter-spacing: -0.005em; margin: 0 0 var(--space-2); }

p { margin: 0 0 var(--space-4); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 600; }

img, svg { max-width: 100%; height: auto; }

::selection { background: #5cd2e6; color: #05222b; }

[id] { scroll-margin-top: 5.5rem; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.measure { max-width: var(--measure); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ============================================================================
   Utility type: the mono voice — designators, labels, evidence
   ============================================================================ */
.mono-label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  font-weight: 400;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Section designator row: hairline rule + "01 / NAME" + optional annotation.
   The numbering is real — each page reads as a numbered document.            */
.desig {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-3);
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
/* The rule is a pseudo-element so it can be DRAWN on reveal (scaleX),
   which a border cannot. Full-width by default — inert without JS.        */
.desig::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--hairline);
  background: var(--rule);
  transform-origin: left center;
}
.desig .mono-label { color: var(--text); }
.desig .desig-note { color: var(--text-muted); text-align: right; }
.invert .desig::before { background: var(--nav-rule); }
.invert .desig .mono-label { color: var(--nav-text); }
.invert .desig .desig-note { color: var(--nav-muted); }

/* Evidence block: a test-report footnote. Mono tag + hairline + qualifier.   */
.evidence {
  max-width: var(--measure);
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: var(--hairline) solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  line-height: 1.7;
  color: var(--text-muted);
}
.evidence::before {
  content: "EVIDENCE";
  display: block;
  font-size: var(--fs-mono-xs);
  font-weight: 600;
  letter-spacing: var(--track-mono);
  color: var(--text);
  margin-bottom: var(--space-2);
}
.invert .evidence { border-top-color: var(--nav-rule); color: var(--nav-muted); }
.invert .evidence::before { color: var(--nav-accent); }

/* ============================================================================
   Skip link
   ============================================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--nav-accent);
  color: var(--nav-accent-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ============================================================================
   Header — constant navy chrome, mono nav
   ============================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  border-bottom: var(--hairline) solid var(--nav-border);
}
.site-header.is-scrolled { border-bottom-color: var(--nav-rule); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: var(--space-4);
  transition: min-height var(--transition);
}
/* The chrome condenses once the document is in motion. */
.site-header.is-scrolled .header-inner { min-height: 3.5rem; }
.brand-logo { transition: width var(--transition), height var(--transition); }
.site-header.is-scrolled .brand-logo { width: 1.75rem; height: 1.75rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}
.brand-logo { width: 2.1rem; height: 2.1rem; display: block; }
.brand-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nav-text);
}

.site-nav { display: flex; align-items: center; }

.nav-menu {
  list-style: none;
  display: flex;
  gap: var(--space-1);
  align-items: center;
  margin: 0; padding: 0;
}
.nav-menu a {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--nav-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-menu a:hover { color: #ffffff; }
.nav-menu a[aria-current="page"] {
  color: var(--nav-text);
  border-bottom-color: var(--nav-accent);
}

.nav-cta {
  margin-left: var(--space-3);
  border: var(--hairline) solid var(--nav-accent) !important;
  color: var(--nav-accent) !important;
  border-bottom-width: var(--hairline) !important;
}
.nav-cta:hover {
  background: var(--nav-accent);
  color: var(--nav-accent-ink) !important;
}

.site-header :focus-visible { outline-color: var(--nav-focus); }

.nav-toggle {
  display: none;
  position: relative;
  width: 2.75rem; height: 2.75rem;
  background: transparent;
  border: var(--hairline) solid var(--nav-border);
  cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1.25rem; height: 2px;
  background: var(--nav-text);
  transform: translateX(-50%);
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

@media (max-width: 72rem) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--nav-bg);
    border-bottom: var(--hairline) solid var(--nav-border);
    padding: var(--space-3) var(--gutter) var(--space-5);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: var(--space-3) var(--space-2); border-bottom: none; }
  .nav-menu a[aria-current="page"] { color: var(--nav-accent); }
  .nav-cta { margin-left: 0; margin-top: var(--space-3); text-align: center; }
}

/* ============================================================================
   Buttons — rectangular, mono-labelled. A control in a technical console.
   ============================================================================ */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: var(--hairline) solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform 80ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent-strong);
  color: var(--accent-ink);
  border-color: var(--accent-strong);
}
.btn-primary:hover { background: #1d3049; border-color: #1d3049; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text); }

/* Buttons inside navy contexts flip to the cyan/navy pairing. */
.invert .btn-primary, .hero .btn-primary, .page-hero .btn-primary, .cta-band .btn-primary {
  background: var(--nav-accent);
  color: var(--nav-accent-ink);
  border-color: var(--nav-accent);
}
.invert .btn-primary:hover, .hero .btn-primary:hover, .page-hero .btn-primary:hover, .cta-band .btn-primary:hover {
  background: #7fe0f0; border-color: #7fe0f0;
}
.invert .btn-ghost, .hero .btn-ghost, .page-hero .btn-ghost, .cta-band .btn-ghost {
  color: var(--nav-text);
  border-color: var(--nav-rule);
}
.invert .btn-ghost:hover, .hero .btn-ghost:hover, .page-hero .btn-ghost:hover, .cta-band .btn-ghost:hover {
  border-color: var(--nav-accent);
  color: var(--nav-accent);
}

@media (prefers-color-scheme: dark) {
  .btn-primary { color: #05222b; }
  .btn-primary:hover { background: #7fe0f0; border-color: #7fe0f0; }
}

.text-link {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.text-link::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.45em;
  transition: transform var(--transition);
}
.text-link:hover { text-decoration: underline; }
.text-link:hover::after { transform: translateX(0.3em); }
.invert .text-link { color: var(--nav-accent); }

/* ============================================================================
   Sections & chapters
   ============================================================================ */
.section { padding-block: var(--section-pad); }

.band { background: var(--bg-band); }

/* Full navy chapter — where the cyan does its work. Faint guilloche texture:
   the security-print motif from the product's certification surfaces.        */
.invert {
  background-color: var(--nav-bg);
  background-image: url("../img/guilloche_tile.svg");
  background-size: 64px 64px;
  color: var(--nav-text);
}
.invert h1, .invert h2, .invert h3, .invert h4 { color: var(--nav-text); }
.invert p { color: var(--nav-text); }
.invert .section-intro { color: var(--nav-muted); }
.invert a { color: var(--nav-accent); }
.invert .mono-label { color: var(--nav-muted); }
.invert :focus-visible { outline-color: var(--nav-focus); }

.section-intro {
  max-width: var(--measure);
  color: var(--text-muted);
  font-size: var(--lede);
  line-height: 1.55;
}
.invert .section-intro { color: var(--nav-muted); }

/* ============================================================================
   Hero — dark opening chapter with the guilloche rosette
   ============================================================================ */
.hero {
  position: relative;
  background: var(--nav-bg);
  color: var(--nav-text);
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero h1 { color: var(--nav-text); max-width: 16ch; }
.hero .mono-label { color: var(--nav-accent); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 18rem;
}
/* The rosette: the product's certification guilloche, faint, behind the mark */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: url("../img/guilloche.svg") center / contain no-repeat;
  opacity: 0.5;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-visual::before { animation: rosette 360s linear infinite; }
  @keyframes rosette { to { transform: rotate(1turn); } }
}
/* Registration brackets: four corner ticks framing the mark, as on a plate. */
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 4%;
  pointer-events: none;
  background:
    linear-gradient(var(--nav-rule), var(--nav-rule)) top left    / 1.25rem 1px no-repeat,
    linear-gradient(var(--nav-rule), var(--nav-rule)) top left    / 1px 1.25rem no-repeat,
    linear-gradient(var(--nav-rule), var(--nav-rule)) top right   / 1.25rem 1px no-repeat,
    linear-gradient(var(--nav-rule), var(--nav-rule)) top right   / 1px 1.25rem no-repeat,
    linear-gradient(var(--nav-rule), var(--nav-rule)) bottom left / 1.25rem 1px no-repeat,
    linear-gradient(var(--nav-rule), var(--nav-rule)) bottom left / 1px 1.25rem no-repeat,
    linear-gradient(var(--nav-rule), var(--nav-rule)) bottom right/ 1.25rem 1px no-repeat,
    linear-gradient(var(--nav-rule), var(--nav-rule)) bottom right/ 1px 1.25rem no-repeat;
}
.hero-mark {
  position: relative;
  width: min(58%, 15rem);
  height: auto;
}

.lede {
  font-size: var(--lede);
  line-height: 1.55;
  color: var(--nav-muted);
  max-width: 50ch;
  margin-bottom: var(--space-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0 0 var(--space-6);
}

/* Proof strip: mono readout under the hero actions */
.proof-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0; padding: var(--space-4) 0 0;
  border-top: var(--hairline) solid var(--nav-rule);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.06em;
  color: var(--nav-muted);
}
.proof-strip li { display: flex; align-items: center; }
.proof-strip li + li::before {
  content: "";
  display: inline-block;
  width: 1px; height: 1em;
  background: var(--nav-rule);
  margin-inline: var(--space-4);
}

@media (max-width: 60rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 11rem; }
  .hero-mark { width: min(38%, 10rem); }
  .proof-strip { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .proof-strip li + li::before { display: none; }
}

/* ============================================================================
   Contents — the document's own index, set between the cover and chapter 01
   ============================================================================ */
.contents {
  background: var(--nav-bg);
  color: var(--nav-text);
  padding-block: var(--space-5) var(--space-6);
}
.contents-title {
  color: var(--nav-muted);
  margin: 0 0 var(--space-3);
}
.contents-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: var(--hairline) solid var(--nav-rule);
  border-left: var(--hairline) solid var(--nav-border);
}
.contents-list li { border-right: var(--hairline) solid var(--nav-border); border-bottom: var(--hairline) solid var(--nav-border); }
.contents-list a {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--nav-muted);
  transition: color var(--transition), background var(--transition);
}
.contents-list a span { color: var(--nav-accent); }
.contents-list a:hover { color: var(--nav-text); background: var(--nav-bg-raise); }
.contents :focus-visible { outline-color: var(--nav-focus); }
@media (max-width: 60rem) { .contents-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) { .contents-list { grid-template-columns: 1fr; } }

/* Sub-page hero: same dark chapter, shorter. */
.page-hero {
  background: var(--nav-bg);
  color: var(--nav-text);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
}
.page-hero h1 { color: var(--nav-text); max-width: 20ch; }
.page-hero .mono-label { color: var(--nav-accent); }
.page-hero .lede { margin-bottom: 0; }

/* ============================================================================
   Proof tags — the product's three states, always mono
   ============================================================================ */
.proof-tag {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.proof-tag.verified { color: var(--verified); }
.proof-tag.draft { color: var(--draft); }
.proof-tag.refused { color: var(--refused); }
.invert .proof-tag.verified, .hero .proof-tag.verified { color: var(--nav-verified); }
.invert .proof-tag.draft, .hero .proof-tag.draft { color: var(--nav-draft); }
.invert .proof-tag.refused, .hero .proof-tag.refused { color: var(--nav-refused); }

/* ============================================================================
   Stat table — measured results as a ruled data table, not cards
   ============================================================================ */
.stat-table {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: var(--hairline) solid var(--nav-rule);
}
.stat-table li {
  padding: var(--space-5) var(--space-5) var(--space-5) 0;
  border-bottom: var(--hairline) solid var(--nav-border);
}
.stat-table li + li { border-left: var(--hairline) solid var(--nav-border); padding-left: var(--space-5); }
.stat-num {
  display: block;
  font-size: var(--stat);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--nav-accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-3);
}
.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  line-height: 1.65;
  color: var(--nav-muted);
}
.stat-note {
  margin-top: var(--space-5);
  max-width: var(--measure);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  line-height: 1.65;
  color: var(--nav-muted);
}
@media (max-width: 64rem) {
  .stat-table { grid-template-columns: 1fr 1fr; }
  .stat-table li + li { border-left: none; padding-left: 0; }
  .stat-table li:nth-child(even) { border-left: var(--hairline) solid var(--nav-border); padding-left: var(--space-5); }
}
@media (max-width: 40rem) {
  .stat-table { grid-template-columns: 1fr; }
  .stat-table li:nth-child(even) { border-left: none; padding-left: 0; }
}

/* ============================================================================
   Gate grid — the three dispositions, rule-separated columns
   ============================================================================ */
.gate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--hairline) solid var(--rule);
}
.gate-card {
  padding: var(--space-5) var(--space-5) var(--space-5) 0;
  border-bottom: var(--hairline) solid var(--border);
}
.gate-card + .gate-card { border-left: var(--hairline) solid var(--border); padding-left: var(--space-5); }
.gate-card .proof-tag { display: block; margin-bottom: var(--space-3); }
.gate-card p { margin-bottom: 0; color: var(--text-muted); }
.invert .gate-grid { border-top-color: var(--nav-rule); }
.invert .gate-card { border-color: var(--nav-border); }
.invert .gate-card p { color: var(--nav-muted); }
@media (max-width: 46rem) {
  .gate-grid { grid-template-columns: 1fr; }
  .gate-card + .gate-card { border-left: none; padding-left: 0; }
}

/* ============================================================================
   Capability index — full-width ruled rows with designators, not card boxes
   ============================================================================ */
.cap-index { border-top: var(--hairline) solid var(--nav-rule); }
.cap-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: var(--space-5);
  padding-block: var(--space-6);
  border-bottom: var(--hairline) solid var(--nav-border);
}
.cap-row h3 {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.cap-desig {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  font-weight: 400;
  letter-spacing: var(--track-mono);
  color: var(--nav-accent);
}
/* Product-status system: every capability and artefact carries one of three
   honest labels. SHIPPED / IN DEVELOPMENT / CONCEPT — the site's equivalent
   of the gate's three states.                                               */
.status {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  font-weight: 400;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  border: var(--hairline) solid var(--border-strong);
  padding: 0.15rem 0.5rem;
  white-space: nowrap;
}
.status-shipped { color: var(--verified); }
.status-indev { color: var(--draft); }
.status-concept { color: var(--text-muted); }
.invert .status, .hero .status { border-color: var(--nav-border); }
.invert .status-shipped, .hero .status-shipped { color: var(--nav-verified); }
.invert .status-indev, .hero .status-indev { color: var(--nav-draft); }
.invert .status-concept, .hero .status-concept { color: var(--nav-muted); }
.cap-role {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--nav-muted);
}
.cap-row > p { margin: 0; color: var(--nav-muted); }
.cap-metric {
  margin: 0;
  padding-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  line-height: 1.65;
  color: var(--nav-muted);
}
.cap-metric::before {
  content: "EVIDENCE";
  display: block;
  font-size: var(--fs-mono-xs);
  font-weight: 600;
  letter-spacing: var(--track-mono);
  color: var(--nav-accent);
  margin-bottom: var(--space-2);
}
@media (max-width: 60rem) {
  .cap-row { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* Light-context variant of the evidence-carrying metric (how-it-works page)  */
.section:not(.invert) .cap-metric { color: var(--text-muted); }
.section:not(.invert) .cap-metric::before { color: var(--text); }

/* ============================================================================
   Tier list — assurance modes as a ruled readout
   ============================================================================ */
.tier-list {
  list-style: none;
  margin: 0; padding: 0;
  border-top: var(--hairline) solid var(--nav-rule);
}
.tier-list li {
  display: grid;
  grid-template-columns: minmax(11rem, 16rem) 1fr;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: var(--hairline) solid var(--nav-border);
  color: var(--nav-muted);
}
.tier-list strong {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nav-text);
}
/* On light sections the same component maps to light tokens. */
.section:not(.invert):not(.cta-band) .tier-list { border-top-color: var(--rule); }
.section:not(.invert):not(.cta-band) .tier-list li { border-bottom-color: var(--border); color: var(--text-muted); }
.section:not(.invert):not(.cta-band) .tier-list strong { color: var(--text); }
@media (max-width: 46rem) {
  .tier-list li { grid-template-columns: 1fr; gap: var(--space-1); }
}

/* ============================================================================
   Feature list — ruled rows, mono lead-ins
   ============================================================================ */
.feature-list {
  list-style: none;
  margin: 0; padding: 0;
  max-width: var(--measure);
  border-top: var(--hairline) solid var(--rule);
}
.feature-list li {
  padding-block: var(--space-4);
  border-bottom: var(--hairline) solid var(--border);
  color: var(--text-muted);
}
.feature-list strong { color: var(--text); }
.invert .feature-list { border-top-color: var(--nav-rule); }
.invert .feature-list li { border-bottom-color: var(--nav-border); color: var(--nav-muted); }
.invert .feature-list strong { color: var(--nav-text); }

/* ============================================================================
   Steps — numbered procedure, as in a work instruction
   ============================================================================ */
.steps {
  list-style: none;
  counter-reset: step;
  margin: var(--space-5) 0 var(--space-6);
  padding: 0;
  max-width: var(--measure);
  border-top: var(--hairline) solid var(--rule);
}
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: var(--hairline) solid var(--border);
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 4;
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  color: var(--text-muted);
  line-height: 1.6;
}
/* The counter pseudo-element is a grid item too — pin the real content to
   column 2 or the paragraph falls into the 3.5rem number column.            */
.steps > li > * { grid-column: 2; }
.steps h3, .steps h4 {
  font-size: var(--fs-400);
  letter-spacing: -0.005em;
  margin-bottom: var(--space-1);
}
.steps p { margin-bottom: 0; color: var(--text-muted); }

/* ============================================================================
   Prose, notes
   ============================================================================ */
.prose { max-width: var(--measure); }
.prose p { line-height: 1.65; }
.prose h2 { margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-6); }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 var(--space-5); }
.prose li { margin-bottom: var(--space-2); }
.prose li::marker { color: var(--text-muted); }

/* Ruled data table inside prose (legal pages) */
.prose .table-wrap { overflow-x: auto; margin: 0 0 var(--space-5); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  border-top: var(--hairline) solid var(--rule);
  font-size: var(--fs-200);
}
.prose th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  font-weight: 600;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--text);
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-bottom: var(--hairline) solid var(--border-strong);
}
.prose td {
  vertical-align: top;
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-bottom: var(--hairline) solid var(--border);
  color: var(--text-muted);
}

/* Benchmark matrix — the full-width ruled results table (evidence page).
   Same grammar as the prose table, usable on navy chapters.               */
.matrix { overflow-x: auto; margin-top: var(--space-6); }
.matrix table {
  width: 100%;
  border-collapse: collapse;
  border-top: var(--hairline) solid var(--rule);
  font-size: var(--fs-200);
}
.matrix th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  font-weight: 600;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--text);
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-bottom: var(--hairline) solid var(--border-strong);
}
.matrix td {
  vertical-align: top;
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-bottom: var(--hairline) solid var(--border);
  color: var(--text-muted);
}
.matrix td:first-child { color: var(--text); }
.matrix .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.invert .matrix table { border-top-color: var(--nav-rule); }
.invert .matrix th { color: var(--nav-text); border-bottom-color: var(--nav-rule); }
.invert .matrix td { color: var(--nav-muted); border-bottom-color: var(--nav-border); }
.invert .matrix td:first-child { color: var(--nav-text); }

/* Version line under a legal page title */
.doc-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nav-muted);
  margin: 0;
}

.note {
  max-width: var(--measure);
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border-left: 2px solid var(--rule);
  background: var(--bg-band);
}
.note p { margin: 0; color: var(--text-muted); font-size: var(--fs-200); line-height: 1.65; }
.note-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  font-weight: 600;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.band .note { background: var(--surface); }
.invert .note { border-left-color: var(--nav-accent); background: var(--nav-surface); }
.invert .note p { color: var(--nav-muted); }
.invert .note .note-label { color: var(--nav-text); }

/* ============================================================================
   Sector table — estates as a ruled two-column ledger
   ============================================================================ */
.sector-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: var(--hairline) solid var(--nav-rule);
}
.sector-table article {
  padding: var(--space-5) var(--space-5) var(--space-5) 0;
  border-bottom: var(--hairline) solid var(--nav-border);
}
.sector-table article:nth-child(even) {
  border-left: var(--hairline) solid var(--nav-border);
  padding-left: var(--space-5);
}
.sector-table h3 { margin-bottom: var(--space-2); }
.sector-table p { margin: 0; color: var(--nav-muted); font-size: var(--fs-200); line-height: 1.6; }
@media (max-width: 46rem) {
  .sector-table { grid-template-columns: 1fr; }
  .sector-table article:nth-child(even) { border-left: none; padding-left: 0; }
}

/* ============================================================================
   Defence split
   ============================================================================ */
.defence-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 60rem) { .defence-inner { grid-template-columns: 1fr; } }

/* ============================================================================
   Appliance figures
   ============================================================================ */
.appliance-media { margin: var(--space-6) 0 var(--space-4); }
.appliance-media img { display: block; width: 100%; border: var(--hairline) solid var(--nav-border); }
.appliance-media figcaption, .appliance-thumbs figcaption {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nav-muted);
  padding-top: var(--space-2);
}
.appliance-thumbs {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-4);
}
.appliance-thumbs figure { margin: 0; }
.appliance-thumbs img { display: block; width: 100%; border: var(--hairline) solid var(--nav-border); }
@media (max-width: 46rem) { .appliance-thumbs { grid-template-columns: 1fr; } }

/* ============================================================================
   Console captures — live product screenshots, framed like plates
   ============================================================================ */
.console-shot { margin: var(--space-6) 0 0; }
.console-shot img {
  display: block;
  width: 100%;
  border: var(--hairline) solid var(--border-strong);
}
.invert .console-shot img { border-color: var(--nav-rule); }

/* Plate wrapper: registration crosshairs at opposing corners, as printed
   on a controlled drawing. Decorative — pointer-inert, colour from chrome. */
.plate { position: relative; }
.plate::before, .plate::after {
  content: "";
  position: absolute;
  width: 13px; height: 13px;
  pointer-events: none;
  color: var(--border-strong);
  background:
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}
.invert .plate::before, .invert .plate::after { color: var(--nav-rule); }
.plate::before { top: -7px; left: -7px; }
.plate::after  { bottom: -7px; right: -7px; }

.console-shot figcaption {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  line-height: 1.65;
  color: var(--text-muted);
  padding-top: var(--space-3);
  max-width: var(--measure);
}
.console-shot figcaption::before {
  content: attr(data-label);
  text-transform: uppercase;
  display: block;
  font-size: var(--fs-mono-xs);
  font-weight: 600;
  letter-spacing: var(--track-mono);
  color: var(--text);
  margin-bottom: var(--space-2);
}
.invert .console-shot figcaption { color: var(--nav-muted); }
.invert .console-shot figcaption::before { color: var(--nav-accent); }

/* ============================================================================
   Contact
   ============================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--gap);
  align-items: start;
}
.contact-card {
  border-top: var(--hairline) solid var(--rule);
  padding-top: var(--space-5);
}
.contact-card h2 { font-size: var(--h3); }
.contact-card .mono-label { display: block; margin-bottom: var(--space-3); }

/* Utility spacing (replaces the last inline style attributes — the CSP
   forbids them). */
.gap-top { margin-top: var(--space-4); }
.hero-tall { min-height: 52vh; }
@media (max-width: 56rem) { .contact-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   CTA band
   ============================================================================ */
.cta-band {
  background-color: var(--nav-bg);
  background-image: url("../img/guilloche_tile.svg");
  background-size: 64px 64px;
  color: var(--nav-text);
}
.cta-band h2 { color: var(--nav-text); }
.cta-band p { color: var(--nav-muted); max-width: var(--measure); }
.cta-inner .hero-actions { margin-bottom: 0; }
.cta-band :focus-visible { outline-color: var(--nav-focus); }

/* ============================================================================
   Footer — an engineering title block
   ============================================================================ */
.site-footer {
  background: var(--nav-bg);
  color: var(--nav-muted);
  border-top: var(--hairline) solid var(--nav-border);
  padding-block: var(--space-8) var(--space-6);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: var(--gap);
  padding-bottom: var(--space-7);
}
.footer-brand-row { display: inline-flex; align-items: center; gap: var(--space-3); }
.footer-brand .brand-name { color: var(--nav-text); }
.footer-brand p { margin-top: var(--space-3); color: var(--nav-muted); max-width: 34ch; }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  font-weight: 600;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--nav-text);
  margin: 0 0 var(--space-3);
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: var(--space-2); }
.footer-links a { color: var(--nav-muted); text-decoration: none; }
.footer-links a:hover { color: var(--nav-accent); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--nav-focus); }

/* The title block itself: a bordered field grid, as on a controlled drawing. */
.title-block {
  display: grid;
  grid-auto-flow: column;      /* one row regardless of field count (4 or 5) */
  grid-auto-columns: 1fr;
  border: var(--hairline) solid var(--nav-border);
}
.title-block > div {
  padding: var(--space-3) var(--space-4);
  border-left: var(--hairline) solid var(--nav-border);
}
.title-block > div:first-child { border-left: none; }
.title-block dt {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--nav-muted);
  margin: 0 0 var(--space-1);
}
.title-block dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--nav-text);
}
@media (max-width: 56rem) {
  .footer-inner { grid-template-columns: 1fr; }
  .title-block { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .title-block > div:nth-child(odd) { border-left: none; }
  .title-block > div:nth-child(n+3) { border-top: var(--hairline) solid var(--nav-border); }
}

.footer-fine {
  padding-top: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.06em;
  color: var(--nav-muted);
}
.footer-fine p { margin: 0; }
.footer-fine .footer-statutory { margin-top: var(--space-2); }

/* ============================================================================
   Reveal-on-scroll — progressive; inert without JS and under reduced motion
   ============================================================================ */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 600ms cubic-bezier(.2, .6, .2, 1),
                transform 600ms cubic-bezier(.2, .6, .2, 1);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  /* The section rule draws itself once the chapter is on screen. */
  .js .reveal .desig::before {
    transform: scaleX(0);
    transition: transform 1100ms cubic-bezier(.22, .61, .21, 1) 120ms;
  }
  .js .reveal.is-visible .desig::before { transform: scaleX(1); }

  /* Ruled collections land row by row — a table being typeset, not a page
     fading in. The 2.5s failsafe shows parents, so children can never be
     stuck hidden either.                                                  */
  .js .reveal :is(.stat-table, .gate-grid, .cap-index, .tier-list,
                  .feature-list, .sector-table, .steps) > * {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 550ms cubic-bezier(.2, .6, .2, 1),
                transform 550ms cubic-bezier(.2, .6, .2, 1);
  }
  .js .reveal.is-visible :is(.stat-table, .gate-grid, .cap-index, .tier-list,
                             .feature-list, .sector-table, .steps) > * {
    opacity: 1;
    transform: none;
  }
  .js .reveal.is-visible :is(.stat-table, .gate-grid, .cap-index, .tier-list,
                             .feature-list, .sector-table, .steps) > :nth-child(1) { transition-delay: 100ms; }
  .js .reveal.is-visible :is(.stat-table, .gate-grid, .cap-index, .tier-list,
                             .feature-list, .sector-table, .steps) > :nth-child(2) { transition-delay: 170ms; }
  .js .reveal.is-visible :is(.stat-table, .gate-grid, .cap-index, .tier-list,
                             .feature-list, .sector-table, .steps) > :nth-child(3) { transition-delay: 240ms; }
  .js .reveal.is-visible :is(.stat-table, .gate-grid, .cap-index, .tier-list,
                             .feature-list, .sector-table, .steps) > :nth-child(4) { transition-delay: 310ms; }
  .js .reveal.is-visible :is(.stat-table, .gate-grid, .cap-index, .tier-list,
                             .feature-list, .sector-table, .steps) > :nth-child(5) { transition-delay: 380ms; }
  .js .reveal.is-visible :is(.stat-table, .gate-grid, .cap-index, .tier-list,
                             .feature-list, .sector-table, .steps) > :nth-child(6) { transition-delay: 450ms; }
  .js .reveal.is-visible :is(.stat-table, .gate-grid, .cap-index, .tier-list,
                             .feature-list, .sector-table, .steps) > :nth-child(7) { transition-delay: 520ms; }
  .js .reveal.is-visible :is(.stat-table, .gate-grid, .cap-index, .tier-list,
                             .feature-list, .sector-table, .steps) > :nth-child(n+8) { transition-delay: 590ms; }

  /* Hero load sequence: one orchestrated moment. */
  .hero .rise {
    opacity: 0;
    transform: translateY(16px);
    animation: rise 700ms cubic-bezier(.2, .6, .2, 1) forwards;
  }
  .hero .rise:nth-child(1) { animation-delay: 60ms; }
  .hero .rise:nth-child(2) { animation-delay: 160ms; }
  .hero .rise:nth-child(3) { animation-delay: 260ms; }
  .hero .rise:nth-child(4) { animation-delay: 360ms; }
  .hero-visual { opacity: 0; animation: fade 900ms ease 300ms forwards; }
  .hero .proof-strip { opacity: 0; animation: fade 700ms ease 600ms forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes fade { to { opacity: 1; } }
}

/* ============================================================================
   Print — a controlled document prints like one
   ============================================================================ */
@media print {
  .site-header, .site-footer, .skip-link, .nav-toggle, .hero-actions,
  .cta-band, .hero-visual, .contents { display: none !important; }
  .hero, .page-hero, .invert, .band, body {
    background: #ffffff !important;
    background-image: none !important;
    color: #10161d !important;
  }
  .hero h1, .page-hero h1, .invert h2, .invert h3, .invert p,
  .hero .lede, .page-hero .lede { color: #10161d !important; }
  .section { padding-block: 1.5rem; }
  a { color: #10161d; text-decoration: underline; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  main::after {
    content: "CORTESSA \00b7 cortessa.co.uk \00b7 UNCONTROLLED WHEN PRINTED";
    display: block;
    margin-top: 2rem;
    padding-top: 0.5rem;
    border-top: 1px solid #10161d;
    font-family: "IBM Plex Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.14em;
  }
}

/* Site architecture — one readable topology, no decorative network noise. */
.architecture-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: stretch;
  margin-top: var(--space-6);
  padding: 0;
  list-style: none;
  padding: clamp(1rem, 3vw, 2rem);
  border: var(--hairline) solid var(--rule);
  background: var(--bg-band);
}
.architecture-column {
  min-width: 0;
  padding: var(--space-4);
  border: 1px solid var(--nav-accent);
  background: var(--nav-bg);
  color: var(--nav-text);
}
.architecture-column .mono-label { display: block; margin-bottom: var(--space-3); color: var(--nav-accent); }
.architecture-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 500;
  line-height: 1.55;
}
.architecture-column + .architecture-column::before {
  content: "→";
  position: absolute;
  left: calc(-0.5 * clamp(0.75rem, 2vw, 1.5rem));
  top: 50%;
  color: var(--draft);
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  line-height: 1;
  transform: translate(-50%, -50%);
}
.architecture-column { position: relative; }
@media (max-width: 48rem) {
  .architecture-strip { grid-template-columns: 1fr; }
  .architecture-column + .architecture-column::before {
    left: 50%;
    top: calc(-0.5 * clamp(0.75rem, 2vw, 1.5rem));
    transform: translate(-50%, -50%) rotate(90deg);
  }
}
