/* Homepage introduction, competence cards and case feed heading. */
.services {
  margin: var(--block-gap) var(--content-gutter) 0;
  padding-top: 0;
  background: #fff;
}

.services > .layout {
  padding-inline: 0;
}

.services-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(48px, 5vw, 96px) clamp(36px, 3vw, 56px);
  text-align: center;
}

.services-panel .section-title,
.services-promo {
  width: min(100%, clamp(720px, 50vw, 1280px));
  margin-inline: auto;
}

.services-promo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 1.5vw, 28px);
  margin-top: clamp(22px, 2vw, 38px);
}

.services-promo p {
  max-width: 100%;
  text-wrap: pretty;
}

.services-promo-lead {
  line-height: 1.3;
}

.services-promo-detail {
  line-height: 1.5;
}

.services .service-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
}

.services .service-card,
.services .service-card:last-child {
  display: flex;
  flex-direction: column;
  grid-column: auto;
  min-height: clamp(300px, 23vw, 370px);
  color: var(--ink);
  background: transparent;
}

.services .service-card-frame::before {
  display: none;
}

.services .service-card::after {
  content: none;
}

.services .service-card__art {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  height: clamp(135px, 12vw, 180px);
  padding: clamp(18px, 1.5vw, 26px) clamp(18px, 1.5vw, 30px) 0;
}

.services .service-card__art img {
  display: block;
  width: min(65%, 180px);
  height: 100%;
  min-height: 0;
  max-height: 100%;
  object-fit: contain;
  object-position: left bottom;
}

.services .service-copy {
  padding: clamp(14px, 1vw, 20px) clamp(18px, 1.5vw, 30px) clamp(18px, 1.5vw, 30px);
}

.services .service-card h3,
.services .service-card-compact h3,
.home-updates-heading .section-title {
  font-family: var(--font-display);
  font-weight: 500;
  max-width: none;
  font-size: clamp(21px, 1.8vw, 28px);
  line-height: 1.08;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.services .service-card p,
.services .service-card-compact p {
  max-width: none;
  margin-top: 12px;
  font-size: clamp(15px, .95vw, 17px);
  line-height: 1.28;
}

.services .service-copy p a {
  color: inherit;
  border-bottom: 1px solid rgb(7 213 209 / 40%);
  text-decoration: none;
  transition: border-color 180ms ease;
}

.services .service-copy p a:is(:hover, :focus-visible) {
  border-bottom-color: transparent;
}

.home-updates-heading {
  display: grid;
  place-items: center;
  min-height: clamp(68px, 6vw, 110px);
  margin: var(--block-gap) var(--content-gutter) 0;
  padding: 14px 20px;
  background: #fff;
  text-align: center;
}

@media (max-width: 1240px) {
  .services .service-grid {
    display: flex;
    gap: var(--grid-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .services .service-grid::-webkit-scrollbar { display: none; }

  .services .service-card,
  .services .service-card:last-child {
    flex: 0 0 clamp(260px, 32vw, 360px);
    width: auto;
    height: auto;
    min-height: 320px;
    scroll-snap-align: start;
  }
}

@media (max-width: 700px) {
  .services-panel {
    padding-block: 42px 50px;
  }

  .services-panel .section-title { font-size: clamp(30px, 9vw, 36px); }

  .services .service-grid {
    padding-right: 52px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 52px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 52px), transparent);
  }

  .services .service-card,
  .services .service-card:last-child {
    flex-basis: 62vw;
    height: auto;
    min-height: 310px;
  }

  .services .service-card__art {
    padding-inline: 14px;
  }

  .services .service-copy {
    padding-inline: 14px;
  }
}
