/* Source guide: pages/about.css
 * Page-specific presentation.
 * Load order: base.css, components.css, page stylesheet, refresh.css.
 * Later rules intentionally refine earlier layouts; preserve cascade order.
 */

/* About: large photography and a restrained, consistent portrait series. */
/* Group: Opening title, introduction, and wide image. */
.about-opening {
  padding-top: 65px;
  padding-bottom: 65px;
}
.about-title {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 45px;
}
.about-title h1 {
  font-size: 58px;
}
.about-title > p {
  color: var(--muted);
  font-size: 16px;
  max-width: 420px;
}
.about-photo {
  height: 470px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
/* Group: Caption overlay on the opening photograph. */
.about-photo-caption {
  position: absolute;
  right: 35px;
  bottom: 35px;
  padding: 25px 32px;
  background: white;
  border-radius: 8px;
  font-size: 19px;
  line-height: 1.5;
}
.about-story p {
  color: var(--muted);
}
/* Group: Original leadership-card layout. */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}
.team-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}
.team-grid h3 {
  font-size: 23px;
  margin: 25px 0 8px;
}
.team-grid span {
  display: block;
  font-size: 12px;
  color: var(--teal-ink);
}
.team-grid p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 18px;
}
/* Group: Supporting values and editorial copy. */
.values-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
}
.values-layout article {
  padding: 28px 0;
  border-top: 1px solid #cbd4df;
}
.values-layout h3 {
  font-size: 22px;
  margin-bottom: 15px;
}
.values-layout p {
  color: var(--muted);
  font-size: 15px;
}
/* Viewport (max-width: 950px): component adjustments at this breakpoint. */
@media (max-width: 950px) {
  .about-title {
    gap: 35px;
  }
  .about-title h1 {
    font-size: 46px;
  }
  .values-layout {
    gap: 50px;
  }
  .team-grid {
    gap: 22px;
  }
}
/* Viewport (max-width: 700px): component adjustments at this breakpoint. */
@media (max-width: 700px) {
  .about-opening {
    padding-block: 45px;
  }
  .about-title {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-title h1 {
    font-size: clamp(32px, 8.5vw, 42px);
  }
  .about-photo {
    height: 400px;
  }
  .about-photo-caption {
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 18px;
    font-size: 17px;
  }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .team-grid img {
    max-height: 440px;
  }
  .values-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}
/* Preserve the full portrait from Cedars-Sinai's smaller source photograph. */
.person-card img[src$="scott-profile.jpg"] {
  object-fit: contain;
  background: #e8edf1;
}

/* A subtle zoom adds feedback without lifting or shadowing portraits. */
.person-card > img {
  transition: transform 400ms ease;
}
/* Pointer interaction: hover feedback only where supported. */
@media (hover: hover) and (pointer: fine) {
  .person-card:hover > img {
    transform: scale(1.01);
  }
}
.person-card:focus-within > img {
  transform: scale(1.01);
}
/* Accessibility: honor the visitor's reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
  .person-card > img {
    transition: none;
  }
  .person-card:hover > img,
  .person-card:focus-within > img {
    transform: none;
  }
}

/* The opening shares the same spacing as the remaining content sections. */
.page-about .about-opening {
  padding-block: var(--space-section);
}

/* Small affiliation marks sit between the role and LinkedIn, as supplied.
 * Explicit sizing prevents the shared portrait styles from stretching logos. */
.person-card .advisor-affiliations {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-block: 16px;
}
.person-card .advisor-affiliations img {
  width: 40px;
  height: 40px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 0;
}

/* Organization labels appear on hover, keyboard focus, or a touch tap.
 * Buttons retain an accessible name even when the visual tooltip is hidden. */
.advisor-affiliations .affiliation-icon {
  position: relative;
  display: inline-flex;
  flex: 0 0 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: help;
}
.affiliation-icon:focus-visible {
  outline: 2px solid #282b61;
  outline-offset: 4px;
}
.affiliation-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 10;
  width: 160px;
  max-width: 45vw;
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 6px;
  background: #282b61;
  color: #fff;
  font-weight: 400;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  opacity: 0;
  visibility: hidden;
}
.affiliation-icon:nth-child(n + 3) .affiliation-tooltip {
  left: auto;
  right: 0;
}
.affiliation-icon:hover .affiliation-tooltip,
.affiliation-icon:focus .affiliation-tooltip {
  opacity: 1;
  visibility: visible;
}

/* A modest crop brings Justin closer while preserving the shared card size. */
.justin-portrait {
  aspect-ratio: 1.2;
  overflow: hidden;
  border-radius: 15px;
}
.person-card .justin-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transform-origin: 50% 25%;
}

/* Keep the longer partnership CTA on one line on desktop. */
@media (min-width: 768px) {
  body.page-about main .callout > .button {
    width: 380px !important;
    white-space: nowrap;
  }
}

/* Dragan review: keep the introduction below its heading. */
.page-about .about-title { grid-template-columns:1fr; gap:20px; align-items:start; }
.page-about .about-title > p { max-width:760px; margin:0; }
