/* A single rule marks the transition from Personally Led to Services. */
.home-page #about.intro { border-bottom: 0; }
.home-page #services { border-top: 1px solid var(--line, #343434); }
#services:has(> .home-service-navigator) .sectionhead { margin-bottom: clamp(24px, 3vw, 38px); }
#services:has(> .home-service-navigator) .sectionhead .right-copy { color: var(--color-white, #f4f3ef); }
.home-service-navigator .service-tabs {
  gap: clamp(22px, 3vw, 42px);
  margin-bottom: clamp(30px, 3.6vw, 45px);
  border-bottom: 0;
}
.home-service-navigator .service-tabs button {
  position: relative;
  padding-bottom: 13px;
  border-bottom: 0;
}
.home-service-navigator .service-tabs button::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--line, #343434);
  pointer-events: none;
}
.home-service-navigator .service-tabs button[aria-selected="true"] {
  color: var(--color-accent, #ff3c89);
  font-weight: 600;
}
.home-service-navigator .service-tabs button[aria-selected="true"]::after {
  height: 2px;
  background: currentColor;
}
.home-service-navigator .service-panels > .service-tab-panel[hidden] { display: none !important; }
.home-service-navigator .navigator-layout { display: block; min-height: 0; }
/* The cards are title links. The rule sits midway between successive rows. */
.home-service-navigator .navigator-cards {
  --service-divider-gap: clamp(28px, 2.9vw, 42px);
  gap: 0 clamp(26px, 4vw, 52px);
}
.home-service-navigator .navigator-card h3 {
  color: var(--color-accent, #ff3c89);
}
/* Descriptions sit below the title links at the homepage body size. */
.home-service-navigator .navigator-card p {
  margin: 8px 0 0;
  font-size: var(--type-body, 16px);
  line-height: var(--leading-body, 1.7);
}
.home-service-navigator .service-title-link { color: inherit; }
.home-service-navigator .service-title-link span { white-space: nowrap; font-size: .7em; }
.home-service-navigator .service-title-link:hover,
.home-service-navigator .service-title-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: .2em;
}
@media (min-width: 721px) {
  .home-service-navigator .navigator-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-service-navigator .navigator-card:nth-last-child(n + 3) {
    padding-bottom: var(--service-divider-gap);
    justify-content: flex-end;
  }
  .home-service-navigator .navigator-card:nth-child(n + 3) {
    border-top: 1px solid rgb(255 60 137 / .25);
    padding-top: var(--service-divider-gap);
  }
}
@media (max-width: 720px) {
  .home-service-navigator .navigator-card:not(:last-child) { padding-bottom: var(--service-divider-gap); }
  .home-service-navigator .navigator-card + .navigator-card {
    border-top: 1px solid rgb(255 60 137 / .25);
    padding-top: var(--service-divider-gap);
  }
  .home-service-navigator .service-tabs { flex-wrap: wrap; gap: 9px 20px; }
  .home-service-navigator .service-tabs button { padding-bottom: 7px; }
}

/* Give the dedicated Services page more room while keeping homepage spacing compact. */
#services.services-page-content {
  padding-block: clamp(78px, 9vw, 134px);
}
#services.services-page-content .sectionhead {
  margin-bottom: clamp(40px, 4.45vw, 64px);
}
#services.services-page-content .service-tabs {
  margin-bottom: clamp(44px, 4.8vw, 70px);
}
#services.services-page-content .navigator-cards {
  --service-divider-gap: clamp(36px, 3.8vw, 54px);
}

@media (min-width: 951px) {
  .english-services .services-hero .hero-copy {
    display: grid;
    grid-template-columns: max-content;
    justify-content: start;
  }

  .english-services .services-hero h1 {
    width: max-content;
    max-width: none;
  }

  .english-services .services-hero .hero-description {
    width: 0;
    min-width: 100%;
    text-wrap: wrap;
  }

  .english-services .services-hero .hero-actions .textlink {
    align-items: flex-end;
    padding-bottom: 7px;
  }

  .english-services #services .service-tabs [role="tab"][aria-selected="false"] {
    color: var(--color-white);
  }

  :is(.english-services, .home-page) #services .service-tabs [role="tab"][aria-selected="false"]:is(:hover, :focus-visible) {
    color: var(--color-accent);
  }

  .english-services #services .navigator-card .service-title-link:is(:hover, :focus-visible) {
    color: #ff85b5;
  }

  .english-services .services-case-studies {
    margin-top: clamp(36px, 4vw, 56px);
  }
}
