/* ==========================================================================
   AME High Consulting — site stylesheet
   No framework. Organized as: tokens > base > layout > components > pages > utilities
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette (sampled from the approved AME High logo and banners) */
  --navy-950: #08192a;
  --navy-900: #0d2236;
  --navy-800: #13304a;
  --navy-700: #1d4266;
  --blue-600: #2477c4;
  --blue-500: #2f86d6;
  --blue-100: #e6f1fb;
  --teal-600: #0b7a7a;
  --teal-500: #16a3a1;
  --teal-300: #6fd6d3;
  --teal-100: #e3f6f5;
  --orange-600: #b4530a;
  --orange-500: #f57c1f;
  --orange-100: #fff1e5;
  --coral-500: #e94e5f;
  --coral-100: #fdecee;

  /* Neutrals */
  --ink: #18222f;
  --ink-soft: #4a5668;
  --ink-muted: #667285;
  --line: #dde3ea;
  --line-soft: #ebeff4;
  --paper: #ffffff;
  --paper-warm: #f7f8fa;
  --paper-cool: #f1f5f9;

  /* Type */
  --font-display: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.4vw, 2.45rem);
  --step-4: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  --step-5: clamp(2.5rem, 1.8rem + 3.4vw, 4.25rem);

  /* Spacing & shape */
  --space-section: clamp(2.5rem, 1.9rem + 2.4vw, 4rem);
  --container: 1180px;
  --container-narrow: 780px;
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13, 34, 54, 0.06), 0 1px 3px rgba(13, 34, 54, 0.05);
  --shadow: 0 10px 30px -12px rgba(13, 34, 54, 0.18), 0 2px 6px rgba(13, 34, 54, 0.05);
  --shadow-lg: 0 30px 60px -25px rgba(13, 34, 54, 0.35);

  --brand-gradient: linear-gradient(90deg, var(--orange-500), var(--coral-500) 35%, var(--blue-500) 68%, var(--teal-500));
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 750;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -0.01em; }
h4 { font-size: var(--step-1); letter-spacing: -0.005em; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
a { color: var(--blue-600); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-800); }
strong { font-weight: 650; color: var(--navy-900); }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--teal-300); color: var(--navy-950); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--navy-900); color: #fff; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }
.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;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: calc(var(--space-section) * 0.7); }
.section--warm { background: var(--paper-warm); }
.section--cool { background: var(--paper-cool); }
.section--navy { background: var(--navy-900); color: #d5dfea; }
.section--navy h2, .section--navy h3, .section--navy h4, .section--navy strong { color: #fff; }

.grid { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.split--wide-left { grid-template-columns: 1.25fr 1fr; }
.split--top { align-items: start; }
@media (max-width: 880px) { .split, .split--wide-left { grid-template-columns: 1fr; } }

.section-head { max-width: 720px; margin-bottom: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; }
.section--navy .section-head p { color: #b8c7d8; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-size: var(--step--1); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--teal-600);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--brand-gradient); }
.section--navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--teal-300); }

.lead { font-size: var(--step-1); line-height: 1.6; color: var(--ink-soft); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 3px; background: var(--brand-gradient); opacity: 0.9; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--navy-900); }
.brand img { width: 52px; height: 52px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand-tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-top: 3px; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.primary-nav a {
  display: block; padding: 0.55rem 0.8rem; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 650; font-size: 0.95rem;
  color: var(--navy-800); text-decoration: none; white-space: nowrap;
}
.primary-nav a:hover { background: var(--paper-cool); color: var(--navy-950); }
.primary-nav a[aria-current="page"] { color: var(--blue-600); box-shadow: inset 0 -2px 0 var(--orange-500); border-radius: 0; }
.primary-nav .nav-cta a { background: var(--navy-900); color: #fff; padding-inline: 1.1rem; margin-left: 0.5rem; border-radius: 999px; }
.primary-nav .nav-cta a:hover { background: var(--navy-700); color: #fff; }
.primary-nav .nav-cta a[aria-current="page"] { box-shadow: none; background: var(--blue-600); }

.nav-toggle {
  display: none; align-items: center; justify-content: center; gap: 0.5rem;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem; font: 650 0.95rem var(--font-display); color: var(--navy-900); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: 0.75rem var(--gutter) 1.25rem; gap: 0.15rem; }
  .primary-nav a { padding: 0.85rem 0.75rem; font-size: 1.05rem; }
  .primary-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange-500); background: var(--paper-cool); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
  .primary-nav .nav-cta a { margin: 0.6rem 0 0; text-align: center; }
  .no-js .primary-nav { position: static; display: block; box-shadow: none; }
}
@media (max-width: 420px) { .brand-tag { display: none; } .brand img { width: 44px; height: 44px; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--orange-500); --btn-fg: var(--navy-950); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.9rem 1.45rem; border-radius: 999px; border: 2px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-weight: 750; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.15s ease; }
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(13, 34, 54, 0.45); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { --btn-bg: var(--orange-500); }
.btn--primary:hover { --btn-bg: #ff9a4d; }
.btn--navy { --btn-bg: var(--navy-900); --btn-fg: #fff; }
.btn--navy:hover { --btn-bg: var(--navy-700); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy-900); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--navy-800); box-shadow: none; }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,0.35); }
.btn--ghost-light:hover { --btn-bd: #fff; box-shadow: none; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-display);
  font-weight: 700; color: var(--blue-600); text-decoration: none;
}
.text-link svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(47, 134, 214, 0.28), transparent 60%),
    radial-gradient(700px 500px at 105% 90%, rgba(22, 163, 161, 0.22), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-900) 55%, var(--navy-800));
  color: #cfdbe8;
  padding-block: clamp(3rem, 2.2rem + 3.5vw, 5.5rem);
}
.hero::before {
  /* fine grid texture */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.4;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; margin-bottom: 0.45em; }
.hero h1 .accent { background: linear-gradient(90deg, var(--teal-300), #8fc4f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub {
  font-family: var(--font-display); font-weight: 650; font-size: var(--step-2);
  color: #fff; letter-spacing: -0.01em; margin-bottom: 0.8em;
}
.hero-sub span { color: var(--orange-500); }
.hero p.lead { color: #b9c8d9; max-width: 600px; }
.hero .btn-row { margin-top: 2rem; }
.hero-graphic { position: relative; }
.hero-graphic svg { width: 100%; height: auto; max-width: 460px; margin-inline: auto; }
@media (max-width: 960px) { .hero-graphic { max-width: 300px; margin-inline: auto; width: 100%; } }

.pillars { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.12); }
.pillars span { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: #fff; display: inline-flex; align-items: center; gap: 0.55rem; }
.pillars span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--c, var(--teal-300)); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(700px 380px at 95% 0%, rgba(47, 134, 214, 0.3), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800));
  color: #c6d3e2;
  padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem);
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; right: -60px; bottom: -120px; width: 420px; height: 420px;
  border: 2px solid rgba(111, 214, 211, 0.14); border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(111, 214, 211, 0.03), 0 0 0 120px rgba(47, 134, 214, 0.025);
}
.page-hero h1 { color: #fff; font-size: var(--step-5); max-width: 18ch; }
.page-hero .lead { color: #b9c8d9; max-width: 680px; }
.breadcrumbs { font-size: var(--step--1); margin-bottom: 1.25rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; color: #6f86a0; }
.breadcrumbs a { color: #9fb6cf; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs [aria-current] { color: #fff; }

/* ---------- Cards ---------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex; flex-direction: column;
}
.card h3 { font-size: var(--step-1); margin-bottom: 0.5em; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card p:last-child { margin-bottom: 0; }
.card .text-link { margin-top: auto; padding-top: 0.5rem; }
a.card { text-decoration: none; color: inherit; }
.card--link:hover, a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line); }
.card--accent::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px;
  border-radius: var(--radius) var(--radius) 0 0; background: var(--accent, var(--teal-500));
}

.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--badge-bg, var(--teal-100)); color: var(--badge-fg, var(--teal-600));
  margin-bottom: 1.25rem; flex-shrink: 0;
}
.icon-badge svg { width: 26px; height: 26px; }
.tone-blue { --badge-bg: var(--blue-100); --badge-fg: var(--blue-600); --accent: var(--blue-500); }
.tone-teal { --badge-bg: var(--teal-100); --badge-fg: var(--teal-600); --accent: var(--teal-500); }
.tone-orange { --badge-bg: var(--orange-100); --badge-fg: var(--orange-600); --accent: var(--orange-500); }
.tone-coral { --badge-bg: var(--coral-100); --badge-fg: #c4374a; --accent: var(--coral-500); }
.tone-navy { --badge-bg: #e7ecf2; --badge-fg: var(--navy-800); --accent: var(--navy-800); }

/* ---------- Who we help ---------- */
.audience-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.9rem; }
@media (max-width: 560px) { .audience-list { grid-template-columns: 1fr; } }
.audience-list li {
  display: flex; gap: 0.85rem; align-items: flex-start; background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 1rem 1.1rem; font-weight: 550; color: var(--navy-900); line-height: 1.4;
}
.audience-list svg { width: 22px; height: 22px; color: var(--teal-600); flex-shrink: 0; margin-top: 1px; }

/* ---------- Check list ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 0.7rem; }
.check-list li { position: relative; padding-left: 2rem; line-height: 1.5; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.1em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f8a8a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}
.section--navy .check-list li::before { background-color: rgba(111,214,211,0.15); }

/* ---------- Differentiators / numbered ---------- */
.diff { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,0.12); }
.diff:first-child { border-top: 0; padding-top: 0; }
.diff-num {
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; color: var(--navy-950);
  width: 2.4rem; height: 2.4rem; border-radius: 10px; display: grid; place-items: center; background: var(--c, var(--teal-300));
}
.diff h3 { font-size: var(--step-1); margin-bottom: 0.35em; }
.diff p { margin: 0; color: #b8c7d8; }

/* ---------- Process steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.25rem; counter-reset: step; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; position: relative; padding: 1.75rem 1.5rem 1.5rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line-soft); }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 2.1rem; line-height: 1; letter-spacing: -0.03em; margin-bottom: 0.9rem;
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps h3 { font-size: var(--step-1); margin-bottom: 0.4em; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Intro / portrait ---------- */
.portrait { position: relative; max-width: 320px; margin: 0; }
.portrait-frame { position: relative; }
.portrait img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.portrait-frame::before {
  content: ""; position: absolute; inset: 12px -12px -12px 12px; border-radius: var(--radius-lg);
  background: var(--brand-gradient); opacity: 0.9;
}
.portrait--sm { max-width: 260px; }
.portrait figcaption { position: relative; z-index: 1; margin-top: 2.25rem; font-size: var(--step--1); color: var(--ink-muted); }
@media (max-width: 880px) { .portrait { margin-inline: auto; width: calc(100% - 18px); max-width: 260px; } }

.quote-block {
  border-left: 4px solid var(--orange-500); padding: 0.4rem 0 0.4rem 1.5rem; margin: 2rem 0;
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 650; line-height: 1.35; color: var(--navy-900); letter-spacing: -0.01em;
}

/* ---------- Transformations (project highlights) ---------- */
.highlight { padding: 1.75rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-soft); }
.highlight .tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent, var(--teal-600)); margin-bottom: 0.6rem; }
.highlight p { margin: 0; color: var(--ink-soft); }

/* ---------- Service detail (services page) ---------- */
.service-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.service-nav a {
  font-family: var(--font-display); font-weight: 650; font-size: 0.9rem; padding: 0.5rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--navy-800); text-decoration: none; background: #fff;
}
.service-nav a:hover { border-color: var(--navy-800); }
.service {
  display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  padding-block: clamp(2rem, 1.6rem + 1.5vw, 3rem); border-top: 1px solid var(--line); scroll-margin-top: 100px;
}
.service:first-of-type { border-top: 0; }
@media (max-width: 880px) { .service { grid-template-columns: 1fr; } }
.service-num { font-family: var(--font-display); font-weight: 800; color: var(--badge-fg, var(--teal-600)); font-size: 0.9rem; letter-spacing: 0.12em; margin-bottom: 0.6rem; display: block; }
.service h2 { font-size: var(--step-3); }
.service-body { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
@media (max-width: 880px) { .service-body { grid-template-columns: 1fr; } }
.service-head { display: grid; grid-template-columns: auto 1fr auto; gap: 0.5rem 1.5rem; align-items: center; }
.service-head .icon-badge { margin: 0; grid-row: span 2; }
.service-head h2 { margin: 0; }
.service-head .service-num { margin: 0; }
.service-head .btn-row { grid-column: 3; grid-row: 1 / span 2; }
@media (max-width: 880px) { .service-head { grid-template-columns: auto 1fr; } .service-head .btn-row { grid-column: 1 / -1; grid-row: auto; margin-top: 0.75rem; } }
.service-body > div { background: var(--paper-warm); border-radius: var(--radius); padding: 1.35rem 1.4rem; }
.service-body h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-muted); margin-bottom: 0.7rem; font-weight: 750; }
.service-body p, .service-body li { font-size: 0.97rem; color: var(--ink-soft); }
.service-body ul { margin: 0; padding-left: 1.1em; }
.service-body li + li { margin-top: 0.35rem; }
.service-body p:last-child { margin-bottom: 0; }

/* ---------- Feature rows (strategic ops / leadership) ---------- */
.feature-rows { display: grid; gap: 1rem; }
.feature-row {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.5rem 1.6rem;
}
.feature-row .icon-badge { margin: 0; }
.feature-row h3 { font-size: var(--step-1); margin-bottom: 0.35em; }
.feature-row p { margin: 0; color: var(--ink-soft); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }
.compare > div { border-radius: var(--radius); padding: 1.75rem; }
.compare .compare-a { background: #fff; border: 1px dashed var(--line); }
.compare .compare-b { background: var(--navy-900); color: #cbd8e6; }
.compare .compare-b h3 { color: #fff; }
.compare h3 { font-size: var(--step-1); }
.compare ul { margin: 0; padding-left: 1.1em; }
.compare li + li { margin-top: 0.45rem; }

/* ---------- Stat-free "principles" strip ---------- */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
@media (max-width: 880px) { .principles { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 480px) { .principles { grid-template-columns: 1fr; } }
.principles > div { padding: 1.6rem 1.5rem; border-left: 1px solid var(--line); }
.principles > div:first-child { border-left: 0; }
@media (max-width: 880px) { .principles > div:nth-child(odd) { border-left: 0; } .principles > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .principles > div { border-left: 0; } .principles > div + div { border-top: 1px solid var(--line); } }
.principles strong { display: block; font-family: var(--font-display); font-size: var(--step-2); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.2rem; }
.principles strong .dot { color: var(--orange-500); }
.principles span { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: #c8d5e3; display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; z-index: -1; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(22,163,161,0.35), transparent 65%);
}
.cta-band::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--orange-500), var(--coral-500), var(--blue-500), var(--teal-500)); }
.cta-band h2 { color: #fff; font-size: var(--step-3); margin-bottom: 0.4em; }
.cta-band p { margin: 0; max-width: 560px; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Placeholder (needs verification) ---------- */
.placeholder {
  background: repeating-linear-gradient(-45deg, #fff8ec, #fff8ec 10px, #fff3e0 10px, #fff3e0 20px);
  border: 1.5px dashed var(--orange-500); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem;
  color: #7a3d06; font-size: 0.95rem;
}
.placeholder::before { content: "TO VERIFY  "; font-weight: 800; letter-spacing: 0.08em; font-size: 0.72rem; color: var(--orange-600); display: block; margin-bottom: 0.2rem; }
mark.ph { background: #fff1db; color: #7a3d06; border-bottom: 1.5px dashed var(--orange-500); padding: 0 0.2em; border-radius: 3px; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: var(--navy-900); margin-bottom: 0.4rem; }
.field .req { color: var(--coral-500); margin-left: 2px; }
.field .hint { font-size: 0.84rem; color: var(--ink-muted); margin-top: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper-warm);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 0.8rem 0.95rem; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313304a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 18px; padding-right: 2.6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(47,134,214,0.15); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--coral-500); background: #fff; }
.field .error { display: none; color: #b42335; font-size: 0.86rem; margin-top: 0.35rem; font-weight: 550; }
.field .error.is-visible { display: block; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; margin-top: 1.5rem; }
.form-footer small { color: var(--ink-muted); max-width: 420px; line-height: 1.5; }
.form-status { margin-top: 1.25rem; border-radius: 10px; padding: 1rem 1.15rem; font-weight: 550; display: none; }
.form-status.is-visible { display: block; }
.form-status--success { background: var(--teal-100); color: #0b5e5d; border: 1px solid #a8e3e1; }
.form-status--error { background: var(--coral-100); color: #9e1f30; border: 1px solid #f6c1c7; }
.cf-turnstile { min-height: 65px; }

.contact-aside { display: grid; gap: 1.25rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .icon-badge { width: 46px; height: 46px; margin: 0; border-radius: 12px; }
.contact-item .icon-badge svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.contact-item p { margin: 0; color: var(--ink-soft); }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .post-meta { font-size: 0.82rem; color: var(--ink-muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.75rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.post-card .post-meta .cat { color: var(--badge-fg, var(--teal-600)); }
.post-card .status { display: inline-block; align-self: flex-start; margin-top: auto; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: 6px; background: var(--paper-cool); color: var(--ink-muted); }
.cat-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.cat-filter span { font-size: 0.85rem; font-weight: 650; padding: 0.4rem 0.85rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy-800); }

.prose { max-width: 720px; }
.prose h2 { font-size: var(--step-3); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9fb0c3; padding-top: clamp(2.75rem, 2.4rem + 2vw, 4rem); font-size: 0.95rem; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--brand-gradient); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 72px; height: 72px; border-radius: 14px; margin-bottom: 1rem; }
.footer-brand p { max-width: 320px; }
.footer-motto { font-family: var(--font-display); font-weight: 750; color: #fff; letter-spacing: 0.02em; }
.site-footer h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: #c5d2e0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; font-size: 0.86rem; color: #7f93aa; }

/* ---------- 404 ---------- */
.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: var(--space-section); }
.error-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 3rem + 10vw, 9rem); line-height: 1; letter-spacing: -0.05em; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 0.5rem; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.muted { color: var(--ink-muted); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  .hero, .page-hero { background: none; color: #000; }
  .hero h1, .page-hero h1 { color: #000; }
}

/* ---------- Review fixes ---------- */
.audience-list--single { grid-template-columns: 1fr; gap: 0.7rem; }
.audience-list--single li { padding: 0.9rem 1.1rem; }
.portrait img { object-position: center top; }
@media (max-width: 640px) {
  .service-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.5rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; }
  .service-nav a { white-space: nowrap; }
}
/* Smaller portrait: give the photo a narrow column so text gets the space */
@media (min-width: 881px) {
  .split:has(> .portrait) { grid-template-columns: 340px minmax(0, 1fr); }
  .split:has(> .portrait--sm) { grid-template-columns: 280px minmax(0, 1fr); }
}
@media (max-width: 880px) { .portrait, .portrait--sm { max-width: 220px; } }
/* Narrow screens: photo sits beside the bio (text wraps around it) instead of stacked above */
@media (max-width: 880px) {
  .split:has(> .portrait) { display: flow-root; }
  .split > .portrait, .split > .portrait--sm {
    float: left; width: 38%; max-width: 220px; margin: 0.35rem 1.9rem 1.25rem 0;
  }
  .split > .portrait figcaption { margin-top: 1.4rem; font-size: 0.78rem; line-height: 1.4; }
  .split > .portrait + div > .eyebrow { margin-top: 0; }
}
@media (max-width: 480px) {
  .split > .portrait, .split > .portrait--sm { width: 128px; margin-right: 1.4rem; }
  .split > .portrait figcaption { display: none; }
  .portrait-frame::before { inset: 7px -7px -7px 7px; }
}
@media (max-width: 880px) {
  .split > .portrait + div > .eyebrow { display: block; }
  .split > .portrait + div > .eyebrow::before { display: inline-block; vertical-align: middle; margin-right: 0.6rem; }
}

/* Headshot: spans exactly from the "Meet the consultant" line to the end of the opening paragraph */
.intro-head { display: flex; align-items: stretch; gap: clamp(1rem, 0.6rem + 1.5vw, 1.75rem); margin-bottom: 1.5rem; }
.intro-head > div { min-width: 0; flex: 1 1 auto; }
.intro-head > div > :last-child { margin-bottom: 0; }
.intro-head .eyebrow { margin-top: 0; }
.intro-role { margin: -0.3em 0 0.9em; font-family: var(--font-display); font-weight: 650; color: var(--ink-muted); }
.headshot { margin: 0; flex: 0 0 auto; width: clamp(128px, 18vw, 160px); position: relative; }
.headshot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 12% 20%; border-radius: 14px;
  box-shadow: 5px 5px 0 var(--teal-500), var(--shadow);
}
.container--mid { max-width: calc(980px + 2 * var(--gutter)); }
.intro-head h2 { text-wrap: wrap; }
@media (min-width: 900px) { .intro-head h2 { white-space: nowrap; } }
.intro-head > div > .intro-role:last-child { margin-bottom: 0; }

/* Neutral informational notice (used for form status messages, not for review items) */
.notice { background: var(--paper-cool); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; color: var(--ink-soft); font-size: 0.95rem; margin-top: 1rem; }
