/* ============================================================
   RatioVis Consulting - Design System
   Nordic clarity + strategic intelligence + quiet authority
   ============================================================ */

/* ============================================================
   Self-hosted fonts (GDPR-friendly: no third-party font requests)
   ------------------------------------------------------------
   woff2 files live in /fonts (latin + latin-ext subsets).
   To regenerate or add subsets/weights, run brand/.build/fetch-fonts.cjs.
   ============================================================ */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-serif-4-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-serif-4-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/source-serif-4-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/source-serif-4-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/source-serif-4-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/source-serif-4-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/source-serif-4-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/source-serif-4-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --ivory: #f7f3ea;
  --ink: #111111;
  --navy: #13283d;
  --graphite: #2f3438;
  --gold: #b08a3c;
  --gold-soft: #c9a866;
  --stone: #d8d2c4;
  --cloud: #fbfaf7;
  --grey: #6b7280;
  --teal: #2f5f5b;

  /* Semantic */
  --bg: var(--cloud);
  --bg-alt: var(--ivory);
  --text: var(--ink);
  --text-soft: var(--grey);
  --line: var(--stone);
  --accent: var(--gold);

  /* Type */
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Rhythm */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 4px;
  --radius-lg: 8px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Anchored sections clear the sticky header + quick-nav */
section[id],
footer[id] {
  scroll-margin-top: 140px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section--alt {
  background: var(--bg-alt);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__head--wide {
  max-width: 52rem;
}

.section__title {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  color: var(--ink);
}

.section__title--light {
  color: var(--cloud);
}

.section__lead {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-soft);
  max-width: 44rem;
}

.section__lead--light {
  color: rgba(251, 250, 247, 0.78);
}

.section__lead--strong {
  color: var(--navy);
  font-weight: 500;
}

/* Eyebrow / technical label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.eyebrow--gold {
  color: var(--gold-soft);
}

.mono {
  font-family: var(--font-mono);
}

/* Panel labels (mono, used in navy panels) */
.panel-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.1rem;
}

/* Confidentiality microcopy */
.conf-note {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--grey);
}

.conf-note--light {
  color: rgba(251, 250, 247, 0.55);
}

/* Accessibility: skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--cloud);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --btn-pad-y: 0.85rem;
  --btn-pad-x: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

.btn--sm {
  --btn-pad-y: 0.6rem;
  --btn-pad-x: 1.1rem;
  font-size: 0.85rem;
}

/* Primary CTA: pure white text for maximum contrast on navy */
.btn--primary {
  background: var(--navy);
  color: #ffffff;
}
.btn--primary:hover {
  background: #1b3a57;
  color: #ffffff;
}

.btn--gold {
  background: var(--gold);
  color: #1c1303;
}
.btn--gold:hover {
  background: var(--gold-soft);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--navy);
  background: rgba(19, 40, 61, 0.04);
}

.btn--ghost-light {
  color: var(--cloud);
  border-color: rgba(251, 250, 247, 0.32);
}
.btn--ghost-light:hover {
  border-color: var(--cloud);
  background: rgba(251, 250, 247, 0.08);
}

/* ============================================================
   1. Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Near-opaque background (no always-on backdrop blur) keeps scroll paints
     cheap on modest devices while staying clean over ivory content. */
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: var(--cloud);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.02);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

/* Brand / official logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.brand__logo {
  height: 52px;
  width: auto;
}
.brand__logo--footer {
  height: 48px;
}
.brand__fallback {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand__fallback--light {
  color: var(--cloud);
}

/* Navigation */
.nav {
  margin-left: auto;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.7rem);
}
.nav__menu a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--graphite);
  position: relative;
  padding-block: 0.25rem;
  transition: color 0.2s var(--ease);
}
.nav__menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}
.nav__menu a:not(.btn):hover {
  color: var(--ink);
}
.nav__menu a:not(.btn):hover::after {
  width: 100%;
}
/* The nav link color above outweighs .btn--primary; force white text
   on the header / mobile-nav CTA so it stays readable on navy. */
.nav__menu a.btn--primary {
  color: #ffffff;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav__toggle-bar {
  display: block;
  width: 20px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

/* Language switcher */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2px;
}
.lang__btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--grey);
  background: transparent;
  border: 0;
  border-radius: 2px;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lang__btn:hover {
  color: var(--ink);
}
.lang__btn.is-active {
  background: var(--navy);
  color: var(--cloud);
}

/* ============================================================
   2. Hero
   ============================================================ */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background: linear-gradient(180deg, var(--cloud) 0%, var(--ivory) 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  margin-top: 0.5rem;
  max-width: 20ch;
}
.hero__subtitle {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  color: var(--graphite);
  max-width: 42rem;
}
.hero__trust {
  margin-top: 1.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--teal);
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
  max-width: 38rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
}
.ratio-matrix {
  width: 100%;
  height: 100%;
}
.matrix-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  fill: var(--grey);
}

/* ============================================================
   3. Quick section navigation
   ============================================================ */
.quick-nav {
  background: var(--cloud);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quick-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.quick-nav__list::-webkit-scrollbar {
  display: none;
}
.quick-nav__link {
  display: inline-block;
  padding-block: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.quick-nav__link:hover {
  color: var(--ink);
}
.quick-nav__link.is-active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

@media (min-width: 961px) {
  /* Sticky on desktop only, tucked under the main header */
  .quick-nav {
    position: sticky;
    top: 76px;
    z-index: 40;
  }
}

/* ============================================================
   4. Problem / overview + About
   ============================================================ */
.problem__inner,
.about__inner {
  max-width: 52rem;
}
.problem .section__lead,
.about .section__lead {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--graphite);
  line-height: 1.55;
}
.problem .section__lead--strong,
.about .section__lead--strong {
  color: var(--navy);
}

/* ============================================================
   Cards (shared)
   ============================================================ */
.cards {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.75rem);
}
.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}
.cards--services {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  position: relative;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px -28px rgba(19, 40, 61, 0.4);
}
.card__index {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.card .icon {
  width: 32px;
  height: 32px;
  color: var(--navy);
  margin-bottom: 1rem;
}
.card__title {
  font-size: 1.3rem;
  color: var(--ink);
}
.card__body {
  margin-top: 0.65rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}
.card__more {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.2s var(--ease);
}
.card__more:hover {
  color: var(--gold);
}

/* Service cards: flex column so micro-list grows and CTA pins to the bottom */
.card--service {
  display: flex;
  flex-direction: column;
}
.card--service .card__title {
  font-size: 1.2rem;
}
.card__list {
  margin-top: 1rem;
  display: grid;
  gap: 0.45rem;
}
.card__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.88rem;
  color: var(--graphite);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 1.5px;
  background: var(--gold);
}
.card--service .card__more {
  margin-top: auto;
  padding-top: 1.25rem;
}

/* Compact card (Why RatioVis) with gold tick */
.card--compact {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-block: clamp(1.1rem, 2vw, 1.5rem);
}
.card--compact .card__title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}
.card__tick {
  flex: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--gold);
  position: relative;
  transform: rotate(45deg);
}
.card__tick::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--gold);
}

/* ============================================================
   6. Services: three connected areas block
   ============================================================ */
.three-areas {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(1.25rem, 2.6vw, 1.9rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.three-areas__lead {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1rem;
}
.three-areas__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
}
.three-areas__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--graphite);
  line-height: 1.5;
}
.three-areas__num {
  flex: none;
  font-size: 0.72rem;
  color: var(--gold);
  padding-top: 0.2em;
}

/* ============================================================
   7. Starter Kit (navy feature)
   ============================================================ */
.section--navy {
  background: var(--navy);
  color: var(--cloud);
}
.starter__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.starter__intro .section__lead {
  margin-top: 1rem;
}
.starter__intro .btn {
  margin-top: 2rem;
}

.starter__answers {
  border: 1px solid rgba(216, 210, 196, 0.22);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background: rgba(251, 250, 247, 0.03);
}
.answers-list {
  display: grid;
  gap: 0;
}
.answers-list li {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.6rem;
  font-size: 0.95rem;
  color: rgba(251, 250, 247, 0.88);
  border-bottom: 1px solid rgba(216, 210, 196, 0.14);
}
.answers-list li:last-child {
  border-bottom: 0;
}
.answers-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.18rem;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

.deliverables__label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}
.deliverables-matrix {
  border: 1px solid rgba(216, 210, 196, 0.22);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.deliverables-matrix__row {
  display: grid;
  grid-template-columns: minmax(170px, 0.36fr) 1fr;
  border-bottom: 1px solid rgba(216, 210, 196, 0.14);
}
.deliverables-matrix__row:last-child {
  border-bottom: 0;
}
.deliverables-matrix__row dt {
  position: relative;
  padding: 1rem 1.25rem 1rem 2.5rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--cloud);
  border-right: 1px solid rgba(216, 210, 196, 0.14);
}
.deliverables-matrix__row dt::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 1.35rem;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}
.deliverables-matrix__row dd {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: rgba(251, 250, 247, 0.72);
}

/* ============================================================
   8. Cross-Border Strategy module
   ============================================================ */
.practice-module {
  position: relative;
  background: var(--bg-alt);
  overflow: hidden;
}
.practice-module::after {
  content: "";
  position: absolute;
  top: -40px;
  right: clamp(2rem, 8vw, 8rem);
  width: 2px;
  height: 220px;
  background: var(--gold);
  opacity: 0.55;
  transform: rotate(32deg);
  pointer-events: none;
}

.practice-module__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.practice-module__overview .section__lead {
  margin-top: 1.1rem;
}
.practice-module__cta {
  margin-top: 2rem;
}

.practice-module__panel {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.8vw, 2.25rem);
}
.panel-label--gold {
  color: var(--gold-soft);
}
.panel-questions {
  display: grid;
  gap: 0;
}
.panel-questions li {
  position: relative;
  padding: 0.9rem 0 0.9rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(251, 250, 247, 0.88);
  border-bottom: 1px solid rgba(216, 210, 196, 0.14);
}
.panel-questions li:last-child {
  border-bottom: 0;
}
.panel-questions li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 12px;
  height: 1.5px;
  background: var(--gold);
}

.capability-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.2vw, 1.5rem);
}
.capability-card {
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.capability-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px -28px rgba(19, 40, 61, 0.4);
}
.capability-card h3 {
  font-size: 1.12rem;
  color: var(--ink);
}
.capability-card p {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.related-capabilities {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
}
.related-capabilities__label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1rem;
}
.related-capabilities__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.related-capabilities__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cloud);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--graphite);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.related-capabilities__pill:hover {
  border-color: var(--gold);
  color: var(--navy);
}

/* ============================================================
   9. Approach timeline
   ============================================================ */
.timeline {
  display: grid;
  position: relative;
}
.timeline--detailed {
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.2vw, 1.5rem);
}
.timeline__step {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  transition: border-color 0.25s var(--ease);
}
.timeline__step:hover {
  border-color: var(--gold);
}
.timeline__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  font-size: 0.8rem;
  color: var(--navy);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}
.timeline__step:hover .timeline__num {
  border-color: var(--gold);
  background: var(--navy);
  color: var(--cloud);
}
.timeline__content {
  display: grid;
  gap: 0.4rem;
}
.timeline__label {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}
.timeline__desc {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ============================================================
   11. Audience matrix
   ============================================================ */
.audience__matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cloud);
}
.audience__matrix li {
  position: relative;
  padding: 1.2rem 1.25rem 1.2rem 2.5rem;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  color: var(--graphite);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.audience__matrix li:nth-child(2n) {
  border-right: 0;
}
.audience__matrix li:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.audience__matrix li::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 1.78rem;
  width: 14px;
  height: 1.5px;
  background: var(--gold);
}

/* ============================================================
   13. Confidentiality-first
   ============================================================ */
.conf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.9rem, 1.8vw, 1.25rem);
}
.conf-grid li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.4rem;
  font-size: 0.98rem;
  color: var(--graphite);
  transition: border-color 0.25s var(--ease);
}
.conf-grid li:hover {
  border-color: var(--gold);
}
.conf-grid li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--gold);
  background: var(--gold);
  transform: rotate(45deg);
}

/* ============================================================
   14. Resources
   ============================================================ */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.2vw, 1.5rem);
}
.insights {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--cloud);
  padding: clamp(1.5rem, 2.8vw, 2.25rem);
}
.insights .capability-label {
  margin-bottom: 0.75rem;
}
.insights__copy {
  font-size: 0.98rem;
  color: var(--text-soft);
  margin-bottom: 1.25rem;
  max-width: 44rem;
}

/* ============================================================
   15. Practical questions (accordion)
   ============================================================ */
.faq__inner {
  max-width: 56rem;
}
.faq__list {
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 1.25rem 3rem 1.25rem 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform 0.2s var(--ease);
}
.faq__item[open] summary {
  color: var(--navy);
}
.faq__item[open] summary::after {
  content: "-";
}
.faq__item summary:hover {
  color: var(--navy);
}
.faq__item p {
  padding: 0 3rem 1.4rem 0;
  font-size: 0.98rem;
  color: var(--text-soft);
  max-width: 48rem;
}

/* ============================================================
   16. Final CTA band
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #0e2030 100%);
  color: var(--cloud);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.cta-band__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--cloud);
  max-width: 24ch;
}
.cta-band__copy {
  margin-top: 0.75rem;
  color: rgba(251, 250, 247, 0.75);
  max-width: 36rem;
}
.cta-band__col {
  display: grid;
  gap: 0.9rem;
  max-width: 26rem;
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ============================================================
   17. Contact form + What happens next
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}

.contact-form {
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.form-required-note {
  font-size: 0.8rem;
  color: var(--grey);
  margin-bottom: 1.25rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
}
.form-field {
  display: grid;
  gap: 0.4rem;
}
.form-field--full {
  grid-column: 1 / -1;
}
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--graphite);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-field textarea {
  resize: vertical;
  min-height: 130px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 138, 60, 0.15);
}
.form-field .conf-note {
  margin-bottom: 0.6rem;
}

/* Honeypot: visually removed, still in the form payload for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-checks {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: var(--graphite);
  line-height: 1.5;
  cursor: pointer;
}
.form-check input {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 0.2rem;
  accent-color: var(--navy);
}

.contact-form__submit {
  margin-top: 1.5rem;
  min-width: 200px;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(176, 138, 60, 0.08);
  font-size: 0.9rem;
  color: var(--graphite);
}

.form-fallback {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--grey);
}
.form-fallback a {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
}
.form-fallback a:hover {
  color: var(--gold);
}

/* What happens next */
.next-steps {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.8vw, 2.25rem);
}
.next-steps__list {
  display: grid;
  gap: 0;
  counter-reset: nextstep;
}
.next-steps__list li {
  position: relative;
  counter-increment: nextstep;
  padding: 0.95rem 0 0.95rem 2.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(251, 250, 247, 0.88);
  border-bottom: 1px solid rgba(216, 210, 196, 0.14);
}
.next-steps__list li:last-child {
  border-bottom: 0;
}
.next-steps__list li::before {
  content: "0" counter(nextstep);
  position: absolute;
  left: 0;
  top: 1.05rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-soft);
}

/* ============================================================
   18. Scope of services
   ============================================================ */
.scope {
  background: var(--graphite);
  color: rgba(251, 250, 247, 0.72);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.scope__title {
  font-size: 1.2rem;
  color: var(--cloud);
  margin-bottom: 1rem;
}
.scope__text {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 60rem;
}
.scope__text + .scope__text {
  margin-top: 0.75rem;
}

/* ============================================================
   19. Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(251, 250, 247, 0.7);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 0.8fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(216, 210, 196, 0.14);
}
.footer__tagline {
  margin-top: 1.25rem;
  max-width: 30rem;
  font-size: 0.95rem;
  color: rgba(251, 250, 247, 0.6);
}
.footer__based {
  margin-top: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
}
.footer__heading {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.1rem;
}
.footer__col ul {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.footer__col a:hover {
  color: var(--cloud);
}
.footer__conf {
  margin-top: 1.1rem;
  max-width: 22rem;
}
.footer__connect {
  gap: 0.7rem;
}
.footer__bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.75rem;
}
.footer__legal {
  font-size: 0.8rem;
  color: rgba(251, 250, 247, 0.5);
  max-width: 52rem;
}
.footer__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer__legal-link {
  font-size: 0.8rem;
  color: rgba(251, 250, 247, 0.7);
  border-bottom: 1px solid transparent;
}
.footer__legal-link:hover {
  border-bottom-color: var(--gold);
}
.footer__legal-link--btn {
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0;
  font-family: var(--font-sans);
  cursor: pointer;
}

/* ============================================================
   Cookie consent banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--navy);
  color: rgba(251, 250, 247, 0.92);
  border-top: 1px solid rgba(216, 210, 196, 0.18);
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-block: 1.1rem;
}
.cookie-banner__text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(251, 250, 247, 0.82);
  max-width: 48rem;
  margin: 0;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ============================================================
   Cookie preferences modal
   ============================================================ */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
}
/* Visibility is driven by the [hidden] attribute (toggled in JS).
   Only apply display when NOT hidden so [hidden] keeps it closed. */
.cookie-modal:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
}
.cookie-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 30rem;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: 0 24px 60px -24px rgba(19, 40, 61, 0.5);
}
.cookie-modal__title {
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0 0 1.25rem;
}
.cookie-modal__section {
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
}
.cookie-modal__section p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--graphite);
  margin: 0.5rem 0 0;
}
.cookie-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-modal__head h3 {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0;
}
.cookie-modal__badge {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.cookie-modal__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--graphite);
  cursor: pointer;
}
.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

/* ============================================================
   Legal pages (privacy.html, cookies.html)
   ============================================================ */
.legal-header {
  border-bottom: 1px solid var(--line);
  background: var(--cloud);
}
.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
  padding-block: 0.75rem;
}
.legal-header .brand {
  display: inline-flex;
  align-items: center;
}
.legal-header .brand__logo {
  display: block;
  height: 44px;
  width: auto;
}
.legal-header__back {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.legal-header__back:hover {
  color: var(--gold);
  text-decoration: underline;
}

.legal-page {
  max-width: 48rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.legal-page h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}
.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 2.25rem;
}
.legal-page h2 {
  font-size: 1.3rem;
  color: var(--navy);
  margin: 2.25rem 0 0.75rem;
}
.legal-page p,
.legal-page li {
  font-size: 0.98rem;
  color: var(--graphite);
  line-height: 1.7;
}
.legal-page p + p {
  margin-top: 0.75rem;
}
.legal-page ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin-block: 0.75rem 1.25rem;
}
.legal-page ul li {
  position: relative;
  padding-left: 1.25rem;
}
.legal-page ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 12px;
  height: 1.5px;
  background: var(--gold);
}
.legal-page a {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
}
.legal-page a:hover {
  color: var(--gold);
}

.legal-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
}
.legal-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--grey);
}
.legal-footer__inner a {
  color: var(--navy);
  font-weight: 600;
}
.legal-footer__inner a:hover {
  color: var(--gold);
}

/* ============================================================
   Reveal-on-scroll animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1060px) {
  .nav__menu {
    gap: 0.9rem;
  }
  .nav__menu a {
    font-size: 0.86rem;
  }
  .brand__logo {
    height: 46px;
  }
}

@media (max-width: 960px) {
  section[id],
  footer[id] {
    scroll-margin-top: 92px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    order: -1;
    max-width: 300px;
  }
  .cards--3,
  .cards--services,
  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .starter__grid,
  .practice-module__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .three-areas__list {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .timeline--detailed {
    grid-template-columns: 1fr 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }

  /* Mobile nav */
  .nav__toggle {
    display: flex;
  }
  .nav__menu {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cloud);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  .nav__menu.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav__menu li {
    border-bottom: 1px solid var(--line);
  }
  .nav__menu a:not(.btn) {
    display: block;
    padding-block: 1rem;
    font-size: 0.95rem;
  }
  .nav__cta-item {
    border-bottom: 0 !important;
    margin-top: 1rem;
  }
  .nav__cta-item .btn {
    width: 100%;
  }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

@media (max-width: 640px) {
  .brand__logo {
    height: 42px;
  }
  .cards--3,
  .cards--services,
  .capability-grid,
  .resource-grid,
  .timeline--detailed,
  .audience__matrix,
  .conf-grid {
    grid-template-columns: 1fr;
  }
  .audience__matrix li {
    border-right: 0;
  }
  .audience__matrix li:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .audience__matrix li:last-child {
    border-bottom: 0;
  }
  .deliverables-matrix__row {
    grid-template-columns: 1fr;
  }
  .deliverables-matrix__row dt {
    border-right: 0;
    padding-bottom: 0.25rem;
  }
  .deliverables-matrix__row dd {
    padding-top: 0;
    padding-left: 2.5rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .faq__item summary {
    padding-right: 2.25rem;
  }
  .faq__item p {
    padding-right: 0;
  }
  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
