:root {
  --bg: #f5f4f0;
  --ink: #171717;
  --muted: #6e6d68;
  --line: #d9d7d0;
  --accent: #1f3f4a;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.mark {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}

.contact-link {
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

main { min-height: 70vh; }

.hero {
  padding: clamp(88px, 13vw, 184px) 0 clamp(96px, 12vw, 160px);
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 950px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 8.5vw, 112px);
  line-height: .94;
  letter-spacing: -.055em;
  font-weight: 400;
}

.intro {
  margin: 42px 0 0;
  max-width: 610px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}

.services {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) 2fr;
  gap: 40px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.service-row:first-child { border-top: 0; }

.service-row h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.service-row p {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.close {
  padding: clamp(96px, 12vw, 168px) 0;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 64px;
  align-items: end;
}

.close h2 {
  margin: 0;
  max-width: 650px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 78px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 400;
}

.close-copy {
  justify-self: end;
  max-width: 350px;
}

.close-copy p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.button {
  display: inline-block;
  padding: 14px 0 8px;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.error-page {
  min-height: calc(100vh - 92px - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 64px;
  align-items: end;
  padding: clamp(84px, 12vw, 160px) 0 clamp(72px, 10vw, 128px);
}

.error-code {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.error-page h1 {
  max-width: 820px;
  font-size: clamp(64px, 10vw, 132px);
}

.error-copy {
  align-self: end;
  max-width: 360px;
}

.error-copy p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  header { min-height: 76px; }
  .hero { padding-top: 78px; }
  h1 { font-size: clamp(52px, 17vw, 84px); }
  .service-row,
  .close,
  .error-page { grid-template-columns: 1fr; gap: 18px; }
  .service-row { padding: 28px 0; }
  .close-copy { justify-self: start; }
  .error-page { min-height: calc(100vh - 76px - 100px); align-content: center; }
  footer { flex-direction: column; }
}
