:root {
  color-scheme: light;
  --paper: #f8f6ef;
  --white: #fffdf8;
  --green: #183f33;
  --ink: #1b2b22;
  --muted: #4e5c50;
  --line: #d7dcd0;
  --sage: #e9eee4;
  --gold: #f2d88e;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.62 var(--sans); }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
a { color: inherit; text-underline-offset: 0.25em; }
a:focus-visible { outline: 2px solid #84620f; outline-offset: 5px; }
main:focus { outline: none; }
[id] { scroll-margin-top: 1.5rem; }
.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: fixed; z-index: 2; left: 1rem; top: 1rem; background: var(--white); color: var(--green); padding: .65rem 1rem; transform: translateY(-175%); }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 76px; }
.brand { font-family: var(--serif); font-size: 2rem; line-height: 1.1; text-decoration: none; }
.header-inner nav { display: flex; gap: clamp(1.1rem, 4vw, 2.5rem); align-items: center; font-size: .875rem; font-weight: 700; }
.header-inner nav a { text-decoration: none; }
.header-inner nav a:hover, .work-index a:hover { text-decoration: underline; }

.hero { display: grid; grid-template-columns: 1.22fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6.25rem); }
.eyebrow { font-size: .76rem; line-height: 1.45; font-weight: 700; letter-spacing: .095em; text-transform: uppercase; color: var(--green); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(3.25rem, 7.4vw, 6.4rem); line-height: .93; letter-spacing: -.026em; margin-block: 1rem 1.45rem; color: var(--green); }
h1 em { font-weight: inherit; }
.hero-description { max-width: 35ch; font-size: clamp(1rem, 2vw, 1.19rem); color: var(--muted); }
.button { display: inline-flex; gap: 1.4rem; align-items: center; margin-top: 1.65rem; padding: .7rem 1rem; background: var(--green); color: white; font-size: .9rem; font-weight: 700; border-radius: .25rem; text-decoration: none; }
.button:hover { background: #275447; }
.hero-card { color: white; background: var(--green); border-radius: .4rem; padding: clamp(1.45rem, 3.4vw, 2.5rem); box-shadow: .65rem .65rem 0 var(--sage); }
.hero-card .eyebrow { color: var(--gold); }
.hero-card h2 { font-size: clamp(2rem, 4.15vw, 3.5rem); line-height: 1.03; margin-block: .9rem 1.4rem; }
.hero-card .text-link { color: var(--gold); }
.hero-card a:focus-visible { outline-color: var(--gold); }
.hero-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.3rem; padding-block: .85rem; border-block: 1px solid #6f9386; }
.hero-metrics div, .metrics div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.hero-metrics dt, .metrics dt { font-size: .85rem; line-height: 1.4; }
.hero-metrics dd, .metrics dd { font-family: var(--serif); font-size: clamp(2.15rem, 4vw, 3rem); line-height: 1; margin-bottom: .28rem; }
.text-link { font-size: .875rem; font-weight: 700; }

.work { background: var(--white); border-block: 1px solid var(--line); }
.work-index { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 2.3rem 1.25rem; }
.work-index h2 { font-size: 2.45rem; line-height: 1; }
.work-index nav { display: flex; flex-wrap: wrap; gap: .4rem 1.15rem; font-size: .85rem; font-weight: 700; color: var(--green); }
.work-index a { text-decoration: none; }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr); align-items: start; gap: 1.5rem clamp(2rem, 5vw, 4.2rem); border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4.65rem); }
.case h3 { font-size: clamp(2.5rem, 4.55vw, 4.2rem); line-height: .99; letter-spacing: -.018em; margin-block: .65rem 1.05rem; }
.case-intro > p + p { margin-top: 0.8rem; }
.case-intro > p:not(.eyebrow) { max-width: 60ch; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; padding-top: 1.45rem; color: var(--green); }
.metrics div { border-top: 1px solid var(--line); padding-top: .65rem; }
.sheet { border: 1px solid var(--line); border-radius: .4rem; background: var(--paper); overflow: hidden; }
.sheet h4 { font-size: 1.02rem; background: var(--sage); color: var(--green); padding: .85rem 1.15rem; }
.steps { padding-inline: 1.15rem; }
.steps div { display: grid; grid-template-columns: minmax(6.6rem, .72fr) minmax(0, 1.75fr); gap: .6rem 1rem; padding-block: .75rem; }
.steps div + div { border-top: 1px solid var(--line); }
.steps dt { font-size: .87rem; font-weight: 700; color: var(--green); }
.steps dd { font-size: .92rem; line-height: 1.48; }
.deliverable { font-size: .94rem; padding: .85rem 1.05rem; border-left: .22rem solid #b29b58; background: var(--sage); }
.deliverable strong { color: var(--green); margin-right: .25rem; }
.outreach-sheet .deliverable { margin: .3rem 1.15rem 1.15rem; }
.figure-note { font-size: .84rem; color: var(--muted); line-height: 1.45; }
.delivery-sheet .figure-note, .research-sheet .figure-note { padding: .45rem 1.15rem 1rem; }
.research-sheet h4 + .figure-note { padding-top: .95rem; padding-bottom: 0; }
.chart { padding: 1rem 1.15rem; font-size: .9rem; }
.chart div + div { margin-top: .8rem; }
.chart dd { display: grid; grid-template-columns: minmax(0, 1fr) 6.25em; gap: .6rem; align-items: center; margin-top: .24rem; }
.track { height: .65rem; border-radius: 1rem; background: #dde4d7; overflow: hidden; }
.track span { display: block; width: var(--value); height: 100%; background: var(--green); }
.chart div:nth-child(2) .track span { background: #9c6517; }
.chart strong { text-align: right; white-space: nowrap; }
.chart small { color: var(--muted); }
.slide-pair { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.slide-pair figure { min-width: 0; }
.slide-pair img { border: 1px solid var(--line); border-radius: .38rem; }
.slide-pair figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .1rem .8rem; padding-top: .43rem; font-size: .88rem; font-weight: 700; color: var(--green); }
.social-proof { padding: .65rem 1.15rem 1.15rem; }
.social-proof img { border-radius: .3rem; }
.social-proof figcaption { padding-top: .4rem; }
.site-footer { background: var(--green); color: white; }
.footer-inner { padding-block: 2.15rem; }
.footer-inner div p + p { color: #d3e0d6; font-size: .85rem; margin-top: .3rem; }
.footer-inner .text-link { color: var(--gold); }
.footer-inner a:focus-visible { outline-color: var(--gold); }

@media (max-width: 760px) {
  .hero, .case { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 2.2rem; }
  .hero-card { box-shadow: .35rem .35rem 0 var(--sage); }
  .work-index { flex-direction: column; }
  .metrics { max-width: 29rem; }
}

@media (max-width: 440px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 60px; }
  .header-inner nav { gap: .8rem; font-size: .77rem; }
  .brand { font-size: 1.7rem; }
  h1 { font-size: clamp(2.95rem, 12.3vw, 4.4rem); }
  .steps div { grid-template-columns: minmax(0, 1fr); gap: .16rem; }
  .slide-pair { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { flex-wrap: wrap; }
}
