/* Homepage treatment choices: photography-led cards with readable copy overlays. */
body.is-front-page[data-design="proposal-b"] #services .service-card {
  min-height: clamp(410px, 34vw, 500px);
  color: #fffaf2;
  background: #2f3935;
}

body.is-front-page[data-design="proposal-b"] #services .service-card__link {
  position: relative;
  display: flex;
  min-height: 100%;
  color: inherit;
  isolation: isolate;
}

body.is-front-page[data-design="proposal-b"] #services .service-card__media {
  position: absolute;
  z-index: -2;
  inset: 0;
  min-height: 0;
}

body.is-front-page[data-design="proposal-b"] #services .service-card__media::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 29, 26, 0.04) 18%, rgba(20, 29, 26, 0.38) 54%, rgba(20, 29, 26, 0.92) 100%),
    linear-gradient(90deg, rgba(20, 29, 26, 0.16), transparent 58%);
  content: "";
}

body.is-front-page[data-design="proposal-b"] #services .service-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

body.is-front-page[data-design="proposal-b"] #services .service-card:nth-child(1) .service-card__media img {
  object-position: 52% center;
}

body.is-front-page[data-design="proposal-b"] #services .service-card:nth-child(2) .service-card__media img {
  object-position: 58% center;
}

body.is-front-page[data-design="proposal-b"] #services .service-card:nth-child(3) .service-card__media img {
  object-position: 48% center;
}

body.is-front-page[data-design="proposal-b"] #services .service-card:nth-child(4) .service-card__media img {
  object-position: 40% center;
}

body.is-front-page[data-design="proposal-b"] #services .service-card__body {
  z-index: 2;
  width: 100%;
  min-height: clamp(410px, 34vw, 500px);
  padding: clamp(30px, 3.4vw, 48px);
  justify-content: flex-end;
  color: #fffaf2;
  background: transparent;
}

body.is-front-page[data-design="proposal-b"] #services .service-card__body h3,
body.is-front-page[data-design="proposal-b"] #services .service-card__body p:not(.service-card__en),
body.is-front-page[data-design="proposal-b"] #services .service-card__more {
  color: #fffaf2;
}

body.is-front-page[data-design="proposal-b"] #services .service-card__body p:not(.service-card__en) {
  max-width: 34em;
  margin-top: 12px;
  color: rgba(255, 250, 242, 0.9);
}

body.is-front-page[data-design="proposal-b"] #services .service-card__more {
  margin-top: 18px;
  padding-top: 0;
}

@media (max-width: 720px) {
  body.is-front-page[data-design="proposal-b"] #services .service-card,
  body.is-front-page[data-design="proposal-b"] #services .service-card__body {
    min-height: 420px;
  }

  body.is-front-page[data-design="proposal-b"] #services .service-card__body {
    padding: 28px 24px;
  }

  body.is-front-page[data-design="proposal-b"] #services .service-card__media::after {
    background: linear-gradient(180deg, rgba(20, 29, 26, 0.03) 12%, rgba(20, 29, 26, 0.46) 50%, rgba(20, 29, 26, 0.94) 100%);
  }
}
