:root {
  --forest: #1f513e;
  --forest-dark: #14362a;
  --gold: #c4972f;
  --charcoal: #171716;
  --ink: #26231f;
  --steel: #60696b;
  --sand: #f5f2eb;
  --paper: #ffffff;
  --line: #d8d0c2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--sand);
  font-family: Avenir Next, Montserrat, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 82px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(245, 242, 235, 0.94);
  border-bottom: 1px solid rgba(216, 208, 194, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  position: relative;
  display: block;
  width: fit-content;
  animation: logoIntro 900ms ease-out both;
}

.brand img {
  width: min(340px, 46vw);
}

@keyframes logoIntro {
  from {
    opacity: 0;
    transform: translate3d(-12px, 0, 0) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 30px);
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  padding: 10px 0;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.header-cta,
.button.primary {
  color: var(--paper);
  background: var(--forest);
}

.cta-short {
  display: none;
}

.button.secondary {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.78);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100vh - 82px);
  overflow: hidden;
  background: var(--charcoal);
}

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

.hero-media {
  background-image: var(--hero-image, url("assets/hero-equipment-land-clearing.png"));
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.035);
  transition:
    opacity 1400ms ease,
    transform 7200ms ease;
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.09) translate3d(-1.2%, -0.8%, 0);
}

.hero-dots {
  position: absolute;
  right: clamp(18px, 4vw, 58px);
  bottom: clamp(18px, 4vw, 44px);
  z-index: 2;
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  background: rgba(255, 255, 255, 0.58);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.hero-dots button.active {
  background: var(--gold);
}

@keyframes heroDrift {
  from {
    transform: scale(1.035) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.09) translate3d(-1.2%, -0.8%, 0);
  }
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(17, 18, 16, 0.82) 0%, rgba(17, 18, 16, 0.58) 39%, rgba(17, 18, 16, 0.1) 72%),
    linear-gradient(0deg, rgba(17, 18, 16, 0.72) 0%, rgba(17, 18, 16, 0) 34%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  padding: clamp(48px, 8vw, 92px) clamp(18px, 5vw, 64px);
  color: var(--paper);
  transform: translateY(clamp(-74px, -6vh, -28px));
}

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

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

h1 {
  max-width: 700px;
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

[data-typewriter] {
  min-height: 2.85em;
}

[data-typewriter].is-typing::after {
  display: inline-block;
  width: 0.08em;
  height: 0.82em;
  margin-left: 0.08em;
  background: var(--gold);
  content: "";
  transform: translateY(0.08em);
  animation: caretBlink 850ms steps(1) infinite;
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

h2 {
  max-width: 760px;
  margin-bottom: 16px;
  color: var(--charcoal);
  font-size: clamp(31px, 4.6vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  color: var(--charcoal);
  font-size: 28px;
  line-height: 1.1;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.1vw, 22px);
  opacity: 0;
  transform: translateY(14px);
  animation: heroCopyFadeIn 1200ms ease 950ms forwards;
}

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

@keyframes heroCopyFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 8px solid var(--gold);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.quick-strip div {
  min-height: 132px;
  padding: 26px clamp(18px, 3vw, 42px);
  border-right: 1px solid var(--line);
}

.quick-strip div:last-child {
  border-right: 0;
}

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

.quick-strip strong {
  margin-bottom: 6px;
  color: var(--forest-dark);
  font-size: 20px;
  font-weight: 900;
}

.quick-strip span {
  color: var(--steel);
  font-weight: 700;
}

.section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 64px);
}

.section-intro {
  max-width: 840px;
  margin-bottom: 34px;
}

.section-intro p:not(.eyebrow),
.contact-band p,
.proof-list p,
.service-card p {
  color: var(--steel);
  font-size: 18px;
}

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

.section-intro {
  grid-column: 1 / -1;
}

.service-card {
  min-height: 420px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.service-card.featured {
  border-top: 7px solid var(--forest);
}

.service-card:nth-of-type(3) {
  border-top: 7px solid var(--gold);
}

.service-number {
  display: block;
  margin-bottom: 42px;
  color: var(--gold);
  font-weight: 900;
}

ul {
  margin: 24px 0 0;
  padding-left: 20px;
  color: var(--ink);
  font-weight: 800;
}

li + li {
  margin-top: 10px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.split-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  color: var(--paper);
  background: var(--forest-dark);
}

.split-band h2 {
  color: var(--paper);
}

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

.proof-list p {
  margin: 0;
  padding: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.proof-list strong {
  color: var(--paper);
}

.work-band {
  background: var(--paper);
}

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

.work-types span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--forest-dark);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-weight: 900;
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.work-gallery figure {
  margin: 0;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.work-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-gallery figcaption {
  padding: 12px 14px;
  color: var(--forest-dark);
  font-weight: 900;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
}

.email-panel {
  display: grid;
  gap: 14px;
  align-items: start;
  width: min(100%, 440px);
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.email-panel span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.email-button {
  width: fit-content;
  color: #fff;
  background: var(--forest);
}

.email-address,
.phone-address {
  color: var(--forest-dark);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.phone-address {
  font-size: clamp(18px, 1.8vw, 24px);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
}

textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(18px, 5vw, 64px);
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer img {
  width: min(390px, 76vw);
  padding: 10px 14px;
  background: var(--paper);
  border-radius: 4px;
}

.site-footer p {
  margin: 0;
  font-weight: 900;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .quick-strip,
  .service-grid,
  .split-band,
  .contact-band,
  .work-gallery {
    grid-template-columns: 1fr;
  }

  .quick-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-strip div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    display: flex;
    justify-content: space-between;
    min-height: 72px;
    gap: 12px;
  }

  .brand img {
    width: 218px;
  }

  .header-cta {
    display: none;
  }

  .eyebrow {
    font-size: 12px;
    line-height: 1.25;
  }

  .hero {
    min-height: calc(100vh - 72px);
  }

  .hero-content {
    width: 100%;
    padding-right: 24px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(17, 18, 16, 0.86) 0%, rgba(17, 18, 16, 0.62) 70%, rgba(17, 18, 16, 0.34) 100%),
      linear-gradient(0deg, rgba(17, 18, 16, 0.72) 0%, rgba(17, 18, 16, 0) 34%);
  }

  h1 {
    max-width: 332px;
    font-size: 38px;
  }

  .hero-copy {
    max-width: 332px;
    font-size: 17px;
  }

  h2 {
    font-size: 34px;
  }

  .service-card,
  .contact-form {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-slide {
    transform: none;
    transition: opacity 300ms ease;
  }

  .hero-slide.active {
    transform: none;
  }

  .brand {
    animation: none;
  }

  .hero-copy {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
