/* =====================================================================
   ECRD — European Centre for Resilience and Democracy
   Global stylesheet · pure static, no dependencies
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy:        #112B46;
  --navy-800:    #0d2138;
  --navy-700:    #1c3a5c;
  --navy-600:    #2b4d72;
  --terracotta:  #C46A47;
  --terracotta-dark: #a9542f;
  --slate:       #59606A;
  --slate-light: #7a828d;
  --steel:       #D9DEE5;
  --steel-light: #eef1f5;
  --steel-50:    #f6f8fa;
  --white:       #ffffff;
  --ink:         #14202e;

  --font-head: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(17,43,70,.06), 0 1px 3px rgba(17,43,70,.08);
  --shadow-md: 0 4px 12px rgba(17,43,70,.08), 0 2px 4px rgba(17,43,70,.06);
  --shadow-lg: 0 18px 40px rgba(17,43,70,.14);
  --trans: 180ms cubic-bezier(.4,0,.2,1);

  --header-h: 84px;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta-dark); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--terracotta); }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
h1,h2,h3,h4,h5 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.12rem; }
p { margin: 0 0 1.1rem; }
strong { font-weight: 600; color: var(--navy); }
hr { border: 0; border-top: 1px solid var(--steel); margin: 2.5rem 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.bg-steel { background: var(--steel-50); }
.bg-steel-2 { background: var(--steel-light); }
.bg-navy { background: var(--navy); color: #dbe4ef; }
.bg-navy h1,.bg-navy h2,.bg-navy h3,.bg-navy h4 { color: #fff; }
.text-center { text-align: center; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.lead { font-size: 1.22rem; color: var(--slate); line-height: 1.6; }
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--terracotta-dark);
  margin-bottom: .9rem;
  display: block;
}
.bg-navy .eyebrow { color: var(--terracotta); }
.divider-accent { width: 54px; height: 3px; background: var(--terracotta); border: 0; margin: 0 0 1.6rem; }
.text-center .divider-accent { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .01em;
  padding: .8rem 1.6rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--trans);
  line-height: 1.1;
}
.btn-primary { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.btn-primary:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); color:#fff; }
.btn-navy { background: var(--navy); color:#fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-700); color:#fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--steel); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); background: var(--steel-50); }
.btn-ghost-light { background: transparent; color:#fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color:#fff; border-color:#fff; }
.btn-arrow::after { content: "→"; font-size: 1.05em; transition: transform var(--trans); }
.btn-arrow:hover::after { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

.arrow-link {
  font-family: var(--font-head); font-weight: 500; color: var(--terracotta-dark);
  display: inline-flex; align-items: center; gap: .35rem;
}
.arrow-link::after { content:"→"; transition: transform var(--trans); }
.arrow-link:hover::after { transform: translateX(3px); }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--steel);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; min-height: var(--header-h);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }

/* Text logo lockup (crisp, uses brand font) */
.brand-lockup { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark {
  font-family: var(--font-head); font-weight: 700; font-size: 2rem;
  letter-spacing: .05em; color: var(--navy); line-height: .9; white-space: nowrap;
}
.brand-text {
  font-family: var(--font-head); font-weight: 500; font-size: .66rem;
  line-height: 1.28; text-transform: uppercase; letter-spacing: .09em; white-space: nowrap;
  color: var(--slate); padding-left: .75rem; border-left: 2px solid var(--terracotta);
}
.brand-lockup-lg .brand-mark { font-size: 2.5rem; }
.brand-lockup-lg .brand-text { font-size: .78rem; }
/* Footer (on navy) */
.footer-brand .brand-mark { color: #fff; }
.footer-brand .brand-text { color: #9db4d0; border-left-color: var(--terracotta); }
@media (max-width: 420px){
  .brand-mark { font-size: 1.7rem; }
  .brand-text { display: none; }
}

.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: .3rem;
  font-family: var(--font-head); font-weight: 500; font-size: .98rem;
  color: var(--navy); padding: .7rem .85rem; border-radius: var(--radius);
  white-space: nowrap; cursor: pointer;
}
.nav-link:hover, .nav-item:hover > .nav-link, .nav-link.active { color: var(--terracotta-dark); }
.nav-link.active { position: relative; }
.nav-link .caret { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--trans); opacity:.7; }
.nav-item:hover .caret { transform: rotate(225deg) translateY(0); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% - 6px); left: 0;
  min-width: 268px;
  background: #fff;
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: .55rem;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--trans), transform var(--trans), visibility var(--trans);
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity:1; visibility:visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: .6rem .8rem; border-radius: var(--radius);
  color: var(--navy); font-family: var(--font-body); font-size: .95rem; line-height: 1.35;
}
.dropdown a span { display:block; font-size: .8rem; color: var(--slate-light); font-weight:400; margin-top:1px; }
.dropdown a:hover { background: var(--steel-50); color: var(--terracotta-dark); }

.header-cta { flex-shrink: 0; }

/* --- Non-clickable / static nav variants --- */
.nav-link.nav-parent { cursor: pointer; }
.nav-link.nav-static { cursor: default; }
.nav-link.nav-static:hover,
.nav-item:hover > .nav-link.nav-static { color: var(--navy); }
.dropdown .dropdown-text {
  display: block; padding: .6rem .8rem; border-radius: var(--radius);
  color: var(--slate-light); font-size: .95rem; cursor: default;
}
.role-second { margin-top: .5rem; }

/* --- Team grid of clickable member cards --- */
.team-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--steel); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c3ccd8; }
.team-card-photo { aspect-ratio: 3 / 4; background: var(--steel); position: relative; overflow: hidden; }
.team-card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

/* Per-photo face framing: anchored to the TOP so heads are never cut,
   scaled so every head reads a similar size. */
img[src*="giorgi-iashvili"] { object-position: 50% 0%; transform: scale(1.05); transform-origin: 50% 0%; }
img[src*="arba-murati"]     { object-position: 50% 0%; transform: scale(1.02); transform-origin: 50% 0%; }
img[src*="anja-hoffmans"]   { object-position: 50% 0%; transform: scale(1.0);  transform-origin: 50% 0%; }
img[src*="johan-hommes"]    { object-position: 50% 0%; transform: scale(1.18); transform-origin: 50% 0%; }
img[src*="marko-vujacic"]   { object-position: 50% 0%; transform: scale(1.18); transform-origin: 50% 0%; }
img[src*="shalva-khutsishvili"] { object-position: 50% 0%; transform: scale(1.28); transform-origin: 50% 0%; }
img[src*="nana-tabagua"]    { object-position: 50% 0%; transform: scale(1.0);  transform-origin: 50% 0%; }
.team-card-body { padding: 1.1rem 1.2rem 1.3rem; min-height: 148px; }
.team-card h4 { margin: 0 0 .25rem; color: var(--navy); font-size: 1.12rem; }
.team-card .role { margin: 0; color: var(--terracotta-dark); font-family: var(--font-head); font-weight: 500; font-size: .92rem; }
.team-card .role-second { margin-top: .45rem; }
/* small gap between the two title lines on member profile pages */
.page-hero .lead + .lead { margin-top: .55rem; }

/* --- Individual member profile page --- */
.profile { display: grid; grid-template-columns: 240px 1fr; gap: clamp(1.5rem, 4vw, 2.6rem); align-items: start; }
.profile-photo { border-radius: var(--radius-lg); overflow: hidden; background: var(--steel); aspect-ratio: 3 / 4; position: relative; }
.profile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.profile-bio { text-align: justify; }
.profile-bio > *:first-child { margin-top: 0; }
@media (max-width: 640px){
  .profile { grid-template-columns: 1fr; }
  .profile-photo { max-width: 240px; }
}

/* Team grid stays multi-column down to phones */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.8rem; }
.team-grid .team-card { flex: 0 0 248px; }
@media (max-width: 560px){ .team-grid { gap: 1rem; } .team-grid .team-card { flex-basis: calc(50% - 0.5rem); } }
@media (max-width: 380px){ .team-grid .team-card { flex-basis: 100%; max-width: 320px; } }

/* --- Icon badge for topic/service pages --- */
.topic-badge {
  width: 60px; height: 60px; border-radius: 14px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 1.2rem;
}
.topic-badge svg { width: 30px; height: 30px; }

/* Section icons on light content backgrounds */
.head-ico { display: flex; align-items: center; gap: .7rem; }
.sec-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 2.4rem; height: 2.4rem; border-radius: 10px; background: rgba(196,106,71,.12); color: var(--terracotta-dark); }
.sec-ico svg { width: 1.3rem; height: 1.3rem; }
/* Vision/Mission/Impact: large icon on the left, centered against the whole title+text block */
.icon-text { display: flex; gap: 2.6rem; align-items: center; }
.icon-text .pw-icon { flex: 0 0 auto; width: 150px; height: 150px; border-radius: 22px;
  background: rgba(196,106,71,.12); color: var(--terracotta-dark); display: flex; align-items: center; justify-content: center; }
.icon-text .pw-icon svg { width: 75px; height: 75px; }
.icon-text .prose h2:first-child { margin-top: 0; }
.mv-block + .mv-block { margin-top: 3rem; }

/* Who We Are: big icon hangs to the left; text block is centered on the page */
.who-feature { display: flex; align-items: center; justify-content: center; gap: 3.5rem; max-width: 920px; margin-inline: auto; }
.who-feature .prose { max-width: 560px; }
.who-feature .pw-icon-xl { flex: 0 0 auto; width: 200px; height: 200px; border-radius: 28px;
  background: rgba(196,106,71,.12); color: var(--terracotta-dark); display: flex; align-items: center; justify-content: center; }
.who-feature .pw-icon-xl svg { width: 100px; height: 100px; }

@media (max-width: 720px){
  .who-feature { flex-direction: column; gap: 1.6rem; }
  .who-feature .pw-icon-xl { width: 140px; height: 140px; }
  .who-feature .pw-icon-xl svg { width: 70px; height: 70px; }
}
@media (max-width: 600px){
  .icon-text { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .icon-text .pw-icon { width: 84px; height: 84px; border-radius: 18px; }
  .icon-text .pw-icon svg { width: 42px; height: 42px; }
}

/* Justify long-form prose; keep headings left-aligned */
.prose { text-align: justify; }
.prose h1, .prose h2, .prose h3, .prose h4 { text-align: left; }

/* --- Check-marked feature list --- */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.feature-list li {
  position: relative; padding-left: 2.5rem; color: var(--ink);
  font-size: 1.06rem; line-height: 1.5;
}
.feature-list li::before {
  content: "\2713"; position: absolute; left: 0; top: .02em;
  width: 1.7rem; height: 1.7rem; border-radius: 8px;
  background: rgba(196,106,71,.13); color: var(--terracotta-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 800; line-height: 1;
}

/* --- Simplified single-screen home --- */
body.home { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.home .home-main { flex: 1 0 auto; display: flex; }
.home-hero { flex: 1; display: flex; align-items: center; width: 100%; }
.home-hero .container { padding-block: clamp(2.5rem, 6vw, 4rem); }

/* Hamburger */
.nav-toggle { display:none; flex-direction: column; gap:5px; background:none; border:0; cursor:pointer; padding:8px; }
.nav-toggle span { width:26px; height:2px; background: var(--navy); border-radius:2px; transition: all var(--trans); }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--navy-800) 0%, var(--navy) 55%, var(--navy-700) 100%);
  color: #dce5f0; overflow: hidden;
}
.hero::before {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(700px 380px at 88% 8%, rgba(196,106,71,.22), transparent 60%),
    radial-gradient(600px 500px at 5% 100%, rgba(43,77,114,.5), transparent 60%);
  pointer-events:none;
}
.hero-grid { position:relative; padding-block: clamp(4rem, 9vw, 7rem); }
.hero h1 { color:#fff; max-width: 15ch; }
.hero .lead { color:#c5d2e2; max-width: 54ch; margin-bottom: 2rem; }
.home-hero .lead { text-align: justify; text-align-last: left; max-width: 66ch; }
.hero .btn-row { margin-top: .5rem; }
.hero-tag {
  display:inline-flex; align-items:center; gap:.6rem;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing:.15em;
  font-size:.76rem; color:#9db4d0; margin-bottom:1.4rem;
}
.hero-tag::before { content:""; width:28px; height:2px; background: var(--terracotta); }

/* =====================================================================
   PAGE HERO (interior pages)
   ===================================================================== */
.page-hero {
  background: linear-gradient(115deg, var(--navy-800), var(--navy) 70%);
  color:#cdd8e6; position:relative; overflow:hidden;
}
.page-hero::before{
  content:""; position:absolute; inset:0;
  background: radial-gradient(600px 300px at 90% 0%, rgba(196,106,71,.18), transparent 60%);
}
.page-hero .container { position:relative; padding-block: clamp(3rem, 6vw, 5rem); }
.page-hero h1 { color:#fff; margin-bottom:.4rem; }
.page-hero .lead { color:#c0cdde; max-width: 60ch; margin-bottom:0; }
.breadcrumb { font-size:.85rem; color:#8ea6c4; margin-bottom:1.1rem; font-family:var(--font-head); }
.breadcrumb a { color:#a9bdd6; }
.breadcrumb a:hover { color:#fff; }
.breadcrumb span { opacity:.5; margin:0 .4rem; }

/* =====================================================================
   GRID / CARDS
   ===================================================================== */
.grid { display:grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }

.card {
  background:#fff; border:1px solid var(--steel); border-radius: var(--radius-lg);
  padding: 1.8rem; transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  display:flex; flex-direction:column; height:100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c3ccd8; }
.card h3 { margin-bottom:.5rem; }
.card h3 a { color: var(--navy); }
.card h3 a:hover { color: var(--terracotta-dark); }
.card p { color: var(--slate); font-size:.98rem; }
.card .arrow-link { margin-top:auto; padding-top:.6rem; }

/* Pillar card with number/icon */
.pillar {
  background:#fff; border:1px solid var(--steel); border-radius: var(--radius-lg);
  padding: 1.9rem 1.6rem; height:100%; transition: all var(--trans); position:relative;
  border-top: 3px solid var(--terracotta);
}
.pillar:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pillar .pillar-icon {
  width:52px; height:52px; border-radius: 12px; background: var(--steel-light);
  display:flex; align-items:center; justify-content:center; margin-bottom:1.1rem;
  color: var(--navy);
}
.pillar .pillar-icon svg { width:26px; height:26px; }
.pillar h3 { font-size:1.18rem; }
.pillar p { color: var(--slate); font-size:.96rem; margin-bottom:0; }

/* Topic / feature tiles on navy */
.tile {
  background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding:1.7rem; height:100%;
  transition: all var(--trans);
}
.tile:hover { background: rgba(255,255,255,.08); border-color: rgba(196,106,71,.5); }
.tile h3 { color:#fff; }
.tile p { color:#b6c4d6; font-size:.96rem; margin-bottom:0; }

/* Meta labels */
.meta { display:flex; flex-wrap:wrap; gap:.6rem 1rem; align-items:center; font-size:.82rem; color: var(--slate-light); font-family: var(--font-head); margin-bottom:.7rem; }
.tag {
  display:inline-block; font-family: var(--font-head); font-size:.72rem; font-weight:600;
  text-transform: uppercase; letter-spacing:.08em; padding:.3rem .6rem; border-radius: 100px;
  background: var(--steel-light); color: var(--navy-700);
}
.tag-accent { background: rgba(196,106,71,.14); color: var(--terracotta-dark); }
.tag-outline { background: transparent; border:1px solid var(--steel); color: var(--slate); }

/* Section header */
.section-head { max-width: 760px; margin-bottom: 2.6rem; }
.section-head.center { margin-inline:auto; text-align:center; }
.section-head p { color: var(--slate); font-size:1.1rem; margin-bottom:0; }
.section-head-row { display:flex; justify-content:space-between; align-items:flex-end; gap:1.5rem; flex-wrap:wrap; margin-bottom:2.4rem; }
.section-head-row .section-head { margin-bottom:0; }

/* Stats */
.stat-row { display:grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap:1.5rem; }
.stat { text-align:center; }
.stat .num { font-family: var(--font-head); font-size: clamp(2.2rem,4vw,3rem); font-weight:600; color: var(--navy); line-height:1; }
.bg-navy .stat .num { color:#fff; }
.stat .num .accent { color: var(--terracotta); }
.stat .label { font-size:.9rem; color: var(--slate); margin-top:.5rem; }
.bg-navy .stat .label { color:#a9bdd6; }

/* List of links (publications/news) */
.entry-list { list-style:none; padding:0; margin:0; }
.entry {
  display:grid; grid-template-columns: 130px 1fr; gap: 1.5rem;
  padding: 1.6rem 0; border-bottom:1px solid var(--steel);
}
.entry:first-child { border-top:1px solid var(--steel); }
.entry .entry-date { font-family: var(--font-head); font-size:.85rem; color: var(--slate-light); padding-top:.15rem; }
.entry h3 { font-size:1.22rem; margin-bottom:.35rem; }
.entry h3 a { color: var(--navy); }
.entry h3 a:hover { color: var(--terracotta-dark); }
.entry p { color: var(--slate); font-size:.98rem; margin-bottom:.5rem; }

/* Two-column prose layout */
.split { display:grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem,5vw,4.5rem); align-items:center; }
.split.reverse .split-media { order:2; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.media-frame {
  border-radius: var(--radius-lg); overflow:hidden; background: var(--navy);
  aspect-ratio: 4/3; display:flex; align-items:center; justify-content:center; color:#fff;
  position:relative;
}
.media-frame.terr { background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark)); }
.media-frame.steel { background: linear-gradient(135deg, var(--navy-700), var(--navy)); }
.media-frame .frame-label { font-family: var(--font-head); font-size:.8rem; text-transform:uppercase; letter-spacing:.15em; opacity:.75; position:absolute; bottom:1rem; left:1.2rem; }

/* Prose blocks */
.prose > *:first-child { margin-top:0; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul li, .prose ol li { margin-bottom:.4rem; }
.prose blockquote {
  margin: 2rem 0; padding: 1rem 1.6rem; border-left: 3px solid var(--terracotta);
  background: var(--steel-50); font-size:1.15rem; color: var(--navy); font-style: italic;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose blockquote p:last-child { margin-bottom:0; }

/* Definition / value list */
.value-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap:1.4rem; }
.value {
  padding:1.5rem; border-radius: var(--radius-lg); background:#fff; border:1px solid var(--steel);
  border-left: 3px solid var(--terracotta);
}
.value h4 { color:var(--navy); margin-bottom:.4rem; font-size:1.08rem; }
.value p { color: var(--slate); font-size:.95rem; margin-bottom:0; }

/* Timeline */
.timeline { position:relative; margin-left: 0; padding-left: 0; list-style:none; }
.timeline::before { content:""; position:absolute; left: 7px; top:6px; bottom:6px; width:2px; background: var(--steel); }
.timeline li { position:relative; padding-left: 2.4rem; padding-bottom: 1.9rem; }
.timeline li::before { content:""; position:absolute; left:0; top:5px; width:16px; height:16px; border-radius:50%; background:#fff; border:3px solid var(--terracotta); }
.timeline .yr { font-family: var(--font-head); font-weight:600; color: var(--terracotta-dark); font-size:1.05rem; }
.timeline h4 { margin:.1rem 0 .3rem; }
.timeline p { color: var(--slate); font-size:.96rem; margin-bottom:0; }

/* Team grid */
.person { text-align:left; }
.person .avatar {
  aspect-ratio: 1/1; border-radius: var(--radius-lg); margin-bottom: .9rem;
  background: linear-gradient(150deg, var(--navy-600), var(--navy)); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-head); font-size: 2.2rem; font-weight:500; letter-spacing:.02em;
}
.person h4 { margin-bottom:.1rem; font-size:1.1rem; }
.person .role { color: var(--terracotta-dark); font-family: var(--font-head); font-size:.9rem; margin-bottom:.4rem; }
.person p { color: var(--slate); font-size:.92rem; margin-bottom:0; }
/* Photo placeholder avatar (grey box, same size as initials avatar) */
.avatar.avatar-photo { background: var(--steel); overflow:hidden; padding:0; }
.avatar.avatar-photo img { width:100%; height:100%; object-fit:cover; display:block; }

/* Featured team member card — photo left, name/title beside, full bio below.
   Repeatable template for detailed member profiles. */
.board-feature {
  background:#fff; border:1px solid var(--steel); border-radius: var(--radius-lg);
  padding: clamp(1.4rem,3vw,2rem); margin-top: 2rem;
}
.board-feature-head { display:flex; align-items:center; gap: clamp(1.2rem,3vw,1.8rem); margin-bottom:1.5rem; }
.board-feature-photo {
  flex:0 0 auto; width: 150px; border-radius: var(--radius); overflow:hidden;
  background: var(--steel); aspect-ratio: 3/4;
}
.board-feature-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.board-feature-title h3 { margin:0 0 .25rem; }
.board-feature-title .role { color: var(--terracotta-dark); font-family: var(--font-head); font-weight:500; margin:0; }
.board-feature-bio p { color: var(--slate); }
.board-feature-bio p:last-child { margin-bottom:0; }
@media (max-width: 560px){
  .board-feature-head { flex-direction:column; align-items:flex-start; }
  .board-feature-photo { width: 160px; }
}

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--navy-700)); color:#fff; border-radius: var(--radius-lg); padding: clamp(2.4rem,5vw,3.6rem); position:relative; overflow:hidden; }
.cta-band::after { content:""; position:absolute; right:-40px; top:-40px; width:220px; height:220px; border-radius:50%; background: radial-gradient(circle, rgba(196,106,71,.3), transparent 70%); }
.cta-band h2 { color:#fff; }
.cta-band p { color:#c5d2e2; }
.cta-band .btn-row { position:relative; }

/* Feature-callout / highlight */
.callout { background: var(--steel-50); border:1px solid var(--steel); border-radius: var(--radius-lg); padding: 1.7rem 1.9rem; }
.callout.accent { border-left: 4px solid var(--terracotta); }

/* Contact form */
.form-grid { display:grid; gap:1.1rem; }
.field label { display:block; font-family: var(--font-head); font-weight:500; font-size:.9rem; color: var(--navy); margin-bottom:.35rem; }
.field input, .field select, .field textarea {
  width:100%; padding:.8rem .9rem; border:1.5px solid var(--steel); border-radius: var(--radius);
  font-family: var(--font-body); font-size:1rem; color: var(--ink); background:#fff; transition: border-color var(--trans), box-shadow var(--trans);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline:none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(43,77,114,.12);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-row-2 { display:grid; grid-template-columns:1fr 1fr; gap:1.1rem; }
.form-note { font-size:.85rem; color: var(--slate-light); }

/* Info list (contact) */
.info-list { list-style:none; padding:0; margin:0; display:grid; gap:1.4rem; }
.info-list li { display:flex; gap:.9rem; align-items:flex-start; }
.info-list .ic { flex-shrink:0; width:40px; height:40px; border-radius:10px; background: var(--steel-light); display:flex; align-items:center; justify-content:center; color: var(--navy); }
.info-list .ic svg { width:20px; height:20px; }
.info-list strong { display:block; color: var(--navy); font-family:var(--font-head); }
.info-list a, .info-list span { color: var(--slate); }

/* Sub-page nav (pills) */
.subnav { display:flex; flex-wrap:wrap; gap:.6rem; margin-bottom: 2.5rem; }
.subnav a {
  font-family: var(--font-head); font-size:.92rem; font-weight:500; padding:.5rem 1rem;
  border-radius: 100px; border:1px solid var(--steel); color: var(--navy); background:#fff;
}
.subnav a:hover { border-color: var(--navy); color: var(--terracotta-dark); }
.subnav a.active { background: var(--navy); color:#fff; border-color: var(--navy); }

/* FAQ / accordion-ish */
.faq { border-top:1px solid var(--steel); }
.faq details { border-bottom:1px solid var(--steel); }
.faq summary { cursor:pointer; padding:1.2rem 0; font-family:var(--font-head); font-weight:500; font-size:1.1rem; color:var(--navy); list-style:none; display:flex; justify-content:space-between; gap:1rem; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; color:var(--terracotta); font-size:1.4rem; line-height:1; transition: transform var(--trans); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color:var(--slate); padding-bottom:1.2rem; margin:0; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--navy-800); color:#a9bdd6; padding-block: clamp(3rem,5vw,4.2rem) 0; }
.footer-top { display:flex; flex-wrap:wrap; align-items:flex-start; gap: 2.2rem; padding-bottom: 3rem; }
.footer-brand { margin-right: auto; }
@media (min-width: 681px){ .footer-col--services a { white-space: nowrap; } }
.footer-org { white-space: nowrap; }
.footer-location { display: flex; align-items: center; gap: .45rem; margin-top: .55rem; }
.footer-location svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--terracotta); }
.footer-email { margin-top: .55rem; }
.footer-brand img { height: 84px; width:auto; margin-bottom:1.2rem; }
.footer-brand p { color:#8ea6c4; font-size:.95rem; max-width: 34ch; }
.footer-col h4 { color:#fff; font-size:.95rem; text-transform:uppercase; letter-spacing:.1em; margin-bottom:1.1rem; font-weight:600; }
.footer-col ul { list-style:none; padding:0; margin:0; }
.footer-col li { margin-bottom:.6rem; }
.footer-col a { color:#a9bdd6; font-size:.95rem; }
.footer-col a:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); padding-block:1.6rem; display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap; }
.footer-bottom p { margin:0; font-size:.85rem; color:#7c93b0; }
.footer-social { display:flex; gap:.6rem; }
.footer-social a, .footer-social span { width:36px; height:36px; border-radius:8px; border:1px solid rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; color:#a9bdd6; }
.footer-social a:hover { background: var(--terracotta); border-color: var(--terracotta); color:#fff; }
.footer-social span { cursor: default; opacity: .7; }
.footer-social svg { width:17px; height:17px; }
.footer-badge { display:flex; align-items:center; gap:.6rem; font-size:.82rem; color:#8ea6c4; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px){
  .footer-top { gap: 2rem 3rem; }
  .footer-brand { margin-right: 0; flex: 1 1 100%; }
}
@media (max-width: 860px){
  .footer-col { flex: 1 1 100%; }
}
@media (max-width: 960px){
  :root { --header-h: 72px; }
  .header-cta { display:none; }
  .nav-toggle { display:flex; }
  .main-nav {
    position: fixed; top: 100%; right: 0; left: auto; bottom: auto;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    width: min(360px, 88vw);
    background:#fff; border-left:1px solid var(--steel); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform var(--trans);
    overflow-y:auto; padding: 1rem 1.1rem 3rem; display:block;
  }
  .main-nav.open { transform: translateX(0); }
  body.nav-open { overflow:hidden; }
  .nav-list { flex-direction:column; align-items:stretch; gap:0; }
  .nav-item { border-bottom:1px solid var(--steel-light); }
  .nav-link { justify-content:space-between; padding:.95rem .4rem; font-size:1.05rem; }
  .nav-link .caret { transform: rotate(45deg); position: relative; }
  .nav-item.expanded .caret { transform: rotate(225deg); }
  /* Enlarge the caret's tap target on mobile without changing the arrow,
     so Expertise/Services labels stay tappable while the caret expands. */
  .nav-link[href] .caret::before { content: ""; position: absolute; top: -20px; bottom: -20px; left: -30px; right: -14px; transform: rotate(-45deg); }
  .dropdown {
    position:static; opacity:1; visibility:visible; transform:none; box-shadow:none;
    border:0; border-radius:0; padding:0 0 .6rem .4rem; min-width:0;
    display:none; background:transparent;
  }
  .nav-item.expanded .dropdown { display:block; }
  .dropdown a { padding:.55rem .8rem; }
  .dropdown a span { display:none; }
  .mobile-cta { display:block; margin-top:1.2rem; }
  .mobile-cta .btn { width:100%; justify-content:center; }

  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .split { grid-template-columns:1fr; gap:2rem; }
  .split.reverse .split-media { order:0; }
  .split-media { max-width:520px; }
  .entry { grid-template-columns:1fr; gap:.5rem; }
  .entry .entry-date { padding-top:0; }
  .form-row-2 { grid-template-columns:1fr; }
  .footer-bottom { flex-direction:column; align-items:flex-start; }
}
@media (min-width:961px){ .mobile-cta { display:none; } }
@media (max-width: 560px){
  body { font-size:16px; }
  .grid-auto { grid-template-columns:1fr; }
  .footer-top { gap: 1.6rem; }
  .btn { width:100%; justify-content:center; }
  .btn-row .btn { width:auto; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  * { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
