/* Smile4U · „Näher" phase C · block 08 Team with 08a's quote (builder hin, _tools/v8_next/hin.py).
   Concept: the interview portrait page. His sentence is the page's headline, set large on the mist beside the
   cut-out that stands on the block's foot; the name under it is the caption (and the link to his page), then the
   facts and the ledger of the team side by side. One device: the paper rows of the ledger (v8's).
   D ≥ 1200 and T: the text cols 1–7 on the wide grid (6vw margins, as the stage), the cut-out cols 8–12.
   P: the cut-out on its mist panel first, then the sentence, the name and the facts on paper (v8's phone order). */
.hn-team { --hn-pad: max(var(--side), 6vw); padding-top: clamp(96px, 9vw, 160px); }
.hn-team-in {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-grid); align-items: end;
  padding-inline: var(--hn-pad);
}
.hn-team .team-fig {
  grid-column: 8 / 13; grid-row: 1; align-self: end; justify-self: end; min-width: 0;
  width: min(calc(100% + var(--hn-pad)), calc(100svh - var(--nav-bottom) - 40px));
  margin-right: calc(-1 * var(--hn-pad));                        /* the file's cut edge sits on the screen's edge, never mid-page (V8-PHONE-CROPS #3) */
}
.hn-team-text { grid-column: 1 / 8; grid-row: 1; align-self: start; min-width: 0; padding-bottom: var(--sec-pad-dark); }

/* the sentence: display size, the opening „ hung into the margin so the words share one left edge (as 08a did) */
.hn-satz { margin: 0; scroll-margin-top: calc(var(--nav-bottom) + 32px); }
.hn-q { margin: 0; }
.hn-q .sz-qp {
  max-width: 16em; font-size: clamp(36px, 3.55vw, 68px); line-height: 1.12; letter-spacing: -0.045em;
  font-weight: var(--fw-display); color: var(--ink); text-indent: -.405em; text-wrap: balance; overflow-wrap: break-word;
}
.hn-q .sz-qp .w { text-indent: 0; }
.hn-who { margin-top: 32px; }
.hn-team .hn-who .team-name { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.hn-team .hn-who .team-name a { gap: 12px; }
.hn-team .hn-who .team-arrow svg { width: 28px; height: 28px; }

.hn-team-facts {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: calc(var(--gap-grid) * 2);
  align-items: start; margin-top: clamp(48px, 4.4vw, 80px);
}
.hn-team-about { min-width: 0; }
.hn-team .team-role { margin-top: 0; }
.hn-team .team-bio { margin-top: 16px; }
.hn-team .team-ledger { margin-top: 0; }

/* the words' start offset only once the split is measured (08a's rule, LOCKED V14: the sentence rises word by word) */
html.motion:not(.rm) .hn-team .words.is-split .w { transform: none; }
html.motion:not(.rm) .hn-team.is-armed .words.is-split .w { transform: translate3d(0, var(--words-y), 0); }
html.motion:not(.rm) .hn-team.is-armed .words.is-split.is-in .w { transform: none; }
/* purpose: the name answers the sentence once its last word has landed */
html.motion:not(.rm) .hn-team.is-armed .hn-who { opacity: 0; transform: translate3d(0, var(--enter-y1), 0); }
html.motion:not(.rm) .hn-team.is-armed .hn-q.is-in + .hn-who {
  opacity: 1; transform: none;
  transition: transform var(--dur-enter) var(--spring-enter) calc(var(--sz-n, 1) * var(--words-stagger) + .2s),
              opacity var(--dur-enter) var(--ease-ui) calc(var(--sz-n, 1) * var(--words-stagger) + .2s);
}

/* T: the facts stack, the ledger under them */
@media (max-width: 1199.98px) {
  .hn-team-facts { grid-template-columns: minmax(0, 1fr); row-gap: var(--gap-stack); }
}
@media (max-width: 809.98px) {
  .hn-team { --hn-pad: var(--side); }                          /* phones: v8's own 24 px edge, as the blocks around */
  .hn-team { padding-top: 0; }
  .hn-team-in { display: block; padding-inline: var(--side); }
  .hn-team .team-fig { width: auto; margin: 0 calc(-1 * var(--side)); padding-top: 48px; background: var(--mist); }
  .hn-team-text { padding-top: var(--gap-stack); padding-bottom: var(--sec-pad); }
  .hn-q .sz-qp { font-size: var(--fs-statement); line-height: var(--lh-statement); }
  .hn-who { margin-top: 20px; }
  .hn-team .hn-who .team-name { font-size: 24px; }
  .hn-team .hn-who .team-arrow svg { width: 22px; height: 22px; }
}
