/* MS Advisory site styles
   Layout language: sharp edges, hairline rules, mono labels, white / mist / navy rhythm.
   Palette from the client-facing PDF theme (_tools/build_pdf.py). Navy plays the role of black,
   steel and ice are the accents. Never use ochre: it is reserved for internal documents. */

@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-weight: 400 700; font-style: normal; font-display: swap; src: url('../fonts/Lora-Variable.woff2') format('woff2'); }

:root {
  --navy-900: #1C2A3C;   /* PDF --navy: dark bands, headings, primary button */
  --navy-800: #24344A;   /* panels on navy */
  --navy-700: #2B3A4F;   /* PDF --navy2 */
  --steel-500: #5B7FA6;  /* PDF --steel: rules, nodes, large accents */
  --steel-600: #4A6C93;  /* steel for small text on light backgrounds (AA) */
  --ice: #B9C9DC;        /* PDF --ice: accent on navy */
  --on-navy: #C9D4E2;    /* body text on navy */
  --line: #DDE3EA;       /* hairlines on light */
  --line-navy: rgba(185, 201, 220, .18);
  --mist: #F4F6F8;       /* alternate light band */
  --ink: #1F2733;
  --muted: #5A6573;
  --white: #FFFFFF;

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --label: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; /* spaced capitals, as in the PDFs */

  --max: 1180px;
  --gutter: 16px;
  --section: 80px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section: 128px; }
}

*, *::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(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 17px; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel-600); text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }

:focus-visible { outline: 2px solid var(--steel-500); outline-offset: 3px; }
.on-navy :focus-visible, .site-footer :focus-visible { outline-color: var(--ice); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--navy-900); color: var(--white); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }

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

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

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); color: var(--navy-900); margin: 0; font-weight: 500; }
h1 { font-size: clamp(42px, 5.4vw, 76px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--steel-500); }
p { margin: 0 0 1em; }

/* Mono label: short rule, then uppercase letter-spaced text */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--label); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--steel-600); margin-bottom: 24px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; flex: none; }
.on-navy .eyebrow { color: var(--ice); }

.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head p { margin-top: 20px; color: var(--muted); font-size: 1.05em; max-width: 620px; }
.on-navy .section-head p { color: var(--on-navy); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section.alt { background: var(--mist); }
.on-navy { background: var(--navy-900); color: var(--on-navy); }
.on-navy h1, .on-navy h2, .on-navy h3 { color: var(--white); }
.on-navy h2 em, .on-navy h1 em { color: var(--ice); }
.on-navy a:not(.btn) { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--navy-900); text-decoration: none; white-space: nowrap; letter-spacing: -0.01em; }
.brand span { color: var(--steel-500); }
.brand:hover { color: var(--navy-900); }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line); color: var(--navy-900);
  font: 500 14px var(--sans); padding: 9px 12px; cursor: pointer;
}
.nav-toggle svg { width: 16px; height: 16px; }
.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 24px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a:not(.btn) {
  display: block; padding: 14px 0; color: var(--navy-900); text-decoration: none;
  font: 500 16px var(--sans);
  border-bottom: 1px solid var(--line);
}
.site-nav li a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--steel-600); }
.site-nav .btn { margin-top: 16px; }
/* Highlighted tabs (Resources, AI Assessment Tool): light blue (ice) with navy text; ice as text on white would be unreadable */
.site-nav li a.nav-highlight { background: var(--ice); color: var(--navy-900); padding: 14px 12px; margin-top: 8px; border-bottom: 0; }
.site-nav li a.nav-highlight:hover, .site-nav li a.nav-highlight[aria-current="page"] { background: var(--on-navy); color: var(--navy-900); }
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; padding: 0; border: 0; background: none; }
  .site-nav ul { display: flex; align-items: center; gap: 28px; }
  .site-nav li a:not(.btn) { padding: 8px 0; border: 0; color: var(--muted); font-size: 15px; white-space: nowrap; }
  .site-nav li a:not(.btn):hover { color: var(--navy-900); }
  .site-nav a[aria-current="page"] { color: var(--navy-900); box-shadow: inset 0 -1px 0 var(--steel-500); }
  .site-nav .btn { margin-top: 0; margin-left: 8px; }
  .site-nav li a.nav-highlight { padding: 8px 12px; margin-top: 0; color: var(--navy-900); }
  .site-nav li a.nav-highlight[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--steel-500); }
}
/* Narrower desktops: slightly tighter menu gaps so the brand keeps its space with seven links */
@media (min-width: 1100px) and (max-width: 1239px) {
  .site-nav ul { gap: 20px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px/1.2 var(--sans); text-decoration: none; letter-spacing: .005em;
  padding: 16px 28px; border: 1px solid var(--navy-900); border-radius: 0; cursor: pointer;
  background: var(--navy-900); color: var(--white);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--steel-600); border-color: var(--steel-600); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy-900); border-color: #B8C3CF; }
.btn-outline:hover { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.on-navy .btn { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.on-navy .btn:hover { background: var(--ice); border-color: var(--ice); color: var(--navy-900); }
.site-header .btn { padding: 11px 18px; font-size: 14px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; color: var(--navy-900); }
.link-arrow:hover { color: var(--steel-600); }
.on-navy .link-arrow { color: var(--white); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 44px; }
.actions .link-arrow { margin-left: 12px; }
@media (max-width: 520px) {
  .hero .actions .btn { width: 100%; }
  .actions .link-arrow { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; position: relative; overflow: hidden; }
@media (min-width: 768px) { .hero { padding: 120px 0 140px; } }
.hero h1 { max-width: 12em; }
.hero .sub, .page-hero .sub { font-size: 1.12em; color: var(--muted); max-width: 34em; margin-top: 32px; line-height: 1.6; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.7fr 1fr; } }
.hero-art { display: none; }
@media (min-width: 1000px) { .hero-art { display: block; } }
.page-hero { padding: 64px 0 72px; }
/* Navy hero, as in the client-facing PDFs */
.hero.on-navy, .page-hero.on-navy { background: radial-gradient(120% 140% at 95% 0%, #3A4A5F 0%, var(--navy-800) 35%, var(--navy-900) 70%); }
.on-navy .sub { color: var(--on-navy); }
.on-navy .btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.on-navy .btn-outline:hover { background: transparent; color: var(--white); border-color: var(--white); }
@media (min-width: 768px) { .page-hero { padding: 104px 0 112px; } }
.page-hero h1 { font-size: clamp(38px, 5vw, 68px); max-width: 13em; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 40px 32px; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Cards: hairline-ruled, square ---------- */
.card { border-top: 1px solid var(--navy-900); padding-top: 24px; display: flex; flex-direction: column; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card .card-foot { margin-top: auto; padding-top: 24px; }
.on-navy .card { border-top-color: var(--line-navy); }
.on-navy .card p { color: var(--on-navy); }

.card-header { margin-bottom: 20px; }
.card-header h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: -0.01em; margin: 8px 0 0; }

/* Boxed variant for services, paths and the pilot: white panel, steel left edge */
.panel {
  background: var(--white); border: 1px solid var(--line); border-left: 2px solid var(--steel-500);
  padding: 32px; display: flex; flex-direction: column;
}
.panel h3 { margin-bottom: 10px; }
.panel p { color: var(--muted); }
.panel p:last-child { margin-bottom: 0; }
.panel .card-foot { margin-top: auto; padding-top: 24px; }

.path-card { padding: 40px; transition: border-color .2s ease; }
@media (min-width: 768px) { .path-card { padding: 48px; } }
.path-card:hover { border-left-color: var(--navy-900); }
.path-card h3 { font-family: var(--serif); font-size: clamp(28px, 3vw, 36px); font-weight: 500; letter-spacing: -0.015em; margin: 16px 0 14px; }
.path-card p { font-size: 1.05em; }

.num { font-family: var(--label); font-size: 12px; letter-spacing: .14em; color: var(--steel-600); margin-bottom: 18px; font-weight: 600; }
.on-navy .num { color: var(--ice); }

.tag { font-family: var(--label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-600); display: block; font-weight: 600; }
.on-navy .tag { color: var(--ice); }

/* ---------- Credentials bar (in place of a client logo bar) ---------- */
.creds { border-bottom: 1px solid var(--line); background: var(--white); }
.creds ul { list-style: none; margin: 0; padding: 20px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; }
.creds li {
  font-family: var(--label); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap; padding: 4px 16px; font-weight: 600; }
.creds li + li { border-left: 1px solid var(--line); }
@media (min-width: 1000px) {
  .creds ul { padding: 30px 0; gap: 8px 0; }
  .creds li { letter-spacing: .06em; padding: 2px 14px; }
}
@media (min-width: 1200px) {
  .creds .wrap { max-width: 1340px; }
  .creds li { font-size: 10.5px; letter-spacing: .04em; padding: 2px 11px; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-navy); }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 36px 24px 8px 0; }
@media (min-width: 1000px) {
  .stat { padding: 40px 32px 8px; border-left: 1px solid var(--line-navy); }
  .stat:first-child { border-left: 0; padding-left: 0; }
}
.stat .fig { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; color: var(--ice); display: block; letter-spacing: -0.02em; }
.stat .lbl { display: block; margin-top: 18px; font-family: var(--label); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.6; color: var(--on-navy); max-width: 22em; font-weight: 600; }

/* ---------- Timeline: line with markers ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; border-top: 1px solid var(--navy-900); }
@media (min-width: 1000px) { .timeline { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.timeline li { position: relative; padding-top: 28px; }
.timeline li::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--steel-500); }
.timeline .phase { font-family: var(--label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-600); display: block; margin-bottom: 12px; font-weight: 600; }
.timeline h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin-bottom: 10px; }
.timeline p { margin: 0; color: var(--muted); }

/* ---------- Case studies ---------- */
.case { background: var(--white); border: 1px solid var(--line); border-left: 2px solid var(--steel-500); padding: 28px 28px 24px; display: flex; flex-direction: column; min-height: 230px; transition: border-color .2s ease; }
.case:hover { border-left-color: var(--navy-900); }
.case .metric { font-family: var(--label); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-600); margin-bottom: 24px; display: block; line-height: 1.7; font-weight: 600; }
.case h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.case .sector { margin-top: auto; padding-top: 24px; font-family: var(--label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.case-full { display: grid; gap: 24px; padding: 56px 0; border-top: 1px solid var(--line); }
.case-full:first-of-type { border-top: 1px solid var(--navy-900); }
@media (min-width: 1000px) { .case-full { grid-template-columns: 5fr 7fr; gap: 64px; } }
.case-full h2 { font-size: clamp(28px, 3vw, 38px); }
.case-full h3 { font-family: var(--label); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--steel-600); margin: 28px 0 8px; }
.case-full h3:first-child { margin-top: 0; }
.case-full .figs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.case-full .figs span { border: 1px solid var(--line); color: var(--navy-900); padding: 6px 12px; font-family: var(--label); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }

/* ---------- Stance ---------- */
.beliefs { display: grid; gap: 48px; }
@media (min-width: 1000px) { .beliefs { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; } }
.stance { list-style: none; margin: 0; padding: 0; }
.stance li { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; color: var(--navy-900); padding: 22px 0; border-bottom: 1px solid var(--line); letter-spacing: -0.01em; }
.stance li:first-child { border-top: 1px solid var(--line); }
.stance li::before { content: '/ '; color: var(--steel-500); }
.on-navy .stance li { color: var(--white); border-color: var(--line-navy); }
.on-navy .stance li::before { color: var(--ice); }
.ticks-panel { background: var(--navy-800); border: 1px solid var(--line-navy); padding: 32px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: '✓'; color: var(--steel-500); font-weight: 700; flex: none; }
.on-navy .ticks li { color: var(--white); border-color: var(--line-navy); font-weight: 500; }
.on-navy .ticks li::before { color: var(--ice); }
.ticks-title { font-family: var(--label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-600); margin-bottom: 8px; display: block; font-weight: 600; }
.on-navy .ticks-title { color: var(--ice); }

/* ---------- Testimonial ---------- */
.quote { max-width: 860px; margin: 0; border-left: 2px solid var(--steel-500); padding-left: clamp(24px, 4vw, 48px); }
.quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.45; color: var(--navy-900); }
.quote blockquote p { margin: 0; }
.quote figcaption { margin-top: 28px; font-family: var(--label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- Closing tagline ---------- */
.closing .tagline { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 84px); line-height: 1.04; letter-spacing: -0.02em; color: var(--white); margin: 0 0 32px; }
.closing .tagline span { display: block; }
.closing .tagline span + span { color: var(--ice); font-style: italic; }
.closing .tagline em { font-style: normal; }
.closing p { max-width: 34em; font-size: 1.1em; }

.cta-band { text-align: center; }
.cta-band h2 { max-width: 16em; margin: 0 auto; }
.cta-band .actions { justify-content: center; }

/* ---------- Prose pages ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(26px, 2.6vw, 32px); margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

.note { border-left: 2px solid var(--steel-500); background: var(--mist); padding: 20px 24px; margin: 48px 0 0; font-size: .95em; }
.alt .note { background: var(--white); }
.note p:last-child { margin-bottom: 0; }

.price { font-family: var(--label); font-size: 11px; color: var(--steel-600); letter-spacing: .14em; text-transform: uppercase; margin-top: 20px; display: block; font-weight: 600; }
.panel ul, .card ul { padding-left: 1.1em; margin: 0 0 1em; color: var(--muted); }
.panel li, .card li { margin-bottom: .5em; }
.panel li strong { color: var(--ink); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .about-grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } }
.portrait-wrap { max-width: 400px; border-left: 2px solid var(--steel-500); padding-left: 16px; }
.portrait { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1.5fr 1fr; gap: 80px; } }
.form { display: grid; gap: 24px; }
.field > label:not(.radio), .field > legend { display: block; font-family: var(--label); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; color: var(--navy-900); }
.field .hint { color: var(--muted); text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 13px; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 14px 16px; border: 1px solid #A9B4C1; border-radius: 0; background: var(--white);
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--steel-500); outline-offset: 0; border-color: var(--steel-500); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radio { display: flex; gap: 10px; align-items: center; margin: 8px 0; font-size: 16px; color: var(--ink); }
.radio input { width: 18px; height: 18px; accent-color: var(--navy-900); }
.hp { position: absolute; left: -9999px; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy-900); }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list .k { display: block; font-family: var(--label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-600); margin-bottom: 4px; font-weight: 600; }
.small { font-size: 14px; color: var(--muted); margin: 0; }
/* Shown only when "I'm a founder" is picked; works without JavaScript */
.founder-note { display: none; margin: 12px 0 0; padding: 12px 16px; border-left: 2px solid var(--steel-500); background: var(--mist); font-size: 15px; }
.form:has(input[name="enquirer"][value="Founder"]:checked) .founder-note { display: block; }

/* ---------- Public sector rule areas ---------- */
.rules .tag { margin-top: auto; padding-top: 16px; }

/* ---------- Resource library ---------- */
.resource h3 { margin: 14px 0 10px; }
.resource .resource-meta { margin-top: 16px; font-size: 13px; color: var(--muted); }
.access-box { max-width: 680px; }
.field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 13px 40px 13px 16px;
  border: 1px solid #A9B4C1; border-radius: 0; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231C2A3C' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center;
  -webkit-appearance: none; appearance: none;
}
.field select:focus { outline: 2px solid var(--steel-500); outline-offset: 0; border-color: var(--steel-500); }
.form-error { color: #8A2B1E; background: #FBEDEA; border-left: 2px solid #8A2B1E; padding: 12px 16px; margin: 0; font-size: 15px; }
.form-error a { color: inherit; }
.download-ready:focus { outline: none; }
.download-ready h2 { margin-bottom: 12px; }
.access-dialog {
  width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  border: 0; border-top: 3px solid var(--steel-500); padding: 40px; background: var(--white); color: var(--ink);
  box-shadow: 0 24px 64px rgba(28, 42, 60, .28);
}
@media (max-width: 520px) { .access-dialog { padding: 32px 20px; } }
.access-dialog::backdrop { background: rgba(28, 42, 60, .6); backdrop-filter: blur(2px); }
.access-dialog .section-head h2 { font-size: clamp(26px, 3vw, 34px); padding-right: 32px; }
.dialog-close { position: absolute; top: 16px; right: 16px; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy-900); }
.dialog-close:hover { color: var(--steel-600); }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--on-navy); padding: 80px 0 32px; font-size: 15px; }
.site-footer .brand { color: var(--white); }
.site-footer .brand span { color: var(--ice); }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 1000px) { .footer-brand { grid-column: auto; } }
.footer-brand .brand { font-size: 26px; }
.footer-brand p { margin-top: 14px; max-width: 22em; }
.site-footer h2 { font-family: var(--label); font-size: 11px; font-weight: 600; color: var(--ice); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-base { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-navy); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-family: var(--label); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
/* Anchored headings clear the sticky header */
.prose h2[id] { scroll-margin-top: 96px; }

/* ---------- Scroll fade-up, only when JS has run and motion is allowed ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
