:root {
  --font-display: "Cabinet Grotesk", "Helvetica Neue", sans-serif;
  --font-body: "Satoshi", "Helvetica Neue", sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --text-xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  --text-hero: clamp(2.25rem, 1.4rem + 3.4vw, 4.5rem);
  --text-stat: clamp(6rem, 3rem + 12vw, 13rem);

  --bg: #f4f1e8;
  --surface: #fbf9f3;
  --ink: #0e1d16;
  --ink-2: #16291f;
  --text: #17231d;
  --muted: #56625b;
  --line: #d9d4c5;
  --on-dark: #eef1ea;
  --on-dark-muted: #a9b6ae;
  --carolina: #7bafd4;
  --carolina-deep: #1d5a85;
  --field: #4f7a3a;

  --radius: 6px;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--carolina); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--on-dark); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.prose p + p { margin-top: 1em; }
.prose { max-width: 62ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.5rem;
  font: 700 var(--text-sm)/1 var(--font-body);
  text-decoration: none; border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--carolina); color: var(--ink); }
.btn--accent:hover { background: #9cc5e3; }
.btn--ghost { border-color: rgba(238, 241, 234, .5); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--on-dark); background: rgba(238, 241, 234, .08); }
.btn--small { min-height: 40px; padding: 0 1.1rem; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--on-dark);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-scrolled, .header.is-open { background: rgba(14, 29, 22, .94); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand__mark { width: 28px; height: 28px; color: var(--carolina); }
.brand__mark svg { width: 100%; height: 100%; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand__logo { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { display: flex; gap: 1.75rem; }
.nav ul a { font-size: var(--text-sm); font-weight: 500; text-decoration: none; color: var(--on-dark); opacity: .85; transition: opacity .2s; }
.nav ul a:hover { opacity: 1; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--on-dark); transition: transform .3s var(--ease); }
  .header.is-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .header.is-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1.25rem;
    padding: 1rem var(--gutter) 1.75rem;
    background: rgba(14, 29, 22, .98);
    display: none;
  }
  .header.is-open .nav { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: .8rem 0; font-size: var(--text-base); border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* Hero */
.hero {
  position: relative; isolation: isolate;
  min-height: min(92vh, 860px);
  display: flex; align-items: flex-end;
  color: var(--on-dark);
  background: var(--ink);
  overflow: hidden;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 22, 16, .86) 0%, rgba(10, 22, 16, .55) 45%, rgba(10, 22, 16, .1) 75%),
    linear-gradient(0deg, rgba(10, 22, 16, .75) 0%, rgba(10, 22, 16, 0) 45%);
}
.hero__content { padding-top: 140px; padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-hero);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 17ch;
  text-wrap: balance;
}
.hero__sub { margin-top: 1.5rem; max-width: 54ch; font-size: var(--text-lg); line-height: 1.55; color: #d9e0d9; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

/* Mission */
.mission { padding-block: var(--section); }
.mission__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.stat { border-top: 2px solid var(--text); padding-top: 1.25rem; }
.stat__value {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--text-stat); line-height: .82; letter-spacing: -0.05em;
  color: var(--carolina-deep);
  font-variant-numeric: tabular-nums;
}
.stat__label { margin-top: 1.25rem; font-weight: 700; font-size: var(--text-lg); line-height: 1.3; max-width: 22ch; }
.stat__detail { margin-top: .5rem; color: var(--muted); }
.mission__copy .section-title { margin-bottom: 1.5rem; }
.mission__copy .prose { font-size: var(--text-lg); line-height: 1.6; }
.source { margin-top: 1.75rem; font-size: var(--text-xs); color: var(--muted); }
.source a { text-underline-offset: 3px; }
.source a:hover { color: var(--carolina-deep); }

/* Agriculture */
.ag { padding-bottom: var(--section); background: var(--surface); border-top: 1px solid var(--line); }
.ag__intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); padding-top: var(--section); padding-bottom: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.ag__intro .prose { font-size: var(--text-lg); color: var(--muted); }
.ag__figure { width: 100%; max-height: 560px; overflow: hidden; }
.ag__figure img { width: 100%; height: clamp(280px, 45vw, 560px); object-fit: cover; }
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: clamp(2.5rem, 5vw, 4rem); }
.service { padding: 1.75rem 1.5rem 0 0; }
.service + .service { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.service__num { display: block; font-size: var(--text-xs); font-weight: 700; color: var(--field); letter-spacing: .08em; margin-bottom: 1.5rem; }
.service h3 { font-size: var(--text-lg); font-weight: 700; line-height: 1.25; margin-bottom: .6rem; }
.service p { color: var(--muted); font-size: var(--text-sm); line-height: 1.6; }

/* Pillars */
.pillars { background: var(--ink); color: var(--on-dark); padding-block: var(--section); }
.pillars .section-title { max-width: 18ch; }
.pillars__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.pillar { border-top: 2px solid var(--carolina); padding-top: 1.5rem; }
.pillar h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; line-height: 1.1; color: var(--carolina); margin-bottom: .75rem; }
.pillar p { color: var(--on-dark-muted); }

/* Process */
.process { padding-block: var(--section); }
.process__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.process__figure { border-radius: var(--radius); overflow: hidden; }
.process__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 0% 50%; }
.steps { margin-top: 2rem; }
.step { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.2; color: var(--carolina-deep); }
.step h3 { font-size: var(--text-lg); font-weight: 700; line-height: 1.3; margin-bottom: .35rem; }
.step p { color: var(--muted); }

/* Contact */
.contact { background: var(--ink-2); color: var(--on-dark); padding-block: var(--section); }
.contact__title, .contact__body { max-width: 820px; }
.contact__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.contact__body { margin-top: 1.25rem; color: var(--on-dark-muted); font-size: var(--text-lg); }
.contact__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.contact__meta { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 2rem; font-size: var(--text-sm); color: var(--on-dark-muted); }
.contact__meta a { color: var(--on-dark); text-underline-offset: 3px; }

/* Footer */
.footer { background: var(--ink); color: var(--on-dark-muted); padding-block: 2.5rem; font-size: var(--text-sm); border-top: 1px solid rgba(255,255,255,.06); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; align-items: baseline; }
.footer__brand { font-family: var(--font-display); font-weight: 800; color: var(--on-dark); font-size: 1.125rem; }
.footer__text { flex: 1 1 320px; }
.footer__copy { font-size: var(--text-xs); }

/* Reveal (content stays visible without JS) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { padding: 1.75rem 1.5rem 1.75rem 0; }
  .service + .service { padding-left: 0; border-left: 0; }
  .service:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
  .service:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .mission__grid, .ag__intro, .process__grid { grid-template-columns: 1fr; }
  .pillars__grid { grid-template-columns: 1fr; }
  .process__figure img { aspect-ratio: 4 / 3; }
  .hero { min-height: 88vh; }
  .hero__shade { background: linear-gradient(0deg, rgba(10,22,16,.92) 0%, rgba(10,22,16,.6) 55%, rgba(10,22,16,.25) 100%); }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 1.5rem 0; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); }
  .service__num { margin-bottom: .75rem; }
  .hero__actions .btn, .contact__actions .btn { flex: 1 1 100%; }
}
