:root {
  --ink: #101610;
  --deep: #172117;
  --moss: #2f5138;
  --leaf: #b7d06c;
  --fern: #6f8d55;
  --bark: #9a693e;
  --cream: #eee7d5;
  --paper: #d9d0b8;
  --muted: #aeb89c;
  --line: rgba(238, 231, 213, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
  width: 100%;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.16;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mix-blend-mode: overlay;
}

.section-pad {
  padding: 82px clamp(18px, 4vw, 64px);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: clamp(16px, 2.6vw, 34px);
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(238, 231, 213, 0.24);
  background: rgba(16, 22, 16, 0.88);
  transform: translateY(0);
  transition: transform 0.35s ease, background 0.35s ease;
  overflow: hidden;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.brand,
.nav-links,
.header-cta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: 0;
  font-weight: 900;
  letter-spacing: 0;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--leaf);
  background: var(--leaf);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
}

.nav-links {
  gap: clamp(14px, 2vw, 30px);
  color: rgba(238, 231, 213, 0.78);
  font-size: clamp(0.72rem, 0.82vw, 0.84rem);
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--leaf);
}

.header-cta {
  justify-self: end;
  min-height: 44px;
  padding: 0 clamp(12px, 1.4vw, 18px);
  border: 1px solid var(--leaf);
  color: var(--leaf);
  font-size: clamp(0.72rem, 0.8vw, 0.82rem);
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: clamp(104px, 11vh, 138px) clamp(18px, 4vw, 64px) clamp(28px, 5vh, 54px);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: 0;
  object-position: 62% center;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(16, 22, 16, 0.95), rgba(16, 22, 16, 0.62) 48%, rgba(16, 22, 16, 0.18)),
    linear-gradient(0deg, rgba(16, 22, 16, 0.94), transparent 44%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: clamp(22px, 5vw, 76px);
  width: 100%;
  min-width: 0;
}

.hero-copy,
.hero-panel {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--leaf);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-title,
h2 {
  margin: 0;
  font-family: Archivo, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.88;
  text-transform: uppercase;
}

.hero-title {
  max-width: 980px;
  font-size: clamp(4.4rem, 10.2vw, 11rem);
  text-wrap: balance;
  overflow-wrap: normal;
}

.hero-text {
  max-width: 720px;
  margin: clamp(18px, 2.2vw, 26px) 0 0;
  color: rgba(238, 231, 213, 0.82);
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 2.8vw, 30px);
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--leaf);
  padding: 0 22px;
  background: transparent;
  color: var(--leaf);
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.button.primary {
  background: var(--leaf);
  color: var(--ink);
}

.button.secondary {
  color: var(--cream);
  border-color: rgba(238, 231, 213, 0.42);
}

.hero-panel {
  border: 1px solid rgba(238, 231, 213, 0.24);
  background: rgba(16, 22, 16, 0.72);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid rgba(238, 231, 213, 0.18);
  min-width: 0;
}

.panel-top span,
.hero-stats span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-top strong {
  color: var(--leaf);
  white-space: nowrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero-stats div {
  min-height: 120px;
  padding: 18px;
  border-right: 1px solid rgba(238, 231, 213, 0.18);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats strong {
  display: block;
  font-family: Archivo, Inter, system-ui, sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 10px;
  line-height: 1.35;
}

.image-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 310px;
  border-block: 1px solid var(--line);
}

.rail-card,
.machine-card,
.work-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--deep);
}

.rail-card {
  border-right: 1px solid var(--line);
}

.rail-card::after,
.machine-card::after,
.work-item::after,
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(16, 22, 16, 0.9));
}

.rail-card img,
.machine-card img,
.work-item img,
.service-card img,
.method-image img {
  transition: transform 0.8s ease, filter 0.8s ease;
}

.rail-card:hover img,
.machine-card:hover img,
.work-item:hover img,
.service-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.16) contrast(1.04);
}

.rail-card figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  color: var(--cream);
  font-weight: 900;
  text-transform: uppercase;
}

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

h2 {
  font-size: clamp(2.8rem, 6.4vw, 7rem);
}

.services {
  background:
    linear-gradient(rgba(23, 33, 23, 0.94), rgba(23, 33, 23, 0.94)),
    url("https://upload.wikimedia.org/wikipedia/commons/b/b0/The_Light_That_Feeds_the_Forest.jpg") center/cover;
}

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

.service-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--deep);
}

.service-card div {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
}

.service-card span,
.machine-card span,
.work-item span,
.timeline-step span {
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h3 {
  margin: 14px 0 10px;
  font-size: clamp(1.25rem, 1.6vw, 1.75rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.service-card p,
.equipment-copy p,
.timeline-step p,
.contact-copy p {
  color: rgba(238, 231, 213, 0.74);
  line-height: 1.62;
}

.equipment {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: stretch;
  background: #111a12;
}

.equipment-copy {
  align-self: center;
}

.machine-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, minmax(250px, 310px));
  gap: 14px;
}

.machine-card.large {
  grid-row: span 2;
}

.machine-card figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
}

.machine-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.3rem, 2.4vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
}

.work {
  background: var(--ink);
}

.work-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr;
  grid-auto-rows: minmax(265px, 34vw);
  gap: 14px;
}

.work-item.tall {
  grid-row: span 2;
}

.work-item div {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
}

.work-item h3 {
  max-width: 520px;
  font-size: clamp(1.4rem, 2.6vw, 3.5rem);
}

.method {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 0.85fr);
  gap: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}

.method-image {
  min-height: 640px;
  overflow: hidden;
}

.method-copy {
  display: grid;
  align-content: center;
  padding: clamp(48px, 6vw, 90px);
}

.method .eyebrow {
  color: var(--moss);
}

.check-list {
  display: grid;
  gap: 16px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: #283525;
  font-weight: 800;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12px;
  height: 12px;
  background: var(--moss);
}

.process {
  background: #172117;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.timeline-step {
  min-height: 255px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
  background:
    linear-gradient(90deg, rgba(16, 22, 16, 0.98), rgba(16, 22, 16, 0.74)),
    url("https://upload.wikimedia.org/wikipedia/commons/e/e1/Worker_trimming_a_tree_next_to_a_house.jpg") center/cover;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(16, 22, 16, 0.86);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(238, 231, 213, 0.24);
  background: rgba(238, 231, 213, 0.08);
  color: var(--cream);
  font: inherit;
  padding: 14px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--leaf);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .hero-inner,
  .equipment,
  .method,
  .contact {
    grid-template-columns: 1fr;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta"
      "nav nav";
    gap: 0 18px;
    min-height: 92px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    grid-area: brand;
  }

  .header-cta {
    grid-area: cta;
  }

  .nav-links {
    grid-area: nav;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    font-size: 0.74rem;
  }

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

  .hero-inner {
    align-content: end;
    min-height: calc(100svh - 160px);
  }

  .hero-title {
    max-width: 900px;
    font-size: clamp(4.1rem, 13vw, 8.6rem);
  }

  .hero-panel {
    max-width: 720px;
  }

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

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

@media (max-width: 680px) {
  .section-pad {
    padding: 64px 16px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta"
      "nav nav";
    min-height: 90px;
    padding: 8px 12px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 0.68rem;
  }

  .brand span:last-child {
    display: inline;
    max-width: 142px;
    font-size: 0.9rem;
  }

  .header-cta {
    min-height: 36px;
    padding: 0 9px;
    font-size: 0.64rem;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding-top: 8px;
    font-size: 0.58rem;
    text-align: center;
  }

  .nav-links a {
    display: grid;
    place-items: center;
    min-height: 26px;
    border: 1px solid rgba(238, 231, 213, 0.16);
  }

  .hero {
    min-height: auto;
    padding: 108px 16px 24px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(16, 22, 16, 0.72), rgba(16, 22, 16, 0.9) 46%, rgba(16, 22, 16, 0.98)),
      linear-gradient(90deg, rgba(16, 22, 16, 0.86), rgba(16, 22, 16, 0.42));
  }

  .hero-inner {
    min-height: calc(100svh - 132px);
    gap: 20px;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(2.75rem, 12.8vw, 4.6rem);
    line-height: 0.94;
    word-break: normal;
    hyphens: none;
  }

  .hero-text {
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
  }

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

  .button {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    font-size: 0.74rem;
  }

  .hero-stats,
  .service-grid,
  .image-rail,
  .machine-grid,
  .work-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .machine-grid {
    grid-template-rows: none;
  }

  .machine-card,
  .machine-card.large,
  .rail-card,
  .work-item,
  .work-item.tall {
    min-height: 330px;
    grid-row: auto;
  }

  .hero-stats div {
    min-height: auto;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(238, 231, 213, 0.18);
  }

  .panel-top {
    padding: 12px 14px;
    gap: 10px;
  }

  .panel-top span,
  .hero-stats span {
    font-size: 0.68rem;
  }

  .hero-stats strong {
    font-size: 1.8rem;
  }

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

  .method-image {
    min-height: 390px;
  }

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

@media (max-width: 420px) {
  .site-header {
    min-height: 84px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-cta {
    font-size: 0.58rem;
    min-height: 34px;
  }

  .nav-links {
    font-size: 0.52rem;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-inner {
    min-height: calc(100svh - 122px);
  }

  .hero-title {
    font-size: clamp(2.25rem, 12.2vw, 3.35rem);
    line-height: 0.96;
  }
}
