/* Bokkerink Compliance International
   One stylesheet. Colour tokens first: "original" is the active theme on :root.
   Switch the whole palette with <html data-theme="navy|teal|ivory"> in src/layout.html.

   "original" is the old WordPress site's palette, read from its live CSS:
   hero gradient #70b1ed (light blue) to #7cc576 (green), highlight #71b3f0.
   Deeper shades of the same blue and green (#2f6fb3, #357d33) carry text and buttons
   wherever they need 4.5:1 against white. */

:root,
[data-theme="original"] {
  --brand-blue: #70b1ed;
  --brand-green: #7cc576;
  --highlight: #71b3f0;

  --hero-bg: linear-gradient(to bottom, #70b1ed 0%, #7cc576 100%);
  --hero-text: #fff;
  --hero-muted: #fff;
  --hero-eyebrow: #fff;
  --hero-text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
  --hero-btn-bg: #fff;
  --hero-btn-text: #1f5a96;
  --hero-btn-hover: #eef5fd;
  --hero-outline: #fff;
  --hero-outline-hover: rgba(255, 255, 255, .16);

  --page-hero-bg: linear-gradient(to bottom, #70b1ed 0%, #7cc576 100%);
  --page-hero-text: #fff;
  --page-hero-muted: #fff;
  --page-hero-eyebrow: #fff;
  --page-hero-shadow: 0 1px 2px rgba(0, 0, 0, .18);

  --primary: #2f6fb3;
  --primary-hover: #255b94;
  --on-primary: #fff;
  --accent: #357d33;
  --ink: #15283d;
  --text: #34475a;
  --muted: #566779;
  --border: #dde6ec;
  --surface: #fff;
  --surface-alt: #f6fafe;
  --section-alt-bg: linear-gradient(to bottom, #f6fafe 0%, #f7fbf7 100%);
  --topbar-bg: #f6fafe;
  --topbar-text: #34475a;
  --header-bg: #fff;
  --header-bg-scrolled: rgba(255, 255, 255, .86);
  --header-shadow: 0 1px 0 rgba(21, 40, 61, .06), 0 8px 24px -12px rgba(21, 40, 61, .22);
  --menu-bg: #fff;
  --chip-bg: #eaf3fc;
  --chip-text: #1f5a96;
  --icon-bg: #eaf3fc;

  --tile-overlay: linear-gradient(to top, rgba(8, 20, 34, .78) 0%, rgba(8, 20, 34, .38) 55%, rgba(8, 20, 34, .18) 100%);
  --tile-overlay-hover: linear-gradient(to top, rgba(8, 20, 34, .62) 0%, rgba(8, 20, 34, .22) 55%, rgba(8, 20, 34, .06) 100%);
  --tile-title: #fff;

  --cta-bg: linear-gradient(to bottom right, #eaf3fc 0%, #edf6ec 100%);
  --cta-heading: #15283d;
  --cta-text: #34475a;
  --cta-link: #255b94;
  --cta-btn-bg: #357d33;
  --cta-btn-text: #fff;
  --cta-btn-hover: #2a6629;

  --footer-bg: #16202b;
  --footer-text: #eef2f5;
  --footer-muted: #a7b3be;
  --footer-rule: rgba(255, 255, 255, .12);
  --footer-accent: #9fd3b0;

  --logo-word: #255b94;
  --logo-sub: #357d33;
  --focus: #2f6fb3;
  --shadow: 0 24px 48px -24px rgba(12, 32, 52, .5);
  --card-shadow: 0 1px 2px rgba(21, 40, 61, .06), 0 8px 24px -16px rgba(21, 40, 61, .25);
}

[data-theme="navy"] {
  --highlight: #2a7449;
  --hero-bg: #12304f;
  --hero-eyebrow: #8fd6a6;
  --hero-btn-bg: #8fd6a6;
  --hero-btn-text: #12304f;
  --hero-btn-hover: #a9e1bb;
  --page-hero-bg: #f1eee7;
  --page-hero-text: var(--ink);
  --page-hero-muted: var(--text);
  --page-hero-eyebrow: var(--accent);
  --page-hero-shadow: none;
  --primary: #1d5a96;
  --primary-hover: #164877;
  --accent: #2a7449;
  --ink: #12304f;
  --surface: #fbfaf7;
  --surface-alt: #f1eee7;
  --section-alt-bg: #f1eee7;
  --topbar-bg: #f1eee7;
  --header-bg: #fbfaf7;
  --header-bg-scrolled: rgba(251, 250, 247, .88);
  --menu-bg: #fbfaf7;
  --chip-bg: #e8eef4;
  --chip-text: #12304f;
  --icon-bg: #e8eef4;
  --cta-bg: #12304f;
  --cta-heading: #fff;
  --cta-text: #d9e3ee;
  --cta-link: #8fd6a6;
  --cta-btn-bg: #8fd6a6;
  --cta-btn-text: #12304f;
  --cta-btn-hover: #a9e1bb;
  --footer-bg: #0c2239;
  --logo-word: #12304f;
  --logo-sub: #2a7449;
  --focus: #1d5a96;
}

[data-theme="teal"] {
  --highlight: #1d7356;
  --hero-bg: #0e4a4c;
  --hero-btn-text: #0e4a4c;
  --hero-btn-hover: #e0efe9;
  --page-hero-bg: #edf4f1;
  --page-hero-text: var(--ink);
  --page-hero-muted: var(--text);
  --page-hero-eyebrow: var(--accent);
  --page-hero-shadow: none;
  --primary: #0f6767;
  --primary-hover: #0b5050;
  --accent: #1d7356;
  --ink: #0e3a3c;
  --surface: #fbfbf9;
  --surface-alt: #edf4f1;
  --section-alt-bg: #edf4f1;
  --topbar-bg: #edf4f1;
  --header-bg: #fbfbf9;
  --header-bg-scrolled: rgba(251, 251, 249, .88);
  --menu-bg: #fbfbf9;
  --chip-bg: #e0efe9;
  --chip-text: #0e3a3c;
  --icon-bg: #e0efe9;
  --cta-bg: #e0efe9;
  --cta-heading: #0e3a3c;
  --cta-link: #0f6767;
  --cta-btn-bg: #0e4a4c;
  --cta-btn-hover: #0a3739;
  --footer-bg: #0a3133;
  --logo-word: #0e3a3c;
  --logo-sub: #1d7356;
  --focus: #0f6767;
}

[data-theme="ivory"] {
  --highlight: #2d7a49;
  --hero-bg: #f4f0e8;
  --hero-text: #15283d;
  --hero-muted: #34475a;
  --hero-eyebrow: #2d7a49;
  --hero-text-shadow: none;
  --hero-btn-bg: #1f5c9c;
  --hero-btn-text: #fff;
  --hero-btn-hover: #184a7e;
  --hero-outline: #15283d;
  --hero-outline-hover: rgba(21, 40, 61, .06);
  --page-hero-bg: #f4f0e8;
  --page-hero-text: var(--ink);
  --page-hero-muted: var(--text);
  --page-hero-eyebrow: var(--accent);
  --page-hero-shadow: none;
  --primary: #1f5c9c;
  --primary-hover: #184a7e;
  --accent: #2d7a49;
  --surface-alt: #f7f4ee;
  --section-alt-bg: #f7f4ee;
  --topbar-bg: #f7f4ee;
  --cta-bg: #15283d;
  --cta-heading: #fff;
  --cta-text: #d9e3ee;
  --cta-link: #a9dcb8;
  --cta-btn-bg: #a9dcb8;
  --cta-btn-text: #15283d;
  --cta-btn-hover: #c1e7cc;
  --footer-bg: #15283d;
  --logo-word: #1e3f6e;
  --logo-sub: #2d7a49;
  --focus: #1f5c9c;
}

/* ---------- Spacing scale (8px) ---------- */

:root {
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px;
  --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px; --s14: 112px;
  --gutter: 24px;
  --section-pad: clamp(72px, 40px + 5vw, 112px);
  --header-h: 88px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 999px) { :root { --header-h: 72px; } }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--s3)); overflow-x: clip; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font: 400 17px/1.65 "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (min-width: 1000px) { body { font-size: 18px; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.25rem + 3vw, 3.75rem); letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); letter-spacing: -.015em; }
h3 { font-size: 1.3rem; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
a {
  color: var(--primary); text-underline-offset: .18em; text-decoration-thickness: 1px;
  transition: color .15s, background-color .15s, border-color .15s, text-decoration-color .15s;
}
a:hover { color: var(--primary-hover); text-decoration-thickness: 2px; }
strong { color: var(--ink); font-weight: 600; }
ul, ol { padding: 0; margin: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--s2); top: -100px; z-index: 100;
  padding: var(--s1) var(--s2); border-radius: 4px;
  background: var(--ink); color: var(--surface); font-weight: 600; text-decoration: none;
}
.skip:focus { top: var(--s2); color: var(--surface); }

.wrap { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.eyebrow {
  margin: 0 0 var(--s2);
  color: var(--accent);
  font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  line-height: 1.4;
}
.lede { font-size: 1.15rem; color: var(--text); max-width: 60ch; }

.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--section-alt-bg); }
.section-head { max-width: 720px; margin-bottom: var(--s6); }
.section-head p { color: var(--muted); max-width: 65ch; }
.section-head h2 { margin-bottom: 0; }
.section-head h2 + p { margin-top: var(--s2); }

/* ---------- Scroll reveal (added by site.js only when motion is allowed) ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 48px; padding: 12px var(--s3); border-radius: 6px;
  border: 2px solid transparent;
  font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-hero { background: var(--hero-btn-bg); color: var(--hero-btn-text); }
.btn-hero:hover { background: var(--hero-btn-hover); color: var(--hero-btn-text); }
.btn-outline { border-color: var(--hero-outline); color: var(--hero-text); background: transparent; }
.btn-outline:hover { background: var(--hero-outline-hover); color: var(--hero-text); }
.btn-cta { background: var(--cta-btn-bg); color: var(--cta-btn-text); }
.btn-cta:hover { background: var(--cta-btn-hover); color: var(--cta-btn-text); }
.hero :focus-visible, .page-hero :focus-visible, .cta-box :focus-visible { outline-color: currentColor; }
.hero .btn-hero:focus-visible { outline-color: var(--hero-text); }
.page-hero .btn-primary:focus-visible { outline-color: var(--page-hero-text); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s1);
  min-height: 44px;
  font-weight: 600; text-decoration: none;
}
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .15s; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Top bar ---------- */

.topbar { background: var(--topbar-bg); color: var(--topbar-text); font-size: 14px; border-bottom: 1px solid var(--border); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 40px; }
.topbar-list { display: flex; flex-wrap: wrap; gap: 0 var(--s3); }
.topbar-list li, .topbar-list a { display: inline-flex; align-items: center; gap: var(--s1); min-height: 40px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--primary); text-decoration: underline; }
.topbar .icon { width: 16px; height: 16px; color: var(--accent); }
.topbar-social { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: -10px; }
.topbar-social .icon { width: 20px; height: 20px; color: var(--primary); }

/* ---------- Header and nav ---------- */

/* The background lives on ::before so the blur never becomes the containing block
   of the fixed mobile menu. */
.site-header { position: sticky; top: 0; z-index: 50; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--header-bg); border-bottom: 1px solid var(--border);
  transition: background-color .25s, box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled::before {
  background: var(--header-bg-scrolled); border-bottom-color: transparent;
  box-shadow: var(--header-shadow);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  color: var(--logo-word);
  font-size: 26px; font-weight: 700; line-height: 1;
  letter-spacing: normal;
}
.brand-sub {
  margin-top: 6px;
  color: var(--logo-sub);
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}

.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 6px;
  color: var(--ink); font-size: 16.5px; font-weight: 500; text-decoration: none;
  position: relative;
}
.site-nav a:hover { color: var(--primary); background: var(--chip-bg); }
.site-nav a[aria-current="page"] { color: var(--primary); font-weight: 600; }
.site-nav a[aria-current="page"]:not(.nav-cta)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px;
  height: 3px; border-radius: 3px; background: var(--highlight);
}
.site-nav .nav-cta {
  margin-left: var(--s1); padding: 0 20px;
  background: var(--primary); color: var(--on-primary); font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--primary-hover); color: var(--on-primary); }
.site-nav .nav-cta[aria-current="page"] { color: var(--on-primary); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--highlight); }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; min-width: 44px; padding: 8px 16px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer;
  position: relative; z-index: 2;
  transition: background-color .15s, border-color .15s;
}
.menu-toggle:hover { background: var(--chip-bg); }
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .2s, background-color .2s;
}
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 999px) {
  .menu-toggle { display: inline-flex; }
  .brand { position: relative; z-index: 2; }

  /* Without JS the nav stays in the flow as a plain list. */
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; padding-bottom: var(--s2); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }

  /* With JS: a full-screen menu below the header bar. */
  .js .site-nav {
    display: none;
    position: fixed; inset: 0; z-index: 1;
    padding: calc(var(--menu-top, var(--header-h)) + var(--s1)) var(--gutter) var(--s5);
    background: var(--menu-bg);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .js .site-nav.is-open { display: block; }
  .site-nav li { border-bottom: 1px solid var(--border); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a {
    min-height: 60px; padding: 0 var(--s1); border-radius: 0;
    font-size: 1.5rem; font-weight: 500; line-height: 1.2; letter-spacing: -.01em;
  }
  .site-nav a:hover { background: transparent; }
  .site-nav a[aria-current="page"]:not(.nav-cta)::after { left: 0; right: auto; top: 16px; bottom: 16px; width: 3px; height: auto; }
  .site-nav a[aria-current="page"]:not(.nav-cta) { padding-left: var(--s3); }
  .site-nav .nav-cta {
    justify-content: center; margin: var(--s4) 0 0; min-height: 56px; border-radius: 6px;
    font-size: 1.1rem; font-weight: 600; line-height: 1.2; letter-spacing: 0;
  }
  body.menu-open { overflow: hidden; }
}

/* ---------- Home hero ---------- */

.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-top: clamp(64px, 40px + 5vw, 112px); padding-bottom: clamp(64px, 40px + 5vw, 112px);
}
.hero .eyebrow { color: var(--hero-eyebrow); }
.hero h1 {
  max-width: 640px; color: var(--hero-text);
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1.15; letter-spacing: -.02em;
}
.hero .eyebrow, .hero h1, .hero-text, .hero-figure figcaption { text-shadow: var(--hero-text-shadow); }
.hero-text { max-width: 60ch; font-size: 1.15rem; font-weight: 500; color: var(--hero-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.hero-figure { margin: 0; width: 360px; }
.hero-figure img {
  width: 360px; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 8px; box-shadow: var(--shadow);
}
.hero-figure figcaption { margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--hero-muted); }

@media (max-width: 999px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 240px; }
  .hero-figure, .hero-figure img { width: 240px; }
}
@media (max-width: 719px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .hero-figure { order: -1; width: 100%; display: flex; align-items: center; gap: var(--s2); }
  .hero-figure img { width: 96px; border-radius: 6px; }
  .hero-figure figcaption { margin: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Service tiles (home) ---------- */

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.tile {
  display: flex; flex-direction: column; height: 100%;
  border-radius: 8px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow);
  color: var(--text); text-decoration: none;
  transition: box-shadow .4s ease, transform .4s ease, border-color .15s;
}
.tile:hover { color: var(--text); box-shadow: var(--shadow); }
.tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 8px; }
.tile-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.tile-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.tile-media::after {
  content: ""; position: absolute; inset: 0;
  background: var(--tile-overlay);
  transition: opacity .4s ease;
}
.tile-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--tile-overlay-hover); opacity: 0;
  transition: opacity .4s ease;
}
.tile:hover .tile-media img, .tile:focus-visible .tile-media img { transform: scale(1.04); }
.tile:hover .tile-media::after, .tile:focus-visible .tile-media::after { opacity: 0; }
.tile:hover .tile-media::before, .tile:focus-visible .tile-media::before { opacity: 1; }
.tile-title {
  position: absolute; left: var(--s3); right: var(--s3); bottom: var(--s2); z-index: 2; margin: 0;
  color: var(--tile-title); font-size: 1.75rem; line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.tile-body { display: flex; flex-direction: column; flex: 1; gap: var(--s2); padding: var(--s3); }
.tile-body p { margin: 0; color: var(--text); font-size: 16px; line-height: 1.55; }
.tile-more {
  display: inline-flex; align-items: center; gap: var(--s1); margin-top: auto;
  color: var(--primary); font-weight: 600;
}
.tile-more .icon { width: 1.05em; height: 1.05em; transition: transform .15s; }
.tile:hover .tile-more { color: var(--primary-hover); text-decoration: underline; text-underline-offset: .18em; }
.tile:hover .tile-more .icon { transform: translateX(3px); }
@media (max-width: 1099px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .tiles { grid-template-columns: 1fr; gap: var(--s2); } }

/* ---------- Credentials (About) ---------- */

.creds { border-bottom: 1px solid var(--border); }
.creds-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cred { padding: var(--s5) var(--s4); border-left: 1px solid var(--border); }
.cred:first-child { border-left: 0; padding-left: 0; }
.cred:last-child { padding-right: 0; }
.cred-key {
  display: block; margin-bottom: var(--s1);
  color: var(--primary); font-size: 1.6rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em;
}
.cred p { margin: 0; color: var(--text); font-size: 16px; }
@media (max-width: 999px) {
  .creds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred { padding: var(--s4) var(--s3); }
  .cred:nth-child(odd) { border-left: 0; padding-left: 0; }
  .cred:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 559px) {
  .creds-grid { grid-template-columns: 1fr; }
  .cred { border-left: 0; padding: var(--s3) 0; }
  .cred + .cred { border-top: 1px solid var(--border); }
}

/* ---------- How I help ---------- */

.help-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.help-intro p { color: var(--muted); font-size: 1.1rem; max-width: 40ch; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.step { border-top: 2px solid var(--border); padding-top: var(--s3); }
.step-num {
  display: block; margin-bottom: var(--s1);
  color: var(--accent); font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: .14em;
}
.step h3 { font-size: 1.3rem; margin-bottom: var(--s1); }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 859px) { .help-grid { grid-template-columns: 1fr; } }
@media (max-width: 559px) { .steps { grid-template-columns: 1fr; gap: var(--s4); } }

/* ---------- Cards ---------- */

.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  display: flex; flex-direction: column;
  padding: var(--s4); border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow);
}
.card h3 { margin-bottom: var(--s1); }
.card p { color: var(--muted); }
.card > :last-child { margin-bottom: 0; }
.card .link-arrow { margin-top: auto; padding-top: var(--s1); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: var(--s3); border-radius: 8px;
  background: var(--icon-bg); color: var(--primary);
}
.card-icon .icon { width: 24px; height: 24px; }
.assist .card { padding: var(--s3); }
.assist .card p { margin: 0; color: var(--text); font-size: 16.5px; }
@media (max-width: 1099px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .card-grid, .card-grid-2 { grid-template-columns: 1fr; gap: var(--s2); } }

/* ---------- Quote / about teaser ---------- */

.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.quote {
  margin: 0; padding-left: var(--s4); border-left: 3px solid var(--highlight);
  color: var(--ink); font-size: clamp(1.6rem, 1.1rem + 1.7vw, 2.5rem); font-weight: 500; font-style: normal; line-height: 1.25;
  letter-spacing: -.015em;
}
.quote p { margin: 0; }
.about-teaser p { max-width: 45ch; font-size: 1.1rem; }
@media (max-width: 859px) { .about-grid { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: var(--s1); }
.chips li {
  padding: var(--s1) var(--s2); border-radius: 999px;
  background: var(--chip-bg); color: var(--chip-text); font-weight: 500; font-size: 16px;
}
.clients { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.clients h2 { margin: 0; }
.section-alt .chips li { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
@media (max-width: 859px) { .clients { grid-template-columns: 1fr; } }

/* ---------- CTA box ---------- */

.cta-section { padding: 0 0 var(--section-pad); }
.section + .cta-section, .section-alt + .cta-section { padding-top: var(--section-pad); }
.cta-box {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3) var(--s6); align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: 12px;
  background: var(--cta-bg); color: var(--cta-text);
}
.cta-box h2 { color: var(--cta-heading); font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); max-width: 22em; }
.cta-contact { display: flex; flex-wrap: wrap; gap: 0 var(--s4); margin: 0; }
.cta-contact a { display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px; color: var(--cta-link); font-weight: 600; text-decoration: none; }
.cta-contact a:hover { text-decoration: underline; color: var(--cta-link); }
@media (max-width: 719px) {
  .cta-box { grid-template-columns: 1fr; }
  .cta-box .btn { width: 100%; }
}

/* ---------- Inner page hero ---------- */

.page-hero { background: var(--page-hero-bg); color: var(--page-hero-text); }
.page-hero .wrap { padding-top: clamp(56px, 32px + 5vw, 96px); padding-bottom: clamp(40px, 24px + 4vw, 72px); }
.page-hero h1 { margin-bottom: var(--s2); color: var(--page-hero-text); }
.page-hero .eyebrow { color: var(--page-hero-eyebrow); }
.page-hero .lede { color: var(--page-hero-muted); font-weight: 500; margin-bottom: 0; }
.page-hero .eyebrow, .page-hero h1, .page-hero .lede { text-shadow: var(--page-hero-shadow); }
.banner {
  margin: var(--s5) 0 0; overflow: hidden; border-radius: 8px; box-shadow: var(--shadow);
  aspect-ratio: 1140 / 191; min-height: 96px;
}
.banner img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s6); align-items: center; }
.page-hero-split .portrait { width: 240px; margin: 0; }
.page-hero-split .portrait img { width: 240px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow); }
@media (max-width: 719px) {
  .page-hero-split { grid-template-columns: 1fr; gap: var(--s3); }
  .page-hero-split .portrait { order: -1; width: 128px; }
  .page-hero-split .portrait img { width: 128px; }
}

/* ---------- Prose ---------- */

.prose { max-width: 68ch; }
.prose p { font-size: 1.05rem; }
.prose .intro { font-size: 1.25rem; color: var(--ink); font-weight: 600; line-height: 1.5; }
.prose h2 { margin-top: 1.6em; }
.prose-centered { margin-inline: auto; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.aside-box {
  padding: var(--s4); border-radius: 8px; background: var(--surface-alt); border: 1px solid var(--border);
}
.aside-box h2 { font-size: 1.35rem; }
.aside-box .chips li { background: var(--surface); font-size: 15px; }
@media (max-width: 959px) { .content-grid { grid-template-columns: 1fr; } }

/* Challenge questions */
.questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s4); max-width: 1000px; }
.questions li {
  display: flex; gap: var(--s2); align-items: flex-start;
  padding: var(--s3); border-radius: 8px; background: var(--surface); border: 1px solid var(--border);
  color: var(--ink); font-weight: 500;
}
.questions .icon { margin-top: 3px; color: var(--accent); }
@media (max-width: 719px) { .questions { grid-template-columns: 1fr; } }

/* ---------- Timeline (About) ---------- */

.timeline { position: relative; margin: var(--s1) 0 0; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 var(--s4) var(--s5); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--highlight);
}
.timeline .when { display: block; color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.timeline h3 { margin: 4px 0 var(--s1); font-size: 1.2rem; }
.timeline p { margin: 0; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); max-width: 960px; }
.contact-card { display: flex; flex-direction: row; gap: var(--s3); align-items: flex-start; }
.contact-card .card-icon { margin: 0; flex: none; }
.contact-card h2 { margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.contact-card p { margin: 0; color: var(--ink); font-size: 1.1rem; }
.contact-card a { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 639px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */

.notfound { text-align: left; max-width: 640px; }
.notfound .hero-actions .btn-primary { min-width: 12em; }

/* ---------- Footer ---------- */

.site-footer { background: var(--footer-bg); color: var(--footer-muted); font-size: 16px; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: var(--s5);
  padding-top: var(--s10); padding-bottom: var(--s6);
}
.site-footer a { color: var(--footer-text); text-decoration: none; }
.site-footer a:hover { color: var(--footer-text); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--footer-text); }
.brand-footer .brand-name { color: var(--footer-text); }
.brand-footer .brand-sub { color: var(--footer-accent); }
.footer-about p { margin: var(--s3) 0 0; max-width: 30em; }
.footer-heading {
  margin: 0 0 var(--s2); color: var(--footer-text);
  font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase;
}
.footer-links a, .footer-contact a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--footer-accent); }
.footer-bottom { padding-top: var(--s3); padding-bottom: var(--s4); border-top: 1px solid var(--footer-rule); font-size: 14px; }
.footer-bottom p { margin: 0; }
@media (max-width: 859px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .footer-grid { grid-template-columns: 1fr; padding-top: var(--s8); }
  .footer-links a, .footer-contact a, .footer-contact li { min-height: 44px; }
}

/* ---------- Small screens: top bar ---------- */

@media (max-width: 719px) {
  .topbar-list .topbar-place { display: none; }
}
@media (max-width: 419px) {
  .topbar { font-size: 13px; }
  .topbar-list { gap: 0 var(--s2); }
}

/* Profile aside on service pages */
.profile-aside { display: flex; gap: var(--s3); align-items: flex-start; }
.profile-aside img { width: 96px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; flex: none; }
.aside-name { margin: 0 0 4px; color: var(--ink); font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.aside-role { margin: 0 0 var(--s1); color: var(--muted); font-size: 15px; }
@media (min-width: 960px) {
  .profile-aside { flex-direction: column; position: sticky; top: calc(var(--header-h) + var(--s3)); }
  .profile-aside img { width: 120px; }
}

/* At-a-glance facts (About) */
.prose .chips { margin-bottom: 1em; }

@media (max-width: 439px) {
  .menu-toggle { padding: 8px 12px; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand { gap: 10px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-sub { font-size: 10px; letter-spacing: .14em; }
}

/* No motion at all when the visitor asks for it. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .tile:hover .tile-media img, .tile:focus-visible .tile-media img,
  .link-arrow:hover .icon, .tile:hover .tile-more .icon { transform: none; }
}
