/* Insight article: "When Private Equity Needs More Than a Board Member"
   case-study-2.php only — this page's sole stylesheet (see functions.php).
   Navbar, banner adjustment and footer blocks match styles/case-study.css. */

:root {
  --bg: #ffffff;
  --tint: #f2f5f8;
  --ink: #0a1a2a;
  --ink-2: #394654;
  --muted: #6a7682;
  --line: #dce1e6;
  --brand: #00467F;
  --brand-ink: #00467F;
  --accent: #49AEE0;
  --accent-soft: #e5f2fa;
  --land: #e3e8ed;
  --on-brand: #ffffff;
  /* Type follows homepage-v3 (home-updated.css), as in case-study.css:
     Inter for body copy, Montserrat for headings, eyebrows and numerals. */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1520; --tint: #111f2d; --ink: #e9eff5; --ink-2: #c2ccd6; --muted: #8e9cab; --line: #233344;
    --brand: #49AEE0; --brand-ink: #7cc6ea; --accent-soft: #12304a; --land: #1b2c3c; --on-brand: #0b1520;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--brand-ink); font-family: var(--sans); }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.3px; }
svg text { font-family: var(--sans); }
/* same width as homepage-v3's desktop .container (77rem, 2.5rem gutters) */
.container { width: 100%; max-width: 77rem; margin: 0 auto; padding: 0 2.5rem; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* ---------- Navbar (same design as homepage-v3) ----------
   Sits over the top of the banner and scrolls away with the page — it is
   not fixed, so it doesn't come back when scrolling up (only once you're
   back at the top). No scroll states or transitions on this page; the
   mobile menu button is handled by src/main.js. */
.navbar { position: absolute; top: 0; left: 0; width: 100%; z-index: 1000; background-color: transparent; }
.navbar ul { margin: 0; padding: 0; list-style: none; }
.navbar a { text-decoration: none; }
.navbar svg { display: block; max-width: 100%; height: auto; }
/* own width rules rather than .container (it carries no .container class
   here), kept at the same 77rem so the logo/menu line up with the page */
.navbar__wrapper { display: flex; align-items: center; width: 100%; max-width: 77rem; margin: 0 auto; padding: 1.45rem 2.5rem; }
.navbar__logo { max-width: 12rem; }
.navbar__logo--black { display: none; max-width: 12rem; }
.navbar__nav-wrapper { margin-left: auto; }
.navbar__nav { display: flex; column-gap: 3rem; }
.navbar__link { color: #fff; opacity: .7; font-family: "Montserrat", sans-serif; font-weight: 500; font-size: .8rem; line-height: 1.5; letter-spacing: .8px; }
.navbar__link:hover, .navbar__link.active { opacity: 1; }
.navbar__link.active { font-weight: 500; }
.navbar__hamburger-btn { display: none; width: 60px; height: 60px; padding: 0; border: 0; background: none; cursor: pointer; }
.hamburger_menu { display: block; }
.menu_close { display: none; }


@media (max-width: 1200px) {
  .navbar { padding: 1rem; }
  .navbar__nav { column-gap: 2rem; }
}
@media (max-width: 800px) {
  .navbar__nav-wrapper { position: relative; }
  .navbar__nav { position: absolute; right: 0; top: 60px; display: none; flex-direction: column; row-gap: 2rem; padding: 2rem; background: #fff; }
  .navbar__nav--open { display: flex; }
  /* the open menu is white, so links are dark in every state */
  .navbar__link { color: #373f45; }
  .navbar__hamburger-btn { display: block; }
}
@media (max-width: 576px) {
  .navbar { padding: 1rem 0; }
  .navbar__logo, .navbar__logo--black { max-width: 9rem; }
  .hamburger_menu, .menu_close { width: 40px; height: 40px; }
  .navbar__hamburger-btn { display: flex; justify-content: center; align-items: center; }
}


/* ---------- Photo banner + overlapping title card ---------- */
.banner { position: relative; height: 380px; background: #00467F; overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; opacity: .75; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,70,127,.15), rgba(0,40,75,.55)); }
.banner .tagcard { position: absolute; right: max(2.5rem, calc((100vw - 77rem) / 2 + 2.5rem)); top: 28px; z-index: 1; background: #fff; color: #0a1a2a; width: 240px; padding: 16px 18px; border-top: 4px solid #49AEE0; font-size: .8rem; line-height: 1.5; }
.banner .tagcard b { display: block; font-family: var(--display); font-size: .75rem; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: #00467F; margin-bottom: 6px; }
@media (max-width: 760px) { .banner { height: 220px; } .banner .tagcard { display: none; } }
/* The navbar (~100px) sits over the top of the banner: add its
   height so the visible photo area stays the same, and drop the tag card
   below the navbar so it doesn't cover the links. */
.banner { height: 480px; }
.banner .tagcard { top: 128px; }
@media (max-width: 760px) { .banner { height: 300px; } }

.titlecard { position: relative; z-index: 2; background: var(--bg); margin-top: -170px; max-width: 820px; padding: 34px 40px 28px 0; }
.titlecard::before { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 100vw; background: var(--bg); }
.kicker { font-family: var(--display); font-size: .8rem; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--brand-ink); display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 24px; height: 3px; background: var(--accent); }
.titlecard h1 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; letter-spacing: -1.5px; margin: 16px 0 18px; color: var(--ink); }
.dek { font-size: 1rem; line-height: 1.7; color: var(--ink-2); margin: 0; max-width: 64ch; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 24px; font-size: .875rem; color: var(--muted); }
.meta b { font-weight: 600; color: var(--ink); }
.share { margin-left: auto; display: flex; gap: 6px; }
.share a, .share button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--brand); color: var(--brand-ink); }
.share svg { width: 15px; height: 15px; }
@media (max-width: 760px) { .titlecard { margin-top: -60px; padding: 24px 16px 20px 0; } }

/* ---------- Body grid ---------- */
.body { display: grid; grid-template-columns: 15rem minmax(0, 47.5rem); gap: 5rem; padding-top: 40px; border-top: 1px solid var(--line); margin-top: 8px; }
.toc { position: sticky; top: 20px; align-self: start; font-size: .875rem; }
.toc h4 { font-size: .75rem; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.4; transition: color .2s, border-color .2s; }
.toc a:hover {
    color: var(--accent);
    /* border-left-color: var(--accent); */
    /* background: var(--accent); */
}
.toc a.active { font-weight: 600; }
.toc .cta-mini { display: block; margin-top: 22px; padding: 1rem 1rem .9rem; background: var(--brand); color: var(--on-brand); text-decoration: none; font-weight: 600; font-size: .75rem; line-height: 1.4; text-transform: uppercase; text-align: center; }
@media (max-width: 1080px) { .body { grid-template-columns: 13rem minmax(0, 1fr); gap: 3rem; } }
@media (max-width: 900px) { .body { grid-template-columns: minmax(0, 1fr); gap: 0; } .toc { display: none; } }

article { min-width: 0; }
article section { scroll-margin-top: 20px; }
article h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.3; letter-spacing: -.5px; margin: 64px 0 18px; color: var(--ink); }
article section:first-child h2 { margin-top: 0; }
article h2 .sec { display: block; font-size: .75rem; font-weight: 600; line-height: 1.5; letter-spacing: .8px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
article h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; letter-spacing: -.3px; margin: 0 0 8px; color: var(--ink); }
article p { font-size: .9rem; line-height: 1.7; color: var(--ink-2); }
.emph { font-size: 1.125rem; font-weight: 600; line-height: 1.6; color: var(--brand-ink); margin: 26px 0; }

/* ---------- Figures ---------- */
.fig { margin: 34px 0 40px; }
.fig-n { font-family: var(--display); font-size: .75rem; font-weight: 600; color: var(--brand-ink); letter-spacing: .5px; }
.fig-t { font-family: var(--display); font-size: 1.125rem; font-weight: 600; line-height: 1.3; letter-spacing: -.3px; color: var(--ink); margin: 4px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fig-s { font-size: .8rem; color: var(--muted); margin-top: 12px; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll-x > svg { display: block; width: 100%; min-width: 620px; height: auto; }
.f-brand { fill: var(--brand); } .s-brand { stroke: var(--brand); } .f-accent { fill: var(--accent); } .s-accent { stroke: var(--accent); }
.f-bg { fill: var(--bg); } .f-soft { fill: var(--accent-soft); } .f-tint { fill: var(--tint); } .s-line { stroke: var(--line); }
.t-ink { fill: var(--ink); } .t-ink2 { fill: var(--ink-2); } .t-muted { fill: var(--muted); } .t-brand { fill: var(--brand-ink); } .t-on { fill: var(--on-brand); }

/* Map */
.mapbox { position: relative; background: var(--tint); aspect-ratio: 16 / 10; }
#map { position: absolute; inset: 0; }
#map svg { width: 100%; height: 100%; display: block; }
#map .state { fill: var(--land); stroke: var(--tint); stroke-width: 1; }
#map .state.fl { fill: var(--accent); fill-opacity: .7; }
#map .state.ny { fill: var(--brand); fill-opacity: .25; }
#map .arc { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-dasharray: 7 6; }
#map .pin { stroke: var(--tint); stroke-width: 3; }
#map .lbl { font-size: 13px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: var(--tint); stroke-width: 4px; stroke-linejoin: round; }
#map .sub { font-size: 11.5px; font-weight: 500; fill: var(--ink-2); paint-order: stroke; stroke: var(--tint); stroke-width: 4px; stroke-linejoin: round; }
#map .sea { font-size: 10.5px; fill: var(--muted); letter-spacing: .3em; font-style: italic; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }

/* Insight grid (the five areas) */
.insights { list-style: none; margin: 8px 0 30px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 3px solid var(--brand); }
.insights li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); font-size: .9rem; line-height: 1.6; color: var(--ink); }
.insights li:nth-child(even) { padding-left: 18px; padding-right: 0; border-left: 1px solid var(--line); }
.insights li:last-child { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
.insights .ic { width: 44px; height: 44px; display: grid; place-items: center; background: var(--accent-soft); color: var(--brand-ink); }
.insights .ic svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .insights { grid-template-columns: 1fr; } .insights li:nth-child(even) { padding-left: 0; border-left: 0; } }

/* Key question */
.question { background: #00467F; color: #fff; padding: 30px 120px 30px 34px; overflow: hidden; margin: 30px 0 18px; position: relative; }
@media (prefers-color-scheme: dark) { .question { background: #06325a; } }
.question .k { font-family: var(--display); font-size: .75rem; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: #9fd6f1; margin-bottom: 10px; }
.question p { color: #fff; font-family: var(--display); font-size: clamp(1.125rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.3; letter-spacing: -.3px; margin: 0; }
.question::after { content: "?"; position: absolute; right: 30px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 110px; font-weight: 600; line-height: 1; color: #49AEE0; opacity: .35; }

/* Candidate background cards */
.profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 10px 0 30px; }
.profile { border: 1px solid var(--line); border-top: 4px solid var(--brand); padding: 20px 20px 8px; background: var(--bg); transition: border-color .2s; }
.profile:hover { border-color: var(--accent); }
.profile .ic { width: 42px; height: 42px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); margin-bottom: 14px; }
.profile .ic svg { width: 21px; height: 21px; }
.profile h3 { font-size: 1rem; }
.profile p { font-size: .875rem; line-height: 1.6; }
@media (max-width: 760px) { .profiles { grid-template-columns: 1fr; } }

/* Executive experience -> board value */
.bridge { display: grid; grid-template-columns: 1fr 56px 1fr; margin: 8px 0 22px; align-items: stretch; }
.bridge > div:not(.arrow) { padding: 22px 24px; }
.bridge .from { background: var(--tint); }
.bridge .to { background: #00467F; }
@media (prefers-color-scheme: dark) { .bridge .to { background: #06325a; } }
.bridge h4 { font-size: .75rem; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 10px; }
.bridge .from h4 { color: var(--brand-ink); }
.bridge .to h4 { color: #9fd6f1; }
.bridge p { margin: 0; font-size: .9rem; }
.bridge .to p { color: #fff; }
.bridge .arrow { display: grid; place-items: center; background: linear-gradient(90deg, var(--tint), #00467F); color: #49AEE0; }
.bridge .arrow svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: #fff; color: #00467F; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
@media (max-width: 640px) { .question { padding-right: 28px; } .question::after { display: none; } .bridge { grid-template-columns: 1fr; } .bridge .arrow { height: 44px; background: linear-gradient(180deg, var(--tint), #00467F); } .bridge .arrow svg { transform: rotate(90deg); } }

/* Approach: vertical step timeline */
.steps { list-style: none; margin: 10px 0 0; padding: 0; }
.steps > li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding-bottom: 22px; }
.steps > li:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: #00467f; }
/* round, solid markers as in case-study.css (numbers here, icons there) */
.steps .mk { width: 48px; height: 48px; display: grid; place-items: center; background: #00467f; color: white; border-radius: 50%; font-family: var(--display); font-weight: 600; font-size: .9rem; }
.steps > li:last-child .mk { background: var(--brand); color: var(--on-brand); }
.steps .lab { font-family: var(--display); font-size: .75rem; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--accent); margin: 2px 0 2px; }
.steps h3 { font-size: 1.25rem; margin-bottom: 8px; }
.steps p { font-size: .9rem; }
@media (max-width: 520px) { .steps > li { grid-template-columns: 40px 1fr; gap: 14px; } .steps .mk { width: 40px; height: 40px; } .steps > li:not(:last-child)::before { left: 19px; top: 40px; } }

/* Photo break */
.photo { margin: 36px 0; position: relative; aspect-ratio: 21 / 9; background: linear-gradient(135deg, #0a5b99, #002a4d); overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Circumstance -> board need matrix */
.matrix { margin: 10px 0 26px; border-top: 3px solid var(--brand); }
.matrix .hd, .matrix .row { display: grid; grid-template-columns: 1fr 1.25fr; }
.matrix .hd div { font-family: var(--display); font-size: .75rem; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); padding: 12px 16px 10px 0; }
.matrix .hd div + div { padding-left: 20px; }
.matrix .row { border-top: 1px solid var(--line); }
.matrix .row > div { padding: 16px 16px 16px 0; font-size: .9rem; line-height: 1.6; }
.matrix .row .c { font-weight: 600; color: var(--ink); display: flex; gap: 12px; align-items: flex-start; }
.matrix .row .c svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.matrix .row .n { padding-left: 20px; border-left: 3px solid var(--accent); color: var(--ink-2); }
@media (max-width: 620px) { .matrix .hd { display: none; } .matrix .row { grid-template-columns: 1fr; } .matrix .row .n { padding: 0 0 16px 14px; } .matrix .row > div.c { padding-bottom: 8px; } }

/* Leadership needs list */
.needs { list-style: none; margin: 8px 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.needs li { background: var(--tint); padding: 18px 18px 18px 20px; border-left: 4px solid var(--brand); font-size: .9rem; font-weight: 500; line-height: 1.6; color: var(--ink); }
@media (max-width: 600px) { .needs { grid-template-columns: 1fr; } }

.closing { background: var(--tint); border-left: 5px solid var(--accent); padding: 20px 24px; margin-top: 24px; }
.closing p { margin: 0; font-size: 1.125rem; font-weight: 500; line-height: 1.6; color: var(--ink); }

/* ---------- CTA ---------- */
.cta { background: #00467F; color: #fff; margin-top: 88px; }
@media (prefers-color-scheme: dark) { .cta { background: #06325a; } }
.cta .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: 52px; padding-bottom: 52px; }
.cta .k { font-family: var(--display); font-size: .75rem; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: #9fd6f1; margin-bottom: 10px; }
.cta h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 600; line-height: 1.3; letter-spacing: -.6px; color: #fff; }
.cta p { font-size: 1rem; line-height: 1.7; color: #d5e9f6; margin-bottom: 20px; }
/* same button type as homepage-v3's .roles__cta */
.btn { display: inline-block; background: #fff; color: #00467F; font-weight: 600; font-size: .8rem; text-transform: uppercase; text-decoration: none; padding: 1rem 2rem .9rem; border: 1px solid #fff; transition: background .2s, color .2s; }
.btn:hover { background: transparent; color: #fff; }
@media (max-width: 760px) { .cta .container { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Footer (same design as homepage-v3) ----------
   Markup comes from footer.php via get_footer(). Rules copied from
   home-updated.css, plus the homepage-wide rules the footer relies on
   (.row, list/link resets, its 77rem container) — all scoped under
   .footer so they don't touch the article, and so this page's own
   .container, link colour and paragraph margins don't reshape it. */
.footer { background: #373f45; padding: 2rem 0 1rem; color: #fff; }
.footer .container { max-width: 77rem; padding: 0 2.5rem; }
.footer .row { display: flex; justify-content: space-between; }
.footer ul { margin: 0; list-style: none; }
.footer a { color: #fff; text-decoration: none; }
.footer p { margin: 0; }
.footer__logo { width: 14rem; }
.footer__wrapper { align-items: center; padding: 2rem 0; }
.footer__link--group { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 1rem; }
.footer__link--group--mobile { display: none; }
.footer__link { padding-left: 2rem; color: #fff; font-size: 1rem; }
/* Main footer nav (not the copyright / legal row) follows .navbar__link. */
.footer__link--group:not(.footer__link--group--desktop) { column-gap: 3rem; }
.footer__link--group:not(.footer__link--group--desktop) .footer__link { padding-left: 0; opacity: .7; font-family: "Montserrat", sans-serif; font-weight: 500; font-size: .8rem; letter-spacing: .8px; transition: opacity .3s ease; }
.footer__link--group:not(.footer__link--group--desktop) .footer__link:hover { opacity: 1; }
.footer .p-0 { padding: 0; }
.social__icons { display: flex; }
.social__icon { margin-left: 1rem; padding: .5rem; border: 1px solid rgba(255, 255, 255, .25); }
.social__icon a { display: block; }
.social__icon svg { display: block; }
.social__icon:hover { background: #fff; }
.social__icon:hover path { fill: #39a8df; }
@media (max-width: 1200px) {
  .footer .row { flex-direction: column; row-gap: 2rem; align-items: center; }
  .footer__wrapper { padding: 1rem 0; }
  .footer__link--group, .social__icons { padding: 0; }
  .footer__link--group:not(.footer__link--group--desktop) { column-gap: 2rem; }
  .footer__link--group--desktop { display: none; }
  .footer__link--group--mobile { display: block; color: #fff; font-size: 1rem; text-align: center; }
  .footer__link--group--mobile a { font-size: 1rem; }
  .footer__link { font-size: .9rem; }
}
@media (max-width: 640px) { .footer .container { padding: 0 16px; } }

@media print { .share, .toc, .banner .tagcard { display: none; } .body { grid-template-columns: 1fr; } .banner, .question, .bridge .to, .cta { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
