:root {
  color-scheme: light;
  --ink: #121716;
  --muted: #5f6964;
  --line: #dfe5e0;
  --paper: #f8faf7;
  --white: #ffffff;
  --sage: #7f9b87;
  --field: #dce9db;
  --cyan: #2eb8c7;
  --shadow: 0 24px 70px rgba(31, 45, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 14px 16px;
  color: var(--ink);
  background: rgba(248, 250, 247, 0.76);
  border: 1px solid rgba(223, 229, 224, 0.8);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(18, 23, 22, 0.08);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(204, 213, 207, 0.95);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(18, 23, 22, 0.75);
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 46%, var(--cyan) 48% 52%, transparent 54%),
    radial-gradient(circle at 68% 34%, var(--sage) 0 4px, transparent 5px),
    var(--field);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(220, 233, 219, 0.62);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  transition: transform 160ms ease;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  padding: 132px 20px 72px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(248, 250, 247, 0.96) 0%, rgba(248, 250, 247, 0.88) 36%, rgba(248, 250, 247, 0.4) 68%, rgba(248, 250, 247, 0.16) 100%),
    linear-gradient(180deg, rgba(248, 250, 247, 0.12) 0%, rgba(248, 250, 247, 0.92) 100%);
}

.hero-content {
  align-self: center;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-bottom: 46px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: #587260;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 5.4rem;
  line-height: 0.96;
  font-weight: 700;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 34px;
  color: #303c37;
  font-size: 1.25rem;
  line-height: 1.62;
}

.hero-actions,
.contact-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 14px 32px rgba(18, 23, 22, 0.16);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #26312d;
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(18, 23, 22, 0.14);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(18, 23, 22, 0.32);
  background: rgba(255, 255, 255, 0.92);
}

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

.intro,
.services,
.process,
.contact {
  padding: 96px 0;
}

.intro {
  background: var(--paper);
  border-top: 1px solid rgba(18, 23, 22, 0.08);
}

.intro-grid,
.process-layout,
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: 64px;
  align-items: start;
}

.intro h2,
.section-heading h2,
.contact h2 {
  max-width: 670px;
  margin-bottom: 0;
  font-size: 2.7rem;
  line-height: 1.08;
}

.intro-grid > p {
  margin: 38px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.services {
  background: var(--white);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  box-shadow: 0 1px 0 rgba(18, 23, 22, 0.04);
}

.service-card span,
.process-list span {
  display: inline-block;
  margin-bottom: 34px;
  color: #6e8878;
  font-size: 0.82rem;
  font-weight: 700;
}

.service-card h3 {
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.service-card p,
.process-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.process {
  background: #edf3ed;
}

.process-list {
  display: grid;
  gap: 0;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(18, 23, 22, 0.14);
}

.process-list li {
  padding: 28px 0;
  border-bottom: 1px solid rgba(18, 23, 22, 0.14);
}

.process-list span {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1rem;
}

.contact {
  background: var(--ink);
  color: var(--white);
}

.contact .section-kicker {
  color: #a8c5b0;
}

.contact h2 {
  color: var(--white);
}

.contact-panel {
  align-items: center;
}

.contact-panel .button {
  justify-self: end;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--ink);
  background: var(--white);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px max(20px, calc((100vw - 1180px) / 2));
  color: #d9e2dc;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

@media (max-width: 860px) {
  .site-header {
    width: calc(100% - 28px);
    margin-top: 14px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .nav-open .nav-toggle span:nth-of-type(2) {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-of-type(3) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 74px;
    right: 14px;
    left: 14px;
    display: grid;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    justify-content: flex-start;
    min-height: 44px;
    padding: 0 12px;
  }

  .hero {
    min-height: 88vh;
    padding-top: 126px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(248, 250, 247, 0.96) 0%, rgba(248, 250, 247, 0.82) 55%, rgba(248, 250, 247, 0.68) 100%),
      linear-gradient(90deg, rgba(248, 250, 247, 0.9) 0%, rgba(248, 250, 247, 0.3) 100%);
  }

  h1 {
    font-size: 4rem;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .intro,
  .services,
  .process,
  .contact {
    padding: 72px 0;
  }

  .intro-grid,
  .process-layout,
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .intro-grid > p {
    margin-top: 0;
  }

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

  .service-card {
    min-height: 220px;
  }

  .contact-panel .button {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 10px;
  }

  .brand {
    font-size: 0.9rem;
  }

  .hero {
    min-height: 86vh;
    padding: 112px 16px 54px;
  }

  h1 {
    max-width: 340px;
    font-size: 3.12rem;
  }

  .intro h2,
  .section-heading h2,
  .contact h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .contact-panel {
    align-items: stretch;
  }

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

  .section-inner {
    width: calc(100% - 32px);
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
