:root {
  --font-body: "Poppins", sans-serif;
  --font-display: "Raleway", sans-serif;

  --page-max: 1240px;
  --gutter: clamp(18px, 4vw, 56px);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --ink-strong: #0f1712;
  --ink: #1f2b24;
  --ink-muted: #55675d;
  --line: #d7ded9;

  --surface: #ffffff;
  --surface-soft: #f6f9f5;
  --surface-green: #173a2a;

  --accent: #1f3f2d;
  --accent-strong: #14281d;
  --accent-soft: #d9e4d9;

  --section-space: clamp(52px, 6vw, 80px);
  --header-height: clamp(74px, 7vw, 92px);

  --h1-size: clamp(2rem, 5.5vw, 4.6rem);
  --h2-size: clamp(1.9rem, 3.7vw, 3.1rem);
  --h3-size: clamp(1.4rem, 2.3vw, 2rem);
  --body-size: clamp(1rem, 1.3vw, 1.12rem);
  --small-size: 0.92rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  color-scheme: light;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.012em;
}

p {
  color: var(--ink-muted);
  font-size: var(--body-size);
  line-height: 1.65;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(var(--page-max), calc(100vw - (var(--gutter) * 2)));
  margin-inline: auto;
}

.narrow {
  max-width: 900px;
}

.reading {
  max-width: 760px;
}

.reading h3 {
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .reading h3 {
    white-space: normal;
  }
}

.section {
  padding-block: var(--section-space);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  border-bottom: 1px solid color-mix(in oklab, var(--line), transparent 40%);
  background: color-mix(in oklab, #ffffff, transparent 12%);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  transition: background 200ms ease, border-color 200ms ease;
}

.site-header.scrolled {
  background: color-mix(in oklab, #ffffff, transparent 6%);
  border-bottom-color: color-mix(in oklab, var(--line), transparent 10%);
}

.nav-row {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: auto;
  height: clamp(34px, 4.8vw, 60px);
}

.desktop-nav {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 2.3vw, 34px);
  font-size: var(--small-size);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.desktop-nav a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--accent);
  border-color: currentColor;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.menu-icon {
  width: 22px;
  display: grid;
  gap: 7px;
}

.menu-icon span {
  width: 100%;
  height: 1.6px;
  background: currentColor;
  transform-origin: center;
  transition: transform 240ms ease, opacity 240ms ease;
}

body.menu-open .menu-icon span:first-child {
  transform: translateY(4.3px) rotate(38deg);
}

body.menu-open .menu-icon span:last-child {
  transform: translateY(-4.3px) rotate(-38deg);
}

.mobile-menu {
  position: fixed;
  z-index: 980;
  inset: var(--header-height) 0 0;
  padding: max(30px, 6vw) var(--gutter) 32px;
  background: #f6faf6;
  border-top: 1px solid color-mix(in oklab, var(--line), transparent 25%);
}

.mobile-menu nav {
  display: grid;
  gap: 10px;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 6.3vw, 2rem);
  line-height: 1.1;
  padding: 14px 0;
  border-bottom: 1px solid #cfd9d1;
}

.mobile-menu a:focus-visible,
.mobile-menu a:hover {
  color: var(--accent);
}

main {
  padding-top: var(--header-height);
}

/* shared planning-grid texture applied to all white sections */
.hero,
.stats,
.audience,
.manifesto,
.site-footer {
  background-image:
    linear-gradient(rgba(23, 58, 42, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 58, 42, 0.028) 1px, transparent 1px),
    linear-gradient(rgba(23, 58, 42, 0.011) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 58, 42, 0.011) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-attachment: fixed;
}

.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(36px, 5vw, 64px) clamp(40px, 6vw, 72px);
  background-color: #ffffff;
}

.hero-media {
  background: transparent;
  isolation: auto;
  max-width: min(420px, 100%);
  justify-self: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 60px);
}

.hero-media img {
  object-position: center bottom;
  clip-path: none;
}

.hero-copy .eyebrow {
  display: inline-block;
  margin-bottom: clamp(12px, 1.5vw, 18px);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.72;
}

.hero-copy h1 {
  font-size: clamp(1.75rem, 4.4vw, 4.2rem);
  margin-bottom: clamp(16px, 2.2vw, 24px);
  max-width: 15ch;
  color: var(--ink);
  line-height: 1.04;
}

.hero-copy p {
  max-width: 52ch;
  color: #2d3932;
}

.cta {
  margin-top: clamp(24px, 3vw, 36px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding-inline: 24px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f0f6f1;
  background: #173a2a;
  transition: background 140ms ease;
}

.cta:hover,
.cta:focus-visible {
  background: #1e4a33;
}

.stats {
  background-color: #fff;
}

.stats h2 {
  max-width: 22ch;
  font-size: var(--h2-size);
}

.stats-grid {
  margin-top: clamp(30px, 4.2vw, 54px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.stats-grid article {
  padding: clamp(26px, 2.8vw, 36px) clamp(16px, 1.8vw, 24px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats-grid h3 {
  font-size: clamp(2rem, 3.7vw, 3.35rem);
  line-height: 0.95;
  margin-bottom: 11px;
  color: var(--surface-green);
  padding-bottom: 14px;
  border-bottom: 3px solid #a8c4b0;
  display: inline-block;
}

.stats-grid p {
  color: #5b6b61;
  font-size: clamp(0.94rem, 1.25vw, 1.06rem);
  max-width: 18ch;
}

.feature {
  position: relative;
  overflow: clip;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 4.5vw, 70px);
}

.feature-grid.reverse {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.feature-copy {
  max-width: 56ch;
}

.feature-copy .eyebrow {
  margin-bottom: 14px;
  color: #c7d6cb;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-copy h2 {
  font-size: var(--h2-size);
  margin-bottom: clamp(14px, 2vw, 20px);
}

.feature-copy p {
  max-width: 50ch;
}

.feature-media {
  justify-self: center;
  max-width: min(540px, 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-media img {
  width: 100%;
  object-fit: contain;
  object-position: center;
}

.feature-green .feature-media {
  overflow: hidden;
}

.feature-green .feature-media img {
  clip-path: inset(clamp(28px, 2.4vw, 42px) 0 0 0);
}

.feature-dark {
  color: #f2f7f3;
  background: var(--surface-green);
  padding-bottom: clamp(36px, 5vw, 64px);
}

.feature-dark .feature-media {
  border-radius: 6px;
}

.feature-dark p {
  color: #d5e1d7;
}

.feature-green {
  color: #f2f7f3;
  background: var(--surface-green);
  padding-top: clamp(36px, 5vw, 64px);
}

.feature-green p {
  color: #d5e1d7;
}

.audience,
.manifesto,
.site-footer {
  background-image:
    linear-gradient(rgba(23, 58, 42, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 58, 42, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(23, 58, 42, 0.007) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 58, 42, 0.007) 1px, transparent 1px);
}

.audience {
  background-color: #ffffff;
}

.audience h2 {
  text-align: center;
  font-size: var(--h2-size);
  margin-bottom: clamp(26px, 3.2vw, 40px);
}

.accordion {
  border-top: 1px solid #d6dfd8;
}

.accordion-item {
  border-bottom: 1px solid #d6dfd8;
}

.accordion-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  padding: clamp(18px, 2.4vw, 24px) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.04rem, 1.6vw, 1.3rem);
  letter-spacing: -0.005em;
  cursor: pointer;
}

.accordion-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}


.accordion-panel {
  padding: 0 0 clamp(18px, 2.4vw, 24px);
}

.accordion-panel p {
  max-width: 68ch;
  font-size: clamp(0.95rem, 1.2vw, 1.04rem);
}

.manifesto {
  position: relative;
  background-color: #fff;
}

.manifesto h3 {
  font-size: var(--h3-size);
}

.manifesto hr {
  border: 0;
  border-top: 1px solid #d9e0db;
  margin: clamp(18px, 2.3vw, 24px) 0 clamp(24px, 3.1vw, 34px);
}

.manifesto p {
  color: #56675d;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.8;
}

.manifesto p + p {
  margin-top: 1.15em;
}

.manifesto em {
  font-style: italic;
}


/* ── Accordion smooth expand ── */
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms ease;
  overflow: hidden;
  padding: 0;
}

.accordion-panel > * {
  overflow: hidden;
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-item.is-open .accordion-panel > * {
  padding-bottom: clamp(18px, 2.4vw, 24px);
}

/* ── Accordion chevron icon ── */
.accordion-chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: transform 260ms ease;
  color: #173a2a;
}

.accordion-item.is-open .accordion-chevron {
  transform: rotate(180deg);
}

.site-footer {
  padding: 24px 0 32px;
  border-top: 1px solid #d9e0db;
  background-color: #fff;
}

.site-footer small {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #607267;
}

@media (max-width: 1024px) {
  :root {
    --page-max: 1040px;
  }

  .hero-copy {
    max-width: 64ch;
  }

  .feature-copy,
  .feature-media {
    max-width: none;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: clamp(16px, 5.7vw, 28px);
    --section-space: clamp(40px, 10vw, 62px);
    --header-height: 76px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .hero {
    padding-top: clamp(48px, 12vw, 72px);
  }

  .site-footer {
    padding-bottom: 26px;
  }
}

@media (max-width: 640px) {
  .hero-grid,
  .feature-grid,
  .feature-grid.reverse {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: -1;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid article + article {
    border-left: 0;
    border-top: 1px solid #dde5df;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
