.service-page .site-header,
.contact-page .site-header {
  background: rgba(18, 18, 18, 0.94);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.service-page-hero {
  min-height: 42rem;
  padding: 8.5rem var(--pad) 4rem;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 1.1fr);
  align-items: stretch;
  gap: clamp(2rem, 6vw, 6rem);
  color: var(--white);
  background: var(--ink);
}

.service-page-hero-copy {
  width: min(100%, 39rem);
  min-width: 0;
  margin-left: max(0px, calc((100vw - var(--max)) / 2));
  align-self: center;
}

.service-page-hero .section-kicker {
  color: var(--orange);
}

.service-page-hero h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 3.7vw, 4rem);
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.service-page-hero h1 span {
  color: var(--orange);
}

.service-page-hero-copy > p:not(.section-kicker) {
  max-width: 33rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.service-page-hero-media {
  position: relative;
  min-height: 30rem;
  margin: 0;
  overflow: hidden;
}

.service-page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 45%, rgba(18, 18, 18, 0.38));
}

.service-intro {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 6.5rem) var(--pad);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(3rem, 7vw, 7rem);
}

.service-intro h2,
.reference-heading h2,
.contact-page-hero h1,
.contact-options h2 {
  margin: 0;
  font-size: clamp(3rem, 5.4vw, 5.5rem);
}

.service-intro-copy > p:not(.section-kicker) {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: rgba(18, 18, 18, 0.68);
  font-size: 1.05rem;
}

.service-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-benefits li {
  padding: 1.25rem 0;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.service-benefits span {
  color: var(--orange-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.service-benefits h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
}

.service-benefits p {
  margin: 0;
  color: rgba(18, 18, 18, 0.64);
  font-size: 0.9rem;
}

.references {
  padding: clamp(4rem, 7vw, 6.5rem) var(--pad);
  color: var(--white);
  background: var(--ink);
}

.reference-heading,
.reference-grid {
  width: min(100%, calc(var(--max) - (2 * var(--pad))));
  margin-right: auto;
  margin-left: auto;
}

.reference-heading {
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: 1fr minmax(18rem, 0.42fr);
  align-items: end;
  gap: 3rem;
}

.reference-heading p:last-child {
  margin: 0 0 0.4rem;
  color: rgba(255, 255, 255, 0.64);
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.8vw, 1.5rem);
}

.reference-card {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: var(--ink-soft);
}

.reference-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.04);
  transition: filter 240ms ease, transform 360ms ease;
}

.reference-card:hover img {
  filter: saturate(1) contrast(1.04);
  transform: scale(1.025);
}

.reference-card figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 3rem 1rem 1rem;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 750;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent);
}

.reference-card figcaption span {
  display: block;
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-next {
  padding: clamp(4rem, 7vw, 6.5rem) var(--pad);
  text-align: center;
  background: var(--orange);
}

.service-next h2 {
  max-width: 58rem;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.service-next p {
  max-width: 40rem;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 650;
}

.service-next .button-primary {
  color: var(--white);
  background: var(--ink);
}

.contact-page-hero {
  padding: 10rem var(--pad) clamp(4rem, 7vw, 6.5rem);
  color: var(--white);
  background: #c9551a;
}

.contact-page-hero-inner,
.contact-options-inner {
  width: min(100%, calc(var(--max) - (2 * var(--pad))));
  margin: 0 auto;
}

.contact-page-hero h1 {
  max-width: 62rem;
}

.contact-page-hero .section-kicker {
  color: rgba(255, 255, 255, 0.82);
}

.contact-page-hero h1 em {
  color: var(--white);
}

.contact-page-hero p:last-child {
  max-width: 44rem;
  margin: 2rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  font-weight: 650;
}

.contact-options {
  padding: clamp(4rem, 7vw, 6.5rem) var(--pad);
}

.contact-options-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(3rem, 7vw, 7rem);
}

.contact-cards {
  border-top: 1px solid var(--line);
}

.contact-card {
  min-height: 6rem;
  padding: 1.15rem 0;
  display: grid;
  grid-template-columns: 6rem 1fr auto;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.contact-card span:first-child {
  color: rgba(18, 18, 18, 0.56);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card span:last-child {
  display: grid;
  width: 2.6rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.contact-card:hover span:last-child {
  color: var(--white);
  background: var(--orange);
  border-color: var(--orange);
}

.contact-note {
  margin-top: 2rem;
  padding: 1.25rem;
  color: rgba(18, 18, 18, 0.72);
  background: var(--paper-deep);
}

@media (max-width: 900px) {
  .service-page-hero {
    padding-top: 9.5rem;
  }

  .service-page-hero,
  .service-intro,
  .contact-options-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-page-hero-copy {
    margin-left: 0;
  }

  .service-page-hero-media {
    min-height: 25rem;
  }

  .reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 640px) {
  .service-page-hero {
    min-height: auto;
    padding-top: 8rem;
  }

  .service-page-hero h1,
  .service-intro h2,
  .reference-heading h2,
  .contact-page-hero h1,
  .contact-options h2 {
    font-size: clamp(2.5rem, 12vw, 3rem);
  }

  .service-page-hero-media {
    min-height: 19rem;
  }

  .service-intro,
  .references,
  .service-next,
  .contact-options {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .reference-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .reference-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .reference-card {
    aspect-ratio: 1 / 1;
  }

  .reference-card figcaption {
    padding: 2.5rem 0.7rem 0.7rem;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .contact-page-hero {
    padding-top: 8rem;
  }

  .contact-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .contact-card strong {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .contact-card span:first-child {
    grid-column: 1 / -1;
  }
}
