/* ============================================================
   OBL Digital — design system
   Implemented from "OBL Digital Website.dc.html"
   Palette: deep green #14342B · ivy #3B6E58 · terracotta CTA #A6432E
   Type: IBM Plex Sans (body) · IBM Plex Mono (labels)
   Target: WCAG 2.2 AA — visible focus, 44px targets, no colour-only signals
   ============================================================ */

:root {
  /* Civic palette — deep green primary + terracotta CTA on warm off-white.
     Variable names kept from the earlier navy/teal theme so nothing else
     needs to change; only the values were re-themed per the design handoff. */
  --navy: #14342B;        /* Deep Green 900 — headings, footer, dark sections */
  --navy-700: #1F4A3C;    /* secondary dark surface / hover */
  --navy-2: #234238;      /* dark-band rule */
  --teal: #3B6E58;        /* Ivy accent — links, markers, quiet emphasis */
  --orange: #A6432E;      /* Terracotta CTA — primary buttons only */
  --orange-hover: #8A3626;
  --orange-active: #6E2B1E;

  --ink: #1F2A37;
  --muted: #4A5565;
  --muted-2: #6B7684;     /* control border, 4.67:1 */

  --line: #DDD8CB;        /* border / rule (decorative) */
  --line-2: #CDC6B5;      /* stronger border / divider */

  --white: #FFFFFF;
  --cream: #F4F2EC;       /* surface band — alternating sections */
  --teal-tint: #E4ECE6;  /* Sage tint — card & callout backgrounds */

  --amber-tint: #FEF3C7;
  --amber-ink: #6E2B1E;
  --amber-line: #A6432E;

  --error: #B42318;
  --error-tint: #FEF2F2;

  --on-navy: #D3E3D6;       /* dark-band body text */
  --on-navy-soft: #93AC9C;  /* dark-band muted text */
  --on-navy-strong: #E4ECE6;/* dark-band link */
  --gold: #F2C48B;          /* [VERIFY] marker on dark bands */

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  --page: #EFEDE6;

  --maxw: 1200px;
  --pad-x: clamp(16px, 5vw, 40px);

  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.05);
  --shadow-md: 0 1px 2px rgba(11, 37, 69, 0.06), 0 10px 28px rgba(11, 37, 69, 0.08);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
button { font-family: inherit; }
:target { scroll-margin-top: 92px; }

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

/* ---------- focus ---------- */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
/* On dark surfaces the navy ring would vanish — switch to a light ring */
.on-dark :focus-visible,
.footer :focus-visible,
.mobile-nav :focus-visible,
.cta-band :focus-visible { outline-color: var(--on-navy-strong); }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  background: var(--navy);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}
.skip-link:focus {
  transform: translateY(0);
  color: var(--white);
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--navy);
}

/* ---------- utilities ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow--orange { color: var(--orange); }
.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--ink);
  text-wrap: pretty;
}
.measure { max-width: 70ch; }
.mono { font-family: var(--font-mono); }

/* [VERIFY] markers preserved from the design — facts to confirm before publication */
.verify {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--amber-tint);
  border: 1px solid var(--amber-line);
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: var(--amber-ink);
  overflow-wrap: anywhere;
}
.on-dark .verify { background: transparent; border-color: transparent; color: var(--gold); padding: 0; }

/* ---------- headings ---------- */
/* Type scale (v2): H1 40→56 · H2 30→40 · H3 24→28, headings 700 with tight tracking */
.page-title, .hero-title {
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  text-wrap: balance;
}
.section-title {
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--navy);
  text-wrap: balance;
}
.h-lg {
  font-size: clamp(24px, 3vw, 28px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.h-md { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; color: var(--navy); }
.kicker {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker--teal { color: var(--teal); }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 9vw, 112px); }
.section--sm { padding-block: clamp(48px, 6vw, 72px); }
.section--tint { background: var(--cream); border-block: 1px solid var(--line); }
.section--tint-top { background: var(--cream); border-top: 1px solid var(--line); }
.section--navy { background: var(--navy); color: var(--white); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn--primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: var(--white); }
.btn--primary:active { background: var(--orange-active); border-color: var(--orange-active); }
/* Terracotta fill measures only 2.22:1 against Deep Green 900, short of the 3:1
   component threshold — add a white hairline whenever it sits on a dark band. */
.on-dark .btn--primary,
.cta-band .btn--primary,
.mobile-nav .btn--primary { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.on-dark .btn--outline, .cta-band .btn--outline { color: var(--white); border-color: var(--on-navy-strong); }
.on-dark .btn--outline:hover { background: var(--on-navy-strong); color: var(--navy); }
.btn--block { width: 100%; min-height: 52px; }
.btn[disabled], .btn[aria-disabled="true"] {
  background: #D8CFC4; color: var(--muted); border-color: #D8CFC4;
  cursor: not-allowed; transform: none;
}

/* ---------- badges ---------- */
.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.badge--delivered { background: var(--teal-tint); border: 1px solid var(--teal); color: var(--navy); }
.badge--product { background: var(--amber-tint); border: 1px solid var(--amber-line); color: var(--amber-ink); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--teal-tint);
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
}
.tag {
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
}
.tag--verify { border-color: var(--amber-line); background: var(--amber-tint); color: var(--amber-ink); }

/* ---------- cards ---------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card__media {
  height: 172px;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(135deg, #F3F0EB 0 12px, #E9E4DC 12px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__media--tall { height: 200px; }
.media-note {
  padding: 7px 12px;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__body--lg { padding: 28px; gap: 14px; }
.card__meta { font-size: 16px; font-weight: 500; color: var(--muted); }

.panel {
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.panel--tint { background: var(--cream); }

/* ---------- grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.cluster { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.stack { display: flex; flex-direction: column; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
}
.brand__dot { display: block; width: 11px; height: 11px; border-radius: var(--r-pill); background: var(--orange); flex: none; }
.brand:hover { color: var(--navy); }

.primary-nav { display: flex; align-items: center; gap: 2px; }
.primary-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.primary-nav a:hover { color: var(--navy); }
.primary-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.primary-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 8px;
  height: 2px; border-radius: 2px;
  background: var(--orange);
}
.header-actions { display: flex; align-items: center; gap: 20px; flex: none; }
.header-demo-link { font-size: 16px; font-weight: 500; color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
.header-demo-link:hover { color: var(--navy); }
.header-cta { flex: none; min-height: 48px; }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--muted-2);
  border-radius: var(--r-sm);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--navy); }

/* mobile overlay nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--navy);
  display: none;
  flex-direction: column;
}
.mobile-nav[data-open="true"] { display: flex; }
.mobile-nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 16px;
  border-bottom: 1px solid var(--navy-2);
}
.mobile-nav__bar .brand { color: var(--white); }
.mobile-nav__bar .brand span { color: var(--on-navy-strong); }
.mobile-nav__close {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--on-navy-strong);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
}
.mobile-nav__body {
  flex: 1;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-nav__links { display: flex; flex-direction: column; }
.mobile-nav__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 4px;
  border-bottom: 1px solid var(--navy-2);
  font-size: 22px;
  font-weight: 500;
  color: var(--on-navy-strong);
  text-decoration: none;
}
.mobile-nav__links a[aria-current="page"] { color: var(--white); font-weight: 600; }
.mobile-nav__links a .current { font-size: 15px; color: var(--teal); font-weight: 500; }
.mobile-nav__cta { margin-top: 32px; }
.mobile-nav__foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--navy-2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 17px;
}
.mobile-nav__foot a { color: var(--on-navy-strong); text-underline-offset: 3px; }
.mobile-nav__foot span { color: var(--on-navy); }

body.nav-open { overflow: hidden; }

/* ============================================================
   Hero + homepage sections
   ============================================================ */
.hero { padding-block: clamp(56px, 8vw, 96px); background: var(--white); }
/* single-column hero (imagery removed per design), text capped at 60ch */
.hero-copy { max-width: 60ch; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.figure {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: repeating-linear-gradient(135deg, #F3F0EB 0 12px, #E9E4DC 12px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- split hero (v2): copy left, deep-green credibility panel right ---------- */
.hero-split { display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: stretch; }
.hero-split__copy {
  padding: clamp(48px, 7vw, 104px) clamp(24px, 4vw, 56px) clamp(48px, 7vw, 104px) var(--pad-x);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-split__copy > * { max-width: 56ch; }
.hero-split__panel {
  padding: clamp(40px, 5vw, 56px) clamp(24px, 4vw, 48px);
  background: var(--navy); color: var(--on-navy);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-signals { margin-top: 8px; }
.hero-signals > div { padding: 22px 0; border-bottom: 1px solid var(--navy-2); }
.hero-signals > div:first-child { padding-top: 0; }
.hero-signals > div:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-signals dt { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: var(--white); }
.hero-signals dd { margin: 7px 0 0; font-size: 16px; line-height: 1.6; color: var(--on-navy); }

/* ---------- pillars: rule-topped columns (trust layer, context) ---------- */
.pillars { gap: 36px; }
.pillar { padding: 22px 0 0; border-top: 2px solid var(--teal); }
.pillar h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: var(--navy); }
.pillar p { margin-top: 11px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- product cards: demos treated as products ---------- */
.product { position: relative; }
.product .card__body { gap: 20px; }
.product__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.product__no { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.product__dl { margin: 0; display: flex; flex-direction: column; }
.product__dl > div { padding: 16px 0; border-top: 1px solid var(--line); }
.product__dl dt { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.product__dl dd { margin: 8px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink); }
.product .btn { margin-top: auto; align-self: flex-start; }
.status-pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; line-height: 1.3;
}
.status-pill--tool { background: var(--teal-tint); border: 1px solid var(--teal); color: var(--navy); }
.status-pill--demo { background: var(--amber-tint); border: 1px solid var(--amber-line); color: var(--amber-ink); }

/* ---------- work articles: coloured panel + detail column ---------- */
.work-article { display: grid; grid-template-columns: 0.9fr 1.1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.work-article--flip { grid-template-columns: 1.1fr 0.9fr; }
.work-article__panel { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.work-article__panel--navy { background: var(--navy); color: var(--on-navy); }
.work-article__panel--navy h2 { color: var(--white); }
.work-article__panel--tint { background: var(--cream); }
.work-article--flip .work-article__panel--tint { border-left: 1px solid var(--line); }
.work-article__panel p { font-size: 18px; line-height: 1.6; }
.work-article__panel--navy p { color: var(--on-navy); }
.work-article__panel .btn { margin-top: auto; align-self: flex-start; }
.work-article__detail { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; }
.work-article__detail > div { padding: 20px 0; border-top: 1px solid var(--line); }
.work-article__detail > div:first-child { padding-top: 0; border-top: 0; }
.work-article__detail h3 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.work-article__detail p { margin-top: 10px; max-width: 60ch; font-size: 17px; line-height: 1.6; color: var(--ink); }
.work-article__detail .cluster { margin-top: 12px; gap: 8px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.section-head .section-title { margin-bottom: 0; }

/* standards strip — de-carded: rule-separated rows */
.standards-list { gap: 32px; }
.standards-list li { padding: 20px 0 0; border-top: 1px solid var(--line); }
.standards-list li p:first-child { font-size: 18px; font-weight: 600; color: var(--navy); }
.standards-list li p + p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* process steps — de-carded: 2px ivy top rule, no box */
.steps { counter-reset: step; gap: 32px; }
.step {
  padding: 18px 0 0;
  border-top: 2px solid var(--teal);
}
.step__num { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; color: var(--teal); }
.step h3 { margin-top: 10px; font-size: 21px; font-weight: 600; color: var(--navy); }
.step p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* closing CTA band */
.cta-band { background: var(--navy); color: var(--white); padding-block: clamp(56px, 8vw, 96px); }
.cta-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.cta-band .section-title { color: var(--white); }
.cta-band p { color: var(--on-navy); }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

/* ============================================================
   Work + case studies (disclosure)
   ============================================================ */
.group-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--teal);
}
.group-head--product { border-bottom-color: var(--amber-line); }
.group-head .spacer { margin-left: auto; font-size: 15px; color: var(--muted); }

.disclosure { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--white); }
.disclosure[data-open="true"] { border-color: var(--teal); box-shadow: var(--shadow-md); }
.disclosure__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}
.disclosure[data-open="true"] .disclosure__summary { background: var(--teal-tint); border-bottom: 1px solid var(--teal); }
.disclosure__head { display: flex; flex-direction: column; gap: 12px; }
.disclosure__toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--navy);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.disclosure__toggle:hover { background: var(--navy); color: var(--white); }
.disclosure__toggle .chevron { font-size: 13px; transition: transform 0.15s ease; }
.disclosure__toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.disclosure__panel { padding: 40px 28px; }
.disclosure__panel[hidden] { display: none; }
.case-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 4vw, 56px); }
.case-body { display: flex; flex-direction: column; gap: 36px; max-width: 720px; }
.case-body h4 {
  font-size: 15px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal); margin: 0;
}
.case-body p { margin-top: 12px; font-size: 18px; line-height: 1.6; color: var(--ink); }
.case-steps { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.case-steps li { display: flex; gap: 14px; font-size: 18px; line-height: 1.6; color: var(--ink); }
.case-steps .n { flex: none; font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--teal); padding-top: 4px; }
.note {
  padding: 20px 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--r-sm);
  font-size: 16px;
  line-height: 1.6;
}
.note + .note { margin-top: 16px; }
.aside-card {
  align-self: flex-start;
  padding: 26px 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.aside-card dl { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.aside-card dt { font-size: 14px; font-weight: 600; color: var(--muted); }
.aside-card dd { margin: 5px 0 0; font-size: 16px; color: var(--ink); }

.card-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 16px;
  font-weight: 500;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* work filter */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.filter-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--muted-2);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.filter-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.empty-state {
  padding: 40px 24px;
  border: 1px dashed var(--muted-2);
  border-radius: var(--r-md);
  text-align: center;
}
.empty-state p:first-child { font-size: 17px; font-weight: 500; color: var(--navy); }
.empty-state p + p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ============================================================
   Services + About
   ============================================================ */
.svc-toc {
  padding: 22px 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.svc-toc h2 { margin-bottom: 12px; }
.svc-toc a { display: block; padding: 6px 0; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }

.svc { padding: 48px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
.svc__intro { max-width: 46ch; }
.svc__intro .section-title { margin-top: 10px; }
.svc__intro p { margin-top: 16px; font-size: 18px; line-height: 1.6; color: var(--ink); }
.svc__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-content: start; }
.fact { padding: 16px 0 0; border-top: 1px solid var(--line); }
.fact h3 { font-size: 15px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); margin: 0; }
.fact p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.fact--wide { grid-column: 1 / -1; }

.callout {
  padding: 18px 20px;
  border-radius: var(--r-sm);
  font-size: 16px;
  line-height: 1.6;
}
.callout--amber { background: var(--amber-tint); border: 1px solid var(--amber-line); }
.callout--teal { background: var(--teal-tint); border: 1px solid var(--teal); }

/* team cards — retained as boxes, now single column (portrait slot removed per design) */
.team-card { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.team-card .portrait {
  width: 100%; max-width: 200px; aspect-ratio: 4 / 5; height: auto;
  object-fit: cover; object-position: center 20%;
  border-radius: var(--r-sm); border: 1px solid var(--line); margin-bottom: 20px;
}
.team-card h3 { font-size: clamp(24px, 3vw, 28px); }
.team-card .role { margin-top: 8px; font-size: 18px; font-weight: 500; color: var(--teal); }
.team-card p { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.def-list { margin-top: 18px; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 6px 16px; font-size: 15px; }
.def-list dt { color: var(--muted); }
.def-list dd { margin: 0; min-width: 0; color: var(--ink); overflow-wrap: anywhere; }

.process-row {
  display: grid;
  grid-template-columns: 64px 1fr 1.2fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.process-row:last-child { border-bottom: 1px solid var(--line); }
.process-row .n { font-family: var(--font-mono); font-size: 21px; font-weight: 500; color: var(--teal); }
.process-row h3 { font-size: clamp(24px, 3vw, 28px); font-weight: 600; color: var(--navy); }
.process-row p { font-size: 18px; line-height: 1.6; color: var(--ink); }

/* de-carded: rule-separated rows (Services practices, About regulatory context, Sitemap) */
.reg-list.grid { gap: 32px; }
.reg-list li { padding: 18px 0 0; border-top: 1px solid var(--line); }
.reg-list h3 { font-size: 21px; font-weight: 600; color: var(--navy); }
.reg-list p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--ink); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }

/* ============================================================
   Contact form
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.form { margin-top: 40px; max-width: 720px; display: flex; flex-direction: column; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 16px; font-weight: 600; color: var(--navy); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field .hint { font-size: 15px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.input, .select, .textarea {
  width: 100%;
  padding: 0 16px;
  border: 1px solid var(--muted-2);
  border-radius: var(--r-md);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--ink);
}
.input, .select { height: 52px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--navy); border-width: 2px; padding: 0 15px; }
.textarea:focus { padding: 13px 15px; }
.textarea { padding: 14px 16px; line-height: 1.6; resize: vertical; min-height: 156px; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border: 2px solid var(--error);
}
.field-error {
  display: none;
  align-items: flex-start;
  gap: 8px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--error);
}
.field[data-invalid="true"] .field-error { display: flex; }
.form-submit-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form-note { max-width: 44ch; font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.error-summary {
  padding: 20px 22px;
  border: 2px solid var(--error);
  border-left: 6px solid var(--error);
  border-radius: var(--r-sm);
  background: var(--error-tint);
}
.error-summary h2 { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 600; color: var(--error); }
.error-summary ul { margin-top: 12px; padding-left: 22px; list-style: disc; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.55; }
.error-summary a { color: var(--error); text-decoration: underline; text-underline-offset: 3px; }
.success-message {
  padding: 24px 26px;
  border: 2px solid var(--teal);
  border-left: 6px solid var(--teal);
  border-radius: var(--r-sm);
  background: var(--teal-tint);
}
.success-message h2 { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 600; color: var(--navy); }
.success-message p { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--ink); }
[hidden] { display: none !important; }

.info-card { padding: 26px 28px; border-radius: var(--r-md); }
.info-card h2 { font-size: 21px; font-weight: 600; color: var(--navy); }
.info-card--teal { background: var(--teal-tint); border: 1px solid var(--teal); }
.info-card--cream { background: var(--cream); border: 1px solid var(--line); }
.info-card--plain { background: var(--white); border: 1px solid var(--line); }
.info-card--navy { background: var(--navy); border: 1px solid var(--navy); }
.info-card--navy h2 { color: var(--white); }
.info-card--navy p, .info-card--navy li { color: var(--on-navy); }
.info-card--navy ol { color: var(--on-navy); }
.info-card ol { margin-top: 14px; padding-left: 20px; list-style: decimal; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.info-card dl { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.info-card dt { font-weight: 600; color: var(--muted); }
.info-card dd { margin: 4px 0 0; }
.info-card p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--ink); }

/* ============================================================
   Accessibility statement
   ============================================================ */
.doc-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.doc-toc {
  position: sticky;
  top: 24px;
  padding: 22px 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.doc-toc h2 { margin-bottom: 12px; }
.doc-toc a { display: block; padding: 6px 0; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }
.doc-body { max-width: 720px; display: flex; flex-direction: column; gap: 44px; }
.doc-body h2 { font-size: clamp(24px, 3vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; color: var(--navy); }
.doc-body p { margin-top: 14px; font-size: 18px; line-height: 1.6; color: var(--ink); }
.doc-body .limit { padding: 18px 20px; background: var(--cream); border: 1px solid var(--line); border-left: 3px solid var(--amber-line); border-radius: var(--r-sm); }
.doc-body .limit p { margin: 0; font-size: 17px; }
.meta-dl { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 48px; font-size: 16px; }
.meta-dl > div { display: flex; flex-direction: column; }
.meta-dl dt { font-weight: 600; color: var(--muted); }
.meta-dl dd { margin: 4px 0 0; color: var(--ink); }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--navy); color: var(--on-navy); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; }
.footer .brand { color: var(--white); }
.footer .brand span { color: var(--on-navy-strong); }
.footer p { margin-top: 16px; max-width: 34ch; font-size: 16px; line-height: 1.6; color: var(--on-navy); }
.footer h2 { margin-bottom: 14px; font-size: 15px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); }
.footer nav a { display: block; padding: 7px 0; font-size: 16px; color: var(--on-navy-strong); text-underline-offset: 3px; }
.footer-facts { margin-top: 24px; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 6px 14px; font-size: 15px; line-height: 1.5; }
.footer-facts dt { color: var(--on-navy-soft); }
.footer-facts dd { margin: 0; min-width: 0; color: var(--white); overflow-wrap: anywhere; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.5; }
.footer-contact a { color: var(--on-navy-strong); }
.footer-contact span { color: var(--on-navy); }
.footer-reply { margin-top: 22px; padding: 14px 16px; border: 1px solid var(--navy-2); border-radius: var(--r-sm); font-size: 15px; line-height: 1.55; color: var(--on-navy); }
.footer-reply strong { color: var(--white); font-weight: 600; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--navy-2);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: 15px; color: var(--on-navy-soft); }
.footer-legal { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-legal a { font-size: 15px; color: var(--on-navy-strong); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .primary-nav, .header-cta, .header-demo-link { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid, .cta-grid, .split, .contact-grid, .doc-grid, .svc, .svc__facts { grid-template-columns: 1fr; }
  .hero-split { grid-template-columns: 1fr; }
  .work-article, .work-article--flip { grid-template-columns: 1fr; }
  .work-article--flip .work-article__panel { order: -1; }
  .work-article--flip .work-article__panel--tint { border-left: 0; border-bottom: 1px solid var(--line); }
  .pillars.grid--4 { grid-template-columns: 1fr 1fr; }
  .doc-toc { position: static; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--5 { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .process-row { grid-template-columns: 40px 1fr; }
  .process-row p { grid-column: 1 / -1; }
  .team-card { grid-template-columns: 1fr; }
  .team-card .figure { height: 200px; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; }
  .disclosure__summary { flex-direction: column; }
  .disclosure__toggle { align-self: flex-start; }
  .btn { width: 100%; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
}

/* ---------- scroll-in reveal (JS-gated so no-JS users see everything; motion-safe) ---------- */
.has-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.has-reveal .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .has-reveal .reveal, .has-reveal .reveal.is-in { opacity: 1; transform: none; transition: none; }
}
