/* ==========================================================================
   Ivy League Path — Design System
   Palette: deep academic green / warm cream / muted brass (CTAs only)
   Type:    Fraunces (editorial serif, headlines) + Inter (body)
   ========================================================================== */

/* Metric-adjusted local fallbacks reduce layout shift while webfonts load */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 101%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Helvetica Neue"), local("Arial");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --green-950: #0D211A;
  --green-900: #122B21;
  --green-800: #17362A;
  --green-700: #1E4534;
  --green-600: #29573F;
  --green-link: #1E5B41;
  --green-100: #E3EDE6;
  --green-050: #EFF5F0;

  --cream: #FAF6EE;
  --cream-2: #F4EEE0;
  --cream-3: #EDE5D3;

  --ink: #22322B;
  --ink-soft: #51615A;
  --ink-on-dark: #F7F3E8;
  --ink-on-dark-soft: #C7D4CC;

  --gold: #C9A227;          /* buttons, accents on dark */
  --gold-deep: #7A601B;     /* gold-toned text on light bg (AA on all light surfaces) */
  --gold-soft: rgba(201, 162, 39, 0.35);

  --hairline: rgba(34, 50, 43, 0.14);
  --hairline-dark: rgba(247, 243, 232, 0.16);

  /* Type */
  --serif: "Fraunces", "Fraunces Fallback", "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --h1: clamp(2.375rem, 1.6rem + 3.4vw, 4.25rem);
  --h2: clamp(1.875rem, 1.4rem + 1.9vw, 2.875rem);
  --h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5625rem);

  /* Layout */
  --container: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 14px;
  --radius-sm: 10px;

  --shadow-card: 0 1px 2px rgba(18, 43, 33, 0.05), 0 14px 40px -12px rgba(18, 43, 33, 0.14);
  --shadow-lift: 0 2px 4px rgba(18, 43, 33, 0.06), 0 24px 56px -16px rgba(18, 43, 33, 0.22);

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

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--green-950);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.25; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--green-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--green-800); }

ul, ol { padding-left: 1.25rem; }

strong { font-weight: 600; }

::selection { background: var(--gold-soft); }

:focus-visible {
  outline: 3px solid var(--green-700);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Gold reads better than green on the dark surfaces… */
.hero :focus-visible,
.page-hero :focus-visible,
.section--dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}
/* …but the form card stays light even inside dark sections */
.section--dark .form-card :focus-visible {
  outline-color: var(--green-700);
}

/* Anchored sections shouldn't hide under the sticky header */
[id] { scroll-margin-top: 5.5rem; }

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

/* ---------- Utilities ---------- */
.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.container--narrow { max-width: 780px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--cream2 { background: var(--cream-2); }
.section--dark {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(201, 162, 39, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(41, 87, 63, 0.5), transparent 60%),
    var(--green-900);
  color: var(--ink-on-dark);
}
.section--dark h2, .section--dark h3 { color: var(--ink-on-dark); }
.section--dark p { color: var(--ink-on-dark-soft); }
.section--dark a:not(.btn) { color: var(--gold); }

.text-center { text-align: center; }
.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--green-900);
  color: var(--ink-on-dark);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--ink-on-dark); }

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--gold);
}
.section--dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow { color: var(--gold); }

.lead {
  font-size: var(--text-lg);
  color: var(--ink-soft);
  max-width: 62ch;
}
.section--dark .lead { color: var(--ink-on-dark-soft); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }

/* Centered labels are framed symmetrically; left-aligned labels keep one rule. */
.section-head--center .eyebrow::after,
.text-center > .eyebrow::after {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--gold);
}

/* Gold hairline divider with leaf */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
  max-width: 16rem;
  color: var(--gold-deep);
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}
.divider::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: var(--gold);
  color: var(--green-950);
  box-shadow: 0 1px 2px rgba(18, 43, 33, 0.2), 0 10px 26px -10px rgba(201, 162, 39, 0.55);
}
.btn--gold:hover {
  background: #D5AF34;
  color: var(--green-950);
  box-shadow: 0 2px 4px rgba(18, 43, 33, 0.2), 0 14px 30px -10px rgba(201, 162, 39, 0.6);
}

.btn--outline {
  border-color: rgba(34, 50, 43, 0.35);
  color: var(--green-800);
  background: transparent;
}
.btn--outline:hover { border-color: var(--green-800); color: var(--green-900); background: rgba(34, 50, 43, 0.04); }

.btn--ghost-dark {
  border-color: var(--hairline-dark);
  color: var(--ink-on-dark);
  background: rgba(247, 243, 232, 0.04);
}
.btn--ghost-dark:hover { border-color: rgba(247, 243, 232, 0.45); color: #FFFFFF; background: rgba(247, 243, 232, 0.08); }

.btn--lg { padding: 1.05rem 2rem; font-size: 1.0625rem; }
.btn--sm { padding: 0.55rem 1.15rem; font-size: var(--text-sm); }

.btn .btn-arrow { transition: transform 0.18s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
  box-shadow: 0 8px 24px -18px rgba(18, 43, 33, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--green-900);
  margin-right: auto;
}
.brand-mark { width: 2rem; height: 2rem; color: var(--green-700); flex: none; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 620;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 560;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.nav-links a:hover { color: var(--green-700); }
.nav-links a[aria-current="page"] {
  color: var(--green-800);
  border-bottom-color: var(--gold);
}

.nav-cta { flex: none; }
.nav-cta .nav-cta-short { display: none; }

.nav-toggle {
  display: none;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: transparent;
  color: var(--green-900);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 960px) {
  .nav { gap: 0.75rem; }
  .nav-toggle { display: inline-flex; }
  /* Keep a compact primary CTA visible next to the hamburger */
  .nav-cta { padding: 0.55rem 1.05rem; font-size: var(--text-sm); }
  .nav-cta .nav-cta-long { display: none; }
  .nav-cta .nav-cta-short { display: inline; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem var(--gutter) 1.5rem;
    background: var(--cream);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 24px 40px -20px rgba(18, 43, 33, 0.3);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    display: block;
    padding: 0.9rem 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--hairline);
  }
  .nav-links a[aria-current="page"] { border-bottom-color: var(--hairline); color: var(--green-700); }
  @media (max-width: 480px) {
    .brand { gap: 0.45rem; }
    .brand-mark { width: 1.7rem; height: 1.7rem; }
    .brand-name { font-size: 1.08rem; }
    .nav-toggle { width: 2.5rem; height: 2.5rem; }
    .nav-cta { padding: 0.5rem 0.85rem; font-size: 0.85rem; }
  }
}

@media (max-width: 360px) {
  .nav { gap: 0.45rem; }
  .brand { gap: 0.4rem; }
  .brand-mark { width: 1.5rem; height: 1.5rem; }
  .brand-name { font-size: 0.98rem; }
  .nav-toggle { width: 2.25rem; height: 2.25rem; border-radius: 8px; }
  .nav-cta { padding: 0.45rem 0.65rem; font-size: 0.75rem; }
}

/* Preserve all three header actions on the narrowest supported phones. */
@media (max-width: 340px) {
  .nav { gap: 0.25rem; }
  .brand { gap: 0.3rem; }
  .brand-mark { width: 1.35rem; height: 1.35rem; }
  .brand-name { font-size: 0.9rem; }
  .nav-cta { padding-inline: 0.5rem; font-size: 0.72rem; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -12%, rgba(201, 162, 39, 0.14), transparent 58%),
    radial-gradient(900px 640px at -12% 108%, rgba(41, 87, 63, 0.55), transparent 62%),
    linear-gradient(180deg, var(--green-900), var(--green-950));
  color: var(--ink-on-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
}

.hero-copy h1 { color: #FDFBF4; margin-bottom: 0.5em; }
.hero-copy .lead { color: var(--ink-on-dark-soft); margin-bottom: 2rem; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--text-sm);
  color: var(--ink-on-dark-soft);
  max-width: 34rem;
}
.hero-note svg { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; color: var(--gold); }

/* Arch visual */
.hero-art { position: relative; }

.arch {
  position: relative;
  border-radius: 999px 999px var(--radius) var(--radius);
  border: 1px solid rgba(201, 162, 39, 0.35);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(201, 162, 39, 0.14), transparent 55%),
    linear-gradient(180deg, var(--green-800), var(--green-950));
  aspect-ratio: 4 / 5.1;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.arch::after {
  content: "";
  position: absolute;
  inset: 0.9rem;
  border-radius: 999px 999px calc(var(--radius) - 6px) calc(var(--radius) - 6px);
  border: 1px solid rgba(247, 243, 232, 0.14);
  pointer-events: none;
}
.arch svg { width: 100%; height: 100%; object-fit: cover; }

.float-card {
  position: absolute;
  left: clamp(-1.5rem, -3vw, -2.5rem);
  bottom: 2.25rem;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-lift);
  padding: 0.95rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 19rem;
}
.float-card svg { flex: none; width: 1.6rem; height: 1.6rem; color: var(--gold-deep); }
.float-card p { font-size: var(--text-xs); line-height: 1.45; color: var(--ink-soft); }
.float-card strong { display: block; font-size: var(--text-sm); color: var(--ink); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { width: 100%; max-width: 24rem; margin-inline: auto; }
  .float-card { left: 1rem; right: 1rem; bottom: 1rem; max-width: none; }
}

/* ---------- Trust bar ---------- */
.trust { border-block: 1px solid var(--hairline); background: var(--cream-2); }
.trust-inner { padding-block: clamp(2rem, 4vw, 2.75rem); text-align: center; }
.trust-label {
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.school-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 2.1rem;
  row-gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.school-list li {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  font-weight: 540;
  color: var(--green-800);
  letter-spacing: 0.01em;
}
.school-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1.2rem;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}
.trust-foot { margin-top: 1rem; font-size: var(--text-xs); color: var(--ink-soft); }

@media (max-width: 640px) {
  .school-list { column-gap: 1.35rem; row-gap: 0.45rem; }
  .school-list li:not(:last-child)::after { display: none; }
}

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.grid-2 > *, .grid-3 > *, .grid-4 > *,
.contact-grid > *, .cta-grid > *, .form-grid > * { min-width: 0; }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: #FFFDF8;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-card);
}

/* Step cards */
.step-card { position: relative; }
.step-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--gold-deep);
  margin-bottom: 0.9rem;
}
.step-card h3 { margin-bottom: 0.4em; }
.step-card p { font-size: var(--text-sm); color: var(--ink-soft); }

/* Icon feature items */
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
}
.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green-050);
  border: 1px solid var(--hairline);
  color: var(--green-700);
}
.feature-icon svg { width: 1.4rem; height: 1.4rem; }
.feature h3 { font-size: 1.2rem; margin-bottom: 0.3em; }
.feature p { font-size: var(--text-sm); color: var(--ink-soft); }

.section--dark .feature-icon {
  background: rgba(247, 243, 232, 0.06);
  border-color: var(--hairline-dark);
  color: var(--gold);
}
.section--dark .feature p { color: var(--ink-on-dark-soft); }

/* Quote / testimonial cards */
.quote-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  height: 100%;
}
.quote-mark {
  font-family: var(--serif);
  font-size: 2.75rem;
  line-height: 0.5;
  color: var(--gold);
  margin: 0.3rem 0 0;
}
.quote-card blockquote {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  flex: 1;
}
.quote-attr {
  border-top: 1px solid var(--hairline);
  padding-top: 0.9rem;
  font-size: var(--text-sm);
}
.quote-attr strong { display: block; color: var(--green-800); }
.quote-attr span { color: var(--ink-soft); }

.quote-card--featured {
  background: var(--green-900);
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: var(--shadow-lift);
}
.quote-card--featured blockquote { color: var(--ink-on-dark); }
.quote-card--featured .quote-attr { border-top-color: var(--hairline-dark); }
.quote-card--featured .quote-attr strong { color: var(--ink-on-dark); }
.quote-card--featured .quote-attr span { color: var(--ink-on-dark-soft); }
.results-disclaimer {
  margin: 1.4rem auto 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: var(--text-xs);
  text-align: center;
}

/* Service cards */
.svc-card { display: flex; flex-direction: column; height: 100%; }
.svc-tag {
  align-self: flex-start;
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  margin-bottom: 1rem;
}
.svc-card h3 { margin-bottom: 0.35em; }
.svc-card > p { font-size: var(--text-sm); color: var(--ink-soft); }
.svc-list {
  list-style: none;
  margin: 1.1rem 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  flex: 1;
}
.svc-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--ink);
}
.svc-list svg { flex: none; width: 1.05rem; height: 1.05rem; margin-top: 0.2rem; color: var(--green-600); }
.svc-card .btn { align-self: flex-start; }

.svc-card--flagship {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: var(--shadow-lift);
}

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: 1fr; } }
.stat { text-align: center; padding: 1.5rem 1rem; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem);
  font-weight: 540;
  color: var(--green-800);
  line-height: 1.05;
}
.section--dark .stat-num { color: var(--gold); }
.stat-label { margin-top: 0.5rem; font-size: var(--text-sm); color: var(--ink-soft); }
.section--dark .stat-label { color: var(--ink-on-dark-soft); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(900px 420px at 82% -30%, rgba(201, 162, 39, 0.12), transparent 60%),
    linear-gradient(180deg, var(--green-900), var(--green-950));
  color: var(--ink-on-dark);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.page-hero h1 { color: #FDFBF4; margin-bottom: 0.35em; }
.page-hero .lead { color: var(--ink-on-dark-soft); }

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before { display: none; }
.timeline li {
  position: relative;
  padding: 0 0 2.2rem 3.4rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 2.25rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-soft), var(--hairline));
}
.timeline-dot {
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream);
  border: 1px solid rgba(201, 162, 39, 0.5);
  color: var(--gold-deep);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.95rem;
}
.timeline h3 { font-size: 1.25rem; margin-bottom: 0.3em; }
.timeline p { font-size: var(--text-sm); color: var(--ink-soft); max-width: 58ch; }
.timeline .timeline-when {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.35rem;
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: #FFFDF8;
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--green-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-chevron {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--gold-deep);
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary .faq-chevron { transform: rotate(180deg); }
.faq-item .faq-body {
  padding: 0 1.35rem 1.2rem;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  max-width: 68ch;
}

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-portrait {
  width: min(13rem, 70%);
  margin: 0 auto 1.4rem;
  aspect-ratio: 4 / 4.8;
  border-radius: 999px 999px 12px 12px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(201, 162, 39, 0.14), transparent 60%),
    linear-gradient(180deg, var(--green-100), var(--green-050));
  display: grid;
  place-items: center;
  color: var(--green-600);
  overflow: hidden;
}
.team-portrait svg { width: 3rem; height: 3rem; opacity: 0.75; }
.team-portrait img { width: 100%; height: 100%; object-fit: cover; }
.team-role {
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0.25rem 0 0.75rem;
}
.team-card p { font-size: var(--text-sm); color: var(--ink-soft); text-align: left; }
.team-card .team-role { text-align: center; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
}
.cta-band .cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) { .cta-band .cta-grid { grid-template-columns: 1fr; } }

.cta-points {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.cta-points li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--ink-on-dark-soft);
  font-size: var(--text-sm);
}
.cta-points svg { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; color: var(--gold); }

/* ---------- Forms ---------- */
.form-card {
  background: #FFFDF8;
  color: var(--ink);
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-lift);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
}
/* The form card stays light even inside dark sections — force its palette */
.form-card h3, .section--dark .form-card h3 { color: var(--green-900); margin-bottom: 0.25em; }
.form-card .form-sub, .section--dark .form-card .form-sub { font-size: var(--text-sm); color: var(--ink-soft); margin-bottom: 1.4rem; }
.form-card .form-privacy, .section--dark .form-card .form-privacy { color: var(--ink-soft); margin-bottom: 0; }
.form-card a:not(.btn), .section--dark .form-card a:not(.btn) { color: var(--green-link); }
.form-card a:not(.btn):hover, .section--dark .form-card a:not(.btn):hover { color: var(--green-800); }
.section--dark .form-card .form-status.is-success { color: var(--green-800); }
.section--dark .form-card .form-status.is-error { color: #7C3A12; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.form-field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.form-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.form-field .optional {
  font-weight: 480;
  color: var(--ink-soft);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(34, 50, 43, 0.55);
  border-radius: 8px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.form-field input,
.form-field select { min-height: 3.25rem; }
.form-field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.6rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--green-700) 50%),
    linear-gradient(135deg, var(--green-700) 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) 50%,
    calc(100% - 0.85rem) 50%;
  background-size: 0.32rem 0.32rem, 0.32rem 0.32rem;
  background-repeat: no-repeat;
}
.form-field select:invalid { color: #66736C; }
.form-field select option { color: var(--ink); }
.form-field textarea { resize: vertical; min-height: 7.5rem; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(41, 87, 63, 0.18);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #66736C; }

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.4rem;
}
.form-privacy { font-size: var(--text-xs); color: var(--ink-soft); max-width: 26rem; }

@media (max-width: 560px) {
  .form-foot { align-items: stretch; }
  .form-foot .btn { width: 100%; }
  .form-field textarea { resize: none; }
}

/* Always rendered (so screen readers get announcements); styled only when populated */
.form-status {
  grid-column: 1 / -1;
  display: block;
  margin: 0;
  border-radius: 8px;
  font-size: var(--text-sm);
}
.form-status:empty { margin: 0; padding: 0; border: 0; }
.form-status.is-success { padding: 0.85rem 1rem; background: var(--green-050); border: 1px solid rgba(41, 87, 63, 0.35); color: var(--green-800); }
.form-status.is-error { padding: 0.85rem 1rem; background: #FBEFE9; border: 1px solid #C97B4A; color: #7C3A12; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-base);
  margin-top: 1.5rem;
}
.contact-line svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--gold-deep); }

/* ---------- Long-form policy copy ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h2:first-of-type { margin-top: 2rem; }

/* ---------- 404 ---------- */
.error-page {
  min-height: clamp(34rem, 70vh, 48rem);
  display: grid;
  place-items: center;
}
.error-actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-950);
  color: var(--ink-on-dark-soft);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: var(--text-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.4fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--hairline-dark);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand { color: var(--ink-on-dark); margin-bottom: 0.9rem; }
.footer-brand .brand-mark { color: var(--gold); }
.footer-brand p { max-width: 30ch; }

.site-footer h2 {
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-on-dark);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-links a { color: var(--ink-on-dark-soft); text-decoration: none; }
.footer-links a:hover { color: var(--gold); text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  font-size: var(--text-xs);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--ink-on-dark-soft); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
/* No-JS fallback: keep everything visible */
.no-js .reveal { opacity: 1; transform: none; }
