/* Layout concept: institutional editorial. A charcoal masthead and title band open every page, the red logo and deep-red accents carry the brand;
   content runs in a single 1120px column of alternating white / stone bands; type does the work. */
:root {
  --char-900: #1b1b1d;    /* header, footer */
  --char-800: #28282c;    /* title bands, closing bands */
  --accent: #b3121f;      /* deep brand red: buttons, rules, labels (6.9:1 on white) */
  --accent-hover: #8f0e18;
  --accent-tint: #f9e9ea; /* hover fill on light */
  --brand-red: #e60000;   /* logo red, graphics only */
  --stone: #f5f4f2;       /* alternating band */
  --paper: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #4d4d52;
  --line: #dcdcdf;
  --on-dark: #ffffff;
  --on-dark-soft: #c8c8cc;

  --font-display: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.125rem, 1.6rem + 2.6vw, 3.5rem);

  --wrap: 1120px;
  --band-pad: clamp(56px, 7vw, 96px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--paper); color: var(--ink); padding: 8px 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.3; }
p { margin: 0; max-width: 65ch; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); }
.eyebrow {
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 40px; height: 3px; background: currentColor; flex: none; }
.stack { display: grid; gap: 20px; align-content: start; }
.stack-lg { display: grid; gap: 40px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--char-900); color: var(--on-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-dark); flex: none; }
.brand img { width: 30px; height: auto; }
.site-header .nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand-red); }
.brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.01em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; text-decoration: none; font-size: 0.95rem; font-weight: 500;
  color: var(--on-dark-soft); border-radius: 2px; white-space: nowrap;
}
.nav-links a:hover { color: var(--on-dark); }
.nav-links a[aria-current="page"] { color: var(--on-dark); box-shadow: inset 0 -2px 0 var(--accent); }
.menu { display: none; }
@media (max-width: 1160px) {
  .nav-links, .nav-row > .btn { display: none; }
  .menu { display: block; position: relative; }
  .menu summary {
    list-style: none; cursor: pointer; padding: 10px 14px; border: 1px solid rgba(255,255,255,0.35);
    border-radius: 2px; font-weight: 600; font-size: 0.95rem;
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { background: rgba(255,255,255,0.08); }
  .menu-panel {
    position: absolute; right: 0; top: calc(100% + 10px); width: min(280px, calc(100vw - 32px));
    background: var(--char-900); border: 1px solid rgba(255,255,255,0.15); padding: 8px; display: grid; gap: 2px;
  }
  .menu-panel a { padding: 12px 14px; text-decoration: none; color: var(--on-dark); }
  .menu-panel a[aria-current="page"] { background: rgba(255,255,255,0.08); }
  .menu-panel .btn { margin-top: 8px; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; min-height: 48px; border-radius: 2px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--on-dark); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-light { background: var(--paper); color: var(--accent); }
.btn-light:hover { background: var(--accent-tint); }
.btn-ghost-light { border-color: rgba(255,255,255,0.7); color: var(--on-dark); background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); }
.btn-ghost { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-ghost:hover { background: var(--accent-tint); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.text-link:hover { color: var(--accent); }

/* ---------- Bands ---------- */
.band { padding-block: var(--band-pad); }
.band-white { background: var(--paper); }
.band-stone { background: var(--stone); }
.band-dark { background: var(--char-800); color: var(--on-dark); }
.band-dark .eyebrow { color: var(--on-dark-soft); }
.band-dark .eyebrow::before, .hero .eyebrow::before { background: var(--accent); }
.band-dark .lede, .band-dark p { color: var(--on-dark-soft); }
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--on-dark); }

.title-band { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px); }
.title-band .stack { gap: 18px; }
.title-band .lede { max-width: 60ch; }

/* Hero (Home, Services): photo with charcoal scrim */
.hero {
  position: relative; color: var(--on-dark); background: var(--char-900);
  background-size: cover; background-position: center;
  padding-block: clamp(88px, 12vw, 160px) clamp(72px, 9vw, 120px);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(22,22,24,0.92) 0%, rgba(22,22,24,0.78) 45%, rgba(22,22,24,0.35) 100%);
}
.hero .stack { gap: 24px; max-width: 760px; }
.hero h1 { font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4rem); }
.hero p { color: #ececee; font-size: var(--step-1); line-height: 1.55; max-width: 58ch; }
.hero .eyebrow { color: var(--on-dark-soft); }
@media (max-width: 640px) {
  .hero::before { background: linear-gradient(180deg, rgba(22,22,24,0.8) 0%, rgba(22,22,24,0.92) 100%); }
}

/* Closing call to action */
.closing { padding-block: clamp(64px, 8vw, 104px); }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.closing h2 { max-width: 24ch; }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 56px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.section-head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 760px; }

/* Practice area columns */
.area { border-top: 3px solid var(--accent); padding-top: 22px; display: grid; gap: 12px; align-content: start; }
.area p { color: var(--ink-soft); font-size: 1rem; }
.area .text-link { justify-self: start; margin-top: 4px; font-size: 0.95rem; }

/* How the work connects: real sequence */
.sequence { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; }
.sequence li { position: relative; padding: 28px 20px 0 0; border-top: 1px solid var(--line); counter-increment: step; display: grid; gap: 8px; align-content: start; }
.sequence li::before {
  content: counter(step); position: absolute; top: -15px; left: 0;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-dark);
  font-size: 0.85rem; font-weight: 700; display: grid; place-items: center;
}
.sequence strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.sequence span { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 900px) {
  .sequence { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sequence li { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 28px 32px; margin-left: 15px; }
  .sequence li::before { top: 0; left: -15px; }
  .sequence li:last-child { padding-bottom: 0; }
}

/* Portrait + text split */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.split-media.tall img { aspect-ratio: 3 / 4; object-position: center 12%; }
.split-media.wide img { aspect-ratio: 3 / 2; object-position: center; }
.caption { font-size: var(--step--1); color: var(--ink-soft); margin-top: 10px; }
@media (max-width: 820px) {
  .split, .split.reverse { grid-template-columns: minmax(0, 1fr); }
  .split.reverse .split-media { order: 0; }
  .split-media img { max-height: 520px; }
}

/* Credential list */
.credentials { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.credentials li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.credentials .deg { font-family: var(--font-display); font-weight: 600; color: var(--accent); }
.credentials .field { color: var(--ink-soft); }

/* Simple lists */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list li { position: relative; padding-left: 22px; }
.list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 2px; background: var(--accent); }
.list-label { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }

/* Services: practice rows */
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 64px; padding-block: 44px; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
.service:last-child { padding-bottom: 0; }
.service .num { font-family: var(--font-display); color: var(--accent); font-size: 1rem; font-weight: 600; }
.service h3, .service-title { font-size: var(--step-2); margin-top: 6px; }
.service p { color: var(--ink-soft); }
.service .service-desc { margin-top: 14px; }
.service .list-label { color: var(--ink-soft); }
@media (max-width: 820px) { .service { grid-template-columns: minmax(0, 1fr); } }

/* Experience */
.entries { display: grid; gap: 0; border-top: 1px solid var(--line); }
.entry { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.entry h3 { font-size: 1.15rem; }
.entry p { color: var(--ink-soft); }
.role-group { display: grid; gap: 14px; align-content: start; }
.role-group h3 { font-size: 1.2rem; padding-bottom: 10px; border-bottom: 2px solid var(--char-800); }
.role-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.role-group li { line-height: 1.5; }
.role-group li b { font-weight: 600; display: block; }
.role-group li span { color: var(--ink-soft); font-size: 0.95rem; }
.note { font-style: italic; color: var(--ink-soft); font-size: 0.98rem; }

.quote { margin: 0; display: grid; gap: 20px; max-width: 860px; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.875rem); line-height: 1.45; font-weight: 400; font-style: italic; }
.quote figcaption { font-size: 0.98rem; color: var(--on-dark-soft); }
.quote figcaption b { color: var(--on-dark); font-weight: 700; }

.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.logos li { background: var(--paper); border: 1px solid var(--line); display: grid; grid-template-rows: clamp(72px, 10vw, 96px) auto; justify-items: center; align-items: center; gap: 10px; padding: 18px 14px 14px; text-align: center; }
.logos li span { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.02em; }
.logos img { max-height: 72px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.82; transition: filter .2s, opacity .2s; }
.logos li:hover img { filter: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Research */
.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: clamp(28px, 4vw, 44px); background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.feature .meta { font-size: 0.95rem; color: var(--ink-soft); }
.tool { display: grid; gap: 14px; align-content: start; }
.tool h3 { font-size: 1.3rem; }
.tool .intro { color: var(--ink-soft); font-size: 0.98rem; }
.tool dl { margin: 0; display: grid; gap: 10px; }
.tool dt { font-weight: 700; color: var(--accent); }
.tool dd { margin: 0 0 4px; color: var(--ink-soft); font-size: 0.97rem; }
.flow { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink); display: flex; flex-wrap: wrap; gap: 6px 10px; }
.flow span:not(:last-child)::after { content: "→"; margin-left: 10px; color: var(--accent); }

/* Contact */
.contact-card { display: grid; gap: 22px; background: var(--paper); border: 1px solid var(--line); padding: clamp(28px, 4vw, 44px); }
.contact-lines { display: grid; gap: 14px; margin: 0; }
.contact-lines div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
.contact-lines dt { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.contact-lines dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.contact-lines a { text-decoration: none; border-bottom: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.steps li::before { content: counter(s); font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--on-dark-soft); }
.steps strong { display: block; color: var(--on-dark); font-size: 1.15rem; font-family: var(--font-display); font-weight: 600; margin-bottom: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--char-900); color: var(--on-dark-soft); padding-block: 56px 32px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer-grid h2 { font-family: var(--font-body); font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--on-dark); }
.footer-brand { display: grid; gap: 14px; }
.footer-brand .brand span { font-size: 1.35rem; }
.tagline { letter-spacing: 0.08em; }
.footer-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.875rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.contact-person { display: flex; gap: 18px; align-items: center; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact-person img { width: 96px; height: 120px; object-fit: cover; object-position: center 20%; flex: none; }
.contact-person p { margin: 0; color: var(--ink-soft); }
.contact-person strong { color: var(--ink); }

/* Revision additions */
.stack-sm { display: grid; gap: 10px; align-content: start; }
.service > .stack { gap: 28px; }
.related { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.related li { display: grid; gap: 2px; padding-left: 22px; position: relative; }
.related li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 2px; background: var(--accent); }
.related a { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.related a:hover { color: var(--accent); }
.related span { font-size: 0.92rem; color: var(--ink-soft); }
.services-note { margin-bottom: 44px; max-width: 70ch; }
.entries-2 { gap: 0 56px; }
.entries-2 .entry { border-bottom: 1px solid var(--line); }
.meta { font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); }
.meta-accent { color: var(--accent); }
.quote-source { display: inline-block; margin-top: 6px; font-size: 0.9rem; }
.prose { max-width: 760px; display: grid; gap: 18px; }
.prose h2 { font-size: var(--step-2); margin-top: 18px; }
.prose a { color: var(--accent); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--on-dark); }
.defs { margin: 0; display: grid; gap: 14px; }
.defs dt { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--accent); }
.defs dd { margin: 0; color: var(--ink-soft); }
.entry { align-content: start; }

/* Focus outline contrast on dark areas (WCAG 2.1 SC 1.4.11): white is about 14:1 on charcoal */
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .band-dark :focus-visible { outline-color: #ffffff; }
