/* ==========================================================================
   BolivianBeef — shared stylesheet
   Palette: warm parchment ground, deep pasture green, Andean gold accent.
   Type: Fraunces (display) / Work Sans (body) / Space Mono (labels, data)
   ========================================================================== */

:root {
  /* --- color tokens (light) --- */
  --bg: #f6f2e8;
  --bg-alt: #ece4cf;
  --surface: #fffdf7;
  --ink: #1e2a1b;
  --ink-soft: #52604a;
  --ink-faint: #7c8871;
  --green-800: #1c3018;
  --green-700: #24401f;
  --green-600: #2f5233;
  --green-500: #4c7a3d;
  --gold-600: #a8722c;
  --gold-500: #c98a3b;
  --gold-400: #e0a855;
  --line: #ddd3b8;
  --line-strong: #c7ba97;
  --shadow: 0 1px 2px rgba(30, 42, 27, 0.06), 0 8px 24px rgba(30, 42, 27, 0.06);
  /* text drawn on top of a green accent fill */
  --on-accent: #fdfbf3;
  --danger: #a33a24;

  /* --- type tokens --- */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Space Mono", "SFMono-Regular", Consolas, monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10160c;
    --bg-alt: #161d11;
    --surface: #1a2315;
    --ink: #ece7d6;
    --ink-soft: #b9c2a9;
    --ink-faint: #8b9880;
    --green-800: #dff0d4;
    --green-700: #bfe0ac;
    --green-600: #8fc578;
    --green-500: #6fa85c;
    --gold-600: #f0c383;
    --gold-500: #e0a855;
    --gold-400: #c98a3b;
    --line: #2c3524;
    --line-strong: #3a4530;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 28px rgba(0, 0, 0, 0.35);
    --on-accent: #0d1309;
    --danger: #f0a58c;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #10160c;
  --bg-alt: #161d11;
  --surface: #1a2315;
  --ink: #ece7d6;
  --ink-soft: #b9c2a9;
  --ink-faint: #8b9880;
  --green-800: #dff0d4;
  --green-700: #bfe0ac;
  --green-600: #8fc578;
  --green-500: #6fa85c;
  --gold-600: #f0c383;
  --gold-500: #e0a855;
  --gold-400: #c98a3b;
  --line: #2c3524;
  --line-strong: #3a4530;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 28px rgba(0, 0, 0, 0.35);
  --on-accent: #0d1309;
  --danger: #f0a58c;
  color-scheme: dark;
}

* { box-sizing: border-box; }

/* A class that sets `display` (like .form-grid) beats the browser's default
   [hidden] rule, so hiding an element in JS silently does nothing. Make the
   attribute win. */
[hidden] { display: none !important; }

[id] { scroll-margin-top: 84px; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-alt);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-600); text-decoration-color: var(--line-strong); }
a:hover { color: var(--gold-600); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; max-width: 66ch; color: var(--ink-soft); }
p.lede { font-size: 1.15rem; color: var(--ink); max-width: 56ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 1px;
  
  display: inline-block;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 24px;
}

section { padding-block: clamp(48px, 8vw, 96px); }
.band-alt { background: var(--bg-alt); }
.text-center { text-align: center; }
/* text-align only centers the text inside a paragraph's own box — a p with
   a max-width (the site default) still sits flush-left inside a centered
   .wrap unless its box is centered too. */
.text-center p { margin-left: auto; margin-right: auto; }
/* Distinct warm-tinted band so a plain <section> can stand out from the
   flat dark green used by body/.band-alt, without introducing a new color. */
.band-score { background: color-mix(in srgb, var(--gold-500) 12%, var(--bg-alt)); }
.hero-app { position: relative; overflow: hidden; padding-block: clamp(72px, 12vw, 140px); }
.hero-app .hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-app .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero-app .hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(28, 48, 24, 0.7); }
.hero-app .wrap { position: relative; z-index: 1; }
.hero-app h1, .hero-app p.lede, .hero-app p { color: #fbf6e6; }
.hero-app p.lede strong { color: var(--gold-400); }

/* --- two-column hero (copy + live phone preview), Cowboy landing --- */
.hero-grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  text-align: left;
}
.hero-grid-2 .hero-visual { display: flex; justify-content: center; }
.hero-phone-wrap {
  width: 300px;
  height: 599px;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow);
  background: var(--surface);
}
.hero-phone-wrap iframe {
  width: 390px;
  height: 778px;
  border: 0;
  transform: scale(0.7692);
  transform-origin: top left;
}
@media (min-width: 760px) {
  .hero-phone-wrap { width: 360px; height: 718px; }
  .hero-phone-wrap iframe { transform: scale(0.9231); }
}
@media (max-width: 860px) {
  .hero-grid-2 { grid-template-columns: 1fr; text-align: center; }
  /* text-align only centers text inside a box — a p with a max-width
     still sits flush-left inside a centered column unless its own box
     is centered too (see .text-center p above). */
  .hero-grid-2 p { margin-left: auto; margin-right: auto; }
  .hero-grid-2 .cta-row { justify-content: center; }
}
/* Tier labels set their own text color per-card (inline, light/dark
   background per tier) — let it win over the global h1/h2/h3 color rule. */
.tier-card h3 { color: inherit; }
/* Translucent frosted halo behind each tier badge, at rest — hovering
   fades it away so the badge's own tier color reads clean and lifted. */
.tier-card {
  position: relative;
  z-index: 0;
  transition: transform 0.25s ease;
}
.tier-card::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(3px);
  transition: opacity 0.25s ease;
}
.tier-card:hover { transform: translateY(-3px); }
.tier-card:hover::before { opacity: 0; }

/* Ecosystem-impact stats: a subtle translucent card at rest, clearing on
   hover so the number/label sit directly on the section background. */
.metric-row > div {
  padding: 1.5rem 2rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.metric-row > div:hover {
  background: transparent;
  border-color: transparent;
}
/* Fixed "deep pasture" palette for the vision band — this section is a
   deliberate always-dark feature band and does not invert with the
   viewer's light/dark theme. */
.band-deep {
  background: #1c3018;
  color: #f4efdd;
}
.band-deep p, .band-deep .ink-soft { color: #cddcc2; }
.band-deep h2, .band-deep h1, .band-deep h3 { color: #fbf6e6; }

/* --- nav --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand .mark { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ink); border-color: var(--line-strong); }
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--gold-500);
}
.nav-links a.nav-cta-link {
  color: var(--green-600);
  font-weight: 600;
}
.nav-links a.nav-cta-link:hover { color: var(--green-500); }

.lang-switch {
  display: flex;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch a {
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
}
.lang-switch a[aria-current="true"] {
  background: var(--green-600);
  color: var(--on-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--ink);
  font-size: 1.1rem;
}

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--green-600);
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--green-500); color: var(--on-accent); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--gold-500); color: var(--ink); }
.band-deep .btn-ghost { border-color: rgba(244,239,221,0.4); color: #f4efdd; }
.band-deep .btn-ghost:hover { border-color: var(--gold-400); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6em; }

/* --- hero --- */
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(56px, 9vw, 108px) clamp(40px, 6vw, 72px);
}
.hero-art { width: 100%; height: auto; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 380px; margin-inline: auto; }
}

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow);
  }
}

/* --- grids / cards --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover {
  background: color-mix(in srgb, var(--surface) 78%, var(--gold-500) 22%);
  border-color: var(--gold-500);
  box-shadow: 0 0 0 1px var(--gold-500), 0 10px 28px rgba(224, 168, 85, 0.28);
  transform: translateY(-3px);
}
.card h3 { margin-bottom: 0.4em; }
.card .num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold-600);
  letter-spacing: 0.08em;
}

.stage-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; }
.stage-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.stage-list li:first-child { border-top: none; }
.stage-list .tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-600);
  letter-spacing: 0.05em;
  padding-top: 3px;
}
.band-deep .stage-list li { border-color: rgba(244,239,221,0.18); }

/* --- team --- */
.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.team-card:hover {
  background: color-mix(in srgb, var(--surface) 78%, var(--gold-500) 22%);
  border-color: var(--gold-500);
  box-shadow: 0 0 0 1px var(--gold-500), 0 10px 28px rgba(224, 168, 85, 0.28);
  transform: translateY(-3px);
}
.avatar {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--green-600);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Dark green tint sits faintly over the founder photo until the card is
   hovered, then clears to reveal the plain photo underneath. */
.avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(28, 48, 24, 0.08);
  transition: opacity 0.3s ease;
}
.team-card:hover .avatar::after { opacity: 0; }

/* --- full-bleed photo band --- */
.photo-band {
  position: relative;
  width: 100%;
  height: clamp(220px, 38vw, 440px);
  overflow: hidden;
}
.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(14, 19, 10, 0.94) 0%, rgba(14, 19, 10, 0.62) 22%, rgba(14, 19, 10, 0) 52%);
}
.photo-band .photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 24px;
  max-width: 1120px;
  margin: 0 auto;
  color: #fbf6e6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.team-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--gold-600);
  text-transform: uppercase;
}

/* --- forms --- */
.form-grid { display: grid; gap: 18px; max-width: 480px; }
label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
input, textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}
textarea { resize: vertical; min-height: 130px; }
.field-hint { font-size: 0.8rem; color: var(--ink-faint); margin-top: 6px; }
.form-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
  border-top: 1px dashed var(--line-strong);
  padding-top: 12px;
  margin-top: 6px;
}

/* --- contact split --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-side { display: flex; flex-direction: column; gap: 22px; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.contact-line:hover { border-color: var(--gold-500); color: var(--ink); }
.contact-line svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--green-600); }
.contact-line span.sub { display: block; font-size: 0.78rem; color: var(--ink-faint); font-weight: 400; }

.social-row { display: flex; gap: 12px; }
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
}
.social-btn svg { width: 20px; height: 20px; }
.social-btn:hover { border-color: var(--gold-500); background: var(--bg-alt); }

/* --- footer --- */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 32px;
  background: var(--bg-alt);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.footer-row a { color: var(--ink-faint); }

.status-banner {
  background: var(--gold-500);
  color: #241704;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 8px 16px;
}
.status-banner a { color: #241704; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   v2 — Heritage, Refined: hook page, problem/solution pages, interactions
   ========================================================================== */

/* --- scroll-progress rail (sticky header + spread down the page) --- */
.scroll-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: color-mix(in srgb, var(--line) 60%, transparent);
  overflow: hidden;
}
.scroll-rail .rail-fill {
  height: 100%;
  width: calc(var(--gp, 0) * 100%);
  background: linear-gradient(90deg, var(--green-500), var(--gold-500));
}

/* --- the hook: full-bleed photo + one animated statistic --- */
.hook {
  position: relative;
  min-height: clamp(560px, 84vh, 820px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(44px, 6vw, 76px);
}
.hook-bg { position: absolute; inset: 0; z-index: 0; }
.hook-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hook-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 20, 10, 0.80) 0%, rgba(14, 20, 10, 0.48) 40%, rgba(14, 20, 10, 0.86) 100%),
    linear-gradient(90deg, rgba(14, 20, 10, 0.72) 0%, rgba(14, 20, 10, 0.06) 72%);
}
.hook .wrap { position: relative; z-index: 1; }
.hook-inner { max-width: 62ch; }
.hook .eyebrow { color: var(--gold-400); }
.hook .eyebrow::before { background: var(--gold-400); }

.stat-hero { margin: 0 0 8px; display: flex; align-items: baseline; gap: 6px; }
.stat-hero .stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4.4rem, 14vw, 10rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  color: #fbf6e6;
  font-variant-numeric: tabular-nums;
}
.stat-hero .stat-unit {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  line-height: 1;
  color: var(--gold-400);
}
.stat-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(251, 246, 230, 0.18);
  overflow: hidden;
  max-width: 520px;
  margin-bottom: 24px;
}
.stat-bar i {
  display: block;
  height: 100%;
  width: calc(var(--p, 0) * 100%);
  background: linear-gradient(90deg, var(--gold-400), #f0d9a8);
  border-radius: 999px;
}
.hook h1 {
  color: #fbf6e6;
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  font-weight: 500;
  max-width: 28ch;
  margin-bottom: 0.45em;
}
.hook p.lede { color: #dfe6d3; max-width: 54ch; }
.hook .btn-ghost { border-color: rgba(251, 246, 230, 0.45); color: #fbf6e6; }
.hook .btn-ghost:hover { border-color: var(--gold-400); color: #fbf6e6; }
.hook .cite { color: var(--gold-400); border-color: rgba(224, 168, 85, 0.65); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(251, 246, 230, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.scroll-cue span.line {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(251, 246, 230, 0.7), rgba(251, 246, 230, 0));
}
.scroll-cue:hover { color: var(--gold-400); }

/* --- animated statistic blocks (reusable, in-flow) --- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 2.4rem; }
@media (max-width: 860px) { .stat-row { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 26px 22px;
  box-shadow: var(--shadow);
}
.stat-card .stat-v {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--green-600);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 14px;
}
.stat-card .stat-v .u { font-size: 0.5em; color: var(--gold-600); }
.stat-card .stat-bar { max-width: none; height: 4px; background: var(--line); margin-bottom: 16px; }
.stat-card .stat-bar i { background: linear-gradient(90deg, var(--green-500), var(--gold-500)); }
.stat-card p { font-size: 0.95rem; margin: 0; }

/* Bare stat number — used for standalone metrics (e.g. ecosystem impact)
   that render their value directly in markup rather than via a .stat-card. */
.stat {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--green-600);
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

/* --- inline citations + footer sources --- */
.cite {
  font-family: var(--font-mono);
  font-size: 0.68em;
  vertical-align: super;
  line-height: 0;
  color: var(--gold-600);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 2px 4px;
  margin-left: 3px;
  cursor: pointer;
}
.cite:hover { border-color: var(--gold-500); color: var(--gold-600); background: color-mix(in srgb, var(--gold-400) 16%, transparent); }

.sources { padding-block: clamp(36px, 5vw, 56px); background: var(--bg-alt); border-top: 1px solid var(--line); }
.sources h2 { font-size: 1.15rem; }
.sources ol { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.sources li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.sources li::before {
  content: attr(data-n);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-600);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  text-align: center;
  padding: 1px 0;
}
.sources li.flash {
  background: color-mix(in srgb, var(--gold-400) 20%, transparent);
  border-color: var(--gold-500);
}
.sources li a { color: var(--green-600); word-break: break-word; }
.sources .note { font-size: 0.85rem; color: var(--ink-faint); margin-top: 18px; max-width: 70ch; }

/* --- comparison / before-after columns --- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } }
.compare > div { padding: clamp(24px, 3vw, 34px); }
.compare .c-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2em;
  display: block;
}
.compare .c-now { background: var(--surface); }
.compare .c-now .c-label { color: var(--ink-faint); }
.compare .c-next { background: #1c3018; }
.compare .c-next .c-label { color: var(--gold-400); }
.compare .c-next h3 { color: #fbf6e6; }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.compare li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 0.95rem; color: var(--ink-soft); }
.compare .c-next li { color: #cddcc2; }
.compare li .ic { font-family: var(--font-mono); font-size: 0.9rem; line-height: 1.5; }
.compare .c-now li .ic { color: var(--ink-faint); }
.compare .c-next li .ic { color: var(--gold-400); }

/* --- stepped journey rail (progress spread down the page) --- */
.journey { list-style: none; margin: 2.4rem 0 0; padding: 0; position: relative; max-width: 780px; }
.journey::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--line);
}
.journey::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 12px;
  width: 2px;
  height: calc(var(--jp, 0) * (100% - 24px));
  background: linear-gradient(180deg, var(--green-500), var(--gold-500));
}
.journey li {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  padding-block: 0 34px;
}
.journey li:last-child { padding-bottom: 0; }
.journey .dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-faint);
  position: relative;
  z-index: 1;
  transition: border-color 0.5s ease, background 0.5s ease, color 0.5s ease, transform 0.5s ease;
}
.journey li.in .dot {
  border-color: var(--gold-500);
  background: var(--green-600);
  color: var(--on-accent);
  transform: scale(1.06);
}
.journey li .j-body { opacity: 0.55; transform: translateY(6px); transition: opacity 0.6s ease, transform 0.6s ease; }
.journey li.in .j-body { opacity: 1; transform: none; }
.journey h3 { margin-bottom: 0.3em; }
.journey p { margin-bottom: 0; }
.band-deep .journey::before { background: rgba(244, 239, 221, 0.2); }
.band-deep .journey .dot { background: #1c3018; border-color: rgba(244, 239, 221, 0.35); color: #cddcc2; }
.band-deep .journey li.in .dot { background: var(--gold-400); border-color: var(--gold-400); color: #241704; }

/* --- team: grayscale → color on hover --- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 900px; }
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; } }
.person {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.person-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--green-700);
}
.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: grayscale(1) contrast(1.04);
  transform: scale(1.02);
  transition: filter 0.6s ease, transform 0.9s ease;
}
.person:hover .person-photo img,
.person:focus-within .person-photo img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.05);
}
.person-photo .monogram {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 600;
  color: rgba(251, 246, 230, 0.9);
  background: linear-gradient(150deg, #47504a, #2b312c);
  transition: background 0.6s ease;
}
.person:hover .person-photo .monogram,
.person:focus-within .person-photo .monogram {
  background: linear-gradient(150deg, #2f5233, #1c3018);
}
.person-photo .hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251, 246, 230, 0.82);
  background: rgba(14, 20, 10, 0.55);
  border-radius: 999px;
  padding: 4px 10px;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.person:hover .person-photo .hint { opacity: 0; }
.person-body { padding: 26px 28px 30px; }
.person-body h3 { margin-bottom: 0.2em; }
.person-body p:last-child { margin-bottom: 0; }

/* --- pull quote --- */
.pull {
  border-left: 3px solid var(--gold-500);
  padding: 6px 0 6px 24px;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 34ch;
}
.band-deep .pull { color: #fbf6e6; border-color: var(--gold-400); }

/* --- page head (interior pages) --- */
.page-head { padding-block: clamp(44px, 6vw, 76px) clamp(28px, 4vw, 44px); }
.page-head h1 { max-width: 20ch; }

@media (prefers-reduced-motion: reduce) {
  .person-photo img,
  .journey li .j-body,
  .journey .dot { transition: none; }
}

/* ==========================================================================
   v2.1 — contact form state (Formspree)
   ========================================================================== */

/* Honeypot: off-screen for people, irresistible to bots. */
.fs-gotcha {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
}

.fs-error {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--danger);
  margin-top: 6px;
  min-height: 0;
}
.fs-error:empty { display: none; }

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--danger) 35%, transparent);
}

.fs-form-error {
  border: 1px solid var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0;
  max-width: none;
}
.fs-form-error:empty { display: none; }
.fs-form-error a { color: var(--danger); }

.fs-success {
  border: 1px solid var(--green-500);
  background: color-mix(in srgb, var(--green-500) 12%, transparent);
  border-radius: 14px;
  padding: 28px 30px;
  max-width: 480px;
}
.fs-success h3 { margin-bottom: 0.35em; }
.fs-success p { margin-bottom: 0; }
.fs-success .tick {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-600);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

button[data-fs-submit-btn][disabled] { opacity: 0.6; cursor: progress; }
