/* TrusCodes — Site styles
   Aligned to Deliverable 3 (Implementation Brief) Section 1: Design System.
   Tokens, scale, spacing, components per spec.
*/

:root {
  /* === Colour tokens (per brief) === */
  --c-navy: #1F3A5F;
  --c-navy-deep: #14283F;
  --c-ink: #111827;
  --c-body: #374151;
  --c-muted: #6B7280;
  --c-rule: #E5E7EB;
  --c-rule-strong: #CBD5E1;
  --c-surface: #FAFBFC;
  --c-white: #FFFFFF;
  --c-amber: #F59E0B;
  --c-green: #10B981;

  /* Module accents (per brief: do not introduce new hues; use saturation/lightness shifts of navy/teal/amber/green) */
  --m-brandshield: #1F3A5F;     /* navy */
  --m-certisure: #0F766E;        /* teal-ish, derived */
  --m-labassured: #B45309;       /* amber-deep */
  --m-geoguard: #047857;         /* green-deep */
  --m-tracepro: #1E40AF;         /* indigo-navy */
  --m-engage: #6B21A8;           /* deep, restrained accent */

  /* === Typography === */
  --f-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, ui-monospace, monospace;

  /* === Spacing (8pt scale per brief) === */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 96px;

  /* === Layout === */
  --pad-x: 96px;
  --maxw: 1200px;
  --maxw-prose: 720px;
  --header-h: 72px;
}

/* === Reset === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--c-body);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--c-navy); color: var(--c-white); }

/* === Type scale (per brief) === */
h1, h2, h3, h4, h5 {
  font-family: var(--f-sans);
  color: var(--c-ink);
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(36px, 4.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--c-navy);
}
h2 {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
}
h3 {
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
}
h4 {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
}
h5 {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--c-navy);
}
p { margin: 0; max-width: 70ch; text-wrap: pretty; }
p.lead {
  font-size: 19.5px;
  line-height: 1.55;
  color: var(--c-body);
  max-width: 64ch;
}
.muted { color: var(--c-muted); }
.ink { color: var(--c-ink); }
.navy { color: var(--c-navy); }
strong { font-weight: 600; color: var(--c-ink); }

ul, ol { padding-left: 1.2em; margin: 0; }
ul.bare, ol.bare { list-style: none; padding: 0; margin: 0; }
li { margin-bottom: 6px; }

code, .mono { font-family: var(--f-mono); font-size: 0.92em; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-navy);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

/* === Utility / surface bar (top of every page) === */
.utility {
  background: var(--c-navy);
  color: #C8D1E3;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.utility-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.utility-inner .group { display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap; }
.utility .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-green);
  display: inline-block; vertical-align: middle;
  margin-right: 8px;
  box-shadow: 0 0 0 0 var(--c-green);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.utility a:hover { color: var(--c-white); }

/* === Header (per brief: 72px desktop, 56 mobile, sticky) === */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-rule);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

/* === Brand mark === */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--c-navy);
  flex-shrink: 0;
  white-space: nowrap;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border: 2px solid var(--c-navy);
  border-radius: 5px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  padding: 2.5px;
  gap: 1.5px;
  flex-shrink: 0;
}
.brand-mark > i { display: block; border-radius: 1px; }
.brand-mark > i:nth-child(1) { background: var(--c-navy); }
.brand-mark > i:nth-child(2) { background: #2A7A85; } /* logo teal */
.brand-mark > i:nth-child(3) { background: #D68528; } /* logo amber */
.brand-mark > i:nth-child(4) {
  background: transparent;
  position: relative;
  display: grid;
  place-items: center;
}
.brand-mark > i:nth-child(4)::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 2px solid #4A8A3A;
  border-bottom: 2px solid #4A8A3A;
  transform: rotate(-45deg) translate(1px, -1px);
}
.brand-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-muted);
  border-left: 1px solid var(--c-rule);
  padding-left: 10px;
  margin-left: 4px;
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: var(--s-5);
  flex: 1;
  font-size: 14.5px;
  align-items: center;
  color: var(--c-ink);
  font-weight: 500;
}
.nav-links > a, .nav-links .dropdown > a {
  position: relative;
  padding: 8px 0;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--c-navy); }
.nav-links a[aria-current="page"] { color: var(--c-navy); }
.nav-links a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--c-navy);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  margin-left: 6px;
  opacity: 0.5;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0px);
  left: -16px;
  background: var(--c-white);
  border: 1px solid var(--c-rule);
  padding: 12px;
  display: none;
  min-width: 320px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  z-index: 51;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 4px;
  font-weight: 400;
}
.dropdown-menu a:hover { background: var(--c-surface); }
.dropdown-menu a strong { display: block; font-weight: 600; color: var(--c-ink); font-size: 14px; }
.dropdown-menu a span { display: block; font-size: 12.5px; color: var(--c-muted); margin-top: 2px; line-height: 1.4; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

/* === Buttons (per brief) === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 6px;
  font-family: var(--f-sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-navy); color: var(--c-white); border-color: var(--c-navy); }
.btn-primary:hover { background: var(--c-navy-deep); border-color: var(--c-navy-deep); }
.btn-secondary { background: var(--c-white); color: var(--c-navy); border-color: var(--c-navy); }
.btn-secondary:hover { background: var(--c-navy); color: var(--c-white); }
.btn-ghost { background: transparent; color: var(--c-ink); border-color: var(--c-rule); }
.btn-ghost:hover { border-color: var(--c-navy); color: var(--c-navy); }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--c-navy);
  border-bottom: 1.5px solid var(--c-navy);
  padding-bottom: 2px;
  line-height: 1;
}
.btn-link::after,
.btn-arrow::after {
  content: "→";
  font-family: var(--f-mono);
  display: inline-block;
  transition: transform 0.2s;
}
.btn-link:hover::after,
.btn-arrow:hover::after { transform: translateX(3px); }

/* === Layout containers === */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.container-prose {
  max-width: var(--maxw-prose);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section {
  padding: var(--s-7) var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-tight { padding: var(--s-6) var(--pad-x); }
.section-fullbleed { padding: var(--s-8) 0; }
.section-fullbleed > .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* Section backgrounds */
.bg-surface { background: var(--c-surface); }
.bg-navy { background: var(--c-navy); color: #D8DFEE; }
.bg-ink { background: var(--c-ink); color: #D8DFEE; }
.bg-paper { background: var(--c-white); }

.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4,
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: var(--c-white); }
.bg-navy p, .bg-ink p { color: #C8D1E3; }
.bg-navy .eyebrow, .bg-ink .eyebrow { color: #9DB1D8; }
.bg-navy .muted, .bg-ink .muted { color: #8A96B0; }
.bg-navy strong, .bg-ink strong { color: var(--c-white); }

/* === Hero === */
.hero {
  padding: var(--s-8) var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-7);
  align-items: end;
}
/* ============ FORMS ============ */
.contact-form {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font: 400 15px/1.5 var(--font-sans);
  letter-spacing: normal;
  text-transform: none;
  color: var(--c-ink);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.contact-form textarea { resize: vertical; min-height: 96px; font-family: var(--font-sans); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(58, 95, 159, 0.14);
}
.contact-form button[type="submit"] { align-self: flex-start; margin-top: 4px; }
@media (max-width: 640px) {
  .contact-form .form-row { grid-template-columns: 1fr; }
}

.hero h1 { max-width: 720px; }
.hero .hero-subtagline {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--c-muted);
  max-width: 640px;
}
.hero p.lead { margin-top: var(--s-4); max-width: 640px; }
.hero .hero-actions {
  margin-top: var(--s-6);
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  align-items: center;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--c-rule);
  padding-bottom: 14px;
  margin-bottom: var(--s-7);
  flex-wrap: wrap;
  gap: var(--s-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .accent { color: var(--c-navy); font-weight: 500; }

/* === Page hero (interior) === */
.page-hero {
  padding: var(--s-7) var(--pad-x) var(--s-7);
  max-width: var(--maxw);
  margin: 0 auto;
  border-bottom: 1px solid var(--c-rule);
}
.page-hero h1 { max-width: 800px; margin-bottom: var(--s-4); }
.page-hero p.lead { max-width: 640px; }
.page-hero .hero-actions {
  margin-top: var(--s-5);
  display: flex; gap: var(--s-3); flex-wrap: wrap;
}

.breadcrumbs {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  margin-bottom: var(--s-5);
  display: flex; gap: 6px; flex-wrap: wrap;
}
.breadcrumbs a:hover { color: var(--c-navy); }
.breadcrumbs .sep::before { content: "›"; padding: 0 6px; color: var(--c-rule-strong); }
.breadcrumbs span:last-child { color: var(--c-ink); }

/* === Section header === */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--c-rule);
  flex-wrap: wrap;
}
.section-header h2 { max-width: 640px; }
.section-header .meta {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted);
}

/* === Cards (per brief: 1px border, 4px left accent for emphasis) === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  border: 1px solid var(--c-rule);
  border-left: 4px solid var(--c-navy);
  background: var(--c-white);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  border-radius: 6px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}
.card .card-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.card h3 { letter-spacing: -0.015em; color: var(--c-ink); }
.card p { font-size: 15px; line-height: 1.55; color: var(--c-body); }
.card .card-link {
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: var(--s-3);
  font-weight: 500;
}
.card .card-link::after {
  content: "→";
  transition: transform 0.2s;
}
.card:hover .card-link::after { transform: translateX(4px); }

/* Module accent variants */
.card.m-brandshield { border-left-color: var(--m-brandshield); }
.card.m-certisure   { border-left-color: var(--m-certisure); }
.card.m-labassured  { border-left-color: var(--m-labassured); }
.card.m-geoguard    { border-left-color: var(--m-geoguard); }
.card.m-tracepro    { border-left-color: var(--m-tracepro); }
.card.m-engage      { border-left-color: var(--m-engage); }

/* Soft / no-accent card variant */
.card.soft { border-left: 1px solid var(--c-rule); background: var(--c-surface); }

/* === Callouts === */
.callout {
  border: 1px solid var(--c-rule);
  background: var(--c-surface);
  padding: var(--s-3);
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.55;
  display: flex; gap: var(--s-3); align-items: flex-start;
}
.callout .icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  border-radius: 50%;
}
.callout.note { border-left: 4px solid var(--c-amber); background: #FFFBEB; }
.callout.note .icon { background: var(--c-amber); color: var(--c-white); }
.callout.ok { border-left: 4px solid var(--c-green); background: #ECFDF5; }
.callout.ok .icon { background: var(--c-green); color: var(--c-white); }
.callout.info { border-left: 4px solid var(--c-navy); background: var(--c-surface); }
.callout.info .icon { background: var(--c-navy); color: var(--c-white); }
.callout strong { color: var(--c-ink); }

/* === Prose / long-form article === */
.prose {
  max-width: 720px;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--c-body);
}
.prose > * + * { margin-top: 1.05em; }
.prose p { max-width: none; }
.prose h2 {
  margin-top: 2em;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  border-top: 1px solid var(--c-rule);
  padding-top: 1.4em;
}
.prose h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.prose h3 {
  margin-top: 1.6em;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.prose strong { color: var(--c-ink); font-weight: 600; }
.prose em { font-style: italic; color: var(--c-ink); }
.prose ul, .prose ol { padding-left: 1.4em; max-width: none; }
.prose li { margin-top: 0.4em; }
.prose blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--c-navy);
  font-size: 19px;
  line-height: 1.55;
  color: var(--c-ink);
  font-style: italic;
}
.prose .lede {
  font-size: 21px;
  line-height: 1.5;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  font-weight: 400;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--c-rule);
  margin: 2em 0;
}

/* Article header / meta block */
.article-header {
  border-top: 4px solid var(--c-navy);
  padding-top: var(--s-5);
  margin-bottom: var(--s-6);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-navy);
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-rule);
}
.article-meta .item { display: flex; flex-direction: column; gap: 4px; }
.article-meta .label { color: var(--c-muted); font-weight: 500; }
.article-meta .value { color: var(--c-ink); font-weight: 600; }

/* Two-column article: TOC + body */
.article-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--s-7);
  align-items: start;
}
.article-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article-toc .toc-label {
  color: var(--c-muted);
  font-weight: 500;
  margin-bottom: var(--s-3);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-rule);
}
.article-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.article-toc li { counter-increment: toc; margin: 0; }
.article-toc a {
  display: block;
  padding: 8px 0;
  color: var(--c-body);
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -14px;
  transition: color 0.15s, border-color 0.15s;
}
.article-toc a::before {
  content: counter(toc, decimal-leading-zero) "  ";
  color: var(--c-navy);
  font-weight: 600;
}
.article-toc a:hover { color: var(--c-ink); border-left-color: var(--c-rule); }

@media (max-width: 1100px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { position: static; }
}

/* Bio card (team page) */
.bio {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--c-rule);
}
.bio:first-of-type { border-top: 0; padding-top: 0; }
.bio .bio-side {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.bio .bio-name {
  font-family: var(--f-sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--c-ink);
  text-transform: none;
  margin-bottom: 6px;
}
.bio .bio-role {
  color: var(--c-navy);
  font-weight: 600;
  margin-bottom: var(--s-3);
}
.bio .bio-tag {
  display: block;
  color: var(--c-muted);
  margin-top: 4px;
  font-weight: 500;
}
.bio .bio-body p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--c-body);
  max-width: none;
}
.bio .bio-body p + p { margin-top: 0.9em; }
.bio .bio-body strong { color: var(--c-ink); font-weight: 600; }
.bio .bio-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s-3);
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-navy);
  font-weight: 600;
}
.bio .bio-link::after { content: "→"; }

@media (max-width: 800px) {
  .bio { grid-template-columns: 1fr; gap: var(--s-3); }
}

/* === Tables === */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  border: 1px solid var(--c-rule);
}
.spec-table th, .spec-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-rule);
}
.spec-table thead th {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-navy);
  font-weight: 600;
  background: var(--c-surface);
  border-bottom: 1.5px solid var(--c-navy);
}
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table tbody tr:hover { background: var(--c-surface); }
.spec-table td strong { color: var(--c-ink); font-weight: 600; }
.spec-table .num { font-family: var(--f-mono); color: var(--c-navy); font-weight: 500; }

/* Comparison table emphasis */
.spec-table .yes { color: var(--c-green); font-weight: 600; }
.spec-table .no  { color: var(--c-amber); font-weight: 600; }

/* === Stat row === */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1.5px solid var(--c-navy);
  border-bottom: 1px solid var(--c-rule);
}
.stat {
  padding: var(--s-5) var(--s-4);
  border-right: 1px solid var(--c-rule);
}
.stat:last-child { border-right: 0; }
.stat .stat-num {
  font-family: var(--f-sans);
  font-size: 48px;
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1;
  color: var(--c-navy);
}
.bg-navy .stat .stat-num, .bg-ink .stat .stat-num { color: var(--c-white); }
.stat .stat-label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  margin-top: var(--s-3);
}
.bg-navy .stat .stat-label, .bg-ink .stat .stat-label { color: #8A96B0; }
.bg-navy .stat, .bg-ink .stat { border-color: rgba(255,255,255,0.12); }

/* === Pills === */
.pill {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--c-rule-strong);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  background: var(--c-white);
}
.pill.green { border-color: var(--c-green); color: var(--c-green); }
.pill.amber { border-color: var(--c-amber); color: var(--c-amber); }
.pill.navy  { border-color: var(--c-navy);  color: var(--c-navy);  }

/* === Process / steps === */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1.5px solid var(--c-navy);
}
.process .step {
  padding: var(--s-4) var(--s-4) var(--s-5) 0;
  border-right: 1px solid var(--c-rule);
  position: relative;
}
.process .step:last-child { border-right: 0; padding-right: 0; }
.process .step-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-navy);
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: var(--s-2);
}
.process .step h4 { font-size: 18px; margin-bottom: var(--s-2); }
.process .step p { font-size: 14.5px; color: var(--c-body); }

/* === Two-column text === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--s-7);
}
.two-col .col-meta { padding-top: 6px; }
.two-col h2 { margin-bottom: var(--s-3); }

/* === FAQ === */
.faq-list { border-top: 1px solid var(--c-rule); }
.faq-item {
  border-bottom: 1px solid var(--c-rule);
  padding: var(--s-4) 0;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--s-4);
}
.faq-item .faq-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-muted);
  letter-spacing: 0.1em;
  padding-top: 4px;
}
.faq-item h3 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: var(--s-3); color: var(--c-ink); }
.faq-item p { margin-bottom: var(--s-2); }
.faq-item p:last-child { margin-bottom: 0; }

/* === Placeholder graphic === */
.placeholder {
  background:
    repeating-linear-gradient(135deg, transparent, transparent 8px, rgba(31, 58, 95, 0.06) 8px, rgba(31, 58, 95, 0.06) 9px),
    var(--c-surface);
  border: 1px solid var(--c-rule);
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-height: 240px;
  border-radius: 6px;
  text-align: center;
  padding: var(--s-3);
}
.placeholder span {
  background: var(--c-white);
  padding: 8px 14px;
  border: 1px solid var(--c-rule);
  border-radius: 4px;
  display: inline-block;
}

/* === CTA strip === */
.cta-strip {
  background: var(--c-ink);
  color: var(--c-white);
  padding: var(--s-8) var(--pad-x);
}
.cta-strip-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--s-7);
  align-items: end;
}
.cta-strip h2 { color: var(--c-white); max-width: 560px; }
.cta-strip p { color: #C8D1E3; margin-top: var(--s-3); max-width: 480px; }
.cta-strip .cta-actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  align-items: flex-start;
}
.cta-strip .btn-primary { background: var(--c-white); color: var(--c-ink); border-color: var(--c-white); }
.cta-strip .btn-primary:hover { background: #F3F4F6; }
.cta-strip .btn-ghost { border-color: rgba(255,255,255,0.3); color: var(--c-white); }
.cta-strip .btn-ghost:hover { border-color: var(--c-white); }

/* === Footer === */
.footer {
  background: var(--c-navy);
  color: #C8D1E3;
  padding: var(--s-8) var(--pad-x) var(--s-6);
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer h4 {
  color: var(--c-white);
  font-size: 12px;
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: var(--s-4);
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; color: #C8D1E3; transition: color 0.15s; }
.footer ul a:hover { color: var(--c-white); }
.footer-bottom {
  max-width: var(--maxw);
  margin: var(--s-5) auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: #8A96B0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.footer-bottom a { color: #8A96B0; }
.footer-bottom a:hover { color: var(--c-white); }
.footer-bottom .legal-links { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.footer-brand-row {
  display: flex; flex-direction: column; gap: var(--s-3);
}
.footer-brand-row .brand { color: var(--c-white); }
.footer-brand-row .brand-mark { border-color: var(--c-white); }
.footer-brand-row .brand-tag { color: #8A96B0; border-color: rgba(255,255,255,0.2); }
.footer-brand-row p {
  color: #8A96B0;
  font-size: 13px;
  max-width: 36ch;
  line-height: 1.55;
}
.footer-entity {
  font-family: var(--f-mono);
  font-size: 11px;
  color: #8A96B0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.7;
}
.footer-entity strong { color: #C8D1E3; font-weight: 600; }

/* === Helpers === */
.divider { height: 1px; background: var(--c-rule); border: 0; margin: 0; }
.spacer-4 { height: var(--s-4); }
.spacer-6 { height: var(--s-6); }
.spacer-7 { height: var(--s-7); }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 16px; } .gap-4 { gap: 24px; } .gap-5 { gap: 32px; } .gap-6 { gap: 48px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 16px; } .mt-4 { margin-top: 24px; } .mt-5 { margin-top: 32px; } .mt-6 { margin-top: 48px; } .mt-7 { margin-top: 64px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 16px; } .mb-4 { margin-bottom: 24px; } .mb-5 { margin-bottom: 32px; } .mb-6 { margin-bottom: 48px; }
.text-center { text-align: center; }
.max-w-prose { max-width: 64ch; }

/* Section accent rule under H2 (per brief) */
.h2-rule {
  width: 32px;
  height: 2px;
  background: var(--c-navy);
  margin-bottom: var(--s-3);
}

/* === Reveal on scroll === */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* === Module signature header bar === */
.module-bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--c-rule);
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-muted);
}
.module-bar .swatch {
  width: 16px; height: 16px; border-radius: 3px;
  flex-shrink: 0;
}
.module-bar .swatch.brandshield { background: var(--m-brandshield); }
.module-bar .swatch.certisure   { background: var(--m-certisure); }
.module-bar .swatch.labassured  { background: var(--m-labassured); }
.module-bar .swatch.geoguard    { background: var(--m-geoguard); }
.module-bar .swatch.tracepro    { background: var(--m-tracepro); }
.module-bar .swatch.engage      { background: var(--m-engage); }

/* === Responsive === */
@media (max-width: 1100px) {
  :root { --pad-x: 32px; --header-h: 64px; }
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .card-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: var(--s-5); }
  .process { grid-template-columns: 1fr 1fr; }
  .cta-strip-inner { grid-template-columns: 1fr; gap: var(--s-5); }
  .utility-inner { padding: 8px 24px; }
}
@media (max-width: 640px) {
  :root { --pad-x: 20px; --header-h: 56px; }
  .card-grid, .card-grid.cols-2, .card-grid.cols-4 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .stat:last-child { border-bottom: 1px solid var(--c-rule); }
  .footer-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .faq-item { grid-template-columns: 1fr; gap: 8px; }
  .nav-cta .btn:not(.btn-primary) { display: none; }
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
}

/* === Section variants === */
.section { padding: var(--s-8) var(--pad-x); max-width: var(--maxw); margin: 0 auto; box-sizing: content-box; }
.section-tinted { background: var(--c-surface); max-width: none; padding-left: var(--pad-x); padding-right: var(--pad-x); border-block: 1px solid var(--c-rule); }
.section-tinted > * { max-width: var(--maxw); margin-inline: auto; }
.section-dark { background: var(--c-navy-deep); color: #C7D3EA; max-width: none; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section-dark > * { max-width: var(--maxw); margin-inline: auto; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: #9DB1D8; }

/* === Utilities === */
.m-w-720 { max-width: 720px; }
.caption { font-size: 13px; color: var(--c-muted); }
.mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); }

/* === Grids === */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* === Card tile (numbered) === */
.card-tile { border: 1px solid var(--c-rule); background: var(--c-white); padding: var(--s-4); border-radius: 4px; }
.section-dark .card-tile { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); color: #C7D3EA; }
.card-tile .num { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--c-muted); margin-bottom: var(--s-3); }
.section-dark .card-tile .num { color: #9DB1D8; }
.card-tile h3 { font-size: 18px; margin-bottom: var(--s-2); color: var(--c-ink); font-weight: 600; }
.section-dark .card-tile h3 { color: #fff; }
.card-tile p { font-size: 14.5px; line-height: 1.55; color: var(--c-body); margin: 0; }
.section-dark .card-tile p { color: #C7D3EA; }

/* === Pull quote === */
.pull-quote { font-size: 22px; line-height: 1.4; font-weight: 500; color: var(--c-ink); border-left: 3px solid var(--c-navy); padding: var(--s-2) 0 var(--s-2) var(--s-4); margin: 0; max-width: 760px; font-style: normal; }

/* === Bullet/check lists === */
.bullet-list { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.bullet-list li { position: relative; padding-left: var(--s-4); margin-top: var(--s-2); line-height: 1.6; }
.bullet-list li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; background: var(--c-navy); border-radius: 50%; }
.section-dark .bullet-list li::before { background: #9DB1D8; }
.section-dark .bullet-list li { color: #C7D3EA; }

.check-list { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.check-list li { position: relative; padding-left: 28px; margin-top: var(--s-2); line-height: 1.6; color: #fff; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; line-height: 20px; text-align: center; font-size: 12px; font-weight: 700; background: var(--c-green); color: #fff; border-radius: 50%; margin-top: 5px; }

/* === Positioning line === */
.positioning-line { font-size: 16px; padding: var(--s-3) var(--s-4); background: rgba(31,58,95,0.06); border-left: 3px solid var(--c-navy); color: var(--c-ink); max-width: 760px; }
.section-dark .positioning-line { background: rgba(255,255,255,0.06); border-left-color: #9DB1D8; color: #fff; }

/* === Step list === */
.step-list { list-style: none; padding: 0; margin: 0; counter-reset: step; max-width: 820px; }
.step-list li { display: grid; grid-template-columns: 64px 1fr; gap: var(--s-4); padding: var(--s-3) 0; border-top: 1px solid var(--c-rule); align-items: baseline; }
.step-list li:last-child { border-bottom: 1px solid var(--c-rule); }
.step-list .step-n { font-family: var(--f-mono); font-size: 13px; color: var(--c-navy); font-weight: 500; }
.step-list strong { display: block; color: var(--c-ink); font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.step-list span { color: var(--c-body); font-size: 14.5px; }

/* === Module grid (solutions hub) === */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
@media (max-width: 1000px) { .module-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .module-grid { grid-template-columns: 1fr; } }
.module-card { display: block; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); padding: var(--s-4); border-radius: 4px; transition: background 0.15s, border-color 0.15s; color: #C7D3EA; }
.module-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); }
.module-eyebrow { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #9DB1D8; margin-bottom: var(--s-3); }
.module-card h3 { color: #fff; font-size: 22px; font-weight: 600; margin-bottom: var(--s-2); }
.module-tag { color: #fff; font-size: 14.5px; font-weight: 500; margin: 0 0 var(--s-3); }
.module-card p { font-size: 14px; line-height: 1.55; color: #C7D3EA; margin: 0; }
.module-cta { display: inline-block; margin-top: var(--s-3); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }

/* === Decision list === */
.decision-list { border-top: 1px solid var(--c-rule); max-width: 880px; }
.decision-row { display: grid; grid-template-columns: 1fr 36px 240px; gap: var(--s-3); align-items: baseline; padding: var(--s-3) 0; border-bottom: 1px solid var(--c-rule); }
.dr-if { color: var(--c-body); }
.dr-arrow { color: var(--c-rule-strong); font-family: var(--f-mono); }
.dr-mod a { color: var(--c-navy); font-weight: 600; }
.dr-mod a:hover { text-decoration: underline; }
@media (max-width: 700px) { .decision-row { grid-template-columns: 1fr; } .dr-arrow { display: none; } }

/* === Pattern card === */
.pattern-card { background: var(--c-white); border: 1px solid var(--c-rule); padding: var(--s-4); border-radius: 4px; }
.pattern-num { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-navy); margin-bottom: var(--s-2); }
.pattern-card h3 { font-size: 18px; color: var(--c-ink); font-weight: 600; margin-bottom: var(--s-2); }
.pattern-card p { font-size: 14.5px; line-height: 1.55; margin: 0; color: var(--c-body); }

/* === Risk block === */
.risk-block { padding: var(--s-4); border: 1px solid var(--c-rule); border-left: 4px solid var(--c-navy); background: var(--c-white); border-radius: 4px; }
.risk-block h3 { font-size: 17px; color: var(--c-ink); font-weight: 600; margin-bottom: var(--s-2); }
.risk-block p { font-size: 14.5px; line-height: 1.55; margin: 0; color: var(--c-body); }
.risk-block strong { color: var(--c-ink); }

/* === Resource block === */
.resource-block { display: grid; grid-template-columns: 64px 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-top: 1px solid var(--c-rule); }
.resource-block:first-of-type { border-top: 0; padding-top: 0; }
.rb-num { font-family: var(--f-mono); font-size: 13px; color: var(--c-navy); font-weight: 500; }
.rb-body h3 { font-size: 22px; color: var(--c-ink); font-weight: 600; margin-bottom: var(--s-2); }
.rb-body p { font-size: 15.5px; line-height: 1.6; margin: 0; color: var(--c-body); max-width: 720px; }

/* === Hub summary block === */
.hub-summary { padding: var(--s-5) 0; border-top: 1px solid var(--c-rule); }
.hub-summary:first-of-type { border-top: 0; padding-top: 0; }
.hub-summary h3 { font-size: 22px; color: var(--c-ink); font-weight: 600; margin-bottom: var(--s-2); letter-spacing: -0.01em; }
.hub-summary > p { font-size: 15.5px; line-height: 1.6; margin: 0; color: var(--c-body); max-width: 760px; }


