:root {
  --ink: #1c2a20;
  --forest: #226138;
  --forest-dark: #12351f;
  --sage: #4f9264;
  --sage-light: #a7d0b3;
  --mist: #edf4ee;
  --sand: #fbfbf8;
  --blue: #2c5aa0;
  --blue-light: #8fb8e6;
  --line: #dbe2dc;
  --white: #fff;
  --muted: #52655a;
  --muted-dark: #c6d8cd;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', sans-serif;
  --display: 'Space Grotesk', sans-serif;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); line-height: 1.05; letter-spacing: -2px; }
h1 { font-size: clamp(46px, 5.4vw, 76px); max-width: 650px; margin: 27px 0 26px; }
h1 em, h2 em { font-family: var(--serif); font-weight: 400; letter-spacing: -1.5px; color: var(--sage); font-style: italic; }
.page-hero-dark h1 em { color: var(--blue-light); }
.section-shell { max-width: 1240px; margin: 0 auto; padding-left: 6vw; padding-right: 6vw; }
.skip-link { position: absolute; left: 15px; top: -50px; background: var(--blue); color: var(--white); padding: 10px 15px; z-index: 20; }
.skip-link:focus { top: 15px; }
.lead { font-family: var(--display); font-size: 22px; line-height: 1.35; color: var(--ink); }
.placeholder-note { font-size: 12px; color: var(--sage); }
.donate-methods { margin: 16px 0 0; display: flex; flex-direction: column; gap: 12px; }
.donate-methods dt { font-family: var(--display); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.donate-methods dd { margin: 3px 0 0; }
.donate-tag { font-family: var(--sans); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }

/* Header & navigation */
.site-header { position: sticky; top: 0; z-index: 50; height: 88px; display: flex; align-items: center; justify-content: space-between; padding: 0 6vw; background: var(--sand); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(35, 48, 43, 0.03); }
.brand, .footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.3px; }
.brand > span:last-child > span, .footer-brand > span:last-child > span { color: var(--sage); }
.brand-logo { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: center; flex: none; box-shadow: 0 0 0 1px rgba(35, 48, 43, 0.08); }
.footer-brand .brand-logo { width: 46px; height: 46px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 13px; font-weight: 600; }
.site-nav > a:not(.nav-cta) { opacity: 0.72; transition: opacity 0.2s; }
.site-nav > a:not(.nav-cta):hover, .site-nav > a:not(.nav-cta).active { opacity: 1; }
.nav-cta { background: var(--forest); color: var(--white); padding: 11px 16px; border-radius: 2px; }
.nav-cta span { margin-left: 9px; color: var(--blue-light); }
.nav-cta.active { background: var(--blue); color: var(--white); }
.nav-cta.active span { color: var(--white); }
.menu-toggle { display: none; border: 0; background: none; padding: 10px; }

/* Eyebrows, buttons, links */
.eyebrow, .section-kicker { font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; font-weight: 700; color: #537260; display: flex; align-items: center; gap: 10px; }
.section-kicker.light { color: var(--muted-dark); }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.section-kicker span { display: inline-block; width: 44px; height: 1px; background: var(--sage); }
.button { display: inline-flex; align-items: center; gap: 18px; padding: 15px 21px; font-weight: 700; font-size: 13px; border: 1px solid transparent; cursor: pointer; transition: transform 0.2s, background 0.2s; font-family: var(--sans); }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--forest); color: var(--white); }
.button-primary span { color: var(--blue-light); font-size: 19px; }
.button-light { background: var(--white); color: var(--forest); }
.button-ghost { border-color: rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.9); color: var(--forest); }
.text-link { display: inline-block; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.text-link span { color: var(--sage); margin-left: 6px; }

/* View switching */
.view { display: none; scroll-margin-top: 88px; }
.view.active { display: block; }
.home-view.active { min-height: calc(100vh - 88px); overflow: hidden; }
.home-view .reference-hero { min-height: calc(100vh - 88px); height: calc(100vh - 88px); }

/* Home hero */
.reference-hero { min-height: 670px; position: relative; display: flex; align-items: center; overflow: hidden; background: var(--forest-dark); }
.reference-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 25% 42%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 26, 16, 0.85), rgba(9, 26, 16, 0.55) 60%, rgba(9, 26, 16, 0.2) 90%), linear-gradient(180deg, rgba(9, 26, 16, 0.25), rgba(9, 26, 16, 0.1) 35%, rgba(9, 26, 16, 0.45) 100%); }
.hero-panel { position: relative; color: var(--white); max-width: 1240px; width: 100%; padding: 90px 6vw; margin: 0 auto; }
.hero-panel .eyebrow { color: var(--muted-dark); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.hero-panel h1 { font-size: clamp(56px, 8vw, 108px); margin: 22px 0 4px; letter-spacing: -4px; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45); }
.hero-motto { font-family: var(--serif); font-size: clamp(25px, 3vw, 40px); font-style: italic; color: var(--blue-light); margin: 0 0 22px; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6); }
.hero-panel .hero-intro { max-width: 480px; color: #edf1ea; font-size: 18px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55); }
.hero-panel .hero-actions { gap: 10px; flex-wrap: wrap; margin-top: 34px; display: flex; align-items: center; }

/* Page hero band */
.page-hero { background: var(--mist); padding: 105px 0 100px; }
.page-hero-dark { background: var(--forest-dark); color: var(--white); }
.page-hero-accent { background: var(--blue); color: var(--white); }
.page-hero .section-shell { max-width: 1240px; }
.page-hero .eyebrow { color: #537260; }
.page-hero-dark .eyebrow, .page-hero-accent .eyebrow { color: var(--muted-dark); }
.page-hero-dark .eyebrow-dot, .page-hero-accent .eyebrow-dot { background: var(--blue-light); }
.page-hero-accent h1 em { color: var(--sage-light); }
.page-hero h1 { max-width: 850px; font-size: clamp(48px, 6.3vw, 84px); margin: 25px 0 18px; }
.page-hero p:not(.eyebrow) { max-width: 590px; font-size: 18px; color: var(--muted); }
.page-hero-dark p:not(.eyebrow) { color: var(--muted-dark); }
.page-hero-accent p:not(.eyebrow) { color: var(--muted-dark); }

/* Interior sections */
.interior-section { padding-top: 105px; padding-bottom: 115px; }
.reference-heading { display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.reference-heading h2 { font-size: clamp(35px, 4vw, 56px); margin: 0; }
.section-number { font-family: var(--display); color: var(--sage); font-size: 13px; }
.interior-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; padding-top: 50px; }
.interior-grid > div:first-child, .interior-grid > p { max-width: 450px; color: var(--muted); }
.fact-panel, .contact-card { background: var(--forest); color: var(--white); padding: 32px; min-height: 220px; max-width: 390px; }
.fact-panel .focus-icon, .contact-card .focus-icon { color: var(--blue-light); }
.fact-panel h3, .contact-card h3 { font-family: var(--display); font-size: 23px; margin: 37px 0 8px; }
.fact-panel p, .contact-card p { color: var(--muted-dark); font-size: 14px; }
.location-map { width: 100%; height: 200px; margin-top: 18px; border-radius: 4px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.25); background: var(--mist); }
.contact-card .text-link { display: inline-flex; color: var(--white); border-bottom-color: rgba(255, 255, 255, 0.5); margin-top: 12px; margin-right: 18px; }
.contact-card .text-link span { color: var(--blue-light); }

/* Focus areas / card grids */
.focus-page-grid, .involve-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); margin-top: 100px; margin-bottom: 110px; }
.focus-page-grid article, .involve-grid article { background: var(--sand); padding: 32px; min-height: 295px; position: relative; }
.focus-page-grid article:nth-child(2), .involve-grid article:nth-child(2) { background: var(--mist); }
.focus-page-grid article:nth-child(3), .involve-grid article:nth-child(3) { background: var(--forest-dark); color: var(--white); }
.focus-page-grid article:nth-child(3) p, .involve-grid article:nth-child(3) p { color: var(--muted-dark); }
.focus-icon { font-family: var(--serif); font-size: 35px; color: var(--sage); }
.focus-page-grid article:nth-child(3) .focus-icon, .involve-grid article:nth-child(3) .focus-icon { color: var(--blue-light); }
.card-index { float: right; font-size: 11px; color: #7c8a80; }
.focus-page-grid h2, .involve-grid h3 { font-size: 26px; margin: 60px 0 10px; font-family: var(--display); }
.focus-page-grid p, .involve-grid p { color: #607067; max-width: 300px; font-size: 14px; }
.involve-grid article:nth-child(3) .card-index { color: var(--muted-dark); }
.involve-grid .text-link { margin-top: 10px; }

/* Impact band */
.impact-band { background: var(--forest-dark); color: var(--white); padding: 110px 0 100px; }
.impact-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 10vw; align-items: end; margin-top: 37px; }
.impact-intro h2 { font-size: clamp(42px, 4.7vw, 64px); margin: 0; }
.impact-intro h2 em { color: var(--blue-light); }
.impact-intro p { color: var(--muted-dark); max-width: 390px; margin: 0; }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.15); margin-top: 75px; }
.impact-item { background: var(--forest-dark); padding: 27px 27px 30px; min-height: 205px; }
.impact-item > span { color: var(--blue-light); font-size: 11px; }
.impact-item h3 { font-family: var(--display); font-size: 19px; margin: 36px 0 8px; }
.impact-item p { font-size: 13px; color: var(--muted-dark); max-width: 260px; }
.impact-foot { display: flex; gap: 15px; align-items: center; color: var(--muted-dark); font-size: 12px; margin-top: 35px; }
.impact-line { width: 38px; height: 1px; background: var(--blue-light); }

/* Founder */
.founder-page { display: grid; grid-template-columns: 0.85fr 1fr; gap: 10vw; align-items: center; padding-top: 110px; padding-bottom: 125px; }
.founder-portrait { height: 520px; position: relative; }
.founder-portrait img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8); }
.founder-portrait span { position: absolute; left: 20px; bottom: 20px; background: var(--blue); color: var(--white); padding: 12px 16px; font-size: 12px; line-height: 1.3; }
.founder-portrait strong { font-family: var(--display); font-size: 15px; }
.founder-message { max-width: 500px; }
.quote-mark { font-family: var(--serif); font-size: 95px; color: var(--sage-light); line-height: 0.7; margin: 65px 0 25px; }
.founder-message blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.5vw, 46px); line-height: 1.1; margin: 0 0 30px; }
.founder-message > p:not(.quote-mark) { color: var(--muted); }
.signature { font-family: var(--serif); font-style: italic; font-size: 22px; margin-top: 20px; color: var(--forest); }
.signature small { font-family: var(--sans); font-style: normal; font-size: 11px; color: var(--muted); }

/* Contact + FAQ */
.contact-page { padding-top: 105px; padding-bottom: 135px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; padding-top: 50px; }
.contact-grid > div:first-child { max-width: 430px; color: var(--muted); }
.contact-card small { display: block; color: var(--muted-dark); font-size: 10px; margin-top: 15px; }
.contact-card .button { margin-top: 15px; }
.faq-block { margin-top: 110px; }
.faq-list { margin-top: 40px; max-width: 720px; }
.faq-list details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-family: var(--display); font-size: 17px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 20px; color: var(--sage); margin-left: 20px; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { margin-top: 14px; color: var(--muted); max-width: 560px; }

/* Footer */
.site-footer { background: var(--forest-dark); color: var(--muted-dark); padding: 50px 6vw 32px; }
.footer-shell { max-width: 1240px; margin: 0 auto; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-brand { color: var(--white); font-size: 16px; }
.footer-brand > span:last-child > span { color: var(--blue-light); }
.footer-updates { font-size: 13px; font-weight: 700; color: var(--white); border-bottom: 1px solid var(--blue-light); padding-bottom: 3px; }
.footer-updates span { color: var(--blue-light); margin-left: 6px; }
.footer-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding-top: 22px; padding-right: 130px; font-size: 12px; }
.footer-place { font-weight: 600; color: var(--sage-light); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 30px; height: 30px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: var(--muted-dark); opacity: 0.7; }
.footer-social a:hover { opacity: 1; }

/* Message widget */
.chat-widget { position: fixed; right: 24px; bottom: 24px; z-index: 60; }
.chat-toggle { display: flex; align-items: center; gap: 10px; background: var(--forest); color: var(--white); border: none; padding: 15px 20px; border-radius: 999px; font-family: var(--sans); font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: 0 10px 25px rgba(31, 61, 51, 0.28); transition: transform 0.2s; }
.chat-toggle:hover { transform: translateY(-2px); }
.chat-toggle span:first-child { color: var(--blue-light); font-size: 16px; }
.chat-panel { position: absolute; right: 0; bottom: calc(100% + 14px); width: min(340px, 84vw); background: var(--sand); border: 1px solid var(--line); box-shadow: 0 20px 45px rgba(35, 48, 43, 0.18); padding: 22px; }
.chat-panel-head { display: flex; align-items: center; justify-content: space-between; }
.chat-panel-head strong { font-family: var(--display); font-size: 16px; }
.chat-close { background: none; border: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0; }
.chat-whatsapp { width: 100%; justify-content: center; margin-top: 16px; background: #25d366; border-color: #25d366; color: #05310f; }
.chat-whatsapp:hover { background: #1fb955; }
.chat-panel-divider { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin: 18px 0 4px; }
.chat-panel-divider::before, .chat-panel-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.chat-panel-note { font-size: 12px; color: var(--muted); margin: 8px 0 16px; }
.chat-form { display: flex; flex-direction: column; gap: 12px; }
.chat-form label { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 5px; }
.chat-form input, .chat-form textarea { font-family: var(--sans); font-size: 13px; padding: 9px 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink); resize: vertical; }
.chat-form input:focus, .chat-form textarea:focus { outline: 2px solid var(--sage); outline-offset: 1px; }
.chat-form .button { justify-content: center; margin-top: 4px; }
.chat-form-status { font-size: 12px; color: var(--sage); margin: 6px 0 0; min-height: 14px; }

/* Reveal + motion */
.reveal { animation: rise 0.8s ease both; }
.reveal-delay { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 800px) {
  .site-header { height: 68px; }
  .view { scroll-margin-top: 68px; }
  .brand-logo { width: 42px; height: 42px; }
  .menu-toggle { display: block; }
  .menu-toggle span { display: block; width: 22px; height: 2px; background: var(--forest); margin: 5px; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--sand); padding: 20px 6vw 28px; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 18px; }
  .site-nav.open { display: flex; }
  .nav-cta { margin-top: 4px; }
  .reference-hero { min-height: 720px; }
  .hero-panel { padding-top: 110px; padding-bottom: 90px; }
  .hero-panel h1 { letter-spacing: -2px; }
  .page-hero { padding: 75px 0 70px; }
  .page-hero h1 { letter-spacing: -2px; }
  .interior-section { padding-top: 80px; padding-bottom: 90px; }
  .interior-grid, .contact-grid, .founder-page { grid-template-columns: 1fr; gap: 40px; }
  .focus-page-grid, .involve-grid { grid-template-columns: 1fr; margin-top: 70px; margin-bottom: 80px; }
  .focus-page-grid article, .involve-grid article { min-height: 240px; }
  .impact-intro { grid-template-columns: 1fr; gap: 24px; }
  .impact-grid { grid-template-columns: 1fr; margin-top: 50px; }
  .impact-item { min-height: 0; padding: 24px; }
  .impact-item h3 { margin-top: 20px; }
  .founder-page { padding-top: 80px; padding-bottom: 90px; }
  .founder-portrait { height: 380px; }
  .quote-mark { margin-top: 35px; }
  .contact-page { padding-top: 80px; padding-bottom: 95px; }
  .faq-block { margin-top: 70px; }
  .footer-top { justify-content: flex-start; }
  .footer-bottom { padding-right: 0; }
  .chat-widget { right: 16px; bottom: 16px; }
  .chat-panel { width: min(300px, 88vw); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  .button, .chat-toggle { transition: none; }
}
