:root {
  --ink: #14201d;
  --muted: #5d6b67;
  --paper: #f7f9f6;
  --panel: #ffffff;
  --line: rgba(20, 32, 29, 0.12);
  --green: #3f7f5f;
  --mint: #d8f1df;
  --copper: #c77d4f;
  --blue: #316a9f;
  --shadow: 0 22px 70px rgba(20, 32, 29, 0.14);
  color-scheme: light;
}

* {
  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;
  line-height: 1.6;
}

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

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

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 18px clamp(18px, 4vw, 58px);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 180ms ease, box-shadow 180ms ease;
  z-index: 20;
}

.site-header.scrolled,
.site-header.solid {
  background: rgba(247, 249, 246, 0.92);
  box-shadow: 0 10px 30px rgba(20, 32, 29, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  align-items: center;
  background: var(--mint);
  border: 1px solid rgba(63, 127, 95, 0.28);
  border-radius: 8px;
  color: var(--green);
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

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

.site-nav a {
  border-radius: 999px;
  color: rgba(20, 32, 29, 0.84);
  font-weight: 700;
  padding: 9px 14px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(216, 241, 223, 0.8);
  color: var(--ink);
}

.nav-toggle {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: none;
  height: 42px;
  padding: 9px;
  width: 42px;
}

.nav-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 5px 0;
  width: 100%;
}

.hero {
  min-height: 92svh;
  overflow: hidden;
  position: relative;
}

.hero-media {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(247, 249, 246, 0.95) 0%, rgba(247, 249, 246, 0.78) 42%, rgba(20, 32, 29, 0.12) 100%);
  inset: 0;
  position: absolute;
}

.hero-content {
  max-width: 760px;
  padding: clamp(140px, 22vh, 230px) clamp(20px, 6vw, 90px) 120px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.6rem, 8vw, 5.9rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin-bottom: 24px;
  max-width: 900px;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-copy {
  color: #31403c;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 630px;
}

.hero-actions,
.cta-band {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  background: var(--ink);
  box-shadow: 0 16px 34px rgba(20, 32, 29, 0.22);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(20, 32, 29, 0.16);
}

.scroll-cue {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 32, 29, 0.16);
  border-radius: 999px;
  bottom: 34px;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  left: clamp(20px, 6vw, 90px);
  position: absolute;
  width: 46px;
  z-index: 1;
}

.scroll-cue span {
  border-bottom: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  height: 12px;
  transform: rotate(45deg) translateY(-2px);
  width: 12px;
}

.intro-band,
.services-preview,
.signal-panel,
.cta-band,
.page-hero,
.filter-shell,
.about-layout,
.contact-layout {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(58px, 8vw, 110px) 20px;
}

.section-grid {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: 1.1fr 0.9fr;
}

.section-grid p:last-child,
.page-hero p,
.signal-copy p,
.about-panel p,
.contact-card p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  margin-bottom: 30px;
  max-width: 700px;
}

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

.service-card,
.detail-card,
.principles article,
.contact-form,
.contact-card,
.about-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 46px rgba(20, 32, 29, 0.07);
}

.service-card {
  min-height: 240px;
  padding: 28px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.service-card:focus {
  border-color: rgba(63, 127, 95, 0.42);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-6px);
}

.service-card p,
.detail-card p,
.principles p {
  color: var(--muted);
}

.service-icon {
  align-items: center;
  background: var(--mint);
  border-radius: 8px;
  color: var(--green);
  display: inline-flex;
  font-size: 1.4rem;
  height: 46px;
  justify-content: center;
  margin-bottom: 42px;
  width: 46px;
}

.signal-panel {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.signal-copy {
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  padding: clamp(30px, 5vw, 56px);
}

.signal-copy .eyebrow,
.signal-copy p {
  color: var(--mint);
}

.signal-stats {
  display: grid;
  gap: 14px;
}

.signal-stats div {
  background: var(--mint);
  border: 1px solid rgba(63, 127, 95, 0.22);
  border-radius: 8px;
  padding: 24px;
}

.signal-stats strong {
  display: block;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1;
}

.signal-stats span {
  color: #40524d;
}

.cta-band {
  background: var(--panel);
  border-top: 1px solid var(--line);
  justify-content: space-between;
  max-width: none;
  padding-left: clamp(20px, 6vw, 90px);
  padding-right: clamp(20px, 6vw, 90px);
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 34px clamp(20px, 6vw, 90px);
}

.site-footer p {
  color: var(--muted);
  margin: 4px 0 0;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  text-transform: uppercase;
  width: 38px;
}

.page-main {
  padding-top: 86px;
}

.page-hero {
  padding-bottom: 48px;
}

.page-hero.compact {
  max-width: 980px;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.filter-shell {
  padding-top: 20px;
}

.filter-tabs {
  background: #e9efe7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 5px;
}

.filter-tab {
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 14px;
}

.filter-tab.active {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(20, 32, 29, 0.08);
}

.detail-card {
  padding: 26px;
}

.detail-card.hidden {
  display: none;
}

.about-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr 1fr;
  padding-top: 16px;
}

.about-panel {
  padding: clamp(28px, 5vw, 54px);
}

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

.principles article {
  padding: 24px;
}

.principles span {
  color: var(--copper);
  font-weight: 900;
}

.contact-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: 1.2fr 0.8fr;
  padding-top: 16px;
}

.contact-form,
.contact-card {
  padding: clamp(26px, 4vw, 42px);
}

label {
  color: var(--ink);
  display: grid;
  font-weight: 800;
  gap: 8px;
  margin-bottom: 18px;
}

input,
select,
textarea {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 12px 14px;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(63, 127, 95, 0.14);
  outline: none;
}

.form-note {
  color: var(--muted);
  margin: 14px 0 0;
}

.contact-card a:not(.social-links a) {
  color: var(--blue);
  font-weight: 800;
}

.contact-social {
  margin-top: 24px;
}

@media (max-width: 820px) {
  .site-header {
    padding: 14px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    background: rgba(247, 249, 246, 0.96);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    left: 0;
    padding: 16px 18px 20px;
    position: absolute;
    right: 0;
    top: 70px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .hero {
    min-height: 94svh;
  }

  .hero-shade {
    background: rgba(247, 249, 246, 0.88);
  }

  .hero-content {
    padding-top: 126px;
  }

  .section-grid,
  .signal-panel,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

@media (max-width: 520px) {
  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    font-size: 0.7rem;
  }

  .hero-actions,
  .cta-band {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
