:root {
  --page: #f5f7f4;
  --surface: #ffffff;
  --surface-soft: #f8faf7;
  --ink: #17231d;
  --muted: #66736b;
  --brand: #12392a;
  --brand-2: #2f6f4f;
  --accent: #d6aa3d;
  --line: #dfe6df;
  --shadow: 0 16px 42px rgba(23, 35, 29, .08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(223, 230, 223, .86);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 250px;
  max-height: 58px;
  height: auto;
  object-fit: contain;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a,
.header-action {
  text-decoration: none;
  font-weight: 850;
  border-radius: var(--radius);
}

.main-nav a {
  padding: 10px 12px;
  color: var(--ink);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: #edf5ee;
  color: var(--brand);
}

.header-action {
  background: var(--brand);
  color: #fff;
  padding: 10px 15px;
}

.header-action:hover,
.header-action:focus-visible,
.btn-primary:hover,
.btn-primary:focus-visible {
  background: #0b2d20;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--brand);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 84svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--brand);
  padding-top: 96px;
}

.hero picture,
.hero > picture img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero > picture img {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 28, 20, .88) 0%, rgba(8, 28, 20, .62) 45%, rgba(8, 28, 20, .18) 100%),
    linear-gradient(0deg, rgba(8, 28, 20, .74) 0%, rgba(8, 28, 20, 0) 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 96px 0 156px;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 82px;
  line-height: .98;
  font-weight: 950;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 48px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0;
}

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

.hero-copy {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, .88);
  font-size: 22px;
  line-height: 1.45;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--brand);
}

.btn-outline {
  border-color: var(--brand);
  color: var(--brand);
  background: transparent;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--brand);
  color: #fff;
}

.hero-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.hero-strip div {
  padding: 18px;
  background: rgba(18, 57, 42, .68);
}

.hero-strip strong,
.hero-strip span {
  display: block;
}

.hero-strip strong {
  color: #fff;
  font-size: 20px;
  line-height: 1.1;
}

.hero-strip span {
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
  font-weight: 800;
}

.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--surface-soft);
  border-block: 1px solid var(--line);
}

.intro {
  background: #fff;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.intro-grid p:last-child {
  color: var(--muted);
  font-size: 20px;
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.split-head {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 32px;
  align-items: end;
}

.split-head p:last-child {
  color: rgba(255, 255, 255, .72);
}

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

.service-card {
  min-height: 260px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card span {
  display: inline-flex;
  margin-bottom: 40px;
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 950;
}

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

.proof {
  background: #fff;
}

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 54px;
  align-items: start;
}

.proof-copy p:last-child {
  color: var(--muted);
  font-size: 19px;
}

.proof-list {
  display: grid;
  gap: 10px;
}

.proof-list div {
  padding: 18px;
  border-left: 4px solid var(--accent);
  background: var(--surface-soft);
  border-radius: var(--radius);
}

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

.proof-list span {
  margin-top: 4px;
  color: var(--muted);
}

.section-dark {
  background: var(--brand);
  color: #fff;
}

.section-dark h2 {
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  grid-template-rows: repeat(2, 260px);
  gap: 14px;
}

.project-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0b2d20;
}

.project-tile-large {
  grid-row: span 2;
}

.project-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.project-tile:hover img {
  transform: scale(1.035);
}

.project-tile figcaption {
  position: absolute;
  inset: auto 14px 14px;
  padding: 14px;
  background: rgba(8, 28, 20, .78);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.project-tile strong,
.project-tile span {
  display: block;
}

.project-tile span {
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
}

.featured {
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: 50px;
  align-items: center;
}

.feature-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-copy p {
  color: var(--muted);
  font-size: 18px;
}

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

.steps li {
  counter-increment: steps;
  position: relative;
  padding: 68px 20px 22px;
  min-height: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.steps li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  top: 20px;
  left: 20px;
  color: var(--brand-2);
  font-weight: 950;
}

.steps strong,
.steps span {
  display: block;
}

.steps span {
  margin-top: 8px;
  color: var(--muted);
}

.contact {
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 48px;
  align-items: start;
}

.contact-grid p {
  max-width: 660px;
  color: var(--muted);
  font-size: 19px;
}

.contact-panel {
  display: grid;
  gap: 14px;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form > input[name="website"] {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row label {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

.form-row textarea {
  min-height: 128px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(47, 111, 79, .28);
  border-color: var(--brand-2);
}

.contact-card {
  display: grid;
  gap: 8px;
  padding: 24px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  font-style: normal;
  box-shadow: var(--shadow);
}

.contact-card strong {
  font-size: 24px;
}

.contact-card a {
  color: #fff;
  font-weight: 850;
  text-decoration-color: rgba(255, 255, 255, .42);
  text-underline-offset: 4px;
}

.site-footer {
  background: #101a15;
  color: #fff;
  padding: 54px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, .7fr) minmax(180px, .7fr);
  gap: 36px;
}

.footer-grid img {
  width: 250px;
  margin-bottom: 18px;
  background: #fff;
  border-radius: var(--radius);
  padding: 6px 10px;
}

.footer-grid p {
  max-width: 420px;
  color: rgba(255, 255, 255, .68);
}

.footer-grid strong,
.footer-grid a {
  display: block;
}

.footer-grid strong {
  margin-bottom: 10px;
  color: var(--accent);
}

.footer-grid a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  margin: 5px 0;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .58);
  font-size: 14px;
}

.legal-page {
  padding: 140px 0 84px;
  background: var(--page);
}

.legal-wrap {
  max-width: 880px;
}

.legal-page h1 {
  color: var(--ink);
  font-size: 64px;
}

.legal-card {
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-card h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 24px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  color: var(--muted);
}

.legal-card a {
  color: var(--brand);
  font-weight: 850;
}

.message-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--page);
}

.message-card {
  width: min(620px, 100%);
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.message-card img {
  width: 250px;
  margin-bottom: 28px;
}

.message-card h1 {
  color: var(--ink);
  font-size: 42px;
}

.message-card p {
  color: var(--muted);
}

.message-card.error {
  border-top: 5px solid #a33a35;
}

.message-card.success {
  border-top: 5px solid var(--brand-2);
}

@media (max-width: 980px) {
  .brand img {
    width: 210px;
  }

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

  .intro-grid,
  .proof-grid,
  .feature-grid,
  .contact-grid,
  .split-head {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 300px);
  }

  h1 {
    font-size: 64px;
  }

  h2 {
    font-size: 42px;
  }

  .project-tile-large {
    grid-row: span 1;
  }

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

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 32px, 1180px);
  }

  .nav-wrap {
    min-height: 70px;
  }

  .brand img {
    width: 168px;
  }

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

  .main-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    margin: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    padding: 12px;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 86svh;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(8, 28, 20, .92) 0%, rgba(8, 28, 20, .54) 72%, rgba(8, 28, 20, .38) 100%);
  }

  .hero-content {
    padding: 100px 0 168px;
  }

  h1,
  .legal-page h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 36px;
  }

  .hero-copy {
    font-size: 19px;
  }

  .hero-strip {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

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

  .service-card,
  .steps li {
    min-height: auto;
  }

  .project-grid {
    grid-template-rows: repeat(3, 260px);
  }

  .project-tile figcaption {
    inset: auto 10px 10px;
  }

  .legal-page {
    padding-top: 120px;
  }

  .legal-card {
    padding: 24px;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 42px;
  }

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

  .btn {
    padding-inline: 14px;
  }

  .project-grid {
    grid-template-rows: repeat(3, 230px);
  }
}
