/* Team page: the people behind HelioFlux, on the shared next system.
   Paper head and Nirosha feature, Leadership on the cream band, Advisors on paper, then the night close. */

.team-hero { padding: clamp(56px, 7vw, 112px) 0 clamp(36px, 4vw, 56px); }
.team-hero h1 { margin: 0; font-size: clamp(44px, 5.6vw, 84px); }

/* Nirosha: photo and credentials on the left (they stay in view on desktop), her story on the right */
.feature { padding-bottom: var(--section); }
.feature-grid {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start;
  padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--ink);
}
.feature-side { position: sticky; top: calc(var(--nav-h) + 32px); }
.feature-photo { display: block; width: 100%; height: auto; border-radius: var(--r-image); }
.feature-facts { margin-top: 24px; }
.feature-facts .eyebrow { margin-bottom: 8px; }
.feature-facts p:not(.eyebrow) { font-size: 15px; line-height: 1.6; color: var(--muted); }
.feature-body h2 { margin: 0; }

.role { margin: 10px 0 0; font: 600 12px/1.45 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }

.team-tags { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.team-tags li { padding: 7px 14px; border: 1px solid var(--rule-strong); border-radius: var(--r-control); font-size: 14px; line-height: 1.3; color: var(--text); }

.feature-bio { margin-top: clamp(28px, 3vw, 40px); }
.feature-bio p + p { margin-top: 1.1em; }
.feature-bio p:not(.lead) { font-size: 17px; line-height: 1.7; color: var(--text); }

/* Awards as a ruled list: the honor on the left, its year on the right */
.awards { margin-top: clamp(40px, 4.4vw, 56px); }
.awards .eyebrow { font: 650 12px/1.4 var(--display); letter-spacing: .15em; margin-bottom: 14px; }
.awards ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.awards li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.45; color: var(--text); }
.awards .year { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Leadership and Advisors: picture first, three across, the same 4:5 crop for everyone */
.people-title { margin: 0 0 clamp(32px, 4vw, 56px); }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 4vw, 64px) clamp(24px, 3vw, 48px); }
.people img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: var(--r-image); }
.people h3 { margin: 22px 0 0; font-size: clamp(23px, 2vw, 28px); }
.people .bio { margin-top: 16px; font-size: 16px; line-height: 1.65; color: var(--text); }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 32px; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone: Nirosha reads top to bottom (photo, name, story, then the record), and each person is a small
   portrait beside their name with the bio underneath, so seven people stay a short scroll */
@media (max-width: 640px) {
  .feature-grid { display: flex; flex-direction: column; gap: 0; }
  .feature-side, .feature-body { display: contents; }
  .feature-photo { order: 1; margin-bottom: 28px; }
  .feature-body h2 { order: 2; }
  .feature-body .role { order: 3; }
  .team-tags { order: 4; }
  .feature-bio { order: 5; }
  .feature-bio p:not(.lead) { font-size: 16px; }
  .feature-facts { order: 6; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--rule); }
  .awards { order: 7; }
  .awards li { font-size: 15px; gap: 16px; }

  .people { grid-template-columns: 1fr; gap: 44px; }
  .people li { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 18px; align-items: center; }
  .people-text { display: contents; }
  .people img { grid-row: 1 / span 2; }
  .people h3 { grid-column: 2; align-self: end; margin: 0; font-size: 23px; }
  .people .role { grid-column: 2; align-self: start; }
  .people .bio { grid-column: 1 / -1; margin-top: 18px; }
}
