/* ============================================================
   BIITS — Design System
   Theme: Symbiosis · Moss Green
   v1.0 — Built to extend
   ============================================================ */

/* ─── 1. DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Moss green palette — symbiosis theme */
  --moss-50:  #f3f6f1;
  --moss-100: #e3ebde;
  --moss-200: #c5d4bb;
  --moss-300: #9db28d;
  --moss-400: #6f8a5e;
  --moss-500: #4f6b3f;   /* primary accent */
  --moss-600: #3d5530;
  --moss-700: #2e4124;
  --moss-800: #1f2c18;
  --moss-900: #131a0f;

  /* Neutrals */
  --bg:        #f5f5f3;
  --surface:   #ffffff;
  --ink:       #111111;
  --ink-soft:  #5c5c5c;
  --ink-muted: #8a8a85;
  --line:      #e6e6e3;
  --line-soft: #efefec;

  /* Semantic */
  --primary:        var(--moss-500);
  --primary-hover:  var(--moss-600);
  --primary-soft:   var(--moss-100);
  --primary-text:   var(--moss-700);

  /* Radii */
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Spacing scale */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;

  /* Typography scale */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Layout */
  --container:    1280px;
  --container-sm: 980px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.08);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:  0.18s;
}

/* ─── 2. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol { list-style: none; }

/* ─── 3. TYPOGRAPHY ────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.display em {
  font-style: italic;
  color: var(--ink-soft);
  font-weight: 300;
}

.h-hero {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.h-section {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
}

.h-card {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.h-card-lg {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.lede {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--ink-soft);
}
.lede strong { color: var(--ink); font-weight: 500; }

.eyebrow {
  color: var(--moss-600);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── 4. LAYOUT ────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-7);
}
.container-sm {
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 var(--s-7);
}

.section {
  padding: var(--s-9) 0;
}
.section-tight { padding: var(--s-7) 0; }
.section-alt {
  background: var(--surface);
}

/* ─── 5. HEADER / NAV ──────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 245, 243, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--s-7);
  display: flex;
  align-items: center;
  gap: var(--s-7);
}

.logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.02em;
  color: var(--primary);
  text-decoration: none;
}

.platform-tag {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.platform-tag svg { width: 14px; height: 14px; }

.nav-list {
  display: flex;
  gap: var(--s-6);
  margin-left: auto;
  align-items: center;
}
.nav-list a {
  font-size: 14px;
  font-weight: 400;
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  transition: color var(--dur) var(--ease);
}
.nav-list a:hover { color: var(--primary); }
.nav-list a.active { color: var(--primary); font-weight: 500; }

.badge {
  background: var(--primary);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 11px;
  padding: 2px 7px;
  font-weight: 500;
}

/* Mobile menu toggle (hidden on desktop) */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  width: 22px; height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: all var(--dur) var(--ease);
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  width: 22px; height: 1.5px;
  background: var(--ink);
  left: 0;
  transition: all var(--dur) var(--ease);
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after  { top: 7px; }

.menu-toggle.open span { background: transparent; }
.menu-toggle.open span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.open span::after  { top: 0; transform: rotate(-45deg); }

/* ─── 6. BUTTONS ──────────────────────────────────────────── */
.btn-pill {
  border: 1px solid var(--ink);
  background: var(--ink);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  text-transform: lowercase;
  color: var(--bg);
  transition: all var(--dur) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.btn-pill:hover {
  background: var(--bg);
  color: var(--ink);
}

/* ─── 6b. LANGUAGE SWITCHER (home page) ──────────────────── */
.lang-switch {
  position: fixed;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: var(--bg);
  z-index: 50;
  font-size: 12px;
  font-weight: 500;
  transition: opacity var(--dur) var(--ease);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.lang-switch.dim { opacity: 0.7; }
.lang-switch:hover { opacity: 1; }
.lang-switch a {
  padding: 5px 12px;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 999px;
  transition: all var(--dur) var(--ease);
  letter-spacing: 0.04em;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active {
  background: var(--ink);
  color: var(--bg);
}
@media (max-width: 640px) {
  .lang-switch { top: 14px; right: 14px; font-size: 11px; }
  .lang-switch a { padding: 4px 10px; }
}

/* ─── 6c. INSIGHT PAGE: EDITORIAL ROWS & REFINED TABLES ──── */
.layer-row {
  display: flex;
  align-items: flex-start;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
}
.layer-row:last-of-type { border-bottom: 0; }
.layer-row .layer-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  color: var(--moss-500);
  min-width: 44px;
  flex-shrink: 0;
}
.layer-row .layer-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 4px;
}
.layer-row .layer-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.layer-row > div:last-child { flex: 1; }
@media (max-width: 640px) {
  .layer-row { gap: var(--s-4); padding: var(--s-4) 0; }
  .layer-row .layer-num { font-size: 26px; min-width: 36px; }
  .layer-row .layer-name { font-size: 16px; }
  .layer-row .layer-desc { font-size: 13px; }
}

/* Editorial table (used in insight detail pages) */
.itable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.itable thead th {
  text-align: left;
  padding: 10px 16px 10px 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}
.itable tbody td {
  padding: 16px 16px 16px 0;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.55;
}
.itable tbody tr:last-child td { border-bottom: 0; }
.itable tbody td:first-child {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
}
.itable tbody td:first-child b { font-weight: 400; }
.itable .lever {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--moss-600);
  background: var(--moss-50);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  letter-spacing: 0.02em;
}
@media (max-width: 640px) {
  .itable, .itable thead, .itable tbody, .itable tr, .itable td, .itable th { display: block; }
  .itable thead { display: none; }
  .itable tbody tr {
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--line);
  }
  .itable tbody tr:last-child { border-bottom: 0; }
  .itable tbody td {
    padding: 4px 0;
    border-bottom: 0;
  }
  .itable tbody td:first-child { padding-top: 0; }
}

.btn-dark {
  background: var(--ink);
  color: var(--bg);
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  transition: transform var(--dur) var(--ease);
}
.btn-dark:hover { transform: translateY(-1px); }

.btn-light {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  transition: border-color var(--dur) var(--ease);
}
.btn-light:hover { border-color: var(--ink); }

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  transition: background var(--dur) var(--ease);
}
.btn-primary:hover { background: var(--primary-hover); }

.cta-row {
  display: flex;
  gap: var(--s-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--s-8);
}

/* ─── 7. PILL / EYEBROW LABEL ─────────────────────────────── */
.section-label {
  text-align: center;
  margin-bottom: var(--s-5);
}
.section-label .pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--primary-soft);
  color: var(--primary-text);
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
}
.section-label .pill svg { width: 12px; height: 12px; }

/* ─── 8. CARDS ────────────────────────────────────────────── */
.three-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-8);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-7) var(--s-6);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.feature-card .icon {
  width: 32px; height: 32px;
  margin-bottom: var(--s-6);
  color: var(--ink);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-3);
}
.feature-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* Solutions grid w/ image headers */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
}
.sol-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.sol-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.sol-image {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--moss-200), var(--moss-400));
}
.sol-image.alt-1 {
  background: radial-gradient(circle at 30% 40%, var(--moss-300), var(--moss-600));
}
.sol-image.alt-2 {
  background: linear-gradient(160deg, var(--moss-100), var(--moss-300) 50%, var(--moss-500));
}
.sol-image.alt-3 {
  background: linear-gradient(45deg, var(--moss-400), var(--moss-700));
}
.sol-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.10), transparent 50%);
}
.sol-body {
  padding: var(--s-7) var(--s-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sol-body .icon {
  width: 28px; height: 28px;
  color: var(--primary);
  margin-bottom: var(--s-5);
}
.sol-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-4);
}
.sol-body p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: var(--s-5);
  flex: 1;
}

.link-arrow {
  color: var(--primary);
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  transition: gap var(--dur) var(--ease);
}
.link-arrow:hover { gap: var(--s-3); }

/* ─── 9. USE CASE / STATS BLOCK ───────────────────────────── */
.usecase {
  background: linear-gradient(180deg, var(--moss-50), var(--surface));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--s-8) var(--s-7);
  margin-top: var(--s-7);
}
.uc-eyebrow {
  color: var(--moss-600);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.uc-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 4.5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--s-3);
}
.uc-subtitle {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: var(--s-7);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: var(--s-7);
}
.stat {
  text-align: center;
  padding: 0 var(--s-6);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.stat .label {
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: var(--s-3);
}

.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-6) var(--s-6);
  display: flex;
  gap: var(--s-5);
  align-items: flex-start;
}
.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--moss-300), var(--moss-600));
  flex-shrink: 0;
}
.quote-body p {
  font-style: italic;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: var(--s-2);
}
.quote-body .who {
  color: var(--ink-soft);
  font-size: 14px;
  font-style: normal;
}
.uc-desc {
  margin-top: var(--s-7);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  max-width: 760px;
}
.related {
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.related-label {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: var(--s-4);
}
.tag {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-text);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  margin-right: var(--s-2);
  margin-bottom: var(--s-2);
}

/* ─── 10. SERVICES PAGE GRID ─────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-7);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: border-color var(--dur) var(--ease);
}
.service-card:hover { border-color: var(--moss-300); }
.service-card .num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 56px;
  color: var(--moss-300);
  line-height: 1;
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.service-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.service-card ul {
  margin-top: var(--s-2);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.service-card li {
  color: var(--ink-soft);
  font-size: 14px;
  padding-left: var(--s-4);
  position: relative;
}
.service-card li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--primary);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 8px;
}

/* ─── 11. FOOTER ─────────────────────────────────────────── */
.footer {
  background: var(--moss-900);
  color: var(--moss-100);
  padding: var(--s-9) 0 var(--s-6);
  margin-top: var(--s-9);
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-7);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-7);
}
.footer-brand .logo {
  color: var(--moss-200);
  margin-bottom: var(--s-4);
  display: inline-block;
}
.footer-brand p {
  color: var(--moss-300);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}
.footer-col h4 {
  color: var(--moss-200);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--s-3); }
.footer-col a {
  color: var(--moss-300);
  font-size: 14px;
  transition: color var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--moss-100); }
.footer-bottom {
  max-width: var(--container);
  margin: var(--s-8) auto 0;
  padding: var(--s-5) var(--s-7) 0;
  border-top: 1px solid var(--moss-800);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--moss-400);
}

/* ─── 12. PALETTE / UTILITIES ────────────────────────────── */
.palette {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: var(--s-6);
  border: 1px solid var(--line);
}
.swatch {
  aspect-ratio: 1;
  display: flex;
  align-items: flex-end;
  padding: var(--s-3);
  font-size: 11px;
  font-weight: 500;
}
.swatch.light { color: var(--ink); }
.swatch.dark  { color: white; }

.center { text-align: center; }
.muted  { color: var(--ink-soft); }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }

.footer-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: var(--s-8);
}

/* ─── 13. RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav { padding: 16px var(--s-5); }
  .container, .container-sm { padding: 0 var(--s-5); }
  .three-cards, .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6);
  }
}

@media (max-width: 768px) {
  .section { padding: var(--s-8) 0; }
  .section-tight { padding: var(--s-6) 0; }
  .container, .container-sm { padding: 0 var(--s-5); }

  /* Mobile nav */
  .platform-tag { display: none; }
  .menu-toggle  { display: flex; }
  .nav-list {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: var(--s-6) var(--s-5);
    gap: var(--s-5);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.3s var(--ease);
    margin-left: 0;
  }
  .nav-list.open { transform: translateY(0); }
  .nav-list a {
    font-size: 18px;
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-list .btn-pill {
    margin-top: var(--s-3);
    text-align: center;
    justify-content: center;
  }

  /* Grids collapse */
  .three-cards, .solutions-grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  /* Stats stack vertically with bottom borders */
  .stats { grid-template-columns: 1fr; }
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: var(--s-5) 0;
  }
  .stat:last-child { border-bottom: none; }

  /* Use case padding tighter */
  .usecase { padding: var(--s-6) var(--s-5); }

  /* Quote stacks */
  .quote { flex-direction: column; gap: var(--s-3); }

  /* Palette becomes 3-wide */
  .palette { grid-template-columns: repeat(3, 1fr); }

  /* Footer single column */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--s-3); text-align: center; }

  /* Service cards single column */
  .services-grid { gap: var(--s-4); }
  .service-card { padding: var(--s-5); }

  /* CTAs stack */
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row button { justify-content: center; }
}

@media (max-width: 480px) {
  .nav { padding: 14px var(--s-4); }
  .logo { font-size: 24px; }
  .container, .container-sm { padding: 0 var(--s-4); }
  .feature-card, .sol-body { padding: var(--s-5); }
  .usecase { padding: var(--s-5) var(--s-4); }
}

/* ─── 14. PRINT ──────────────────────────────────────────── */
@media print {
  .header, .footer, .menu-toggle, .cta-row { display: none; }
  .section { padding: var(--s-5) 0; page-break-inside: avoid; }
}

/* ============================================================
   BIITS — Service-detail compatibility layer
   Adds page-hero, crumbs, TOC, phases, FAQ, do-dont, inline-cta,
   service-pager, contact form, timeline. BIITS tokens used.
   ============================================================ */

/* Page hero (smaller than home hero, used for service/about/contact) */
.page-hero {
  position: relative;
  padding: var(--s-9) 0 var(--s-7);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.page-hero .container { position: relative; }
.page-hero .crumbs {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: var(--s-5);
}
.page-hero .crumbs a { color: var(--ink-soft); }
.page-hero .crumbs a:hover { color: var(--primary); }
.page-hero .crumbs .sep { color: var(--ink-muted); }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: var(--s-5);
  color: var(--ink);
}
.page-hero .promise {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* Detail grid: TOC + content */
.detail-grid { display: grid; gap: var(--s-7); padding: var(--s-9) 0; }
@media (min-width: 1024px) {
  .detail-grid { grid-template-columns: 220px 1fr; gap: var(--s-9); }
}
.detail-grid > .container, .detail-section .container { /* harmless */ }

.toc {
  position: sticky; top: 100px; align-self: start;
  font-size: 14px;
}
.toc h4 {
  font-family: var(--font-sans);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-muted); margin-bottom: var(--s-4); font-weight: 500;
}
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: var(--s-3); }
.toc a {
  color: var(--ink-soft);
  display: block;
  padding: 4px 0 4px var(--s-3);
  border-left: 2px solid transparent;
  transition: all var(--dur) var(--ease);
}
.toc a:hover { color: var(--ink); border-left-color: var(--line); }
.toc a.active { color: var(--ink); border-left-color: var(--primary); font-weight: 500; }

.detail-content { max-width: 70ch; }
.detail-content h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 2.5vw + 1rem, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: var(--s-7) 0 var(--s-4);
  color: var(--ink);
}
.detail-content h2:first-child { margin-top: 0; }
.detail-content h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.005em;
  margin: var(--s-6) 0 var(--s-3);
  color: var(--ink);
}
.detail-content p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: var(--s-4);
}
.detail-content p strong { color: var(--ink); font-weight: 500; }
.detail-content ul, .detail-content ol {
  margin-bottom: var(--s-5);
  padding-left: 0;
  list-style: none;
}
.detail-content li {
  position: relative;
  padding-left: var(--s-5);
  margin-bottom: var(--s-3);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.detail-content li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 1.5px;
  background: var(--primary);
}
.detail-content ol { counter-reset: step; }
.detail-content ol li { counter-increment: step; padding-left: 36px; }
.detail-content ol li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-sans);
  font-size: 12px;
  background: transparent;
  width: auto; height: auto;
  top: 4px; left: 0;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.detail-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 4px 0 4px var(--s-5);
  margin: var(--s-6) 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
}
.detail-content blockquote cite {
  display: block;
  margin-top: var(--s-3);
  font-family: var(--font-sans);
  font-size: 14px;
  font-style: normal;
  color: var(--ink-soft);
}

/* Phase cards (used in service detail "How it works") */
.phases {
  display: grid; gap: var(--s-4);
  grid-template-columns: 1fr;
  margin: var(--s-5) 0 var(--s-6);
}
@media (min-width: 768px) { .phases { grid-template-columns: repeat(2, 1fr); } }
.phase {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-5);
}
.phase .step {
  font-family: var(--font-sans);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--moss-600);
  margin-bottom: var(--s-2); font-weight: 600;
}
.phase h4 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 400;
  margin-bottom: var(--s-2);
  letter-spacing: -0.005em;
}
.phase p { font-size: 15px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* Do / Don't two-column */
.do-dont { display: grid; gap: var(--s-4); margin: var(--s-5) 0; }
@media (min-width: 768px) { .do-dont { grid-template-columns: 1fr 1fr; } }
.do-dont .col {
  border-radius: var(--radius);
  padding: var(--s-6);
  border: 1px solid var(--line);
}
.do-dont .col-do  { background: var(--moss-50); border-color: var(--moss-200); }
.do-dont .col-dont { background: #fdf2f2; border-color: #f5d4d4; }
.do-dont h4 {
  font-family: var(--font-sans);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: var(--s-4); font-weight: 600;
}
.do-dont .col-do h4   { color: var(--moss-700); }
.do-dont .col-dont h4 { color: #b91c1c; }
.do-dont ul { list-style: none; padding: 0; margin: 0; }
.do-dont li {
  font-size: 15px; color: var(--ink); margin-bottom: var(--s-2);
  padding-left: 22px; position: relative; line-height: 1.5;
}
.do-dont li::before { padding: 0; background: transparent; width: auto; height: auto; }
.do-dont .col-do li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--moss-600); font-weight: 600; }
.do-dont .col-dont li::before { content: '✕'; position: absolute; left: 0; top: 0; color: #b91c1c; font-weight: 600; }

/* FAQ accordion */
.faq { border-top: 1px solid var(--line); margin-top: var(--s-5); }
.faq details { border-bottom: 1px solid var(--line); padding: var(--s-4) 0; }
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.005em;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 20px; font-weight: 300;
  color: var(--ink-muted);
  transition: transform var(--dur) var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: '−'; color: var(--primary); }
.faq details p {
  margin: var(--s-3) 0 0;
  color: var(--ink-soft); font-size: 16px; line-height: 1.65;
  max-width: 65ch;
}

/* Inline CTA on detail pages */
.inline-cta {
  margin-top: var(--s-7);
  padding: var(--s-6);
  border-radius: var(--radius);
  background: var(--moss-50);
  border: 1px solid var(--moss-200);
  display: flex; align-items: center; gap: var(--s-5);
  flex-wrap: wrap;
}
.inline-cta p {
  margin: 0; flex: 1 1 280px;
  font-family: var(--font-display);
  font-size: 20px; line-height: 1.4;
  color: var(--ink); font-weight: 400;
  letter-spacing: -0.005em;
}

/* Prev/next service pager */
.service-pager {
  display: grid; gap: var(--s-4); grid-template-columns: 1fr;
  margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--line);
}
@media (min-width: 768px) { .service-pager { grid-template-columns: 1fr 1fr; } }
.service-pager a {
  display: block; padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.service-pager a:hover { border-color: var(--primary); transform: translateY(-2px); }
.service-pager .dir {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 600;
}
.service-pager h4 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 400;
  margin: var(--s-2) 0 0; letter-spacing: -0.005em;
}

/* Contact form */
.form-grid { display: grid; gap: var(--s-4); max-width: 600px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-sans);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); font-weight: 600;
}
.field label .req { color: var(--primary); margin-left: 4px; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--moss-100);
}

/* Timeline (about page) */
.timeline { position: relative; padding-left: var(--s-7); }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line);
}
.timeline-item { position: relative; padding-bottom: var(--s-6); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -42px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--line);
}
.timeline-item .yrs {
  font-family: var(--font-sans);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 6px; font-weight: 600;
}
.timeline-item h4 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 400;
  margin-bottom: 6px; letter-spacing: -0.005em;
}
.timeline-item p { font-size: 15px; color: var(--ink-soft); margin: 0; line-height: 1.6; max-width: 60ch; }

/* About portrait card (re-styled for moss palette) */
.about-split { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 1024px) { .about-split { grid-template-columns: 5fr 7fr; gap: var(--s-9); } }
.about-portrait {
  position: relative; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--moss-700), var(--moss-900));
  aspect-ratio: 4/5; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--s-7); color: var(--moss-100);
}
.about-portrait .initials {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 160px);
  font-weight: 300; line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--moss-200);
}
.about-portrait .accent-line { width: 64px; height: 3px; background: var(--moss-300); }
.about-portrait .who {
  font-family: var(--font-sans);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--moss-300);
  margin-top: var(--s-4); display: block;
}
.about-portrait .who .name {
  display: block; font-family: var(--font-display);
  font-size: 22px; letter-spacing: -0.01em; text-transform: none;
  color: var(--moss-100); margin-bottom: 4px; font-weight: 400;
}
.about-body p {
  font-size: 17px; line-height: 1.7; color: var(--ink-soft);
  margin-bottom: var(--s-4); max-width: 56ch;
}
.about-body p strong { color: var(--ink); font-weight: 500; }
.about-body .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-5); }
.about-body .tag {
  background: var(--moss-50); color: var(--moss-700);
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 500;
}

/* Filter chips on services overview */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-7); padding-bottom: var(--s-5); border-bottom: 1px solid var(--line); justify-content: center; }
.filter-chip {
  font-family: var(--font-sans);
  font-size: 13px; padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  cursor: pointer; background: var(--surface); color: var(--ink-soft);
  transition: all var(--dur) var(--ease);
}
.filter-chip:hover { border-color: var(--primary); color: var(--ink); }
.filter-chip.active { background: var(--primary); color: white; border-color: var(--primary); }
.filter-chip .count { opacity: 0.7; margin-left: 6px; font-size: 11px; }
.service-card.is-hidden { display: none; }

/* ============================================================
   ANCHOR JUMPS — clear sticky headers natively
   ============================================================ */
section[id], div[id], h1[id], h2[id], h3[id] { scroll-margin-top: 140px; }

/* ============================================================
   NAV ARROW HOVER (kept; topbar/lang-switcher CSS removed Nov 2026)
   ============================================================ */
.nav-list a .nav-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity 180ms cubic-bezier(0.4, 0, 0.2, 1), transform 180ms cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--moss-500);
}
.nav-list a:hover .nav-arrow { opacity: 1; transform: translate(0, 0); }
.nav-list a.active .nav-arrow { opacity: 1; transform: translate(0, 0); color: var(--moss-600); }

/* ─── Breadcrumbs ─────────────────────────────────────── */
.breadcrumbs {
  position: sticky;
  top: 0;
  z-index: 49;
  background: var(--surface, #fff);
  border-bottom: 1px solid var(--line, #e8eae3);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink-soft, #4a554a);
}
.breadcrumbs .crumbs-inner {
  max-width: var(--container, 1180px);
  margin: 0 auto;
  padding: 9px var(--s-7, 32px);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumbs .crumb {
  color: var(--ink-soft, #4a554a);
  text-decoration: none;
  transition: color .18s;
}
.breadcrumbs a.crumb:hover { color: var(--primary, #4f6b3f); }
.breadcrumbs .crumb-current {
  color: var(--ink, #202620);
  font-weight: 500;
}
.breadcrumbs .crumb-sep {
  color: var(--moss-300, #b8c2a8);
  font-size: 14px;
  line-height: 1;
  user-select: none;
}
@media (max-width: 640px) {
  .breadcrumbs .crumbs-inner { padding: 7px var(--s-4, 16px); font-size: 11.5px; }
}

/* ─── i18n label show/hide ─────────────────────────────── */
[data-show-lang]{display:none}
html[lang="en"] [data-show-lang="en"],
html[lang="nl"] [data-show-lang="nl"],
html[lang="fr"] [data-show-lang="fr"]{display:inline}
html[lang="en"] li [data-show-lang="en"],
html[lang="nl"] li [data-show-lang="nl"],
html[lang="fr"] li [data-show-lang="fr"]{display:inline}
