/* ==========================================================================
   van der Meij IT diensten
   Mobile-first. System font (SF Pro on Apple devices), no external requests.
   Tokens: primitive -> semantic. Light and dark mode via prefers-color-scheme.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Primitive palette: navy, blue, slate */
  --navy-950: #071226;
  --navy-900: #0a1f44;
  --navy-800: #0f2b5c;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;
  --slate-50:  #f6f8fb;
  --slate-100: #eef2f7;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #5b6b80;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0b1526;
  --green-600: #15803d;
  --red-600:   #b91c1c;

  /* Semantic: light */
  --bg:            #ffffff;
  --bg-alt:        var(--slate-50);
  --surface:       #ffffff;
  --surface-2:     var(--slate-100);
  --text:          var(--slate-900);
  --text-2:        var(--slate-700);
  --muted:         var(--slate-500);          /* 5.3:1 on white */
  --border:        var(--slate-200);
  --border-strong: var(--slate-300);
  --accent:        var(--blue-700);           /* 6.7:1 on white */
  --accent-hover:  var(--blue-800);
  --accent-soft:   #e8efff;
  --on-accent:     #ffffff;
  --band-bg:       var(--navy-900);
  --band-text:     #ffffff;
  --band-muted:    #c3cfe2;
  --success:       var(--green-600);
  --danger:        var(--red-600);
  --header-bg:     rgba(255, 255, 255, 0.72);
  --shadow-sm:     0 1px 2px rgba(10, 31, 68, 0.06);
  --shadow-md:     0 10px 30px -12px rgba(10, 31, 68, 0.18);
  --focus:         0 0 0 3px rgba(29, 78, 216, 0.45);

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-body: 1.0625rem;                               /* 17px, Apple body size */
  --fs-small: 0.875rem;
  --fs-h1: clamp(2.25rem, 1.4rem + 3.8vw, 4rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 2vw, 2.625rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);

  /* Space & shape */
  --gutter: 1.25rem;
  --container: 74rem;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 24px;
  --header-h: 3.5rem;

  /* Motion: critically damped feel, short durations */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur: 240ms;
  --dur-reveal: 520ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #0b1220;
    --bg-alt:        #0f182b;
    --surface:       #121c31;
    --surface-2:     #18233b;
    --text:          #eaf0f8;
    --text-2:        #c4cfdf;
    --muted:         #93a3ba;
    --border:        #223152;
    --border-strong: #2d3f63;
    --accent:        var(--blue-400);
    --accent-hover:  var(--blue-300);
    --accent-soft:   rgba(96, 165, 250, 0.12);
    --on-accent:     #06132b;
    --band-bg:       #08101f;
    --band-muted:    #a9b8cf;
    --success:       #4ade80;
    --danger:        #f87171;
    --header-bg:     rgba(11, 18, 32, 0.72);
    --shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md:     0 10px 30px -12px rgba(0, 0, 0, 0.6);
    --focus:         0 0 0 3px rgba(96, 165, 250, 0.5);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  letter-spacing: -0.011em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
.h-small { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.h-label {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); margin: 1.75rem 0 0.75rem;
}

p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
main:focus { outline: none; }

.sr-only {
  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: -4rem; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 0.75rem 1rem;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.25rem; height: 1.25rem; flex: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}
.narrow { max-width: 48rem; }

.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--text-2); letter-spacing: -0.015em; max-width: 44rem; }
.lead-sm { font-size: 1.125rem; color: var(--text-2); }
.eyebrow {
  font-size: var(--fs-small); font-weight: 600; color: var(--accent);
  letter-spacing: 0.01em; margin-bottom: 1rem;
}

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.875rem; padding: 0.7rem 1.4rem;
  border-radius: 980px; border: 1px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease,
              border-color var(--dur-fast) ease, transform 100ms ease-out;
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 1.1rem; height: 1.1rem; }
.btn-sm { min-height: 2.25rem; padding: 0.4rem 1rem; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn-wrap { white-space: normal; text-align: left; line-height: 1.3; border-radius: 16px; }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { background: var(--accent-soft); color: var(--accent); }
.btn-secondary:hover { color: var(--accent-hover); border-color: var(--accent); }
.btn-link { padding-inline: 0; min-height: 2.75rem; color: var(--accent); background: none; }
.btn-link .icon { transition: transform var(--dur) var(--ease-out); }
.btn-link:hover .icon { transform: translateX(3px); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--slate-100); color: var(--navy-900); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost-light:hover { color: #fff; border-color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- 4. Header (translucent material) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) ease;
  padding-top: env(safe-area-inset-top);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 0.625rem;
  color: var(--text); text-decoration: none; margin-right: auto;
}
.brand:hover { color: var(--text); }
.monogram { width: 2rem; height: 2rem; }
.monogram-bg { fill: var(--navy-900); }
.monogram-fg { fill: #fff; font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: -0.6px; }
.monogram-accent { fill: var(--blue-400); }
@media (prefers-color-scheme: dark) { .monogram-bg { fill: var(--blue-700); } .monogram-accent { fill: #fff; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 0.975rem; letter-spacing: -0.02em; }
.brand-sub { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.01em; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 980px;
  background: var(--surface-2); font-size: 0.8125rem; font-weight: 600;
}
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.5rem; min-height: 2rem; padding: 0 0.6rem;
  border-radius: 980px; color: var(--muted); text-decoration: none;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer;
}
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle .icon-close { display: none; }
.site-header.nav-open .nav-toggle .icon-menu { display: none; }
.site-header.nav-open .nav-toggle .icon-close { display: block; }

/* Mobile navigation sheet: drops from the header it belongs to */
.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 0.5rem var(--gutter) 1.25rem;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transform-origin: top center;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.site-header.nav-open .site-nav {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s;
}
/* Without JavaScript the toggle cannot open the sheet; every page is also linked in the footer. */

.nav-list { list-style: none; display: flex; flex-direction: column; }
.nav-list a:not(.btn) {
  display: flex; align-items: center; min-height: 3rem;
  font-size: 1.125rem; font-weight: 500; color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.nav-list a:not(.btn)[aria-current="page"] { color: var(--accent); }
.nav-cta { margin-top: 1rem; }
.nav-cta .btn { width: 100%; min-height: 2.875rem; font-size: 1rem; }

@media (min-width: 64rem) {
  .header-inner { gap: 2rem; }
  .brand { margin-right: 0; }
  .site-nav {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: none; border: 0; box-shadow: none; padding: 0; margin-left: auto;
    transition: none;
  }
  .nav-list { flex-direction: row; align-items: center; gap: 0.25rem; }
  .nav-list a:not(.btn) {
    min-height: 2.25rem; padding: 0 0.75rem; border: 0; border-radius: 980px;
    font-size: 0.875rem; color: var(--text-2);
  }
  .nav-list a:not(.btn):hover { color: var(--text); background: var(--surface-2); }
  .nav-list a:not(.btn)[aria-current="page"] { color: var(--text); background: var(--surface-2); }
  .nav-cta { margin: 0 0 0 0.5rem; }
  .nav-cta .btn { width: auto; min-height: 2.25rem; font-size: 0.875rem; }
  .nav-toggle { display: none; }
}

/* ---------- 5. Sections ---------- */
.section { padding-block: var(--section-y); }
.section-tight { padding-top: clamp(1.5rem, 1rem + 2vw, 3rem); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section-head p { color: var(--text-2); font-size: 1.125rem; margin: 0; }
.section-more { margin: 2rem 0 0; }

.page-header { padding: clamp(2.5rem, 2rem + 3vw, 5rem) 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.page-header h1 { max-width: 20ch; }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: var(--fs-small); color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--border-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- 6. Hero ---------- */
.hero { padding: clamp(2.5rem, 1.5rem + 5vw, 6.5rem) 0 clamp(2.5rem, 2rem + 3vw, 5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { max-width: 18ch; }
h1, h2 { overflow-wrap: break-word; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }

.profile-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden; max-width: 24rem; width: 100%;
}
.profile-card-body { padding: 1.5rem; }
.profile-name { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; margin: 0; }
.profile-role { color: var(--text-2); margin: 0.15rem 0 1rem; }
.profile-facts { list-style: none; display: grid; gap: 0.6rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: 0.9375rem; color: var(--text-2); }
.profile-facts li { display: flex; gap: 0.6rem; align-items: center; }
.profile-facts .icon { color: var(--muted); width: 1.1rem; height: 1.1rem; }

.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface-2); }
.portrait-hero { aspect-ratio: 1 / 1; }
img.portrait { object-position: 50% 15%; }
.portrait-placeholder {
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--navy-900), var(--navy-800) 60%, var(--blue-800));
  color: rgba(255, 255, 255, 0.92);
}
.portrait-placeholder span { font-family: var(--font-display); font-size: clamp(2.5rem, 2rem + 3vw, 4rem); font-weight: 700; letter-spacing: -0.04em; }

.badge-available {
  display: inline-flex; align-items: center; gap: 0.5rem; margin: 0;
  font-size: var(--fs-small); font-weight: 600; color: var(--success);
}
.badge-available .dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
}

@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 4rem; }
  .profile-card { justify-self: end; }
}

/* ---------- 7. Stats band ---------- */
.stats { background: var(--band-bg); color: var(--band-text); padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stat dd {
  margin: 0 0 0.35rem; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.stat dt { color: var(--band-muted); font-size: 0.9375rem; line-height: 1.4; max-width: 18ch; }
@media (min-width: 56rem) { .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 8. Cards ---------- */
.card-grid { list-style: none; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) {
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--text-2); }
.card h3 { margin-top: 1rem; }
.card-plain h3 { margin-top: 0; }
.section-alt .card { background: var(--surface); }

/* Whole card clickable via the heading link (keeps one link per card for screen readers) */
.card-link { color: var(--text); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:has(.card-link):hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card:has(.card-link:focus-visible) { box-shadow: var(--focus); }
.card-link:focus-visible { box-shadow: none; }

.card-icon {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent);
}
.card-icon-lg { width: 3rem; height: 3rem; border-radius: 14px; }
.card-icon-lg .icon { width: 1.5rem; height: 1.5rem; }

.case-teaser { padding-bottom: 3.5rem; }
.case-meta { font-size: var(--fs-small); color: var(--muted); margin-bottom: 0.25rem; }
.case-teaser h3 { margin-top: 0.25rem; }
.card-arrow { position: absolute; left: 1.5rem; bottom: 1.25rem; color: var(--accent); }
.card-arrow .icon { transition: transform var(--dur) var(--ease-out); }
.card:hover .card-arrow .icon { transform: translateX(4px); }

.card-service h2 { margin-top: 1rem; }
.card-service .check-list { margin: 1.25rem 0; }
.card-note { font-size: 0.9375rem; padding: 0.875rem 1rem; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-2); }

/* ---------- 9. Lists, chips, tables ---------- */
.check-list { list-style: none; display: grid; gap: 0.6rem; }
.check-list li { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--text-2); }
.check-list .icon { color: var(--accent); width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips li {
  font-size: 0.8125rem; font-weight: 500; padding: 0.3rem 0.7rem;
  border-radius: 980px; background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--border);
}

.client-list {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; margin-top: 1rem;
  font-family: var(--font-display); font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 600; letter-spacing: -0.02em; color: var(--text-2);
}

.mini-list { list-style: none; display: grid; gap: 0.75rem; }
/* minimal: links inherit text colour, underline on hover */
.mini-list a { color: var(--text); text-decoration: none; }
.mini-list a:hover { color: var(--accent); text-decoration: underline; }
.mini-list li {
  display: flex; align-items: center; gap: 0.875rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.875rem 1rem;
}

.split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.stack-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.stack-table th, .stack-table td { text-align: left; vertical-align: top; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.stack-table tr:last-child th, .stack-table tr:last-child td { border-bottom: 0; }
.stack-table th { font-weight: 600; white-space: nowrap; width: 1%; color: var(--text); }
.stack-table td { color: var(--text-2); }
@media (max-width: 39.99rem) {
  .stack-table th, .stack-table td { display: block; width: auto; white-space: normal; }
  .stack-table th { padding-bottom: 0.25rem; border-bottom: 0; }
  .stack-table td { padding-top: 0; }
}

/* ---------- 10. FAQ ---------- */
.faq { border-top: 1px solid var(--border); margin-top: 1.5rem; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; min-height: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.125rem; }
.faq summary::after {
  content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin-right: 0.25rem;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px); transition: transform var(--dur) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { color: var(--text-2); padding-bottom: 1.25rem; margin: 0; max-width: 42rem; }

/* ---------- 11. CTA band ---------- */
.cta-band { background: var(--band-bg); color: var(--band-text); padding-block: clamp(3rem, 2.5rem + 3vw, 5rem); }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: var(--band-muted); margin: 0; max-width: 40rem; }
.cta-inner { display: grid; gap: 2rem; align-items: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 56rem) { .cta-inner { grid-template-columns: 1fr auto; } }

/* ---------- 12. About ---------- */
.about-grid { display: grid; gap: 2.5rem; align-items: start; }
.prose { max-width: 42rem; }
.prose p { color: var(--text-2); font-size: 1.125rem; }
.prose h2 { margin-top: 2rem; }
.facts-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.facts-card .h-small { padding: 1.5rem 1.5rem 0; margin: 0; }
.facts-card .portrait { aspect-ratio: 1 / 1; }
.facts { margin: 0; padding: 0.75rem 1.5rem 1.5rem; }
.facts div { display: grid; gap: 0.15rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 0.8125rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.facts-compact { padding: 0; }
.facts-compact div { grid-template-columns: 1fr auto; align-items: baseline; }
@media (min-width: 56rem) {
  .about-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 4rem; }
  .facts-card { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.steps { list-style: none; counter-reset: step; display: grid; gap: 1rem; }
.steps li {
  counter-increment: step; position: relative;
  padding: 1.5rem 1.5rem 1.5rem 4.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step); position: absolute; left: 1.5rem; top: 1.45rem;
  width: 1.85rem; height: 1.85rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin: 0; color: var(--text-2); }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.edu-grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 56rem) { .edu-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* ---------- 13. Services ---------- */
.toc { padding-bottom: 1rem; }
.toc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.toc a {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.5rem;
  padding: 0.4rem 1rem 0.4rem 0.75rem; border-radius: 980px;
  background: var(--surface-2); color: var(--text); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
}
.toc a:hover { background: var(--accent-soft); color: var(--accent); }
.toc .icon { width: 1.1rem; height: 1.1rem; color: var(--accent); }

.service-grid { display: grid; gap: 1.5rem; }
.service-head h2 { margin-top: 1.25rem; font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.125rem); }
.service-body > p { font-size: 1.125rem; color: var(--text-2); }
@media (min-width: 56rem) {
  .service-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 4rem; }
  .service-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

/* ---------- 14. Experience timeline ---------- */
.experience-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 64rem) {
  .experience-grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: 4rem; }
  .side-stack { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.timeline { list-style: none; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 0.3rem; top: 0.5rem; bottom: 0.5rem;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding: 0 0 2.5rem 2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: 0; top: 0.4rem;
  width: 0.75rem; height: 0.75rem; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.timeline-item:first-child::before, .timeline-item:nth-child(2)::before { background: var(--accent); }
.timeline-period { font-size: var(--fs-small); font-weight: 600; color: var(--accent); margin: 0 0 0.25rem; font-variant-numeric: tabular-nums; }
.timeline-item h3 { margin-bottom: 0.15rem; }
.timeline-org { color: var(--text-2); font-weight: 500; margin-bottom: 0.75rem; }
.timeline-type {
  display: inline-block; margin-left: 0.4rem; font-size: 0.75rem; font-weight: 500;
  padding: 0.1rem 0.55rem; border-radius: 980px; background: var(--surface-2); color: var(--muted); vertical-align: 0.1em;
}
.timeline-item ul { list-style: none; display: grid; gap: 0.5rem; }
.timeline-item ul li { position: relative; padding-left: 1.1rem; color: var(--text-2); }
.timeline-item ul li::before {
  content: ""; position: absolute; left: 0; top: 0.68em; width: 0.35rem; height: 0.35rem;
  border-radius: 50%; background: var(--border-strong);
}

.side-stack { display: grid; gap: 1rem; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.section-alt .side-card { background: var(--surface); }
.side-card p { margin-bottom: 0.25rem; }
.side-period { font-size: var(--fs-small); color: var(--muted); }

/* ---------- 15. Cases ---------- */
.case { display: grid; gap: 2rem; }
.case-number { font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; margin-bottom: 0.75rem; }
.case-head h2 { max-width: 24ch; font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.125rem); }
.case-facts { display: grid; gap: 0.75rem; margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.case-facts dt { font-size: 0.8125rem; color: var(--muted); }
.case-facts dd { margin: 0; font-weight: 500; }
.case-body { display: grid; gap: 1rem; }
.case-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.case-block h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.75rem; }
.case-block > p { margin: 0; color: var(--text-2); }
.case-result { background: var(--accent-soft); border-color: transparent; }
.case-result > ul:not(.chips) { list-style: none; display: grid; gap: 0.4rem; margin-bottom: 1.25rem; }
.case-result > ul:not(.chips) > li { font-weight: 600; color: var(--text); padding-left: 1.1rem; position: relative; }
.case-result > ul:not(.chips) > li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--accent); }
.case-result .chips li { background: var(--surface); }
@media (min-width: 56rem) {
  .case { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 4rem; }
  .case-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
  .case-facts { grid-template-columns: 1fr; }
}

/* ---------- 16. Contact form ---------- */
.contact-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 64rem) { .contact-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 3rem; } }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); }
.contact-form { display: grid; gap: 1.25rem; margin-top: 1rem; }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field label span { color: var(--danger); }
.field-hint { font-size: var(--fs-small); color: var(--muted); margin: -0.15rem 0 0.1rem; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem;
  font: inherit; font-size: 1rem; color: var(--text);   /* 16px prevents iOS zoom on focus */
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 12px;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 10rem; resize: vertical; line-height: 1.5; }
select {
  padding-right: 2.5rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 50%, calc(100% - 0.8rem) 50%;
  background-size: 0.35rem 0.35rem; background-repeat: no-repeat;
}
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: var(--fs-small); font-weight: 500; margin: 0; }
.field-error[hidden] { display: none; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin: 1rem 0; }
.alert p { margin: 0; }
.alert-title { font-weight: 700; }
.alert-success { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--text); }
.alert-success .icon { color: var(--success); margin-top: 0.15rem; }
.alert-error { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--text); border-left: 3px solid var(--danger); }

.contact-list { list-style: none; display: grid; gap: 1rem; margin: 1rem 0 1.5rem; }
.contact-list li { display: flex; gap: 0.875rem; align-items: flex-start; }
.contact-list li > .icon { color: var(--accent); margin-top: 0.2rem; }
.contact-list div { display: grid; }
.contact-list a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- 17. 404 ---------- */
.notfound { min-height: 50vh; display: grid; align-items: center; }

/* ---------- 18. Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 3.5rem; font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand p { color: var(--text-2); margin: 1rem 0; max-width: 22rem; }
.site-footer h2 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.25rem; }
.site-footer ul a { display: inline-flex; min-height: 2.25rem; align-items: center; color: var(--text-2); text-decoration: none; }
.site-footer ul a:hover { color: var(--accent); }
.footer-contact { font-style: normal; }
.footer-contact li { display: flex; align-items: center; gap: 0.6rem; color: var(--text-2); min-height: 2.25rem; }
.footer-contact .icon { color: var(--muted); width: 1.1rem; height: 1.1rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border); color: var(--muted); font-size: 0.8125rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }
.sep { margin: 0 0.4rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }

/* Statcounter no-JS pixel: loads, but takes no space */
div.statcounter { position: absolute; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 19. Scroll reveal (progressive: only elements below the fold) ---------- */
.reveal-pending { opacity: 0; transform: translateY(12px); }
.reveal-in {
  opacity: 1; transform: none;
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}

/* ---------- 20. Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal-pending { opacity: 1; transform: none; }
  .btn:active { transform: none; }
  .site-nav { transform: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --border: var(--slate-500); --muted: var(--slate-700); --text-2: var(--slate-900); }
  .site-header { background: var(--bg); backdrop-filter: none; border-bottom-color: var(--text); }
  .card, .side-card, .case-block, .form-card { border-width: 2px; }
}

@media (forced-colors: active) {
  .btn { border: 1px solid ButtonText; }
  .card-icon, .badge-available .dot { forced-color-adjust: auto; }
}

/* ---------- 21. Print ---------- */
@media print {
  .site-header, .nav-toggle, .cta-band, .skip-link, .toc, .hero-actions, .contact-form { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .section, .page-header, .hero { padding-block: 1rem; }
  .section-alt, .stats { background: none; color: #000; }
  .stat dt { color: #333; }
  a { color: #000; }
  .reveal-pending { opacity: 1; transform: none; }
}
