/* ==========================================================================
   Virta — stylesheet
   --------------------------------------------------------------------------
   Tokens first, then layout primitives, then components. No frameworks, no
   third-party CDNs: the fonts are self-hosted so a visitor's browser makes
   zero requests off-site (that matters when your pitch is data sovereignty).

   Brand palette carried over from the legacy skin (includes/layout-content.css
   and the header artwork) so the site still reads as Virta:
     navy   #07206F  legacy heading / link colour  -> the spine
     orange #E74618  legacy navigation accent      -> the single accent
     blue   #1B5EB9  sampled from the logo band
     green  #3FA96B  sampled from the logo band

   Contrast: #E74618 only ever carries LARGE display text or decoration.
   Anything small and orange uses --accent-ink (#C93A11, 5.1:1 on white) or
   white-on-orange buttons, which also use --accent-ink. Verified by hand.
   ========================================================================== */

/* --- Fonts (self-hosted, latin subset) ---------------------------------- */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-Var.woff2') format('woff2');
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBMPlexMono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBMPlexMono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBMPlexMono-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* brand */
  --navy-900: #04123f;
  --navy-800: #07206f;
  --navy-700: #0d2c8c;
  --blue-600: #1b5eb9;
  --blue-300: #4c82e8;
  --green-500: #3fa96b;
  --accent: #e74618;        /* decoration + large text only */
  --accent-ink: #c93a11;    /* small text / white-on-accent, AA on white */
  --accent-soft: #fdeee9;

  /* neutrals */
  --ink: #0d1526;
  --ink-2: #33415c;
  --muted: #5a6b84;
  --line: #dce3ee;
  --line-strong: #c3cddd;
  --paper: #ffffff;
  --mist: #f5f7fa;
  --mist-2: #eef2f8;

  /* type */
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-900: clamp(2.1rem, 1.3rem + 3.5vw, 3.85rem);
  --fs-800: clamp(1.55rem, 1.15rem + 1.9vw, 2.4rem);
  --fs-700: clamp(1.2rem, 1.05rem + 0.8vw, 1.55rem);
  --fs-600: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  --fs-500: 1.0625rem;
  --fs-400: 1rem;
  --fs-300: 0.9375rem;
  --fs-200: 0.8125rem;
  --fs-100: 0.6875rem;

  /* rhythm */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4.5rem;
  --sp-9: 6.5rem;
  --r-1: 4px; --r-2: 6px;
  --shadow-1: 0 1px 2px rgba(9, 16, 32, .06), 0 10px 28px -14px rgba(9, 16, 32, .22);
  --maxw: 1160px;
  --measure: 68ch;
  --header-h: 72px;
}

/* --- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-400)/1.65 var(--sans);
  font-synthesis-weight: none;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.15; text-wrap: balance; color: var(--navy-800); }
h1 { font-size: var(--fs-900); font-weight: 600; letter-spacing: -0.022em; }
h2 { font-size: var(--fs-800); font-weight: 600; letter-spacing: -0.018em; }
h3 { font-size: var(--fs-700); font-weight: 600; letter-spacing: -0.012em; }
h4 { font-size: var(--fs-600); font-weight: 600; }
p  { margin: 0 0 var(--sp-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a  { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-ink); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.15rem; }
li { margin-bottom: var(--sp-2); }
img, svg { max-width: 100%; }
svg { display: block; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy-800); color: #fff; padding: var(--sp-3) var(--sp-4);
}
.skip:focus { left: var(--sp-4); top: var(--sp-4); color: #fff; }

/* --- Layout primitives --------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.band { padding-block: clamp(3.25rem, 7vw, var(--sp-9)); }
.band--tight { padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }
.band--mist { background: var(--mist); border-block: 1px solid var(--line); }
.band--navy { background: var(--navy-900); color: #dbe3f2; border: 0; }
.band--navy h2, .band--navy h3, .band--navy h4 { color: #fff; }
.band--navy a { color: #fff; }
.stack > * + * { margin-top: var(--sp-4); }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* eyebrow / kicker — mono, uppercase, letterspaced. The one place mono is bold. */
.eyebrow {
  font: 500 var(--fs-100)/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 var(--sp-3);
}
.band--navy .eyebrow { color: #9db0d4; }
.band--navy .eyebrow--accent { color: #ff9a72; }
.eyebrow--accent { color: var(--accent-ink); }
.mono { font-family: var(--mono); font-size: 0.94em; }
.lede { font-size: var(--fs-600); color: var(--ink-2); max-width: var(--measure); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-300); }

.section-head { max-width: 62ch; margin-bottom: clamp(1.75rem, 3vw, var(--sp-6)); }
.section-head p { color: var(--ink-2); }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--line);
}
.hdr-inner {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: var(--sp-3); flex: 0 0 auto; text-decoration: none; }
.brand-mark { width: 19px; height: auto; flex: 0 0 auto; }
.brand-word {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}
.brand-word--inverse { color: #fff; }
.brand:hover .brand-word { color: var(--accent); }
.nav { margin-left: auto; display: flex; align-items: center; gap: var(--sp-1); }
.nav a {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 0 var(--sp-3); border-radius: var(--r-1);
  font-size: var(--fs-300); font-weight: 500; color: var(--ink-2);
  text-decoration: none;
}
.nav a:hover { background: var(--mist-2); color: var(--navy-800); }
.nav a[aria-current='page'] { color: var(--navy-800); box-shadow: inset 0 -2px 0 var(--accent); }
.hdr-actions { display: flex; align-items: center; gap: var(--sp-3); flex: 0 0 auto; }
.hdr-tel {
  font: 500 var(--fs-200)/1 var(--mono);
  color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.hdr-tel:hover { color: var(--accent-ink); }
.nav-toggle {
  display: none;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center; gap: var(--sp-2);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-2);
  font: 500 var(--fs-200)/1 var(--sans); color: var(--ink); cursor: pointer;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 44px; padding: 0 var(--sp-5);
  border: 1px solid transparent; border-radius: var(--r-2);
  font: 600 var(--fs-300)/1 var(--sans);
  text-decoration: none; cursor: pointer;
}
.btn--primary { background: var(--accent-ink); color: #fff; }
.btn--primary:hover { background: #a92f0b; color: #fff; }
.btn--ghost { background: var(--paper); color: var(--navy-800); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy-800); color: var(--navy-800); background: var(--mist); }
.band--navy .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.band--navy .btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.link-arrow { font-weight: 600; font-size: var(--fs-300); text-decoration: none; }
.link-arrow::after { content: ' \2192'; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: #e6ecf8;
  overflow: hidden;
}
/* blueprint grid: a texture with a purpose (it is infrastructure), not a gloss */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 15% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, var(--sp-7));
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: start;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #ff8a5c; }
.hero-lede { font-size: var(--fs-600); color: #bfcbe4; max-width: 52ch; margin-top: var(--sp-5); }
.hero-cta { margin-top: var(--sp-6); }
.hero-note {
  margin-top: var(--sp-5); font-size: var(--fs-200); color: #93a4c6;
  font-family: var(--mono);
}

/* capability panel — a real contents list, not a fake dashboard */
.panel {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-2);
  background: rgba(255, 255, 255, .04);
  padding: var(--sp-5);
}
.panel h2 { font-size: var(--fs-200); font-family: var(--mono); font-weight: 500; text-transform: uppercase;
  letter-spacing: .12em; color: #9db0d4; margin-bottom: var(--sp-4); }
.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-list li {
  display: grid; grid-template-columns: 2.25rem 1fr; gap: var(--sp-3);
  padding: var(--sp-3) 0; margin: 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: var(--fs-300);
}
.panel-list li:first-child { border-top: 0; }
.panel-list .idx { font-family: var(--mono); font-size: var(--fs-200); color: #7f92b8; padding-top: 2px; }
.panel-list strong { display: block; color: #fff; font-weight: 600; }
.panel-list span { color: #a9b8d4; }
.panel-foot { margin: var(--sp-4) 0 0; font-size: var(--fs-200); color: #93a4c6; }

/* --- Facts strip -------------------------------------------------------- */
.facts { background: var(--mist); border-bottom: 1px solid var(--line); }
.facts-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5); padding-block: clamp(1.75rem, 3vw, 2.5rem);
}
.fact dt {
  font: 500 var(--fs-100)/1.3 var(--mono); text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent-ink); margin-bottom: var(--sp-2);
}
.fact dd { margin: 0; font-size: var(--fs-300); color: var(--ink-2); }
.fact strong { color: var(--navy-800); }

/* --- Ledger (services rows: index | title | detail) — deliberately not cards */
.ledger { border-top: 1px solid var(--line-strong); max-width: 60rem; }
.ledger__row {
  display: grid; grid-template-columns: 3.25rem minmax(0, 13rem) minmax(0, 1fr) auto;
  gap: var(--sp-5); align-items: baseline;
  padding: var(--sp-5) 0; border-bottom: 1px solid var(--line-strong);
  text-decoration: none; color: inherit;
}
a.ledger__row:hover { background: var(--mist); color: inherit; }
.ledger__idx { font: 500 var(--fs-200)/1 var(--mono); color: var(--muted); padding-top: 4px; }
.ledger__title { font-size: var(--fs-600); font-weight: 600; color: var(--navy-800); }
.ledger__body { color: var(--ink-2); font-size: var(--fs-300); max-width: 54ch; }
.ledger__meta { font: 500 var(--fs-200)/1.5 var(--mono); color: var(--muted); text-align: right; white-space: nowrap; }
.ledger--plain .ledger__row { text-decoration: none; }

/* --- Steps / engagement model ------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
.steps li { margin: 0; padding-top: var(--sp-4); border-top: 2px solid var(--navy-800); }
.steps li::before {
  counter-increment: step; content: '0' counter(step);
  display: block; font: 500 var(--fs-100)/1 var(--mono); letter-spacing: .1em;
  color: var(--accent-ink); margin-bottom: var(--sp-3);
}
.steps h3 { font-size: var(--fs-600); margin-bottom: var(--sp-2); }
.steps p { font-size: var(--fs-300); color: var(--ink-2); }

/* --- Compare (two-column fit / not-fit) --------------------------------- */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
  border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; }
.compare > div { padding: var(--sp-5); }
.compare > div + div { border-left: 1px solid var(--line); }
.compare h3 { font-size: var(--fs-600); margin-bottom: var(--sp-3); }
.compare ul { margin: 0; padding-left: 1.1rem; font-size: var(--fs-300); color: var(--ink-2); }
.compare .yes { background: #f3faf5; }
.compare .no  { background: var(--mist); }
.band--navy .compare { border-color: rgba(255, 255, 255, .18); }
.band--navy .compare > div + div { border-left-color: rgba(255, 255, 255, .18); }
.band--navy .compare .yes { background: rgba(63, 169, 107, .12); }
.band--navy .compare .no  { background: rgba(255, 255, 255, .04); }
.band--navy .compare ul { color: #c3cee6; }

/* --- Tech groups -------------------------------------------------------- */
.tech { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
.tech h3 {
  font: 500 var(--fs-100)/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-4);
}
.tech ul { list-style: none; margin: 0; padding: 0; }
.tech li { margin: 0 0 var(--sp-3); font-size: var(--fs-300); color: var(--ink-2); }
.tech li b { color: var(--ink); font-weight: 600; }
.tech li span { display: block; color: var(--muted); font-size: var(--fs-200); }

/* --- Prose (interior pages) -------------------------------------------- */
.page-head { background: var(--navy-900); color: #e6ecf8; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-head h1 { color: #fff; font-size: clamp(1.9rem, 1.25rem + 2.4vw, 3rem); }
.page-head .lede { color: #bfcbe4; margin-top: var(--sp-4); }
.page-head .eyebrow { color: #9db0d4; }
.crumbs { font: 500 var(--fs-100)/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: #8fa1c4; margin-bottom: var(--sp-4); }
.crumbs a { color: #b9c6e0; text-decoration: none; }
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--fs-700); margin: var(--sp-7) 0 var(--sp-3); }
.prose h3 { margin: var(--sp-6) 0 var(--sp-2); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul li::marker { color: var(--accent-ink); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(1.75rem, 5vw, var(--sp-7)); align-items: start; }
.side-note {
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-2);
  padding: var(--sp-5);
}
.side-note h3 { font-size: var(--fs-600); margin-bottom: var(--sp-3); }
.side-note ul { padding-left: 1.1rem; font-size: var(--fs-300); color: var(--ink-2); margin-bottom: 0; }
.side-note .eyebrow { margin-bottom: var(--sp-3); }

/* Note box: full border + tint, no decorative left accent rail */
.note {
  border: 1px solid var(--line); border-radius: var(--r-2);
  background: var(--paper); padding: var(--sp-5);
}
.note--accent { background: var(--accent-soft); border-color: #f6cfc2; }
.note .eyebrow { margin-bottom: var(--sp-2); }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }

/* --- Tables ------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-2); }
table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-300); min-width: 34rem; }
table.data caption { text-align: left; padding: var(--sp-4); font-size: var(--fs-200); color: var(--muted); }
table.data th, table.data td { text-align: left; padding: var(--sp-4); border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th {
  background: var(--mist-2); font: 500 var(--fs-100)/1.4 var(--mono); text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td b { color: var(--navy-800); }
.band--navy table.data th, .band--navy table.data td { border-color: rgba(255, 255, 255, .15); }
.band--navy table.data thead th { background: rgba(255, 255, 255, .07); color: #a9b8d4; }

/* --- Forms -------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-4); max-width: 40rem; }
.field { display: grid; gap: var(--sp-2); }
.field label { font: 500 var(--fs-200)/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.field input, .field textarea, .field select {
  font: 400 var(--fs-400)/1.5 var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-2);
  padding: var(--sp-3) var(--sp-4); min-height: 44px; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--navy-800); outline: 2px solid rgba(7, 32, 111, .18); outline-offset: 0; }
.field .req { color: var(--accent-ink); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: var(--fs-300); }
.form-status[data-state='error'] { color: #a4220d; }
.form-status[data-state='ok'] { color: #1f6b40; }

/* --- CTA band ----------------------------------------------------------- */
.cta { background: var(--navy-800); color: #dfe6f6; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-6); align-items: center;
  padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.cta h2 { color: #fff; font-size: var(--fs-800); }
.cta p { color: #c3cee6; margin-top: var(--sp-3); max-width: 56ch; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #a9b8d4; font-size: var(--fs-300); padding-block: clamp(2.5rem, 5vw, 4rem) var(--sp-6); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr); gap: var(--sp-6); }
.site-footer h3 { font: 500 var(--fs-100)/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: #8fa1c4; margin-bottom: var(--sp-4); }
.site-footer a { color: #dfe6f6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--sp-2); }
.foot-brand a { display: inline-flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); text-decoration: none; }
.foot-brand .brand-mark { width: 19px; }
.foot-brand p { color: #93a4c6; max-width: 32ch; }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); justify-content: space-between;
  align-items: center; margin-top: var(--sp-7); padding-top: var(--sp-4); border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: var(--fs-200); color: #8fa1c4;
}
.foot-bottom p { margin: 0; }

/* --- Motion (subtle, and off when the OS says so) ----------------------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .panel { max-width: 40rem; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-5); }
}
@media (max-width: 900px) {
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: var(--sp-2) clamp(1rem, 4vw, 2rem) var(--sp-4);
    box-shadow: var(--shadow-1);
  }
  .nav.is-open { display: flex; }
  .nav a { min-height: 48px; padding: 0 var(--sp-2); font-size: var(--fs-400); }
  .nav a[aria-current='page'] { box-shadow: inset 3px 0 0 var(--accent); }
  .nav-toggle { display: inline-flex; }
  .hdr-actions .btn { display: none; }
  .hdr-tel { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  /* Two-column ledger: the index stays in the gutter, and the title, detail and
     meta stack in the second column. Without the explicit grid-column on each
     child, auto-placement drops the detail line into the 2.25rem gutter and the
     text breaks one word per line. */
  .ledger__row {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: var(--sp-3) var(--sp-4); align-items: start;
  }
  .ledger__idx { grid-column: 1; grid-row: 1; }
  .ledger__title, .ledger__body, .ledger__meta { grid-column: 2; max-width: none; }
  .ledger__meta { grid-column: 2; text-align: left; padding-top: var(--sp-1); }
  .compare { grid-template-columns: minmax(0, 1fr); }
  .compare > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .cta-inner { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .facts-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
}
@media (max-width: 560px) {
  .tech { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}

/* --- Print ------------------------------------------------------------- */
@media print {
  .site-header, .cta, .nav-toggle, .hdr-actions { display: none; }
  body { font-size: 12pt; }
  .band--navy, .hero, .page-head { background: #fff !important; color: #000 !important; }
  .hero h1, .page-head h1, .band--navy h2, .band--navy h3 { color: #000 !important; }
}
