/* CTPL About-page space and readability refinement — v31 */

#team,
#legacy,
#experience,
#clients,
#projects,
#consultants {
  scroll-margin-top: calc(var(--ctpl-header-h, 96px) + 72px);
}

/* Leadership introduction */
.team-heading-row {
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, .65fr);
  gap: clamp(42px, 4vw, 76px);
  margin-bottom: 36px;
}

.team-heading-row h1 {
  max-width: 1050px !important;
  font-size: clamp(3.35rem, 4.15vw, 5rem) !important;
}

.team-heading-row > p {
  max-width: 650px;
  font-size: clamp(1.15rem, .48vw + 1rem, 1.42rem) !important;
  line-height: 1.58;
}

/* Keep both portraits fully visible. The dark card surface intentionally fills
   the remaining width around each portrait instead of cropping the person. */
.team-stage {
  height: clamp(690px, 72vh, 780px);
  gap: clamp(18px, 1.4vw, 28px);
}

.profile-panel {
  background:
    radial-gradient(circle at 50% 26%, rgba(52, 227, 224, .12), transparent 42%),
    linear-gradient(145deg, #123132, #06191a 72%);
}

.profile-panel:hover,
.profile-panel:focus-visible,
.profile-panel.is-active {
  flex: 2.25;
}

.team-stage.has-active .profile-panel:not(.is-active) {
  flex: 1;
}

.profile-image,
.profile-md .profile-image {
  width: 56%;
  object-fit: contain;
  object-position: left center;
  transform: none;
  padding: 0;
}

.profile-panel:hover .profile-image,
.profile-panel:focus-visible .profile-image,
.profile-panel.is-active .profile-image {
  width: 48%;
  object-fit: contain;
  object-position: center center;
  transform: none;
}

.profile-summary {
  top: 50%;
  left: calc(56% + clamp(26px, 1.8vw, 38px));
  right: clamp(30px, 2.1vw, 42px);
  bottom: auto;
  transform: translateY(-50%);
}

.profile-panel:hover .profile-summary,
.profile-panel:focus-visible .profile-summary,
.profile-panel.is-active .profile-summary {
  opacity: 0;
  transform: translateY(calc(-50% + 18px));
}

.profile-role {
  font-size: clamp(1rem, .25vw + .93rem, 1.18rem) !important;
}

.profile-summary h2 {
  font-size: clamp(2.35rem, 2.6vw, 3.35rem);
  line-height: 1.05;
}

.profile-prompt {
  margin-top: 16px;
  font-size: clamp(1rem, .24vw + .92rem, 1.16rem) !important;
}

.profile-story {
  padding: clamp(34px, 2.4vw, 48px);
}

.profile-story h3 {
  font-size: clamp(1.9rem, 1.75vw, 2.55rem);
}

.profile-story p {
  font-size: clamp(1.04rem, .24vw + .98rem, 1.18rem) !important;
  line-height: 1.58;
}

.story-kicker,
.story-tags span,
.team-note {
  font-size: clamp(.96rem, .18vw + .91rem, 1.08rem) !important;
}

/* About-page navigation: larger and distributed across the available width. */
.about-subnav-inner {
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 34px);
  padding: 10px 0;
}

.about-subnav a {
  flex: 1 1 auto;
  padding: 12px clamp(15px, 1.2vw, 24px);
  text-align: center;
  font-size: clamp(1rem, .2vw + .96rem, 1.14rem);
  line-height: 1.2;
}

/* Experience and capability: remove index space and let the content lead. */
.experience-grid {
  grid-template-columns: minmax(360px, .72fr) minmax(0, 1.28fr);
  gap: clamp(52px, 5vw, 92px);
}

.experience-copy p:last-child {
  max-width: 640px;
  font-size: clamp(1.12rem, .3vw + 1.02rem, 1.3rem) !important;
}

.capability-row button {
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 24px;
  padding: clamp(25px, 1.65vw, 32px) 10px;
}

.capability-row button strong {
  font-size: clamp(1.35rem, .66vw + 1.18rem, 1.72rem);
  line-height: 1.32;
}

.capability-row button i {
  font-size: 1.65rem;
  text-align: center;
}

.capability-body > p {
  max-width: 920px;
  font-size: clamp(1.06rem, .28vw + 1rem, 1.22rem) !important;
  line-height: 1.62;
}

.capability-row:hover .capability-body > p,
.capability-row:focus-within .capability-body > p,
.capability-row.is-active .capability-body > p {
  padding: 0 66px 30px 10px;
}

/* Project cards: larger type, no ornamental numbering, no unused upper half. */
.project-grid {
  gap: clamp(18px, 1.3vw, 26px);
}

.project-card {
  min-height: clamp(285px, 18vw, 340px);
  padding: clamp(30px, 2vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-card h3 {
  max-width: 430px;
  margin: 0 0 18px;
  font-size: clamp(1.55rem, .7vw + 1.35rem, 1.95rem);
  line-height: 1.18;
}

.project-card p {
  max-width: 470px;
  margin: 0;
  font-size: clamp(1.06rem, .28vw + 1rem, 1.22rem) !important;
  line-height: 1.58;
}

@media (max-width: 1180px) {
  .team-heading-row {
    grid-template-columns: 1fr;
  }

  .team-heading-row > p {
    max-width: 850px;
  }

  .about-subnav-inner {
    justify-content: flex-start;
  }

  .about-subnav a {
    flex: 0 0 auto;
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .team-stage {
    height: auto;
  }

  .profile-panel {
    height: 620px;
  }

  .profile-panel.is-active {
    height: 870px;
  }

  .profile-image,
  .profile-md .profile-image,
  .profile-panel:hover .profile-image,
  .profile-panel:focus-visible .profile-image,
  .profile-panel.is-active .profile-image {
    width: 100%;
    height: 62%;
    object-fit: contain;
    object-position: center center;
    transform: none;
  }

  .profile-shade,
  .profile-panel:hover .profile-shade,
  .profile-panel:focus-visible .profile-shade,
  .profile-panel.is-active .profile-shade {
    width: 100%;
  }

  .profile-summary h2 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .profile-summary {
    top: auto;
    left: 24px;
    right: 24px;
    bottom: 28px;
    transform: none;
  }

  .profile-panel:hover .profile-summary,
  .profile-panel:focus-visible .profile-summary,
  .profile-panel.is-active .profile-summary {
    transform: translateY(18px);
  }

  .about-subnav-inner {
    min-height: 64px;
  }

  .about-subnav a {
    font-size: 1rem;
  }

  .capability-row button {
    grid-template-columns: minmax(0, 1fr) 34px;
    padding: 22px 4px;
  }

  .capability-row:hover .capability-body > p,
  .capability-row:focus-within .capability-body > p,
  .capability-row.is-active .capability-body > p {
    padding: 0 40px 24px 4px;
  }

  .project-card {
    min-height: 245px;
    padding: 28px 24px;
  }
}
