/* ================================================================
   Executive Search Firm Template — shared stylesheet
   Design tokens documented in SITE-SPEC.md
   ================================================================ */
:root{
  --ink:#111111;          /* primary text */
  --white:#ffffff;
  --blue:#1054cc;         /* primary accent / links / CTAs */
  --blue-tint:#e5efff;    /* light blue section bg */
  --navy:#062152;         /* dark section bg */
  --orange:#fa3a02;       /* secondary accent, sparing use */
  --gray:#f5f5f5;         /* alt section bg */
  --serif:'Fraunces', Georgia, serif;   /* display face (orig: Canela) */
  --sans:'Inter', -apple-system, sans-serif;
  --max:1280px;
  --pad:24px;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:var(--sans);color:var(--ink);background:var(--white);line-height:1.6;font-size:16px}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--pad)}
section{padding:96px 0}
h1,h2,h3,.serif{font-family:var(--serif);font-weight:400;line-height:1.15}
h1{font-size:clamp(2.25rem,5.5vw,4.5rem);letter-spacing:-.01em}
h2{font-size:clamp(1.75rem,3.5vw,2.75rem);margin-bottom:24px}
h3{font-size:1.375rem;margin-bottom:8px}
.eyebrow{font-family:var(--sans);font-size:.8125rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--blue);margin-bottom:16px}
.btn{display:inline-block;padding:14px 32px;border-radius:999px;font-weight:600;font-size:.9375rem;transition:all .2s;border:1px solid transparent;cursor:pointer;font-family:var(--sans)}
.btn-primary{background:var(--blue);color:var(--white)}
.btn-primary:hover{background:var(--navy)}
.btn-outline{border-color:var(--ink);color:var(--ink)}
.btn-outline:hover{background:var(--ink);color:var(--white)}
.btn-white{border-color:var(--white);color:var(--white)}
.btn-white:hover{background:var(--white);color:var(--navy)}
.arrow-link{color:var(--blue);font-weight:600;font-size:.9375rem}
.arrow-link:after{content:" →";transition:margin .2s}
.arrow-link:hover:after{margin-left:4px}

/* ============ HEADER: fixed, hides on scroll down / reveals on scroll up ============ */
header{position:fixed;left:0;top:0;width:100%;z-index:100;background:var(--white);border-bottom:1px solid #e5e5e5}
header.head-hide{transform:translateY(-102%);opacity:0;pointer-events:none}
body:not(.has-video){padding-top:132px} /* fixed header height compensation on pages without full-bleed hero */
.head-bar{max-width:var(--max);margin:0 auto;padding:20px var(--pad) 26px;display:flex;justify-content:space-between;align-items:flex-end;gap:24px}
.logo{color:var(--ink)}
.logo-ph{width:200px;height:33px;border:1px dashed currentColor;border-radius:2px;display:flex;align-items:center;justify-content:center;font-size:.6875rem;letter-spacing:.08em;text-transform:uppercase;opacity:.8;white-space:nowrap}
.head-nav{display:flex;flex-direction:column;align-items:flex-end;gap:18px}
.utility-row{display:flex;gap:22px;align-items:center;font-size:.875rem}
.utility-row a{transition:color .2s}
.utility-row a:hover{color:var(--blue)}
.search-link svg{width:19px;height:19px;display:block}
.primary-row{display:flex;gap:28px;font-size:1.375rem;line-height:1.2}
.primary-row a{transition:color .2s}
.primary-row a:hover{color:var(--blue)}
/* animated hamburger: two full lines + half-width middle, morphs to X */
.nav-toggle{display:none;flex-direction:column;justify-content:space-between;align-items:flex-end;width:26px;height:20px;background:none;border:0;cursor:pointer;padding:0;color:var(--ink);z-index:120}
.nav-toggle span{display:block;height:2px;width:100%;background:currentColor;transition:transform .3s ease,opacity .3s ease}
.nav-toggle span:nth-child(2){width:50%}
body.nav-open .nav-toggle span:nth-child(1){transform:translateY(-1px) rotate(45deg);transform-origin:top left}
body.nav-open .nav-toggle span:nth-child(2){opacity:0}
body.nav-open .nav-toggle span:nth-child(3){transform:translateY(1px) rotate(-45deg);transform-origin:bottom left}
/* ============ MEGA MENUS (hover panels for Services / Expertise / Offices) ============ */
.mega{position:absolute;left:0;right:0;top:100%;background:var(--navy);color:var(--white);opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .25s ease,transform .25s ease,visibility .25s;padding:8px 0 56px}
.mega.open{opacity:1;visibility:visible;transform:none}
header.mm-on{background:var(--navy);border-color:transparent;box-shadow:none}
header.mm-on .logo,header.mm-on .utility-row a,header.mm-on .primary-row a,header.mm-on .nav-toggle{color:var(--white)}
.primary-row a.active,header.mm-on .primary-row a:hover{text-decoration:underline;text-underline-offset:8px;text-decoration-thickness:1px}
.mm-inner{display:grid;grid-template-columns:340px 1fr;gap:48px;border-top:1px solid rgba(255,255,255,.25);padding-top:40px}
.mm-inner.mm-two-col{grid-template-columns:1fr 1fr}
.mm-links{display:flex;flex-direction:column;align-items:flex-start;border-right:1px solid rgba(255,255,255,.25);padding-right:48px}
.mm-inner .mm-links:last-child,.mm-two-col .mm-links:last-child{border-right:0}
.mm-label{font-size:.875rem;color:rgba(255,255,255,.55);margin-bottom:22px}
.mm-links a{font-size:1.25rem;padding:9px 0;transition:color .2s}
.mm-links a:hover{color:#8fb4ff}
.mm-features{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:stretch}
.mm-card{position:relative;min-height:280px;display:flex;flex-direction:column;justify-content:flex-end;padding:24px;background:linear-gradient(160deg,#0a2d6e,#123a8a);border:1px dashed rgba(255,255,255,.4);overflow:hidden;transition:border-color .25s}
.mm-card:hover{border-color:rgba(255,255,255,.9)}
.mm-card-wide{grid-column:1/-1}
.mm-pills{position:absolute;top:20px;left:20px;display:flex;gap:8px;flex-wrap:wrap}
.mm-pill{font-size:.75rem;letter-spacing:.04em;padding:6px 14px;border-radius:999px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.35)}
.mm-ph-note{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.35)}
.mm-card-title{position:relative;font-family:var(--serif);font-size:1.375rem;line-height:1.25;max-width:340px}
.mm-office{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.mm-office-label{font-size:.8125rem;color:rgba(255,255,255,.7)}
.mm-office-city{font-family:var(--serif);font-size:2.25rem;line-height:1.1;margin-bottom:10px}
.mm-office-btn{font-size:.875rem;padding:11px 24px}

@media(max-width:960px){
  .mega{display:none}
  body:not(.has-video){padding-top:88px}
  .head-bar{align-items:center;padding:20px var(--pad)}
  .nav-toggle{display:flex}
  .head-nav{position:fixed;inset:0;background:var(--navy);flex-direction:column;align-items:flex-start;justify-content:center;gap:48px;padding:96px 32px 48px;opacity:0;visibility:hidden;transition:opacity .35s ease,visibility .35s}
  body.nav-open .head-nav{opacity:1;visibility:visible}
  body.nav-open .nav-toggle{color:var(--white)}
  .head-nav .primary-row{flex-direction:column;gap:24px;font-size:2rem;order:1}
  .head-nav .utility-row{flex-wrap:wrap;order:2}
  .head-nav a{color:var(--white)}
  body.nav-open{overflow:hidden}
}

/* ============ HOMEPAGE HERO (fixed full-screen video behind page) ============
   Mechanic: the <video> and its dark overlay are position:fixed at negative
   z-index. The transparent hero section shows them; every later section has a
   solid background, so content scrolls OVER the pinned video until it's covered. */
.hero-video{position:fixed;inset:0;width:100vw;height:100vh;object-fit:cover;z-index:-2}
.video-overlay{position:fixed;inset:0;height:100vh;background:linear-gradient(180deg,rgba(6,33,82,.5) 0%,rgba(6,33,82,.75) 100%);z-index:-1}
body.has-video{background:transparent}
.services,.insights{background:var(--white)} /* explicit bg so sections cover the fixed video */
.hero{background:linear-gradient(115deg,var(--navy) 0%,#0a3a8f 70%,var(--blue) 100%);color:var(--white);padding:140px 0 160px;position:relative;overflow:hidden}
body.has-video .hero{background:none;min-height:100vh;display:flex;align-items:center;padding:0}
.hero .wrap{max-width:900px}
.hero h1{margin-bottom:32px}
.hero p{font-size:1.125rem;max-width:560px;margin-bottom:40px;opacity:.85}
.hero-orb{position:absolute;right:-120px;bottom:-160px;width:480px;height:480px;border-radius:50%;background:radial-gradient(circle,rgba(250,58,2,.35),transparent 70%)}

/* Transparent light header over the video, solid after scroll */
header{transition:background .3s ease,border-color .3s ease,box-shadow .3s ease,transform .35s ease,opacity .35s ease}
header.scrolled{box-shadow:0 2px 16px rgba(0,0,0,.06)}
body.has-video header:not(.scrolled){background:transparent;border-color:transparent}
body.has-video header:not(.scrolled) .logo,
body.has-video header:not(.scrolled) .utility-row a,
body.has-video header:not(.scrolled) .primary-row a,
body.has-video header:not(.scrolled) .nav-toggle{color:var(--white)}
body.has-video header:not(.scrolled) .utility-row a:hover,
body.has-video header:not(.scrolled) .primary-row a:hover{color:#8fb4ff}

/* ============ SCROLL REVEALS (added by main.js) ============ */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}}

/* ============ INNER-PAGE HERO (smaller, breadcrumbed) ============ */
.page-hero{background:var(--navy);color:var(--white);padding:80px 0}
.page-hero h1{font-size:clamp(2rem,4.5vw,3.5rem)}
.page-hero p{max-width:640px;margin-top:20px;opacity:.85;font-size:1.0625rem}
.breadcrumb{font-size:.8125rem;margin-bottom:24px;opacity:.7}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb span{margin:0 8px}

/* ============ SIBLING NAV (links to sister pages, under hero) ============ */
.sibling-nav{background:var(--gray);border-bottom:1px solid #e5e5e5}
.sibling-nav .wrap{display:flex;gap:8px;overflow-x:auto;padding-top:16px;padding-bottom:16px}
.sibling-nav a{white-space:nowrap;padding:8px 20px;border-radius:999px;border:1px solid #ccc;font-size:.875rem;font-weight:500}
.sibling-nav a:hover{border-color:var(--blue);color:var(--blue)}
.sibling-nav a.active{background:var(--ink);color:var(--white);border-color:var(--ink)}

/* ============ Q&A STRIP (transparent over video; separated square cards) ============ */
.qa{background:transparent;padding:64px 0 160px}
body.has-video .qa .eyebrow{color:var(--white)}
.qa-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:24px}
.qa-list a{background:var(--white);padding:24px;display:flex;flex-direction:column;min-height:240px;transition:background .3s,color .3s}
@media(min-width:960px){.qa-list a{aspect-ratio:1}}
.qa-cat{font-family:var(--sans);font-size:.75rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--blue);margin-bottom:12px;transition:color .3s}
.qa-q{font-family:var(--serif);font-size:1.125rem;line-height:1.3}
.qa-arrow{margin-top:auto;width:40px;height:40px;border:1px solid var(--white);border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background .3s,border-color .3s,color .3s}
.qa-arrow svg{width:20px;height:20px}
.qa .btn{display:block;width:fit-content;margin:40px auto 0}
.qa-list a:hover{background:var(--blue);color:var(--white)}
.qa-list a:hover .qa-cat{color:var(--white)}
.qa-list a:hover .qa-arrow{background:var(--white);border-color:var(--white);color:var(--blue)}

/* ============ FIRM INTRO + STATS BAND ============ */
.intro{background:var(--white)}
.intro .cols{display:grid;grid-template-columns:1.1fr 1fr;gap:64px;align-items:start}
.intro h2{font-size:clamp(2rem,3.5vw,3rem);max-width:480px;margin-bottom:0}
.intro .lead{font-size:1.0625rem;color:#222;line-height:1.8}
.stats-band{border:1px solid #e5e5e5;margin-top:88px;padding:72px 56px;display:grid;grid-template-columns:repeat(3,1fr);gap:48px}
.stat-big b{font-family:var(--serif);font-weight:400;font-size:clamp(2.75rem,4.5vw,4.25rem);color:var(--blue);display:block;margin-bottom:20px;line-height:1}
.stat-big sup{font-size:.45em;vertical-align:.55em}
.stat-big span{color:var(--blue);font-size:.9375rem;line-height:1.7;display:block;max-width:300px}
@media(max-width:860px){.intro .cols,.stats-band{grid-template-columns:1fr}.stats-band{padding:48px 32px;gap:40px}}

/* ============ CARD GRIDS ============ */
.services .grid,.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px;margin:48px 0}
.card{border:1px solid #e5e5e5;padding:40px 32px;transition:all .25s;background:var(--white)}
.card:hover{border-color:var(--blue);box-shadow:0 12px 32px rgba(0,0,0,.08);transform:translateY(-4px)}
.card .num{font-family:var(--serif);font-size:.875rem;color:var(--orange);display:block;margin-bottom:20px}
.card p{font-size:.9375rem;color:#555;margin:12px 0 20px}

/* ============ STATS / GLOBAL PRESENCE ============ */
.global{background:var(--navy);color:var(--white)}
.global .cols{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-top:48px}
.stat b{display:block;font-family:var(--serif);font-size:3rem;font-weight:400;color:var(--white)}
.stat span{font-size:.875rem;opacity:.7}
.map-ph{aspect-ratio:4/3;background:radial-gradient(circle at 35% 40%,rgba(16,84,204,.6),transparent 45%),radial-gradient(circle at 70% 55%,rgba(250,58,2,.35),transparent 40%),#0a2d6e;border-radius:8px;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.5);font-size:.875rem}
@media(max-width:860px){.global .cols{grid-template-columns:1fr}}

/* ============ PILLARS ============ */
.pillars{background:var(--blue-tint)}
.pillars .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:48px;margin-top:48px}
.pillar b{font-family:var(--serif);font-size:1.375rem;font-weight:400;display:block;margin-bottom:12px}
.pillar p{font-size:.9375rem;color:#333}

/* ============ INSIGHT/POST CARDS ============ */
.insights .head,.hub-head{display:flex;justify-content:space-between;align-items:end;flex-wrap:wrap;gap:16px}
.insights .grid,.post-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px;margin-top:48px}
.post .thumb{aspect-ratio:16/10;background:linear-gradient(135deg,var(--blue-tint),#cfe0ff);margin-bottom:20px;transition:transform .5s ease}
.post:hover .thumb{transform:scale(1.03)}
.post:nth-child(3n+2) .thumb{background:linear-gradient(135deg,#ffe3d9,#ffc9b5)}
.post:nth-child(3n) .thumb{background:linear-gradient(135deg,#e8e8e8,#d0d0d0)}
.post .tag{font-size:.75rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--blue)}
.post h3{margin:8px 0 8px;font-size:1.25rem}
.post h3 a:hover{color:var(--blue)}
.post .meta{font-size:.8125rem;color:#777}

/* ============ FILTER BAR (insights hub, consultants, locations) ============ */
.filter-bar{display:flex;gap:12px;flex-wrap:wrap;margin-top:40px}
.filter-bar select,.filter-bar input[type=search]{padding:12px 20px;border:1px solid #ccc;border-radius:999px;font-size:.875rem;font-family:var(--sans);background:var(--white);min-width:180px;appearance:none}
.filter-bar input[type=search]{flex:1;min-width:240px}

/* ============ REPORT BANNER ============ */
.report{background:linear-gradient(100deg,var(--navy),#123a8a);color:var(--white)}
.report .cols{display:grid;grid-template-columns:1.2fr .8fr;gap:64px;align-items:center}
.report-cover{aspect-ratio:3/4;max-width:300px;background:linear-gradient(160deg,var(--orange),#b02800);border-radius:6px;box-shadow:0 24px 48px rgba(0,0,0,.4);display:flex;align-items:end;padding:24px;font-family:var(--serif);font-size:1.25rem}
@media(max-width:860px){.report .cols{grid-template-columns:1fr}}

/* ============ NEWSLETTER ============ */
.newsletter{background:var(--gray);text-align:center}
.newsletter form{display:flex;gap:12px;max-width:480px;margin:32px auto 0;flex-wrap:wrap;justify-content:center}
.newsletter input{flex:1;min-width:240px;padding:14px 20px;border:1px solid #ccc;border-radius:999px;font-size:.9375rem;font-family:var(--sans)}

/* ============ LONG-FORM CONTENT (articles, service body) ============ */
.prose{max-width:760px}
.prose h2{font-size:1.75rem;margin:48px 0 16px}
.prose h3{font-size:1.25rem;margin:32px 0 12px}
.prose p,.prose li{font-size:1.0625rem;color:#222;margin-bottom:20px}
.prose ul,.prose ol{padding-left:24px}
.prose blockquote{font-family:var(--serif);font-size:1.625rem;line-height:1.3;border-left:3px solid var(--orange);padding-left:24px;margin:40px 0;color:var(--ink)}
.article-meta{display:flex;gap:16px;font-size:.8125rem;color:#777;margin:16px 0 40px;align-items:center}
.article-layout{display:grid;grid-template-columns:1fr 300px;gap:64px}
@media(max-width:960px){.article-layout{grid-template-columns:1fr}}
.article-aside .aside-box{border:1px solid #e5e5e5;padding:28px;margin-bottom:24px;position:sticky;top:120px}
.article-aside h4{font-family:var(--serif);font-size:1.125rem;font-weight:400;margin-bottom:12px}

/* ============ FAQ (native accordion) ============ */
.faq details{border-bottom:1px solid #e5e5e5;padding:20px 0}
.faq summary{font-family:var(--serif);font-size:1.25rem;cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center}
.faq summary::-webkit-details-marker{display:none}
.faq summary:after{content:"+";font-size:1.5rem;color:var(--blue);transition:transform .2s}
.faq details[open] summary:after{transform:rotate(45deg)}
.faq details p{margin-top:12px;color:#444;max-width:720px}

/* ============ NUMBERED PROCESS STEPS ============ */
.steps{counter-reset:step;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:32px;margin:48px 0}
.step{counter-increment:step;border-top:2px solid var(--ink);padding-top:20px}
.step:before{content:"0" counter(step);font-family:var(--serif);color:var(--orange);display:block;margin-bottom:12px}
.step b{font-family:var(--serif);font-size:1.25rem;font-weight:400;display:block;margin-bottom:8px}
.step p{font-size:.9375rem;color:#555}

/* ============ PEOPLE / CONSULTANT CARDS ============ */
.people-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:24px;margin-top:48px}
.person .photo{aspect-ratio:3/4;background:linear-gradient(160deg,#d9e4f5,#b9cbe8);margin-bottom:16px}
.person b{font-family:var(--serif);font-size:1.125rem;font-weight:400;display:block}
.person span{font-size:.8125rem;color:#666;display:block}
.person .loc{color:var(--blue);font-weight:500;margin-top:4px}

/* ============ PROFILE PAGE ============ */
.profile{display:grid;grid-template-columns:340px 1fr;gap:64px;align-items:start}
.profile .photo{aspect-ratio:3/4;background:linear-gradient(160deg,#d9e4f5,#b9cbe8);position:sticky;top:120px}
.profile .title{color:#666;margin:4px 0 24px;font-size:1.0625rem}
.badges{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}
.badge{font-size:.75rem;font-weight:600;padding:6px 14px;border-radius:999px;background:var(--blue-tint);color:var(--blue)}
@media(max-width:860px){.profile{grid-template-columns:1fr}.profile .photo{position:static;max-width:340px}}

/* ============ LOCATIONS ============ */
.region-group{margin-top:64px}
.region-group h3{border-bottom:2px solid var(--ink);padding-bottom:12px;margin-bottom:24px;font-size:1.5rem}
.office-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.office-list a{padding:16px 20px;border:1px solid #e5e5e5;font-size:.9375rem;font-weight:500;transition:all .2s}
.office-list a:hover{border-color:var(--blue);color:var(--blue);background:var(--blue-tint)}

/* ============ FORMS (contact, gated download) ============ */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:720px}
.form-grid .full{grid-column:1/-1}
.form-grid label{font-size:.8125rem;font-weight:600;display:block;margin-bottom:6px}
.form-grid input,.form-grid select,.form-grid textarea{width:100%;padding:13px 16px;border:1px solid #ccc;border-radius:6px;font-size:.9375rem;font-family:var(--sans)}
.form-grid textarea{min-height:140px;resize:vertical}
@media(max-width:640px){.form-grid{grid-template-columns:1fr}}

/* ============ CONTACT CTA BAND (appears on most inner pages) ============ */
.contact-band{background:var(--blue-tint);text-align:center}
.contact-band p{max-width:560px;margin:0 auto 32px;color:#333}

/* ============ FOOTER ============ */
footer{background:var(--ink);color:#bbb;padding:80px 0 32px;font-size:.875rem}
.foot-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:48px;margin-bottom:64px}
.foot-grid h4{color:var(--white);font-size:.8125rem;letter-spacing:.1em;text-transform:uppercase;margin-bottom:16px}
.foot-grid ul{list-style:none}
.foot-grid li{margin-bottom:10px}
.foot-grid a:hover{color:var(--white)}
.foot-bottom{border-top:1px solid #333;padding-top:24px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px}
.foot-bottom nav{display:flex;gap:24px}
@media(max-width:860px){.foot-grid{grid-template-columns:1fr 1fr}}
