/* Mach Advisory Group — single stylesheet.
   Midnight canvas, hairline structure, one accent. Sharp corners, precise type. */

:root {
  --bg: #050b14;
  --bg-2: #08111d;
  --surface: #0c1726;
  --surface-2: #112033;
  --line: rgba(150, 180, 220, .12);
  --line-2: rgba(150, 180, 220, .24);
  --text: #eef3f9;
  --text-2: #a8b5c6;
  --text-3: #6f8098;
  --accent: #3a9bff;
  --accent-soft: #9fcdff;
  --danger: #ff8a8a;
  --ok: #7fd4a8;

  --sans: "Mach Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Mach Serif", "Source Serif 4", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(40px, 5vw, 72px);
  --header-h: 76px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --cell: var(--bg);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text-2);
  font: 400 16px/1.65 var(--sans); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }

h1, h2, h3, h4 { margin: 0; color: var(--text); font-family: var(--sans); font-weight: 560; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.2vw, 88px); line-height: 1.01; letter-spacing: -.045em; }
h2 { font-size: clamp(30px, 3.5vw, 48px); line-height: 1.07; letter-spacing: -.035em; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
em { font-family: var(--serif); font-style: normal; font-weight: 400; color: var(--accent-soft); letter-spacing: -.025em; }
strong { color: var(--text); font-weight: 600; }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--text-2); }
.desktop-break { display: inline; }

.wrap { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-sm { padding-block: clamp(28px, 3.5vw, 44px); }
.section-raised, .section-tint, .section-dark { --cell: var(--bg-2); background: var(--bg-2); border-block: 1px solid var(--line); }
.section-dark { --cell: var(--surface); background: var(--surface); }
.section + .section-raised, .section-raised + .section, .section-tint + .section, .section + .section-tint { border-top-color: var(--line); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: #fff; color: var(--bg); font-weight: 600; font-size: 14px; }
.skip-link:focus { top: 12px; }

/* ---------- Eyebrows & links ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px;
  color: var(--text-3); font-size: 12px; font-weight: 560; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex: none; }
.eyebrow:has(.index)::before { display: none; }
.eyebrow .index { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); font-variant-numeric: tabular-nums; }
.eyebrow .index::after { content: ""; width: 24px; height: 1px; background: var(--line-2); }
.numbered-label > span { color: var(--accent); }

.inline-link {
  display: inline-flex; align-items: center; gap: 14px; padding-bottom: 6px;
  color: var(--text); font-size: 14px; font-weight: 540; letter-spacing: -.005em;
  border-bottom: 1px solid var(--line-2); transition: border-color .25s, gap .25s var(--ease);
}
.inline-link::after { content: "→"; color: var(--accent); transition: transform .25s var(--ease); }
.inline-link:hover { border-color: var(--accent); }
.inline-link:hover::after { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.button, .nav-contact {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 48px; padding: 0 22px; border: 1px solid #fff; border-radius: var(--radius);
  background: #fff; color: var(--bg); font-size: 14.5px; font-weight: 560; letter-spacing: -.005em; line-height: 1;
  cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, color .2s;
}
.button::after { content: "→"; transition: transform .25s var(--ease); }
.button:hover, .nav-contact:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--bg); }
.button:hover::after { transform: translateX(4px); }
.button-light { background: #fff; color: var(--bg); }
.button-ghost, .button-outline { background: transparent; color: var(--text); border-color: var(--line-2); }
.button-ghost:hover, .button-outline:hover { background: rgba(255, 255, 255, .06); border-color: var(--text); color: var(--text); }
.button-no-arrow::after { display: none; }
.button[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(5, 11, 20, .78); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  transition: background .3s;
}
.site-header[data-scrolled=true] { background: rgba(5, 11, 20, .92); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 32px; }
.brand { display: flex; flex-direction: column; gap: 3px; flex: none; }
.brand img { width: 136px; height: auto; }
.brand-tagline { color: var(--text-3); font-size: 8.5px; font-weight: 600; letter-spacing: .16em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { position: relative; padding: 10px 14px; color: var(--text-2); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-link:hover, .nav-link[aria-current=page] { color: var(--text); }
.nav-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-link:hover::after, .nav-link[aria-current=page]::after { transform: scaleX(1); }
.nav-contact { min-height: 40px; padding: 0 16px; margin-left: 16px; font-size: 13.5px; }
.nav-contact span { display: none; }
.nav-contact::after { content: "→"; }
.menu-toggle { display: none; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: transparent; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; }
.reading-progress { position: fixed; top: 0; left: 0; z-index: 60; width: 0; height: 2px; background: var(--accent); }

/* ---------- Home: hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  min-height: clamp(520px, calc(86svh - var(--header-h)), 760px); background: var(--bg);
}
.hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 11, 20, .96) 0%, rgba(5, 11, 20, .82) 32%, rgba(5, 11, 20, .25) 64%, rgba(5, 11, 20, .05) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 11, 20, 0) 34%);
}
.hero-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(44px, 7vh, 88px); }
.hero h1 { max-width: 11.5ch; }
.hero h1 em { display: block; }
.hero-lead { max-width: 38ch; margin: 20px 0 0; color: var(--text-2); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-rail { border-top: 1px solid var(--line); background: rgba(5, 11, 20, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-rail-inner { display: grid; grid-template-columns: repeat(3, 1fr) auto; }
.hero-rail a { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-left: 1px solid var(--line); color: var(--text); font-size: 15px; font-weight: 500; transition: background .2s; }
.hero-rail a:first-child { border-left: 0; padding-left: 0; }
.hero-rail a span { color: var(--accent); font-size: 12px; font-variant-numeric: tabular-nums; }
.hero-rail a:hover { background: rgba(255, 255, 255, .03); }
.hero-rail .hero-rail-cue { color: var(--text-3); font-size: 13px; padding-right: 0; }
.hero-rail .hero-rail-cue span { color: var(--text-3); font-size: 14px; }

/* ---------- Home: perspective ---------- */
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.perspective-head { grid-column: 1 / span 5; }
.perspective-body { grid-column: 7 / span 6; padding-top: 30px; }
.statement { margin-bottom: 24px; color: var(--text); font-size: clamp(22px, 2.1vw, 28px); line-height: 1.35; letter-spacing: -.02em; font-weight: 460; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.two-col p { margin: 0; font-size: 15.5px; }

/* ---------- Section headings ---------- */
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 380px); gap: 24px 64px; align-items: end; margin-bottom: clamp(22px, 2.6vw, 36px); }
.section-heading h2 { max-width: 18ch; }
.section-heading p { margin-bottom: 14px; font-size: 16px; }
.section-heading > p:last-child, .section-heading > div:last-child p:last-child { margin-bottom: 0; }
.section-heading > div:last-child:not(:first-child) p { margin-bottom: 20px; }
.section-heading > .inline-link { justify-self: end; }
.section-foot-link { margin-top: 24px; }
.split-heading { display: grid; grid-template-columns: 5fr 7fr; gap: 32px clamp(40px, 7vw, 112px); align-items: start; }
.split-heading .inline-link { margin-top: 20px; }

/* ---------- Home: expertise explorer ---------- */
.expertise-explorer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: 1px solid var(--line); background: var(--bg); }
.expertise-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.expertise-tab {
  display: grid; grid-template-columns: 36px 1fr 16px; align-items: center; gap: 12px; width: 100%;
  padding: 18px 24px; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  color: var(--text-2); font-size: 16px; font-weight: 500; letter-spacing: -.01em; line-height: 1.35; text-align: left; cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.expertise-tab:last-child { border-bottom: 0; }
.expertise-tab:hover { color: var(--text); background: rgba(255, 255, 255, .02); }
.expertise-tab[aria-selected=true] { color: var(--text); background: var(--surface); box-shadow: inset 2px 0 0 var(--accent); }
.tab-number { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.expertise-tab[aria-selected=true] .tab-number { color: var(--accent); }
.tab-arrow { color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .25s var(--ease); }
.expertise-tab[aria-selected=true] .tab-arrow { opacity: 1; transform: none; }
.expertise-panel { padding: clamp(24px, 3vw, 40px); height: 100%; display: flex; flex-direction: column; }
.panel-top { display: flex; justify-content: space-between; padding-bottom: 16px; margin-bottom: clamp(20px, 2.4vw, 28px); border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.expertise-panel h3 { max-width: 20ch; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.12; letter-spacing: -.03em; }
.expertise-panel > p { max-width: 52ch; margin: 14px 0 20px; font-size: 16.5px; }
.panel-work { margin: 0 0 24px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.panel-work li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 15px; }
.panel-work li::before { content: ""; position: absolute; left: 0; top: 19px; width: 6px; height: 6px; background: var(--accent); }
.expertise-panel .inline-link { align-self: flex-start; margin-top: auto; }

/* ---------- Home: sector story ---------- */
.sector-story { display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; border-bottom: 1px solid var(--line); }
.sector-visual { position: relative; margin: 0; overflow: hidden; background: var(--surface); }
.sector-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sector-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 11, 20, .7), transparent 40%); }
.sector-visual figcaption { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 24px; z-index: 1; display: flex; justify-content: space-between; color: var(--text); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.sector-story-copy { align-self: center; max-width: 640px; padding: clamp(36px, 4.5vw, 64px) var(--gutter) clamp(36px, 4.5vw, 64px) clamp(32px, 5vw, 72px); }
.sector-story-copy h2 { margin-bottom: 16px; }
.sector-story-copy h2 em { display: block; }
.sector-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; margin: 24px 0 28px; border-top: 1px solid var(--line); }
.sector-links a { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 15px; font-weight: 500; transition: color .2s; }
.sector-links a::after { content: "↗"; color: var(--text-3); transition: color .2s, transform .25s var(--ease); }
.sector-links a:hover { color: var(--accent-soft); }
.sector-links a:hover::after { color: var(--accent); transform: translate(2px, -2px); }

/* ---------- Steps (home flight plan + process grids) ---------- */
.flight-plan, .process-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.process-grid[data-steps="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.process-grid[data-steps="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.process-grid[data-steps="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flight-step, .process-step { position: relative; padding: 22px 24px 0 0; }
.flight-step::before, .process-step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--bg); border: 1px solid var(--accent); transform: rotate(45deg); }
.process-step::before { background: var(--cell); }
.flight-step-number, .process-number { display: block; margin-bottom: 14px; color: var(--accent); font-size: 12px; font-weight: 560; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.flight-step h3, .process-step h3 { margin-bottom: 8px; }
.flight-step p, .process-step p { font-size: 15px; line-height: 1.6; }
.section-dark h2 { margin-bottom: clamp(22px, 2.6vw, 36px); }

/* ---------- Insight cards ---------- */
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.insight-item { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg); transition: border-color .25s; }
.section:not(.section-raised):not(.section-tint) .insight-item { background: var(--bg-2); }
.insight-item:hover { border-color: var(--line-2); }
.insight-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line); }
.insight-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.insight-image-0 img { object-fit: cover; background: var(--surface); }
.insight-item:hover .insight-image img { transform: scale(1.035); }
.insight-category { margin: 18px 24px 8px; color: var(--accent); font-size: 12px; font-weight: 560; letter-spacing: .14em; text-transform: uppercase; }
.insight-item h3 { margin: 0 24px 8px; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }
.insight-item h3 a { transition: color .2s; }
.insight-item h3 a:hover { color: var(--accent-soft); }
.insight-item > p:not(.insight-category) { margin: 0 24px; font-size: 15px; }
.insight-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: auto; padding: 18px 24px 20px; }
.reading-time { color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- Closing CTA & CTA band ---------- */
.closing, .cta-band {
  position: relative; overflow: hidden; padding-block: clamp(48px, 6vw, 88px);
  background: radial-gradient(70% 90% at 90% 110%, rgba(58, 155, 255, .16), transparent 70%), var(--bg);
  border-top: 1px solid var(--line);
}
.closing h2 { max-width: 14ch; font-size: clamp(40px, 6vw, 88px); line-height: 1.02; letter-spacing: -.045em; }
.closing-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; margin-top: clamp(24px, 3vw, 36px); padding-top: 24px; border-top: 1px solid var(--line); }
.closing-foot p { margin: 0; font-size: 18px; }
.cta-band { padding-block: clamp(40px, 5vw, 72px); }
.cta-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; flex-wrap: wrap; }
.cta-inner h2 { max-width: 20ch; }
.cta-copy { max-width: 52ch; margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(36px, 4.5vw, 56px) 0 24px; background: #03070e; border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 32px 48px; }
.footer-brand img { width: 136px; }
.footer-brand p { max-width: 34ch; margin-top: 16px; color: var(--text-3); font-size: 14px; }
.footer-heading { margin-bottom: 14px; color: var(--text-3); font-size: 12px; font-weight: 560; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 6px; }
.footer-links a { color: var(--text-2); font-size: 14.5px; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: clamp(28px, 3.5vw, 40px); padding-top: 18px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; color: var(--text-3); font-size: 13px; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--text-3); font-size: 13px; transition: color .2s; }
.footer-legal a:hover { color: var(--text); }

/* ---------- Interior page hero ---------- */
.page-hero {
  padding: clamp(32px, 4vw, 56px) 0 clamp(32px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 120% at 100% 0%, rgba(58, 155, 255, .10), transparent 60%), var(--bg);
}
.page-hero.has-image { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(340px, 44vh, 440px); }
.page-hero.has-image > .wrap > :not(nav) { max-width: min(640px, 54%); }
.page-hero-media { position: absolute; inset: 0 0 0 auto; z-index: -1; width: 62%; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(5, 11, 20, .78) 22%, rgba(5, 11, 20, .22) 60%, rgba(5, 11, 20, .08) 100%),
    linear-gradient(0deg, rgba(5, 11, 20, .55) 0%, transparent 35%);
}
.page-hero h1 { max-width: 20ch; font-size: clamp(38px, 5vw, 68px); line-height: 1.04; }
.page-hero .lead { max-width: 60ch; margin-top: 16px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(20px, 2.6vw, 32px); padding: 0; list-style: none; color: var(--text-3); font-size: 13px; }
.breadcrumb li { display: inline-flex; gap: 8px; }
.breadcrumb li + li::before { content: "/"; opacity: .5; }
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { color: var(--text-2); }
.article-meta { display: flex; gap: 12px; margin-top: 20px; color: var(--text-3); font-size: 13px; }
.article-meta span + span::before { content: "·"; margin-right: 12px; }

/* ---------- Lists, prose, grids ---------- */
.prose p, .prose .lead { margin-bottom: 1.1em; }
.bullet-list { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.bullet-list li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 15.5px; }
.bullet-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 6px; height: 6px; background: var(--accent); }

.workstream-grid, .principle-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.workstream-grid[data-items="4"], .principle-grid[data-items="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.workstream { padding: clamp(20px, 2.2vw, 28px); background: var(--cell); transition: background .2s; }
.workstream:hover { background: var(--surface); }
.workstream h3 { margin-bottom: 8px; }
.workstream p { font-size: 15px; }

.expertise-list { border-top: 1px solid var(--line); }
.expertise-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.25fr) 24px; gap: 32px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease);
}
.expertise-number { color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; transition: color .2s; }
.expertise-row h3 { font-size: clamp(19px, 1.8vw, 23px); letter-spacing: -.02em; transition: color .2s; }
.expertise-row p { margin: 0; font-size: 15px; }
.expertise-arrow { color: var(--text-3); transition: color .2s, transform .25s var(--ease); }
.expertise-row:hover h3 { color: var(--accent-soft); }
.expertise-row:hover .expertise-number, .expertise-row:hover .expertise-arrow { color: var(--accent); }
.expertise-row:hover .expertise-arrow { transform: translate(3px, -3px); }

/* Services */
.service-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.service-intro h2 { margin-bottom: 16px; }
.service-aside { position: sticky; top: calc(var(--header-h) + 24px); padding: 26px; border: 1px solid var(--line); background: var(--bg-2); }
.service-aside h3 { margin-bottom: 12px; font-size: 20px; }
.service-aside p { font-size: 15px; margin-bottom: 20px; }
.deliverables { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.deliverables h2 { margin-bottom: 14px; }
.deliverable-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.deliverable-list li { display: flex; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 16.5px; }
.deliverable-list span { min-width: 28px; color: var(--accent); font-size: 13px; padding-top: 3px; font-variant-numeric: tabular-nums; }
.related-links { display: flex; flex-wrap: wrap; gap: 12px; }
.related-link { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--text); font-size: 14.5px; transition: border-color .2s, background .2s; }
.related-link::after { content: "→"; color: var(--accent); }
.related-link:hover { border-color: var(--accent); background: rgba(58, 155, 255, .06); }

/* FAQ */
.faq-list { max-width: 880px; border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; color: var(--text); font-size: clamp(17px, 1.5vw, 19px); font-weight: 500; letter-spacing: -.01em; list-style: none; cursor: pointer; transition: color .2s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; color: var(--accent); font-size: 22px; font-weight: 300; line-height: 1; transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--accent-soft); }
.faq-answer { max-width: 70ch; padding-bottom: 20px; }

/* Sectors index */
.sector-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sector-entry { display: flex; flex-direction: column; padding: clamp(22px, 2.4vw, 30px); background: var(--bg); transition: background .25s; }
.sector-entry:hover { background: var(--bg-2); }
.sector-card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; color: var(--text-3); font-size: 12px; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.sector-card-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); color: var(--accent); }
.sector-entry h2 { margin-bottom: 12px; font-size: 24px; letter-spacing: -.025em; }
.sector-entry p { flex: 1; font-size: 15px; }
.sector-entry .inline-link { align-self: flex-start; margin-top: 18px; }

/* About */
.about-brand { margin-top: 24px; max-width: 420px; border: 1px solid var(--line); overflow: hidden; }

/* Articles */
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: clamp(40px, 7vw, 112px); align-items: start; }
.article-toc { position: sticky; top: calc(var(--header-h) + 32px); }
.article-toc h2 { margin-bottom: 16px; color: var(--text-3); font-size: 12px; font-weight: 560; letter-spacing: .14em; text-transform: uppercase; }
.article-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.article-toc a { display: block; padding: 8px 0 8px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--text-2); font-size: 14px; line-height: 1.45; transition: color .2s, border-color .2s; }
.article-toc a:hover { color: var(--text); border-left-color: var(--accent); }
.article-body section { margin-bottom: 40px; }
.article-body h2 { margin-bottom: 14px; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.025em; }
.article-body p { color: #c3cedb; font-size: 17.5px; line-height: 1.75; }
.article-note { margin: 0 0 40px; padding: 24px 28px; border: 1px solid var(--line); border-left: 2px solid var(--accent); background: var(--bg-2); color: var(--text-2); font-size: 15px; }
.article-sources { padding-top: 32px; border-top: 1px solid var(--line); }
.article-sources h2 { font-size: 18px; }
.article-sources ul { margin: 0; padding: 0; list-style: none; }
.article-sources li + li { margin-top: 10px; }
.article-sources a { color: var(--text-2); font-size: 14px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; overflow-wrap: anywhere; }
.article-sources a:hover { color: var(--text); text-decoration-color: var(--accent); }

/* Insights search */
.insight-search { display: grid; grid-template-columns: minmax(0, 560px) auto; align-items: end; gap: 12px 24px; margin-bottom: 28px; }
.insight-search label { grid-column: 1 / -1; color: var(--text-3); font-size: 12px; font-weight: 560; letter-spacing: .14em; text-transform: uppercase; }
.insight-search p { margin: 0 0 18px; color: var(--text-3); font-size: 13px; }

/* Forms */
input, select, textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.4; transition: border-color .2s, box-shadow .2s;
}
input[type=search] { height: 56px; font-size: 17px; background: var(--bg-2); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:hover, select:hover, textarea:hover { border-color: rgba(150, 180, 220, .38); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(58, 155, 255, .2); }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--danger); }
select { appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239fcdff' stroke-width='1.5'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center; }
textarea { min-height: 168px; resize: vertical; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.contact-aside h2 { margin-bottom: 20px; font-size: clamp(26px, 2.6vw, 34px); }
.contact-aside p { font-size: 15.5px; }
.contact-detail { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.contact-detail-label { display: block; margin-bottom: 10px; color: var(--text-3); font-size: 12px; font-weight: 560; letter-spacing: .14em; text-transform: uppercase; }
.contact-detail > a:not(.inline-link) { color: var(--text); }
.preview-note { margin-bottom: 24px; padding: 18px 22px; border: 1px solid var(--line); border-left: 2px solid var(--accent); background: var(--bg-2); color: var(--text-2); font-size: 14.5px; }
.preview-note strong { display: block; margin-bottom: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field-wide { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 8px; color: var(--text); font-size: 14px; font-weight: 500; }
.optional { color: var(--text-3); font-weight: 400; }
.form-hint { margin-top: 8px; color: var(--text-3); font-size: 13px; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0; color: var(--text-2); font-size: 14.5px; cursor: pointer; }
.form-consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--accent); }
.form-consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.form-status { margin-top: 16px; font-size: 14.5px; }
.form-status:empty { display: none; }
.form-status[data-state=error] { color: var(--danger); }
.form-status[data-state=success] { color: var(--ok); }
.turnstile-widget { margin-bottom: 20px; }
.brief-preview { margin-top: 40px; padding: 28px; border: 1px solid var(--line); background: var(--bg-2); }
.brief-preview h3 { margin-bottom: 16px; }
.brief-preview pre { max-height: 420px; overflow: auto; margin: 0; padding: 20px; border: 1px solid var(--line); background: var(--bg); color: var(--text-2); font: 13px/1.7 var(--mono); white-space: pre-wrap; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.no-js-note { margin-top: 16px; color: var(--text-3); font-size: 14px; }

/* Legal & 404 */
.legal-body { max-width: 760px; }
.legal-body section + section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal-body h2 { margin-bottom: 16px; font-size: 24px; letter-spacing: -.02em; }
.error-page { display: flex; align-items: center; min-height: 50vh; }
.error-page h1 { max-width: 14ch; margin-bottom: 24px; }
.error-page .lead { max-width: 52ch; margin-bottom: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .flight-plan, .process-grid, .process-grid[data-steps] { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; border-top: 0; }
  .flight-step, .process-step { border-top: 1px solid var(--line-2); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .sector-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expertise-row { grid-template-columns: 48px minmax(0, 1fr) 24px; gap: 8px 24px; }
  .expertise-row p { grid-column: 2; grid-row: 2; }
  .expertise-arrow { grid-column: 3; grid-row: 1; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .nav-link { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--text); }
  .nav-link::after { display: none; }
  .nav-link[aria-current=page] { color: var(--accent-soft); }
  .nav-contact { margin: 20px 0 0; min-height: 48px; font-size: 15px; }
  .grid-12, .split-heading, .service-intro, .deliverables, .contact-layout, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .perspective-head, .perspective-body { grid-column: 1 / -1; }
  .perspective-body { padding-top: 24px; }
  .section-heading { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .section-heading > .inline-link { justify-self: start; }
  .expertise-explorer { grid-template-columns: minmax(0, 1fr); }
  .expertise-tabs { border-right: 0; border-bottom: 1px solid var(--line); }
  .expertise-tab { padding: 18px 20px; }
  .sector-story { grid-template-columns: minmax(0, 1fr); }
  .sector-visual { aspect-ratio: 16 / 10; }
  .sector-story-copy { max-width: none; padding: 36px var(--gutter); }
  .insight-grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .service-aside, .article-toc { position: static; }
  .article-toc { padding-bottom: 8px; }
  .hero-rail-inner { grid-template-columns: repeat(3, 1fr); }
  .hero-rail .hero-rail-cue { display: none; }
  .page-hero.has-image { min-height: 0; }
  .page-hero.has-image > .wrap > :not(nav) { max-width: none; }
  .page-hero-media { width: 100%; }
  .page-hero-media::after { background: linear-gradient(90deg, rgba(5, 11, 20, .9), rgba(5, 11, 20, .62)), linear-gradient(0deg, var(--bg), transparent 45%); }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero { min-height: auto; }
  .hero-inner { padding-block: 48px 40px; }
  .hero-shade { background: linear-gradient(90deg, rgba(5, 11, 20, .92), rgba(5, 11, 20, .6)), linear-gradient(0deg, var(--bg), transparent 40%); }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-rail a { padding: 18px 12px; font-size: 14px; gap: 8px; flex-direction: column; align-items: flex-start; }
  .hero-rail a:first-child { padding-left: 0; }
  .two-col, .form-grid, .sector-links { grid-template-columns: minmax(0, 1fr); }
  .flight-plan, .process-grid, .process-grid[data-steps] { grid-template-columns: minmax(0, 1fr); row-gap: 0; border-top: 0; }
  .flight-step, .process-step { padding: 20px 0; }
  .flight-step-number, .process-number { margin-bottom: 10px; }
  .sector-index, .workstream-grid[data-items="4"], .principle-grid[data-items="4"] { grid-template-columns: minmax(0, 1fr); }
  .workstream-grid, .principle-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .brand-tagline { font-size: 7.5px; }
  .brand img { width: 120px; }
  .cta-inner .button, .closing-foot .button { width: 100%; }
  .insight-search { grid-template-columns: minmax(0, 1fr); }
  .desktop-break { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  :root { --bg: #fff; --bg-2: #fff; --surface: #fff; --text: #000; --text-2: #222; --text-3: #555; --line: #ccc; --line-2: #999; }
  body { background: #fff; color: #222; }
  .site-header, .site-footer, .cta-band, .closing, .hero-rail, .menu-toggle, .reading-progress, .article-toc, .brief-actions { display: none !important; }
  .hero-photo, .hero-shade { display: none; }
  em { color: #000; }
}
