/* ==========================================================================
   HB Analytics — shared site styles
   One stylesheet for every page. No build step: edit and deploy.

   Note: _headers sends a strict Content-Security-Policy, so keep all CSS in
   this file. Inline style="" attributes and <style> blocks are blocked.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy: #0d1b2a;
  --navy-2: #13263a;
  --navy-3: #1c3350;
  --blue: #3c64f4;          /* brand accent — 4.86:1 with white */
  --blue-700: #2a4fd6;      /* hover, and blue text on tinted fills */
  --blue-50: #eef2fe;
  --blue-100: #dce4fd;
  --blue-on-navy: #9db4ff;

  --ink: #0d1b2a;           /* headings */
  --text: #404b5a;          /* body copy */
  --muted: #5a6b7f;         /* secondary copy */
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --line: #e4e7eb;          /* hairlines and card borders (decorative) */
  --line-strong: #c9d0da;
  --control: #8a94a6;       /* form control borders — 3:1 on white */

  --good-text: #006300;
  --critical-text: #b42318;
  --warning: #fab219;
  --warning-bg: #fff8e6;
  --warning-line: #f3d58b;

  /* Sample chart series (validated: blue/orange pass every CVD check; grey is context) */
  --series-pv: #8a94a6;
  --series-ev: #3c64f4;
  --series-ac: #eb6834;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;

  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, 0.06);
  --shadow-md: 0 6px 18px -6px rgba(13, 27, 42, 0.12);
  --shadow-lg: 0 24px 48px -16px rgba(13, 27, 42, 0.22);

  --container: 1160px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4rem, 8vw, 6.5rem);
  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.85rem); }
h3 { font-size: clamp(1.3rem, 1.18rem + 0.5vw, 1.55rem); }

p { margin: 0 0 1rem; }
p, li { text-wrap: pretty; }
strong, b { font-weight: 600; color: var(--ink); }
ul, ol { margin: 0 0 1rem; }

a { color: var(--blue-700); text-underline-offset: 0.18em; }
a:hover { color: var(--blue); }

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

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 300;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.section { padding-block: var(--section); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}
.section-head p:last-child { margin-bottom: 0; }
.section-head .sub { font-size: 1.125rem; color: var(--muted); }

.eyebrow {
  display: block;
  margin: 0 0 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-700);
}

.lead {
  font-size: clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem);
  line-height: 1.6;
  color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 600 1rem/1.2 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(60, 100, 244, 0.6);
}
.btn--primary:hover { background: var(--blue-700); color: #fff; }
.btn--secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--blue-50); color: var(--navy); }
.btn--sm { min-height: 42px; padding: 0.55rem 1.05rem; font-size: 0.9375rem; }
@media (prefers-reduced-motion: no-preference) {
  .btn--primary:hover,
  .btn--light:hover { transform: translateY(-1px); }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--blue-700);
}
.text-link:hover { color: var(--blue); text-decoration: underline; }
.text-link svg { width: 16px; height: 16px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: auto; height: 30px; fill: currentColor; }
.brand-word {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand--light,
.brand--light:hover { color: #fff; }
.brand--light .brand-word { color: #fff; }

.nav-desktop { display: none; }
.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-desktop a:not(.btn) {
  display: inline-block;
  padding: 0.45rem 0;
  border-bottom: 2px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.nav-desktop a:not(.btn):hover { color: var(--blue-700); }
.nav-desktop a:not(.btn)[aria-current="page"] {
  color: var(--blue-700);
  border-bottom-color: var(--blue);
}

/* Mobile menu: a native <details>, so it works without JavaScript. */
.menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -0.5rem;
  border-radius: 10px;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu-icon { position: relative; width: 24px; height: 16px; }
.menu-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: 7px; }
.menu-icon span:nth-child(3) { top: 14px; }
.menu[open] .menu-icon span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu[open] .menu-icon span:nth-child(2) { opacity: 0; }
.menu[open] .menu-icon span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

.menu:not([open]) .menu-panel { display: none; }
.menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.5rem var(--gutter) 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  /* Dim the page below the open menu: a large shadow, clipped so it only falls downwards. */
  box-shadow: 0 0 0 100vmax rgba(13, 27, 42, 0.45);
  clip-path: inset(0 0 -100vmax 0);
}
.menu-panel ul { margin: 0; padding: 0; list-style: none; }
.menu-panel li a:not(.btn) {
  display: block;
  padding: 0.95rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.menu-panel li a:not(.btn)[aria-current="page"] { color: var(--blue-700); }
.menu-panel .btn { width: 100%; margin-top: 1.25rem; }

@media (min-width: 60em) {
  .nav-desktop { display: block; }
  .menu { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6.5rem);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(13, 27, 42, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { max-width: 36rem; margin-bottom: 2rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
@media (max-width: 29.99em) {
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (min-width: 64em) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.checklist {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  position: relative;
  padding-left: 2rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a4fd6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(13, 27, 42, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; max-width: 52rem; }
.page-hero .lead { margin-inline: auto; max-width: 42rem; color: var(--muted); }
.page-hero .lead:last-child { margin-bottom: 0; }

.jump-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.jump-links a {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.jump-links a:hover { border-color: var(--blue); color: var(--blue-700); }

/* ---------- Sample dashboard (hero figure) ---------- */
.dash {
  container-type: inline-size;
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.4rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}
.dash-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.dash-sub { margin: 0.1rem 0 0; font-size: 0.8125rem; color: var(--muted); }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}
@container (min-width: 500px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.kpi {
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: var(--bg-alt);
}
.kpi-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted);
}
.kpi-value {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}
.kpi-delta svg { width: 12px; height: 12px; flex: none; }
.kpi-delta--bad { color: var(--critical-text); }
.kpi-delta--good { color: var(--good-text); }

.chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 0.6rem;
}
.chart-title { margin: 0; font-size: 0.8125rem; font-weight: 600; color: var(--ink); }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  color: var(--muted);
}
.legend li { display: inline-flex; align-items: center; gap: 0.4rem; }
.key { display: inline-block; width: 14px; height: 2px; border-radius: 2px; }
.key--pv { background: var(--series-pv); }
.key--ev { background: var(--series-ev); }
.key--ac { background: var(--series-ac); }

.plot {
  position: relative;
  height: 180px;
  margin: 0.5rem 0 1.9rem 2.6rem;
  touch-action: pan-y;
}
.plot:focus-visible { outline-offset: 6px; }
.plot-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.plot-grid line { stroke: #edf0f4; stroke-width: 1; vector-effect: non-scaling-stroke; }
.plot-grid .baseline { stroke: #c9d0da; }
.series {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.series--pv { stroke: var(--series-pv); }
.series--ev { stroke: var(--series-ev); }
.series--ac { stroke: var(--series-ac); }

.tick {
  position: absolute;
  font-size: 0.6875rem;
  line-height: 1;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tick--y { left: -2.6rem; width: 2.2rem; text-align: right; transform: translateY(-50%); }
.tick--x { top: calc(100% + 0.55rem); transform: translateX(-50%); }
.tick--x.is-first { transform: none; }
.tick--x.is-last { transform: translateX(-100%); }

/* Static positions (classes keep the CSP free of inline styles). */
.y-40 { top: 0%; }
.y-30 { top: 25%; }
.y-20 { top: 50%; }
.y-10 { top: 75%; }
.y-0  { top: 100%; }
.x-0  { left: 0%; }
.x-2  { left: 18.182%; }
.x-4  { left: 36.364%; }
.x-6  { left: 54.545%; }
.x-8  { left: 72.727%; }
.x-10 { left: 90.909%; }
.x-11 { left: 100%; }

.dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
/* End points at the data date (March, index 8) and plan end (June). y = (1 - value / 40) */
.dot--ac { left: 72.727%; top: 24%; background: var(--series-ac); }
.dot--ev { left: 72.727%; top: 31.5%; background: var(--series-ev); }
.dot--pv { left: 100%; top: 5%; background: var(--series-pv); }

.end-label {
  position: absolute;
  left: 72.727%;
  top: 24%;
  transform: translate(calc(-100% - 10px), calc(-100% - 6px));
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
}
.end-label strong { color: var(--ink); }

.crosshair {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
  pointer-events: none;
}
.tooltip {
  position: absolute;
  top: -0.25rem;
  z-index: 2;
  min-width: 11rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-md);
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--muted);
  pointer-events: none;
}
.tooltip-month { margin: 0 0 0.35rem; font-weight: 600; color: var(--ink); }
.tooltip-row { display: flex; align-items: center; gap: 0.45rem; margin: 0.15rem 0 0; }
.tooltip-row strong { min-width: 3.6rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.crosshair[hidden],
.tooltip[hidden] { display: none; }

.dash-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--warning-line);
  border-radius: 10px;
  background: var(--warning-bg);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink);
}
.dash-alert svg { width: 18px; height: 18px; flex: none; margin-top: 0.05rem; }

/* ---------- Strip (sectors + tools) ---------- */
.strip { padding-block: 1.6rem; border-bottom: 1px solid var(--line); }
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 3rem;
}
.strip p { margin: 0; font-size: 0.9375rem; color: var(--text); text-align: center; }
.strip-label {
  margin-right: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.25rem; }
@media (min-width: 48em) { .card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: no-preference) {
  .card:hover { transform: translateY(-2px); }
}
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 1rem; }
.card .text-link { margin-top: auto; }

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-700);
}
.icon-tile svg { width: 24px; height: 24px; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 40em) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step {
  position: relative;
  padding: 1.6rem 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-num {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--blue);
}
.step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.step p { margin: 0; font-size: 0.9875rem; }

/* ---------- Quote band ---------- */
.quote-band {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
}
.quote {
  position: relative;
  max-width: 50rem;
  margin: 0 auto;
  padding-top: 3.5rem;
  text-align: center;
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: 6rem;
  line-height: 1;
  color: var(--blue-on-navy);
  opacity: 0.6;
}
.quote-label {
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-on-navy);
}
.quote blockquote { margin: 0 0 2rem; }
.quote blockquote p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  line-height: 1.5;
  color: #fff;
}
.quote figcaption { display: grid; gap: 0.2rem; }
.quote-name { font-family: var(--font-serif); font-size: 1.25rem; color: #fff; }
.quote-role { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.72); }

/* ---------- Why + profile ---------- */
.why-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 62em) { .why-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

.reasons { display: grid; gap: 1.75rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.reason { display: grid; grid-template-columns: auto 1fr; gap: 0 1rem; }
.reason .icon-tile { width: 44px; height: 44px; margin: 0; }
.reason h3 { margin: 0.35rem 0 0.4rem; font-size: 1.35rem; }
.reason p { grid-column: 2; margin: 0; }

.profile {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
}
.avatar svg { width: 40px; height: auto; fill: currentColor; }
.profile h3 { margin-bottom: 0.15rem; }
.profile-role { margin-bottom: 1rem; font-size: 0.9375rem; font-weight: 500; color: var(--muted); }
.profile p { font-size: 1rem; }
.profile-meta {
  display: grid;
  gap: 0.5rem;
  margin: 1.25rem 0 1.5rem;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 0.9375rem;
}
.profile-meta li { display: flex; align-items: center; gap: 0.6rem; }
.profile-meta svg { width: 18px; height: 18px; flex: none; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 5rem);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: rgba(255, 255, 255, 0.78);
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -60%;
  width: 60%;
  height: 220%;
  background: radial-gradient(closest-side, rgba(60, 100, 244, 0.35), transparent);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 56em) { .cta-inner { grid-template-columns: minmax(0, 1.4fr) auto; } }
.cta-band h2 { margin-bottom: 0.6rem; color: #fff; }
.cta-band p { margin: 0; font-size: 1.125rem; }
.cta-actions { display: grid; gap: 0.85rem; justify-items: start; }
@media (min-width: 56em) { .cta-actions { justify-items: center; } }
.cta-email { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.78); }
.cta-email:hover { color: #fff; }

/* ---------- Services page ---------- */
.service { scroll-margin-top: calc(var(--header-h) + 1rem); }
.service-grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 56em) {
  .service-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .service--flip .service-visual { order: -1; }
  .service--flip .service-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
.service-copy .lead { margin-bottom: 1.5rem; }
.list-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticks { display: grid; gap: 0.6rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a4fd6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
.service-visual {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.service-visual svg { width: 100%; max-width: 380px; height: auto; }
.section--alt .service-visual { background: #fff; }
.svg-label { font: 600 13px var(--font-sans); fill: var(--text); }
.svg-label--light { fill: #fff; }

/* FAQ */
.faq { max-width: 50rem; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line-strong);
}
.faq details:first-child { border-top: 1px solid var(--line-strong); }
.faq summary {
  position: relative;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-body { padding: 0 2.5rem 1.25rem 0; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- My approach page ---------- */
.challenge {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.challenge + .challenge { margin-top: 2rem; }
.challenge-head { max-width: 46rem; }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
}
.facts div {
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: 0.9375rem;
}
.facts dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0.1rem 0 0; font-weight: 500; color: var(--ink); }
.challenge-body {
  display: grid;
  gap: 1.5rem 3rem;
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 52em) { .challenge-body { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.challenge-body h3 { font-size: 1.35rem; }
.challenge-body .ticks { margin-bottom: 0; }

.flow {
  margin: 2.25rem 0 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.flow figcaption {
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.flow-diagram {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 0.75rem;
}
.flow-sources {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  max-width: 22rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flow-node,
.flow-sources li {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #fff;
  border: 1.5px dashed var(--control);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  text-align: center;
}
.flow-node { width: 100%; max-width: 22rem; border-style: solid; }
.flow-node--engine { background: var(--navy); border-color: var(--navy); color: #fff; }
.flow-node--out { border-color: var(--blue); }
.flow-arrow {
  position: relative;
  width: 2px;
  height: 28px;
  background: var(--control);
}
.flow-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--control);
  border-bottom: 2px solid var(--control);
  transform: translateX(-50%) rotate(45deg);
}
@media (min-width: 52em) {
  .flow-diagram {
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr) 48px minmax(0, 1fr);
  }
  .flow-arrow { width: 100%; height: 2px; }
  .flow-arrow::after { left: auto; right: -1px; bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }
}

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 62em) { .contact-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }

.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-card h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
.field-row { display: grid; gap: 0 1.25rem; }
@media (min-width: 40em) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}
.optional { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--control);
  border-radius: 10px;
  background: #fff;
  font: 400 1rem/1.5 var(--font-sans);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b7f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 0.85rem center / 18px no-repeat;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--muted); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(60, 100, 244, 0.25);
}
.form-note { font-size: 0.875rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.contact-aside { display: grid; gap: 1.25rem; }
.aside-card {
  padding: 1.6rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.aside-card h2 {
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}
.aside-card p { font-size: 0.9875rem; }
.aside-card p:last-child,
.aside-card ol:last-child { margin-bottom: 0; }
.aside-card .big-link { font-size: 1.0625rem; font-weight: 600; word-break: break-word; }
.next-steps { display: grid; gap: 0.85rem; margin: 0.9rem 0 0; padding: 0; list-style: none; counter-reset: next; }
.next-steps li {
  position: relative;
  padding-left: 2.4rem;
  font-size: 0.9875rem;
  counter-increment: next;
}
.next-steps li::before {
  content: counter(next);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* ---------- Simple pages (thank-you, 404) ---------- */
.simple-page { padding-block: clamp(4rem, 12vw, 8rem); text-align: center; }
.simple-page .container { max-width: 40rem; }
.simple-page .lead { color: var(--muted); }
.simple-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.status-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
}
.status-icon svg { width: 30px; height: 30px; }

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(3.5rem, 7vw, 4.5rem);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
}
.footer-grid { display: grid; gap: 2.5rem 2rem; padding-bottom: 3rem; }
@media (min-width: 40em) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } }
.footer-brand p { max-width: 22rem; margin: 1.1rem 0 0; }
.footer-brand .brand-mark { height: 32px; }
.footer-title {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.footer-links { display: grid; gap: 0.65rem; margin: 0; padding: 0; list-style: none; }
.site-footer a:not(.brand) { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.site-footer a:not(.brand):hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--blue-on-navy); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.62);
}
.footer-bottom p { margin: 0; }

/* ---------- Scroll reveal (CSS only; no JavaScript needed) ----------
   Uses scroll-driven animations where supported. Everywhere else, and for
   anyone who prefers reduced motion, content is simply visible. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100px; /* fully opaque once 100px is on screen */
    }
  }
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

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

/* ---------- Print ---------- */
@media print {
  .site-header,
  .menu,
  .cta-band,
  .skip-link { display: none !important; }
  body { color: #000; }
  a { color: #000; }
}
