/* About page only: founder portraits + approved bios + team line.
   Does not restore the removed .about-stats / 100% quality card,
   or the old empty-frame placeholders. */

.about-people {
  grid-column: 1 / -1;
  margin-top: 0;
  padding: 16px 22px 14px;
  border-radius: var(--radius, 10px);
  background: linear-gradient(180deg, #F7F4EC 0%, #EEF3F8 100%);
  border: 1px solid rgba(0, 31, 63, 0.08);
  box-shadow: 0 6px 18px rgba(0, 31, 63, 0.06);
}

.about-people-head {
  margin: 0 0 10px;
}

.about-people-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: #001F3F;
  letter-spacing: .02em;
  line-height: 1.3;
}

.about-people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.about-people-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(0, 31, 63, 0.08);
  border-left: 3px solid var(--gold, #C9A227);
  border-radius: var(--radius, 10px);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 31, 63, 0.04);
  min-width: 0;
}

.about-people-photo {
  /* Keep 3:4 and matched head size, but stop the portraits filling the viewport. */
  flex: 0 0 240px;
  width: 240px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #d8d2c6;
  align-self: flex-start;
}

.about-people-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* override the global `img { max-width: 100% }` so cover fills the square */
  max-width: none;
}

.about-people-photo--cherrie img {
  /* Head-matched 3:4 crop; frame is also 3:4 so the full image shows. */
  object-position: 50% 50%;
}

.about-people-photo--zoe img {
  /* Full 3:4 photo in a 3:4 frame; keep bandana and shoulders. */
  object-position: 50% 50%;
}

.about-people-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 18px 14px;
}

.about-people-name {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  font-size: clamp(1.22rem, 2vw, 1.42rem);
  font-weight: 700;
  color: #001F3F;
  letter-spacing: .01em;
  line-height: 1.35;
}

.about-people-card p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1a2a3a;
}

.about-people-team {
  margin: 10px 0 0;
  padding: 10px 2px 0;
  border-top: 1px solid rgba(0, 31, 63, 0.1);
  font-size: .98rem;
  line-height: 1.7;
  color: rgba(0, 31, 63, 0.78);
}

@media (max-width: 799px) {
  .about-people {
    padding: 16px 14px 14px;
  }
  .about-people-head {
    margin: 0 0 12px;
  }
  .about-people-head h2 {
    font-size: 1.45rem;
  }
  .about-people-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .about-people-card {
    flex-direction: column;
    align-items: center;
    padding-top: 16px;
  }
  /* Smaller 3:4 frame, centred, so the photo no longer fills the phone screen. */
  .about-people-photo {
    flex: 0 0 auto;
    width: 168px;
    aspect-ratio: 3 / 4;
    align-self: center;
  }
  .about-people-body {
    width: 100%;
  }
  .about-people-name {
    font-size: 1.28rem;
  }
  .about-people-body {
    padding: 14px 14px 14px;
  }
  .about-people-card p {
    font-size: 1.05rem;
  }
  .about-people-team {
    margin-top: 12px;
    padding-top: 12px;
    font-size: .97rem;
  }
}

/* Preview only — do not deploy this banner to live */
/* Timeline photos: one vertical story so each item can hold a 4:3 image.
   Overrides the 6-up compact track in styles.css. Preview only until approved. */
.about-timeline-track {
  grid-template-columns: 1fr;
  gap: 0;
  padding-left: 4px;
}
.about-timeline-track::before {
  left: 13px;
  right: auto;
  top: 8px;
  bottom: 8px;
  width: 2px;
  height: auto;
  background: linear-gradient(180deg, rgba(212,175,55,.25), #D4AF37 15%, #D4AF37 85%, rgba(212,175,55,.25));
}
.about-timeline-node {
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  padding: 0 0 16px;
}
.about-timeline-node:last-child {
  padding-bottom: 0;
}
.about-timeline-dot {
  margin: 22px 0 0;
  flex-shrink: 0;
}
.about-timeline-card {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  min-height: 160px;
}
.about-timeline-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a2340;
  height: auto;
  min-height: 160px;
}
.about-timeline-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none;
}
.about-timeline-photo--opening img {
  object-position: 50% 30%;
}
.about-timeline-photo--uss img {
  /* Keep both founders' faces in the 16/10 mobile crop; hall screens stay in the top. */
  object-position: 50% 58%;
}
.about-timeline-card-body {
  padding: 16px 18px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.about-timeline-card-body .about-timeline-year {
  margin-bottom: 2px;
}
.about-timeline-node--2024 .about-timeline-card-body {
  justify-content: flex-start;
  padding-top: 14px;
  padding-bottom: 14px;
}

@media (max-width: 799px) {
  .about-timeline-card {
    grid-template-columns: 1fr;
  }
  .about-timeline-photo {
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .about-timeline-card-body {
    padding: 14px 14px 16px;
  }
  .about-timeline-dot {
    margin-top: 16px;
  }
}

/* Wave 1 QA: sticky header must not cover the About timeline (hash jump / in-page scroll). */
.about-timeline,
.about-timeline-head,
#about-timeline-title {
  scroll-margin-top: calc(var(--header-h, 76px) + 20px);
}
