/* Baily Consult — shared stylesheet
   Tokens and measurements transcribed from the design source. */

:root {
  --ink: #202b2c;          /* ink / dark sections */
  --page: #f7f5f0;         /* page background */
  --card: #fffefa;         /* card surface */
  --band: #eae5dc;         /* warm band */
  --bronze: #806145;       /* accent / links */
  --bronze-light: #cfb89b; /* accent on dark */
  --rule: #d8d9d1;         /* rules / borders */
  --muted-dark: #c0cbc4;   /* muted text on dark */
  --text-2: #56615e;       /* secondary text */
  --rule-dark: #53605a;    /* rules on dark */
  --ink-hover: #2c3c3b;    /* dark hover */
  --on-dark: #e4e7e1;      /* light text on dark */
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
  --pad: clamp(20px, 4vw, 48px);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
:where(a) { color: var(--bronze); text-decoration: none; }
:where(a:hover) { color: var(--ink); }
button { font: inherit; }
img { max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .topbar :focus-visible { outline-color: var(--bronze-light); }
[id] { scroll-margin-top: 130px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--page); padding: 12px 18px; font-size: 13px; font-weight: 600; }
.skip:focus { left: 0; color: var(--page); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.pad-xl { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }
.pad-lg { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.pad-md { padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }

.on-dark { background: var(--ink); color: var(--page); }
.on-band { background: var(--band); }
.rule-top { border-top: 1px solid var(--rule); }

/* ---------- Shared type ---------- */
.eyebrow {
  margin: 0;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 11px; font-weight: 700; line-height: normal;
  letter-spacing: 0.19em; text-transform: uppercase; color: var(--bronze);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; flex: none; }
.on-dark .eyebrow { color: var(--bronze-light); }

.label {
  margin: 0;
  font-family: var(--sans); font-size: 10px; font-weight: 700; line-height: normal;
  letter-spacing: 0.19em; text-transform: uppercase; color: var(--bronze);
}
.label--ruled { padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.label--lg { font-size: 11px; padding-bottom: 12px; }

.display {
  margin: 18px 0 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 3.8vw, 52px); line-height: 1.06; letter-spacing: -0.05em;
}
.display--sm { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; }
.display em, .quote em, .cta-band h2 em { color: var(--bronze); }
.on-dark .display em { color: var(--bronze-light); }

.lede-side { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-2); max-width: 520px; text-wrap: pretty; }
.dark-copy { margin: 22px 0 0; font-size: 15px; line-height: 1.65; color: var(--muted-dark); max-width: 480px; }

/* ---------- Buttons and text links ---------- */
.btn {
  min-height: 48px; padding: 0 18px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 28px;
  font-size: 12px; font-weight: 600;
}
.btn--dark { background: var(--ink); color: var(--page); }
.btn--dark:hover { background: var(--ink-hover); }
.btn--light { background: var(--page); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--page); border: 1px solid var(--page); }
.btn--lg { min-height: 52px; padding: 0 22px; gap: 40px; font-size: 13px; }

.link-u {
  display: inline-flex; gap: 10px;
  border-bottom: 1px solid var(--rule); padding: 0 0 4px;
  font-size: 12px; font-weight: 600; color: var(--ink);
}
.link-u--bronze { color: var(--bronze); }

.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--page); border-bottom: 1px solid var(--rule); }
.topbar { background: var(--ink); color: var(--muted-dark); font-size: 11px; }
.topbar__in { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar__contact { display: flex; gap: 20px; }
.topbar a { color: inherit; }
.topbar a:hover { color: var(--page); }

.bar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.logo { display: flex; }
.logo img { width: 158px; height: auto; display: block; }

.nav { display: flex; align-items: stretch; gap: 28px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.nav__link {
  display: flex; gap: 6px; align-items: center;
  padding: 28px 0 26px; border-bottom: 2px solid transparent; color: var(--ink);
}
.nav__link.is-current { border-bottom-color: var(--bronze); }
.nav__caret { font-size: 10px; color: var(--bronze); }
.bar__cta { display: flex; }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px; cursor: pointer;
  background: none; border: 1px solid var(--ink); color: var(--ink);
  font-size: 12px; font-weight: 600;
}
.nav-toggle__icon { width: 14px; height: 8px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { height: 0; border-bottom: 0; }

/* Mega-menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--ink); }
.mega[hidden] { display: none; }
.mega__in { padding-top: 36px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.mega__row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--rule);
  font-size: 13px; color: var(--ink);
}
.mega__row:hover, .mega__dec:hover { color: var(--bronze); }
.mega__row span:last-child { color: var(--bronze); }
.mega__dec { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
.mega__dec-title { font-family: var(--serif); font-size: 22px; letter-spacing: -0.03em; }
.mega__dec-q { font-size: 12px; color: var(--text-2); }
.mega__card { display: flex; flex-direction: column; background: var(--ink); color: var(--page); }
.mega__card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.mega__card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.mega__card-body .label { color: var(--bronze-light); }
.mega__card-title { font-family: var(--serif); font-size: 20px; line-height: 1.25; }
.mega__card-title em { color: var(--bronze-light); }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: flex-end; background: var(--ink); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__wrap { position: relative; width: 100%; }
.hero__box { max-width: 720px; background: var(--ink); color: var(--page); padding: clamp(28px, 4vw, 52px); }
.hero h1 {
  margin: 20px 0 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -0.05em; text-wrap: balance;
}
.hero h1 em { color: var(--bronze-light); }
.hero__intro { margin: 18px 0 0; font-size: 16px; line-height: 1.6; color: var(--on-dark); max-width: 560px; text-wrap: pretty; }
.hero__ask { margin-top: 32px; color: var(--muted-dark); }

.hero-tabs { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule-dark); }
.hero-tab {
  min-height: 52px; padding: 0 16px; border: 0; border-right: 1px solid var(--rule-dark); cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  background: transparent; color: var(--page);
  font-size: 13px; font-weight: 600;
}
.hero-tab__n { font-family: var(--serif); font-weight: 400; font-size: 13px; color: var(--bronze-light); }
.hero-tab[aria-selected="true"] { background: var(--page); color: var(--ink); }
.hero-tab[aria-selected="true"] .hero-tab__n { color: var(--bronze); }
.hero-tab:focus-visible { outline-offset: -4px; }

.hero-panel { margin-top: 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hero-panel[hidden] { display: none; }
.hero-panel__text { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.hero-panel__q { font-family: var(--serif); font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; }
.hero-panel__lead { font-size: 13px; line-height: 1.6; color: var(--muted-dark); }
.hero-panel .btn { gap: 24px; }

/* Previous roles strip */
.roles { border-bottom: 1px solid var(--rule); background: var(--card); }
.roles__in { padding-top: 22px; padding-bottom: 22px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.roles__list { display: flex; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap; font-family: var(--serif); font-size: 19px; letter-spacing: -0.02em; color: var(--text-2); }

/* ---------- Service cards ---------- */
.intro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(24px, 5vw, 80px); align-items: end; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--page); border: 1px solid var(--rule); color: var(--ink); }
.card:hover { background: var(--card); }
.card__img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__meta { display: flex; justify-content: space-between; }
.card__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.2; letter-spacing: -0.03em; }
.card__short { font-size: 13px; line-height: 1.6; color: var(--text-2); }
.card__more { margin-top: auto; padding-top: 10px; font-size: 12px; font-weight: 600; color: var(--bronze); }

/* ---------- Home: connected section ---------- */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(32px, 6vw, 96px); align-items: center; }
.two-col--420 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.two-col--380 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.two-col--top { align-items: start; }
.tall-img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; }

.ccr { margin: 0; border-top: 1px solid var(--ink); }
.ccr > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ccr dt { padding-top: 4px; }
.ccr dd { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.35; }
.on-dark .ccr, .on-dark .ccr > div { border-color: var(--rule-dark); }
.on-dark .ccr dt { color: var(--bronze-light); }
.ccr--roomy > div { padding: 18px 0; }
.ccr--roomy dd { line-height: 1.4; }

/* ---------- Home: sectors ---------- */
.sector-cards { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.sector-card { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.sector-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sector-card__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 20px 22px; background: var(--ink); color: var(--page);
}
.sector-card__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: -0.03em; }
.sector-card__cap span { color: var(--bronze-light); }

/* ---------- Home: principal ---------- */
.portrait { aspect-ratio: 4 / 5; width: 100%; max-width: 480px; }
.portrait--lg { max-width: 520px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quote { margin: 22px 0 0; font-family: var(--serif); font-size: clamp(26px, 2.8vw, 38px); line-height: 1.2; letter-spacing: -0.04em; text-wrap: pretty; }
.byline { margin-top: 28px; display: flex; flex-direction: column; gap: 2px; }
.byline__name { font-family: var(--serif); font-size: 18px; }
.byline__role { font-size: 12px; color: var(--text-2); }

/* ---------- Insight teasers ---------- */
.teasers { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 32px; }
.teaser { display: flex; flex-direction: column; gap: 12px; padding: 18px 0 0; border-top: 1px solid var(--ink); color: var(--ink); }
.teaser:hover { color: var(--bronze); }
.teaser__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.25; letter-spacing: -0.025em; }
.teaser__excerpt { font-size: 13px; line-height: 1.6; color: var(--text-2); }

/* ---------- Sub-page hero ---------- */
.subhero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: stretch; }
.subhero__text { padding: 28px clamp(0px, 4vw, 64px) clamp(48px, 6vw, 88px) 0; display: flex; flex-direction: column; }
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--muted-dark); }
.crumbs a { color: var(--muted-dark); }
.crumbs a:hover { color: var(--page); }
.crumbs__sep { color: var(--rule-dark); margin-left: 6px; }
.crumbs [aria-current] { color: var(--page); }
.subhero__spacer { flex: 1; min-height: 48px; }
.subhero h1 {
  margin: 20px 0 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 4.6vw, 64px); line-height: 1.03; letter-spacing: -0.055em; text-wrap: balance;
}
.subhero h1 em { color: var(--bronze-light); }
.subhero__intro { margin: 24px 0 0; font-size: 16px; line-height: 1.65; color: var(--muted-dark); max-width: 540px; text-wrap: pretty; }
.subhero__img { min-height: 340px; position: relative; margin-right: calc(-1 * var(--pad)); }
.subhero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Services overview ---------- */
.stages { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border-top: 1px solid var(--ink); }
.stage { padding: 24px 24px 28px 0; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 12px; }
.stage__n { font-family: var(--serif); font-size: 13px; color: var(--bronze); }
.stage__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1; letter-spacing: -0.05em; }
.stage__q { font-family: var(--serif); font-size: 17px; line-height: 1.35; color: var(--text-2); }
.stage__list { margin-top: 8px; display: flex; flex-direction: column; }
.stage__list a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink); }
.stage__list a:hover { color: var(--bronze); }
.stage__list a span:last-child { color: var(--bronze); }
.stage .link-u { margin-top: 6px; align-self: flex-start; }
.section-gap { margin-top: clamp(64px, 8vw, 104px); }
.section-gap--md { margin-top: clamp(56px, 7vw, 96px); }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.mt-56 { margin-top: 56px; }

/* ---------- Service detail ---------- */
.svc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(32px, 5vw, 80px); align-items: start; }
.svc__main { grid-column: span 2; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.svc__lede { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.4; letter-spacing: -0.02em; max-width: 720px; text-wrap: pretty; }
.qs li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.qs__n { font-family: var(--serif); font-size: 14px; color: var(--bronze); padding-top: 3px; }
.qs__t { font-family: var(--serif); font-size: 20px; line-height: 1.35; letter-spacing: -0.015em; }
.receive { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); column-gap: 32px; }
.receive li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.5; }
.receive li span:last-child { color: var(--bronze); }

.svc__aside { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.aside-stage { background: var(--card); border: 1px solid var(--rule); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.aside-stage__title { font-family: var(--serif); font-size: 30px; letter-spacing: -0.04em; }
.aside-stage__q { font-size: 13px; line-height: 1.6; color: var(--text-2); }
.aside-stage .link-u { align-self: flex-start; }
.aside-cta { background: var(--ink); color: var(--page); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.aside-cta__title { font-family: var(--serif); font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; }
.aside-cta__title em { color: var(--bronze-light); }
.aside-cta .btn { display: flex; justify-content: space-between; gap: 16px; }

.others { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; }
.other { display: flex; flex-direction: column; gap: 8px; padding: 16px 0 0; border-top: 1px solid var(--ink); color: var(--ink); }
.other:hover { color: var(--bronze); }
.other__n { font-family: var(--serif); font-size: 13px; color: var(--bronze); }
.other__title { font-family: var(--serif); font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; }

/* ---------- Decision-stage pages ---------- */
.dec-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(24px, 5vw, 80px); align-items: start; }
.dec-lede { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; letter-spacing: -0.025em; text-wrap: pretty; }
.points { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.points li { background: var(--card); padding: 24px; display: flex; flex-direction: column; gap: 14px; min-height: 180px; }
.dot { width: 26px; height: 26px; border-radius: 50%; background: var(--bronze); color: var(--page); font-family: var(--serif); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.dot--lg { width: 30px; height: 30px; font-size: 14px; }
.points__t { font-family: var(--serif); font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; }
.wide-cards { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.wide-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); background: var(--page); border: 1px solid var(--rule); color: var(--ink); }
.wide-card:hover { background: var(--card); }
.wide-card img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; display: block; }
.wide-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.wide-card__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; letter-spacing: -0.03em; }
.wide-card__short { font-size: 13px; line-height: 1.6; color: var(--text-2); }
.wide-card__more { margin-top: auto; font-size: 12px; font-weight: 600; color: var(--bronze); }
.next-stage { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.next-stage a { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 36px 0; color: var(--ink); }
.next-stage a:hover { color: var(--bronze); }
.next-stage__text { display: flex; flex-direction: column; gap: 6px; }
.next-stage__title { font-family: var(--serif); font-size: 32px; letter-spacing: -0.045em; }
.next-stage__arrow { font-size: 22px; color: var(--bronze); }

/* ---------- Schemes (sectors) ---------- */
.sectors { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 96px); }
.sector { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 80px); align-items: center; }
.sector__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.sector--flip .sector__img { order: 2; }
.sector__n { font-family: var(--serif); font-size: 14px; color: var(--bronze); }
.sector h2 { margin: 10px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.06; letter-spacing: -0.05em; }
.sector__intro { margin: 18px 0 0; font-size: 15px; line-height: 1.65; color: var(--text-2); max-width: 480px; }
.sector .label { margin-top: 28px; }
.issues li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }

/* ---------- Approach ---------- */
.steps { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); border-top: 1px solid var(--ink); }
.steps li { padding: 24px 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.step__t { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -0.035em; }
.step__d { font-size: 14px; line-height: 1.6; color: var(--text-2); max-width: 260px; }
.diagram { width: 100%; height: auto; display: block; }
.ccr--spaced { margin-top: 32px; }
.ccr--home { margin-top: 36px; }
.on-dark .btn--ghost { margin-top: 32px; }

.gantt { background: var(--card); border: 1px solid var(--rule); padding: 28px; }
.gantt__head { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.gantt__rows { margin-top: 18px; display: grid; grid-template-columns: 90px minmax(0, 1fr); row-gap: 16px; column-gap: 14px; align-items: center; font-size: 12px; font-weight: 600; }
.gantt__track { position: relative; height: 16px; }
.gantt__track i { position: absolute; top: 0; bottom: 0; display: block; }
.g-base { border: 1px dashed var(--text-2); }
.g-rev { background: var(--ink); }
.g-div { background: var(--bronze); }
.g-sales { background: var(--band); border: 1px solid var(--rule); }
.gantt__foot { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11px; color: var(--text-2); }

/* ---------- About ---------- */
.about__name { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.8vw, 52px); letter-spacing: -0.05em; line-height: 1.05; }
.about__creds { margin-top: 6px; font-size: 13px; color: var(--text-2); }
.about__lede { margin: 28px 0 0; font-family: var(--serif); font-size: 21px; line-height: 1.45; letter-spacing: -0.015em; text-wrap: pretty; }
.about__body { margin: 18px 0 0; font-size: 15px; line-height: 1.7; color: var(--text-2); max-width: 560px; text-wrap: pretty; }
.about .label { margin-top: 40px; }
.role-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.role-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 20px; }
.quals li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.quals__name { font-family: var(--serif); font-size: 20px; }
.quals__body { font-size: 12px; color: var(--text-2); padding-top: 4px; }
.practice { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); border-top: 1px solid var(--ink); }
.practice li { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 0; border-left: 1px solid var(--rule); }
.practice li:first-child { padding-left: 0; border-left: 0; }
.practice li:last-child { padding-right: 0; }
.practice__n { font-family: var(--serif); font-size: 13px; color: var(--bronze); }
.practice__t { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -0.035em; }
.practice__d { font-size: 14px; line-height: 1.6; color: var(--text-2); }

/* ---------- Insights ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { min-height: 40px; padding: 0 16px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--page); }
.posts { margin-top: 40px; border-top: 1px solid var(--ink); }
.post[hidden] { display: none; }
.post a {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--rule); color: var(--ink);
}
.post a:hover { background: var(--card); }
.post img { width: 100%; max-width: 360px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.post__text { grid-column: span 2; max-width: 680px; display: flex; flex-direction: column; gap: 12px; }
.post__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -0.03em; }
.post__excerpt { font-size: 14px; line-height: 1.6; color: var(--text-2); }
.post__more { font-size: 12px; font-weight: 600; color: var(--bronze); }

/* ---------- Article and prose ---------- */
.article { max-width: 760px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--pad); }
.article p { margin: 0 0 24px; font-size: 17px; line-height: 1.75; color: var(--ink); text-wrap: pretty; }
.article__foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.article__foot .byline { margin-top: 0; }
.article__foot .byline__name { font-size: 17px; }

.prose h2 { margin: 48px 0 16px; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; letter-spacing: -0.03em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 24px; }
.prose li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.6; }
.prose li::before { content: ""; position: absolute; left: 0; top: 21px; width: 10px; height: 1px; background: var(--bronze); }
.prose a { border-bottom: 1px solid var(--rule); }
.prose .todo { background: var(--band); padding: 1px 6px; font-weight: 600; white-space: nowrap; }
.prose address { margin: 0 0 24px; font-style: normal; font-size: 17px; line-height: 1.75; }
.prose__meta { margin: 0 0 40px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); font-size: 12px; color: var(--text-2); }

.link-rows { margin-top: 24px; border-top: 1px solid var(--ink); max-width: 760px; }
.link-rows a { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 20px; color: var(--ink); }
.link-rows a:hover { color: var(--bronze); }
.link-rows a span:last-child { color: var(--bronze); }

/* ---------- Closing CTA and footer ---------- */
.cta-band { background: var(--band); border-top: 1px solid var(--rule); }
.cta-band__in { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.055em; }

.site-footer { background: var(--ink); color: var(--muted-dark); font-size: 13px; }
.site-footer__in { padding-top: clamp(56px, 7vw, 88px); padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px; }
.footer-brand { grid-column: span 2; max-width: 380px; display: flex; flex-direction: column; gap: 18px; }
.footer-brand img { width: 158px; height: auto; display: block; }
.footer-brand p { margin: 0; line-height: 1.6; }
.footer-contact { display: flex; flex-direction: column; gap: 4px; color: var(--page); font-style: normal; }
.footer-contact a { color: var(--page); }
.footer-contact a:hover { color: var(--bronze-light); }
.footer-contact span { color: var(--muted-dark); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .label { color: var(--bronze-light); padding-bottom: 6px; }
.footer-col a, .footer-legal a { color: var(--muted-dark); }
.footer-col a:hover, .footer-legal a:hover { color: var(--page); }
.footer-legal { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--rule-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11px; }
.footer-legal div { display: flex; gap: 20px; }

/* ---------- Responsive adjustments ----------
   Most of the layout reflows through auto-fit grids and clamp().
   The rules below cover the points where those grids collapse. */

@media (max-width: 1099px) {
  .mega__in { gap: 28px; }
}

/* Header collapses to a toggle */
@media (max-width: 899px) {
  [id] { scroll-margin-top: 110px; }
  .bar { min-height: 64px; gap: 0 24px; align-content: flex-start; }
  .logo { height: 64px; align-items: center; }
  .js .nav-toggle { display: flex; }
  .js .nav, .js .bar__cta { display: none; }
  .nav { width: 100%; flex-direction: column; gap: 0; order: 3; border-top: 1px solid var(--rule); font-size: 15px; }
  .nav__link { padding: 16px 0; border-bottom: 1px solid var(--rule); justify-content: space-between; }
  .nav__link.is-current { border-bottom-color: var(--rule); color: var(--bronze); }
  .nav__caret { display: none; }
  .bar__cta { width: 100%; order: 4; justify-content: space-between; margin: 16px 0 20px; }
  .js .site-header.is-open .nav, .js .site-header.is-open .bar__cta { display: flex; }
  .site-header.is-open { max-height: 100vh; overflow-y: auto; }
  .mega { display: none; }
}

/* Two-column sections become one column */
@media (max-width: 912px) {
  .subhero__text { padding-right: 0; }
  .subhero__img { margin-left: calc(-1 * var(--pad)); min-height: 0; aspect-ratio: 3 / 2; }
  .sector--flip .sector__img { order: 0; }
  .practice { grid-template-columns: 1fr; }
  .practice li, .practice li:first-child, .practice li:last-child { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .practice li:last-child { border-bottom: 0; padding-bottom: 0; }
  .steps li { padding-bottom: 8px; }
}

@media (max-width: 651px) {
  .stage { padding-right: 0; border-right: 0; }
  .stage + .stage { border-top: 1px solid var(--ink); }
}

@media (max-width: 735px) {
  .svc__main { grid-column: auto; }
  .svc__aside { position: static; }
}

@media (max-width: 677px) {
  .post__text { grid-column: auto; }
  .post img { max-width: none; }
  .topbar__tag { display: none; }
  .topbar__in { justify-content: flex-end; }
}

@media (max-width: 479px) {
  .footer-brand { grid-column: auto; }
  .hero-tab { padding: 0 10px; gap: 6px; font-size: 12px; }
  .hero__box { margin: 0 calc(-1 * var(--pad)); }
  .wide-card { grid-template-columns: 1fr; }
  .wide-card img { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
  .ccr > div { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .role-list { column-gap: 20px; }
  .role-list li { font-size: 18px; }
  .quals li { flex-direction: column; gap: 2px; }
  .gantt { padding: 20px; }
  .gantt__rows { grid-template-columns: 70px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header { position: static; }
  .mega, .nav-toggle, .cta-band { display: none; }
}
