:root {
  --green: #3a493f;
  --green-soft: #4d5f52;
  --ink: #111411;
  --muted: #5f635d;
  --page: #fbfbf9;
  --card: #ffffff;
  --cream: #f5f3ec;
  --sand: #e8e2d9;
  --sage: #e5eae0;
  --line: #e2e1da;
  --tone-green: #dde6dd;
  --tone-sand: #e6e0d0;
  --tone-rose: #e8d8ce;
  --tone-blue: #dce1e8;
  --pad: clamp(20px, 4vw, 40px);
  --radius: 22px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

svg {
  width: 1.5em;
  height: 1.5em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
}
.skip:focus { top: 16px; }

/* Page card */
.page {
  max-width: 1120px;
  margin: clamp(0px, 3vw, 40px) auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.page > :first-child { border-radius: var(--radius) var(--radius) 0 0; }
.page > :last-child { border-radius: 0 0 var(--radius) var(--radius); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--pad);
  background: var(--cream);
}
.brand {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav { position: relative; display: flex; align-items: center; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; color: var(--muted); }
.nav-links li + li::before { content: "·"; margin: 0 0.45em; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.nav-toggle {
  display: none;
  padding: 8px;
  margin-right: -8px;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}

/* Shared type */
.eyebrow {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
h1, h2 { color: var(--green); letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); line-height: 1.15; margin-top: 22px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; margin-top: 14px; }
h3 { font-size: 1.3rem; line-height: 1.3; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
  padding: var(--pad);
  background: var(--sand);
}
.hero-text { padding-top: 6px; }
.role { margin-top: 22px; font-size: 1.2rem; }
.lead { margin-top: 20px; font-size: 1.2rem; max-width: 30em; }
.hero-image { width: 100%; border-radius: 26px; }

.button {
  display: block;
  margin-top: 26px;
  padding: 15px 24px;
  background: var(--green-soft);
  color: #fff;
  font-size: 1.15rem;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.15s;
}
.button:hover { background: var(--green); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 28px var(--pad);
  background: var(--cream);
}
.stats div { display: flex; flex-direction: column-reverse; gap: 12px; }
.stats dd { color: var(--green-soft); font-size: 2rem; font-weight: 600; line-height: 1.1; }
.stats dt { color: var(--muted); font-size: 1rem; }

/* Sections */
.section { padding: calc(var(--pad) + 4px) var(--pad); }
.section-sage { background: var(--sage); }

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
  margin-top: 26px;
}
.about img { width: 100%; border: 1px solid var(--line); border-radius: 26px; }
.about-text { font-size: 1.2rem; }
.about-text p + p { margin-top: 0.9em; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 26px;
}
.pillars svg { width: 34px; height: 34px; color: var(--green-soft); }
.pillars h3 { margin-top: 16px; text-wrap: balance; }
.pillars p { margin-top: 8px; color: var(--muted); font-size: 1rem; max-width: 18em; }

.text-block { margin-top: 22px; max-width: 44em; font-size: 1.2rem; }
.text-block p + p { margin-top: 0.9em; }

.projects { display: grid; gap: 16px; margin-top: 26px; }
.projects li { padding: 22px 24px; border-radius: 14px; }
.projects p { margin-top: 8px; }
.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
.project-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: -4px -6px 0 0;
  padding: 0;
  color: var(--green);
  background: rgb(255 255 255 / 0.55);
  border: 0;
  border-radius: 20px;
  cursor: pointer;
}
.project-toggle svg { width: 22px; height: 22px; transition: transform 0.2s; }
.projects > li.is-open .project-toggle svg { transform: rotate(180deg); }
.project-head:hover .project-toggle { background: rgb(255 255 255 / 0.85); }

.subcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.subcards[hidden] { display: none; }
.subcards > li {
  padding: 18px 20px;
  background: rgb(255 255 255 / 0.7);
  border-radius: 12px;
}
.subcards img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 12px;
  border-radius: 8px;
}
.subcards h4 { font-size: 1.1rem; line-height: 1.3; }
.subcards p { margin-top: 6px; color: var(--muted); font-size: 1rem; }

.tone-green { background: var(--tone-green); }
.tone-sand { background: var(--tone-sand); }
.tone-rose { background: var(--tone-rose); }
.tone-blue { background: var(--tone-blue); }

/* Footer */
.site-footer {
  padding: calc(var(--pad) + 4px) var(--pad) var(--pad);
  background: var(--green);
  color: #fff;
}
.site-footer .eyebrow { color: #b9c2ba; }
.site-footer h2 { color: #fff; }
.footer-topics { margin-top: 18px; color: #dfe4df; }
.footer-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid rgb(255 255 255 / 0.3);
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Small screens */
@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .page { margin: 0; border: 0; border-radius: 0; }
  .page > :first-child,
  .page > :last-child { border-radius: 0; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    flex-direction: column;
    min-width: 200px;
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgb(30 40 30 / 0.12);
    color: var(--ink);
  }
  .nav-links.open { display: flex; }
  .nav-links li + li::before { content: none; }
  .nav-links a { display: block; padding: 12px 14px; border-radius: 8px; }
  .nav-links a:hover { background: var(--cream); text-decoration: none; }

  .hero, .about { grid-template-columns: 1fr; }
  .hero-image { max-height: 70vh; object-fit: cover; }
  .pillars { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 20px; }
  .footer-links { flex-wrap: wrap; }
}

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