:root {
  --ink: #111713;
  --muted: #59635d;
  --soft: #f7f9f5;
  --paper: #fffef9;
  --line: rgba(30, 48, 36, 0.12);
  --green: #4f8a62;
  --green-deep: #1f4c35;
  --green-soft: #dbeee0;
  --silver: #eef2ec;
  --shadow: 0 28px 80px rgba(26, 45, 32, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(219, 238, 224, 0.8), transparent 28rem),
    linear-gradient(180deg, var(--paper) 0%, var(--soft) 55%, #ffffff 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(17, 23, 19, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 23, 19, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 65%);
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(79, 138, 98, 0.35);
  outline-offset: 4px;
}

.page-shell {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  margin-top: 16px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 249, 0.76);
  backdrop-filter: blur(18px);
}

.brand-mark,
.nav-links,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

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

.mark-dot {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(31, 76, 53, 0.22);
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 47%, rgba(255, 255, 255, 0.9) 48% 52%, transparent 53%),
    radial-gradient(circle at 38% 35%, #fafff7 0 18%, #8fc79d 19% 43%, #2f6a47 44% 100%);
  box-shadow: 0 0 0 5px rgba(79, 138, 98, 0.08);
}

.nav-links {
  gap: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(79, 138, 98, 0.09);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  min-height: calc(100vh - 96px);
  gap: clamp(36px, 6vw, 84px);
  padding: 78px 0 92px;
}

#top,
.about-section,
.services-section,
.cta-section {
  scroll-margin-top: 104px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--green-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 840px;
  margin-bottom: 24px;
  font-size: clamp(4rem, 9vw, 8.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h1,
h2 {
  font-weight: 650;
}

h1::after {
  content: "";
  display: block;
  width: clamp(82px, 12vw, 146px);
  height: 2px;
  margin-top: 32px;
  background: linear-gradient(90deg, var(--green), rgba(79, 138, 98, 0));
}

.hero-subheading {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 650;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fbfff9;
  background: var(--green-deep);
  box-shadow: 0 16px 30px rgba(31, 76, 53, 0.18);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.86), rgba(244, 249, 241, 0.66)),
    var(--silver);
  box-shadow: var(--shadow);
}

#reliefCanvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
}

.signal-panel {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(31, 76, 53, 0.12);
  border-radius: 8px;
  background: rgba(31, 76, 53, 0.11);
  box-shadow: 0 16px 50px rgba(20, 40, 28, 0.08);
}

.signal-panel div {
  padding: 16px;
  background: rgba(255, 254, 249, 0.82);
  backdrop-filter: blur(16px);
}

.signal-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.75rem;
}

.signal-panel strong {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.about-section,
.services-section,
.cta-section {
  padding: clamp(78px, 11vw, 138px) 0;
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: clamp(30px, 8vw, 110px);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5vw, 5.1rem);
  line-height: 1;
  letter-spacing: 0;
}

.about-copy {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.8;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.services-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.services-heading h2 {
  max-width: 730px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.service-card {
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 138, 98, 0.28);
  background: rgba(255, 255, 255, 0.92);
}

.service-number {
  display: inline-flex;
  margin-bottom: 68px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  font-style: italic;
}

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

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.cta-section {
  display: grid;
  place-items: center;
  min-height: 460px;
  text-align: center;
}

.cta-section h2 {
  max-width: 840px;
  margin-bottom: 32px;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 46px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .brand-mark {
  color: var(--ink);
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-section,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 68px;
  }

  .hero-visual {
    min-height: 480px;
  }

  #reliefCanvas {
    min-height: 480px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    top: 10px;
    padding: 0 12px;
  }

  .nav-links {
    gap: 0;
    font-size: 0.8rem;
  }

  .nav-links a {
    padding: 9px 8px;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 4.8rem);
  }

  .hero-section {
    gap: 34px;
    padding-top: 82px;
    padding-bottom: 72px;
  }

  .hero-visual {
    min-height: 390px;
  }

  #reliefCanvas {
    min-height: 390px;
  }

  .signal-panel {
    grid-template-columns: 1fr;
  }

  .signal-panel div {
    padding: 12px 14px;
  }

  .services-heading {
    display: block;
  }

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

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

  .service-number {
    margin-bottom: 42px;
  }

  .site-footer {
    align-items: flex-start;
    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;
  }
}
