:root {
  color-scheme: light;
  --ink: #20211f;
  --muted: #555850;
  --line: #dcded9;
  --accent: #82997a;
  --paper: #ffffff;
  --gutter: clamp(1.25rem, 3vw, 3.25rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.page-shell {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.site-header {
  min-height: 84px;
}

.wordmark {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .31em;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: clamp(1.2rem, 4vw, 4.5rem);
  color: #31332f;
  font-size: .95rem;
}

.site-nav a,
.site-footer a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  min-height: min(70vw, 600px);
  padding: clamp(3.25rem, 8vw, 7.7rem) 0 clamp(2.75rem, 6vw, 5.5rem);
}

.hero-copy {
  max-width: 31rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.65rem, 4.25vw, 5rem);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .98;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero p {
  max-width: 26rem;
  margin: clamp(2rem, 4vw, 3.65rem) 0 0;
  color: #3f423c;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.55;
}

.accent-line {
  display: block;
  width: 4.5rem;
  height: 2px;
  margin-top: clamp(2.4rem, 5vw, 5rem);
  background: var(--accent);
}

.hero-media {
  margin: 0;
  overflow: hidden;
  background: #eeece6;
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1.35rem;
  min-height: 10.9rem;
  padding: 2.35rem clamp(1.2rem, 3vw, 2.65rem) 2.2rem 1.25rem;
}

.service + .service {
  border-left: 1px solid var(--line);
}

.service-number {
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1.1;
}

.service h2,
.approach h2 {
  margin: 0;
  font-size: clamp(1.12rem, 1.45vw, 1.38rem);
  font-weight: 450;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.service p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.5;
}

.approach {
  padding: clamp(4rem, 8vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6.25rem);
  text-align: center;
}

.approach-heading {
  display: grid;
  justify-items: center;
}

.approach h2 {
  font-size: clamp(1.6rem, 2.35vw, 2.45rem);
  font-weight: 400;
}

.approach .accent-line {
  margin-top: 1.4rem;
  width: 3.7rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: clamp(3.5rem, 7vw, 6rem) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  padding: 0 clamp(.6rem, 2vw, 2.2rem);
  color: #363833;
  font-size: clamp(.9rem, 1.25vw, 1.12rem);
}

.steps li::before {
  counter-increment: steps;
  content: counter(steps) ". ";
}

.steps li + li::after {
  position: absolute;
  top: .05em;
  left: 0;
  width: 1px;
  height: 1.1em;
  background: var(--line);
  content: "";
}

.site-footer {
  min-height: 84px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: #4e504b;
  font-size: .95rem;
}

@media (max-width: 820px) {
  .site-header {
    min-height: 72px;
  }

  .site-nav {
    gap: 1rem;
    font-size: .83rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: 0;
    padding-top: 3.5rem;
  }

  .hero h1 {
    max-width: 9em;
  }

  .hero h1 span:last-child {
    white-space: normal;
  }

  .hero p {
    margin-top: 1.8rem;
  }

  .hero-copy .accent-line {
    margin-top: 2.3rem;
  }

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

  .service {
    min-height: 0;
    padding: 2rem 0;
  }

  .service + .service {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    margin-top: 3rem;
    text-align: left;
  }

  .steps li {
    padding: 0 0 0 1.25rem;
  }

  .steps li + li::after {
    top: -.7rem;
    left: .35rem;
    width: 1px;
    height: .55rem;
  }
}

@media (max-width: 480px) {
  .wordmark {
    font-size: 1.1rem;
  }

  .site-nav a:first-child {
    display: none;
  }

  .site-footer {
    min-height: 70px;
  }
}

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

  .site-nav a,
  .site-footer a {
    transition: none;
  }
}
