:root {
  --bg: #f4efe4;
  --bg-alt: #ebe3d2;
  --ink: #1d2a22;
  --ink-soft: #46534a;
  --green: #1f3d2c;
  --green-mid: #2f5a40;
  --green-deep: #142a1e;
  --sand: #d9c9a3;
  --gold: #8a6a2a;
  --line: rgba(29, 42, 34, 0.14);
  --card: #fbf8f1;
  --error: #9b2c2c;
  --focus: #2f6b48;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .brand, .big, .quote, .stat-figure, .stat-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
}
p { margin: 0 0 18px; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--sand); color: var(--green-deep);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 18px;
}
.muted { color: var(--ink-soft); }

/* reveal on scroll (only when scripts run) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .stats .reveal:nth-child(2) { transition-delay: .12s; }
.js .stats .reveal:nth-child(3) { transition-delay: .24s; }
.js .stay-grid .card.reveal { transition-delay: .12s; }

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 28px;
  color: #f4efe4;
  background: rgba(20, 42, 30, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav .brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; text-decoration: none; white-space: nowrap; }
.mark { width: 16px; height: 24px; fill: var(--sand); flex: none; }
.nav nav { display: flex; gap: 26px; align-items: center; font-size: 14px; }
.nav nav a { text-decoration: none; opacity: 0.85; white-space: nowrap; }
.nav nav a:hover { opacity: 1; }
.nav-cta { background: var(--sand); color: var(--green-deep); padding: 9px 18px; border-radius: 999px; font-weight: 600; opacity: 1 !important; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(217,201,163,0.15); }
.progress span { display: block; height: 100%; background: var(--sand); transform: scaleX(0); transform-origin: left center; }

/* hero */
.hero {
  position: relative; overflow: hidden;
  min-height: 94vh;
  display: flex; align-items: center;
  background: radial-gradient(ellipse at 70% 40%, #2b5039 0%, var(--green) 45%, var(--green-deep) 100%);
  color: #f4efe4;
}
.hero-inner { position: relative; z-index: 2; max-width: 1160px; margin: 0 auto; padding: 128px 24px 200px; width: 100%; }
.hero .eyebrow { color: var(--sand); }
.hero h1 { font-size: clamp(54px, 7.2vw, 104px); max-width: 15ch; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--sand); }
.lede { font-size: clamp(21px, 2.6vw, 28px); font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; max-width: 30ch; margin: 30px 0 14px; color: #f4efe4; line-height: 1.3; }
.sublede { font-size: 17px; max-width: 46ch; margin: 0 0 38px; color: rgba(244,239,228,0.82); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-slope { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; z-index: 1; display: block; }
.slope-fill { fill: rgba(10, 24, 16, 0.35); }
.slope-line { fill: none; stroke: var(--sand); stroke-width: 2; stroke-linecap: round; }
#hole ellipse { fill: #0a1610; }
#ball circle { fill: #f8f4ea; }
#ball { transition: opacity .35s ease; }
#ball.sunk { opacity: 0; }
.sprout-stem { fill: none; stroke: var(--sand); stroke-width: 2.5; stroke-linecap: round; }
.sprout-leaf { fill: var(--sand); }
.js .sprout-stem { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s ease; }
.js .sprout-leaf { transform: scale(0); transform-box: fill-box; transform-origin: 50% 100%; transition: transform .7s cubic-bezier(.3,1.4,.5,1) .6s; }
.js .sprout-leaf.two { transition-delay: .85s; }
.js #sprout.grown .sprout-stem { stroke-dashoffset: 0; }
.js #sprout.grown .sprout-leaf { transform: scale(1); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font-family: inherit; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sand); color: var(--green-deep); }
.btn-primary:hover { background: #e6d8b6; }
.btn-ghost { border-color: rgba(244,239,228,0.5); color: #f4efe4; }
.btn-ghost:hover { border-color: #f4efe4; }

/* sections */
.section { padding: 120px 0; }
.section h2 { font-size: clamp(38px, 5vw, 60px); }

/* vision */
.vision-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.vision-body .big { font-size: clamp(26px, 3vw, 34px); line-height: 1.25; margin-bottom: 24px; }
.vision-body p:not(.big) { font-size: 18px; color: var(--ink-soft); }
.pursuits-wrap { margin-top: 90px; }
.pursuits-intro { font-size: clamp(19px, 2vw, 22px); color: var(--ink); max-width: 52ch; margin: 0 auto 30px; text-align: center; }

/* bodhi tree */
.tree-wrap { max-width: 920px; margin: 0 auto; }
.tree { width: 100%; height: auto; display: block; overflow: visible; }
.tree .ground { fill: none; stroke: rgba(29,42,34,0.25); stroke-width: 2; stroke-linecap: round; }
.tree .grow { fill: none; stroke-linecap: round; }
.js .tree .grow { stroke-dasharray: 1; stroke-dashoffset: 1; }
.tree .roots path { stroke: rgba(29,42,34,0.22); stroke-width: 3; }
.tree .trunk { stroke: var(--green); stroke-width: 14; }
.tree .branch { stroke: var(--green); stroke-width: 7; }
.tree .branch.future { stroke: var(--green); stroke-width: 4; opacity: 0.45; }
.tree .leaf-shape { fill: var(--green-mid); transition: fill .25s ease; }
.tree .leaf-rib { fill: none; stroke: rgba(244,239,228,0.45); stroke-width: 1.2; }
.tree .leaf.is-first .leaf-shape { fill: var(--gold); }
.tree .leaf.is-future .leaf-shape { fill: none; stroke: var(--green); stroke-width: 2; stroke-dasharray: 5 5; }
.tree .leaf:not(.is-future):hover .leaf-shape { fill: var(--green); }
.tree .leaf.is-first:hover .leaf-shape { fill: #a07b33; }
.tree-label { font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; font-weight: 600; fill: var(--green); }
.tree-label.future { font-style: italic; font-weight: 500; fill: var(--ink-soft); }
.tree-tag { font-family: "Inter", system-ui, sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; fill: var(--gold); }
.js .tree-label, .js .tree-tag { opacity: 0; }

/* principle */
.principle { background: var(--green); color: #f4efe4; text-align: center; padding: 110px 0 96px; }
.quote { font-size: clamp(46px, 7.5vw, 92px); font-style: italic; font-weight: 500; margin: 0; }
.principle-line { display: block; width: min(520px, 80%); height: auto; margin: 22px auto 0; }
.principle-line path { fill: none; stroke: var(--sand); stroke-width: 2.5; stroke-linecap: round; }

/* line drawing */
.js .growline path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.4,0,.2,1) .2s; }
.js .growline.is-in path { stroke-dashoffset: 0; }

/* proof */
.proof { background: var(--bg-alt); }
.proof-head { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: end; }
.proof-intro p { font-size: 18px; color: var(--ink-soft); }
.proof-intro p:last-child { margin-bottom: 0; }
.proof-line { display: block; width: 100%; height: auto; margin: 56px 0 -6px; }
.proof-line path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; }
.gdot { fill: var(--gold); }
.js .gdot { opacity: 0; transition: opacity .4s ease; }
.js .proof-line.is-in .gdot { opacity: 1; }
.js .proof-line.is-in .d1 { transition-delay: .3s; }
.js .proof-line.is-in .d2 { transition-delay: 1s; }
.js .proof-line.is-in .d3 { transition-delay: 1.7s; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 18px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 34px 30px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.stat:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20,42,30,0.08); border-color: rgba(31,61,44,0.3); }
.stat-figure { font-size: clamp(64px, 7vw, 88px); color: var(--green); font-weight: 700; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stat-title { font-size: clamp(30px, 3vw, 38px); color: var(--green); margin-bottom: 12px; }
.stat-label { font-size: 15px; color: var(--ink-soft); margin: 0; }
.proof-close { max-width: 760px; margin: 72px auto 0; text-align: center; }
.proof-close p { font-size: clamp(20px, 2.2vw, 24px); color: var(--ink); line-height: 1.45; }
.proof-close .beginning { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: clamp(30px, 3.6vw, 42px); color: var(--green); margin: 26px 0 0; }

/* get involved */
.stay { position: relative; overflow: hidden; }
.stay-leaf { position: absolute; right: -60px; top: 40px; width: 420px; height: auto; fill: var(--green); opacity: 0.05; transform: rotate(18deg); pointer-events: none; }
.stay-leaf .rib { fill: none; stroke: var(--bg); stroke-width: 1.2; }
.stay-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.stay-copy h2 { margin-bottom: 26px; }
.stay-copy p:not(.eyebrow) { font-size: 18px; color: var(--ink-soft); max-width: 44ch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: 0 12px 40px rgba(20,42,30,0.06); }
.card-title { font-size: 30px; color: var(--green); margin-bottom: 22px; }

/* form */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid rgba(29,42,34,0.25); border-radius: 12px;
  padding: 13px 14px; outline: none;
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,61,44,0.15); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .help { font-size: 13px; color: var(--ink-soft); margin: 6px 0 0; }
.field .err, .form-error { font-size: 13px; color: var(--error); margin: 6px 0 0; }
.form-error { margin: 0 0 14px; }
.submit { background: var(--green); color: #f4efe4; width: 100%; font-size: 16px; }
.submit:hover { background: var(--green-deep); }
.submit[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.thanks h3 { font-size: 32px; color: var(--green); margin-bottom: 10px; }
.thanks p { color: var(--ink-soft); }

/* footer */
.footer { background: var(--green-deep); color: #f4efe4; padding: 56px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .brand { font-size: 24px; margin-bottom: 6px; }
.footer-tag { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 19px; color: var(--sand); margin: 0; }
.footer-links { display: flex; gap: 24px; font-size: 14px; }
.footer-links a { text-decoration: none; opacity: 0.8; }
.footer-links a:hover { opacity: 1; }

@media (max-width: 1000px) {
  .vision-grid, .proof-head, .stay-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:first-child { grid-column: 1 / -1; }
  .proof-line { display: none; }
  .stats { margin-top: 48px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { padding: 12px 16px; }
  .nav .brand { font-size: 18px; gap: 8px; }
  .mark { width: 13px; height: 20px; }
  .nav nav a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 8px 14px; font-size: 13px; }
  .wrap, .hero-inner { padding-left: 16px; padding-right: 16px; }
  .hero-inner { padding-top: 112px; padding-bottom: 170px; }
  .hero-slope { height: 150px; }
  .section { padding: 80px 0; }
  .pursuits-wrap { margin-top: 60px; }
  .tree-wrap { margin: 0 -8px; }
  .tree-label { font-size: 46px; }
  .tree-tag { font-size: 20px; }
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 0; padding: 26px 24px; }
  .proof-close { margin-top: 52px; }
  .card { padding: 24px; }
  .stay-leaf { width: 260px; right: -80px; top: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}