/* v14: size headings from the column they occupy, then balance natural wraps. */
.editorial-layout-v13 :is(.sub-hero h1, .company-band h2, .copy-section h2,
  .case-copy h2, .contact-description h2, .contact-banner h2, .fde-practice > h2,
  .ai-enablement h2, .material-request-intro h2, .home-flow .service-story-panel h3,
  .home-flow .service-world-intro h2, .approach-copy h2, .journal-card h3, .detail-item h3,
  .team-credential-heading-v10 h3, .work-caption h2, .work-caption h3) {
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}

/* Inline-size containment leaves block height and the existing section flow intact. */
@supports (container-type: inline-size) {
  .editorial-layout-v13 :is(.sub-hero > .wrap, .company-band .company-grid > div:last-child,
    .copy-section, .case-copy, .contact-description, .fde-practice, .ai-enablement-copy,
    .service-story-panel, .service-world-intro, .approach-copy) {
    container-type: inline-size;
    min-width: 0;
  }

  .editorial-layout-v13.editorial-page .sub-hero h1 {
    font-size: clamp(30px, 4cqi, 55px);
  }
  .editorial-layout-v13.company-service-v7.company-page .sub-hero h1 {
    font-size: clamp(30px, 4cqi, 46px);
  }
  .editorial-layout-v13.editorial-v23 .company-band h2 {
    font-size: clamp(30px, 7.3cqi, 50px);
  }
  .editorial-layout-v13.editorial-page .copy-section h2 {
    font-size: clamp(27px, 4.6cqi, 40px);
  }
  .editorial-layout-v13 .case-copy h2 {
    font-size: clamp(25px, 6cqi, 32px);
  }
  .editorial-layout-v13 .fde-practice > h2 {
    font-size: clamp(28px, 4.6cqi, 44px);
  }
  .editorial-layout-v13 .ai-enablement h2 {
    font-size: clamp(26px, 6.5cqi, 36px);
  }
  .editorial-layout-v13 .home-flow :is(.service-story-panel h3, .service-world-intro h2) {
    font-size: clamp(24px, 6.4cqi, 36px);
  }
  .editorial-layout-v13 .approach-copy h2 {
    font-size: clamp(28px, 6cqi, 42px);
  }

  .philosophy-v13 .philosophy-main .ph-wrap {
    container-type: inline-size;
  }
  .editorial-layout-v13.philosophy-v13 .ph-hero h1 {
    font-size: clamp(30px, 4.8cqi, 54px);
    text-wrap: balance;
  }
  .editorial-layout-v13.philosophy-v13 :is(.ph-section h2, .ph-end h2) {
    font-size: clamp(26px, 3.3cqi, 36px);
    text-wrap: balance;
  }
}

/* Keep prose within a comfortable reading measure; short leads can stay on one line. */
.editorial-layout-v13 :is(.sub-hero .lead, .copy-section > p, .case-copy p,
  .contact-description > p, .material-request-intro .material-description,
  .fde-practice-copy > p, .ai-enablement-copy > p, .detail-item p,
  .founder-layout > div > p, .privacy-content p) {
  max-width: 44em;
  overflow-wrap: break-word;
}

/* The record and its meaning form one quiet band, followed by distinct expertise rows. */
.editorial-layout-v13 .team-credentials-v13 {
  max-width: 960px;
  margin-block: 40px 48px;
}
.editorial-layout-v13 .team-credentials-v13 .team-practice-v14 {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  padding: 28px 32px;
  border: 0;
  background: #e5ece4;
}
.editorial-layout-v13 .team-practice-v14 .team-record-v10 {
  gap: 12px;
  padding-top: 5px;
  font-size: 14px;
  line-height: 1.7;
}
.editorial-layout-v13 .team-practice-v14 .team-record-v10 strong {
  font-size: 54px;
}
.editorial-layout-v13 .team-practice-detail-v14 .team-credential-heading-v10 {
  margin-bottom: 14px;
}
.editorial-layout-v13 .team-credentials-v13 .team-credential-copy-v10 p {
  max-width: 40em;
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: break-word;
}
.editorial-layout-v13 .team-members-v13 {
  margin-top: 36px;
}
.editorial-layout-v13 .team-members-label-v13 {
  margin-bottom: 10px;
}
.editorial-layout-v13 .team-members-grid-v13 {
  display: block;
}
.editorial-layout-v13 .team-members-grid-v13 > .team-credential-v10 {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid #c6d1c8;
}
.editorial-layout-v13 .team-members-grid-v13 > article + article {
  border-top: 0;
}
.editorial-layout-v13 .team-members-grid-v13 .team-specialty-v10 {
  margin: 6px 0 0;
}
.editorial-layout-v13 .team-member-body-v14 h3 {
  margin: 0 0 10px;
}
.editorial-layout-v13 .team-credentials-v13 .team-member-body-v14 .team-credential-copy-v10 p {
  max-width: 44em;
  text-wrap: pretty;
}
.editorial-layout-v13 .team-section > p {
  max-width: 48em;
  text-wrap: pretty;
}
.editorial-layout-v13 .fde-practice-copy h3 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.6;
  text-wrap: balance;
}
.editorial-layout-v13 .fde-practice-copy p + h3 {
  margin-top: 28px;
}
.editorial-layout-v13 :is(.fde-practice-copy p, .ai-enablement-copy > p) {
  text-wrap: pretty;
}
.editorial-layout-v13 .founder-layout .profile-note-v14 {
  margin-top: 20px;
  max-width: 40em;
  text-wrap: pretty;
}
.editorial-layout-v13 .editorial-label-v14 {
  display: block;
  margin-bottom: 6px;
  color: #526661;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .03em;
}
/* Keep the particle with its clause when the Philosophy heading needs two lines. */
.editorial-layout-v13.philosophy-v13 #ph-practice {
  font-size: clamp(23.5px, 7.05cqi, 36px);
}
.philosophy-v13 .ph-clause-v14 {
  display: inline-block;
  max-width: 100%;
}
@media (max-width: 680px) {
  .editorial-layout-v13 .team-credentials-v13 .team-practice-v14 {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 24px;
  }
  .editorial-layout-v13 .team-practice-v14 .team-record-v10 {
    gap: 9px;
    padding-top: 0;
  }
  .editorial-layout-v13 .team-members-grid-v13 > .team-credential-v10 {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-block: 24px;
  }
  .editorial-layout-v13 .team-members-grid-v13 .team-specialty-v10 {
    margin: 0;
  }
}
