/* people-grid block deltas (plan §5.2) — web sizing on the SDS .sph-team
 * layout, which is deck-tuned (280×340 portraits for a 1920 stage). @layer web.
 * Keeps the SDS hierarchy (founder + bench) at web scale and stacks on mobile. */
@layer web {
  .pg__title {
    font-family: var(--sph-font-display);
    font-weight: var(--sph-weight-extrabold);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.08;
    letter-spacing: var(--sph-tracking-tight);
    color: var(--sph-text);
    margin: 0.75rem 0 clamp(1.5rem, 4vw, 2.5rem);
  }
  .pg__title .sph-accent { color: var(--sph-primary); }

  .pg__team .sph-team__founder { grid-template-columns: 180px 1fr; }
  /* Gallery-plate treatment (design review, July 2026): hairline edge plus an
     offset gold hairline frame — echoes the site's hairline-rule language.
     Both hairlines are theme-keyed tokens, so the plate flips with dark mode.
     The outline draws OUTSIDE the box and is not clipped by overflow. */
  .pg__team .sph-team__portrait {
    width: 180px;
    height: 220px;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    border: 1px solid var(--sph-border);
    outline: 1px solid var(--sph-text-accent, var(--sph-primary));
    outline-offset: 5px;
  }
  /* The source img/rm.jpg is pre-cropped to the bare photograph (no baked-in
     frame — the old scale() hack is gone). Top-anchored cover: the box may
     trim the bottom of the photo but never the head. */
  .pg__team .sph-team__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
  }
  .pg__team .sph-team__rest { align-content: start; display: grid; gap: 1.25rem; }
  .pg__team .sph-team__member {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1rem;
    align-items: center;
  }
  .pg__team .sph-team__member-portrait {
    width: 56px;
    height: 56px;
    border-radius: var(--sph-radius-pill, 999px);
    background: var(--sph-bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: var(--sph-font-display);
    font-weight: var(--sph-weight-bold);
    color: var(--sph-primary);
  }
  .pg__team .sph-team__member-portrait img {
    width: 100%; height: 100%; object-fit: cover; display: block;
  }
  .pg__team .sph-team__member-name { margin: 0; }
  .pg__team .sph-team__member-role { margin: 0.15rem 0 0; color: var(--sph-text-soft); }

  @media (max-width: 52rem) {
    .pg__team { grid-template-columns: 1fr; }
    .pg__team .sph-team__founder { grid-template-columns: 1fr; }
  }
}
