/* =========================================================
   Horsin Around Foundation
   Aesthetic: "Golden-hour ranch" - warm, grounding, editorial
   Display: DM Serif Display  ·  Body: Mulish
   ========================================================= */

:root {
  /* Palette */
  --paper:      #F6EEDF;  /* warm cream ground */
  --paper-2:    #EFE3CD;  /* deeper cream panel */
  --paper-3:    #E7D8BC;  /* card edge / wheat tint */
  --ink:        #2C271F;  /* warm near-black brown */
  --ink-soft:   #574E41;  /* muted body text */
  --pine:       #33463A;  /* deep forest green - primary */
  --pine-deep:  #263528;  /* darkest green */
  --pine-soft:  #4E6350;  /* softened green */
  --clay:       #BE5C39;  /* terracotta - accent */
  --clay-deep:  #9E4A2C;
  --wheat:      #D6A24C;  /* golden highlight */
  --sage:       #8E9A7E;  /* dusty sage */

  /* Roles */
  --bg: var(--paper);
  --text: var(--ink);
  --text-soft: var(--ink-soft);

  /* Type */
  --display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --hero-display: "Young Serif", "DM Serif Display", Georgia, serif;
  --body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing / shape */
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 18px;
  --radius-lg: 28px;
  --section-y: clamp(4.5rem, 9vw, 8rem);

  --shadow-soft: 0 18px 50px -28px rgba(38, 53, 40, 0.55);
  --shadow-lift: 0 26px 60px -30px rgba(38, 53, 40, 0.6);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 92px;
  overflow-x: hidden; /* clip horizontal overflow at the root so the page (not body) stays the scroll container — keeps anchor links working */
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle paper grain across the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

.section { position: relative; z-index: 2; padding-block: var(--section-y); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--pine); color: var(--paper);
  padding: 0.6rem 1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ----------
   Section headings use the clean sans (Mulish). The hero title keeps its
   serif via its own .hero-title override. */
h1, h2, h3 {
  font-family: var(--body);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--pine-deep);
  margin: 0;
  /* even line lengths instead of a lone trailing word */
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 1.25rem + 2.3vw, 2.85rem); }
h3 { font-size: clamp(1.22rem, 1.05rem + 0.7vw, 1.5rem); }

/* keep single words from stranding on their own line */
p, li, figcaption, blockquote { text-wrap: pretty; }

.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--clay);
  margin: 0 0 1rem;
}
.eyebrow-light { color: var(--wheat); }

.lead {
  font-size: clamp(1.075rem, 1rem + 0.4vw, 1.3rem);
  color: var(--text-soft);
  line-height: 1.65;
}

.text-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--pine);
  text-decoration: none;
  border-bottom: 2px solid rgba(190, 92, 57, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.text-link:hover { color: var(--clay); border-color: var(--clay); }
.text-link-light { color: var(--wheat); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--pine);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-donate {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(158, 74, 44, 0.9);
}
.btn-donate:hover { background: var(--clay-deep); transform: translateY(-2px); box-shadow: 0 20px 38px -16px rgba(158, 74, 44, 0.95); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
  padding-block: 0.5rem;
}
.site-header.scrolled {
  background: rgba(246, 238, 223, 0.88);
  backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 1px 0 rgba(44, 39, 31, 0.08), 0 12px 30px -24px rgba(38, 53, 40, 0.7);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-right: auto; }
.brand-mark { border-radius: 50%; box-shadow: 0 6px 16px -8px rgba(38,53,40,0.6); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.32rem;
  color: var(--pine-deep);
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--clay);
  margin-top: 3px;
}

.main-nav { display: flex; gap: 1.75rem; }
.main-nav a {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink);
  padding-block: 4px;
  transition: color 0.25s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.main-nav a:hover { color: var(--clay); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-donate { padding: 0.62rem 1.35rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 2.5px; background: var(--pine-deep); border-radius: 2px; transition: 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav[hidden] { display: none; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem var(--gutter) 1.75rem;
  background: rgba(246, 238, 223, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}
.mobile-nav a { text-decoration: none; font-weight: 600; color: var(--pine-deep); padding: 0.7rem 0; border-bottom: 1px solid rgba(44,39,31,0.08); }
.mobile-nav .btn-donate { margin-top: 0.9rem; border: none; color: #fff; }

/* =========================================================
   HERO — "ranch almanac": type-first on the paper ground,
   arched photo overlapped by the headline, rotating stamp
   ========================================================= */
.hero {
  position: relative;
  min-height: 96svh;
  display: flex;
  flex-direction: column;
  /* top padding clears the fixed header so the headline never tucks under the nav */
  padding-top: clamp(7.5rem, 16vh, 11rem);
  overflow: hidden;
  background:
    radial-gradient(58% 46% at 78% 30%, rgba(214, 162, 76, 0.22), transparent 70%),
    radial-gradient(40% 34% at 8% 88%, rgba(142, 154, 126, 0.18), transparent 70%);
}

.hero-grid {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 0;
}

.hero-copy { position: relative; z-index: 2; padding-bottom: clamp(2rem, 5vh, 4rem); }

.hero-place {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.3rem);
  color: var(--clay);
  margin: 0 0 1.4rem;
  text-wrap: balance;
}

.hero-title {
  font-family: var(--hero-display);
  font-weight: 400;
  color: var(--pine-deep);
  font-size: clamp(3rem, 1.4rem + 7vw, 7.2rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0 0 1.6rem;
}
.hero-title span { display: block; }
/* the accent word slips into a slender italic from the brand serif */
.hero-title em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--clay);
  letter-spacing: 0;
}

.hero-lead {
  color: var(--text-soft);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  max-width: 46ch;
  line-height: 1.65;
}

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; margin-top: 2.1rem; }
.hero-link {
  font-weight: 700;
  color: var(--pine);
  text-decoration: none;
  border-bottom: 2px solid rgba(190, 92, 57, 0.4);
  padding-bottom: 3px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.hero-link span { display: inline-block; transition: transform 0.25s var(--ease); }
.hero-link:hover { color: var(--clay); border-color: var(--clay); }
.hero-link:hover span { transform: translateX(4px); }

/* Arched photo, pulled under the headline's right edge */
.hero-frame {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-left: clamp(-5rem, -4vw, -1rem);
}
.hero-arch {
  border-radius: 999px 999px 22px 22px;
  overflow: hidden;
  border: 6px solid var(--paper-3);
  outline: 1.5px solid rgba(44, 39, 31, 0.25);
  outline-offset: 6px;
  box-shadow: var(--shadow-lift);
  max-width: min(30rem, 100%);
  margin-left: auto;
}
.hero-arch img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 30%;
}

/* Rotating stamp over the arch's shoulder */
.hero-stamp {
  position: absolute;
  bottom: 9%;
  left: clamp(-3rem, -2.5vw, -1.25rem);
  width: clamp(6.4rem, 9vw, 8.5rem);
  height: auto;
  animation: stamp-spin 28s linear infinite;
  filter: drop-shadow(0 10px 24px rgba(38, 53, 40, 0.35));
}
.stamp-bg { fill: var(--pine); }
.stamp-text {
  fill: var(--paper);
  font-family: var(--body);
  font-size: 7.8px;
  font-weight: 700;
  letter-spacing: 0.13em;
}
.stamp-heart { fill: var(--clay); }
@keyframes stamp-spin { to { transform: rotate(360deg); } }

/* Bottom strip: the three words the ranch is about */
.hero-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1.2rem, 4vw, 2.75rem);
  padding-block: 1.05rem;
  border-top: 1px solid rgba(44, 39, 31, 0.18);
  border-bottom: 1px solid rgba(44, 39, 31, 0.18);
  text-transform: uppercase;
  letter-spacing: clamp(0.14em, 0.5vw, 0.3em);
  font-size: clamp(0.68rem, 0.55rem + 0.5vw, 0.78rem);
  font-weight: 700;
  color: var(--pine-soft);
  background: rgba(239, 227, 205, 0.55);
}
/* see the note on .flagship-skills li::before before changing this glyph */
.strip-tick { color: var(--wheat); letter-spacing: 0; }

/* =========================================================
   MISSION
   ========================================================= */
.mission-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.mission-copy p { margin: 1.1rem 0 0; }
.mission-copy h2 { margin-top: 0.5rem; }
.mission-media { margin: 0; position: relative; }
.mission-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.mission-media figcaption {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--pine-soft);
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--wheat);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(44, 39, 31, 0.14);
}
.stat { display: flex; flex-direction: column; gap: 0.4rem; }
.stat-num {
  font-family: var(--display);
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem);
  font-weight: 500;
  color: var(--clay);
  line-height: 1;
  letter-spacing: -0.02em;
}
/* word-based stats sit a touch smaller so their cap-height matches the numerals */
.stat-num-word { font-size: clamp(1.9rem, 1.4rem + 1.9vw, 2.85rem); }
.stat-label { color: var(--text-soft); font-size: 0.98rem; max-width: 26ch; }

/* =========================================================
   APPROACH
   ========================================================= */
.approach { background: var(--paper-2); border-radius: 40px 40px 0 0; }
.section-head { max-width: 680px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lead { margin-top: 1.1rem; }

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.pillar {
  background: var(--paper);
  border: 1px solid rgba(44, 39, 31, 0.09);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pillar::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--wheat);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.pillar:hover::before { transform: scaleY(1); }
.pillar-index {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clay);
  letter-spacing: 0.1em;
}
.pillar h3 { margin: 0.8rem 0 0.7rem; color: var(--pine-deep); }
.pillar p { margin: 0; color: var(--text-soft); }

/* =========================================================
   FEATURE / QUOTE
   ========================================================= */
.feature {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--paper-2);
  align-items: stretch;
}
.feature-media { position: relative; min-height: 420px; }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-panel {
  background: var(--pine-deep);
  color: var(--paper);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem);
  position: relative;
  overflow: hidden;
}
.feature-panel::after {
  content: "";
  position: absolute; right: -60px; bottom: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  border: 1.5px solid rgba(214, 162, 76, 0.25);
}
.feature-panel blockquote { margin: 0; position: relative; z-index: 1; }
.feature-panel blockquote p {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.4rem, 1.05rem + 1.5vw, 2.15rem);
  line-height: 1.34;
  color: var(--paper);
  margin: 0 0 1.5rem;
}
.feature-panel cite {
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--wheat);
}

/* =========================================================
   PROGRAMS
   ========================================================= */
.programs { background: var(--paper); }

/* ---- Flagship: Young Builders Initiative ----
   Dark pine panel echoing the quote + donate panels */
.flagship {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  background: var(--pine-deep);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4.5vw, 3.75rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.flagship::after {
  content: "";
  position: absolute; left: -70px; bottom: -70px;
  width: 280px; height: 280px; border-radius: 50%;
  border: 1.5px solid rgba(214, 162, 76, 0.22);
  pointer-events: none;
}
.flagship-title {
  font-family: var(--hero-display);
  font-weight: 400;
  color: var(--paper);
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}
.flagship-tagline {
  font-family: var(--display);
  font-style: italic;
  color: var(--wheat);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.35rem);
  margin: 0 0 1.25rem;
}
.flagship-copy > p:not(.eyebrow):not(.flagship-tagline) {
  color: rgba(246, 238, 223, 0.86);
  margin: 0 0 1.05rem;
  max-width: 58ch;
}
.flagship-sub {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--wheat);
  margin: 1.7rem 0 0.6rem;
}
.flagship-copy .text-link-light { display: inline-block; margin-top: 0.6rem; }
.flagship-skills {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 2.5vw, 2.25rem);
  /* centred so the taller copy column doesn't leave a dead well of green beneath it */
  align-self: center;
  position: relative;
  z-index: 1;
}
.flagship-skills h4 {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--clay);
  margin: 0 0 1.1rem;
}
.flagship-skills ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.flagship-skills li {
  position: relative;
  padding-left: 1.45rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}
/* U+2736 six-pointed star, NOT U+2733 (✳): that one is emoji-capable and iOS
   renders it as a green colour emoji. Any decorative glyph here must be a
   codepoint with no emoji presentation. */
.flagship-skills li::before {
  content: "\2736";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 0.8em;
  color: var(--clay);
}
.flagship-meta {
  margin: 1.35rem 0 0;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(44, 39, 31, 0.12);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--pine-soft);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.program-card {
  background: var(--paper);
  border: 1px solid rgba(44, 39, 31, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.program-thumb { aspect-ratio: 3 / 2; overflow: hidden; }
.program-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.program-card:hover .program-thumb img { transform: scale(1.06); }
.program-body { padding: clamp(1.5rem, 2.5vw, 2rem); display: flex; flex-direction: column; gap: 0.8rem; flex: 1; }
.program-body h3 { color: var(--pine-deep); }
.program-body p { margin: 0; color: var(--text-soft); }
.program-meta {
  margin-top: auto !important;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--pine-soft) !important;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(44, 39, 31, 0.1);
}
/* side by side, reserve two lines so the rules line up across cards; stacked, that
   same reservation would just leave a gap under each card */
@media (min-width: 901px) {
  .program-meta { min-height: 4.6em; }
}
.programs-note { text-align: center; margin-top: clamp(2.5rem, 5vw, 3.5rem); font-size: 1.1rem; color: var(--text-soft); }
.programs-note .text-link { margin-top: 0; margin-left: 0.4rem; }

/* =========================================================
   GET INVOLVED + DONATE
   ========================================================= */
.involved { background: var(--paper-2); }
.involved-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}
.involved-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.4rem);
  border: 1px solid rgba(44, 39, 31, 0.09);
  display: flex;
  flex-direction: column;
}
.involved-card h3 { color: var(--pine-deep); margin-bottom: 0.6rem; }
.involved-card p { margin: 0; color: var(--text-soft); }
/* auto margin pins the links to a shared baseline even when the copy runs long */
.involved-card .text-link { margin-top: auto; padding-top: 1rem; align-self: flex-start; }

/* Donate panel */
.donate-panel {
  background:
    radial-gradient(130% 120% at 100% 0%, rgba(190,92,57,0.35), transparent 55%),
    linear-gradient(155deg, var(--pine) 0%, var(--pine-deep) 100%);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  box-shadow: var(--shadow-lift);
  position: relative;
  overflow: hidden;
}
.donate-panel::before {
  content: "";
  position: absolute; left: -80px; top: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  border: 1.5px solid rgba(214,162,76,0.22);
}
.donate-copy h2 { color: var(--paper); }
.donate-copy .lead { color: rgba(246,238,223,0.86); }

.give-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 1rem;
  background: rgba(246, 238, 223, 0.08);
  border: 1.5px solid rgba(246, 238, 223, 0.28);
  border-radius: 999px;
}
.give-opt {
  border: none;
  background: transparent;
  color: rgba(246, 238, 223, 0.85);
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.give-opt.is-active { background: var(--wheat); color: var(--pine-deep); }

.amount-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.amount {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--paper);
  background: rgba(246, 238, 223, 0.06);
  border: 1.5px solid rgba(246, 238, 223, 0.28);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  transition: 0.25s var(--ease);
  text-align: left;
}
.amount small {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(246,238,223,0.72);
  text-transform: none;
}
.amount:hover { border-color: var(--wheat); background: rgba(246,238,223,0.1); }
.amount.is-active {
  background: var(--wheat);
  border-color: var(--wheat);
  color: var(--pine-deep);
}
.amount.is-active small { color: rgba(38, 53, 40, 0.75); }

.donate-fineprint { margin-top: 1rem; font-size: 0.9rem; color: rgba(246,238,223,0.75); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-list { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 1.35rem; }
.contact-list li { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-label {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.2em;
  font-weight: 700; color: var(--clay);
  line-height: 1.4;
}
/* tighter leading keeps the two-line address from reading as two separate items */
.contact-list a, .contact-list span:not(.contact-label) { font-size: 1.15rem; color: var(--pine-deep); text-decoration: none; font-weight: 600; line-height: 1.45; }
.contact-list a:hover { color: var(--clay); }

.contact-form {
  background: var(--paper-2);
  border: 1px solid rgba(44,39,31,0.1);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  display: grid;
  gap: 1.1rem;
  box-shadow: var(--shadow-soft);
}
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--pine-deep); }
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid rgba(44,39,31,0.16);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 4px rgba(51, 70, 58, 0.12);
}
.form-note { margin: 0.25rem 0 0; font-weight: 600; color: var(--pine); text-align: center; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: relative; z-index: 2;
  background: var(--pine-deep);
  color: rgba(246, 238, 223, 0.86);
  padding-top: clamp(3rem, 6vw, 5rem);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: center;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid rgba(246,238,223,0.14);
}
.footer-brand { display: flex; align-items: center; gap: 1.1rem; max-width: 420px; }
.footer-mission { font-family: var(--display); font-style: italic; font-size: 1.15rem; color: var(--paper); margin: 0; line-height: 1.4; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem; }
.footer-nav a { text-decoration: none; font-weight: 600; color: rgba(246,238,223,0.82); transition: color 0.2s var(--ease); }
.footer-nav a:hover { color: var(--wheat); }
.footer-base {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
  align-items: flex-start;
  padding-block: 1.75rem;
  font-size: 0.86rem; color: rgba(246,238,223,0.6);
  line-height: 1.6;
}
/* the two legal lines hug the right edge so the base row reads as a clean band */
.footer-legal { margin: 0; text-align: right; }
.footer-base p { margin: 0; }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Hero reveals stagger on load via --d */
.hero .reveal { transition-delay: calc(var(--d, 0) * 0.12s); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .main-nav, .header-donate { display: none; }
  .nav-toggle { display: flex; }
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-copy { padding-bottom: 0; }
  .hero-frame { margin-left: 0; margin-top: 2.25rem; margin-bottom: 2.5rem; width: 100%; }
  .hero-arch { max-width: 24rem; margin-inline: auto; }
  .hero-stamp { left: auto; right: 2%; bottom: auto; top: -1.75rem; }
  .mission-grid { grid-template-columns: 1fr; }
  /* copy first on mobile so the mission photo doesn't stack against the hero image */
  .mission-media { max-width: 460px; margin-inline: auto; margin-top: 1.5rem; }
  .feature { grid-template-columns: 1fr; }
  .feature-media { min-height: 300px; }
  .flagship { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .involved-grid { grid-template-columns: 1fr; }
  .donate-panel { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 1.75rem; }
  .contact-form { order: -1; }
}

@media (max-width: 560px) {
  .amount-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { text-align: left; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
