/* ==========================================================================
   Verdant Consultancy — homepage
   Mobile-first. Breakpoints: 600 / 768 / 960 / 1120 (desktop nav)
   ========================================================================== */

:root {
  /* Brand palette (sampled from the existing site) */
  --pine: #002f2a;
  --forest: #0b4734;
  --forest-2: #115a43;
  --gold: #c9a863;
  --gold-hover: #d6b977;
  --gold-soft: #e8dbb8;   /* gold for small text on dark */
  --gold-ink: #7d6026;    /* gold for text on light backgrounds (AA contrast) */
  --linen: #f5f3ee;
  --paper: #fbfaf7;
  --stone: #ece7dc;
  --sand: #d9c9b3;
  --sage: #bfc8bd;
  --ink: #1c2b26;
  --muted: #4e5e57;
  --line: rgba(11, 71, 52, 0.14);
  --error: #a23b2a;

  /* Type */
  --font-sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --fs-hero: clamp(2.625rem, 1.5rem + 5vw, 5.25rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.4vw, 3.25rem);
  --fs-h3: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  --fs-lead: clamp(1.125rem, 1.04rem + 0.4vw, 1.3125rem);

  /* Space */
  --gutter: clamp(20px, 4vw, 40px);
  --space-section: clamp(64px, 9vw, 120px);
  --radius: 20px;

  /* Header: --header-space is the fixed room reserved at the top of the page;
     --header-h is the header's current height (it compacts on desktop);
     --header-offset is how much of the screen it covers right now (0 when hidden on mobile). */
  --header-space: 68px;
  --header-h: 68px;
  --header-offset: var(--header-h);
  --pagenav-h: 0px;
  --sticky-top: calc(var(--header-offset) + var(--pagenav-h));

  /* Mobile tab bar: --tabbar-space is the room it covers at the bottom of the screen (0 on desktop). */
  --tabbar-h: 62px;
  --tabbar-gap: max(12px, env(safe-area-inset-bottom));
  --tabbar-space: 0px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-y: 20px;
  --sheet-r: clamp(24px, 4vw, 48px);
}

@media (min-width: 768px) {
  :root { --reveal-y: 32px; }
}
@media (min-width: 1120px) {
  :root { --header-space: 84px; --header-h: 84px; }
  :root.header-compact { --header-h: 66px; }
}
@media (max-width: 1119px) {
  :root { --tabbar-space: calc(var(--tabbar-h) + var(--tabbar-gap) + 8px); }
}
:root.header-hidden { --header-offset: 0px; }
html:has(.page-nav) { --pagenav-h: 52px; }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--sticky-top) + 16px);
  scroll-padding-bottom: var(--tabbar-space);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.menu-open, html.modal-open { overflow: hidden; }

body {
  margin: 0;
  padding-top: var(--header-space);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.2; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
[hidden] { display: none !important; }

a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 4px; }
.site-header :focus-visible,
.bg-forest :focus-visible,
.site-footer :focus-visible,
.page-nav :focus-visible,
.tabbar :focus-visible { outline-color: var(--gold); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  padding: 12px 18px; border-radius: 10px;
  background: var(--gold); color: var(--pine); font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(1200px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container.narrow { max-width: calc(820px + var(--gutter) * 2); }
.center { text-align: center; }

.section { padding-block: var(--space-section); }
.section-tight { padding-block: clamp(48px, 7vw, 88px); }

.bg-linen { background: var(--linen); }
.bg-paper { background: var(--paper); }
.bg-stone { background: var(--stone); }
.bg-sand { background: var(--sand); }
.bg-forest { background: var(--forest); color: var(--linen); }

.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }

.h-display {
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--forest);
  margin-bottom: 0.45em;
}
.bg-forest .h-display { color: var(--gold); }

.lede {
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--gold-ink);
}

@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 768px) {
  .show-mobile { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 500 1rem/1.2 var(--font-sans);
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-sm { min-height: 42px; padding: 0.55rem 1.15rem; font-size: 0.9375rem; }
.btn-block { width: 100%; }

.btn-gold { background: var(--gold); color: var(--pine); }
.btn-gold:hover { background: var(--gold-hover); }

.btn-forest { background: var(--forest); color: var(--linen); }
.btn-forest:hover { background: var(--forest-2); }

.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--linen); }

.btn:disabled { opacity: 0.6; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-row.center { justify-content: center; }
@media (max-width: 599px) {
  .btn-row { flex-direction: column; align-items: stretch; }
}

.center-cta { margin-top: clamp(36px, 5vw, 56px); text-align: center; }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}

.round-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--forest);
  border-radius: 50%;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover:not(:disabled) { background: var(--forest); color: var(--linen); }
.round-btn:disabled { opacity: 0.3; cursor: default; }
.flip { transform: scaleX(-1); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--pine);
  color: var(--gold-soft);
  transition: box-shadow 0.3s, transform 0.5s var(--ease-out);
}
.header-hidden .site-header:not(:focus-within) { transform: translateY(-100%); box-shadow: none; }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(201, 168, 99, 0.2), 0 10px 28px rgba(0, 20, 17, 0.22); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
  max-width: calc(1200px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  transition: height 0.45s var(--ease-out);
}
.brand { transform-origin: left center; transition: scale 0.45s var(--ease-out); }
@media (min-width: 1120px) {
  .header-compact .brand { scale: 0.9; }
  .header-compact .icon-btn { width: 38px; height: 38px; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  color: var(--gold);
  text-decoration: none;
  flex-shrink: 0;
}
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.3125rem; letter-spacing: 0.07em; text-transform: uppercase; }
.brand-sub { margin-top: 5px; font-size: 0.625rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-soft); }
.brand-leaf { width: 32px; height: auto; margin-top: -2px; }

@media (min-width: 1120px) {
  .brand-name { font-size: 1.5rem; }
  .brand-sub { font-size: 0.6875rem; }
  .brand-leaf { width: 38px; }
}

/* Desktop nav */
.primary-nav { display: none; }
.nav-list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--gold-soft);
  font: 400 1rem/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover, .nav-item.is-open > .nav-link { color: var(--gold); background: rgba(255, 255, 255, 0.06); }
.chev { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.2s; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.nav-item[data-current] > .nav-link { color: var(--gold); }
.nav-item[data-current] > .nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: currentColor;
}
.nav-link { position: relative; }

.subnav {
  position: absolute;
  top: calc(100% + 14px);
  left: -8px;
  margin: 0;
  padding: 10px;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 31, 27, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.subnav ul { margin: 0; padding: 0; list-style: none; }
.subnav a { color: var(--ink); text-decoration: none; }

.subnav--list { width: 300px; }
.subnav--list a {
  display: grid;
  gap: 2px;
  padding: 11px 14px;
  border-radius: 10px;
  line-height: 1.3;
}
.subnav--list a strong { font-weight: 500; font-size: 0.9875rem; color: var(--forest); }
.subnav--list a span { font-size: 0.875rem; color: var(--muted); }
.subnav--list a:hover { background: var(--stone); }

.subnav--mega {
  left: 50%;
  display: grid;
  grid-template-columns: 1fr 220px;
  width: 780px;
  padding: 12px;
  transform: translate(-50%, -4px);
}
.mega-cards { display: grid; gap: 4px; }
.mega-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
}
.mega-card:hover { background: var(--stone); }
.mega-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #fdf6eb; }
.mega-card > span { display: grid; gap: 2px; line-height: 1.3; }
.mega-card strong { font-weight: 500; color: var(--forest); }
.mega-card em { font-style: normal; font-size: 0.8125rem; color: var(--gold-ink); }
.mega-card span span { font-size: 0.875rem; color: var(--muted); }
.mega-links {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 10px 6px 10px 18px;
  border-left: 1px solid var(--line);
}
.mega-links a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--forest);
}
.mega-links a:hover { background: var(--stone); }
/* Every page in the side list is hidden or members-only (set in the website editor): the cards take the menu */
.subnav--mega:not(:has(.mega-links)) { grid-template-columns: 1fr; width: 560px; }

.nav-item.is-open .subnav { opacity: 1; visibility: visible; transform: none; }
.nav-item.is-open .subnav--mega { transform: translate(-50%, 0); }
@media (hover: hover) {
  .nav-item.has-sub:hover .subnav { opacity: 1; visibility: visible; transform: none; }
  .nav-item.has-sub:hover .subnav--mega { transform: translate(-50%, 0); }
  .nav-item.has-sub:hover .chev { transform: rotate(180deg); }
  /* Closed with Escape or a click: stays closed while the pointer is still over it */
  .nav-item.has-sub.is-dismissed:hover .subnav { opacity: 0; visibility: hidden; }
  .nav-item.has-sub.is-dismissed:hover .chev { transform: none; }
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(201, 168, 99, 0.5);
  border-radius: 50%;
  color: var(--gold);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, width 0.45s var(--ease-out), height 0.45s var(--ease-out);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--pine); }
.desk-only { display: none; }

.header-cta { padding-inline: 1rem; }
/* Below the desktop nav the call button matches the menu button beside it */
@media (max-width: 1119px) { .header-actions .icon-btn { width: 44px; height: 44px; } }
/* Phones: logo, call, Start here and menu share the bar, so everything tightens a little */
@media (max-width: 599px) {
  .header-inner { gap: 8px; }
  .header-actions { gap: 6px; }
  .header-cta { padding-inline: 0.85rem; font-size: 0.875rem; }
}
@media (max-width: 389px) {
  .brand { gap: 6px; }
  .brand-name { font-size: 1.125rem; }
  .brand-sub { font-size: 0.5625rem; }
  .brand-leaf { width: 26px; }
  .header-actions .icon-btn, .header-actions .menu-toggle { width: 40px; height: 40px; }
}
@media (max-width: 339px) { .header-cta { display: none; } }

.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(201, 168, 99, 0.5);
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}
.menu-bars { position: relative; width: 18px; height: 10px; }
.menu-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s, top 0.25s, bottom 0.25s;
}
.menu-bars span:first-child { top: 0; }
.menu-bars span:last-child { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-bars span:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:last-child { bottom: 4.25px; transform: rotate(-45deg); }

@media (min-width: 1120px) {
  .primary-nav { display: block; margin-inline: auto; }
  .desk-only { display: grid; }
  .header-actions { gap: 10px; }
  .header-cta { margin-left: 6px; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--pine);
  border-top: 1px solid rgba(201, 168, 99, 0.2);
}
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: 8px var(--gutter) calc(28px + max(env(safe-area-inset-bottom), var(--tabbar-space)));
}
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu:not([hidden]) { animation: menu-in 0.24s ease-out; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

.m-list { margin: 0; padding: 0; list-style: none; }
.m-list > li { border-bottom: 1px solid rgba(201, 168, 99, 0.16); }
.m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  color: var(--linen);
  font-size: 1.25rem;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
.m-link::-webkit-details-marker { display: none; }
.m-link .chev { width: 20px; height: 20px; color: var(--gold); }
.m-group[open] .chev { transform: rotate(180deg); }
.m-sub { margin: 0 0 14px; padding: 0; list-style: none; }
.m-sub a {
  display: block;
  padding: 11px 0 11px 18px;
  border-left: 1px solid rgba(201, 168, 99, 0.4);
  color: var(--gold-soft);
  font-size: 1.0625rem;
  text-decoration: none;
}

.m-footer { display: grid; gap: 14px; margin-top: auto; padding-top: 32px; }
.m-contact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.m-contact a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  border: 1px solid rgba(201, 168, 99, 0.35);
  border-radius: 14px;
  color: var(--gold-soft);
  font-size: 0.875rem;
  text-decoration: none;
}
.m-contact svg { width: 20px; height: 20px; color: var(--gold); }

/* Mobile tab bar: a floating bar below the desktop nav breakpoint that keeps the main
   destinations in thumb reach while the header is away. Slims to icons as you scroll down. */
.tabbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: var(--tabbar-gap);
  z-index: 50;
  max-width: 440px;
  margin-inline: auto;
  border: 1px solid rgba(201, 168, 99, 0.28);
  border-radius: 999px;
  background: rgba(0, 47, 42, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 14px 34px rgba(0, 20, 17, 0.3), 0 2px 6px rgba(0, 20, 17, 0.16);
  transition: translate 0.45s var(--ease-out);
}
.tabbar-list { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 0; padding: 0 8px; list-style: none; }

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-height: var(--tabbar-h);
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--gold-soft);
  font: 500 0.6875rem/1.1 var(--font-sans);
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: min-height 0.45s var(--ease-out);
}
.tab-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 30px;
  border-radius: 999px;
  color: var(--gold);
  transition: background-color 0.25s, color 0.25s;
}
.tab-icon svg { width: 22px; height: 22px; }
.tab-label { white-space: nowrap; transition: opacity 0.25s, margin 0.45s var(--ease-out); }

.tab[aria-current] { color: var(--gold); }
.tab[aria-current] .tab-icon,
.tab[aria-expanded="true"] .tab-icon { background: rgba(201, 168, 99, 0.18); }
.tab--cta .tab-icon { background: var(--gold); color: var(--pine); }
.tab--cta, .tab--cta[aria-current] { color: var(--gold); }
.tab--cta[aria-current] .tab-icon { background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 168, 99, 0.3); }
@media (hover: hover) {
  .tab:hover .tab-icon { background: rgba(201, 168, 99, 0.14); }
  .tab--cta:hover .tab-icon { background: var(--gold-hover); }
}

/* Menu button: bars ↔ close */
.tab .i-shut, .tab[aria-expanded="true"] .i-open { display: none; }
.tab[aria-expanded="true"] .i-shut { display: block; }

/* Slim while scrolling down (the header hides at the same moment) */
.header-hidden .tab { min-height: 48px; }
.header-hidden .tab-label { opacity: 0; margin-top: -15px; }

/* Out of the way while typing, so the keyboard doesn't push it over form fields */
html:has(:is(input:not([type="checkbox"], [type="radio"], [type="submit"]), textarea, select):focus) .tabbar {
  translate: 0 calc(100% + 40px);
}

@media (min-width: 1120px) {
  .tabbar { display: none; }
}
@media print {
  .tabbar { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(calc(100vh - var(--header-space) - 52px - var(--tabbar-space)), 720px);
  min-height: min(calc(100svh - var(--header-space) - 52px - var(--tabbar-space)), 720px);
  overflow: hidden;
  background: var(--stone);
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% center;
}
.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top,
    rgba(245, 243, 238, 0.97) 0%,
    rgba(245, 243, 238, 0.9) 28%,
    rgba(245, 243, 238, 0.35) 52%,
    rgba(245, 243, 238, 0) 70%);
}
.hero-content {
  width: 100%;
  max-width: calc(1200px + var(--gutter) * 2);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(36px, 7vw, 72px);
}
.hero-title {
  margin-bottom: 28px;
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--forest);
}
.hero-sub { max-width: 30rem; margin: -8px 0 24px; font-size: var(--fs-lead); line-height: 1.45; color: var(--ink); }
.hero-content .btn-row { margin-top: 0; }
.hero-secondary { background: rgba(245, 243, 238, 0.55); }
.hero-proof { display: none; max-width: 34rem; margin: 36px 0 0; padding: 0; list-style: none; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; color: var(--forest); }
.hero-proof svg { width: 18px; height: 18px; color: var(--gold-ink); }
@media (max-width: 599px) {
  .hero-content .btn-row { flex-direction: row; }
  .hero-secondary { display: none; }
}
@media (min-width: 768px) {
  .hero-proof { display: flex; flex-wrap: wrap; gap: 10px 28px; }
}
.hero-toggle, .video-toggle {
  position: absolute;
  top: 14px;
  right: var(--gutter);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 47, 42, 0.55);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hero-toggle svg, .video-toggle svg { width: 18px; height: 18px; }
.hero-toggle .i-play, .hero-toggle.is-paused .i-pause,
.video-toggle .i-play, .video-toggle.is-paused .i-pause { display: none; }
.hero-toggle.is-paused .i-play, .video-toggle.is-paused .i-play { display: block; }
/* Videos inside framed media (page heroes, Verdant Institute): the button sits in the frame's lower corner */
[data-ambient-video] { position: relative; }
.video-toggle { top: auto; right: 14px; bottom: 14px; }

@media (min-width: 768px) {
  .hero { align-items: center; min-height: min(calc(100vh - var(--header-space) - 52px - var(--tabbar-space)), 700px); }
  .hero-wash {
    background: linear-gradient(90deg,
      rgba(245, 243, 238, 0.95) 0%,
      rgba(245, 243, 238, 0.86) 38%,
      rgba(245, 243, 238, 0.3) 60%,
      rgba(245, 243, 238, 0) 74%);
  }
  .hero-content { padding-block: 64px; }
  .hero-media { object-position: center; }
  .hero-toggle { top: auto; bottom: 20px; }
}

/* On-page nav */
.page-nav {
  position: sticky;
  top: var(--header-offset);
  z-index: 40;
  background: var(--forest);
  box-shadow: 0 1px 0 rgba(201, 168, 99, 0.18);
  transition: top 0.5s var(--ease-out);
}
.page-nav ul {
  position: relative;
  display: flex;
  gap: 2px;
  max-width: calc(1200px + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.page-nav ul::-webkit-scrollbar { display: none; }
.page-nav li:first-child a { margin-left: -12px; }
.page-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 12px;
  color: var(--gold-soft);
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}
.page-nav a:hover { color: var(--gold); text-decoration: underline; }
.page-nav a { position: relative; }
.page-nav a[aria-current="true"] { color: var(--gold); }
.page-nav a[aria-current="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 10px; height: 1px; background: currentColor; }
@media (min-width: 1024px) {
  .page-nav ul { justify-content: space-between; -webkit-mask-image: none; mask-image: none; }
  .page-nav li:last-child a { margin-right: -12px; }
}
.page-nav-indicator {
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 1px;
  height: 1px;
  background: var(--gold);
  opacity: 0;
  transform-origin: left center;
  pointer-events: none;
  transition: transform 0.55s var(--ease-out), opacity 0.3s;
}
.page-nav.has-indicator a[aria-current="true"]::after { display: none; }

/* ==========================================================================
   Intro
   ========================================================================== */
.intro-grid { display: grid; gap: 48px; }
/* Three equal tiles on one row at every width; labels wrap inside the tile */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.pillars li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px 13px;
  border: 1px solid rgba(11, 71, 52, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--forest);
  font-size: 0.875rem;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}
.pillars svg { width: 24px; height: 24px; color: var(--gold-ink); }
@media (min-width: 600px) {
  .pillars { gap: 12px; }
  .pillars li { font-size: 0.9375rem; }
}
.intro-stance { margin: 24px 0 0; font-size: var(--fs-lead); color: var(--gold-ink); }

.commitments { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.commitments li { padding-left: 16px; border-left: 2px solid var(--gold); }
.commitments h3 { margin-bottom: 2px; font-size: 1.1875rem; font-weight: 500; color: var(--gold-ink); }
.commitments p { font-size: 1rem; line-height: 1.55; }
/* Run-in: the heading opens the sentence ("Helping families make…") */
.commitments--runin h3, .commitments--runin p { display: inline; }
.commitments--runin h3 { font-family: var(--font-serif); font-size: 1.25rem; font-style: italic; line-height: 1; }

.intro-cta { margin-top: 0; }

@media (min-width: 960px) {
  .intro-grid { grid-template-columns: 1.1fr 1fr; grid-template-rows: auto 1fr; gap: 36px 80px; align-items: start; }
  .commitments { grid-column: 2; grid-row: 1 / span 2; padding-top: 12px; gap: 24px; }
  .intro-cta { grid-column: 1; grid-row: 2; }
}

/* ==========================================================================
   Support areas
   ========================================================================== */
.support-grid { display: grid; gap: 20px; }
.support-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f0ece3;
  border-radius: var(--radius);
}
.support-card img { width: 100%; aspect-ratio: 800 / 513; object-fit: cover; }
.support-body { padding: 4px 24px 24px; }
.support-body h3 { margin-bottom: 8px; font-size: 1.5rem; color: var(--forest); }
.support-body p { margin-bottom: 8px; }

@media (min-width: 720px) {
  .support-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .support-body { padding: 8px 32px 28px; }
}

/* ==========================================================================
   Your journey
   ========================================================================== */
.journey-figure {
  margin: 0 0 clamp(36px, 6vw, 64px);
  overflow: hidden;
  overflow: clip;
  border-radius: var(--radius);
  background: #fcf9f1;
}
.journey-figure img { width: 100%; }

.journey-list {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: journey;
}
.journey-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-content: start;
  column-gap: 16px;
  counter-increment: journey;
}
.journey-list li::before {
  content: counter(journey);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--linen);
  font-weight: 500;
}
.journey-list h3 { margin: 6px 0 6px; font-size: 1.25rem; font-weight: 500; color: var(--forest); }

/* Desktop: one path, heading beside its text, so the steps read in order */
@media (min-width: 768px) {
  .journey-list { max-width: 980px; margin-inline: auto; gap: 40px; }
  .journey-list li { grid-template-columns: 40px minmax(0, 14rem) 1fr; column-gap: 28px; }
  .journey-list li::before { grid-row: auto; }
  .journey-list h3 { margin: 5px 0 0; }
}

/* ==========================================================================
   Our approach
   ========================================================================== */
.approach-grid { display: grid; gap: 40px; }
.approach-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.arch { border-radius: 999px 999px 16px 16px; }

.approach-copy > p:not(.lede) { max-width: 38rem; }

.questions { display: grid; gap: 12px; margin: 32px 0; }
.q { padding: 20px 24px; border-radius: 16px; }
.q-label { margin-bottom: 6px; font-size: 0.875rem; color: var(--gold-ink); }
.q-text { font-family: var(--font-serif); font-style: italic; line-height: 1.4; }
.q-not { border: 1px dashed rgba(11, 71, 52, 0.3); }
.q-not .q-text { font-size: 1.25rem; color: var(--muted); }
.q-ask { background: var(--forest); }
.q-ask .q-label { color: var(--gold); }
.q-ask .q-text { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); color: var(--linen); }

@media (min-width: 960px) {
  .approach-grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .approach-media { position: sticky; top: calc(var(--sticky-top) + 40px); }
  .approach-media img { aspect-ratio: 4 / 5; }
}

/* ==========================================================================
   Carousels (scroll-snap) — used by steps, skills, testimonials, insights
   ========================================================================== */
.track + .track { margin-top: clamp(64px, 9vw, 104px); }
.track > .btn { margin-top: 32px; }

.track-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 24px;
  margin-bottom: 28px;
}
.track-head > :first-child { flex: 1 1 300px; }
.track-head .section-head { margin-bottom: 0; }
.h-track { margin-bottom: 6px; font-size: var(--fs-h3); line-height: 1.15; color: var(--forest); }
.carousel-controls { display: flex; gap: 8px; flex-shrink: 0; }

.steps, .skills, .quotes, .insights {
  display: grid;
  grid-auto-flow: column;
  gap: 16px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 8px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.steps::-webkit-scrollbar, .skills::-webkit-scrollbar, .quotes::-webkit-scrollbar, .insights::-webkit-scrollbar { display: none; }
.steps > *, .skills > *, .quotes > *, .insights > * { scroll-snap-align: start; }

/* Steps */
.steps { grid-auto-columns: min(80%, 320px); }
.step {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.step img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.step h4 { margin: 18px 20px 6px; font-size: 1.25rem; font-weight: 500; color: var(--forest); }
.step p { margin: 0 20px 22px; font-size: 1rem; }

@media (min-width: 600px) {
  .steps { grid-auto-columns: calc((100% - 16px) / 2.2); }
}

/* Skills (Verdant Institute): a swipeable row of dark cards on phones and tablets;
   on desktop a ruled 3 × 2 index whose cells turn dark as you point at them. */
.skills { grid-auto-columns: min(78%, 290px); counter-reset: skill; }
.skill {
  counter-increment: skill;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 24px;
  border-radius: 18px;
  background: var(--pine);
  color: rgba(245, 243, 238, 0.8);
}
.skill::before {
  content: counter(skill, decimal-leading-zero);
  margin-bottom: 26px;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-style: italic;
  line-height: 1;
  color: var(--gold);
}
.skill h3 { margin-bottom: 6px; font-size: 1.1875rem; font-weight: 500; line-height: 1.25; color: var(--linen); }
.skill p { margin: 0; font-size: 0.9375rem; line-height: 1.55; }
@media (min-width: 600px) {
  .skills { grid-auto-columns: calc((100% - 16px) / 2.3); }
}
@media (min-width: 1024px) {
  .skills {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
    border-top: 1px solid var(--line);
  }
  .skill {
    padding: 26px 28px 30px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    transition: background-color 0.35s var(--ease-out), color 0.35s;
  }
  /* keep the scroll-reveal transitions alongside the hover fade */
  .motion .skills > .skill {
    transition: opacity 0.9s var(--ease-out) var(--d, 0ms), translate 1.1s var(--ease-out) var(--d, 0ms), background-color 0.35s var(--ease-out), color 0.35s;
  }
  .skill:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
  .skill::before { margin-bottom: 32px; color: var(--gold-ink); transition: color 0.35s, translate 0.45s var(--ease-out); }
  .skill h3 { color: var(--forest); transition: color 0.35s; }
  .skill:hover { background: var(--pine); color: rgba(245, 243, 238, 0.8); }
  .skill:hover::before { color: var(--gold); translate: 0 -4px; }
  .skill:hover h3 { color: var(--linen); }
}

/* ---------- How it works: service switch + process stepper ----------
   main.js turns [data-stepper] lists into a stepper (the illustrations share one stage, one step is
   open at a time) and reveals the Admissions / Mentoring switch on the homepage. */
.service-switch {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin-bottom: clamp(28px, 4vw, 44px);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}
.service-switch::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 2);
  border-radius: 999px;
  background: var(--pine);
  translate: calc(var(--tab, 0) * 100%) 0;
  transition: translate 0.5s var(--ease-out);
}
.service-switch [role="tab"] {
  position: relative;
  z-index: 1;
  min-height: 44px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--forest);
  font: 500 0.9375rem/1 var(--font-sans);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.35s;
}
.service-switch [aria-selected="true"] { color: var(--gold-soft); }
@media (max-width: 599px) {
  .service-switch { display: grid; }
}
.track[role="tabpanel"] { margin-top: 0; }
.motion .track[role="tabpanel"]:not([hidden]) { animation: fade-in 0.6s var(--ease-out); }

.stepper-stage {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fcf9f1;
  cursor: pointer;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.stepper-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  scale: 1.04;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out), scale 1.2s var(--ease-out);
}
.stepper-stage img.is-active { opacity: 1; scale: 1; }

.steps.is-stepper {
  display: block;
  margin: 0;
  padding: 0;
  overflow: visible;
  border-top: 1px solid var(--line);
  counter-reset: step-n;
}
.steps.is-stepper > .step {
  counter-increment: step-n;
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto 0fr;
  padding-bottom: 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  transition: opacity 0.9s var(--ease-out) var(--d, 0ms), translate 1.1s var(--ease-out) var(--d, 0ms),
    grid-template-rows 0.5s var(--ease-out), padding-bottom 0.5s var(--ease-out);
  animation: none;
}
.steps.is-stepper > .step::before {
  content: counter(step-n, decimal-leading-zero);
  align-self: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--muted);
  opacity: 0.7;
  transition: color 0.35s, opacity 0.35s;
}
/* A gold rule draws under the open step */
.steps.is-stepper > .step::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease-out);
}
.steps.is-stepper h4 { grid-column: 2; margin: 0; font-size: 1.25rem; }
.step-toggle {
  display: block;
  width: 100%;
  padding: 16px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.35s;
}
.step-toggle:hover { color: var(--forest); }
.steps.is-stepper p {
  grid-column: 2;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s linear 0.5s;
}
.steps.is-stepper > .is-active { grid-template-rows: auto 1fr; padding-bottom: 20px; }
.steps.is-stepper > .is-active::before { color: var(--gold-ink); opacity: 1; }
.steps.is-stepper > .is-active::after { transform: scaleX(1); }
.steps.is-stepper > .is-active .step-toggle { color: var(--forest); }
.steps.is-stepper > .is-active p { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease-out) 0.1s, visibility 0s; }

.track.is-stepper > .stepper-stage { margin-bottom: 12px; }
@media (min-width: 900px) {
  .track.is-stepper {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(40px, 6vw, 88px);
  }
  .track.is-stepper > .track-head { grid-column: 1 / -1; }
  .track.is-stepper > .stepper-stage { grid-column: 1; grid-row: 2 / span 2; margin: 0; }
  .track.is-stepper > .steps { grid-column: 2; grid-row: 2; }
  .track.is-stepper > .btn { grid-column: 2; grid-row: 3; align-self: start; justify-self: start; }
}
@media (min-width: 1024px) {
  .steps {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
}

/* ==========================================================================
   Why Verdant
   ========================================================================== */
.why { display: grid; }
.why-copy { padding: var(--space-section) var(--gutter); background: var(--paper); }
.why-copy-inner { max-width: 560px; margin-inline: auto; }
.why-copy p { font-size: 1.125rem; }
.why-copy .btn { margin-top: 16px; }

.founder { padding: var(--space-section) var(--gutter); background: var(--sage); }
.founder-inner { max-width: 520px; margin-inline: auto; }
.founder-photo {
  width: calc(clamp(180px, 42vw, 260px) * var(--photo-size, 1));
  aspect-ratio: 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  object-fit: cover;
}
.founder-name { margin-bottom: 6px; font-size: 1.5rem; color: var(--forest); text-align: center; }
.founder-role { max-width: 26rem; margin: 0 auto 32px; text-align: center; }
.founder-lists { display: grid; gap: 24px; }
.founder-lists h3 { margin-bottom: 8px; font-size: 1rem; font-weight: 500; color: var(--forest); }
.founder-lists ul { margin: 0; padding: 0; list-style: none; }
.founder-lists li {
  padding: 7px 0;
  border-top: 1px solid rgba(11, 71, 52, 0.2);
  font-size: 0.9375rem;
  line-height: 1.4;
}
@media (min-width: 520px) {
  .founder-lists { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (min-width: 960px) {
  .why { grid-template-columns: 1fr 1fr; }
  .why-copy {
    display: flex;
    align-items: center;
    padding-left: max(var(--gutter), calc((100vw - 1200px) / 2));
    padding-right: clamp(40px, 5vw, 80px);
  }
  .why-copy-inner { max-width: 540px; margin: 0; }
  .founder {
    display: flex;
    align-items: center;
    padding-right: max(var(--gutter), calc((100vw - 1200px) / 2));
    padding-left: clamp(40px, 5vw, 80px);
  }
}

/* ==========================================================================
   Ways to work
   ========================================================================== */
.offer-grid { display: grid; gap: 20px; max-width: 560px; margin-inline: auto; }
.offer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.offer-mark {
  width: calc(148px * var(--photo-size, 1));
  aspect-ratio: 1;
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
  background: #fdf6eb;
}
.offer-track { margin-bottom: 4px; font-size: 0.875rem; color: var(--gold-ink); }
.offer h3 { margin-bottom: 12px; font-size: 1.75rem; color: var(--forest); }
.offer > p:not(.offer-track) { margin-bottom: 24px; }
.offer > p.offer-link { margin: -10px 0 24px; font-size: 0.9375rem; color: var(--muted); }
.offer-link a { font-weight: 500; }
.offer .btn { margin-top: auto; }

@media (min-width: 960px) {
  .offer-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: none; }
  /* Two offers (one hidden in the website editor): two wider columns, centred */
  .offer-grid:not(:has(> :nth-child(3))) { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
}

/* ==========================================================================
   Free guides
   ========================================================================== */
.guide-grid { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.guide {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
  align-items: start;
  padding: 14px;
  background: var(--linen);
  border-radius: 18px;
}
.guide .arch { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px 10px 10px; }
.guide-body { display: flex; flex-direction: column; align-items: flex-start; height: 100%; }
.guide-body h3 { margin: 2px 0 6px; font-size: 1.125rem; font-weight: 500; line-height: 1.25; color: var(--forest); }
.guide-body p { margin-bottom: 14px; font-size: 0.9375rem; line-height: 1.5; }
.guide-body .btn { margin-top: auto; }

@media (min-width: 600px) {
  .guide-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .guide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 0; padding: 12px 12px 22px; }
  .guide .arch { aspect-ratio: 4 / 4.4; border-radius: 999px 999px 12px 12px; }
  .guide-body { padding: 20px 10px 0; }
}
@media (min-width: 1100px) {
  .guide-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Trust band
   ========================================================================== */
#trust .lede { color: var(--forest); }
.accreditations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 620px;
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
}
.acc {
  --acc-h: clamp(116px, 24vw, 156px);
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--acc-h);
  padding: 14px;
  background: #fff;
  border-radius: 16px;
  transition: transform 0.2s;
}
.acc:hover { transform: translateY(-2px); }
.acc img { width: auto; max-width: 100%; max-height: calc(var(--acc-h) - 28px); object-fit: contain; }
.acc-dark { padding: 0; overflow: hidden; background: #3a3f42; }
.acc-dark img { width: 100%; height: 100%; max-height: none; object-fit: contain; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quotes { grid-auto-columns: 88%; }
.quote {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.quote-group { margin-bottom: 14px; font-size: 0.875rem; color: var(--gold-ink); }
.quote blockquote {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--forest);
}
.quote-by {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .quotes {
    grid-auto-columns: calc((100% - 16px) / 2);
    margin-inline: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }
}
@media (min-width: 1100px) {
  .quotes { grid-auto-columns: calc((100% - 32px) / 3); }
}

/* ==========================================================================
   Institutions band
   ========================================================================== */
.inst-intro { max-width: 46rem; margin-bottom: 36px; font-size: var(--fs-lead); line-height: 1.45; color: var(--gold); }
.inst-grid { display: grid; gap: 28px; }
.inst-grid h3 { margin-bottom: 8px; font-size: 0.9375rem; font-weight: 500; color: var(--gold); }
.inst-grid ul { margin: 0; padding: 0; list-style: none; }
.inst-grid li { padding: 10px 0; border-top: 1px solid rgba(201, 168, 99, 0.25); }

@media (min-width: 700px) {
  .inst-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

/* ==========================================================================
   Insights
   ========================================================================== */
.insights { grid-auto-columns: 78%; }
.insight {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 18px;
  background: var(--pine);
  color: #fff;
  text-decoration: none;
}
.insight img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.insight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 31, 27, 0.9) 0%, rgba(0, 31, 27, 0.45) 45%, rgba(0, 31, 27, 0.05) 75%);
}
.insight-title {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.3;
  text-wrap: balance;
}
.insight:hover img { transform: scale(1.04); }
.insight:focus-visible { outline-offset: 4px; }

@media (min-width: 768px) {
  .insights {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
}
@media (min-width: 1100px) {
  .insights { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   FAQs
   ========================================================================== */
.faq-grid { display: grid; gap: 32px; }
.faq-meta { margin-bottom: 16px; font-size: 0.875rem; color: var(--muted); }
.faq-list { display: grid; gap: 10px; }
.faq {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.4s var(--ease-out);
}
.faq:hover { border-color: rgba(11, 71, 52, 0.28); }
/* Open state: .is-open is set by main.js the moment an answer is chosen; [open] covers the page without JS */
.faq.is-open, :root:not(.motion-ready) .faq[open] {
  background: #fff;
  border-color: rgba(201, 168, 99, 0.55);
  box-shadow: 0 12px 32px rgba(0, 47, 42, 0.07);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 20px;
  color: var(--forest);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-q mark { padding: 0 2px; border-radius: 3px; background: #f3e5bf; color: inherit; }
/* Plus that turns into a close mark */
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(201, 168, 99, 0.6);
  border-radius: 50%;
  transition: background-color 0.3s, border-color 0.3s, rotate 0.5s var(--ease-out);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  border-radius: 1px;
  background: var(--gold-ink);
  transition: background-color 0.3s;
}
.faq-icon::after { rotate: 90deg; }
.faq summary:hover .faq-icon { border-color: var(--gold); }
.faq.is-open .faq-icon, :root:not(.motion-ready) .faq[open] .faq-icon { rotate: 45deg; background: var(--pine); border-color: var(--pine); }
.faq.is-open .faq-icon::before, .faq.is-open .faq-icon::after { background: var(--gold-soft); }
.faq p { padding: 0 20px 20px; }
.motion .faq.is-open > p { animation: faq-in 0.5s var(--ease-out) 0.08s backwards; }
@keyframes faq-in { from { opacity: 0; translate: 0 6px; } }

/* Search, topic filters and the homepage's "Show all" */
.faq-tools { display: grid; gap: 14px; margin: 4px 0 24px; }
.faq-tools .search-input { max-width: none; }
.faq-topics {
  display: flex;
  gap: 8px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 2px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}
.faq-topics::-webkit-scrollbar { display: none; }
.faq-topics button {
  flex-shrink: 0;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--forest);
  font: 500 0.875rem/1 var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.faq-topics button:hover { border-color: var(--forest); }
.faq-topics button[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: var(--gold-soft); }
.faq-status { margin: 0; font-size: 0.875rem; color: var(--muted); }
.faq-status:empty { display: none; }
.faq-empty { margin: 0; padding: 18px 20px; border: 1px dashed rgba(11, 71, 52, 0.25); border-radius: 14px; color: var(--muted); }
.faq-more { justify-self: start; margin-top: 10px; }
.faq-head .toc { margin-top: 8px; }

@media (min-width: 960px) {
  .faq-grid { grid-template-columns: 4fr 8fr; gap: 72px; }
  .faq-head { position: sticky; top: calc(var(--sticky-top) + 40px); align-self: start; }
  .faq-topics { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; gap: 40px; }
.contact .lede { color: var(--gold-soft); }
.contact-direct { display: grid; gap: 4px; margin: 28px 0 0; padding: 0; list-style: none; }
.contact-direct a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--linen); text-decoration: none; }
.contact-direct a:hover { color: var(--gold); }
.contact-direct svg { width: 20px; height: 20px; color: var(--gold); }

@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .contact-copy { position: sticky; top: calc(var(--sticky-top) + 40px); }
}

/* Forms (shared by contact + popups) */
.form-card {
  padding: clamp(20px, 4vw, 36px);
  background: var(--linen);
  border-radius: var(--radius);
  color: var(--ink);
}
.form-fields { display: grid; gap: 18px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { font-size: 0.9375rem; font-weight: 500; line-height: 1.35; color: var(--forest); }
.field legend { margin-bottom: 10px; padding: 0; }
.req { color: var(--gold-ink); }

input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="url"], input[type="number"],
input[type="password"], input[type="date"], textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #b7b1a2;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #8a8f88; }
input:focus, textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(11, 71, 52, 0.18); }
[aria-invalid="true"] { border-color: var(--error) !important; box-shadow: 0 0 0 3px rgba(162, 59, 42, 0.14) !important; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #b7b1a2;
  border-radius: 999px;
  background: #fff;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.chip input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--linen); }
.chip input:focus-visible + span { outline: 2px solid var(--forest); outline-offset: 2px; }

.form-note { color: var(--error); font-size: 0.9375rem; }

.form-success { padding: 24px 8px; text-align: center; }
.form-success:focus { outline: none; }
.form-success svg {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 50%;
  background: rgba(11, 71, 52, 0.1);
  color: var(--forest);
}
.form-success h3 { margin-bottom: 6px; font-size: 1.375rem; font-weight: 500; color: var(--forest); }
.form-success .btn { margin-top: 20px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: clamp(56px, 7vw, 88px) 0 calc(28px + var(--tabbar-space)); background: var(--pine); color: rgba(245, 243, 238, 0.85); }
.footer-grid { display: grid; gap: 40px; }
.footer-brand p { max-width: 30rem; margin: 20px 0; }
.socials { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201, 168, 99, 0.45);
  border-radius: 50%;
  color: var(--gold);
}
.socials a:hover { background: var(--gold); color: var(--pine); }
.socials svg { width: 18px; height: 18px; }

.footer-col h2 { margin-bottom: 12px; font-size: 0.9375rem; font-weight: 500; color: var(--gold); }
.footer-col ul { display: grid; margin: 0; padding: 0; list-style: none; }
.footer-col li, .footer-col a, .footer-col .linklike { display: inline-flex; align-items: center; min-height: 38px; }
.footer-col a, .footer-col .linklike { color: rgba(245, 243, 238, 0.85); text-decoration: none; }
.footer-col a:hover, .footer-col .linklike:hover { color: var(--gold); text-decoration: underline; }
.linklike { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.footer-legal { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.footer-legal a { color: inherit; text-decoration: none; }
.footer-legal a:hover { color: var(--gold); text-decoration: underline; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(201, 168, 99, 0.2);
  font-size: 0.875rem;
  color: rgba(245, 243, 238, 0.6);
}
.footer-base p { margin: 0; }

.footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .footer-grid { grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; }
  .footer-brand { grid-column: auto; padding-right: 24px; }
}

/* ==========================================================================
   Inner pages — shared components
   ========================================================================== */

/* ---------- Page hero ---------- */
.page-hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 96px); background: var(--linen); }
.page-hero-grid { display: grid; gap: 32px; align-items: center; }
.page-hero-media { order: -1; }
.page-hero-media :is(img, video) { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.page-hero-media .arch { border-radius: 999px 999px 18px 18px; }
.kicker { margin-bottom: 12px; font-size: 0.9375rem; font-weight: 500; color: var(--gold-ink); }
.page-title {
  margin-bottom: 20px;
  font-size: clamp(2.375rem, 1.55rem + 3.3vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--forest);
}
.page-lede { max-width: 38rem; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); }
.page-hero .btn-row { margin-top: 28px; }

@media (min-width: 900px) {
  .page-hero-grid { grid-template-columns: 7fr 5fr; gap: 72px; }
  .page-hero-media { order: 0; }
  .page-hero-media :is(img, video) { aspect-ratio: 4 / 4.6; }
}

/* Plain hero (legal, blog, search) */
.page-hero--plain { padding-bottom: clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero--plain .page-title { max-width: 18ch; }
.page-hero--center { text-align: center; }
.page-hero--center .page-title, .page-hero--center .page-lede { margin-inline: auto; }
.page-hero--center .btn-row { justify-content: center; }

/* Cover hero: full-bleed photo with a linen wash, like the homepage */
.page-hero--cover {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(72svh, 620px);
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--stone);
}
.page-hero--cover .page-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero--cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(245, 243, 238, 0.97) 0%, rgba(245, 243, 238, 0.9) 34%, rgba(245, 243, 238, 0.2) 70%, rgba(245, 243, 238, 0) 100%);
}
.page-hero--cover .container { padding-block: 40px clamp(40px, 6vw, 72px); }
@media (min-width: 768px) {
  .page-hero--cover { align-items: center; min-height: min(70vh, 600px); }
  .page-hero--cover::before {
    background: linear-gradient(90deg, rgba(245, 243, 238, 0.96) 0%, rgba(245, 243, 238, 0.86) 38%, rgba(245, 243, 238, 0.15) 66%, rgba(245, 243, 238, 0) 80%);
  }
  .page-hero--cover .page-title, .page-hero--cover .page-lede { max-width: 34rem; }
}

/* ---------- Long-form text ---------- */
.prose { max-width: 42rem; font-size: 1.0625rem; line-height: 1.7; overflow-wrap: anywhere; } /* long URLs in references wrap instead of widening the page */
.prose figure video { display: block; width: 100%; max-width: 563px; height: auto; margin-inline: auto; border-radius: 14px; background: #000; }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); line-height: 1.2; color: var(--forest); }
.prose h3 { margin-top: 1.8em; font-size: 1.3125rem; font-weight: 500; line-height: 1.3; color: var(--forest); }
.prose h4 { margin-top: 1.6em; font-size: 1.125rem; font-weight: 500; color: var(--forest); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.6em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--gold-ink); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--gold);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--forest);
}
.prose blockquote p + p { margin-top: 0.6em; }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; border-radius: 14px; }
.prose figcaption { margin-top: 8px; font-size: 0.875rem; color: var(--muted); }
.prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line); }
.prose a { font-weight: 500; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose details { padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.prose details + details { margin-top: 10px; }
.prose summary { font-weight: 500; color: var(--forest); cursor: pointer; }
.prose details[open] summary { margin-bottom: 8px; }

.text-cols { display: grid; gap: 1.1em 48px; }
@media (min-width: 900px) { .text-cols { grid-template-columns: 1fr 1fr; } }
.text-cols p { margin: 0; }

/* ---------- Split: media + text ---------- */
.split { display: grid; gap: 36px; align-items: center; }
.split-media :is(img, video) { display: block; width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; }
.split-media .arch { border-radius: 999px 999px 18px 18px; aspect-ratio: 4 / 4.6; }
.split-media figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--muted); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 80px; }
  .split--wide-text { grid-template-columns: 5fr 7fr; }
  .split--reverse .split-media { order: 2; }
  .split--top { align-items: start; }
}

/* ---------- Diagram figure ---------- */
.diagram { margin: 0; padding: clamp(12px, 3vw, 28px); background: #fbf7ef; border-radius: var(--radius); }
.diagram img { width: 100%; }

/* ---------- Tier / pillar cards ---------- */
.tiers { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.tier {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.tier:nth-child(2) { background: #eef1eb; }
.tier:nth-child(3) { background: #f3efe6; }
.tier-icon { width: calc(84px * var(--photo-size, 1)); aspect-ratio: 1; margin-bottom: 20px; }
.tier-name { margin-bottom: 6px; font-size: 1.875rem; color: var(--forest); }
.tier-tag { margin-bottom: 18px; font-size: 1.0625rem; color: var(--gold-ink); }
.tier-ideal { margin-bottom: 20px; padding: 14px 16px; background: rgba(255, 255, 255, 0.6); border-radius: 12px; font-size: 0.9375rem; }
.tier-ideal strong { display: block; margin-bottom: 2px; font-weight: 500; color: var(--forest); }
.tier .checklist { margin-bottom: 24px; }
.tier-actions { display: grid; gap: 4px; margin-top: auto; }
.tier-actions .text-link { justify-content: center; }
@media (min-width: 960px) {
  .tiers { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 32px; line-height: 1.5; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23e8dbb8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.bg-forest .checklist li::before { background-color: var(--gold); }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.feature { padding: 24px 24px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.feature h3 { margin-bottom: 8px; font-size: 1.25rem; font-weight: 500; color: var(--forest); }
.feature p { margin: 0; }
.feature .checklist { margin-top: 12px; }
.bg-paper .feature { background: var(--linen); }
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .feature-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Numbered steps (real sequences only) ---------- */
.num-steps { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
/* Number beside the text; from 800px (unless stacked) the steps sit in a row with the number on top */
.num-steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-content: start; counter-increment: step; }
.num-steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--linen);
  font-weight: 500;
}
.num-steps h3 { margin: 8px 0 6px; font-size: 1.3125rem; font-weight: 500; color: var(--forest); }
.num-steps p { margin: 0; }
.bg-forest .num-steps li::before { background: var(--gold); color: var(--pine); }
.bg-forest .num-steps h3 { color: var(--gold); }
@media (min-width: 800px) {
  .num-steps:not(.num-steps--stack) { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .num-steps:not(.num-steps--stack) li { display: block; }
  .num-steps:not(.num-steps--stack) li::before { margin-bottom: 16px; }
  .num-steps:not(.num-steps--stack) h3 { margin: 0 0 8px; }
}

/* ---------- Quote block ---------- */
.quote-block { max-width: 46rem; margin: 0 auto; text-align: center; }
.quote-block blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--forest);
}
.quote-block figcaption { margin-top: 18px; color: var(--gold-ink); }
.bg-forest .quote-block blockquote { color: var(--linen); }
.bg-forest .quote-block figcaption { color: var(--gold); }
.quote-pair { display: grid; gap: 40px; }
@media (min-width: 900px) { .quote-pair { grid-template-columns: 1fr 1fr; gap: 64px; } }
.quote-pair .quote-block { text-align: left; }
.quote-pair blockquote { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .h-display { max-width: 20ch; margin-inline: auto; }
.cta-band p { max-width: 40rem; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }
.bg-forest .btn-outline { color: var(--gold); border-color: var(--gold); }
.bg-forest .btn-outline:hover { background: var(--gold); color: var(--pine); }
.bg-forest a:not(.btn) { color: var(--gold); }
.bg-forest .lede { color: var(--gold-soft); }

/* ---------- Generic cards ---------- */
.card-grid { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.bg-paper .card { background: var(--linen); }
.card-media { padding: 12px 12px 0; }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.card-media .arch { aspect-ratio: 4 / 3.4; border-radius: 999px 999px 12px 12px; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.card-body h3 { margin-bottom: 8px; font-size: 1.4375rem; color: var(--forest); }
.card-body > p { margin-bottom: 14px; }
.card-body .checklist { margin-bottom: 20px; }
.card-body .btn, .card-body .text-link { margin-top: auto; align-self: flex-start; }
.card-label { margin-bottom: 6px; font-size: 0.875rem; color: var(--gold-ink); }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e6ebe4;
  color: var(--forest);
  font-size: 0.8125rem;
  font-weight: 500;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-list li { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: #e6ebe4; color: var(--forest); font-size: 0.8125rem; font-weight: 500; }

/* ---------- Logo wall / photo grid ---------- */
.logo-wall { margin: 0; padding: clamp(16px, 3vw, 32px); background: #fff; border-radius: var(--radius); }
.logo-wall img { width: 100%; }
.logo-wall figcaption { margin-top: 14px; font-size: 0.875rem; color: var(--muted); text-align: center; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.logo-row li { display: grid; place-items: center; width: 140px; height: 110px; padding: 14px; background: #fff; border-radius: 16px; }
.logo-row img { max-width: 100%; max-height: 82px; width: auto; object-fit: contain; }

.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.photo-grid img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.photo-grid figcaption { margin-top: 6px; font-size: 0.8125rem; color: var(--muted); }

/* ---------- Icon + text rows (network, contact) ---------- */
.icon-rows { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.icon-row { display: grid; gap: 20px; padding-block: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); }
.icon-row:first-child { border-top: 0; padding-top: 0; }
.icon-row-icon { width: 72px; height: 72px; color: var(--gold-ink); }
.icon-row h2, .icon-row h3 { margin-bottom: 12px; font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); color: var(--forest); }
@media (min-width: 900px) {
  .icon-row { grid-template-columns: 200px 1fr; gap: 48px; }
  .icon-row-icon { width: 96px; height: 96px; }
}

/* ---------- Details list (events) ---------- */
.detail-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.detail-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.detail-list svg { width: 22px; height: 22px; margin-top: 2px; color: var(--gold-ink); }
.detail-list strong { display: block; font-weight: 500; color: var(--forest); }

.panel { padding: clamp(22px, 3.5vw, 32px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.bg-paper .panel { background: var(--linen); }
.panel > h2, .panel > h3 { margin-bottom: 14px; font-size: 1.375rem; font-weight: 500; color: var(--forest); }

/* ---------- Event / listing cards ---------- */
.listing { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.listing-item a {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s;
}
.listing-item a:hover { border-color: rgba(11, 71, 52, 0.35); }
.listing-item img { width: 112px; height: 112px; object-fit: cover; border-radius: 12px; }
.listing-item h2, .listing-item h3 { margin-bottom: 4px; font-size: 1.25rem; font-weight: 500; color: var(--forest); }
.listing-item p { margin: 0; font-size: 0.9375rem; color: var(--muted); }
@media (min-width: 700px) {
  .listing-item a { grid-template-columns: 180px 1fr; gap: 28px; padding: 16px; }
  .listing-item img { width: 180px; height: 150px; }
}

/* ---------- Blog ---------- */
.blog-tools { display: grid; gap: 16px; margin-bottom: 32px; }
.search-input {
  position: relative;
  max-width: 420px;
}
.search-input svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-input input { padding-left: 44px; border-radius: 999px; }

.post-grid { display: grid; gap: 28px 24px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 28px; } }
.post-grid--3 { margin-top: 8px; }
.post-card-link { display: grid; gap: 14px; color: inherit; text-decoration: none; }
.post-card-media { overflow: hidden; border-radius: 16px; background: var(--stone); aspect-ratio: 3 / 2; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card-link:hover .post-card-media img { transform: scale(1.03); }
.post-card-link:hover .post-card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.post-card-meta { margin: 0 0 4px; font-size: 0.8125rem; color: var(--muted); }
.post-card-title { font-size: 1.1875rem; font-weight: 500; line-height: 1.3; color: var(--forest); }
.post-card-excerpt { margin: 10px 0 0; color: var(--ink); }
.post-card--feature { margin-bottom: clamp(36px, 5vw, 56px); }
.post-card--feature .post-card-title { font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.375rem); font-weight: 400; line-height: 1.15; }
@media (min-width: 900px) {
  .post-card--feature .post-card-link { grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
}
.post-empty { padding: 32px 0; color: var(--muted); }

.post-head { padding-block: clamp(32px, 6vw, 72px) 28px; background: var(--linen); }
.post-back { margin-bottom: 20px; font-size: 0.9375rem; }
.post-title { font-size: clamp(2rem, 1.45rem + 2.4vw, 3.25rem); line-height: 1.1; letter-spacing: -0.015em; color: var(--forest); }
.post-subtitle { margin: 14px 0 0; font-size: var(--fs-lead); color: var(--gold-ink); }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 20px 0 0; font-size: 0.9375rem; color: var(--muted); }
.post-cover-wrap { max-width: calc(1040px + var(--gutter) * 2); }
.post-cover { margin: 0; }
.post-cover :is(img, video) { display: block; width: 100%; height: auto; max-height: 620px; object-fit: cover; border-radius: var(--radius); }
.post-body { margin: clamp(32px, 5vw, 56px) auto 0; }
.post-foot { display: grid; gap: 24px; max-width: 42rem; margin: 48px auto clamp(56px, 8vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); }
.share-label { margin-bottom: 8px; font-size: 0.9375rem; font-weight: 500; color: var(--forest); }
.share-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.share-list a, .share-list .linklike { color: var(--forest); font-size: 0.9375rem; text-decoration: underline; text-underline-offset: 0.2em; }
.container.narrow .post-body, .post .container.narrow { max-width: calc(42rem + var(--gutter) * 2); }

.video-embed { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #000; }
.video-embed button { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video-embed img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(0, 47, 42, 0.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5Z' fill='%23fff'/%3E%3C/svg%3E") 55% center / 30px no-repeat;
  transform: translate(-50%, -50%);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Legal layout ---------- */
.legal-layout { display: grid; gap: 32px; }
.toc { font-size: 0.9375rem; }
.toc h2 { margin-bottom: 10px; font-size: 0.9375rem; font-weight: 500; color: var(--forest); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--forest); text-decoration: underline; }
@media (min-width: 1000px) {
  .legal-layout { grid-template-columns: 240px 1fr; gap: 72px; }
  .toc { position: sticky; top: calc(var(--sticky-top) + 32px); align-self: start; }
}
.legal-section + .legal-section { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.legal-meta { font-size: 0.875rem; color: var(--muted); }

/* ---------- Extra form controls ---------- */
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 40px 12px 14px;
  border: 1px solid #b7b1a2;
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%230b4734' stroke-width='1.8'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  appearance: none;
}
select:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(11, 71, 52, 0.18); }
.field-hint { margin: 0; font-size: 0.875rem; color: var(--muted); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.9375rem; line-height: 1.5; cursor: pointer; }
.check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 1px solid #b7b1a2;
  border-radius: 6px;
  background: #fff;
  appearance: none;
  cursor: pointer;
}
.check input:checked { background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: var(--forest); }
.check input:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.check strong { font-weight: 500; color: var(--forest); }
.check-list { display: grid; gap: 12px; }
.file-field input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 1px dashed #b7b1a2;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 0.9375rem;
}
.file-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--forest);
  color: var(--linen);
  font: inherit;
  cursor: pointer;
}
.form-section-title { margin: 12px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 1.125rem; font-weight: 500; color: var(--forest); }
.form-card--light { background: var(--paper); border: 1px solid var(--line); }

/* ---------- Contact cards ---------- */
.contact-cards { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.contact-cards a, .contact-cards div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
}
.contact-cards a:hover { border-color: rgba(11, 71, 52, 0.35); }
.contact-cards svg { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: #e6ebe4; color: var(--forest); }
.contact-cards strong { display: block; font-weight: 500; color: var(--forest); }
.contact-cards span { font-size: 0.9375rem; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- Search ---------- */
.search-page-box { display: flex; gap: 10px; max-width: 640px; }
.search-page-box .search-input { flex: 1; max-width: none; }
.search-results { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.search-results li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.search-results a { font-size: 1.25rem; font-weight: 500; color: var(--forest); }
.search-results p { margin: 6px 0 0; color: var(--ink); }
.search-results .tag { margin-bottom: 8px; }
.search-results mark { background: #f3e5bf; color: inherit; padding: 0 2px; border-radius: 3px; }
.search-status { margin: 24px 0 0; color: var(--muted); }

/* ---------- Section helpers ---------- */
.section-head.wide { max-width: 60rem; }
.stack-lg > * + * { margin-top: clamp(56px, 8vw, 96px); }
.mt-0 { margin-top: 0 !important; }
.center-text { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }


/* ==========================================================================
   Popups (native <dialog>)
   Mobile: bottom sheet. ≥720px: centred card.
   ========================================================================== */
.modal {
  width: 100%;
  max-width: 100%;
  max-height: 92dvh;
  margin: auto 0 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px 22px 0 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 -12px 48px rgba(0, 20, 17, 0.3);
}
.modal[open] { display: flex; flex-direction: column; }
.modal::backdrop { background: rgba(0, 24, 21, 0.58); }

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px var(--gutter) calc(20px + env(safe-area-inset-bottom));
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 71, 52, 0.08);
  color: var(--forest);
  cursor: pointer;
  transition: background-color 0.2s;
}
.modal-close:hover { background: rgba(11, 71, 52, 0.16); }
.modal-close svg { width: 20px; height: 20px; }

.modal-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.875rem; color: var(--gold-ink); }
.modal-kicker img { width: 22px; }
.modal-title {
  margin: 0 52px 10px 0;
  font-size: clamp(1.625rem, 1.35rem + 1.2vw, 2.125rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--forest);
}
.modal-text { margin-bottom: 4px; }
.modal-form .form-fields { gap: 16px; }
.modal-dismiss {
  justify-self: center;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

/* Newsletter: image band on top (mobile), split panel (desktop) */
.modal-media {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  height: 176px;
  padding: 18px;
  overflow: hidden;
  background: #2f3538;
}
.modal-media::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: url("../assets/img/spears-badge.webp") center / cover;
  filter: blur(20px) brightness(0.65);
}
.modal-media img {
  position: relative;
  width: auto;
  height: 140px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.modal-split .modal-close { background: rgba(251, 250, 247, 0.92); }
.modal-split .modal-title { margin-right: 0; }

@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: sheet-up 0.34s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .modal[open]::backdrop { animation: fade-in 0.25s ease-out; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

@media (min-width: 720px) {
  .modal {
    width: min(580px, calc(100% - 48px));
    max-height: min(90dvh, 760px);
    margin: auto;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 20, 17, 0.35);
  }
  .modal-body { padding: 44px 44px 36px; }
  .modal-close { top: 16px; right: 16px; }

  .modal-split { width: min(840px, calc(100% - 48px)); }
  .modal-split[open] { display: grid; grid-template-columns: 5fr 6fr; }
  .modal-split .modal-media { height: auto; padding: 40px 32px; }
  .modal-split .modal-media img { width: 100%; height: auto; }
  .modal-split .modal-body { display: flex; flex-direction: column; justify-content: center; padding: 56px 48px 40px; }
  .modal-split .modal-title { margin-right: 24px; }

  @media (prefers-reduced-motion: no-preference) {
    .modal[open] { animation: pop-in 0.24s ease-out; }
  }
}

/* Breakpoint visibility (900px) — for content with a desktop and a mobile form */
@media (max-width: 899px) { .only-desktop { display: none !important; } }
@media (min-width: 900px) { .only-mobile { display: none !important; } }

/* Stacked numbered steps (inside a column) */
.num-steps--stack { gap: 24px; margin-top: 28px; }

/* ---------- Numbered paths ----------
   Lists marked data-path (main.js adds data-path-ready when motion is on) become a journey:
   a gold line draws from number to number as you scroll, reached steps fill in, the current one glows,
   and steps still ahead wait, dimmed. main.js sets the line's geometry and --path-fill (0–1). */
/* isolation + z-index: -1 keep the line under every step, even while a step is mid-reveal
   (a fading or moving step becomes its own layer and would otherwise paint beneath the line) */
[data-path] { position: relative; isolation: isolate; --node: 44px; --path-bg: var(--linen); }
.journey-list[data-path] { --node: 40px; }
.bg-paper [data-path] { --path-bg: var(--paper); }

[data-path-ready]::before,
[data-path-ready]::after {
  content: "";
  position: absolute;
  top: var(--path-start);
  left: calc(var(--path-cross) - 1px);
  width: 2px;
  z-index: -1;
  height: var(--path-length);
  border-radius: 2px;
  pointer-events: none;
}
[data-path-ready]::before { background: rgba(11, 71, 52, 0.14); }
[data-path-ready]::after {
  background: var(--gold);
  transform: scaleY(var(--path-fill, 0));
  transform-origin: top;
  transition: transform 0.3s linear;
}
[data-path-ready].is-row::before,
[data-path-ready].is-row::after { top: calc(var(--path-cross) - 1px); left: var(--path-start); width: var(--path-length); height: 2px; }
[data-path-ready].is-row::after { transform: scaleX(var(--path-fill, 0)); transform-origin: left; }

[data-path-ready] > li::before {
  position: relative;
  z-index: 1;
  background: var(--path-bg);
  box-shadow: inset 0 0 0 1.5px rgba(11, 71, 52, 0.3);
  color: var(--forest);
  transition: background-color 0.45s, color 0.45s, box-shadow 0.6s var(--ease-out), scale 0.6s var(--ease-out);
}
[data-path-ready] > li.is-reached::before { background: var(--forest); color: var(--linen); box-shadow: none; }
[data-path-ready] > li.is-current::before {
  background: var(--gold);
  color: var(--pine);
  box-shadow: 0 0 0 7px rgba(201, 168, 99, 0.24);
  scale: 1.1;
}
[data-path-ready] > li > * { transition: opacity 0.6s var(--ease-out); }
[data-path-ready] > li:not(.is-reached) > h3 { opacity: 0.6; }
[data-path-ready] > li:not(.is-reached) > p { opacity: 0.45; }
@media (hover: hover) {
  [data-path-ready] > li:hover::before { scale: 1.1; }
}

/* Section head: heading left, supporting text right (desktop) */
@media (min-width: 1024px) {
  .section-head--split { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; max-width: none; }
  .section-head--split .h-display { margin-bottom: 0; }
  .section-head--split > div > :last-child { margin-bottom: 0; }
}

/* Spacing after lists that are followed by more content */
.checklist:not(:last-child), .detail-list:not(:last-child) { margin-bottom: 1.25em; }
.split + .track { margin-top: clamp(56px, 8vw, 96px); }

/* Image focus for cropped photos (object-fit: cover) */
.focus-top { object-position: center 20%; }
.focus-bottom { object-position: center 80%; }
.focus-left { object-position: 25% center; }
.focus-right { object-position: 75% center; }

/* ---------- Photos resized in the website editor ----------
   The server sets --photo-size on a resized photo, or on the frame around it (data-photo-frame) when the photo is
   alone in its <figure> or <div>: a scale where 1 is the size it was designed at (server/lib/editable.mjs).
   --photo-min and --photo-max tell the editor how far each kind of photo can go; a photo without --photo-max can't
   be resized. Photos that fill their column can only get smaller, and on phones no smaller than 60% of it.
   Portraits and icons with a set size multiply it where they're defined (.founder-photo, .offer-mark, .tier-icon). */
:root { --photo-floor: 0.3; }
@media (max-width: 599px) { :root { --photo-floor: 0.6; } }
:is(.split-media, .approach-media, .page-hero-media, .card-media, .journey-figure, .diagram, .logo-wall, .support-card, .photo-grid li, .prose figure) > img,
.guide .arch {
  --photo-min: var(--photo-floor);
  --photo-max: 1;
  width: calc(100% * clamp(var(--photo-floor), var(--photo-size, 1), 1));
  margin-inline: auto;
}
[data-photo-frame] { width: calc(100% * clamp(var(--photo-floor), var(--photo-size, 1), 1)); margin-inline: auto; }
[data-photo-frame] > img { --photo-size: 1; }
.founder-photo, .offer-mark { --photo-min: 0.4; --photo-max: 1.6; }
.tier-icon { --photo-min: 0.5; --photo-max: 2; }
/* Logos keep their tile and grow or shrink inside it */
.acc img, .logo-row img { --photo-min: 0.4; --photo-max: 1.25; scale: var(--photo-size, 1); }

/* Components keep dark text even inside dark sections */
.card, .panel, .tier, .feature, .form-card, .listing-item a, .contact-cards a, .contact-cards div { color: var(--ink); }
.prose ul.checklist { padding-left: 0; }
.form-fields > .form-section-title:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 767px) {
  .page-hero--cover::before {
    background: linear-gradient(to top, rgba(245, 243, 238, 0.98) 0%, rgba(245, 243, 238, 0.93) 48%, rgba(245, 243, 238, 0.45) 78%, rgba(245, 243, 238, 0.1) 100%);
  }
}
.field[data-invalid] legend { color: var(--error); }
.field[data-invalid] .check input { border-color: var(--error); }

/* Sticky side column (forms beside long content) */
@media (min-width: 960px) {
  .sticky-col { position: sticky; top: calc(var(--sticky-top) + 32px); align-self: start; }
}

/* Listing row without a link */
.listing-item--static > div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px dashed rgba(11, 71, 52, 0.25);
  border-radius: 18px;
}
.listing-icon { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 12px; background: #e6ebe4; color: var(--forest); }
.listing-icon svg { width: 32px; height: 32px; }
@media (min-width: 700px) {
  .listing-item--static > div { grid-template-columns: 180px 1fr; gap: 28px; padding: 16px; }
  .listing-icon { width: 180px; height: 150px; }
}

/* Quote inside a hero, left aligned */
.hero-quote { max-width: 34rem; margin: 0 0 8px; }
.hero-quote blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem); font-style: italic; line-height: 1.4; color: var(--forest); }
.hero-quote figcaption { margin-top: 10px; color: var(--gold-ink); }

.social-links { margin-top: 32px; }
.results-col { max-width: 46rem; }

/* Legal pages: clearer heading hierarchy */
.legal-section.prose > h2:first-child { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); }
.legal-section.prose h3 { font-size: 1.125rem; }
@media (max-width: 699px) {
  .footer-col a, .footer-col .linklike, .footer-col li { font-size: 0.9375rem; line-height: 1.35; min-height: 36px; }
}
.photo-grid figure { margin: 0; }

/* ==========================================================================
   Scroll & motion
   Everything that moves is gated by html.motion, which is only set when the
   visitor hasn't asked for reduced motion (see the inline script in <head>).
   ========================================================================== */

/* ---------- Page openings: play once on load ---------- */
@keyframes rise { from { opacity: 0; translate: 0 26px; } }
@keyframes curtain { from { clip-path: inset(100% 0 0 0); } }
@keyframes settle { from { scale: 1.1; } }
/* For photos that are already enlarged for the pan effect below (fixed values: a variable here froze Chrome with the hero video) */
@keyframes settle-inner { from { scale: 1.26; } }
@keyframes fade-in { from { opacity: 0; } }

.motion :is(.hero-content, .page-hero-copy, .page-hero > .container:not(.page-hero-grid), .post-head .container) > * {
  animation: rise 1.1s var(--ease-out) backwards;
}
.motion :is(.hero-content, .page-hero-copy, .page-hero > .container:not(.page-hero-grid), .post-head .container) > :nth-child(1) { animation-delay: 0.1s; }
.motion :is(.hero-content, .page-hero-copy, .page-hero > .container:not(.page-hero-grid), .post-head .container) > :nth-child(2) { animation-delay: 0.22s; }
.motion :is(.hero-content, .page-hero-copy, .page-hero > .container:not(.page-hero-grid), .post-head .container) > :nth-child(3) { animation-delay: 0.34s; }
.motion :is(.hero-content, .page-hero-copy, .page-hero > .container:not(.page-hero-grid), .post-head .container) > :nth-child(4) { animation-delay: 0.46s; }
.motion :is(.hero-content, .page-hero-copy, .page-hero > .container:not(.page-hero-grid), .post-head .container) > :nth-child(n+5) { animation-delay: 0.58s; }
.motion .hero-media,
.motion .page-hero--cover .page-hero-bg { animation: settle 2.8s var(--ease-out) backwards; }
/* Hero parallax: main.js moves these layers as the page scrolls */
.motion :is(.hero-media, .page-hero-bg, .hero-content, .page-hero-copy, .page-hero-media) { will-change: transform; }
.motion .page-hero-media { animation: curtain 1.5s var(--ease-out) 0.15s backwards; }
.motion .page-hero-media > img { animation: settle 2.2s var(--ease-out) 0.15s backwards; }
.motion :is(.hero, .page-hero) + .page-nav,
.motion .hero-toggle { animation: fade-in 1s var(--ease-out) 0.6s backwards; }

/* ---------- Scroll reveals (JS adds .is-in as each element enters) ---------- */
.motion [data-reveal="item"],
.motion [data-reveal-group] > * {
  transition: opacity 0.9s var(--ease-out) var(--d, 0ms), translate 1.1s var(--ease-out) var(--d, 0ms), top 0.5s var(--ease-out);
}
.motion [data-reveal="item"]:not(.is-in),
.motion [data-reveal-group] > :not(.is-in) { opacity: 0; translate: 0 var(--reveal-y); }

.motion [data-reveal="media"] { transition: clip-path 1.4s var(--ease-out) var(--d, 0ms); }
.motion [data-reveal="media"]:not(.is-in) { clip-path: inset(100% 0 0 0); }
.motion [data-reveal="media"] > img { transition: scale 2s var(--ease-out) var(--d, 0ms); }
.motion [data-reveal="media"]:not(.is-in) > img { scale: calc(var(--img-scale, 1) + 0.12); }

/* Openings are handled by the load sequence above, never hidden for scrolling */
.motion :is(.hero, .page-hero, .post-head) [data-reveal],
.motion :is(.hero, .page-hero, .post-head) [data-reveal-group] > * { opacity: 1; translate: none; clip-path: none; }

/* ---------- Reading progress on articles ---------- */
.read-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-offset);
  z-index: 49;
  height: 2px;
  pointer-events: none;
  transition: top 0.5s var(--ease-out);
}
.read-progress span {
  display: block;
  height: 100%;
  background: var(--gold);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
}

/* ---------- Mobile: service cards stack as you scroll ---------- */
@media (max-width: 899px) {
  :is(.support-grid, .offer-grid) > * {
    position: sticky;
    top: calc(var(--sticky-top) + 14px + var(--stack-i, 0) * 12px);
    box-shadow: 0 -14px 34px rgba(0, 31, 27, 0.07);
  }
  :is(.support-grid, .offer-grid) > :nth-child(2) { --stack-i: 1; }
  :is(.support-grid, .offer-grid) > :nth-child(3) { --stack-i: 2; }
}

/* ---------- The contact section rises over the page like a sheet ---------- */
.contact.bg-forest {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--sheet-r) * -1);
  border-radius: var(--sheet-r) var(--sheet-r) 0 0;
}

/* ---------- Scroll-linked effects (browsers with scroll timelines) ---------- */
@keyframes inner-drift { from { translate: 0 -5%; } to { translate: 0 5%; } }
@keyframes slow-zoom { to { scale: 1.07; } }
@keyframes sheet-rise { from { scale: 0.94; } }
@keyframes carousel-focus {
  entry 0% { scale: 0.9; }
  entry 100% { scale: 1; }
  exit 0% { scale: 1; }
  exit 100% { scale: 0.9; }
}

@supports (animation-timeline: view()) {
  /* Photos pan gently inside their frames */
  .motion :is(.split-media, .approach-media, .page-hero-media, .post-cover):not(.diagram):has(> img:only-child) {
    overflow: clip;
    border-radius: var(--radius);
  }
  .motion :is(.split-media, .approach-media, .page-hero-media):has(> img.arch:only-child) { border-radius: 999px 999px 18px 18px; }
  .motion :is(.split-media, .approach-media, .page-hero-media, .post-cover):not(.diagram):has(> img:only-child) > img {
    --img-scale: 1.14;
    scale: var(--img-scale);
    border-radius: 0;
    animation: inner-drift linear both;
    animation-timeline: view();
    animation-range: cover;
  }
  .motion .page-hero-media:has(> img:only-child) > img {
    animation: settle-inner 2.2s var(--ease-out) 0.15s backwards, inner-drift linear both;
    animation-timeline: auto, view();
    animation-range: normal, cover;
  }

  /* The journey illustration eases closer as you read it */
  .motion .journey-figure > img { animation: slow-zoom linear both; animation-timeline: view(); animation-range: cover; }

  .motion .contact.bg-forest {
    transform-origin: 50% 0;
    animation: sheet-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }

  /* Mobile carousels: the card in focus is full size, neighbours sit back slightly */
  @media (max-width: 1023px) {
    .motion :is(.steps, .skills, .quotes) > * { animation: carousel-focus linear both; animation-timeline: view(inline); }
  }
  @media (max-width: 767px) {
    .motion .insights > * { animation: carousel-focus linear both; animation-timeline: view(inline); }
  }
}

@media print {
  .site-header { position: static; }
  body { padding-top: 0; }
  [data-reveal], [data-reveal-group] > * { opacity: 1 !important; translate: none !important; clip-path: none !important; }
  [data-path-ready] > li > * { opacity: 1 !important; }
}

/* Forms: honeypot field added by the server (people never see it; bots fill it in) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Text emptied in the website editor disappears instead of leaving a gap */
:root:not([data-editor]) main :is(h2, h3, h4, p, li, blockquote, figcaption, dt, dd):empty:not([aria-live]) { display: none; }
