/* 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;
  }
}

/* Halve the combined space between the opening image and the story section. */
.page-about .about-opening {
  padding-top: clamp(56px, 5vw, 76px);
  padding-bottom: clamp(32px, 3.5vw, 53px);
}
.page-about .about-opening + .section {
  padding-top: clamp(32px, 3.5vw, 53px);
}
