/* A typographic introduction gives the dense gallery a clear change of pace. */
.team-introduction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 7%;
  margin: 0 0 48px;
  padding: 0;
}
.team-introduction-kicker {
  margin: 0 0 18px;
  color: #63758e;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: .08em;
}
.team-introduction h2 {
  margin: 0;
  color: #243449;
  font-size: clamp(37px, 3.55vw, 47px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -.025em;
}
.team-introduction h2 span { color: #637b98; }
.team-introduction > p {
  margin: 0 0 7px;
  color: #63758e;
  font-size: 16px;
  line-height: 1.9;
  text-wrap: pretty;
}
.team-carousel-section {
  padding-top: 64px;
  padding-bottom: 80px;
  border-top: 0;
}
.team-carousel-section .team-heading.section {
  width: min(1080px, 88%);
  padding: 0 0 28px;
}
.team-carousel-section .team-heading h2 {
  font-size: 27px;
  line-height: 1.5;
  letter-spacing: .01em;
}

/* The portrait fills the card; only its lower edge softens behind the name. */
.team-track .person-card {
  border: 0;
  background: #30343b;
}
.team-track .person-button {
  position: relative;
  isolation: isolate;
  color: #fff;
}
.team-track .person-photo {
  position: relative;
  height: auto;
  aspect-ratio: 2 / 3;
  display: block;
}
.team-track .person-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: center top;
  transform-origin: center;
  transform: none;
}
.team-track .person-button:hover .person-photo img {
  transform: scale(1.04);
}
.team-track .person-photo--scaled { overflow: hidden; }
.team-track .person-photo--scaled .person-photo-subject {
  transform-origin: center top;
  transform: scale(var(--person-photo-scale));
}
.team-track .person-button:hover .person-photo--scaled .person-photo-subject { transform: scale(calc(var(--person-photo-scale) * 1.04)); }
.team-track .person-button::before,
.team-track .person-button::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  pointer-events: none;
  z-index: 1;
}
.team-track .person-button::before {
  height: 38%;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 80%);
  mask-image: linear-gradient(to bottom, transparent, #000 80%);
}
.team-track .person-button::after {
  height: 48%;
  background: linear-gradient(to bottom, transparent, rgb(16 23 34 / .16) 30%, rgb(16 23 34 / .58) 70%, rgb(16 23 34 / .8));
}
.team-track .person-caption {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  min-height: 0;
  padding: 26px 24px;
  gap: 12px;
  align-items: flex-end;
  background: transparent;
}
.team-track .person-caption h3 {
  color: #fff;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: .04em;
}
.team-track .person-caption p {
  color: rgb(255 255 255 / .85);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 7px;
}
.team-track .person-plus {
  flex-shrink: 0;
  background: rgb(255 255 255 / .18);
  color: #fff;
}
.team-track .person-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -6px;
  border-radius: inherit;
}
@media (max-width: 720px) {
  .team-introduction { grid-template-columns: 1fr; gap: 22px; margin-bottom: 32px; }
  .team-introduction-kicker { margin-bottom: 14px; }
  .team-introduction h2 { font-size: 33px; }
  .team-introduction > p { margin: 0; }
  .team-introduction > p br { display: none; }
  .team-carousel-section { padding-top: 48px; padding-bottom: 56px; }
  .team-carousel-section .team-heading.section { width: 86%; padding-bottom: 24px; }
  .team-carousel-section .team-heading h2 { font-size: 25px; }
  .team-track { padding-inline: 7%; }
  .team-track .person-caption { padding: 18px 14px; }
  .team-track .person-caption h3 { font-size: 18px; letter-spacing: .02em; }
  .team-track .person-caption p { font-size: 12px; margin-top: 5px; }
}

@media(max-width:720px){.team-track .person-card{border-radius:17px}}

/* Punctuation keeps part of its advance for optical centering. */
.optical-punctuation {
  display: inline-block;
  inline-size: .6em;
  text-align: left;
}
.optical-punctuation--question { inline-size: .85em; }
.contact-top .optical-title-line { display: inline-block; white-space: nowrap; }
.contact-top h2 > .optical-title-line:first-child { color: inherit; }
.contact-top .optical-copy-line { display: block; text-wrap: balance; }
.contact-top .optical-copy-phrase { display: inline-block; max-width: 100%; }
/* Keep body punctuation in the text flow; offset its trailing whitespace as a line. */
.ai-practice-lead p,
.contact-top > p { position: relative; left: .2em; }

/* Middle-page headings share the established service-section scale. */
#main {
  --home-heading-section: clamp(36px, 3.5vw, 46px);
  --home-heading-subsection: clamp(24px, 2vw, 28px);
}
#main > .philosophy .philosophy-heading h2,
#main > .role-section .role-heading h2,
#main > .services .section-heading h2,
#main > .expertise-gallery .expertise-gallery-heading h2,
#main > .founder-feature .team-introduction h2,
#main > .ai-practice .ai-practice-copy > h2,
#main > .insights .section-heading h2 {
  font-size: var(--home-heading-section);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -.04em;
}
#main > .philosophy .philosophy-body h3,
#main > .role-section .role-problem-title,
#main > .team-carousel-section .team-heading h2 {
  font-size: var(--home-heading-subsection);
  font-weight: 400;
  line-height: 1.53;
  letter-spacing: -.025em;
}

/* Homepage copy shares three reading sizes. */
#main,
body > footer {
  --home-copy-lead: 18px;
  --home-copy-body: 16px;
  --home-copy-caption: 14px;
}
#main > .ai-practice .ai-practice-lead {
  font-size: var(--home-copy-lead);
  line-height: 1.8;
}
#main > .opening .opening-copy--first .opening-description {
  font-size: var(--home-copy-body);
  line-height: 1.85;
}
#main > .opening .opening-description,
#main > .hero .hero-description,
#main > .philosophy .philosophy-body p,
#main > .services .section-heading > p,
#main > .services .service-card p,
#main > .role-section .role-understanding-copy,
#main > .expertise .expertise-gallery-heading > p,
#main > .founder-feature .team-introduction > p,
#main > .founder-feature .founder-feature-copy > p,
#main > .ai-practice .ai-practice-lead p + p,
#main > .insights .insight-copy p,
#main > .contact .contact-top > p {
  font-size: var(--home-copy-body);
  line-height: 1.85;
}
#main > .philosophy .philosophy-heading > p,
#main > .role-section .role-cues,
#main > .expertise .expertise-card-copy > p,
#main > .founder-feature .team-introduction-kicker,
#main > .founder-feature .founder-kicker,
#main > .founder-feature .credentials span,
#main > .founder-feature .founder-mobile-credentials,
#main > .team-carousel-section .person-caption p,
#main > .contact .contact-details > a > span {
  font-size: var(--home-copy-caption);
  line-height: 1.7;
}
#main > .expertise .expertise-card-copy > p { text-wrap: balance; }
body > footer .footer-main > p,
body > footer .footer-main > .footer-social {
  font-size: var(--home-copy-caption);
  line-height: 1.7;
}
body > footer .footer-bottom,
body > footer .footer-bottom > a {
  font-size: 12px;
  line-height: 1.7;
}
@media (max-width: 760px) {
  #main {
    --home-heading-section: 31px;
    --home-heading-subsection: 23px;
  }
  #main,
  body > footer {
    --home-copy-lead: 17px;
    --home-copy-body: 15px;
    --home-copy-caption: 13px;
  }
  body > footer .footer-bottom { flex-wrap: wrap; gap: 14px 24px; }
  body > footer .footer-bottom > span { flex-basis: 100%; }
  body > footer .footer-bottom,
  body > footer .footer-bottom > a { font-size: 11px; }
}
