/* ==========================================================
   Octave TalMar — Home
   ========================================================== */

:root {
  --navy: #0c4c66;          /* header / primary */
  --navy-deep: #043a52;     /* footer, bands, icon circles */
  --navy-ink: #0b3a50;      /* heading text on light */
  --gold: #d7b178;
  --gold-deep: #c99a57;
  --pale: #e7f2f4;          /* section tint */
  --pale-2: #f3f8f9;
  --paper: #fafcfc;
  --card: #ffffff;
  --text: #28414e;
  --muted: #5f7784;
  --line: #d4e3e8;

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(4, 58, 82, .06), 0 8px 24px rgba(4, 58, 82, .08);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--gold); color: var(--navy-deep); padding: 8px 14px; font-weight: 600; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- icons ---------- */
.icon { width: 1.05em; height: 1.05em; flex: none; vertical-align: middle; }
.icon-xs { width: .8em; height: .8em; }
.icon-lg { width: 26px; height: 26px; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #e2c08c; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); box-shadow: 0 6px 18px rgba(4,58,82,.25); }
.btn-outline { background: rgba(255,255,255,.72); color: var(--navy); border-color: var(--navy); backdrop-filter: blur(2px); }
.btn-outline:hover { background: #fff; }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.85); }
.btn-outline-light:hover { background: #fff; color: var(--navy-deep); }
.btn-lg { padding: 14px 26px; font-size: 16px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--navy); font-weight: 600; font-size: 14.5px;
}
.text-link .icon { color: var(--gold-deep); transition: transform .2s; }
.text-link:hover { color: var(--navy-deep); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- section typography ---------- */
.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1;
  color: var(--navy-ink);
}
.section-label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--navy-ink);
}
.section-label::before { content: ""; width: 40px; height: 2px; background: var(--gold); }
.gold-rule { display: block; width: 40px; height: 2px; background: var(--gold); }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: 58px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav > ul { display: flex; align-items: center; gap: 30px; }
.main-nav > ul > li > a,
.dropdown-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  color: #fff; font-size: 15px; font-weight: 500;
  padding: 8px 0; position: relative;
}
.main-nav > ul > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.main-nav > ul > li > a:hover::after,
.main-nav > ul > li > a.is-active::after { transform: scaleX(1); }

.has-dropdown { position: relative; }
.dropdown-toggle .icon { transition: transform .2s; }
.dropdown {
  position: absolute; top: calc(100% + 18px); left: -16px; min-width: 220px;
  background: var(--navy-deep);
  padding: 10px 0; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 16px 36px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; } /* hover bridge */
.dropdown a { display: block; padding: 8px 18px; color: #e6eff2; font-size: 14.5px; transition: background .15s, color .15s; }
.dropdown a:hover { background: rgba(255,255,255,.06); color: var(--gold); }
.has-dropdown:hover .dropdown,
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
.has-dropdown:hover .dropdown-toggle .icon,
.has-dropdown.is-open .dropdown-toggle .icon { transform: rotate(180deg); }

.menu-toggle { display: none; color: #fff; padding: 8px; margin-right: -8px; }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(460px, 42vw, 600px);
  display: flex; align-items: center;
  background: #dfe8ea;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% 60%;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; animation: hero-zoom 9s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-dots { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 1px 4px rgba(0,0,0,.3); transition: width .3s, background .3s; }
.hero-dots button.is-active { width: 28px; border-radius: 5px; background: var(--gold); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    rgba(246,249,250,.96) 0%,
    rgba(246,249,250,.9) 30%,
    rgba(246,249,250,.55) 48%,
    rgba(246,249,250,0) 66%);
}
.hero-content { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 56px; }
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.005em;
  color: var(--navy-ink);
}
.hero-lead { max-width: 520px; margin-top: 20px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; color: #1f3643; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ==========================================================
   About band
   ========================================================== */
.about-band { background: var(--navy-deep); color: #fff; }
.about-inner {
  display: grid; grid-template-columns: 1.05fr auto 1fr; align-items: center; gap: 56px;
  padding-top: 44px; padding-bottom: 44px;
}
.about-inner::before { content: ""; grid-column: 2; grid-row: 1; width: 2px; height: 88px; background: var(--gold); opacity: .8; }
.about-quote {
  grid-column: 1; grid-row: 1;
  font-family: var(--serif); font-size: clamp(24px, 2.4vw, 31px); line-height: 1.2;
}
.quote-mark { color: #fff; }
.about-text { grid-column: 3; grid-row: 1; font-size: 17px; line-height: 1.6; color: #dde9ee; }

/* ==========================================================
   Process
   ========================================================== */
.process { background: #f5f9fb; padding: 36px 0 32px; }
.process-steps {
  display: grid; grid-template-columns: repeat(8, 1fr);
  margin: 26px 0 18px; counter-reset: step;
}
.process-steps li {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
}
.process-steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 34px; right: -9px;
  width: 16px; height: 10px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 5h13M10 1l4 4-4 4' fill='none' stroke='%23c99a57' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.step-icon {
  position: relative; width: 68px; height: 68px; border-radius: 50%;
  background: var(--navy-deep); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(4,58,82,.18);
  transition: transform .25s, background .25s;
}
.step-icon svg { width: 34px; height: 34px; }
.step-num {
  position: absolute; top: -6px; left: -2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: var(--navy-deep);
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid #f5f9fb;
}
.process-steps li:hover .step-icon { transform: translateY(-3px); background: var(--navy); }
.step-title { font-size: 15px; font-weight: 500; line-height: 1.25; color: var(--navy-ink); max-width: 130px; }

/* ==========================================================
   Featured projects
   ========================================================== */
.projects { background: var(--pale); padding: 36px 0 44px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.project-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.project-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(4,58,82,.06), 0 18px 40px rgba(4,58,82,.14); }
.project-media { position: relative; aspect-ratio: 16 / 7.4; overflow: hidden; background: var(--navy-deep); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card:hover .project-media img { transform: scale(1.03); }
.status-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--navy-deep); color: #fff;
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 2px;
}
.project-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 36px 16px 12px;
  background: linear-gradient(180deg, rgba(4,58,82,0) 0%, rgba(4,58,82,.72) 45%, rgba(4,58,82,.92) 100%);
  color: #fff;
}
.project-caption h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.05; }
.project-caption p { font-size: 15px; font-weight: 500; margin-top: 2px; color: #e7f0f3; }
.usda-pill {
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--navy-ink);
  padding: 7px 12px; border-radius: var(--radius);
  font-size: 12.5px; line-height: 1.25;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.usda-pill .icon { width: 26px; height: 26px; color: #4c8a3f; }
.usda-pill strong { display: block; font-weight: 600; font-size: 13.5px; }

.project-body { padding: 16px 16px 14px; display: flex; flex-direction: column; flex: 1; }
.project-desc { font-size: 15px; color: var(--text); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.project-body h4 { font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--navy-ink); margin: 12px 0 10px; }
.glance { display: grid; grid-template-columns: repeat(3, 1fr); }
.glance > div { padding: 0 14px; }
.glance > div:first-child { padding-left: 4px; }
.glance > div + div { border-left: 1px solid var(--line); }
.glance h5 { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--navy-ink); margin-bottom: 8px; }
.glance h5 .icon { width: 22px; height: 22px; color: var(--navy); }
.glance li { font-size: 13.5px; color: var(--muted); line-height: 1.55; padding-left: 10px; position: relative; }
.glance li::before { content: "·"; position: absolute; left: 0; font-weight: 700; }
.project-links { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding: 16px 4px 0; }

/* ==========================================================
   Who we serve
   ========================================================== */
.serve { background: var(--pale-2); padding: 34px 0 40px; }
.serve-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 18px; }
.serve-card {
  background: var(--pale); border: 1px solid transparent; border-radius: var(--radius);
  padding: 22px 16px 18px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.serve-card:hover { background: #fff; border-color: var(--line); transform: translateY(-3px); box-shadow: var(--shadow); }
.serve-icon { width: 44px; height: 44px; color: var(--navy); margin-bottom: 12px; }
.serve-card h3 { font-family: var(--sans); font-size: 16.5px; font-weight: 600; line-height: 1.25; color: var(--navy-ink); }
.serve-card p { font-size: 14px; color: var(--muted); margin: 6px 0 12px; line-height: 1.4; max-width: 190px; }
.serve-card p { margin-bottom: 0; }
.serve-more { display: flex; justify-content: center; margin-top: 28px; }

/* ==========================================================
   Leadership (homepage)
   ========================================================== */
.leadership-home { background: var(--paper); padding: 52px 0 56px; }
.leadership-home .section-head { margin-bottom: 26px; }
.leader-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.leader-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
.leader-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(4,58,82,.06), 0 18px 40px rgba(4,58,82,.14); }
.leader-photo { display: block; aspect-ratio: 4 / 4.2; overflow: hidden; background: #3d4f5a; }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s ease; }
.leader-card:hover .leader-photo img { transform: scale(1.03); }
.leader-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 20px; border-top: 3px solid var(--gold); }
.leader-info h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; color: var(--navy-ink); }
.leader-info h3 a:hover { color: var(--navy); }
.leader-info .leader-role { margin-top: 5px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.leader-linkedin {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: var(--navy); border: 1.5px solid var(--line); transition: color .2s, border-color .2s, background .2s;
}
.leader-linkedin .icon { width: 18px; height: 18px; }
.leader-linkedin:hover { color: #fff; background: var(--navy); border-color: var(--navy); }

/* ==========================================================
   Community engagement
   ========================================================== */
.engage { display: grid; grid-template-columns: 52% 48%; background: var(--navy-deep); min-height: 420px; }
.engage-media { position: relative; min-height: 340px; background: var(--navy-deep); overflow: hidden; }
.engage-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

/* ---------- Location (map) ---------- */
.location { background: var(--navy-deep); color: #fff; padding: 60px 0 64px; }
.section-label--light { color: #fff; }
.location-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 28px; }
.location-title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; margin-top: 12px; }
.location-lead { font-size: 17px; line-height: 1.6; color: #cfe0e7; }
.location-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 24px; align-items: stretch; }
.location-map { position: relative; isolation: isolate; min-height: 520px; border-radius: 6px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); }
#location-map { position: absolute; inset: 0; background: #0b2533; }
#location-map .leaflet-tile-pane { filter: sepia(1) hue-rotate(165deg) saturate(2.6) brightness(.78) contrast(1.1); }
.map-legend {
  position: absolute; left: 14px; bottom: 14px; z-index: 500; display: flex; flex-wrap: wrap; gap: 6px 16px;
  background: rgba(4,30,44,.82); backdrop-filter: blur(4px); padding: 9px 14px; border-radius: 4px; font-size: 12.5px; color: #dce8ed;
}
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg-pin { width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(215,177,120,.3); }
.lg-route { width: 22px; height: 3px; border-radius: 2px; background: var(--gold); }

.location-cards { display: flex; flex-direction: column; gap: 16px; }
.loc-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 6px; padding: 20px 22px; transition: background .25s, border-color .25s; cursor: pointer; }
.loc-card:hover, .loc-card.is-active { background: rgba(255,255,255,.09); border-color: rgba(215,177,120,.55); }
.loc-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.loc-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy-deep); font-weight: 700; font-size: 15px; }
.loc-card h4 { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.1; }
.loc-card-head p { font-size: 14px; color: #b9cfd8; margin-top: 2px; }
.loc-stats { margin: 0; }
.loc-stat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.1); }
.loc-stat dt { font-size: 14.5px; color: #cfe0e7; }
.loc-stat dd { margin: 0; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.loc-stat strong { font-size: 16px; color: #fff; }
.loc-stat span { font-size: 13.5px; color: #b9cfd8; min-width: 92px; text-align: right; }
.loc-stat--main dt { color: #fff; font-weight: 600; }
.loc-stat--main strong { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--gold); }
.loc-note { font-size: 12.5px; color: #9fb8c3; font-style: italic; margin-top: auto; }
.engage-content { color: #fff; padding: 52px clamp(24px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.engage-content h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.15; margin: 14px 0 16px; max-width: 420px; }
.engage-content p { font-size: 17px; line-height: 1.6; color: #dce8ed; max-width: 560px; margin-bottom: 24px; }

/* map labels */
.map-label {
  color: #fff; font-family: var(--sans); font-weight: 700; font-size: 15px; line-height: 1.1;
  text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 0 10px rgba(0,0,0,.6);
  white-space: nowrap; text-align: center;
}
.map-label small { display: block; font-weight: 600; font-size: 12.5px; }
.map-label--county { font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.map-label--project { background: var(--navy-deep); padding: 6px 11px 7px; border-radius: 3px; border-left: 3px solid var(--gold); text-shadow: none; box-shadow: 0 4px 12px rgba(0,0,0,.35); font-size: 14.5px; text-align: left; }
.map-label--city { background: #fff; color: var(--navy-deep); padding: 7px 12px 8px; border-radius: 3px; text-shadow: none; box-shadow: 0 6px 18px rgba(0,0,0,.4); font-size: 15px; text-align: left; }
.map-label--city small { color: var(--muted); font-weight: 500; }
.map-label--dist { background: var(--gold); color: var(--navy-deep); padding: 4px 9px; border-radius: 20px; text-shadow: none; font-size: 12.5px; font-weight: 700; box-shadow: 0 3px 10px rgba(0,0,0,.35); }
.map-city { display: grid; place-items: center; }
.map-city span { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--navy); box-shadow: 0 0 0 6px rgba(255,255,255,.18), 0 4px 10px rgba(0,0,0,.4); }
.map-city span::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); animation: city-pulse 2.6s ease-out infinite; }
@keyframes city-pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.route-line { stroke-dasharray: 1 0; }
.map-label--project small { font-weight: 500; font-size: 12px; color: #cfe0e7; margin-top: 2px; }
.map-label--town { font-size: 13.5px; font-weight: 600; }
.map-pin svg { filter: drop-shadow(0 3px 5px rgba(0,0,0,.45)); }
.leaflet-container { font-family: var(--sans); }
.leaflet-control-attribution { font-size: 10px; }

/* ==========================================================
   Trio: voices / leadership / news
   ========================================================== */
.trio { background: var(--paper); padding: 30px 0; }
.trio-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.trio-grid--two { grid-template-columns: 1fr 1fr; }
.trio { background: var(--navy); border-top: 0; }
.trio .trio-col + .trio-col { border-color: rgba(255,255,255,.18) !important; }
.trio .trio-icon { color: var(--gold); }
.trio .trio-col h3 { color: #fff; }
.trio .trio-col p { color: #cfe0e7; }
.trio .text-link { color: #fff; }
.trio .text-link .icon { color: var(--gold); }
.trio .text-link:hover { color: var(--gold); }
.trio-col { display: flex; gap: 14px; padding: 4px 30px; }
.trio-col:first-child { padding-left: 0; }
.trio-col:last-child { padding-right: 0; }
.trio-col + .trio-col { border-left: 1px solid var(--line); }
.trio-icon { width: 28px; height: 28px; color: var(--navy); flex: none; margin-top: 2px; }
.trio h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--navy-ink); line-height: 1.2; }
.trio p { font-size: 14.5px; color: var(--muted); margin: 8px 0 12px; line-height: 1.5; }
.leadership > div { flex: 1; min-width: 0; }
.leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 14px 0 14px; }
.leaders a { display: flex; flex-direction: column; }
.leaders img {
  width: 100%; height: auto; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center 15%;
  border-radius: 2px; box-shadow: var(--shadow); margin-bottom: 8px;
  transition: transform .3s, box-shadow .3s;
}
.leaders a:hover img { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(4,58,82,.06), 0 12px 26px rgba(4,58,82,.16); }
.leaders .leader-name { font-family: var(--serif); font-size: 15.5px; line-height: 1.2; color: var(--navy-ink); transition: color .2s; }
.leaders a:hover .leader-name { color: var(--navy); }
.leaders .leader-role { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); margin-top: 3px; line-height: 1.3; }

/* ==========================================================
   Resources bar
   ========================================================== */
.resources { background: var(--pale); padding: 18px 0; border-top: 1px solid var(--line); }
.resources-inner { display: flex; align-items: center; gap: 28px; }
.res-intro { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; padding-right: 28px; border-right: 1px solid #c5d8df; }
.res-intro-icon { width: 34px; height: 34px; color: var(--navy); }
.res-intro h3 { font-size: 16px; font-weight: 700; color: var(--navy-ink); }
.res-intro p { font-size: 13.5px; color: var(--muted); max-width: 200px; line-height: 1.35; }
.res-list { display: flex; flex: 1; justify-content: space-between; }
.res-list li + li { border-left: 1px solid #c5d8df; }
.res-list li { flex: 1; display: flex; justify-content: center; }
.res-list a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; font-size: 13.5px; line-height: 1.25; color: var(--navy-ink); transition: color .2s; }
.res-list .icon { width: 26px; height: 26px; color: var(--navy); transition: transform .2s; }
.res-list span { max-width: 96px; }
.res-list a:hover { color: var(--navy); }
.res-list a:hover .icon { transform: translateY(-2px); }

/* ==========================================================
   FAQ
   ========================================================== */
.faq { background: var(--paper); padding: 56px 0; }
.faq-inner { display: grid; grid-template-columns: 0.85fr 1.4fr; gap: 64px; align-items: start; }
.faq-intro .section-title { margin: 14px 0 12px; }
.faq-intro p { font-size: 16px; color: var(--muted); margin-bottom: 18px; max-width: 360px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 4px; font-size: 17px; font-weight: 600; color: var(--navy-ink);
  transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--line);
  background: no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%230c4c66' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform .25s, background-color .25s, border-color .25s;
}
.faq-list summary:hover { color: var(--navy); }
.faq-list summary:hover::after { border-color: var(--gold); }
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--pale); border-color: var(--gold); }
.faq-list details p { padding: 0 48px 22px 4px; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.faq-list .faq-pending { font-style: italic; }

/* ==========================================================
   Newsletter
   ========================================================== */
.newsletter { background: var(--pale); padding: 48px 0; }
.newsletter-card {
  display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 40px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px 40px; border-top: 3px solid var(--gold);
}
.newsletter-copy { display: flex; align-items: flex-start; gap: 18px; }
.newsletter-icon { width: 46px; height: 46px; flex: none; color: var(--navy); padding: 10px; border-radius: 50%; background: var(--pale); }
.newsletter h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; color: var(--navy-ink); }
.newsletter-copy p { margin-top: 6px; font-size: 16px; color: var(--muted); }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 12px; }
.newsletter-form input {
  flex: 1 1 240px; min-width: 0; height: 50px; padding: 0 16px;
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.newsletter-form input::placeholder { color: #8aa0ab; }
.newsletter-form input:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(12,76,102,.12); }
.newsletter-form input[aria-invalid="true"] { border-color: #b4483c; }
.newsletter-form .btn { height: 50px; padding: 0 26px; }
.newsletter-msg { flex-basis: 100%; min-height: 1.4em; font-size: 14.5px; color: var(--muted); }
.newsletter-msg.is-error { color: #b4483c; }
.newsletter-msg.is-success { color: #2f7a4b; font-weight: 600; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ==========================================================
   CTA
   ========================================================== */
.cta { position: relative; color: #fff; background: var(--navy); border-top: 3px solid var(--gold); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; }
.cta p { font-size: 17px; margin-top: 6px; color: #e3edf1; }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { background: var(--navy-deep); color: #d9e6eb; font-size: 15px; }
.footer-main {
  display: grid; grid-template-columns: 1.25fr 1fr 1fr 1.25fr auto; align-items: center;
  padding-top: 34px; padding-bottom: 34px;
}
.footer-main > * { padding: 0 28px; }
.footer-main > *:first-child { padding-left: 0; }
.footer-main > *:last-child { padding-right: 0; }
.footer-main > * + * { border-left: 1px solid rgba(255,255,255,.18); }
.footer-brand img { width: 250px; height: auto; }
.footer-links li + li, .footer-contact li + li { margin-top: 6px; }
.footer-links a, .footer-contact a { transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact li { display: flex; align-items: center; gap: 12px; }
.footer-contact .icon { width: 20px; height: 20px; color: #fff; }
.ehl { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; border-left: 0 !important; padding-left: 48px !important; }
.ehl svg { width: 58px; height: 58px; }
.ehl span { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-align: center; line-height: 1.15; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; font-size: 13.5px; }
.footer-bottom ul { display: flex; }
.footer-bottom li + li { border-left: 1px solid rgba(255,255,255,.3); }
.footer-bottom li a { padding: 0 14px; transition: color .2s; }
.footer-bottom li:last-child a { padding-right: 0; }
.footer-bottom a:hover { color: var(--gold); }

/* ==========================================================
   Inner page hero (About / Team)
   ========================================================== */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--navy-deep) url("../assets/img/hero-white-overlook.jpg") 70% 55%/cover no-repeat;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,58,82,.97) 0%, rgba(4,58,82,.9) 45%, rgba(4,58,82,.62) 100%);
}
.page-hero-inner { position: relative; padding-top: 40px; padding-bottom: 64px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #b9d0d9; margin-bottom: 44px; }
.breadcrumb a { color: #fff; transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.eyebrow--light { color: var(--gold); }
.page-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.04; }
.page-hero-lead { max-width: 640px; margin-top: 18px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: #dce8ed; }

/* ==========================================================
   Team
   ========================================================== */
.team-section { background: var(--paper); padding: 56px 0 64px; scroll-margin-top: var(--header-h); }
.team-section--tint { background: var(--pale); }
.team-head { margin-bottom: 28px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.team-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.team-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(4,58,82,.06), 0 18px 40px rgba(4,58,82,.14); }
.team-photo { position: relative; aspect-ratio: 4 / 4.2; overflow: hidden; background: var(--pale); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform .6s ease; }
.team-card:hover .team-photo img { transform: scale(1.03); }
.team-photo--monogram {
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.team-photo--monogram span {
  font-family: var(--serif); font-size: clamp(56px, 6vw, 84px); color: var(--gold); letter-spacing: .02em;
  width: 2.1em; height: 2.1em; display: grid; place-items: center;
  border: 1.5px solid rgba(215,177,120,.55); border-radius: 50%;
}
.team-body { padding: 22px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.team-name { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; color: var(--navy-ink); }
.team-role {
  margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-deep); line-height: 1.4;
}
.team-excerpt { margin: 14px 0 18px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.team-actions { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.team-actions .text-link { font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; padding: 0; }
.team-linkedin { color: var(--navy); display: inline-flex; transition: color .2s; }
.team-linkedin .icon { width: 22px; height: 22px; }
.team-linkedin:hover { color: var(--gold-deep); }

/* ---------- bio dialog ---------- */
.bio-dialog {
  width: min(960px, calc(100% - 32px)); max-height: calc(100vh - 48px);
  padding: 0; border: 0; border-radius: 6px; background: #fff; color: var(--text);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  overflow: hidden;
}
.bio-dialog::backdrop { background: rgba(4, 30, 44, .72); backdrop-filter: blur(3px); }
.bio-dialog[open] { animation: bio-in .28s ease; }
@keyframes bio-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.bio-dialog-inner { display: grid; grid-template-columns: 340px 1fr; max-height: calc(100vh - 48px); }
.bio-dialog-photo { background: var(--pale); min-height: 100%; }
.bio-dialog-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.bio-dialog-photo { overflow: hidden; }
.bio-dialog-photo .team-photo { height: 100%; aspect-ratio: auto; }
.bio-dialog-photo .team-photo img { transform: none !important; }
.bio-dialog-body { padding: 40px 44px 40px; overflow-y: auto; }
.bio-dialog-body .team-role { margin-top: 0; }
.bio-dialog-name { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; color: var(--navy-ink); margin: 6px 0 16px; }
.bio-dialog-text p { font-size: 16px; line-height: 1.7; color: var(--text); }
.bio-dialog-text p + p { margin-top: 14px; }
.bio-dialog-body .gold-rule { margin-bottom: 20px; }
.bio-linkedin { margin-top: 26px; }
.bio-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--navy-deep); box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: background .2s, transform .2s;
}
.bio-close:hover { background: var(--gold); transform: rotate(90deg); }
.bio-close .icon { width: 18px; height: 18px; }
body.dialog-open { overflow: hidden; }

/* ---------- shared modal (request form, project FAQs) ---------- */
button.text-link { font: inherit; font-weight: 600; font-size: 14.5px; padding: 0; cursor: pointer; }
.modal {
  width: min(720px, calc(100% - 32px)); max-height: calc(100vh - 48px);
  padding: 0; border: 0; border-radius: 6px; background: #fff; color: var(--text);
  box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden;
}
.modal::backdrop { background: rgba(4, 30, 44, .72); backdrop-filter: blur(3px); }
.modal[open] { animation: bio-in .28s ease; }
.modal-inner { position: relative; max-height: calc(100vh - 48px); overflow-y: auto; padding: 40px 44px 36px; border-top: 4px solid var(--gold); }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pale); color: var(--navy-deep);
  transition: background .2s, transform .2s;
}
.modal-close:hover { background: var(--gold); transform: rotate(90deg); }
.modal-close .icon { width: 18px; height: 18px; }
.modal-head { margin-bottom: 22px; padding-right: 40px; }
.modal-head .team-role { margin-top: 0; }
.modal-title { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 34px); line-height: 1.12; color: var(--navy-ink); margin-top: 6px; }
.modal-sub { margin-top: 8px; font-size: 16px; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field > span { font-size: 14px; font-weight: 600; color: var(--navy-ink); }
.field em { color: #b4483c; font-style: normal; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--text);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 11px 14px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field select { appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--paper) no-repeat right 14px center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230c4c66' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background-color: #fff; box-shadow: 0 0 0 3px rgba(12,76,102,.12); }
.field [aria-invalid="true"] { border-color: #b4483c; }
.form-msg { min-height: 1.4em; margin-top: 12px; font-size: 14.5px; color: #b4483c; }
.form-actions { margin-top: 6px; }
.request-done { text-align: center; padding: 20px 0 8px; }
.request-done .modal-sub { margin: 10px auto 24px; max-width: 420px; }
.done-check { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--pale); color: #2f7a4b; }
.done-check svg { width: 30px; height: 30px; }

.faq-dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding: 16px 18px; background: var(--pale); border-radius: var(--radius); }
.faq-dialog-foot p { font-weight: 600; color: var(--navy-ink); }

/* ==========================================================
   Project pages
   ========================================================== */
.project-hero { position: relative; overflow: hidden; color: #fff; background: var(--navy-deep); min-height: clamp(400px, 38vw, 540px); display: flex; }
.project-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(4,58,82,.55) 0%, rgba(4,58,82,.2) 35%, rgba(4,58,82,.82) 100%); }
.project-hero--event::before { background: linear-gradient(180deg, rgba(4,58,82,.8) 0%, rgba(4,58,82,.2) 28%, rgba(4,58,82,.2) 50%, rgba(4,58,82,.88) 100%); }
.project-hero--event h1, .project-hero--event .project-hero-place { text-shadow: 0 2px 18px rgba(4,30,44,.6); }
.project-hero-inner { position: relative; z-index: 2; padding-top: 28px; padding-bottom: 48px; width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
.project-hero .breadcrumb { margin-bottom: auto; padding-bottom: 40px; }
.project-hero .status-badge { position: static; display: inline-block; margin-bottom: 14px; }
.project-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 5.4vw, 72px); line-height: 1.02; }
.project-hero-place { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 18px; font-weight: 500; color: #e3edf1; }
.project-hero-place .icon { color: var(--gold); width: 20px; height: 20px; }
.project-hero-place .icon:not(:first-child) { margin-left: 14px; }
.project-hero .usda-pill { display: inline-flex; margin-top: 18px; }

.project-overview { background: var(--paper); padding: 52px 0; }
.project-overview-inner { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.project-overview-text { margin-top: 16px; font-size: 18px; line-height: 1.7; color: var(--text); max-width: 780px; }
.project-actions { display: flex; flex-direction: column; gap: 12px; min-width: 240px; }
.project-actions .btn { justify-content: center; }
.btn-outline-navy { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

.plans { background: #fff; padding: 56px 0 64px; scroll-margin-top: var(--header-h); }
.plans--tint { background: var(--pale); }
.plans-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.plans-note { font-size: 14px; font-style: italic; color: var(--muted); }
.plan-grid { display: grid; gap: 24px; }
.plan-grid--two { grid-template-columns: 1fr 1fr; }
.plan { margin: 0; }
.plan-frame {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden; cursor: zoom-in;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.plan-frame.gallery-item img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; transition: transform .5s ease; }
.plan-frame.gallery-item:hover img { transform: scale(1.015); opacity: 1; }
.plan-frame:hover img { transform: scale(1.015); }
.plan-zoom {
  position: absolute; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(4,58,82,.9); color: #fff; font-size: 13.5px; font-weight: 600; padding: 8px 12px; border-radius: 3px;
  opacity: .9; transition: opacity .2s, background .2s;
}
.plan-zoom .icon { width: 15px; height: 15px; }
.plan-frame:hover .plan-zoom { opacity: 1; background: var(--navy-deep); }
.plan figcaption { margin-top: 12px; font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-ink); }
.coming-soon {
  text-align: center; padding: 64px 24px; background: #fff; border: 1.5px dashed #b9cfd8; border-radius: var(--radius);
}
.coming-soon .icon { width: 44px; height: 44px; color: var(--gold-deep); }
.coming-soon h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); color: var(--navy-ink); margin: 12px 0 8px; }
.coming-soon p { font-size: 16px; color: var(--muted); }

/* ==========================================================
   Community Voices (stories)
   ========================================================== */
.stories { background: var(--paper); padding: 56px 0 72px; }
.story { max-width: 860px; margin: 0 auto; }
.story-head { text-align: center; }
.story-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.story-tag .icon { width: 16px; height: 16px; }
.story-tag:hover { color: var(--navy); }
.story-title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; color: var(--navy-ink); margin: 14px 0 16px; }
.story-lead { font-family: var(--serif); font-size: clamp(19px, 1.8vw, 23px); line-height: 1.45; color: var(--navy); font-style: italic; max-width: 680px; margin: 0 auto; }
.story-media { margin: 36px 0 32px; }
.story-media img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.story-media figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center; }
.story-body p { font-size: 18px; line-height: 1.8; color: var(--text); }
.story-body p + p { margin-top: 20px; }
.story-body p:first-child::first-letter {
  float: left; font-family: var(--serif); font-size: 64px; line-height: .9; color: var(--navy); padding: 6px 10px 0 0;
}
.story-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }

/* ==========================================================
   Events
   ========================================================== */
.events { background: var(--paper); padding: 56px 0 64px; }
.event { margin-top: 26px; }
.event-feature {
  display: grid; grid-template-columns: 1.35fr 1fr; background: var(--card);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.event-cover { display: block; padding: 0; overflow: hidden; background: var(--navy-deep); cursor: zoom-in; }
.event-cover img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; transition: transform .6s ease; }
a.event-cover { cursor: pointer; }
.event-cover:hover img { transform: scale(1.03); }
.event-info { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.event-meta span { display: inline-flex; align-items: center; gap: 7px; }
.event-meta .icon { width: 16px; height: 16px; }
.event-title { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.8vw, 36px); line-height: 1.1; color: var(--navy-ink); margin: 12px 0 16px; }
.event-info .gold-rule { margin-bottom: 18px; }
.event-info p:not(.event-meta) { font-size: 16.5px; line-height: 1.65; color: var(--text); margin-bottom: 22px; }
.event + .event { margin-top: 56px; }
.event-lead { max-width: 820px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--text); margin-top: 18px; }
.events-subhead { margin-top: 56px; }
.news-clipping { max-width: 960px; margin: 0; }
.news-clipping figcaption { margin-top: 10px; font-size: 14.5px; color: var(--text); }
.event-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.event-back { margin-top: 32px; }
.gallery-title { font-family: var(--sans); font-size: 18px; font-weight: 600; color: var(--navy-ink); margin: 40px 0 16px; scroll-margin-top: calc(var(--header-h) + 20px); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery--4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item { display: block; width: 100%; padding: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--pale); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.gallery-item:hover img { transform: scale(1.05); opacity: .92; }

/* ---------- photo viewer ---------- */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(3, 22, 32, .94); color: #fff;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: bio-in .25s ease; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; max-width: min(1400px, calc(100% - 160px)); text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); margin: 0 auto; border-radius: 3px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox figcaption { margin-top: 14px; font-size: 15px; color: #cfe0e7; }
.lightbox-close, .lightbox-nav {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; transition: background .2s, color .2s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--gold); color: var(--navy-deep); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 24px; }
.lightbox-prev .icon { transform: rotate(180deg); }
.lightbox-next { right: 24px; }
.lightbox .icon { width: 20px; height: 20px; }

/* ==========================================================
   Reveal on scroll
   ========================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1180px) {
  .main-nav { gap: 24px; }
  .main-nav > ul { gap: 20px; }
  .main-nav > ul > li > a, .dropdown-toggle { font-size: 14.5px; }
  .res-intro p { display: none; }
}

@media (max-width: 1060px) {
  :root { --header-h: 72px; }
  .brand img { height: 46px; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-deep);
    padding: 12px var(--gutter) 32px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.1); }
  .main-nav > ul > li > a, .dropdown-toggle { display: flex; width: 100%; justify-content: space-between; padding: 16px 0; font-size: 17px; }
  .main-nav > ul > li > a::after { display: none; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: transparent; padding: 0 0 10px 12px; display: none; min-width: 0;
  }
  .dropdown::before { display: none; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.is-open .dropdown { display: block; }
  .nav-cta { margin-top: 24px; justify-content: center; }
  body.nav-open { overflow: hidden; }

  .process-steps { grid-template-columns: repeat(4, 1fr); row-gap: 28px; }
  .process-steps li:nth-child(4)::after { display: none; }

  .serve-grid { grid-template-columns: repeat(3, 1fr); }
  .trio-grid { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .trio-col:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; padding-top: 24px; border-top: 1px solid var(--line); }
  .trio-col:nth-child(2) { padding-right: 0; }

  .resources-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .res-intro { border-right: 0; padding-right: 0; }
  .res-intro p { display: block; max-width: none; }
  .res-list { flex-wrap: wrap; row-gap: 8px; }

  .footer-main { grid-template-columns: 1fr 1fr 1fr; row-gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-main > * { padding: 0 24px; }
  .footer-main > *:nth-child(2) { border-left: 0; padding-left: 0; }
  .ehl { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; padding-left: 0 !important; gap: 10px; }
  .ehl svg { width: 40px; height: 40px; }
  .ehl span { text-align: left; }
}

@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; gap: 20px; }
  .about-inner::before { grid-column: 1; grid-row: 2; width: 48px; height: 2px; }
  .about-quote { grid-row: 1; }
  .about-text { grid-column: 1; grid-row: 3; }

  .project-grid { grid-template-columns: 1fr; }
  .engage { grid-template-columns: 1fr; }
  .engage-media { min-height: 300px; }
  .location-head { grid-template-columns: 1fr; gap: 12px; }
  .location-grid { grid-template-columns: 1fr; }
  .location-map { min-height: 440px; }
  .map-legend { display: none; }

  .cta-inner { flex-direction: column; align-items: flex-start; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .project-overview-inner { grid-template-columns: 1fr; gap: 24px; }
  .project-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .plan-grid--two { grid-template-columns: 1fr; }
  .event-feature { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .leader-grid { gap: 18px; }
  .leader-info { padding: 16px 16px 18px; }
  .leader-info h3 { font-size: 20px; }
  .faq-inner { grid-template-columns: 1fr; gap: 24px; }
  .faq-intro p { max-width: none; }
  .newsletter-card { grid-template-columns: 1fr; gap: 24px; }
  .bio-dialog-inner { grid-template-columns: 1fr; overflow-y: auto; }
  .bio-dialog-photo { height: 300px; min-height: 0; }
  .bio-dialog-body { overflow: visible; padding: 28px 26px 32px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero { min-height: 0; align-items: flex-end; }
  .hero::before {
    background: linear-gradient(180deg, rgba(246,249,250,.2) 0%, rgba(246,249,250,.82) 38%, rgba(246,249,250,.97) 62%);
  }
  .hero-bg { object-position: 72% 0; height: 62%; }
  .hero-content { padding-top: 180px; padding-bottom: 36px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .eyebrow { letter-spacing: .2em; font-size: 12.5px; }

  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps li::after { display: none !important; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .project-media { aspect-ratio: 4 / 3; }
  .project-caption { flex-direction: column; align-items: flex-start; }
  .glance { grid-template-columns: 1fr; row-gap: 14px; }
  .glance > div { padding: 0 4px !important; }
  .glance > div + div { border-left: 0; border-top: 1px solid var(--line); padding-top: 14px !important; }
  .project-links { flex-direction: column; gap: 10px; }

  .serve-grid { grid-template-columns: 1fr 1fr; }
  .serve-card:last-child { grid-column: 1 / -1; }

  .trio-grid { grid-template-columns: 1fr; }
  .trio-col { padding: 0 !important; border-left: 0 !important; }
  .trio-col + .trio-col { border-top: 1px solid var(--line); padding-top: 24px !important; }
  .trio-col:nth-child(3) { grid-column: auto; }

  .res-list li { flex: 1 1 50%; justify-content: flex-start; border-left: 0 !important; }

  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > * { padding: 0 !important; border-left: 0 !important; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom li:first-child a { padding-left: 0; }

  .page-hero-inner { padding-top: 24px; padding-bottom: 44px; }
  .breadcrumb { margin-bottom: 28px; }
  .team-section { padding: 40px 0 48px; }
  .team-grid { grid-template-columns: 1fr; }
  .stories { padding: 40px 0 52px; }
  .story-body p { font-size: 16.5px; line-height: 1.75; }
  .story-foot .btn { flex: 1 1 100%; justify-content: center; }
  .project-hero-inner { padding-bottom: 32px; }
  .project-hero-inner { padding-top: 18px; }
  .project-overview, .plans { padding: 40px 0 44px; }
  .project-actions .btn { flex: 1 1 100%; }
  .plan-zoom { right: 8px; top: 8px; font-size: 12px; padding: 6px 9px; }
  .events { padding: 40px 0 48px; }
  .event-info { padding: 24px 20px 26px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lightbox figure { max-width: calc(100% - 24px); }
  .lightbox-nav { top: auto; bottom: 20px; transform: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
  .lightbox img { max-height: calc(100vh - 200px); }
  .leadership-home { padding: 40px 0 44px; }
  .leader-grid { grid-template-columns: 1fr; gap: 20px; max-width: 420px; }
  .leader-info h3 { font-size: 22px; }
  .modal { width: 100%; max-width: none; max-height: 100%; height: 100%; margin: 0; border-radius: 0; }
  .modal-inner { max-height: 100%; height: 100%; padding: 28px 20px 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; justify-content: center; }
  .faq { padding: 40px 0; }
  .faq-list summary { font-size: 16px; padding: 18px 2px; }
  .faq-list details p { padding-right: 8px; }
  .newsletter { padding: 32px 0; }
  .newsletter-card { padding: 26px 20px; }
  .newsletter-icon { display: none; }
  .newsletter-form .btn { flex: 1 1 100%; justify-content: center; }
  .team-photo { aspect-ratio: 4 / 3.6; }
  .bio-dialog { width: 100%; max-width: none; max-height: 100%; height: 100%; margin: 0; border-radius: 0; }
  .bio-dialog-inner { max-height: 100%; height: 100%; }
  .bio-dialog-photo { height: 280px; }
}
