:root {
  --paper: #fbfaf6;
  --paper-deep: #f1eee6;
  --ink: #222522;
  --muted: #686d66;
  --line: #ded9cc;
  --sage: #527869;
  --sage-dark: #315347;
  --blue: #5e7386;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: Newsreader, Georgia, serif;
  font-size: 22px;
  line-height: 1;
}

.nav {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100svh - 118px);
  margin: 0 auto;
  padding: 46px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
  align-items: center;
  gap: 70px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(46px, 6.2vw, 82px);
  line-height: 0.94;
}

h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.2;
}

.lead {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

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

.button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: var(--white);
}

.button.secondary {
  background: transparent;
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.hero-visual img {
  width: 100%;
  height: 620px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(34, 37, 34, 0.14);
}

.note-card {
  position: absolute;
  left: -34px;
  bottom: 44px;
  width: min(280px, 74%);
  padding: 20px;
  border: 1px solid rgba(222, 217, 204, 0.86);
  border-radius: 8px;
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 46px rgba(34, 37, 34, 0.12);
}

.note-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.note-card strong {
  display: block;
  font-family: Newsreader, Georgia, serif;
  font-size: 23px;
  line-height: 1.1;
}

.intro-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.intro-band p {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  color: var(--sage-dark);
  font-size: 18px;
  font-weight: 700;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 70px;
  border-bottom: 1px solid var(--line);
}

.split > p {
  margin: 38px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 40px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-grid article {
  min-height: 260px;
  padding: 28px;
  background: var(--paper);
}

.service-grid span {
  display: block;
  margin-bottom: 54px;
  color: var(--sage);
  font-weight: 800;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 34px;
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
}

.contact .eyebrow {
  color: #b9cfc5;
}

.contact h2 {
  max-width: 720px;
}

.contact .button.primary {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
  white-space: nowrap;
}

.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 46px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

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

  .nav {
    gap: 14px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding: 28px 0 36px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 64px);
    line-height: 0.98;
  }

  .lead {
    font-size: 17px;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-visual img {
    height: min(86vw, 520px);
  }

  .note-card {
    left: 18px;
    bottom: 18px;
  }

  .split,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .contact {
    padding: 34px 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .intro-band p,
  .section,
  .contact,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    align-items: flex-start;
    padding: 16px 0;
    flex-direction: column;
    gap: 14px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .service-grid article {
    min-height: 220px;
  }
}
