/* Trustpoint Consulting: site styles
   Palette: deep ink, Trustpoint royal blue, brass datum accent, cool paper. */

:root {
  --ink: #011D51;
  --ink-2: #0A2A66;
  --royal: #0A5FD8;
  --royal-hover: #084AAE;
  --sky: #C7DBFF;
  --brand-blue: #0E70FD;
  --brand-blue-dark: #00348A;
  --brass: #A9812F;
  --brass-text: #7D5F1F;
  --paper: #F3F5F8;
  --white: #FFFFFF;
  --text: #18202F;
  --muted: #4D586B;
  --rule: #D6DBE4;
  --rule-ink: rgba(201, 214, 245, 0.18);
  --on-ink: #E9EEF8;
  --on-ink-muted: #A9B5CC;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--royal); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--royal-hover); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; color: var(--ink); }
h1, h2 { text-wrap: balance; font-family: var(--serif); letter-spacing: -0.012em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.06; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); line-height: 1.12; }
h3 { font-family: var(--sans); font-size: 1.1875rem; line-height: 1.35; font-weight: 650; letter-spacing: -0.005em; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 650; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 66ch; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 12px; color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }

.logo { display: inline-flex; text-decoration: none; line-height: 0; }
.logo img { height: 46px; width: auto; }
.site-footer .logo img { height: 52px; }
@media (max-width: 520px) { .logo img { height: 38px; } }
.logo:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav a {
  display: block; padding: 8px 12px; color: var(--text); text-decoration: none;
  font-size: 0.95rem; font-weight: 500; border-radius: var(--radius);
}
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--royal); box-shadow: inset 0 -2px 0 var(--royal); border-radius: 0; }
.nav .btn { margin-left: 12px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--white); background: var(--royal); }
.nav a.btn-primary:hover { background: var(--royal-hover); }
.nav a.btn-primary[aria-current="page"] { box-shadow: none; border-radius: var(--radius); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 9px 12px; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--ink); cursor: pointer;
}

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--rule); border-radius: 0; font-size: 1.02rem; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin: 16px 0 0; text-align: center; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius);
  font-family: var(--sans); font-size: 0.98rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--royal); color: var(--white); }
.btn-primary:hover { background: var(--royal-hover); color: var(--white); }
.btn-ghost { border-color: var(--royal); color: var(--royal); background: transparent; }
.btn-ghost:hover { background: var(--royal); color: var(--white); }
.btn-small { padding: 9px 16px; font-size: 0.92rem; }
.on-ink .btn-primary { background: var(--white); color: var(--ink); }
.on-ink .btn-primary:hover { background: var(--sky); color: var(--ink); }
.on-ink .btn-ghost { border-color: var(--on-ink); color: var(--on-ink); }
.on-ink .btn-ghost:hover { background: var(--on-ink); color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.text-link { font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section + .section.paper, .section.paper { background: var(--paper); }
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.section.on-ink { background: var(--ink); color: var(--on-ink); }
.on-ink h1, .on-ink h2, .on-ink h3, .on-ink h4 { color: var(--white); }
.on-ink a { color: var(--white); }
.on-ink p, .on-ink li { color: var(--on-ink); }
.on-ink .muted { color: var(--on-ink-muted); }

.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lede { margin: 0; }
.section-head.stacked { display: block; max-width: 760px; }
.section-head.stacked .lede { margin-top: 20px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.on-ink .lede { color: var(--on-ink-muted); }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

.kicker { font-size: 0.98rem; font-weight: 600; color: var(--royal); margin-bottom: 18px; }
.on-ink .kicker { color: var(--sky); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 0; background: var(--white); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 56px; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 26px; color: var(--muted); }
.hero-figure { margin: 0; }
.hero-figure svg { width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 420px; justify-self: center; width: 100%; }
}

.datum-ring { fill: none; stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 5; }
.datum-line { fill: none; stroke: var(--royal); stroke-width: 1.2; opacity: 0.55; }
.datum-node { fill: var(--white); stroke: var(--royal); stroke-width: 1.4; }
.datum-label { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: var(--ink); }
.datum-mark { fill: var(--brass); }
.datum-core { fill: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .hero-figure .datum-line { stroke-dasharray: var(--len, 300); stroke-dashoffset: var(--len, 300); animation: draw 1.1s cubic-bezier(.4,0,.2,1) forwards; animation-delay: calc(var(--i, 0) * 110ms + 250ms); }
  .hero-figure .datum-node, .hero-figure .datum-label { opacity: 0; animation: appear 0.5s ease forwards; animation-delay: calc(var(--i, 0) * 110ms + 900ms); }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes appear { to { opacity: 1; } }
}

.proofs {
  list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 22px 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  border-top: 1px solid var(--rule);
}
.proofs li { font-size: 0.95rem; color: var(--muted); padding-left: 16px; border-left: 2px solid var(--brass); line-height: 1.45; }
.proofs strong { display: block; color: var(--ink); font-size: 1.05rem; font-weight: 650; }
@media (max-width: 760px) { .proofs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; } }

/* Page hero (inner pages) */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--rule); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { margin-top: 24px; }
.breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); }
.status {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  font-size: 0.95rem; font-weight: 600; color: var(--brass-text);
  background: #FBF6EA; border: 1px solid #E8D9B4; padding: 8px 14px; border-radius: var(--radius);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }

/* ---------- Situations ---------- */
.situations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.situations > div { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--rule); }
.situations > div:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--rule); }
.situations h3 { margin-bottom: 10px; }
.situations p { color: var(--muted); font-size: 0.99rem; }
@media (max-width: 900px) {
  .situations { grid-template-columns: 1fr 1fr; }
  .situations > div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .situations > div:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--rule); }
}
@media (max-width: 600px) {
  .situations { grid-template-columns: 1fr; }
  .situations > div, .situations > div:nth-child(2n) { padding: 22px 0; border-left: 0; }
}

/* ---------- Capability rows ---------- */
.capabilities { border-top: 1px solid var(--ink); }
.cap {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 3fr);
  gap: 16px 40px; padding: 30px 0; border-bottom: 1px solid var(--rule); align-items: start;
}
.cap h3 { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 500; line-height: 1.2; }
.cap p { color: var(--muted); }
.cap .tech { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.cap .tech strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; font-size: 0.86rem; }
@media (max-width: 900px) { .cap { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Split panel ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--rule-ink); }
.split > div { padding: 40px 48px 8px 0; }
.split > div + div { padding-left: 48px; padding-right: 0; border-left: 1px solid var(--rule-ink); }
.split h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; margin-bottom: 16px; }
.split p { max-width: 52ch; }
.split .text-link { display: inline-block; margin-top: 18px; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split > div, .split > div + div { padding: 32px 0 8px; border-left: 0; }
  .split > div + div { border-top: 1px solid var(--rule-ink); margin-top: 24px; }
}

/* ---------- Sequence (PRIME etc.) ---------- */
.sequence { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; }
.sequence li { position: relative; padding: 52px 20px 0 0; }
.sequence li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 0.9rem;
  background: var(--white); color: var(--royal); border: 1.5px solid var(--royal); z-index: 1;
}
.sequence li::after { content: ""; position: absolute; top: 17px; left: 34px; right: 0; height: 1px; background: var(--royal); opacity: 0.35; }
.sequence li:last-child::after { display: none; }
.sequence h3 { margin-bottom: 8px; }
.sequence p { color: var(--muted); font-size: 0.96rem; }
.sequence.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.paper .sequence li::before { background: var(--paper); }
@media (max-width: 900px) {
  .sequence, .sequence.four { grid-template-columns: 1fr; gap: 0; }
  .sequence li { padding: 0 0 28px 56px; }
  .sequence li::after { top: 34px; left: 17px; right: auto; width: 1px; height: calc(100% - 34px); }
}

/* ---------- Case entries ---------- */
.cases { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.case { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px 48px; padding: 36px 0; border-bottom: 1px solid var(--rule); }
.case .sector { font-size: 0.92rem; font-weight: 600; color: var(--brass-text); margin-bottom: 8px; }
.case h3 { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.65rem); font-weight: 500; line-height: 1.2; }
.case dl { margin: 0; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px 24px; }
.case dt { font-weight: 650; color: var(--ink); font-size: 0.95rem; }
.case dd { margin: 0; color: var(--muted); }
@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; }
  .case dl { grid-template-columns: 1fr; gap: 4px; }
  .case dd { margin-bottom: 10px; }
}

/* ---------- Commitments (datum list) ---------- */
.datum-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.datum-list li { position: relative; padding: 20px 0 20px 34px; border-bottom: 1px solid var(--rule); }
.on-ink .datum-list li { border-color: var(--rule-ink); }
.datum-list li::before {
  content: ""; position: absolute; left: 2px; top: 27px; width: 0; height: 0;
  border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 13px solid var(--brass);
}
.datum-list li::after { content: ""; position: absolute; left: 8px; top: 35px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.on-ink .datum-list li::after { background: var(--ink); }
.datum-list strong { display: block; color: var(--ink); font-weight: 650; margin-bottom: 2px; }
.on-ink .datum-list strong { color: var(--white); }
@media (max-width: 760px) { .datum-list { grid-template-columns: 1fr; } }

/* ---------- Service detail ---------- */
.service { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px 56px; padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 96px; }
.service:first-child { padding-top: 0; }
.service h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
.service .trigger { margin-top: 14px; color: var(--brass-text); font-weight: 600; font-size: 0.98rem; line-height: 1.5; }
.service ul { margin: 14px 0 0; padding-left: 1.15em; }
.service li { margin-bottom: 6px; color: var(--muted); }
.service li::marker { color: var(--royal); }
.service .tech-line { margin-top: 20px; font-size: 0.92rem; color: var(--muted); padding-top: 14px; border-top: 1px dashed var(--rule); }
.service .tech-line strong { color: var(--ink); }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; } }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.jump a { font-size: 0.9rem; font-weight: 500; padding: 7px 12px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--white); }
.jump a:hover { border-color: var(--royal); color: var(--royal); }

/* ---------- Generic grids ---------- */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; }
@media (max-width: 900px) { .cols-3 { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 760px) { .cols-2 { grid-template-columns: 1fr; } }
.col-item { border-top: 2px solid var(--royal); padding-top: 20px; }
.on-ink .col-item { border-top-color: var(--sky); }
.col-item h3 { margin-bottom: 10px; }
.col-item p { color: var(--muted); }
.on-ink .col-item p { color: var(--on-ink-muted); }

.sector-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.sector-list li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.sector-list strong { display: block; color: var(--ink); font-weight: 650; margin-bottom: 4px; }
.sector-list span { color: var(--muted); font-size: 0.96rem; }
@media (max-width: 900px) { .sector-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sector-list { grid-template-columns: 1fr; } }

/* ---------- Pull quote / statement ---------- */
.statement { font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.3; color: var(--ink); max-width: 30ch; font-weight: 400; margin: 0; }
.on-ink .statement { color: var(--white); }

.founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } }

.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.facts li { border-top: 1px solid var(--rule); padding-top: 16px; color: var(--muted); font-size: 0.95rem; }
.facts b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3vw, 2.5rem); color: var(--ink); line-height: 1.1; margin-bottom: 6px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--royal); color: var(--white); padding: clamp(56px, 7vw, 88px) 0; }
.cta-band .inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); max-width: 18ch; }
.cta-band p { color: var(--sky); margin-top: 14px; max-width: 52ch; }
.cta-band .btn-primary { background: var(--white); color: var(--royal); }
.cta-band .btn-primary:hover { background: var(--sky); color: var(--ink); }

/* ---------- Prose (articles, privacy) ---------- */
.prose { max-width: 68ch; font-size: 1.1rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 2em 0 0.6em; }
.prose p { margin-bottom: 1.15em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.article-meta { color: var(--muted); font-size: 0.95rem; margin-top: 20px; }

.article-list { border-top: 1px solid var(--ink); }
.article-list a { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 8px 48px; padding: 32px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; }
.article-list a:hover h2 { color: var(--royal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.article-list .meta { font-size: 0.92rem; color: var(--muted); }
.article-list .meta b { display: block; color: var(--brass-text); font-weight: 600; }
.article-list h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 10px; }
.article-list p { color: var(--muted); }
@media (max-width: 760px) { .article-list a { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px 72px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-details { list-style: none; margin: 0; padding: 0; }
.contact-details li { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.contact-details li:first-child { border-top: 1px solid var(--rule); }
.contact-details strong { display: block; font-size: 0.9rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.contact-details a, .contact-details span { font-size: 1.1rem; font-weight: 600; color: var(--ink); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 7px; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 14px; border: 1.5px solid #B9C1CF; border-radius: var(--radius); background: var(--white);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px rgba(10, 95, 216, 0.2); }
.form .note { font-size: 0.9rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: 72px 0 32px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.footer-grid p { max-width: 38ch; margin-top: 20px; color: var(--on-ink-muted); }
.site-footer h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 650; color: var(--white); margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule-ink); font-size: 0.86rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.footer-legal p { margin: 0; max-width: 80ch; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Placeholder marker for content Paul still needs to supply */
.todo { background: #FFF3C4; color: #5C4500; padding: 0 4px; border-radius: 2px; font-style: normal; }

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  body { font-size: 11pt; }
}

/* ---------- AI page ---------- */
.tag { display: inline-block; margin-top: 12px; font-size: 0.85rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid; line-height: 1.5; }
.tag-live { color: #1D5B3A; background: #EAF5EE; border-color: #B9DCC6; }
.tag-demo { color: var(--royal); background: #EDF1FB; border-color: var(--sky); }
.tag-dev { color: var(--brass-text); background: #FBF6EA; border-color: #E8D9B4; }

.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; position: relative; }
.flow-step { position: relative; border: 1px solid var(--rule-ink); border-radius: var(--radius); padding: 26px 26px 28px; background: var(--ink-2); }
.flow-step h3 { margin-bottom: 12px; }
.flow-step ul { margin: 0; padding-left: 1.1em; }
.flow-step li { margin-bottom: 4px; }
.flow-step:not(:nth-child(3))::after {
  content: ""; position: absolute; top: 50%; right: -32px; width: 24px; height: 2px; background: var(--sky);
}
.flow-step:not(:nth-child(3))::before {
  content: ""; position: absolute; top: calc(50% - 5px); right: -33px; border-left: 8px solid var(--sky); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.flow-dev { border-style: dashed; background: transparent; }
.flow-band { grid-column: 1 / -1; margin: 18px 0 0; padding: 14px 20px; text-align: center; border: 1px solid var(--brass); border-radius: var(--radius); color: var(--white); font-weight: 600; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 36px; }
  .flow-step:not(:nth-child(3))::after { top: auto; bottom: -26px; right: auto; left: 50%; width: 2px; height: 18px; }
  .flow-step:not(:nth-child(3))::before { top: auto; bottom: -34px; right: auto; left: calc(50% - 5px); border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--sky); border-bottom: 0; }
  .flow-band { margin-top: 0; }
}

.asks { list-style: none; margin: 0; padding: 0; }
.asks li { font-family: var(--serif); font-size: 1.15rem; color: var(--white); padding: 10px 0 10px 18px; border-left: 2px solid var(--brass); margin-bottom: 10px; }

.shot { margin: 40px 0 0; }
.shot img { border-radius: var(--radius); border: 1px solid var(--rule-ink); }
.shot figcaption { font-size: 0.9rem; color: var(--on-ink-muted); margin-top: 10px; }

.cap > div > h3 { margin: 0; }
.on-ink .tag-dev { background: transparent; color: #E3C77E; border-color: var(--brass); }

/* Demonstration screens */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 56px; align-items: start; }
.shots .shot { margin: 0; }
.shot a { display: block; border-radius: var(--radius); }
.shot img { width: 100%; height: auto; background: var(--ink-2); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.shot a:hover img { border-color: var(--sky); }
.shot figcaption { line-height: 1.5; }
.shot figcaption strong { color: var(--white); font-weight: 650; }
.shots-note { margin-top: 18px; font-size: 0.9rem; color: var(--on-ink-muted); }
.next-stage { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 56px; align-items: center; margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--rule-ink); }
.next-stage h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.2; margin: 14px 0 14px; }
.next-stage .tag { margin-top: 0; }
.shot-wide { margin: 0; }
@media (max-width: 860px) {
  .shots { grid-template-columns: 1fr; }
  .next-stage { grid-template-columns: 1fr; }
}
.facts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
