/* Block 8 · Team (V8-BLOCKS §8). Mist ground, R1. Round 3 (SLOP-PASS M17): mirrored against block 9: name, facts and
   ledger in cols 1–6, the cut-out in cols 7–12 standing on the block's bottom edge (no box, no radius), bleeding into
   the right margin. Ledger rows are paper on mist, 4 px apart (no hairlines). P: paper ground, the cut-out on a mist
   panel at 70 % width, then the text with mist rows. */
.team { --team-bleed: max(0px, min(96px, (100cqw - var(--container)) / 2)); container-type: inline-size; background: var(--mist); padding-bottom: 0; }
.team-grid { align-items: end; }
.team-fig {   /* never taller than the window under the header */
  grid-column: 7 / 13; grid-row: 1; align-self: end; justify-self: start; min-width: 0;
  width: min(calc(100% + var(--team-bleed)), calc(100svh - var(--nav-bottom) - 40px));
}
.team-cut { display: block; width: 100%; height: auto; }
.team-text { grid-column: 1 / 7; grid-row: 1; align-self: start; min-width: 0; padding-bottom: var(--sec-pad-dark); }

.team-name { font-weight: var(--fw-display); }
.team-name a { display: inline-flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; }
.team-arrow svg { width: 36px; height: 36px; transition: transform .45s var(--spring-enter); }
@media (hover: hover) {
  .team-name a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
  .team-name a:hover .team-arrow svg { transform: translateX(6px); }
}
.team-role { margin-top: 8px; }
.team-bio { margin-top: 32px; max-width: 30em; }
.team-langs { margin-top: 12px; max-width: 30em; }
.team-ledger { display: grid; gap: 4px; margin-top: var(--gap-stack); }
.team-row {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; padding: 20px 24px;
  border-radius: var(--r-md); background: var(--paper); font-size: var(--fs-body); line-height: var(--lh-body);
}
.team-rn { font-weight: var(--fw-statement); }
.team-rr { color: var(--ink-75); }

/* purpose: the person arrives after the page has settled, with no slide (makro portrait appear: delay .4, 1.6 s) */
html.motion:not(.rm) .team-cut { opacity: 0; }
html.motion:not(.rm) .team-fig.is-in .team-cut { opacity: 1; transition: opacity 1.6s var(--ease-ui) .4s; }

@media (max-width: 809.98px) {
  .team { background: var(--paper); }
  .team-fig { grid-column: 1 / -1; justify-self: stretch; width: auto; margin: 0 calc(-1 * var(--side)); padding-top: 48px; background: var(--mist); }
  .team-cut { width: 70%; margin-left: auto; margin-right: 0; }   /* the file's cut edge sits on the screen edge, never mid-panel (V8-PHONE-CROPS #3) */
  .team-text { grid-column: 1 / -1; grid-row: 2; padding-top: var(--gap-stack); padding-bottom: var(--sec-pad); }
  .team-row { background: var(--mist); }
  .team-bio { margin-top: 24px; }
  .team-arrow svg { width: 24px; height: 24px; }
  .team-name a { gap: 10px; }
}
