/* Shared service detail pages. All selectors are scoped to a service page. */
body[data-service] {
  --service-soft: #f3f3f0;
  --service-soft-strong: #e9eae5;
  --service-ink: #171817;
  --service-orange: #f15a24;
  --service-gutter: clamp(1.25rem, 4vw, 4rem);
}

body[data-service] .service-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin: 0 0 1.35rem;
  color: #777973;
  font-size: .75rem;
}

body[data-service] .service-breadcrumbs a {
  text-decoration: none;
}

body[data-service] .service-breadcrumbs a:hover {
  color: var(--service-orange);
}

body[data-service] .service-breadcrumbs span[aria-hidden="true"] {
  color: #bbbcb7;
}

body[data-service] .service-detail-hero .page-hero__copy {
  max-width: 47rem;
}

body[data-service] .service-detail-hero h1 {
  max-width: none;
  font-size: clamp(3rem, 5.2vw, 5.8rem);
}

body[data-service] .service-detail-hero .hero-intro {
  max-width: 39rem;
}

body[data-service] .service-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 2rem;
}

body[data-service] .service-detail__button {
  display: inline-flex;
  gap: .7rem;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .8rem 1.2rem;
  border: 1px solid var(--service-ink);
  border-radius: 99rem;
  background: var(--service-ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

body[data-service] .service-detail__button .sv-icon-arrow {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

body[data-service] .service-detail__button:hover {
  border-color: #33352f;
  background: #33352f;
  transform: translateY(-1px);
}

body[data-service] .service-detail__button--ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--service-ink);
}

body[data-service] .service-detail__button--ghost:hover {
  border-color: var(--service-orange);
  background: #fff;
}

body[data-service] .service-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

body[data-service] .service-detail__tags li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .75rem;
  border: 1px solid var(--line);
  border-radius: 99rem;
  color: #5e605b;
  font-size: .75rem;
  font-weight: 600;
}

body[data-service] .service-detail__tag-icon {
  width: .95rem;
  height: .95rem;
  flex: 0 0 auto;
  color: var(--service-orange);
}

body[data-service] .service-detail-hero .page-hero__media {
  aspect-ratio: 1 / 1.08;
}

body[data-service] .service-detail-hero .page-hero__badge {
  min-width: 11.5rem;
}

body[data-service] .service-detail__section {
  padding: clamp(4.5rem, 7vw, 7rem) 0;
}

body[data-service] .service-detail__section--soft {
  background: var(--service-soft);
}

body[data-service] .service-detail__intro {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

body[data-service] .service-detail__intro h2,
body[data-service] .service-detail__section-heading h2,
body[data-service] .service-detail__media-copy h2,
body[data-service] .service-detail__cta h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 550;
  letter-spacing: -.06em;
  line-height: .99;
}

body[data-service] .service-detail__intro h2,
body[data-service] .service-detail__section-heading h2 {
  max-width: 13ch;
  font-size: clamp(2.55rem, 4vw, 4.6rem);
}

body[data-service] .service-detail__lead {
  min-width: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.68;
}

body[data-service] .service-detail__lead p {
  margin: 0 0 1.2rem;
}

body[data-service] .service-detail__checklist-carousel {
  min-width: 0;
}

body[data-service] .service-detail__checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

body[data-service] .service-detail__checklist-scrollbar {
  display: none;
}

body[data-service] .service-detail__checklist li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  min-width: 0;
  min-height: 4.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: #fff;
  color: var(--service-ink);
  font-weight: 600;
}

body[data-service] .service-detail__checklist li::before {
  display: none;
}

body[data-service] .service-detail__check-icon {
  flex: 0 0 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: .05rem;
  color: var(--service-orange);
}

body[data-service] .service-detail__checklist li span {
  min-width: 0;
}

body[data-service] .service-detail__media-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(20rem, .88fr);
  overflow: hidden;
  border-radius: 1.15rem;
  background: var(--service-ink);
  color: #fff;
}

body[data-service] .service-detail__media {
  min-height: 35rem;
  margin: 0;
  overflow: hidden;
}

body[data-service] .service-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-service] .service-detail__media-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem);
}

body[data-service] .service-detail__media-copy .eyebrow {
  color: var(--service-orange);
}

body[data-service] .service-detail__media-copy h2 {
  max-width: 11ch;
  color: #fff;
  font-size: clamp(2.45rem, 3.8vw, 4.25rem);
}

body[data-service] .service-detail__media-copy p:not(.eyebrow) {
  max-width: 32rem;
  margin: 1.3rem 0 0;
  color: #c9cac6;
  line-height: 1.65;
}

body[data-service] .service-detail__section--results {
  background: var(--service-soft);
}

body[data-service] .service-detail__section--results .service-detail__section-heading {
  margin-bottom: 2rem;
}

body[data-service] .service-detail__section--results .service-detail__section-heading h2 {
  max-width: 15ch;
  font-size: clamp(2.15rem, 3.4vw, 3.6rem);
}

body[data-service] .service-detail__result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

body[data-service] .service-detail__result-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}

body[data-service] .service-detail__result-media {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: var(--service-ink);
}

body[data-service] .service-detail__result-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-service] .service-detail__result-media--comparison .before-after {
  position: absolute;
  inset: 0;
  height: 100%;
  overflow: hidden;
  background: var(--service-ink);
  touch-action: pan-y;
  cursor: ew-resize;
}

body[data-service] .service-detail__result-media--comparison .ba-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

body[data-service] .service-detail__result-media--comparison .ba-before-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

body[data-service] .service-detail__result-media--comparison .ba-label {
  position: absolute;
  top: 1rem;
  z-index: 3;
  padding: .42rem .7rem;
  border: 0;
  border-radius: 99rem;
  color: #fff;
  font: 700 .66rem/1 var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
}

body[data-service] .service-detail__result-media--comparison .ba-label-before { left: 1rem; }
body[data-service] .service-detail__result-media--comparison .ba-label-after { right: 1rem; }

body[data-service] .service-detail__result-media--comparison .ba-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

body[data-service] .service-detail__result-media--comparison .ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  z-index: 3;
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  pointer-events: none;
}

body[data-service] .service-detail__result-media--comparison .ba-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--service-orange);
  box-shadow: 0 0 0 5px rgba(0, 0, 0, .13);
  color: #fff;
  font-size: 1.1rem;
  transform: translate(-50%, -50%);
}

body[data-service] .service-detail__result-media--comparison .ba-divider span::before {
  content: "↔";
}

body[data-service] .service-detail__result-copy {
  padding: 1.25rem 1.35rem 1.4rem;
}

body[data-service] .service-detail__result-copy h3 {
  margin: 0;
  font: 600 clamp(1.25rem, 1.8vw, 1.65rem)/1.12 var(--display);
  letter-spacing: -.04em;
}

body[data-service] .service-detail__result-copy p {
  max-width: 34rem;
  margin: .6rem 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

body[data-service] .service-detail__process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
}

body[data-service] .service-detail__process article {
  min-height: 17rem;
  padding: 1.4rem;
  border-right: 1px solid var(--line);
  background: #fff;
}

body[data-service] .service-detail__process article:last-child {
  border-right: 0;
}

body[data-service] .service-detail__process span {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 4rem;
  border-radius: 50%;
  background: var(--service-orange);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
}

body[data-service] .service-detail__process h3 {
  margin: 0;
  font: 600 1.25rem/1.15 var(--display);
  letter-spacing: -.04em;
}

body[data-service] .service-detail__process p {
  margin: .7rem 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

body[data-service] .service-detail__section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(18rem, .65fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

body[data-service] .service-detail__section-heading > p {
  max-width: 32rem;
  margin: 0 0 .3rem;
  color: var(--muted);
  line-height: 1.65;
}

body[data-service] .service-detail__use-grid,
body[data-service] .service-detail__related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}

body[data-service] .service-detail__use-card {
  min-height: 13rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: #fff;
}

body[data-service] .service-detail__use-card span {
  color: var(--service-orange);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body[data-service] .service-detail__use-card h3 {
  margin: 2.8rem 0 .6rem;
  font: 600 1.35rem/1.15 var(--display);
  letter-spacing: -.04em;
}

body[data-service] .service-detail__use-card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

body[data-service] .service-detail__related-card {
  display: grid;
  grid-template-rows: 12rem auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .95rem;
  background: #fff;
  color: var(--service-ink);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

body[data-service] .service-detail__related-card:hover {
  box-shadow: 0 1rem 2rem rgba(23, 24, 23, .1);
  transform: translateY(-3px);
}

body[data-service] .service-detail__related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-service] .service-detail__related-copy {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem 1.25rem;
}

body[data-service] .service-detail__related-copy span:first-child {
  font: 600 1.05rem/1.2 var(--display);
  letter-spacing: -.03em;
}

body[data-service] .service-detail__related-copy span:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--service-orange);
}

body[data-service] .service-detail__related-arrow .sv-icon-arrow { width: 1.1rem; height: 1.1rem; }

body[data-service] .service-detail__faq {
  max-width: 58rem;
  margin: 2.25rem auto 0;
  border-top: 1px solid var(--line);
}

body[data-service] .service-detail__faq details {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

body[data-service] .service-detail__faq summary {
  cursor: pointer;
  list-style: none;
  font: 600 1.14rem/1.3 var(--display);
  letter-spacing: -.03em;
}

body[data-service] .service-detail__faq summary::-webkit-details-marker {
  display: none;
}

body[data-service] .service-detail__faq summary::after {
  float: right;
  color: var(--service-orange);
  content: "+";
}

body[data-service] .service-detail__faq details[open] summary::after {
  content: "−";
}

body[data-service] .service-detail__faq p {
  max-width: 46rem;
  margin: 1rem 2rem .2rem 0;
  color: var(--muted);
}

body[data-service] .service-detail__cta {
  padding: clamp(4.75rem, 7vw, 6.75rem) 0;
  background: var(--service-orange);
  color: #fff;
}

body[data-service] .service-detail__cta .page-shell {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

body[data-service] .service-detail__cta .eyebrow {
  color: #fff;
}

body[data-service] .service-detail__cta h2 {
  max-width: 12ch;
  color: #fff;
  font-size: clamp(2.7rem, 4.35vw, 4.9rem);
}

body[data-service] .service-detail__cta p:not(.eyebrow) {
  max-width: 38rem;
  margin: 0 0 1.6rem;
  font-size: 1.05rem;
  line-height: 1.62;
}

body[data-service] .service-detail__cta .service-detail__button {
  border-color: var(--service-ink);
}

@media (max-width: 900px) {
  body[data-service] .service-detail__process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-service] .service-detail__process article:nth-child(2),
  body[data-service] .service-detail__process article:nth-child(4) {
    border-right: 0;
  }

  body[data-service] .service-detail__process article:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  body[data-service] .service-detail__process article:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  body[data-service] .service-detail__use-grid,
  body[data-service] .service-detail__related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  body[data-service] .service-detail-hero h1 {
    max-width: none;
    font-size: clamp(2.35rem, 9.7vw, 3.5rem);
    line-height: 1.02;
  }

  body[data-service] .service-detail__actions {
    display: grid;
  }

  body[data-service] .service-detail__button {
    width: 100%;
  }

  body[data-service] .service-detail-hero .page-hero__media {
    aspect-ratio: 1 / 1;
  }

  body[data-service] .service-detail__intro,
  body[data-service] .service-detail__section-heading,
  body[data-service] .service-detail__cta .page-shell,
  body[data-service] .service-detail__media-panel {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  body[data-service] .subpage-comparison__intro h2 {
    max-width: none;
    font-size: 2rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  body[data-service] .service-detail__checklist {
    display: flex;
    gap: .75rem;
    margin-inline: 0;
    padding: 0 var(--service-gutter) .65rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-padding-inline: var(--service-gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  body[data-service] .service-detail__checklist-carousel {
    width: calc(100% + 2 * var(--service-gutter));
    margin-inline: calc(-1 * var(--service-gutter));
  }

  body[data-service] .service-detail__checklist::-webkit-scrollbar {
    display: none;
  }

  body[data-service] .service-detail__checklist-scrollbar {
    position: relative;
    display: block;
    height: .2rem;
    margin: .7rem var(--service-gutter) 0;
    overflow: hidden;
    border-radius: 99rem;
    background: var(--line);
  }

  body[data-service] .service-detail__checklist-scrollbar span {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 20%;
    border-radius: inherit;
    background: var(--service-orange);
    transition: left .12s ease, width .12s ease;
  }

  body[data-service] .service-detail__checklist li {
    flex: 0 0 min(82vw, 21rem);
    min-height: 4.25rem;
    scroll-snap-align: start;
  }

  body[data-service] .service-detail__media-panel {
    gap: 0;
  }

  body[data-service] .service-detail__media {
    height: clamp(18rem, 78vw, 22rem);
    min-height: 0;
    aspect-ratio: auto;
  }

  body[data-service] .service-detail__media-copy {
    min-height: 24rem;
    padding: 2rem 1.7rem;
  }

  body[data-service] .service-detail__use-grid,
  body[data-service] .service-detail__related-grid {
    grid-template-columns: 1fr;
  }

  body[data-service] .service-detail__result-grid {
    display: flex;
    gap: .85rem;
    margin-inline: calc(-1 * var(--service-gutter));
    padding: .1rem var(--service-gutter) .7rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--service-gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body[data-service] .service-detail__result-grid::-webkit-scrollbar {
    display: none;
  }

  body[data-service] .service-detail__result-card {
    flex: 0 0 min(84vw, 24rem);
    scroll-snap-align: start;
  }

  body[data-service] .service-detail__result-media {
    aspect-ratio: 4 / 3;
  }

  body[data-service] .service-detail__result-copy {
    padding: 1rem 1.1rem 1.2rem;
  }

  body[data-service] .service-detail__related-card {
    grid-template-rows: 13rem auto;
  }
}

@media (max-width: 560px) {
  body[data-service] .service-detail__process {
    grid-template-columns: 1fr;
  }

  body[data-service] .service-detail__process article,
  body[data-service] .service-detail__process article:nth-child(2) {
    min-height: 13rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  body[data-service] .service-detail__process article:last-child {
    border-bottom: 0;
  }

  body[data-service] .service-detail__process span {
    margin-bottom: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-service] .service-detail__button,
  body[data-service] .service-detail__related-card {
    transition: none;
  }
}

/* Shared service-page hierarchy and media treatment. */
body[data-service] .service-detail-hero .page-hero__media--comparison {
  aspect-ratio: 16 / 11;
}

body[data-service] .service-detail__hero-comparison {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: inherit;
  background: var(--service-ink);
  touch-action: pan-y;
  cursor: ew-resize;
}

body[data-service] .service-detail__hero-comparison .ba-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

body[data-service] .service-detail__hero-comparison .ba-before-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

body[data-service] .service-detail__hero-comparison .ba-label {
  position: absolute;
  top: 1rem;
  z-index: 3;
  padding: .42rem .7rem;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 99rem;
  color: #fff;
  font: 700 .66rem/1 var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
}

body[data-service] .service-detail__hero-comparison .ba-label-before { left: 1rem; }
body[data-service] .service-detail__hero-comparison .ba-label-after { right: 1rem; }

body[data-service] .service-detail__hero-comparison .ba-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

body[data-service] .service-detail__hero-comparison .ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  z-index: 3;
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  pointer-events: none;
}

body[data-service] .service-detail__hero-comparison .ba-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--service-orange);
  box-shadow: 0 0 0 5px rgba(0, 0, 0, .13);
  color: #fff;
  font-size: 0;
  transform: translate(-50%, -50%);
}

body[data-service] .service-detail__hero-comparison .ba-divider span::before {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  background: center / 1.5rem 1.5rem no-repeat url("data:image/svg+xml,%3Csvg height='24' width='24' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23ffffff'%3E%3Cpath d='M102,60A10,10,0,1,1,92,50,10,10,0,0,1,102,60Zm62,10a10,10,0,1,0-10-10A10,10,0,0,0,164,70ZM92,118a10,10,0,1,0,10,10A10,10,0,0,0,92,118Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,118ZM92,186a10,10,0,1,0,10,10A10,10,0,0,0,92,186Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,186Z'/%3E%3C/svg%3E");
  content: "";
  transform: translate(-50%, -50%);
}

body[data-service] .service-detail__intro-title,
body[data-service] .service-detail__section-title--accent {
  margin: 0;
  color: var(--service-orange);
  font: 550 clamp(2.55rem, 4vw, 4.6rem) / .99 var(--display);
  letter-spacing: -.06em;
}

body[data-service] .service-detail__section--soft .service-detail__section-title--accent {
  color: var(--service-ink);
}

body[data-service] .service-detail__intro-subtitle,
body[data-service] .service-detail__section-subtitle {
  max-width: 24rem;
  margin: .8rem 0 0;
  color: var(--muted);
  font: 500 clamp(1.05rem, 1.4vw, 1.28rem) / 1.4 var(--body);
}

body[data-service] .service-detail__section-heading .service-detail__section-title--accent {
  max-width: 14ch;
}

body[data-service] .service-detail__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Additional services use the same image-overlay treatment as the homepage. */
body[data-service] .service-detail__related-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  margin-inline: 0;
  padding: .15rem .15rem .7rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body[data-service] .service-detail__related-grid::-webkit-scrollbar {
  display: none;
}

body[data-service] .service-detail__related-card {
  position: relative;
  display: block;
  flex: 0 0 calc((100% - 2rem) / 3);
  min-height: 19rem;
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  background: var(--service-ink);
  color: #fff;
  scroll-snap-align: start;
}

body[data-service] .service-detail__related-card::after {
  position: absolute;
  inset: 35% 0 0;
  z-index: 1;
  background: linear-gradient(transparent, rgba(12, 13, 12, .9));
  content: "";
  pointer-events: none;
}

body[data-service] .service-detail__related-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-service] .service-detail__related-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  padding: 1.25rem;
  color: #fff;
}

body[data-service] .service-detail__related-copy span:first-child {
  color: #fff;
  font: 600 clamp(1.1rem, 1.7vw, 1.45rem) / 1.15 var(--display);
  letter-spacing: -.04em;
}

body[data-service] .service-detail__related-copy span:last-child {
  flex: 0 0 auto;
  color: #fff;
}

/* The four-step service flow becomes the same swipeable card rail as the home flow. */
body[data-service] .service-detail__process article {
  position: relative;
}

body[data-service] .service-detail__process .process-card-image {
  display: block;
  width: 4.15rem;
  height: 4.15rem;
  margin: 0 0 1rem;
  object-fit: contain;
}

body[data-service] .service-detail__process h3 {
  margin: 0 0 .7rem;
}

body[data-service] .service-detail__process p {
  margin: 0;
}

/* Consistent comparison labels throughout the site. */
body[data-page] .before-after .ba-label-before {
  border-color: transparent;
  background: #62645f;
  color: #fff;
}

body[data-page] .before-after .ba-label-after {
  border-color: transparent;
  background: #4f8b68;
  color: #fff;
}

@media (max-width: 800px) {
  body[data-service] .service-detail-hero .page-hero__media--comparison {
    aspect-ratio: 4 / 3;
  }

  body[data-service] .service-detail__intro-title,
  body[data-service] .service-detail__section-title--accent {
    font-size: clamp(2.35rem, 11vw, 3.6rem);
  }

  body[data-service] .service-detail__section-heading .service-detail__section-title--accent {
    max-width: none;
  }

  body[data-service] .service-detail__related-grid {
    margin-inline: calc(-1 * var(--service-gutter));
    padding-inline: 0 .25rem;
    scroll-padding-inline: var(--service-gutter);
  }

  /* Keep the first related card aligned with the page shell at rest. The
     spacer scrolls away with the rail, so later cards can still reach the
     same edge while swiping. */
  body[data-service] .service-detail__related-grid::before {
    flex: 0 0 max(0px, calc(var(--service-gutter) - 1rem));
    content: "";
  }

  body[data-service] .service-detail__related-card {
    flex-basis: min(82vw, 22rem);
    min-height: 18rem;
  }

  body[data-service] .service-detail__process {
    display: flex;
    gap: .9rem;
    margin-inline: calc(-1 * var(--service-gutter));
    padding: 1.25rem var(--service-gutter) 2.25rem;
    border: 0;
    border-radius: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--service-gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body[data-service] .service-detail__process::-webkit-scrollbar {
    display: none;
  }

  body[data-service] .service-detail__process article,
  body[data-service] .service-detail__process article:nth-child(2),
  body[data-service] .service-detail__process article:nth-child(4),
  body[data-service] .service-detail__process article:last-child {
    display: flex;
    flex: 0 0 min(84vw, 20rem);
    flex-direction: column;
    justify-content: flex-end;
    min-height: 15rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: .9rem;
    scroll-snap-align: start;
  }

  body[data-service] .service-detail__process .process-card-image {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    width: 3.7rem;
    height: 3.7rem;
    margin: 0;
  }
}

/* On mobile, lead with the proof: breadcrumbs, then the service visual, then copy. */
@media (max-width: 800px) {
  body[data-service] .service-detail-hero {
    padding: 2.5rem 0 2.5rem;
  }

  body[data-service] .service-detail-hero > .page-shell > .page-hero__copy {
    display: contents;
  }

  body[data-service] .service-detail-hero > .page-shell > .page-hero__copy > .service-breadcrumbs {
    order: 1;
    margin-bottom: 0;
  }

  body[data-service] .service-detail-hero > .page-shell > .page-hero__media {
    order: 2;
  }

  body[data-service] .service-detail-hero > .page-shell > .page-hero__copy > h1 {
    order: 3;
  }

  body[data-service] .service-detail-hero > .page-shell > .page-hero__copy > .hero-intro {
    order: 4;
    margin-top: 0;
  }

  body[data-service] .service-detail-hero > .page-shell > .page-hero__copy > .service-detail__actions {
    order: 5;
    margin-top: 0;
  }

  body[data-service] .service-detail-hero > .page-shell > .page-hero__copy > .service-detail__tags {
    order: 6;
    margin-top: 0;
  }

  body[data-service] .service-detail-hero > .page-shell {
    row-gap: 1rem;
  }
}
