/* Scoped light-studio-gray (#dcdedf) editorial hero matching Our Founders,
   keeping the sitewide dark midnight-sapphire navbar consistent across pages. */

html:has(body[data-page="/our-people/"]) {
  background: #0c174a;
}

body[data-page="/our-people/"] .header {
  background: #0c174a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

body[data-page="/our-people/"] .menu {
  background: #0c174a;
}

body[data-page="/our-people/"] .chapter-people {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  gap: 0;
  min-height: calc(100vh - var(--header));
  min-height: calc(100svh - var(--header));
  padding-top: clamp(32px, 4.4vh, 64px);
  padding-bottom: 0 !important;
  overflow: hidden;
  background: #dcdedf;
  color: #0c1c54;
  border-bottom: 1px solid rgba(0, 58, 152, 0.14);
}

body[data-page="/our-people/"] .chapter-people .page-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1120px;
  width: 100%;
  margin: auto 0;
}

body[data-page="/our-people/"] .chapter-people .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #007ea8;
  margin: 0 0 18px;
}

body[data-page="/our-people/"] .chapter-people .eyebrow::before,
body[data-page="/our-people/"] .chapter-people .eyebrow::after {
  content: "";
  display: block;
  width: 24px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, #007ea8, #00b2e3);
}

body[data-page="/our-people/"] .chapter-people h1 {
  font-size: clamp(38px, 3.9vw, 68px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.045em;
  max-width: 28ch;
  text-wrap: balance;
  color: #0c1c54;
}

body[data-page="/our-people/"] .chapter-people h1 .headline-accent {
  display: block;
  color: #0066b8;
  background: linear-gradient(94deg, #003a98 0%, #008fc7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body[data-page="/our-people/"] .chapter-people .page-hero-copy > p {
  font-size: clamp(17.5px, 1.32vw, 22px);
  font-weight: 450;
  line-height: 1.52;
  letter-spacing: -0.012em;
  max-width: 56ch;
  margin-top: 20px;
  padding-top: 0;
  border-top: 0;
  color: #2c3748;
  text-wrap: pretty;
}

body[data-page="/our-people/"] .chapter-people .text-link {
  margin-top: 22px;
  font-size: 16px;
  font-weight: 550;
  color: #003a98;
  border-color: rgba(0, 58, 152, 0.42);
  background: rgba(255, 255, 255, 0.36);
}

body[data-page="/our-people/"] .chapter-people .text-link:hover {
  background: #003a98;
  border-color: #003a98;
  color: #ffffff;
}

/* Seamless box-free 6-person team lineup flush on the bottom window edge */
body[data-page="/our-people/"] .chapter-people .people-collage {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: min(1920px, max(1360px, calc((100svh - var(--header)) * 1.65)));
  height: auto;
  min-height: 0;
  margin: clamp(24px, 3vh, 44px) auto -1px;
  padding: 0;
  transform: none;
  z-index: 4;
}

/* Smooth synchronized entrance with hero title words (zero raw-image flash,
   emerging cleanly up from the bottom horizon line with gentle center-out fade) */
@media (scripting: enabled) {
  body[data-page="/our-people/"] .chapter-people .people-collage {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 0.95s cubic-bezier(0.215, 0.61, 0.355, 1),
      transform 1.05s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: opacity, transform;
  }

  body[data-page="/our-people/"] .chapter-people .people-collage.is-ready {
    opacity: 1;
    transform: translateY(0);
  }

  body[data-page="/our-people/"] .chapter-people .people-collage .people-collage-card {
    opacity: 0;
    transition:
      transform 0.35s cubic-bezier(0.22, 0.8, 0.2, 1),
      opacity 0.95s cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  body[data-page="/our-people/"] .chapter-people .people-collage.is-ready .people-collage-card {
    opacity: 1;
  }

  body[data-page="/our-people/"] .chapter-people .people-collage.is-ready .people-collage-card:nth-child(3),
  body[data-page="/our-people/"] .chapter-people .people-collage.is-ready .people-collage-card:nth-child(4) {
    transition-delay: 0s, 0.02s;
  }

  body[data-page="/our-people/"] .chapter-people .people-collage.is-ready .people-collage-card:nth-child(2),
  body[data-page="/our-people/"] .chapter-people .people-collage.is-ready .people-collage-card:nth-child(5) {
    transition-delay: 0s, 0.08s;
  }

  body[data-page="/our-people/"] .chapter-people .people-collage.is-ready .people-collage-card:nth-child(1),
  body[data-page="/our-people/"] .chapter-people .people-collage.is-ready .people-collage-card:nth-child(6) {
    transition-delay: 0s, 0.14s;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="/our-people/"] .chapter-people .people-collage {
    transform: none;
    transition: opacity 0.25s ease;
  }
  body[data-page="/our-people/"] .chapter-people .people-collage .people-collage-card {
    transition: opacity 0.25s ease;
    transition-delay: 0s !important;
  }
}

body[data-page="/our-people/"] .chapter-people .people-collage-card,
body[data-page="/our-people/"] .chapter-people .people-collage-card--cyan,
body[data-page="/our-people/"] .chapter-people .people-collage-card--cobalt,
body[data-page="/our-people/"] .chapter-people .people-collage-card--navy {
  position: relative;
  flex: 0 1 19.7%;
  width: 19.7%;
  height: auto;
  margin: 0 -2.1%;
  aspect-ratio: 0.84 / 1;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  isolation: auto;
  transform: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.2, 1);
}

/* Natural subtle depth & shoulder overlap layering across the 6 teammates */
body[data-page="/our-people/"] .chapter-people .people-collage-card:nth-child(1) {
  z-index: 2;
  margin-left: 0;
  margin-right: -4.2%;
  transform: scale(1.06);
  transform-origin: center bottom;
}

body[data-page="/our-people/"] .chapter-people .people-collage-card:nth-child(2) {
  z-index: 4;
  margin-left: -2.1%;
  margin-right: -3.2%;
  transform: scale(1.01);
  transform-origin: center bottom;
}

body[data-page="/our-people/"] .chapter-people .people-collage-card:nth-child(3) {
  z-index: 6;
  margin-right: -2.4%;
  transform: scale(1.04);
  transform-origin: center bottom;
}

body[data-page="/our-people/"] .chapter-people .people-collage-card:nth-child(4) {
  z-index: 5;
  transform: scale(1.04);
  transform-origin: center bottom;
}

body[data-page="/our-people/"] .chapter-people .people-collage-card:nth-child(5) {
  z-index: 4;
  margin-left: -1.1%;
  margin-right: -3.1%;
  transform: scale(1.02);
  transform-origin: center bottom;
}

body[data-page="/our-people/"] .chapter-people .people-collage-card:nth-child(6) {
  z-index: 3;
  margin-right: 0;
  transform: scale(0.97);
  transform-origin: center bottom;
}

body[data-page="/our-people/"] .chapter-people .people-collage-card::after {
  content: none;
}

body[data-page="/our-people/"] .chapter-people .people-collage-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  position: relative;
  z-index: 1;
  transform: none;
  filter: saturate(0.98) contrast(1.03) brightness(1) drop-shadow(0 6px 14px rgba(12, 26, 68, 0.14));
  -webkit-mask-image: var(--collage-cutout, linear-gradient(#000, #000));
  mask-image: var(--collage-cutout, linear-gradient(#000, #000));
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center bottom;
  mask-position: center bottom;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

body[data-page="/our-people/"] .chapter-people .people-collage-canvas {
  -webkit-mask-image: none;
  mask-image: none;
}

/* Permanently eliminate all 3D scroll-tilt / point-up-and-down animations on
   Our People section headings below the hero and keep all directory cards
   immediately visible without 69 per-card GSAP ScrollTriggers. */
body[data-page="/our-people/"] .founders > h2,
body[data-page="/our-people/"] .people-statement > p,
body[data-page="/our-people/"] .directory-heading h2,
body[data-page="/our-people/"] .people-section h2,
body[data-page="/our-people/"] .person > details,
body[data-page="/our-people/"] .person > h3,
body[data-page="/our-people/"] .cta h2 {
  transform: none !important;
  opacity: 1 !important;
}

/* Smooth native CSS grayscale-to-color hover transition (matching 4-function filter
   chain so Chrome interpolates cleanly without layer-promotion white flashes). */
body[data-page="/our-people/"] .person .person-image {
  filter: grayscale(1) brightness(1) contrast(1) saturate(1);
  transition: filter 0.35s ease;
}

body[data-page="/our-people/"] .person .person-image.is-color-entering {
  filter: grayscale(1) brightness(var(--portrait-brightness, 1)) contrast(var(--portrait-contrast, 1)) saturate(var(--portrait-saturation, 1)) !important;
  transition: none !important;
}

/* Center the 2 Executive cards (Rivka & Kayla) horizontally with generous
   breathing room while keeping their 3-column card width consistent with Directors. */
body[data-page="/our-people/"] .people-section.executives .people-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 65px clamp(90px, 11.5vw, 190px);
}

body[data-page="/our-people/"] .people-section.executives .people-grid > .person {
  flex: 0 1 calc((100% - 70px) / 3);
  min-width: 0;
}

/* Desktop: display Our Directors in 4 columns (3 rows for 11 directors) while
   keeping mobile's 2-column grid untouched. */
@media (min-width: 761px) {
  body[data-page="/our-people/"] .people-section.directors .people-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 54px 26px;
  }

  body[data-page="/our-people/"] .people-section.directors .person summary {
    font-size: clamp(18px, 1.4vw, 20.5px);
  }
}

/* Desktop: Founder stories stay permanently open and unclosable with no +/- toggle.
   Mobile: Founder stories start closed with a centered, slightly larger "+" toggle at the same right edge. */
@media (min-width: 761px) {
  body[data-page="/our-people/"] .founders-pan .founder-bio summary,
  body[data-page="/our-people/"] .founders-pan.has-founder-pan .founder-bio summary {
    cursor: default;
    pointer-events: none;
    user-select: text;
  }

  body[data-page="/our-people/"] .founders-pan .founder-bio summary > .plus,
  body[data-page="/our-people/"] .founders-pan.has-founder-pan .founder-bio summary > .plus {
    display: none;
  }
}

@media (max-width: 760px) {
  body[data-page="/our-people/"] .founders-pan .founder-bio summary,
  body[data-page="/our-people/"] .founders-pan.has-founder-pan .founder-bio summary {
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
  }

  body[data-page="/our-people/"] .founders-pan .founder-bio summary > .plus,
  body[data-page="/our-people/"] .founders-pan.has-founder-pan .founder-bio summary > .plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
    flex: none;
    margin-right: 0;
    transform-origin: center center;
  }
}

/* Remove the 72px gray bottom padding gap below the sticky Our Founders photo
   so the blue-cyan .people-statement gradient sits flush underneath the
   founders' chests, with cover sizing preventing any vertical gap on taller
   desktop viewports. */
@media (min-width: 1000px) and (min-height: 650px) and (prefers-reduced-motion: no-preference) {
  body[data-page="/our-people/"] .founders-pan.has-founder-pan {
    padding-bottom: 0;
  }

  body[data-page="/our-people/"] .founders-pan.has-founder-pan .founder-bios {
    min-height: calc(100svh - var(--header));
  }

  body[data-page="/our-people/"] .founders-pan.has-founder-pan .founder-reference {
    background-size: cover;
  }

  body[data-page="/our-people/"] .founders-pan.has-founder-pan + .people-statement {
    position: relative;
    z-index: 7;
    margin-top: -1px;
  }
}

@media (max-width: 1100px) and (min-width: 761px) {
  body[data-page="/our-people/"] .chapter-people h1 {
    font-size: clamp(38px, 4.6vw, 56px);
  }
  body[data-page="/our-people/"] .chapter-people .page-hero-copy > p {
    font-size: clamp(16.5px, 1.6vw, 19px);
  }
}

@media (max-width: 760px) {
  body[data-page="/our-people/"] .people-section.executives .people-grid {
    gap: 35px 20px;
  }
  body[data-page="/our-people/"] .people-section.executives .people-grid > .person {
    flex: 1 1 100%;
    width: 100%;
  }
  body[data-page="/our-people/"] .chapter-people {
    min-height: 0;
    padding: 36px 16px 0;
  }
  body[data-page="/our-people/"] .chapter-people h1 {
    font-size: clamp(32px, 8.2vw, 48px);
    max-width: 18ch;
  }
  body[data-page="/our-people/"] .chapter-people .page-hero-copy > p {
    font-size: 16.5px;
    line-height: 1.5;
    margin-top: 16px;
  }
  body[data-page="/our-people/"] .chapter-people .people-collage {
    display: flex;
    flex-wrap: nowrap;
    margin-top: 28px;
    width: calc(100% + 24px);
    margin-inline: -12px;
  }
  body[data-page="/our-people/"] .chapter-people .people-collage-card,
  body[data-page="/our-people/"] .chapter-people .people-collage-card:nth-child(n) {
    flex: 0 1 24%;
    width: 24%;
    margin: 0 -4%;
  }
}
