:root {
  --bg: #f7f4ee;
  --paper: #ffffff;
  --ink: #17201c;
  --muted: #637068;
  --line: #d9dfd9;
  --accent: #215f4b;
  --accent-soft: #dfece5;
  --warm: #efe8da;
  --max: 1240px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

section[id] { scroll-margin-top: 24px; }

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

a { color: inherit; }

.site-header {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.brand-mark {
  font-family: "Libre Franklin", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.35rem;
}

.brand-name {
  color: var(--muted);
  font-size: 0.93rem;
}

nav {
  display: flex;
  gap: 24px;
  font-size: 0.92rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
}

nav a:hover { color: var(--accent); }

.hero {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 92px;
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 14px;
}

h1, h2, h3 {
  font-family: "Libre Franklin", sans-serif;
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(3.2rem, 6vw, 6.4rem);
  margin-bottom: 32px;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 4rem);
  margin-bottom: 22px;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.25;
}

.hero-copy p {
  max-width: 760px;
  font-size: 1.02rem;
}

.hero-image-wrap {
  min-height: 720px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--warm);
  box-shadow: 0 24px 70px rgba(23, 32, 28, 0.12);
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 720px;
  object-fit: cover;
  display: block;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  text-decoration: none;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}

.button.primary {
  background: var(--accent);
  color: white;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.5);
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  border-top: 1px solid var(--line);
}

.section-copy {
  font-size: 1.08rem;
}

.metric-band {
  background: var(--accent);
  color: white;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.metric {
  padding: 42px 34px;
  border-right: 1px solid rgba(255,255,255,0.16);
}

.metric:last-child { border-right: 0; }

.metric-number {
  display: block;
  font-family: "Libre Franklin", sans-serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}

.metric-label {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
}

.research-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 70px;
}

.research-intro p {
  color: var(--muted);
}

.research-cards {
  display: grid;
  gap: 22px;
}

.research-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
}

.paper-year {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.journal {
  color: var(--muted);
  font-size: 0.92rem;
}

.research-card a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.future-section {
  background: var(--warm);
  width: 100%;
  max-width: none;
  padding-left: max(24px, calc((100% - var(--max)) / 2));
  padding-right: max(24px, calc((100% - var(--max)) / 2));
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
}

.future-card {
  background: var(--paper);
  border-radius: 24px;
  padding: 30px;
  align-self: start;
}

.card-kicker {
  text-transform: uppercase;
  letter-spacing: .11em;
  font-weight: 700;
  font-size: .74rem;
  color: var(--accent);
}

.contact-section {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  border-top: 1px solid var(--line);
}

.contact-card {
  background: var(--paper);
  padding: 30px;
  border-radius: 24px;
  border: 1px solid var(--line);
  align-self: start;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.86rem;
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  transition: border-color .15s ease, background-color .15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-form .button {
  justify-self: start;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.contact-form .button:disabled {
  opacity: .6;
  cursor: progress;
}

.form-status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.form-status:empty { display: none; }
.form-status.is-success { color: var(--accent); font-weight: 600; }
.form-status.is-error { color: #8b3f2f; font-weight: 600; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--accent);
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 10;
}

.skip-link:focus { top: 16px; }

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.button.primary:hover { background: #1a4d3d; }
.button.secondary:hover { border-color: var(--accent); }
.research-card a:hover { text-decoration: underline; }

.small {
  color: var(--muted);
  font-size: .9rem;
}

footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    padding: 22px 0;
  }

  .site-header {
    flex-direction: column;
    gap: 12px;
  }

  .brand-name { display: none; }
  nav {
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .hero,
  .split-section,
  .research-section,
  .future-section,
  .contact-section {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-image-wrap,
  .hero-image {
    min-height: 520px;
  }

  .metric-band {
    grid-template-columns: 1fr 1fr;
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .section,
  footer {
    width: min(100% - 30px, var(--max));
  }

  h1 {
    font-size: 3.05rem;
  }

  .metric-band {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.16);
  }

  .metric:last-child { border-bottom: 0; }
}
