/*
Theme Name: HAD Consultants
Theme URI: https://hadconsultants.org/
Author: HAD Consultants
Description: An editorial, field-led WordPress theme for HAD Consultants.
Version: 1.3.3
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: had-consultants
*/

@font-face { font-family: 'Libre Franklin'; src: url('assets/fonts/libre-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Libre Franklin'; src: url('assets/fonts/libre-500.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Libre Franklin'; src: url('assets/fonts/libre-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('assets/fonts/work-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('assets/fonts/work-500.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('assets/fonts/work-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --had-navy: #073c66;
  --had-navy-deep: #042944;
  --had-blue: #0b5b8f;
  --had-sky: #45a8df;
  --had-orange: #ff8c24;
  --had-mist: #e7f0f6;
  --had-paper: #f7f4ed;
  --had-white: #ffffff;
  --had-ink: #142734;
  --had-muted: #5e6e78;
  --had-line: rgba(7, 60, 102, 0.16);
  --had-shadow: 0 24px 70px rgba(4, 41, 68, 0.14);
  --had-radius: 24px;
  --had-container: min(1180px, calc(100vw - 48px));
  --had-display: "Libre Franklin", sans-serif;
  --had-sans: "Work Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--had-paper);
  color: var(--had-ink);
  font-family: var(--had-sans);
  font-size: 18px;
  line-height: 1.4;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
p, ul, ol { margin-top: 0; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.45em;
  color: var(--had-navy-deep);
  font-family: var(--had-display);
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.14;
}
h1 { font-size: clamp(2.5rem, 4.2vw, 3.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.6rem, 2.7vw, 2.35rem); line-height: 1.05; }
h4 { font-size: 1.25rem; line-height: 1.15; }
::selection { background: var(--had-orange); color: var(--had-navy-deep); }
:focus-visible { outline: 3px solid var(--had-orange); outline-offset: 4px; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px;
}
.had-skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 9999; transform: translateY(-150%);
  background: var(--had-orange); color: var(--had-navy-deep); padding: 12px 18px; font-weight: 800;
}
.had-skip-link:focus { transform: translateY(0); }
.had-container { width: var(--had-container); margin-inline: auto; }
.had-reading-width { max-width: 790px; }
.had-main { overflow: clip; }
.had-section { padding: clamp(80px, 9vw, 140px) 0; position: relative; }
.had-section--white { background: var(--had-white); }
.had-section--mist { background: var(--had-mist); }
.had-section--navy { background: var(--had-navy-deep); color: var(--had-white); }
.had-section--navy h2, .had-section--navy h3 { color: var(--had-white); }
.had-section-heading { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr); align-items: end; gap: 48px; margin-bottom: clamp(44px, 6vw, 76px); }
.had-section-heading > p { color: var(--had-muted); margin: 0 0 0.65rem; max-width: 540px; }
.had-section-heading--light > p { color: rgba(255,255,255,.72); }
.had-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--had-orange);
  font-size: .76rem; font-weight: 800; letter-spacing: .16em; line-height: 1.2; text-transform: uppercase;
}
.had-eyebrow::before { content: ""; width: 32px; height: 3px; background: currentColor; }
.had-lede { max-width: 760px; font-size: clamp(1.18rem, 2vw, 1.55rem); line-height: 1.55; }
.had-kicker { color: var(--had-orange); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.had-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 54px;
  border: 1px solid transparent; border-radius: 999px; padding: 14px 25px; text-decoration: none;
  font-size: .9rem; font-weight: 800; letter-spacing: .015em; transition: transform .2s ease, background .2s ease, color .2s ease, border .2s ease;
}
.had-button:hover { transform: translateY(-3px); }
.had-button--orange { background: var(--had-orange); color: var(--had-navy-deep); }
.had-button--orange:hover { background: #ff9f48; }
.had-button--outline { border-color: rgba(255,255,255,.65); color: var(--had-white); }
.had-button--outline:hover { background: var(--had-white); color: var(--had-navy-deep); }
.had-button--navy { background: var(--had-navy); color: var(--had-white); }
.had-text-link { color: var(--had-orange); font-weight: 800; text-decoration: none; }
.had-text-link:hover { text-decoration: underline; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Header */
.had-site-header {
  position: sticky; top: 0; z-index: 1000; width: 100%; min-height: 86px;
  background: rgba(247,244,237,.94); border-bottom: 1px solid var(--had-line); backdrop-filter: blur(18px);
  transition: background .25s ease, box-shadow .25s ease, min-height .25s ease;
}
.had-site-header.is-overlay { position: fixed; background: linear-gradient(180deg, rgba(3,27,44,.7), rgba(3,27,44,0)); border: 0; color: var(--had-white); backdrop-filter: none; }
.had-site-header.is-overlay.is-scrolled { background: rgba(247,244,237,.96); color: var(--had-ink); border-bottom: 1px solid var(--had-line); backdrop-filter: blur(18px); box-shadow: 0 10px 35px rgba(4,41,68,.08); }
.had-header-inner { width: var(--had-container); min-height: inherit; margin-inline: auto; display: grid; grid-template-columns: 200px 1fr auto; align-items: center; gap: 34px; }
.had-brand { display: inline-flex; align-items: center; width: 185px; height: 64px; padding: 6px 10px; background: rgba(255,255,255,.95); border-radius: 10px; text-decoration: none; }
.had-brand-logo { width: 100%; max-height: 52px; object-fit: contain; }
.had-primary-nav { justify-self: end; }
.had-menu { list-style: none; display: flex; align-items: center; gap: clamp(18px, 2.1vw, 32px); margin: 0; padding: 0; }
.had-menu a { position: relative; color: inherit; text-decoration: none; font-size: .84rem; font-weight: 750; }
.had-menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--had-orange); transition: right .2s ease; }
.had-menu a:hover::after, .had-menu .current-menu-item a::after { right: 0; }
.had-menu > li { position: relative; display: flex; align-items: center; gap: 5px; }
.had-nav-dropdown summary { cursor: pointer; list-style: none; padding: 8px; font-size: 1rem; line-height: 1; }
.had-nav-dropdown summary::-webkit-details-marker { display: none; }
.had-nav-dropdown ul { position: absolute; top: 100%; left: -20px; z-index: 50; width: min(390px, 85vw); max-height: min(65vh, 550px); overflow-y: auto; list-style: none; margin: 0; padding: 12px; background: #fff; color: var(--had-navy-deep); box-shadow: var(--had-shadow); }
.had-nav-dropdown li a { display: block; padding: 10px 12px; line-height: 1.35; }
.had-nav-dropdown li a:hover, .had-nav-dropdown li a:focus-visible { background: var(--had-mist); }
.had-nav-dropdown li a::after { display: none; }
.had-header-cta { display: inline-flex; gap: 14px; align-items: center; padding: 12px 18px; background: var(--had-orange); border-radius: 999px; color: var(--had-navy-deep); text-decoration: none; font-size: .82rem; font-weight: 800; white-space: nowrap; }
.had-menu > .had-nav-contact-cta { display: none; }
.had-menu-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; padding: 11px; }
.had-menu-toggle > span:not(.screen-reader-text) { display: block; height: 2px; margin: 5px 0; background: currentColor; }

/* Hero */
.had-hero { position: relative; min-height: min(900px, 94vh); display: flex; align-items: flex-end; background: var(--had-navy-deep); color: var(--had-white); }
.had-hero-media, .had-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.had-hero-media img { object-fit: cover; object-position: center 38%; }
.had-hero-slider, .had-hero-slide { position: absolute; inset: 0; }
.had-hero-slide { opacity: 0; transition: opacity 1.2s ease; }
.had-hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,29,48,.93) 0%, rgba(3,29,48,.76) 42%, rgba(3,29,48,.16) 77%), linear-gradient(0deg, rgba(3,29,48,.68), transparent 45%); }
.had-hero-slide.is-active { opacity: 1; }
.had-hero-media:has(.had-hero-slider) { z-index: 2; pointer-events: none; }
.had-hero-content { pointer-events: none; }
.had-hero-content a { pointer-events: auto; }
.had-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(3,29,48,.93) 0%, rgba(3,29,48,.76) 42%, rgba(3,29,48,.16) 77%), linear-gradient(0deg, rgba(3,29,48,.68), transparent 45%); }
.had-hero::after { content: ""; position: absolute; z-index: 1; inset: 0; background: radial-gradient(circle at 85% 24%, transparent 0 13%, rgba(69,168,223,.18) 13.2% 14%, transparent 14.2% 21%, rgba(255,140,36,.15) 21.2% 22%, transparent 22.2%); }
.had-hero-content { position: relative; z-index: 2; width: var(--had-container); margin-inline: auto; padding: 180px 0 106px; }
.had-hero:has(.had-hero-slider)::before { display: none; }
.had-hero:has(.had-hero-slider)::after { z-index: 3; pointer-events: none; }
.had-hero:has(.had-hero-slider) .had-hero-content { z-index: 4; }
.had-hero h1 { max-width: 850px; color: var(--had-white); font-size: clamp(2.5rem, 4.2vw, 3.5rem); }
.had-hero h1 span { display: block; color: var(--had-orange); }
.had-hero-copy { max-width: 690px; margin: 32px 0; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.55; color: rgba(255,255,255,.88); }
.had-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.had-hero-note { position: absolute; right: 0; bottom: 108px; width: 220px; padding: 20px; border-left: 3px solid var(--had-orange); color: rgba(255,255,255,.8); font-size: .83rem; line-height: 1.5; }
.had-field-strip { position: relative; z-index: 4; width: 100%; height: 72px; overflow: hidden; line-height: 0; }
.had-field-strip svg { width: 100%; height: 72px; }
.had-field-strip--footer { transform: scaleY(-1); transform-origin: center; }

/* Home */
.had-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--had-line); border-bottom: 1px solid var(--had-line); }
.had-stat { padding: 40px 28px; border-right: 1px solid var(--had-line); }
.had-stat:last-child { border-right: 0; }
.had-stat strong { display: block; margin-bottom: 4px; color: var(--had-navy); font-family: var(--had-display); font-size: clamp(2.8rem, 5vw, 4.8rem); line-height: .9; }
.had-stat span { color: var(--had-muted); font-size: .9rem; }
.had-intro-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(46px, 8vw, 110px); }
.had-intro-image { position: relative; }
.had-intro-image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 180px 180px 24px 24px; box-shadow: var(--had-shadow); }
.had-intro-image::before { content: ""; position: absolute; left: -26px; bottom: -26px; width: 56%; aspect-ratio: 1; border: 2px solid var(--had-orange); border-radius: 50%; z-index: -1; }
.had-intro-copy p:not(.had-eyebrow) { color: var(--had-muted); }
.had-expertise-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.had-expertise-card { display: block; position: relative; grid-column: span 4; min-height: 330px; overflow: hidden; border-radius: var(--had-radius); background: var(--had-white); color: var(--had-ink); box-shadow: 0 10px 36px rgba(4,41,68,.08); }
.had-expertise-card:nth-child(4), .had-expertise-card:nth-child(5) { grid-column: span 6; }
.had-expertise-card:nth-child(6) { grid-column: span 7; }
.had-expertise-card:nth-child(7) { grid-column: span 5; }
.had-expertise-card-media { position: absolute; inset: 0; }
.had-expertise-card-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); transition: transform .55s ease, filter .55s ease; }
.had-expertise-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,30,50,.96), rgba(3,30,50,.12) 78%); }
.had-expertise-card-content { position: absolute; z-index: 2; inset: auto 0 0; padding: 28px; color: var(--had-white); }
.had-expertise-card h3 { color: var(--had-white); font-size: clamp(1.55rem, 2.5vw, 2.2rem); }
.had-expertise-card p { max-height: 0; margin: 0; opacity: 0; overflow: hidden; font-size: .88rem; line-height: 1.55; transition: max-height .4s ease, opacity .35s ease, margin .35s ease; }
.had-expertise-card:hover img { transform: scale(1.06); filter: saturate(1); }
.had-expertise-card:hover p { max-height: 100px; margin-top: 12px; opacity: .88; }
.had-expertise-card-number { display: block; margin-bottom: 18px; color: var(--had-orange); font-size: .76rem; font-weight: 800; letter-spacing: .15em; }
.had-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.had-value { min-height: 285px; padding: 34px; border: 1px solid rgba(255,255,255,.17); border-radius: var(--had-radius); background: rgba(255,255,255,.055); }
.had-value-index { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 56px; border: 1px solid var(--had-orange); border-radius: 50%; color: var(--had-orange); font-size: .8rem; font-weight: 800; }
.had-value p { color: rgba(255,255,255,.7); }
.had-projects-featured { display: grid; gap: 16px; }
.had-project-feature { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 30px 0; border-top: 1px solid var(--had-line); text-decoration: none; }
.had-project-feature:last-child { border-bottom: 1px solid var(--had-line); }
.had-project-feature-status { color: var(--had-orange); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.had-project-feature h3 { margin: 0; font-size: clamp(1.8rem, 3.3vw, 3rem); transition: color .2s ease; }
.had-project-feature:hover h3 { color: var(--had-blue); }
.had-project-feature-arrow { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--had-navy); border-radius: 50%; color: var(--had-navy); transition: transform .2s ease, background .2s ease, color .2s ease; }
.had-project-feature:hover .had-project-feature-arrow { transform: rotate(-35deg); background: var(--had-navy); color: white; }
.had-countries { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.had-country-list { list-style: none; margin: 34px 0 0; padding: 0; }
.had-country-list li { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-family: var(--had-display); font-size: 1.45rem; font-weight: 700; }
.had-country-list li::after { content: "●"; color: var(--had-orange); font-size: .72rem; }
.had-countries-image { position: relative; }
.had-countries-image img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 10px solid rgba(255,255,255,.08); }
.had-countries-image::after { content: ""; position: absolute; inset: -22px; border: 1px solid rgba(69,168,223,.5); border-radius: 50%; }
.had-partner-names { display: flex; flex-wrap: wrap; gap: 12px; }
.had-partner-names span { padding: 12px 18px; border: 1px solid var(--had-line); border-radius: 999px; background: var(--had-white); color: var(--had-navy); font-size: .8rem; font-weight: 800; }
.had-partner-panel { padding: clamp(24px, 4vw, 48px); border: 1px solid var(--had-line); border-radius: var(--had-radius); background: var(--had-white); box-shadow: 0 18px 50px rgba(4,41,68,.08); }
.had-partner-panel > img { width: 100%; max-height: 430px; margin-bottom: 28px; object-fit: contain; }
.had-cta-panel { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 88px); border-radius: 34px; background: var(--had-orange); color: var(--had-navy-deep); }
.had-cta-panel::after { content: ""; position: absolute; width: 360px; height: 360px; right: -100px; top: -140px; border: 36px solid rgba(7,60,102,.12); border-radius: 50%; box-shadow: 0 0 0 36px rgba(7,60,102,.08), 0 0 0 72px rgba(7,60,102,.045); }
.had-cta-panel h2 { max-width: 760px; position: relative; z-index: 1; }
.had-cta-panel p { max-width: 620px; position: relative; z-index: 1; }
.home .had-cta-panel .had-eyebrow { color: var(--had-white); }
.had-cta-panel .had-button { position: relative; z-index: 2; margin-top: 16px; }

/* Interior pages */
.had-page-hero { position: relative; padding: clamp(130px, 14vw, 210px) 0 clamp(72px, 9vw, 120px); background: var(--had-mist); }
.had-page-hero::after { content: ""; position: absolute; right: -120px; top: -150px; width: 520px; height: 520px; border: 42px solid rgba(69,168,223,.16); border-radius: 50%; box-shadow: 0 0 0 42px rgba(7,60,102,.06), 0 0 0 84px rgba(255,140,36,.08); }
.had-page-hero .had-container { position: relative; z-index: 2; }
.had-page-hero h1 { max-width: 1000px; }
.had-page-hero--compact { padding-bottom: 72px; }
.had-generic-page { min-height: 70vh; }
.had-generic-page .had-prose { padding-top: 78px; padding-bottom: 110px; }
.had-prose { font-size: 1.08rem; }
.had-prose h2 { margin-top: 1.6em; font-size: clamp(2.2rem, 4vw, 3.5rem); }
.had-prose h3 { margin-top: 1.5em; }
.had-prose a { color: var(--had-blue); }
.had-empty-state { padding: 170px 0; }

/* About */
.had-about-intro { display: grid; grid-template-columns: .78fr 1.22fr; gap: 80px; }
.had-about-intro-copy { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.had-about-intro-copy p:first-child::first-letter { float: left; margin: .08em .12em 0 0; color: var(--had-orange); font-family: var(--had-display); font-size: 5.8rem; font-weight: 800; line-height: .65; }
.had-mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.had-statement { padding: 44px; border-radius: var(--had-radius); background: var(--had-white); }
.had-statement:first-child { background: var(--had-navy); color: var(--had-white); }
.had-statement:first-child h2 { color: var(--had-white); }
.had-core-values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.had-core-value { padding: 24px 18px; border-top: 4px solid var(--had-orange); background: var(--had-white); }
.had-core-value span { color: var(--had-sky); font-size: .72rem; font-weight: 800; letter-spacing: .13em; }

/* Expertise archive */
.had-expertise-list { display: grid; gap: 18px; }
.had-expertise-item { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 28px; padding: 36px 0; border-top: 1px solid var(--had-line); }
.had-expertise-item:last-child { border-bottom: 1px solid var(--had-line); }
.had-expertise-item-number { color: var(--had-orange); font-family: var(--had-display); font-size: 2.2rem; font-weight: 800; }
.had-expertise-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 52px; align-items: start; gap: 24px; }
.had-expertise-item summary::-webkit-details-marker { display: none; }
.had-expertise-item summary::after { content: "+"; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--had-navy); border-radius: 50%; font-size: 1.7rem; transition: transform .25s ease; }
.had-expertise-item details[open] summary::after { transform: rotate(45deg); background: var(--had-navy); color: var(--had-white); }
.had-expertise-item h2 { max-width: 840px; font-size: clamp(2rem, 4vw, 3.7rem); }
.had-expertise-item-excerpt { max-width: 720px; color: var(--had-muted); }
.had-expertise-detail { display: grid; grid-template-columns: 1fr .7fr; gap: 48px; padding-top: 32px; }
.had-expertise-detail img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--had-radius); }
.had-expertise-detail li { margin-bottom: .55em; }

/* Experience */
.had-project-status-nav { display: flex; gap: 10px; margin-bottom: 44px; }
.had-project-status-nav a { padding: 10px 17px; border: 1px solid var(--had-line); border-radius: 999px; text-decoration: none; font-size: .82rem; font-weight: 800; }
.had-project-group { margin-top: 72px; scroll-margin-top: 120px; }
.had-project-group-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.had-project-group-heading span { color: var(--had-orange); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.had-project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.had-project-card { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: 34px; border: 1px solid var(--had-line); border-radius: var(--had-radius); background: var(--had-white); }
.had-project-card h3 { margin-bottom: 18px; }
.had-project-card > p { color: var(--had-muted); }
.had-project-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: auto 0 0; padding-top: 24px; border-top: 1px solid var(--had-line); }
.had-project-facts dt { color: var(--had-orange); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.had-project-facts dd { margin: 3px 0 0; font-size: .82rem; line-height: 1.45; }

/* Team */
.had-team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; counter-reset: people; }
.had-person { position: relative; padding: 40px; border-radius: var(--had-radius); background: var(--had-white); counter-increment: people; }
.had-person::before { content: counter(people, decimal-leading-zero); display: block; margin-bottom: 54px; color: var(--had-orange); font-size: .76rem; font-weight: 800; letter-spacing: .15em; }
.had-person:nth-child(3n) { background: var(--had-navy); color: var(--had-white); }
.had-person:nth-child(3n) h2 { color: var(--had-white); }
.had-person-role { color: var(--had-blue); font-size: .83rem; font-weight: 800; line-height: 1.45; }
.had-person:nth-child(3n) .had-person-role { color: var(--had-sky); }
.had-person-content { color: var(--had-muted); font-size: .92rem; }
.had-person:nth-child(3n) .had-person-content { color: rgba(255,255,255,.72); }

/* Contact */
.had-contact-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; align-items: start; }
.had-contact-card { padding: 32px 0; border-top: 1px solid var(--had-line); }
.had-contact-card:last-child { border-bottom: 1px solid var(--had-line); }
.had-contact-card h3 { font-size: 1.35rem; }
.had-contact-card p { margin: 0; color: var(--had-muted); }
.had-contact-card a { color: var(--had-navy); font-weight: 750; text-decoration: none; }
.had-form-wrap { padding: clamp(30px, 5vw, 54px); border-radius: var(--had-radius); background: var(--had-white); box-shadow: var(--had-shadow); }
.had-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.had-contact-form p { margin-bottom: 20px; }
.had-contact-form label { display: block; margin-bottom: 7px; color: var(--had-navy-deep); font-size: .78rem; font-weight: 800; }
.had-contact-form input:not([type="checkbox"]), .had-contact-form select, .had-contact-form textarea {
  width: 100%; border: 1px solid rgba(7,60,102,.24); border-radius: 10px; background: #fbfcfd; color: var(--had-ink); padding: 13px 14px;
}
.had-contact-form textarea { resize: vertical; }
.had-contact-form input:focus, .had-contact-form select:focus, .had-contact-form textarea:focus { border-color: var(--had-sky); outline: 3px solid rgba(69,168,223,.2); }
.had-consent label { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--had-muted); font-weight: 500; line-height: 1.55; }
.had-consent input { margin-top: 5px; }
.had-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.had-form-notice { margin-bottom: 24px; padding: 16px 18px; border-radius: 10px; font-weight: 700; }
.had-form-notice.is-success { background: #e4f5ea; color: #174d2b; }
.had-form-notice.is-error { background: #fde9e7; color: #7a211a; }

/* Footer */
.had-site-footer { background: #20212b; color: rgba(255,255,255,.76); }
.had-footer-main { width: var(--had-container); margin-inline: auto; padding: 94px 0 74px; display: grid; grid-template-columns: 1.2fr .7fr 1fr; gap: 80px; }
.had-footer-logo { width: 230px; margin-bottom: 26px; padding: 12px; border-radius: 12px; background: var(--had-white); }
.had-footer-brand p { max-width: 420px; }
.had-site-footer h2 { color: var(--had-white); font-family: var(--had-sans); font-size: 1rem; letter-spacing: 0; }
.had-footer-menu { list-style: none; margin: 0; padding: 0; columns: 2; }
.had-footer-menu li { margin-bottom: 9px; }
.had-footer-menu a, .had-footer-contact a, .had-footer-meta a { color: rgba(255,255,255,.8); text-decoration: none; }
.had-footer-menu a:hover, .had-footer-contact a:hover { color: var(--had-orange); }
.had-footer-meta { width: var(--had-container); margin-inline: auto; padding: 22px 0 34px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }
.had-footer-meta p { margin: 0; }

@media (max-width: 1020px) {
  .had-header-inner { grid-template-columns: 180px 1fr auto; }
  .had-header-cta { display: none; }
  .had-menu > .had-nav-contact-cta { display: block; }
  .had-stat-grid { grid-template-columns: 1fr 1fr; }
  .had-stat:nth-child(2) { border-right: 0; }
  .had-stat:nth-child(-n+2) { border-bottom: 1px solid var(--had-line); }
  .had-intro-grid, .had-countries, .had-contact-layout { gap: 52px; }
  .had-expertise-card { grid-column: span 6; }
  .had-expertise-card:nth-child(7) { grid-column: span 12; }
  .had-core-values { grid-template-columns: repeat(3, 1fr); }
  .had-footer-main { grid-template-columns: 1fr 1fr; }
  .had-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  :root { --had-container: min(100% - 34px, 720px); }
  .had-section-heading, .had-intro-grid, .had-about-intro, .had-contact-layout { grid-template-columns: 1fr; }
  .had-site-header, .had-site-header.is-overlay { min-height: 76px; }
  .had-header-inner { grid-template-columns: 164px 1fr; }
  .had-brand { width: 160px; height: 58px; }
  .had-menu-toggle { display: block; justify-self: end; }
  .had-primary-nav { position: fixed; inset: 76px 0 auto; display: none; padding: 28px 24px 38px; background: var(--had-paper); color: var(--had-ink); border-top: 1px solid var(--had-line); box-shadow: 0 24px 50px rgba(4,41,68,.18); }
  .had-primary-nav.is-open { display: block; }
  .had-menu { flex-direction: column; align-items: flex-start; gap: 20px; }
  .had-menu a { font-family: var(--had-display); font-size: 1.7rem; }
  .had-menu > li { flex-wrap: wrap; width: 100%; }
  .had-nav-dropdown ul { position: static; width: 100%; max-height: 42vh; box-shadow: none; }
  .had-nav-dropdown { width: 100%; }
  .had-nav-dropdown summary { display: inline-block; }
  .had-nav-dropdown li a { font-family: var(--had-sans); font-size: 1rem; }
  .had-hero { min-height: 820px; }
  .had-hero-content { padding-top: 150px; }
  .had-hero-note { position: static; margin-top: 36px; }
  .had-intro-grid, .had-countries { grid-template-columns: 1fr; }
  .had-intro-image { max-width: 540px; }
  .had-values-grid, .had-project-grid, .had-team-grid { grid-template-columns: 1fr; }
  .had-project-feature { grid-template-columns: 90px minmax(0, 1fr) 52px; gap: 20px; }
  .had-countries-image { max-width: 520px; margin-inline: auto; }
  .had-mission-grid { grid-template-columns: 1fr; }
  .had-expertise-detail { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
  h2 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .had-section { padding: 72px 0; }
  .had-hero { min-height: 760px; }
  .had-hero h1 { font-size: clamp(2.25rem, 9vw, 3rem); }
  .had-hero-copy { font-size: 1.05rem; }
  .had-hero-actions { align-items: stretch; flex-direction: column; max-width: 300px; }
  .had-field-strip, .had-field-strip svg { height: 54px; }
  .had-stat { padding: 28px 16px; }
  .had-expertise-grid { display: block; }
  .had-expertise-card { min-height: 300px; margin-bottom: 15px; }
  .had-expertise-card p { max-height: 100px; margin-top: 12px; opacity: .88; }
  .had-core-values { grid-template-columns: 1fr 1fr; }
  .had-project-feature { grid-template-columns: 1fr 46px; }
  .had-project-feature-status { grid-column: 1 / -1; }
  .had-project-feature-arrow { width: 46px; height: 46px; }
  .had-page-hero { padding-top: 120px; }
  .had-expertise-item { grid-template-columns: 1fr; gap: 14px; }
  .had-expertise-item summary { grid-template-columns: 1fr 44px; }
  .had-expertise-item summary::after { width: 42px; height: 42px; }
  .had-project-card, .had-person, .had-statement { padding: 28px; }
  .had-project-facts { grid-template-columns: 1fr; }
  .had-form-grid { grid-template-columns: 1fr; gap: 0; }
  .had-form-wrap { padding: 26px 20px; }
  .had-footer-main { grid-template-columns: 1fr; gap: 42px; padding-top: 72px; }
  .had-footer-brand { grid-column: auto; }
  .had-footer-meta { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Editorial spacing and navigation */
body { line-height: 1.55; }
.had-section { padding-block: clamp(80px, 8vw, 112px); }
.had-section-heading { gap: clamp(32px, 5vw, 72px); margin-bottom: clamp(48px, 5vw, 72px); }
.had-section-heading h2, .had-intro-copy h2 { margin-bottom: .65em; }
.had-section-heading > p { line-height: 1.55; }
.had-intro-copy p:not(.had-eyebrow) { margin-bottom: 1.4em; }
.had-stat-grid { text-align: center; }
.had-stat { padding: 20px 28px; }
.had-stat strong { font-size: clamp(2.5rem, 4vw, 3.8rem); margin-bottom: 14px; }
.had-intro-image img { border-radius: 4px; box-shadow: none; aspect-ratio: 4 / 3; }
.had-intro-image::before { display: none; }
.had-expertise-grid { gap: 24px; }
.had-expertise-card { border-radius: 4px; box-shadow: none; }
.had-expertise-card-content { padding: 32px; }
.had-value { min-height: 0; padding: 10px 32px 10px 0; border: 0; border-right: 1px solid rgba(255,255,255,.25); border-radius: 0; background: transparent; }
.had-value:last-child { border-right: 0; }
.had-value-index { margin-bottom: 30px; }
.had-project-feature { padding: 34px 0; }
.had-project-feature h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.25; }
.had-partner-panel { border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.had-cta-panel { border-radius: 4px; }
.had-page-hero { padding-block: clamp(88px, 8vw, 120px); }
.had-page-hero h1 { max-width: 850px; margin-bottom: .6em; }
.had-project-card, .had-person, .had-statement, .had-form-wrap { border-radius: 4px; box-shadow: none; }
.had-project-grid, .had-team-grid { gap: 28px; }
.had-project-card { padding: 38px; }
.had-project-card .had-text-link { margin-top: 28px; }
.had-button, .had-header-cta { border-radius: 5px; }
.had-nav-dropdown ul { top: calc(100% + 14px); left: 50%; transform: translateX(-50%); width: min(360px, 85vw); border-radius: 4px; padding: 10px 14px; box-shadow: 0 12px 30px rgba(4,41,68,.16); }
.had-nav-dropdown ul::before { content: ''; position: absolute; height: 20px; top: -20px; left: 0; right: 0; }
.had-nav-dropdown li a { padding: 10px 12px; text-align: center; font-size: .86rem; font-weight: 700; }
.had-nav-dropdown summary { padding: 10px 7px; }
.had-nav-dropdown[open] summary, .had-menu > li:hover > a { color: var(--had-orange); }
.had-chevron { display: inline-block; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.had-nav-dropdown[open] .had-chevron { transform: translateY(2px) rotate(225deg); }
body.admin-bar .had-site-header { top: 32px; }
.had-section--mist { background: #d9ebf4; }
.had-section--navy { background: var(--had-navy); }
.had-page-hero { background: #d9ebf4; }
.had-cta-panel { background: #ffad4c; }

@media (max-width: 820px) {
  .had-primary-nav { max-height: calc(100vh - 76px); overflow-y: auto; }
  .had-menu { gap: 0; }
  .had-menu > li { display: block; padding: 12px 0; border-bottom: 1px solid var(--had-line); }
  .had-menu > li > a { font-size: 1.15rem; }
  .had-nav-dropdown { width: 100%; text-align: left; }
  .had-nav-dropdown summary { position: absolute; right: 0; top: 4px; }
  .had-nav-dropdown ul { position: static; width: 100%; transform: none; max-height: 38vh; margin-top: 10px; padding: 8px 0 8px 16px; box-shadow: none; text-align: left; }
  .had-nav-dropdown li a { text-align: left; }
}
@media (max-width: 782px) {
  body.admin-bar .had-site-header { top: 46px; }
  body.admin-bar .had-primary-nav { top: 122px; max-height: calc(100vh - 122px); }
}
@media (max-width: 600px) {
  h1 { font-size: clamp(2.25rem, 9vw, 3rem); }
  h2 { font-size: clamp(1.85rem, 7vw, 2.5rem); }
  .had-section { padding-block: 72px; }
  .had-value { padding: 22px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.25); }
  .had-value-index { margin-bottom: 20px; }
  .had-project-card { padding: 28px; }
}

