/* ============================================================================
   NUANSE — team.css · ten people

   The brief builder, the ten portraits in one grid, and the hiring line.

   The portraits used to be eight unnamed roles, so the caption was one mono
   line and the grid was four across. They are ten named people now, which
   changes both: the caption carries a name in Hanken 500 with the role in
   mono beneath it, and the grid is five across: ten people, two even rows.

   Loaded after core.css and only by team.html. The chassis — tokens, type,
   nav, cursor, opening frame, next-page link, footer — is in core.css.
   ========================================================================== */

/* ============ 8 · TEAM ============ */
.team{background:var(--stone)}
/* D-d: "every member should be visible together in one properly composed,
   edge-to-edge frame" — the filter is good and stays, but it is not the
   first thing a visitor should meet. .team-frame breaks out of .sec's own
   gutter to the true viewport edge, on its own ground, so the ten people
   read as one photograph rather than as a grid sitting inside running
   copy. */
.team-frame{width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);
  background:var(--cream);border-top:1px solid var(--navy);border-bottom:1px solid var(--navy);
  padding:clamp(28px,4vw,56px) var(--gut);margin-top:var(--gap-md);margin-bottom:var(--gap-md)}
.team-story{margin:22px 0 0;max-width:52ch;color:var(--navy)}
/* the brief filter heads the frame: a question on the left, the chips on
   the right, one hairline under them and then the ten. */
.builder{display:flex;align-items:center;justify-content:space-between;gap:12px var(--gap-sm);
  flex-wrap:wrap;max-width:1400px;margin:0 auto var(--s3);padding-bottom:var(--s3);
  border-bottom:1px solid rgba(13,26,65,.14)}
.builder-q{margin:0;color:var(--copper-ink)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{border:1px solid var(--navy);border-radius:999px;padding:8px 14px 7px;font-family:var(--mono);
  font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;
  transition:background var(--t-mid) var(--ease),color var(--t-mid) var(--ease)}
.chip[aria-pressed=true]{background:var(--navy);color:var(--cream)}
@media (hover:hover){
  .chip:hover{background:rgba(13,26,65,.08)}
  .chip[aria-pressed=true]:hover{background:var(--navy)}
}
/* Round 4: the plates are photographs now. The layout is the one the owner
   specified: a rounded plate per cell, a hairline standing between the
   cells, and the caption flush under the plate rather than indented off a
   dash. Still one even 5x2 grid with the founder first among the ten.

   The drawing is not retired. It comes up over the photograph on hover, so
   the card holds both - what the person looks like, and how the studio
   draws them. */
.scatter{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
  gap:clamp(30px,3.4vw,48px) 0;align-items:start;max-width:1400px;margin:0 auto}
/* the divider is a cell border, not a gap rule: it has to be exactly as tall
   as the cell it stands beside, caption included, and only a border is. */
.tm{margin:0;position:relative;padding:0 clamp(12px,1.5vw,22px);
  border-left:1px solid rgba(13,26,65,.14);
  transition:opacity var(--t-mid) var(--ease),filter var(--t-mid) var(--ease)}
.tm:nth-child(5n){border-right:1px solid rgba(13,26,65,.14)}
/* the brief filter dims who it does not need rather than moving anyone */
.tm.off{opacity:.25;filter:grayscale(1)}
.tm-ph{aspect-ratio:4/5;background:var(--cream);border-radius:clamp(10px,1.1vw,16px);
  overflow:hidden;position:relative}
.tm-ph picture,.tm-ph img,.tm-ph svg{position:absolute;inset:0;width:100%;height:100%;display:block}
.tm-img{object-fit:cover}
/* the drawing is given the same ground the photograph sits on, so at full
   opacity it covers the plate outright and the swap ends with no ghost of a
   face underneath it. */
.tm-ph svg{background:var(--cream);opacity:0;
  transition:opacity var(--t-mid) var(--ease)}
@media (hover:hover){
  .tm:hover .tm-ph svg{opacity:1}
  .tm:hover .t-name{color:var(--copper-ink)}
}
/* the founder's plate carries one quiet tag, not a lane apart. An outline
   rather than a border: it follows the radius and costs the plate no width. */
.tm[data-i="0"] .tm-ph{outline:1px solid var(--copper);outline-offset:0}
.tm[data-i="0"] .tm-ph::after{content:"Founder";position:absolute;top:8px;right:8px;
  font-family:var(--mono);font-size:8.5px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--cream);background:var(--copper-ink);padding:4px 7px 3px;border-radius:999px}
/* name over role, both flush with the plate's left edge */
.tm figcaption{margin-top:14px;min-height:3.4em}
/* the name is the content now, so it is set in the body face, not in mono.
   min-height holds the line while typeNames() writes it on from empty -
   without it every caption jumps as its first character lands. */
.t-name{display:block;font-family:var(--sans);font-weight:500;font-size:14px;
  line-height:1.25;letter-spacing:0;text-transform:none;min-height:1.25em;color:var(--navy);
  transition:color var(--t-mid) var(--ease)}
.t-role{display:block;margin-top:3px;font-family:var(--mono);font-size:9.5px;
  letter-spacing:.1em;text-transform:uppercase;line-height:1.45;color:var(--mute)}
.t-link{display:inline-flex;gap:4px;margin-top:8px;font-size:9.5px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--copper-ink);text-decoration:none;
  border-bottom:1px solid currentColor;padding-bottom:1px}
.t-link i{font-style:normal}
@media (hover:hover){.t-link:hover{color:var(--navy)}}
.hiring{margin-top:var(--gap-md);display:flex;justify-content:space-between;align-items:center;
  gap:20px;flex-wrap:wrap;border-top:1px solid var(--navy);padding-top:var(--s3)}
.hiring p{margin:0;font-family:var(--serif);font-size:clamp(26px,3vw,40px);letter-spacing:-.03em;
  line-height:1}

/* ============ RESPONSIVE ============ */
@media (max-width:900px){
  .team-frame{padding:clamp(22px,5vw,40px) var(--gut)}
  .scatter{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tm:nth-child(5n){border-right:0}
  .tm:nth-child(2n){border-right:1px solid rgba(13,26,65,.14)}
  .t-name{font-size:13px}
}
