
/* ============================================================
   Web fonts — self-hosted, no third-party requests
   ============================================================ */
@font-face {
  font-family: 'Libre Baskerville';
  src: url('/fonts/LibreBaskerville-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('/fonts/LibreBaskerville-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/IBMPlexSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/IBMPlexSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Sanctir design tokens (web type system v1.1)
   ============================================================ */
:root {
  --navy: #1A3A5C;
  --navy-hover: #244A6E;
  --gold: #B8860B;          /* decorative only — rules, borders, markers */
  --gold-text: #8F6708;     /* text use — 5.11:1 on white, WCAG AA */
  --dark: #222222;
  --gray: #666666;
  --bg-light: #F4F4F4;
  --border: #CCCCCC;
  --white: #FFFFFF;

  --text-1: var(--dark);
  --text-2: var(--gray);
  --text-3: #8a8f9c;
  --border-soft: #E2E5EB;
  --bg-tint: #FAFAFB;

  --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Consolas, 'Menlo', 'Courier New', monospace;

  --content-width: 65ch;
  --container-width: 1080px;
  --lh-body: 1.65;
  --lh-heading: 1.2;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--text-1);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; transition: color 0.15s ease; }
a:hover { color: var(--navy-hover); }
a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--navy); color: var(--white);
  padding: 0.5rem 1rem; z-index: 200;
  font-weight: 700; font-size: 0.875rem;
  text-decoration: none;
  font-family: var(--font-sans);
}
.skip-link:focus { top: 0.5rem; }
.skip-link:hover { color: var(--white); }

/* Layout */
.wrap { max-width: var(--container-width); margin: 0 auto; padding: 0 2rem; }
.divider { border: 0; border-top: 1px solid var(--border); max-width: var(--container-width); margin: 0 auto; }
main section { padding: 5rem 2rem; }

/* Editorial section label */
.sl {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.sl::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 180px;
}

/* Headings — Libre Baskerville for hero h1 and section h2 (editorial register).
   h3 stays sans for differentiation and scanability. */
section h2 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.7rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.sd {
  color: var(--text-2);
  max-width: 64ch;
  margin-bottom: 2.2rem;
  font-weight: 400;
  line-height: 1.65;
  font-size: 0.9375rem;
}

h1 { font-family: var(--font-serif); color: var(--navy); font-weight: 700; line-height: var(--lh-heading); }
h3 { font-family: var(--font-sans); color: var(--navy); font-weight: 700; line-height: var(--lh-heading); }
.h-sub { font-family: var(--font-sans); color: var(--gold-text); font-weight: 700; font-size: 1rem; line-height: var(--lh-heading); }

/* ============================================================
   Wordmark SVG (inline) — sizing
   ============================================================ */
.wordmark-svg {
  display: block;
  height: 32px;
  width: auto;
}
.nav-brand { line-height: 0; }
.footer-brand .wordmark-svg { height: 26px; }

/* Nav */
nav.primary {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 4.25rem;
}
.nav-brand { display: inline-flex; align-items: center; }
.nav-links { display: flex; gap: 1.7rem; align-items: center; }
.nav-links a:not(.btn) {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}
.nav-links a:not(.btn):hover { color: var(--navy-hover); }
.nav-links a.btn { font-weight: 700; text-decoration: none; font-size: 0.875rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-hover); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { color: var(--white); background: var(--navy); border-color: var(--navy); }

/* Hero */
.hero {
  min-height: calc(100vh - 4.25rem);
  display: flex; align-items: center;
  padding: 6rem 2rem 4.5rem;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.hero-label::before {
  content: "";
  width: 20px; height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.4rem;
  max-width: 22ch;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 700;
}
.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-1);
  max-width: 60ch;
  line-height: 1.65;
  margin-bottom: 1.1rem;
  font-weight: 400;
}
.hero-fit {
  font-size: 0.875rem;
  color: var(--text-2);
  max-width: 60ch;
  line-height: 1.7;
  margin-bottom: 2.2rem;
  font-style: italic;
  border-left: 2px solid var(--border);
  padding-left: 1rem;
}
.hero-ctas {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.proof-strip {
  display: flex; gap: 1.8rem; flex-wrap: wrap;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border);
}
.proof-item {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-3);
  display: flex; align-items: center; gap: 0.5rem;
}
.proof-dot {
  width: 5px; height: 5px;
  background: var(--navy);
  opacity: 0.7;
}

/* Practice pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.6rem;
  position: relative;
  transition: border-color 0.15s ease;
}
.pillar::before {
  content: "";
  position: absolute; top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: var(--navy);
}
.pillar:hover { border-color: var(--navy); }
.pillar-domain {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.pillar h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.45rem;
  font-weight: 700;
}
.pillar p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
}

/* Risk block */
.risk-block {
  background: var(--bg-light);
  border-left: 3px solid var(--navy);
  padding: 1.9rem 2.1rem;
}
.risk-block h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.7rem;
}
.risk-block p {
  font-size: 0.9375rem;
  color: var(--text-1);
  line-height: 1.7;
  margin-bottom: 0.8rem;
  max-width: 78ch;
}
.risk-bullets { list-style: none; }
.risk-bullets li {
  font-size: 0.875rem;
  color: var(--text-2);
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
  line-height: 1.6;
}
.risk-bullets li::before {
  content: "→";
  position: absolute; left: 0;
  color: var(--gold);
  font-weight: 700;
}
.risk-bullets strong { color: var(--navy); font-weight: 700; }
.risk-ref { margin-top: 0.9rem; font-size: 0.82rem; }

/* Services grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(295px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.65rem;
  transition: border-color 0.15s ease;
  position: relative;
  overflow: hidden;
}
.card:hover { border-color: var(--navy); }
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.15s ease;
}
.card:hover::before { transform: scaleX(1); }
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--bg-light);
  padding: 0.22rem 0.5rem;
  margin-bottom: 0.7rem;
  font-weight: 700;
}
.card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}
.card > p {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.card-detail {
  margin-top: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
  border-top: 1px solid var(--border-soft);
  padding-top: 0.55rem;
  font-weight: 700;
}
.card-detail em { font-style: normal; color: var(--text-2); font-weight: 700; }

/* Engagements */
.eng-item {
  padding: 1.6rem;
  background: var(--white);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  transition: border-color 0.15s ease;
}
.eng-item:hover { border-color: var(--navy); }
.eng-item:last-child { margin-bottom: 0; }
.eng-type {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.55rem;
}
.eng-item h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.55rem;
}
.eng-item p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 0.7rem;
}
.eng-del {
  font-size: 0.8125rem;
  color: var(--text-3);
  font-weight: 400;
  border-top: 1px solid var(--border-soft);
  padding-top: 0.6rem;
}
.eng-del strong { color: var(--text-1); font-weight: 700; }

/* Analysis */
.analysis-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
  position: relative;
}
.analysis-card::before {
  content: "";
  position: absolute; top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: var(--gold);
}
.analysis-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}
.analysis-sub {
  font-size: 0.875rem;
  color: var(--text-2);
  font-style: italic;
  margin-bottom: 1.1rem;
  font-weight: 400;
}
.analysis-links { display: flex; gap: 0.75rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.finding {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border-soft);
}
.finding:first-of-type { border-top: none; padding-top: 0.3rem; }

.method-block { margin-top: 2.5rem; }
.method-block h3 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.method-note {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.research-list { display: flex; flex-direction: column; }
.ri {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1.3rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--border-soft);
  transition: padding-left 0.15s ease;
}
.ri:first-child { border-top: 1px solid var(--border-soft); }
.ri:hover { padding-left: 0.55rem; }
.ri .h-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
  line-height: 1.35;
}
.ri .h-sub a { color: var(--navy); text-decoration: none; }
.ri .h-sub a:hover { color: var(--navy-hover); text-decoration: underline; }
.ri-meta {
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.55;
}
.ri-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding-top: 0.1rem;
}

/* Fail conditions */
.fail-list { list-style: none; }
.fail-list li {
  font-size: 0.9rem;
  color: var(--text-1);
  padding: 0.6rem 0 0.6rem 1.7rem;
  position: relative;
  border-bottom: 1px solid var(--border-soft);
  line-height: 1.6;
}
.fail-list li:last-child { border-bottom: none; }
.fail-list li::before {
  content: "✕";
  position: absolute; left: 0;
  color: var(--navy);
  font-weight: 700;
  font-family: var(--font-mono);
}
.fail-close {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-3);
  font-style: italic;
  line-height: 1.65;
  max-width: 70ch;
}

/* Diagnostic / engagement model */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.diag-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy);
  padding: 1.85rem;
}
.diag-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}
.diag-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 0.9rem;
}
.diag-outputs {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.2rem;
  margin-bottom: 1.2rem;
}
.diag-outputs li {
  font-size: 0.8125rem;
  color: var(--text-2);
  padding: 0.2rem 0;
  display: flex; align-items: center; gap: 0.45rem;
}
.diag-outputs li::before {
  content: "✓";
  color: var(--navy);
  font-weight: 700;
}

.eng-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.eng-step {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.2rem 0.75rem;
  text-align: center;
}
.eng-step-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.45rem;
}
.eng-step .h-sub {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin: 0;
}
.model-caption {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-top: 1rem;
  line-height: 1.65;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 3fr;
  gap: 3rem;
  align-items: start;
}
.about-text p {
  color: var(--text-2);
  margin-bottom: 0.9rem;
  font-weight: 400;
  line-height: 1.75;
  font-size: 0.9375rem;
}
.about-aside {
  border-left: 1px solid var(--border);
  padding-left: 1.6rem;
}
.about-aside .h-sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 1.3rem;
  margin-bottom: 0.55rem;
  font-weight: 700;
}
.about-aside .h-sub:first-child { margin-top: 0; }
.about-aside ul { list-style: none; }
.about-aside li {
  font-size: 0.85rem;
  color: var(--text-1);
  padding: 0.22rem 0;
  font-weight: 400;
  line-height: 1.5;
}

/* Contact */
.trust-band {
  display: flex; gap: 1.6rem; flex-wrap: wrap;
  padding: 1rem 1.5rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.trust-item {
  font-size: 0.85rem;
  color: var(--text-2);
  font-weight: 400;
  display: flex; align-items: center; gap: 0.4rem;
}
.trust-check { color: var(--navy); font-size: 0.9rem; font-weight: 700; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.cblock {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.85rem;
}
.cblock > p {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.cform { display: flex; flex-direction: column; gap: 0.8rem; }
.cform label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  display: block;
}
.cform input, .cform select, .cform textarea {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  width: 100%;
  border-radius: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cform input:focus, .cform select:focus, .cform textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
}
.cform textarea { min-height: 100px; resize: vertical; }
.cform .hp { position: absolute; left: -9999px; height: 1px; width: 1px; }
.form-submit { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.3rem; }
.form-submit-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-3);
}
.intake-notice {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.65;
  margin-top: 1.1rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 0.8rem;
}
.intake-notice strong { color: var(--text-1); font-weight: 700; }

.c-aside .h-sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 1.3rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.c-aside .h-sub:first-child { margin-top: 0; }
.c-aside p {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 0;
}
.mono-email {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Footer */
footer {
  padding: 2.4rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand a { display: inline-block; margin-bottom: 0.7rem; }
.footer-brand p {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 50ch;
  margin-bottom: 0;
}
.footer-brand p + p { margin-top: 0.6rem; }
.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-links a {
  color: var(--text-2);
  font-size: 0.82rem;
  text-decoration: none;
}
.footer-links a:hover { color: var(--navy); text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-aside { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .eng-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  main section { padding: 3.2rem 1.5rem; }
  .hero { padding: 5rem 1.5rem 3rem; min-height: auto; }
  .hero h1 { font-size: 1.75rem; }
  .nav-inner { padding: 0 1.25rem; }
  .ri { grid-template-columns: 1fr; gap: 0.3rem; }
  .eng-steps { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .diag-outputs { grid-template-columns: 1fr; }
  footer { padding: 2rem 1.25rem; }
  .wrap { padding: 0 1.25rem; }
  .wordmark-svg { height: 26px; }
}

/* Print */
@media print {
  nav.primary, .hero-ctas, .cblock, .trust-band, .skip-link, footer { display: none !important; }
  body { color: #000; background: #fff; font-family: Georgia, 'Times New Roman', serif; }
  a { color: #000; text-decoration: underline; }
  a::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #444; }
  a[href^="#"]::after, a[href^="mailto:"]::after { content: ""; }
  main section { padding: 0.75rem 0; page-break-inside: avoid; }
  h1, h2, h3, h4 { page-break-after: avoid; color: #000; }
  .pillar, .card, .eng-item, .analysis-card, .diag-card { border: 1px solid #999; }
  .risk-block { background: #fff; border: 1px solid #999; border-left: 4px solid #000; }
  .hero h1 em { color: #000; font-style: italic; }
}

/* ============================================================
   REBUILD v2 — institutional hub components
   Added for the statecraft-forward homepage. Everything above
   is the locked v1.1 system; everything below extends it.
   ============================================================ */

/* --- Hero adjustments for statecraft register --- */
.hero-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}
.hero-scope-item {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-3);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-scope-item::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--gold);
}

/* --- Institutional positioning band --- */
.positioning {
  background: var(--bg-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.positioning-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}
.positioning-lead {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.positioning-lead em { font-style: italic; color: var(--gold-text); }
.positioning-body p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 0.9rem;
}
.positioning-body p:last-child { margin-bottom: 0; }

/* --- Featured research (hero-level research callout) --- */
.featured-research {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.fr-primary {
  background: var(--navy);
  color: var(--white);
  padding: 2.1rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.fr-primary::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}
.fr-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.fr-primary h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 0.7rem;
}
.fr-primary p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  margin-bottom: 1.4rem;
  flex: 1;
}
.fr-primary .btn-inverse {
  background: var(--white);
  color: var(--navy);
  align-self: flex-start;
}
.fr-primary .btn-inverse:hover { background: var(--bg-light); color: var(--navy); }
.fr-secondary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.fr-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.4rem 1.5rem;
  flex: 1;
  transition: border-color 0.15s ease;
  text-decoration: none;
  display: block;
}
.fr-card:hover { border-color: var(--navy); color: inherit; }
.fr-card .fr-eyebrow { color: var(--navy); margin-bottom: 0.6rem; }
.fr-card .h-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}
.fr-card p {
  font-size: 0.83rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

/* --- Decision cards ("What Sanctir helps clients decide") --- */
.decide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}
.decide-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.7rem;
  position: relative;
  transition: border-color 0.15s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.decide-card:hover { border-color: var(--navy); color: inherit; }
.decide-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.15s ease;
}
.decide-card:hover::before { transform: scaleX(1); }
.decide-num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: 0.9rem;
}
.decide-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 0.55rem;
}
.decide-card p {
  font-size: 0.87rem;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0 0 1rem;
  flex: 1;
}
.decide-regimes {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-3);
  text-transform: uppercase;
  border-top: 1px solid var(--border-soft);
  padding-top: 0.7rem;
}
.decide-arrow {
  color: var(--gold);
  font-weight: 700;
  margin-left: 0.3rem;
  transition: margin-left 0.15s ease;
  display: inline-block;
}
.decide-card:hover .decide-arrow { margin-left: 0.6rem; }

/* --- Supply-chain feature section --- */
.feature {
  background: var(--navy);
  color: var(--white);
}
.feature-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: center;
}
.feature .sl { color: var(--gold); }
.feature .sl::after { background: rgba(255,255,255,0.25); }
.feature h2 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.005em;
}
.feature-lead {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}
.feature-body {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 1.6rem;
}
.feature .btn-inverse {
  background: var(--white);
  color: var(--navy);
}
.feature .btn-inverse:hover { background: var(--bg-light); color: var(--navy); }
.feature-list {
  list-style: none;
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 1.6rem;
}
.feature-list li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.88);
  padding: 0.55rem 0;
  line-height: 1.5;
  position: relative;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 0.95rem;
  width: 8px; height: 1px;
  background: var(--gold);
}
.feature-list li strong { color: var(--white); font-weight: 700; }

/* --- Current Analysis panel (replaceable time-sensitive module) --- */
.current-analysis {
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  background: var(--bg-tint);
  padding: 1.9rem 2.1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.6rem;
  align-items: center;
}
.ca-flag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  align-self: stretch;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
  padding-right: 1.2rem;
}
.ca-body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.ca-body p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
  max-width: 68ch;
}
.ca-date {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin-top: 0.7rem;
}

/* --- Engagement paths (replaces old engagement grid framing) --- */
.paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.path-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.7rem;
  transition: border-color 0.15s ease;
}
.path-card:hover { border-color: var(--navy); }
.path-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.path-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.path-card p {
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 0.7rem;
}
.path-terms {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
  border-top: 1px solid var(--border-soft);
  padding-top: 0.55rem;
  font-weight: 700;
}

/* --- Section link (learn-more affordance under section headers) --- */
.section-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.4rem;
}
.section-link::after {
  content: "→";
  color: var(--gold);
  transition: transform 0.15s ease;
}
.section-link:hover::after { transform: translateX(3px); }

/* --- Alternating section backgrounds for rhythm --- */
.section-tint { background: var(--bg-tint); }

/* --- Responsive additions for rebuild components --- */
@media (max-width: 900px) {
  .positioning-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .featured-research { grid-template-columns: 1fr; }
  .feature-inner { grid-template-columns: 1fr; gap: 2rem; }
  .feature-list { border-left: none; border-top: 1px solid rgba(255,255,255,0.2); padding-left: 0; padding-top: 1rem; }
  .feature-list li::before { display: none; }
  .current-analysis { grid-template-columns: 1fr; gap: 1rem; }
  .ca-flag { writing-mode: horizontal-tb; transform: none; border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 0.7rem; }
}
@media (max-width: 600px) {
  .positioning-lead { font-size: 1.2rem; }
  .feature h2 { font-size: 1.5rem; }
  .hero-scope { gap: 0.4rem 1rem; }
}

/* ============================================================
   Commitment band — service/patriotism statement
   ============================================================ */
.commitment {
  background: var(--navy);
  color: var(--white);
}
.commitment-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.6rem;
  align-items: center;
}
.commitment-flag {
  width: 132px;
  height: auto;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.15);
  display: block;
}
.commitment-body .sl {
  color: var(--gold);
}
.commitment-body .sl::after { background: rgba(255,255,255,0.25); }
.commitment-body h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.9rem;
  letter-spacing: -0.005em;
}
.commitment-body p {
  font-size: 1.0rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
  margin: 0;
  max-width: 68ch;
}
@media (max-width: 700px) {
  .commitment-inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .commitment-flag { width: 108px; }
  .commitment-body h2 { font-size: 1.3rem; }
}

/* ============================================================
   Research dropdown — pure CSS, keyboard accessible
   ============================================================ */
.nav-dd { position: relative; display: inline-flex; align-items: center; }
.nav-dd > a::after {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  margin-left: 0.34rem;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
  opacity: 0.55;
}
.nav-dd-menu {
  position: absolute;
  top: 100%; left: -0.9rem;
  min-width: 264px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  box-shadow: 0 6px 22px rgba(26,58,92,0.10);
  padding: 0.45rem 0;
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .13s ease, transform .13s ease, visibility .13s;
  z-index: 60;
}
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dd-menu a {
  display: block;
  padding: 0.5rem 1.1rem;
  font-size: 0.83rem;
  font-weight: 400;
  color: var(--text-2);
  text-decoration: none;
  line-height: 1.4;
  border-left: 2px solid transparent;
}
.nav-dd-menu a:hover,
.nav-dd-menu a:focus {
  background: var(--bg-tint);
  color: var(--navy);
  border-left-color: var(--gold);
}
.nav-dd-menu .dd-head {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0.5rem 1.1rem 0.35rem;
}
.nav-dd-menu .dd-sep { height: 1px; background: var(--border-soft); margin: 0.4rem 0; }
@media (max-width: 820px) { .nav-dd { display: none; } }

/* Domain page: publication status block */
.pub-status {
  border: 1px dashed var(--border);
  background: var(--bg-tint);
  padding: 1.4rem 1.6rem;
  margin-top: 1.2rem;
}
.pub-status .h-sub {
  font-family: var(--font-serif);
  font-size: 1.02rem; font-weight: 700; color: var(--navy);
  margin: 0 0 0.45rem;
}
.pub-status p { font-size: 0.89rem; color: var(--text-2); margin: 0; line-height: 1.65; }

/* ============================================================
   Utility classes — replaces inline styles so CSP can drop
   'unsafe-inline' from style-src
   ============================================================ */
.hero-compact { min-height: auto; padding-top: 4.5rem; padding-bottom: 2rem; }
.mh-60 { min-height: 60vh; }
.mw-20 { max-width: 20ch; }
.mw-22 { max-width: 22ch; }
.mw-24 { max-width: 24ch; }
.mw-26 { max-width: 26ch; }
.mw-70 { max-width: 70ch; }
.mt-18 { margin-top: 1.8rem; }
.mt-2  { margin-top: 2rem; }
.mt-22 { margin-top: 2.2rem; }
.mt-25 { margin-top: 2.5rem; }
.no-link { cursor: default; }
.legal-p {
  color: var(--text-2); line-height: 1.75;
  font-size: 0.9375rem; margin-bottom: 0.9rem; max-width: 72ch;
}
.legal-h { margin-top: 1.8rem; margin-bottom: 0.5rem; }
.legal-date {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-3); letter-spacing: 0.04em; margin-top: 0.5rem;
}
.note-p { margin-top: 1.6rem; font-size: 0.9rem; color: var(--text-2); max-width: 72ch; }
.list-body { color: var(--text-2); line-height: 1.7; }
.sub-h {
  font-size: 1.02rem; font-weight: 700;
  color: var(--navy); margin: 1.8rem 0 0.6rem;
}
.sub-h-serif {
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700;
  color: var(--navy); margin-top: 2rem; margin-bottom: 0.7rem;
}

/* Social / quick-contact icon row */
.social-row { display: flex; gap: 0.9rem; align-items: center; margin-top: 1.1rem; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.social-row a:hover { border-color: var(--gold); color: var(--navy); background: var(--bg-tint); }
.social-row svg { width: 15px; height: 15px; fill: currentColor; }
footer .social-row a { border-color: rgba(255,255,255,0.22); color: rgba(255,255,255,0.72); }
footer .social-row a:hover { border-color: var(--gold); color: var(--white); background: rgba(255,255,255,0.06); }
.nav-social {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding-right: 0.2rem;
}
.nav-social a { display: inline-flex; color: var(--text-3); }
.nav-social a:hover { color: var(--navy); }
.nav-social svg { width: 15px; height: 15px; fill: currentColor; }
@media (max-width: 820px) { .nav-social { display: none; } }

/* OpenPGP armored key block */
.pgp-key {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.5;
  color: var(--text-2);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.1rem 1.2rem;
  margin-top: 1.6rem;
  overflow-x: auto;
  white-space: pre;
  word-break: break-all;
}
/* ============================================================
   Sanctir publication layer — v1.0
   Extends the locked v1.1 token system in styles.css.
   Adds: publication masthead, article prose, source apparatus,
   and the print/@page rules used to render the PDF edition.
   Nothing above this file is modified.
   ============================================================ */

/* --- Publication masthead ------------------------------------ */
.pub-head { padding: 3.5rem 2rem 2.5rem; }
.pub-rule-top { display: block; border: 0; border-top: 3px solid var(--navy); margin: 0 0 1.6rem; }
.pub-series {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}
.pub-series::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  flex: none;
}
.pub-head h1 {
  font-size: 2.5rem;
  max-width: 22ch;
  letter-spacing: -0.01em;
}
.pub-deck {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-2);
  line-height: 1.45;
  margin-top: 1.1rem;
  max-width: 46ch;
}

/* --- Metadata bar -------------------------------------------- */
.pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.2rem;
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}
.pub-meta-item {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.pub-meta-item strong { color: var(--text-1); font-weight: 700; }
.pub-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }

/* --- Classification strip ------------------------------------ */
.pub-class {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0.6rem 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  text-align: center;
}

/* --- Article prose ------------------------------------------- */
.article { max-width: 70ch; }
.article > p,
.article > ol,
.article > ul { color: var(--text-1); line-height: 1.72; margin-bottom: 1.35rem; }
.article > p { font-size: 1rem; }
.article h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 3rem 0 1.1rem;
}
.article h2:first-child { margin-top: 0; }
.article ol, .article ul { padding-left: 1.35rem; }
.article li { margin-bottom: 0.75rem; padding-left: 0.25rem; }
.article ol > li::marker { font-weight: 700; color: var(--navy); }
.article strong { font-weight: 700; color: var(--text-1); }
.article em { font-style: italic; }

/* Lede paragraph */
.article > p.lede {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-1);
}

/* Pull statement — used once, for the governing finding */
.pub-finding {
  border-left: 3px solid var(--gold);
  background: var(--bg-tint);
  padding: 1.4rem 1.6rem;
  margin: 2.2rem 0;
  max-width: 68ch;
}
.pub-finding p {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--navy);
  margin: 0;
}

/* --- Source apparatus ---------------------------------------- */
sup.ref { font-size: 0.7em; line-height: 0; vertical-align: super; }
sup.ref a { text-decoration: none; font-weight: 700; font-family: var(--font-mono); }
sup.ref a:hover { text-decoration: underline; }

.sources { max-width: 76ch; }
.sources ol { list-style: none; counter-reset: src; padding-left: 0; }
.sources li {
  counter-increment: src;
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 0.85rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-2);
}
.sources li::before {
  content: counter(src);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--navy);
}
.sources a { word-break: break-word; }

/* --- Citation block ------------------------------------------ */
.cite-block {
  border: 1px solid var(--border-soft);
  background: var(--bg-tint);
  padding: 1.2rem 1.4rem;
  max-width: 76ch;
}
.cite-block .cite-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.cite-block p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0;
}

/* --- Related publications ------------------------------------ */
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.rel-card {
  border: 1px solid var(--border-soft);
  padding: 1.3rem 1.4rem;
  background: var(--white);
}
.rel-card .rel-series {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.rel-card .h-sub { color: var(--navy); font-size: 0.9375rem; margin-bottom: 0.4rem; }
.rel-card p { font-size: 0.85rem; color: var(--text-2); line-height: 1.6; margin: 0; }
.rel-card a { text-decoration: none; }
.rel-card a:hover .h-sub { color: var(--navy-hover); }

@media (max-width: 720px) {
  .pub-head h1 { font-size: 1.875rem; }
  .pub-head { padding: 2.5rem 0 1.75rem; }
}

/* ============================================================
   PRINT / PDF EDITION
   Overrides the generic print block in styles.css, which appends
   href text after links — unusable in a published document.
   ============================================================ */
@page {
  size: Letter;
  margin: 22mm 20mm 20mm 20mm;
  @top-left {
    content: "SANCTIR";
    font-family: 'IBM Plex Mono', monospace;
    font-size: 7pt;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #1A3A5C;
    vertical-align: bottom;
    padding-bottom: 3mm;
  }
  @top-right {
    content: "SB-2026-01";
    font-family: 'IBM Plex Mono', monospace;
    font-size: 7pt;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #8a8f9c;
    vertical-align: bottom;
    padding-bottom: 3mm;
  }
  @bottom-left {
    content: "UNCLASSIFIED // OPEN SOURCE";
    font-family: 'IBM Plex Mono', monospace;
    font-size: 6.5pt;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #8a8f9c;
    vertical-align: top;
    padding-top: 4mm;
  }
  @bottom-right {
    content: counter(page) " of " counter(pages);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 7pt;
    font-weight: 700;
    color: #666666;
    vertical-align: top;
    padding-top: 4mm;
  }
}
@page :first {
  margin-top: 20mm;
  @top-left { content: ""; }
  @top-right { content: ""; }
}

@media print {
  nav.primary, footer, .skip-link, .pub-actions, .no-print { display: none !important; }
  /* Suppress the sitewide URL-after-link rule inside published articles only.
     Every other page keeps it — a printed services page benefits from it. */
  .article a::after, .sources a::after, .cite-block a::after,
  .doc-record a::after, .pub-head a::after { content: none !important; }

  html { font-size: 11pt; }
  body {
    font-family: 'IBM Plex Sans', sans-serif;
    color: #222222;
    background: #fff;
  }
  main section { padding: 0 !important; }
  .wrap { max-width: none; padding: 0; }
  .divider { display: none; }
  .section-tint { background: transparent; }

  a { color: #1A3A5C; text-decoration: none; }

  /* Cover block */
  .pub-head { padding: 0 0 1.2rem; }
  .pub-rule-top {
    display: block;
    border: 0;
    border-top: 3px solid #1A3A5C;
    margin: 0 0 1.4rem;
  }
  .pub-head h1 { font-size: 24pt; max-width: none; }
  .pub-deck { font-size: 11.5pt; max-width: none; }
  .pub-meta { margin-top: 1.4rem; padding-top: 1rem; }
  .pub-meta-item { font-size: 6.75pt; }

  .article { max-width: none; }
  .article > p { font-size: 10.5pt; line-height: 1.55; margin-bottom: 0.75rem; }
  .article > p.lede { font-size: 11.5pt; }
  .article h2 {
    font-size: 13pt;
    margin: 1.5rem 0 0.6rem;
    page-break-after: avoid;
    break-after: avoid;
  }
  .article li { font-size: 10.5pt; line-height: 1.5; margin-bottom: 0.35rem; }
  .article p, .article li { orphans: 3; widows: 3; }

  .pub-finding {
    background: #FAFAFB;
    border-left: 3px solid #B8860B;
    padding: 0.8rem 1rem;
    margin: 1.2rem 0;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .pub-finding p { font-size: 11pt; }

  .pub-class { font-size: 6.75pt; padding: 0.4rem 0; }

  .sources { max-width: none; page-break-before: always; break-before: page; }
  .sources li { font-size: 8.5pt; margin-bottom: 0.4rem; }
  .cite-block { page-break-inside: avoid; break-inside: avoid; padding: 0.8rem 1rem; }
  .cite-block p { font-size: 8.5pt; }
  .rel-grid, .rel-card { page-break-inside: avoid; break-inside: avoid; }
  .rel-card p { font-size: 8pt; }

  sup.ref a { color: #1A3A5C; }
}

/* --- Analytic record block ----------------------------------- */
.doc-record {
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--navy);
  background: var(--bg-tint);
  padding: 1.4rem 1.6rem;
  max-width: 76ch;
}
.rec-dl { display: grid; grid-template-columns: 13rem 1fr; gap: 0.55rem 1.4rem; margin: 0; }
.rec-dl dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  padding-top: 0.15rem;
}
.rec-dl dd { margin: 0; font-size: 0.875rem; line-height: 1.6; color: var(--text-2); }
@media (max-width: 720px) {
  .rec-dl { grid-template-columns: 1fr; gap: 0.2rem; }
  .rec-dl dd { margin-bottom: 0.7rem; }
}
@media print {
  .doc-record { page-break-inside: avoid; break-inside: avoid; padding: 0.8rem 1rem; background: #FAFAFB; }
  .rec-dl { grid-template-columns: 11rem 1fr; gap: 0.3rem 1rem; }
  .rec-dl dt { font-size: 6.5pt; }
  .rec-dl dd { font-size: 8.5pt; line-height: 1.45; }
}

/* --- Publication breadcrumb ---------------------------------- */
.pub-crumb {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pub-crumb a { color: var(--navy); text-decoration: none; }
.pub-crumb a:hover { text-decoration: underline; }

/* --- Executive summary --------------------------------------- */
.exec-summary {
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--gold);
  background: var(--bg-tint);
  padding: 1.5rem 1.7rem;
  max-width: 72ch;
}
.exec-summary ul { margin: 0; padding-left: 1.15rem; }
.exec-summary li {
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--text-1);
  margin-bottom: 0.7rem;
}
.exec-summary li:last-child { margin-bottom: 0; }
.exec-summary li::marker { color: var(--gold); }

/* --- Author block -------------------------------------------- */
.author-box { max-width: 72ch; }
.author-box p { font-size: 0.9375rem; line-height: 1.68; color: var(--text-2); margin-bottom: 0.9rem; }
.author-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3) !important;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-soft);
}

@media print {
  .pub-crumb { display: none; }
  .exec-summary {
    page-break-inside: avoid;
    break-inside: avoid;
    background: #FAFAFB;
    border-top: 3px solid #B8860B;
    padding: 0.9rem 1.1rem;
  }
  .exec-summary li { font-size: 9.5pt; line-height: 1.45; margin-bottom: 0.3rem; }
  .author-box { page-break-inside: avoid; break-inside: avoid; }
  .author-box p { font-size: 9pt; margin-bottom: 0.45rem; }
  .author-meta { font-size: 6.75pt !important; }
  .author-box a::after { content: none !important; }
}

/* --- Direct contact cards (replaces the contact form) --------- */
.contact-direct {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
  margin-top: 2rem;
}
.cd-card {
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--navy);
  background: var(--white);
  padding: 1.3rem 1.4rem;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
a.cd-card:hover { border-top-color: var(--gold); background: var(--bg-tint); }
a.cd-card:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.cd-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.55rem;
}
.cd-value {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.5rem;
  word-break: break-word;
}
.cd-card p { font-size: 0.85rem; line-height: 1.6; color: var(--text-2); margin: 0; }
.cd-static { cursor: default; }

.contact-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem 2.2rem;
  margin-top: 2.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
}
.contact-notes .h-sub { margin-bottom: 0.45rem; }
.contact-notes p { font-size: 0.875rem; line-height: 1.65; color: var(--text-2); margin: 0; }

@media print { .contact-direct, .contact-notes { page-break-inside: avoid; } }

/* --- Mobile navigation (native <details>, no JavaScript) ------ */
.nav-mobile { display: none; position: relative; }
.nav-mobile > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: 0.15rem;
  border: 1px solid var(--border);
  background: var(--white);
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary::marker { content: ""; }
.nav-mobile > summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.burger { display: block; width: 18px; height: 14px; position: relative; }
.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--navy);
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }
.nav-mobile[open] .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-mobile[open] .burger span:nth-child(2) { opacity: 0; }
.nav-mobile[open] .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .burger span { transition: none; } }

.nav-mobile-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: -1.25rem;
  width: calc(100vw - 1.5rem);
  max-width: 22rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  padding: 1rem 0 0.85rem;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  z-index: 150;
}
.nav-mobile-panel a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}
.nav-mobile-panel a:hover { background: var(--bg-tint); }
.nmp-head {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0.25rem 1.25rem 0.45rem;
}
.nmp-sep { height: 1px; background: var(--border-soft); margin: 0.55rem 0; }

@media (max-width: 820px) {
  .nav-mobile { display: block; }
  .nav-links > a:not(.btn) { display: none; }
  .nav-links > .nav-dd { display: none; }
  .nav-social { display: none; }
  .nav-links { gap: 0.6rem; }
}
@media print { .nav-mobile { display: none !important; } }


/* --- Heading-hierarchy corrections (WCAG 2.1 SC 1.3.1) -------- */
/* .legal-h and .ca-h were h3; promoted to h2 for correct nesting.
   Visual appearance is unchanged. */
.legal-h {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0;
}
.ca-h {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0;
  margin-bottom: 0.4rem;
}
.ri .h-sub { font-size: 1rem; }

/* --- Government-contractor trust strip -------------------------- */
.trust-strip {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}
.trust-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
}
.trust-strip .ts-sep { color: var(--gold); margin: 0 0.5rem; }
@media (max-width: 600px) {
  .trust-strip { font-size: 0.6rem; letter-spacing: 0.06em; }
  .trust-strip .ts-sep { margin: 0 0.3rem; }
  .trust-strip-inner { padding: 0.45rem 1rem; line-height: 1.6; }
}

/* --- Four-outcome grid (reuses .pillar) ------------------------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

/* ── Regime comparison table (SB-2026-02) ─────────────────────────── */
.table-wrap {
  margin: 1.75rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-soft);
  border-radius: 2px;
}
.reg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  line-height: 1.5;
  min-width: 640px;
}
.reg-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 600;
  text-align: left;
  padding: 0.7rem 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: bottom;
}
.reg-table tbody td {
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--border-soft);
  color: var(--text-2);
  vertical-align: top;
}
.reg-table tbody td:first-child {
  color: var(--text-1);
  white-space: nowrap;
}
.reg-table tbody tr:nth-child(even) { background: var(--bg-tint); }
.reg-table tbody td strong { color: var(--navy); font-weight: 600; }
.reg-table tbody tr:hover { background: #F1F4F8; }
@media (max-width: 640px) {
  .reg-table { font-size: 0.8rem; }
  .reg-table thead th, .reg-table tbody td { padding: 0.55rem 0.65rem; }
  .table-wrap::after {
    content: "→ scroll";
    display: block;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-3);
    text-align: right;
    padding: 0.3rem 0.6rem 0.4rem;
    letter-spacing: 0.03em;
  }
}
@media print {
  .table-wrap { overflow: visible; border: 1px solid #999; }
  .reg-table { min-width: 0; font-size: 9pt; }
  .reg-table thead th { background: #1A3A5C !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .table-wrap::after { display: none; }
}

/* ── Pull quotes (SB-2026-03, SB-2026-04) ─────────────────────────── */
.pull-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding: 0.25rem 0 0.25rem 1.4rem;
  margin: 1.75rem 0;
  font-style: normal;
}
@media (max-width: 640px) { .pull-quote { font-size: 1.05rem; padding-left: 1rem; } }
@media print { .pull-quote { color: #1A3A5C; border-left: 3px solid #8F6708; } }

/* ── Register markers (SB-2026-04: Record. / Legal consequence. / Assessment.) ── */
em.reg {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold-text);
  display: inline;
  margin-right: 0.3rem;
}

/* ── Body lists inside article prose ──────────────────────────────── */
.article ul.body-list {
  margin: 1.25rem 0;
  padding-left: 1.25rem;
  list-style: none;
}
.article ul.body-list li {
  position: relative;
  margin-bottom: 0.7rem;
  padding-left: 1rem;
  line-height: 1.6;
  color: var(--text-2);
}
.article ul.body-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}
.article ul.body-list li strong { color: var(--navy); }
