/* ================================================================
   CALYX — Warm & Human Community Design System
   Vibrant Health Advocates - Calyx, Bathgate, West Lothian
   ================================================================ */

:root {
  /* Palette */
  --cream:          #FDF8F0;
  --cream-2:        #F5EDD8;
  --cream-3:        #EDE0C4;
  --cream-border:   #DDD0B0;
  --terra:          #C4622D;
  --terra-light:    #E8986A;
  --terra-pale:     #F7E6D8;
  --brand:          #7B2D8B;
  --brand-light:    #F0D9F5;
  --brand-mid:      #C494D4;
  --brand-dark:     #4A1A56;
  --dark:           #2A160E;
  --mid:            #5C3820;
  --muted:          #907060;
  --white:          #FFFEF9;

  /* Typography */
  --font: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* Radii */
  --r-sm:   12px;
  --r-md:   24px;
  --r-lg:   36px;
  --r-xl:   56px;
  --r-pill: 9999px;

  /* Shadows */
  --shadow-xs:  0 2px 10px rgba(42,22,14,.07);
  --shadow-sm:  0 4px 20px rgba(42,22,14,.10);
  --shadow-md:  0 8px 36px rgba(42,22,14,.14);
  --shadow-lg:  0 16px 56px rgba(42,22,14,.18);
  --shadow-pol: 4px 8px 28px rgba(42,22,14,.20);
}

/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.80;
  font-size: clamp(15px, 1.5vw, 17px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── Layout helpers ───────────────────────────────── */
.container { width: min(1160px, 92%); margin-inline: auto; }
.section    { padding-block: clamp(4rem,  8vw, 7rem); }
.section-sm { padding-block: clamp(2.5rem,5vw, 4rem); }
.section-lg { padding-block: clamp(5rem, 10vw, 9rem); }

/* ── Typography ───────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.05rem; letter-spacing: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  background: var(--brand-light);
  color: var(--brand-dark);
  border: 1.5px solid var(--brand-mid);
  border-radius: var(--r-pill);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .11em;
  padding: .38em 1em;
  margin-bottom: 1.1rem;
}
.eyebrow--terra {
  background: var(--terra-pale);
  color: var(--terra);
  border-color: var(--terra-light);
}

.lead {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.75;
  color: var(--mid);
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .76em 1.9em;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--terra);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(196,98,45,.36);
}
.btn-primary:hover { background: #B5561F; box-shadow: 0 6px 26px rgba(196,98,45,.46); }

.btn-brand {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(123,45,139,.35);
}
.btn-brand:hover { background: #6A2579; }

.btn-secondary {
  background: var(--brand-light);
  color: var(--brand-dark);
  border: 2px solid var(--brand-mid);
}
.btn-secondary:hover { background: #e5c5f5; }

.btn-outline {
  background: transparent;
  color: var(--terra);
  border: 2.5px solid var(--terra);
}
.btn-outline:hover { background: var(--terra-pale); }

.btn-white {
  background: var(--white);
  color: var(--terra);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.btn-white:hover { background: var(--cream-2); }

/* ── Navigation ───────────────────────────────────── */
.site-nav {
  background: var(--white);
  border-bottom: 2.5px solid var(--cream-3);
  position: sticky;
  top: 0;
  z-index: 200;
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .85rem;
  position: relative;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none !important;
  flex-shrink: 0;
}
.brand-lockup__icon     { height: 44px; width: auto; flex-shrink: 0; }
.brand-lockup__wordmark { height: 30px; width: auto; max-width: 200px; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .1rem;
}
.nav-links a {
  display: block;
  padding: .44em .9em;
  border-radius: var(--r-pill);
  color: var(--mid);
  font-weight: 600;
  font-size: .92rem;
  transition: background .15s, color .15s;
  text-decoration: none !important;
}
.nav-links a:hover,
.nav-links a.active { background: var(--terra-pale); color: var(--terra); }

.nav-links .btn { padding: .5em 1.3em; font-size: .88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .35rem;
  border-radius: var(--r-sm);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .2s;
}

/* ── Squiggle Dividers ────────────────────────────── */
.squiggle { width: 100%; overflow: hidden; line-height: 0; padding-block: .4rem; }
.squiggle svg { width: 100%; height: auto; display: block; }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  background-image: url('img/hero.jpg');
  background-size: cover;
  background-position: center 28%;
  min-height: 80vh;
  display: flex;
  align-items: flex-start;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: 230px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    148deg,
    rgba(253,248,240,.88) 0%,
    rgba(253,248,240,.72) 38%,
    rgba(42,22,14,.12)    100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}
.hero__eyebrow {
  background: var(--brand-light);
  color: var(--brand-dark);
  border: 1.5px solid var(--brand-mid);
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .11em;
  padding: .38em 1em;
  margin-bottom: 1.2rem;
}
.hero h1 { margin-bottom: 1rem; color: var(--dark); }
.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: var(--mid);
  margin-bottom: 2rem;
  max-width: 560px;
  line-height: 1.72;
}

/* Hero overlap card */
.hero-overlap-wrap {
  position: relative;
  z-index: 10;
  margin-top: -170px;
}
.hero-overlap-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.4rem, 4vw, 3rem);
  border: 2.5px solid var(--cream-3);
  display: flex;
  align-items: stretch;
}
.impact-stat {
  flex: 1;
  text-align: center;
  padding: .6rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.impact-stat + .impact-stat {
  border-left: 2px dotted var(--cream-border);
}
.impact-stat__num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--terra);
  line-height: 1;
  display: block;
}
.impact-stat__label {
  font-size: .88rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: .4em;
  line-height: 1.3;
}
.impact-stat__icon {
  font-size: 1.4rem;
  margin-bottom: .3em;
}

/* ── Polaroid Cards ───────────────────────────────── */
.polaroid {
  background: var(--white);
  border-radius: var(--r-sm);
  padding: 12px 12px 52px;
  box-shadow: var(--shadow-pol);
  display: inline-block;
  border: 1.5px solid var(--cream-3);
}
.polaroid img {
  width: 100%;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}
.polaroid__caption {
  padding-top: 12px;
  font-size: .85rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  font-weight: 600;
  letter-spacing: .01em;
}
.tilt-l  { transform: rotate(-3.2deg); }
.tilt-r  { transform: rotate(2.8deg); }
.tilt-ll { transform: rotate(-5.5deg); }
.tilt-rr { transform: rotate(4.5deg); }

/* ── Feature / Highlight Cards ───────────────────── */
.cards-row {
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
}
.card {
  flex: 1;
  background: var(--white);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--cream-3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); }
.card--stagger-up   { transform: translateY(-22px); }
.card--stagger-down { transform: translateY(22px);  }
.card--stagger-up:hover   { transform: translateY(-26px); }
.card--stagger-down:hover { transform: translateY(18px);  }
.card--terra  { background: var(--terra-pale);  border-color: var(--terra-light); }
.card--brand  { background: var(--brand-light); border-color: var(--brand-mid);   }
.card--dotted { border-style: dotted; }

.card__icon  { font-size: 2.2rem; display: block; margin-bottom: .7rem; }
.card__title { font-size: 1.18rem; font-weight: 800; margin-bottom: .55rem; color: var(--dark); }
.card__blurb { color: var(--mid); line-height: 1.72; font-size: .95rem; }

/* ── Programme Cards ──────────────────────────────── */
.prog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}
.prog-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--cream-3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.prog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.prog-card__icon  { font-size: 2.4rem; margin-bottom: .75rem; display: block; }
.prog-card__title { font-size: 1.22rem; font-weight: 800; margin-bottom: .5rem; color: var(--dark); }
.prog-card__blurb { color: var(--mid); font-size: .95rem; line-height: 1.72; margin-bottom: .9rem; }
.prog-card__detail {
  border-top: 2px dotted var(--cream-3);
  padding-top: .9rem;
  margin-top: .4rem;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── Stamp Badge ──────────────────────────────────── */
.stamp {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  border: 3px dashed var(--brand);
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .8rem;
  position: relative;
  flex-shrink: 0;
}
.stamp::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1.5px dashed var(--brand-mid);
  pointer-events: none;
}
.stamp__inner { position: relative; z-index: 1; }
.stamp__inner strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
}
.stamp__inner small {
  display: block;
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brand);
  opacity: .8;
  margin-top: .15em;
}

/* ── Split Layout ─────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--3-2 { grid-template-columns: 3fr 2fr; }
.split--2-3 { grid-template-columns: 2fr 3fr; }
.split__visual { position: relative; }

/* ── Page Banner ──────────────────────────────────── */
.page-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,22,14,.68) 0%, rgba(42,22,14,.12) 55%);
}
.page-banner__content {
  position: relative;
  z-index: 2;
  color: var(--white);
}
.page-banner__content h1  { color: var(--white); }
.page-banner__content .eyebrow {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.38);
  color: var(--white);
}

/* ── Inner Page Header (no photo) ─────────────────── */
.page-header {
  background: var(--terra-pale);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 3px solid var(--cream-border);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(196,98,45,.06);
  pointer-events: none;
}

/* ── Section Colour Variants ─────────────────────── */
.bg-cream-2    { background: var(--cream-2); }
.bg-cream-3    { background: var(--cream-3); }
.bg-terra-pale { background: var(--terra-pale); }
.bg-brand-pale { background: var(--brand-light); }

/* ── CTA Band ─────────────────────────────────────── */
.cta-band {
  background: var(--terra);
  color: var(--white);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2  { color: var(--white); margin-bottom: .9rem; }
.cta-band p   { opacity: .88; max-width: 560px; margin-inline: auto; margin-bottom: 2rem; }

/* ── Blog / Article Cards ─────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  align-items: start;
}
.art-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--cream-3);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.art-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.art-card__img  { width: 100%; height: 220px; object-fit: cover; display: block; }
.art-card__body { padding: clamp(1.2rem, 2.5vw, 1.8rem); flex: 1; display: flex; flex-direction: column; }
.art-card__title {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: .5rem;
  color: var(--dark);
  line-height: 1.3;
}
.art-card__dek  { color: var(--mid); font-size: .92rem; line-height: 1.65; flex: 1; margin-bottom: 1rem; }
.art-card__cta  {
  font-weight: 700;
  font-size: .88rem;
  color: var(--terra);
  display: inline-flex;
  align-items: center;
  gap: .3em;
  text-decoration: none !important;
}
.art-card__cta:hover { color: var(--brand); }
.art-card__cta::after { content: '→'; }

/* ── Article Long-form ────────────────────────────── */
.article-header { padding-block: clamp(3rem, 6vw, 5rem); background: var(--cream-2); }
.article-header h1 { max-width: 740px; }
.article-header .dek {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--mid);
  margin-top: 1rem;
  max-width: 660px;
  line-height: 1.7;
}
.article-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  margin-block: 2.5rem;
}
.article-body {
  max-width: 740px;
  margin-inline: auto;
}
.article-body p {
  margin-bottom: 1.45rem;
  line-height: 1.85;
  font-size: clamp(.95rem, 1.5vw, 1.06rem);
  color: var(--mid);
}
.article-body p:first-child {
  font-size: clamp(1.02rem, 1.8vw, 1.14rem);
  color: var(--dark);
  font-weight: 500;
}

/* ── Contact Form ─────────────────────────────────── */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-md);
  border: 2.5px solid var(--cream-3);
}
.form-group { margin-bottom: 1.35rem; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  color: var(--mid);
  margin-bottom: .4em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75em 1.05em;
  border: 2px solid var(--cream-3);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--dark);
  background: var(--cream);
  transition: border-color .15s, background .15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--white);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Contact Details ──────────────────────────────── */
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--white);
  border-radius: var(--r-md);
  border: 2px solid var(--cream-3);
  margin-bottom: 1rem;
}
.contact-detail__icon { font-size: 1.6rem; flex-shrink: 0; margin-top: .1em; }
.contact-detail__label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--terra);
  display: block;
  margin-bottom: .2em;
}
.contact-detail a { color: var(--brand); font-weight: 600; word-break: break-all; }

/* ── Dotted Box ───────────────────────────────────── */
.dotted-box {
  border: 2.5px dotted var(--terra);
  border-radius: var(--r-md);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  background: var(--terra-pale);
}

/* ── Pull Quote ───────────────────────────────────── */
.pull-quote {
  border-left: 4px solid var(--terra);
  padding-left: 1.5rem;
  margin-block: 2rem;
}
.pull-quote p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--terra);
  line-height: 1.55;
  font-style: italic;
}

/* ── Trustee Cards ────────────────────────────────── */
.trustee-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.trustee-card {
  background: var(--white);
  border: 2px solid var(--cream-3);
  border-radius: var(--r-md);
  padding: 1.5rem 2rem;
  text-align: center;
  min-width: 190px;
  flex: 1;
  transition: box-shadow .2s;
}
.trustee-card:hover { box-shadow: var(--shadow-sm); }
.trustee-card__avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--brand-light);
  border: 3px solid var(--brand-mid);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.trustee-card__name { font-weight: 800; color: var(--dark); font-size: 1.05rem; }
.trustee-card__role {
  font-size: .82rem;
  color: var(--terra);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .28em;
}

/* ── Photo helpers ────────────────────────────────── */
.rounded-photo {
  border-radius: var(--r-md);
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow-md);
}
.rounded-photo--lg { border-radius: var(--r-lg); }

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(253,248,240,.72);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.6fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .brand-lockup__icon {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.footer-brand .brand-lockup__wordmark {
  height: 26px;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.footer-brand p {
  font-size: .88rem;
  line-height: 1.72;
  margin-top: 1.1rem;
  max-width: 265px;
}
.footer-col h4 {
  color: var(--cream-2);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a {
  color: rgba(253,248,240,.65);
  font-size: .88rem;
  transition: color .15s;
  text-decoration: none !important;
}
.footer-col a:hover { color: var(--terra-light); }
.footer-col .email-link { word-break: break-all; }

.footer-bottom {
  border-top: 1px solid rgba(253,248,240,.12);
  padding-top: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: .8rem; opacity: .45; }

/* ── Utility ──────────────────────────────────────── */
.text-terra  { color: var(--terra); }
.text-brand  { color: var(--brand); }
.text-muted  { color: var(--muted); }
.text-center { text-align: center; }
.mt-xs { margin-top: .5rem;  }
.mt-sm { margin-top: 1rem;   }
.mt-md { margin-top: 1.8rem; }
.mt-lg { margin-top: 3rem;   }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 1.8rem; }
.mb-lg { margin-bottom: 3rem; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .prog-grid { grid-template-columns: 1fr; }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 2.5px);
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 2px solid var(--cream-3);
    padding: .8rem 1rem 1rem;
    gap: .2rem;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open  { display: flex; }
  .nav-toggle      { display: flex; }
  .site-nav__inner { flex-wrap: wrap; }

  .split { grid-template-columns: 1fr !important; gap: 2.5rem; }

  .hero {
    padding-bottom: 260px;
    min-height: auto;
  }
  .hero-overlap-wrap { margin-top: -210px; }
  .hero-overlap-card {
    flex-direction: column;
    gap: 0;
  }
  .impact-stat + .impact-stat {
    border-left: none;
    border-top: 2px dotted var(--cream-border);
  }

  .cards-row { flex-direction: column; }
  .card--stagger-up,
  .card--stagger-down { transform: none; }
  .card--stagger-up:hover,
  .card--stagger-down:hover { transform: translateY(-4px); }

  .blog-grid { grid-template-columns: 1fr; }
  .form-row  { grid-template-columns: 1fr; }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 540px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero { padding-bottom: 220px; }
  .hero-overlap-wrap { margin-top: -175px; }
}

/* ── Inline 3-col polaroid rows on our-work / article pages ── */
@media (max-width: 768px) {
  /* The 3-column inline-style grid on our-work.html */
  div[style*="grid-template-columns:1fr 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.2rem !important;
  }
  div[style*="grid-template-columns:1fr 1fr 1fr"] .polaroid {
    transform: none !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}
