.home-page {
  --section-space: clamp(54px, 6.5vw, 96px);
  --wrap-stripes: repeating-linear-gradient(
    132deg, transparent 0 42px, #b6ff2d14 42px 43px, transparent 43px 66px
  );
  --wrap-slash: linear-gradient(
    132deg, transparent 54%, #b6ff2d1f 54% 57%, transparent 57% 59%,
    #b6ff2d0d 59% 70%, transparent 70%
  );
}

.home-page .site-header { border-color: #b6ff2d40; }
.action-icon, .fact-icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Frame the rig with the same angles used on the truck wrap. */
.home-hero, .home-page .work, .home-page .about, .home-page .closing {
  position: relative;
  isolation: isolate;
}
.home-hero {
  padding-block: clamp(34px, 5.1vw, 76px) clamp(26px, 4vw, 56px);
  background: radial-gradient(ellipse at 84% 18%, #293d26, transparent 64%), var(--night);
}
.home-hero::before, .home-page .work::before, .home-page .closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--wrap-slash), var(--wrap-stripes);
  mask-image: linear-gradient(90deg, transparent 26%, #000 94%);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.46fr);
  align-items: center;
  width: min(1300px, 100% - 2 * var(--gutter));
  gap: clamp(22px, 3vw, 40px) clamp(26px, 3.2vw, 48px);
}
.hero-copy h1 {
  margin-block: 15px 18px;
  font-size: clamp(3.15rem, 5.5vw, 5.35rem);
  text-wrap: initial;
}
.hero-copy h1 em { display: block; color: var(--green); font-style: normal; }
.hero-copy .hero-description { max-width: 42ch; }
.hero-copy .actions { gap: 10px; }
.hero-copy .button { gap: 8px; padding-inline: clamp(12px, 1.6vw, 20px); }
.hero-copy .button--outline { background: #10171380; }
.hero-copy .button--outline:hover { background: #273529; }
.hero-stage {
  --cut: clamp(18px, 2.4vw, 34px);
  position: relative;
  margin: 0;
  padding: 1px;
  background: #63745d;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: var(--cut);
  height: var(--cut);
  background: linear-gradient(45deg, transparent 46%, var(--green) 47% 52%, transparent 53%);
}
.hero-stage .hero-photo { height: auto; aspect-ratio: 2.08; border-radius: 0; }
.hero-stage .hero-photo img { object-position: 50% 10%; }
.hero-stage .hero-photo::after { width: min(30%, 152px); height: 3px; }
.rig-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 14px;
  padding: 9px clamp(12px, 2vw, 20px);
  background: #162018;
  color: #d6e0d2;
  font-size: .8rem;
  line-height: 1.45;
}
.rig-caption strong {
  color: var(--paper);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.hero-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  border: 1px solid #53644d;
  background: #141d16;
  list-style: none;
}
.hero-facts li, .hero-facts .hero-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--paper);
  font-size: .9rem;
  font-weight: 600;
}
.hero-facts li { min-height: 50px; padding: 3px 8px; text-align: center; }
.hero-facts li + li { border-left: 1px solid #53644d; }
.hero-facts .hero-rating span { color: inherit; }
.fact-icon { color: var(--green); }

/* Use actual jobs to distinguish the two services at a glance. */
.service-showcase {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.67fr);
  align-items: center;
  gap: clamp(26px, 4.5vw, 66px);
}
.service-showcase h2 { font-size: clamp(2.65rem, 4.4vw, 4.35rem); }
.service-showcase .section-heading::after {
  content: "";
  display: block;
  width: 68px;
  height: 7px;
  margin-top: 24px;
  background: repeating-linear-gradient(132deg, #5c852d 0 9px, transparent 9px 15px);
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}
.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #cad4c7;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 9px 20px #12240d0b;
  text-decoration: none;
}
.service-card:hover { border-color: #708b62; }
.service-card-photo {
  position: relative;
  aspect-ratio: 2.05;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
  background: var(--night-raised);
}
.service-card-photo picture, .service-card-photo img { width: 100%; height: 100%; }
.service-card-photo img { object-fit: cover; }
.service-tab {
  position: absolute;
  inset: auto auto 0 0;
  min-width: 53px;
  padding: 5px 17px 5px 12px;
  background: var(--green);
  color: var(--night);
  font: 800 1.2rem/1.2 var(--display);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.service-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: start;
  padding: clamp(14px, 2vw, 23px);
}
.service-card-copy h3 { font-size: clamp(1.7rem, 2.75vw, 2.4rem); text-wrap: initial; }
.service-card-copy p { margin-block: 8px 13px; color: var(--muted); }
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--forest);
  font-size: .9rem;
  font-weight: 700;
}
.service-card:hover .service-card-link { text-decoration: underline; }

/* Put context on the photos without changing the full-size viewer. */
.home-page .work { background: radial-gradient(ellipse at 95% 0%, #263b26, transparent 62%), #142018; }
.work .gallery-preview .gallery-card { position: relative; }
.gallery-states {
  position: absolute;
  inset: 12px 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: start;
  pointer-events: none;
}
.gallery-states span {
  margin-inline-start: 12px;
  padding: 4px 9px;
  border-radius: 2px;
  background: #101713;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.gallery-states span:last-child { background: var(--green); color: var(--night); }
.gallery-label {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 7px clamp(9px, 1.5vw, 17px);
  background: #101713f2;
  color: var(--paper);
  font-size: clamp(.77rem, 1.15vw, .95rem);
  font-weight: 700;
  line-height: 1.4;
}
.gallery-label::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-top: 2px solid var(--green);
  border-right: 2px solid var(--green);
  background: linear-gradient(135deg, transparent 43%, var(--green) 43% 57%, transparent 57%);
}
.gallery-card:hover .gallery-label { color: var(--green); }

.home-process { background: linear-gradient(180deg, #f8faf6, #edf2e8); }
.home-process .process-list {
  --step-size: 48px;
  --step-gap: clamp(22px, 4vw, 50px);
  gap: 20px var(--step-gap);
  border: 0;
}
.home-process .process-list li { position: relative; padding: 0; border: 0; }
.home-process .process-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset: calc(var(--step-size) / 2) calc(-1 * var(--step-gap)) auto var(--step-size);
  height: 1px;
  background: #8ba080;
}
.home-process .step-number {
  display: grid;
  place-items: center;
  width: var(--step-size);
  height: var(--step-size);
  margin-bottom: 16px;
  padding: 0;
  background: var(--night);
  color: var(--green);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.home-page .reviews { border-top: 1px solid #cdd8c9; background: var(--paper); }
.home-page .reviews-widget { padding-top: 18px; border-top: 1px solid #a6b79e; }

.home-page .about {
  background: radial-gradient(ellipse at 15% 25%, #243722, transparent 64%), var(--wrap-stripes), var(--night);
}
.home-page .about-grid h2 span { color: var(--green); }
.home-page .about-photo {
  aspect-ratio: 16 / 10;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}
.home-page .about-photo img { object-position: left center; }
.home-page .service-area {
  align-items: center;
  padding: clamp(16px, 3vw, 34px);
  border: 1px solid #53644d;
  background: #17231a;
}
.home-page .service-area li {
  align-items: center;
  min-height: 40px;
  padding: 5px 9px;
  border-left: 2px solid #b6ff2dbe;
  background: #c6e8ba0d;
  font-size: .9rem;
  line-height: 1.3;
}
.home-page .service-area li::before { content: none; }
.home-page .closing::before {
  background: repeating-linear-gradient(
    132deg, transparent 0 18px, #20301113 18px 20px, transparent 20px 45px
  );
  mask-image: linear-gradient(90deg, transparent 51%, #000 100%);
}

@media (max-width: 900px) {
  .hero-layout, .service-showcase { grid-template-columns: minmax(0, 1fr); }
  .hero-copy h1 { font-size: clamp(2.8rem, 9.8vw, 5.4rem); }
  .hero-copy .hero-description { max-width: 56ch; }
  .service-showcase .section-heading::after { margin-top: 14px; }
}

@media (max-width: 760px) {
  .hero-copy .hero-description p { margin-bottom: 12px; }
  .hero-facts li, .hero-facts .hero-rating { gap: 6px; font-size: .78rem; line-height: 1.35; }
  .hero-facts li { flex-direction: column; min-height: 68px; padding-inline: 4px; }
  .hero-facts .hero-rating { flex-direction: column; justify-content: center; min-height: 58px; }
  .hero-facts .fact-icon { width: 17px; height: 17px; }
  .home-process .process-list li { grid-template-columns: var(--step-size) minmax(0, 1fr); gap: 14px; }
  .home-process .process-list li:not(:last-child)::after {
    inset: var(--step-size) auto -20px calc(var(--step-size) / 2);
    width: 1px;
    height: auto;
  }
  .home-process .step-number { margin: 0; }
  .home-process .process-list p { margin-top: 6px; }
}

@media (max-width: 550px) {
  .service-cards { grid-template-columns: minmax(0, 1fr); }
  .service-card-photo { aspect-ratio: 2.25; }
  .hero-copy .button { padding-inline: 12px; font-size: .84rem; }
}

@media (max-width: 355px) {
  .home-hero .eyebrow { letter-spacing: .04em; }
  .hero-copy .actions { gap: 7px; }
  .hero-copy .button { padding-inline: 9px; }
  .hero-facts li, .hero-facts .hero-rating { font-size: .74rem; }
}
