/* Team, phones only (<=899px). Interior pass, 12 Oct 2026: founders, operators and advisors as three frames,
   the title centred, the people as left rows (operators and advisors tap open). */
@media (max-width:899px) {
  main .team-section.m-screen, main .team-m-group.m-screen { padding:36px var(--m-pad) 40px !important; }
  main .team-section > h2, main .team-m-group > h2 { padding:0; border:0; }

  /* founders */
  main .team-section .team-list { display:block; width:100%; margin:24px 0 0 !important; border-top:2px solid var(--m-ink); text-align:left; }
  main .team-person { display:grid; grid-template-columns:96px minmax(0,1fr); grid-template-rows:auto auto auto auto; column-gap:16px; row-gap:0; align-content:start; box-sizing:border-box; padding:clamp(14px,3.6svh,32px) 0; border:0; border-bottom:1px solid var(--line); }
  main .team-person > img { grid-column:1; grid-row:1 / span 4; width:96px; height:96px; align-self:start; }
  main .team-person-name { grid-column:2; grid-row:1; margin:0; font-weight:600; font-size:22px; line-height:1.2; letter-spacing:-.015em; color:var(--m-ink); white-space:normal; text-wrap:balance; }
  main .team-person .team-role { grid-column:2; grid-row:2; margin:2px 0 0; font-weight:500; font-size:17px; line-height:1.3; color:var(--m-ink); text-wrap:balance; }
  main .team-person-proof { grid-column:2; grid-row:3; margin:6px 0 0; max-width:none; font-size:16px; line-height:1.4; color:var(--m-ink); text-wrap:balance; }
  main .team-person:last-child { padding-bottom:0; border-bottom:0; }
  main .team-person > .text-link { grid-column:2; grid-row:4; justify-self:start; min-height:44px; margin:0; padding:0; font-size:16px; }

  /* the desktop operators and advisors grids give way to the two tap-open lists below */
  main .team-section.t-team, main .team-section.t-advisors { display:none; }
  /* founders: the name is the LinkedIn link */
  main .team-person-name .t-out { font-size:14px; }
  main .team-person-name a { padding-block:9px; }  /* 44px tap area on the name link */

  main .m-people { list-style:none; width:100%; margin:24px 0 0; padding:0; border-top:2px solid var(--m-ink); text-align:left; }
  main .m-people > li { margin:0; padding:0; border-bottom:1px solid var(--line); }
  main .m-person summary { display:grid; grid-template-columns:40px minmax(0,1fr) 20px; align-items:center; column-gap:14px; min-height:clamp(68px,9svh,78px); box-sizing:border-box; padding:6px 0; cursor:pointer; list-style:none; }
  main .m-person summary::-webkit-details-marker { display:none; }
  main .m-person summary::after { content:"+"; font-size:19px; line-height:1; color:var(--m-ink); justify-self:end; }
  main .m-person[open] summary::after { content:"\2212"; }
  main .m-person summary img { width:40px; height:40px; filter:grayscale(1); } /* 13 Oct review: one colour portrait among monochrome ones */
  main .m-person-id { display:flex; flex-direction:column; min-width:0; }
  main .m-person-id b { font-weight:600; font-size:16px; line-height:1.22; letter-spacing:-.01em; color:var(--m-ink); }
  main .m-person-id span { margin-top:1px; font-weight:500; font-size:14px; line-height:1.3; color:var(--m-ink); text-wrap:balance; }
  main .m-person > p { margin:0 0 4px 54px; font-size:16px; line-height:1.45; color:var(--m-ink); }
  main .m-person > .text-link { margin:0 0 8px 54px; min-height:44px; padding:0; font-size:16px; }

  /* operators: eight rows plus the title fit 375x667 */
  /* draft16: ten rows plus the title fit every size; photos 40px, name 16, role 14 */
  main .m-team .m-person summary { min-height:clamp(50px,7.4svh,66px); }
  @media (max-height:700px) { main .team-m-group.m-team.m-screen { padding:24px var(--m-pad) !important; } main .m-team .m-people { margin-top:16px; } }

  /* advisors: five rows, bigger photos and type so the list fills the frame */
  /* draft16: advisors match the team rows */
  main .m-advisors .m-person summary { min-height:clamp(56px,8svh,72px); }
}

/* draft15 (13 Oct 2026): founders as on Partners: portrait and name in a row, the proof sentence full width beneath,
   so no bio runs to three lines at 375 */
@media (max-width:899px) {
  main .t-founders .team-person { grid-template-rows:auto auto auto; align-items:center; }
  main .t-founders .team-person > img { grid-row:1 / span 2; }
  main .t-founders .team-person-name { align-self:end; }
  main .t-founders .team-person .team-role { align-self:start; }
  main .t-founders .team-person-proof { grid-column:1 / -1; grid-row:3; margin-top:12px; }
}
@media (max-width:899px) and (max-height:700px) {
  main .t-founders .team-list { margin-top:16px !important; }
  main .t-founders .team-person { grid-template-columns:72px minmax(0,1fr); padding:10px 0; }
  main .t-founders .team-person > img { width:72px; height:72px; }
  main .t-founders .team-person-proof { margin-top:6px; }
}

/* draft15: the three proof sentences hold two lines each at every width */
@media (max-width:899px) { main .t-founders .team-person-proof { max-width:310px; } }

/* draft16 fit pass: ten rows at 375x667 */
@media (max-width:899px) and (max-height:700px) {
  main .team-m-group.m-team.m-screen { padding:20px var(--m-pad) 22px !important; }
  main .m-team .m-people { margin-top:12px; }
  main .m-team .m-person summary { min-height:44px; padding:3px 0; }
}
