:root {
  color-scheme: light;
  --ink: #101713;
  --muted: #657169;
  --paper: #f4f0e7;
  --paper-2: #e9e3d6;
  --white: #fffaf1;
  --green: #10231f;
  --green-2: #17382f;
  --green-3: #28594b;
  --coral: #d67266;
  --gold: #b28b55;
  --blue: #49677d;
  --teal: #5e9185;
  --line: rgba(16, 23, 19, 0.14);
  --line-light: rgba(255, 250, 241, 0.18);
  --shadow: 0 18px 55px rgba(16, 23, 19, 0.12);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

body.menu-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 5.2vw, 64px);
  line-height: 0.96;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.04;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
}

p {
  margin-bottom: 0;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--green);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(16, 23, 19, 0.1);
  color: var(--ink);
  background: rgba(255, 250, 241, 0.9);
  backdrop-filter: blur(18px);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled,
body:not(.home) .site-header {
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 10px 28px rgba(16, 23, 19, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 880;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(16, 23, 19, 0.24);
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  font-size: 14px;
  font-weight: 760;
}

.main-nav a {
  opacity: 0.9;
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: var(--green-2);
  opacity: 1;
}

.nav-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(16, 23, 19, 0.18);
  border-radius: 8px;
  padding: 0 14px;
}

.nav-cta:hover,
.nav-cta:focus-visible,
.nav-cta.active {
  color: var(--green-2) !important;
  background: rgba(16, 23, 19, 0.04);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 23, 19, 0.18);
  border-radius: 8px;
  background: rgba(16, 23, 19, 0.04);
}

.menu-toggle span {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.2s ease;
}

.menu-toggle span:first-child {
  transform: translateY(-5px);
}

.menu-toggle span:last-child {
  transform: translateY(5px);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
}

.hero::before,
.page-hero::before,
.contact-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background:
    linear-gradient(rgba(16, 23, 19, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 23, 19, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 88%, transparent 100%);
}

.hero-home {
  min-height: 56svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.58fr);
  gap: clamp(26px, 6vw, 88px);
  align-items: center;
  padding: 104px clamp(18px, 6vw, 88px) 34px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 760px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 880;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-lead,
.page-hero p,
.contact-copy p,
.text-stack p,
.service-card p,
.case-strip p,
.check-grid span,
.package-card p,
.package-card li,
.case-study p,
.case-study dd,
.timeline p,
.form-note {
  color: var(--muted);
  line-height: 1.64;
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 22px;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--green-2);
  box-shadow: none;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #21483e;
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(16, 23, 19, 0.28);
  background: rgba(16, 23, 19, 0.04);
}

.hero-aside,
.service-card,
.package-card,
.case-strip article,
.case-study,
.timeline li,
.contact-form,
.contact-facts {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-aside {
  position: relative;
  z-index: 1;
  display: grid;
  align-self: stretch;
  min-height: 330px;
  align-content: space-between;
  padding: 28px;
  border-color: rgba(16, 23, 19, 0.12);
  box-shadow: none;
}

.aside-head,
.scope-list div,
.aside-note {
  display: grid;
  gap: 8px;
}

.aside-head {
  grid-template-columns: 1fr auto;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.aside-head span,
.scope-list span,
.aside-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.aside-head strong {
  color: var(--coral);
  font-size: 13px;
}

.scope-list {
  display: grid;
  gap: 0;
}

.scope-list div {
  min-height: 82px;
  justify-content: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.scope-list strong {
  max-width: 360px;
  font-size: 20px;
  line-height: 1.24;
}

.aside-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.aside-note strong {
  font-size: 28px;
  line-height: 1.08;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.metric-band div {
  min-height: 132px;
  padding: 28px clamp(18px, 4vw, 54px);
  background: var(--white);
}

.metric-band strong,
.metric-band span {
  display: block;
}

.metric-band strong {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.metric-band span {
  color: var(--muted);
  line-height: 1.5;
}

.section {
  padding: clamp(64px, 9vw, 116px) clamp(18px, 6vw, 88px);
}

.split-section,
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.85fr);
  gap: clamp(26px, 6vw, 82px);
}

.section-head {
  align-items: end;
  margin-bottom: 34px;
}

.text-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.text-link {
  align-self: end;
  justify-self: end;
  color: var(--green-2);
  font-weight: 850;
}

.text-link.light {
  color: #ffd7ce;
}

.service-grid,
.case-strip,
.check-grid {
  display: grid;
  gap: 18px;
}

.service-grid,
.case-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  display: grid;
  min-height: 300px;
  align-content: space-between;
  gap: 22px;
  padding: 28px;
}

.service-card.featured {
  color: var(--white);
  background: var(--green-2);
}

.service-card.featured p {
  color: rgba(255, 250, 241, 0.76);
}

.service-card span,
.package-card > span,
.timeline span {
  color: var(--coral);
  font-weight: 880;
}

.service-card a {
  color: var(--green-2);
  font-weight: 850;
}

.service-card.featured a {
  color: #ffd7ce;
}

.dark-section,
.dark-slab {
  color: var(--ink);
  background: var(--paper-2);
}

.dark-section .section-head p,
.dark-section .case-strip p,
.dark-slab .check-grid span {
  color: var(--muted);
}

.case-strip article {
  overflow: hidden;
  border-color: var(--line);
  background: var(--white);
  box-shadow: none;
}

.case-strip article h3,
.case-strip article p {
  padding-inline: 24px;
}

.case-strip article p {
  padding-bottom: 24px;
}

.mini-preview {
  position: relative;
  min-height: 190px;
  margin-bottom: 22px;
  overflow: hidden;
  background: var(--green-3);
}

.mini-preview::before {
  content: "";
  position: absolute;
  inset: 30px 24px 38px;
  border-radius: 8px;
  background:
    linear-gradient(currentColor, currentColor) 18px 24px / 42% 14px no-repeat,
    linear-gradient(rgba(16, 23, 19, 0.18), rgba(16, 23, 19, 0.18)) 18px 56px / 66% 10px no-repeat,
    linear-gradient(rgba(16, 23, 19, 0.14), rgba(16, 23, 19, 0.14)) 18px 80px / 52% 10px no-repeat,
    rgba(255, 250, 241, 0.9);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.mini-preview::after {
  content: "";
  position: absolute;
  left: 42px;
  top: 134px;
  width: clamp(74px, 18%, 124px);
  height: 26px;
  border-radius: 8px;
  background: currentColor;
}

.mini-preview.coral {
  color: var(--coral);
  background: var(--teal);
}

.mini-preview.blue {
  color: var(--blue);
  background: var(--green-2);
}

.mini-preview.gold {
  color: var(--gold);
  background: var(--green-3);
}

.mini-preview.large {
  min-height: 320px;
  border-radius: 8px;
}

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

.check-grid div {
  display: grid;
  gap: 6px;
  min-height: 116px;
  align-content: center;
  border-top: 1px solid var(--line);
}

.light-grid div {
  border-color: var(--line-light);
}

.check-grid strong {
  font-size: 20px;
}

.quality-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding-top: clamp(52px, 7vw, 88px);
  padding-bottom: clamp(52px, 7vw, 88px);
}

.quality-section .section-head {
  display: block;
  margin-bottom: 0;
}

.quality-section .section-head > div {
  max-width: 720px;
}

.quality-section h2 {
  max-width: 690px;
  font-size: clamp(32px, 3.6vw, 52px);
}

.quality-grid {
  counter-reset: quality;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quality-grid div {
  counter-increment: quality;
  min-height: 172px;
  display: flex;
  flex-direction: column;
  align-content: stretch;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(16, 23, 19, 0.12);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 250, 241, 0.46);
}

.quality-grid div::before {
  content: counter(quality, decimal-leading-zero);
  color: var(--coral);
  font-size: 12px;
  font-weight: 880;
}

.quality-grid strong {
  margin-top: auto;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.06;
}

.quality-grid span {
  font-size: 15px;
  line-height: 1.48;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(64px, 9vw, 104px) clamp(18px, 6vw, 88px);
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
}

.cta-section div {
  max-width: 820px;
}

.page-hero,
.contact-page {
  position: relative;
  overflow: hidden;
  padding: 140px clamp(18px, 6vw, 88px) 74px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
}

.page-hero h1,
.page-hero p {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.page-hero p:not(.eyebrow) {
  max-width: 700px;
  color: var(--muted);
  font-size: 19px;
}

.package-section,
.case-study-list,
.timeline-section {
  display: grid;
  gap: 18px;
}

.package-card {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(260px, 0.75fr);
  gap: 24px;
  align-items: start;
  padding: 30px;
}

.package-card.highlighted {
  color: var(--white);
  background: var(--green-2);
}

.package-card.highlighted p,
.package-card.highlighted li {
  color: rgba(255, 250, 241, 0.76);
}

.package-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: 24px;
}

.case-study.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
}

.case-study.reverse .mini-preview {
  order: 2;
}

.case-study dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
}

.case-study dt {
  margin-bottom: 5px;
  color: var(--green-2);
  font-weight: 860;
}

.case-study dd {
  margin: 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 20px;
  min-height: 220px;
  padding: 26px;
  align-content: start;
}

.timeline span {
  display: block;
  margin-top: 8px;
  grid-row: 1 / span 2;
}

.timeline h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
  overflow-wrap: normal;
}

.timeline p {
  grid-column: 2;
}

.contact-page {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.78fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
}

.contact-copy,
.contact-form {
  position: relative;
  z-index: 1;
}

.contact-copy p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
}

.contact-facts {
  display: grid;
  gap: 4px;
  width: fit-content;
  margin-top: 28px;
  padding: 18px;
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
  box-shadow: none;
}

.contact-facts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  color: var(--ink);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.contact-form input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink);
  background: #fffdf8;
  outline: none;
}

.contact-form input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(214, 114, 102, 0.16);
}

.wide-field {
  grid-column: 1 / -1;
}

.form-note {
  grid-column: 1 / -1;
  font-size: 13px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 22px clamp(18px, 6vw, 88px);
  color: rgba(255, 250, 241, 0.78);
  background: var(--green);
}

.site-footer span {
  color: var(--white);
  font-weight: 860;
}

.site-footer a {
  font-weight: 780;
}

@media (max-width: 1100px) {
  .hero-home,
  .split-section,
  .section-head,
  .contact-page,
  .case-study,
  .case-study.reverse,
  .package-card {
    grid-template-columns: 1fr;
  }

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

  .case-study.reverse .mini-preview {
    order: 0;
  }

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

  .quality-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .quality-section .section-head {
    margin-bottom: 0;
  }

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

@media (max-width: 860px) {
  .service-grid,
  .case-strip,
  .metric-band {
    grid-template-columns: 1fr;
  }

  .text-link {
    justify-self: start;
  }

  .cta-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: clamp(31px, 8.8vw, 34px);
    line-height: 1.02;
  }

  .site-header {
    min-height: 70px;
    padding: 12px 18px;
  }

  .menu-toggle {
    position: relative;
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 250, 241, 0.98);
    box-shadow: 0 20px 50px rgba(16, 23, 19, 0.14);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a,
  .nav-cta {
    min-height: 54px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 16px;
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .hero-home {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    padding: 112px 18px 42px;
  }

  .hero-lead {
    font-size: 17px;
  }

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

  .button {
    min-height: 50px;
    height: auto;
    padding: 14px 16px;
    white-space: normal;
  }

  .hero-aside {
    min-height: auto;
    padding: 20px;
  }

  .scope-list strong {
    font-size: 18px;
  }

  .aside-note strong {
    font-size: 22px;
  }

  .section,
  .page-hero,
  .cta-section {
    padding: 58px 18px;
  }

  .page-hero {
    padding-top: 118px;
  }

  .service-card,
  .package-card,
  .case-study,
  .timeline li {
    min-height: auto;
    padding: 22px;
  }

  .check-grid,
  .timeline,
  .case-study dl,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .quality-section {
    gap: 20px;
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .quality-section .section-head {
    margin-bottom: 0;
  }

  .quality-section h2 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.04;
  }

  .quality-grid {
    gap: 10px;
  }

  .quality-grid div {
    min-height: auto;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 4px 12px;
    justify-content: initial;
    padding: 15px;
  }

  .quality-grid div::before {
    grid-row: 1 / span 2;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(16, 23, 19, 0.08);
    font-size: 11px;
  }

  .quality-grid strong {
    margin-top: 0;
    font-size: 18px;
  }

  .quality-grid span {
    grid-column: 2;
    font-size: 15px;
    line-height: 1.42;
  }

  .mini-preview,
  .mini-preview.large {
    min-height: 168px;
  }

  .contact-page {
    min-height: auto;
    padding: 118px 18px 58px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
