:root {
  --ground: #FDFBF3;
  --ink: #1F1D1A;
  --ink-soft: #3A372F;
  --ink-muted: #57544C;
  --label: #8A8579;
  --rule: #E3DFD6;
  --clay: #8F4A2A;
  --clay-deep: #6F3820;
  --clay-wash: #F6EFE9;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rail: 148px;
  --gutter: 40px;
  --measure: 34em;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  font-optical-sizing: auto;
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 32px;
}

a { color: var(--clay); text-decoration: none; border-bottom: 1px solid rgba(143, 74, 42, 0.32); }
a:hover { color: var(--clay-deep); border-bottom-color: var(--clay-deep); }
a:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 2px; }

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
}

.masthead-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 26px 0 20px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.01em;
  color: var(--ink);
  border-bottom: none;
}
.wordmark:hover { color: var(--clay); }

.nav {
  display: flex;
  gap: 28px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.nav a {
  color: var(--ink-muted);
  border-bottom: none;
  padding-bottom: 2px;
}
.nav a:hover { color: var(--clay); }
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid var(--clay);
}

/* ---------- section rail ---------- */

.section {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  column-gap: var(--gutter);
  padding: 54px 0;
  border-top: 1px solid var(--rule);
}

.section:first-of-type { border-top: none; }

.section-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label);
  line-height: 1.5;
  padding-top: 10px;
}

.section-body { max-width: var(--measure); }
.section-body > *:first-child { margin-top: 0; }
.section-body > *:last-child { margin-bottom: 0; }

.section-body.wide { max-width: none; }

/* ---------- opening ---------- */

.opening {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  column-gap: var(--gutter);
  padding: 72px 0 60px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  line-height: 1.6;
  padding-top: 14px;
}

.opening-body { max-width: var(--measure); }

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 47px);
  line-height: 1.16;
  letter-spacing: -0.012em;
  margin: 0 0 32px;
  max-width: 15em;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.28;
  letter-spacing: -0.005em;
  margin: 0 0 20px;
}

h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.35;
  margin: 38px 0 14px;
}

p { margin: 0 0 22px; }

.lede { font-size: 21px; line-height: 1.6; }

.gap-term {
  font-weight: 500;
  color: var(--ink);
}

/* ---------- calls to action ---------- */

.cta {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  column-gap: var(--gutter);
  padding: 54px 0 68px;
  border-top: 1px solid var(--rule);
}

.cta-body { max-width: var(--measure); }
.cta-body p:last-of-type { margin-bottom: 28px; }

.cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.01em;
  background: var(--clay);
  color: var(--ground);
  padding: 13px 24px;
  border-radius: 2px;
  border-bottom: none;
  transition: background 140ms ease;
}
.button:hover { background: var(--clay-deep); color: var(--ground); }

.cta-alt {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-muted);
  border-bottom: none;
}
.cta-alt:hover { color: var(--clay); }

.cta-portrait {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  margin-bottom: 26px;
}

/* ---------- figures ---------- */

.figures {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  margin: 6px 0 30px;
}

.figure-value {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 62px);
  line-height: 1;
  color: var(--clay);
  letter-spacing: -0.02em;
}

.figure-label {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 10px;
  max-width: 11em;
  line-height: 1.45;
}

/* ---------- quotes ---------- */

.pull {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.4;
  color: var(--clay-deep);
  margin: 34px 0;
  padding-left: 22px;
  border-left: 2px solid var(--clay);
  max-width: 22em;
}

/* ---------- portrait ---------- */

.portrait {
  width: 100%;
  max-width: 320px;
  border-radius: 3px;
  display: block;
}

/* ---------- inline links ---------- */

.more {
  font-family: var(--sans);
  font-size: 14px;
  border-bottom: none;
  display: inline-block;
}
.more:hover { border-bottom: none; }

/* ---------- case studies ---------- */

.case { margin-bottom: 8px; }
.case + .case { margin-top: 52px; padding-top: 46px; border-top: 1px solid var(--rule); }

.case-note {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 12px;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
  padding: 34px 0 56px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer a { border-bottom: none; color: var(--ink-muted); }
.footer a:hover { color: var(--clay); }

/* ---------- motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 620ms ease, transform 620ms ease;
}
.reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 800px) {
  body { font-size: 18px; }
  .wrap { padding: 0 22px; }
  .opening, .section, .cta {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }
  .eyebrow, .section-label { padding-top: 0; }
  .opening { padding: 44px 0 40px; }
  .section { padding: 40px 0; }
  .cta { padding: 40px 0 52px; }
  h1 { margin-bottom: 24px; }
  .figures { gap: 34px; }
  .masthead-inner { padding: 20px 0 16px; }
  .nav { gap: 20px; font-size: 12.5px; }
}
