:root {
  --gunmetal: #1f2b2f;
  --charcoal: #11181b;
  --slate: #5e6b70;
  --line: rgba(220, 228, 226, 0.72);
  --paper: rgba(247, 250, 248, 0.86);
  --white: #ffffff;
  --green: #4f8f61;
  --green-dark: #2f6f42;
  --blue: #3b6f87;
  --blue-dark: #244b5d;
  --shadow: 0 20px 60px rgba(17, 24, 27, 0.18);
  --radius: 22px;
}

* { box-sizing: border-box; }

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

body {
  position: relative;
  margin: 0;
  color: var(--gunmetal);
  background: var(--charcoal);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("media/hero.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.56) 0%, rgba(255,255,255,0.20) 42%, rgba(17,24,27,0.10) 100%),
    linear-gradient(180deg, rgba(17,24,27,0.06) 0%, rgba(17,24,27,0.00) 44%, rgba(17,24,27,0.22) 100%);
  pointer-events: none;
}

body,
.site-header,
.section,
.site-footer {
  isolation: isolate;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(220, 228, 226, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  padding: 9px 11px;
  border-radius: 999px;
  color: var(--slate);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--gunmetal);
  background: rgba(255,255,255,0.72);
}

.nav-cta {
  color: var(--white) !important;
  background: var(--gunmetal);
}

.section-pad {
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
  background: transparent;
}

.hero-copy {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(255,255,255,0.52);
  border-radius: calc(var(--radius) + 12px);
  background: rgba(255,255,255,0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -0.045em; }

h1 {
  max-width: 830px;
  margin-bottom: 22px;
  font-size: clamp(3.3rem, 8vw, 7.3rem);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 4.4vw, 4.5rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

p { margin-top: 0; }

.hero-lede {
  max-width: 760px;
  color: var(--slate);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
}

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

.button.primary:hover { background: var(--gunmetal); }

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

.button.large {
  min-height: 56px;
  padding-inline: 28px;
  font-size: 1.06rem;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.metric-card {
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(47,111,66,0.90), rgba(36,75,93,0.92)),
    var(--gunmetal);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.metric-card.wide {
  padding: 32px;
}

.metric-card span,
.metric-label {
  display: block;
  margin-bottom: 7px;
  color: rgba(255,255,255,0.74);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.metric-card p {
  margin: 14px 0 0;
  color: rgba(255,255,255,0.82);
}

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

.mini-grid .metric-card {
  min-height: 126px;
}

.mini-grid .metric-card strong {
  font-size: 1.35rem;
}

.section {
  border-top: 1px solid rgba(220, 228, 226, 0.58);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(8px);
}

.muted {
  background: rgba(247, 250, 248, 0.82);
}

.dark {
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(79, 143, 97, 0.28), transparent 30%),
    linear-gradient(145deg, rgba(17,24,27,0.84), rgba(31,43,47,0.82));
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  color: var(--slate);
  font-size: 1.12rem;
}

.section-heading.light p:not(.eyebrow) { color: rgba(255,255,255,0.72); }
.section-heading.light .eyebrow { color: #8abf93; }

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.icon-card,
.text-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid rgba(220, 228, 226, 0.80);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.86);
  box-shadow: 0 12px 30px rgba(17, 24, 27, 0.08);
}

.icon-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(145deg, var(--green-dark), var(--blue-dark));
  font-size: 1.35rem;
  font-weight: 900;
}

.icon-card p,
.text-card p,
.case-study p,
.analytics-list p,
.contact-section p {
  color: var(--slate);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  position: relative;
  min-height: 220px;
  padding: 28px 24px;
  border: 1px solid rgba(220, 228, 226, 0.80);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.86);
  box-shadow: 0 12px 30px rgba(17, 24, 27, 0.08);
  counter-increment: process;
}

.process-list li::before {
  content: counter(process);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue-dark);
  font-weight: 900;
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list strong {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.process-list span {
  color: var(--slate);
}

.analytics-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(300px, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.map-mock {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(120deg, rgba(47,111,66,0.22), rgba(59,111,135,0.18)),
    repeating-linear-gradient(72deg, rgba(255,255,255,0.14) 0 18px, rgba(255,255,255,0.04) 18px 36px),
    #1f2b2f;
  box-shadow: var(--shadow);
}

.field-lines {
  position: absolute;
  inset: 10%;
  border-radius: 44% 56% 38% 62%;
  border: 2px solid rgba(255,255,255,0.32);
  transform: rotate(-8deg);
}

.field-lines::before,
.field-lines::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: inherit;
  border: 1px dashed rgba(255,255,255,0.26);
}

.field-lines::after {
  inset: 26%;
  border-style: solid;
}

.zone {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.86;
}

.zone.green { width: 170px; height: 110px; left: 16%; top: 22%; background: rgba(79,143,97,0.82); }
.zone.blue { width: 150px; height: 120px; right: 18%; top: 18%; background: rgba(59,111,135,0.72); }
.zone.gold { width: 145px; height: 95px; left: 38%; bottom: 24%; background: rgba(219,179,83,0.76); }
.zone.red { width: 92px; height: 72px; right: 26%; bottom: 18%; background: rgba(177,88,68,0.74); }

.map-overlay-card {
  position: absolute;
  left: 22px;
  bottom: 22px;
  width: min(320px, calc(100% - 44px));
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 20px;
  background: rgba(255,255,255,0.88);
  color: var(--gunmetal);
  box-shadow: 0 18px 50px rgba(17, 24, 27, 0.18);
}

.map-overlay-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.map-overlay-card p { color: var(--slate); }

.value-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.value-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.value-list li::before {
  content: "";
  width: 11px;
  height: 11px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--green);
}

.analytics-list {
  display: grid;
  gap: 16px;
}

.analytics-card {
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.10);
}

.analytics-card h3 { color: var(--white); }
.analytics-card p { margin-bottom: 0; color: rgba(255,255,255,0.76); }

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 36px;
  align-items: start;
}

.report-card {
  padding: 32px;
  border: 1px solid rgba(220, 228, 226, 0.84);
  border-radius: calc(var(--radius) + 8px);
  background: rgba(255,255,255,0.88);
  box-shadow: var(--shadow);
}

.report-card h3 { font-size: 1.75rem; }

.report-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(220, 228, 226, 0.9);
}

.report-row span { color: var(--green-dark); font-weight: 900; }
.report-row p { margin: 0; color: var(--slate); }

.value-list li + li { margin-top: 10px; }

.fine-print {
  font-size: 0.95rem;
  font-style: italic;
}

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

.deliverables span {
  display: inline-flex;
  padding: 12px 16px;
  border: 1px solid rgba(220, 228, 226, 0.80);
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: rgba(255,255,255,0.78);
}

.contact-section h2 { margin-bottom: 14px; }
.contact-section p { max-width: 760px; font-size: 1.12rem; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(255,255,255,0.72);
  background: rgba(17,24,27,0.92);
  backdrop-filter: blur(10px);
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1080px) {
  .hero,
  .analytics-layout,
  .case-study,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .card-grid.six,
  .card-grid.four,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 780px) {
  html {
    scroll-padding-top: 0;
  }

  body::before {
    background-position: center top;
  }

  body::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.48));
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand span { font-size: 0.96rem; }

  .site-nav {
    justify-content: flex-start;
  }

  .site-nav a {
    padding: 7px 8px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding: 22px;
  }

  .card-grid.six,
  .card-grid.four,
  .process-list,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .icon-card,
  .text-card,
  .process-list li {
    min-height: auto;
  }

  .map-mock {
    min-height: 360px;
  }

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