/* ============================================================================
   NUANSE — work-index.css · the roster

   The client roster, this page's own, and the overlay behind it. The pinned
   proof prints above it are shared with the home page and live in proofs.css.

   Loaded after core.css and proofs.css, and only by work/index.html.

   ROUND 2, and this file has now reversed itself twice, so the history is
   worth keeping:

   First it said no client logos could ship, because the files were
   "mixed-quality JPG and PNG". That was wrong about the files — all seven in
   assets/client-logos/ are 1400px on the long edge and clean — and the marks
   shipped as 44px chips beside a typographic row.

   Then the chips were kept deliberately small, on the argument that twelve
   lockups at size read as a logo wall rather than as a roster. That argument
   was right about logo walls and wrong about this page. The client's round-2
   note was "reduce excessive negative space" and "too bland", and the
   measurement sided with them: the roster ran 3010px of a 7157px page, and
   four of its eight rows had an empty middle column — a 3fr column with
   nothing in it — because there is no sentence on file for those clients.

   So the rows became cards, and the mark went up from a 44px seal to a 120px
   plate on its own sampled ground. The negative space was not deleted; the
   width the rows were wasting now carries the next three clients instead. A
   card with nothing to say is simply a shorter card, which is the thing a row
   could never be.

   The grid, the chips and the cards are GENERATED by tools/build-roster.py
   from tools/clients.json. Class names below have to stay in step with it.
   ========================================================================== */

/* ============ THE FILTER ============
   Six chips and a count on each. The counts are the point: they are generated
   with the cards from one record per client, so a chip that says 3 cannot sit
   over a filter that shows 2.

   .chip is also defined in team.css for the team lane, identical but for the
   count. Not hoisted into core.css: that file is six pages' chassis and this
   page does not load team.css, so the cost of the duplication is ten lines
   and the cost of hoisting is a chassis edit two sessions deep in a cycle. */
.cl-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 var(--s3)}
.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;
  background:none;color:var(--navy);cursor:var(--cur-press);display:inline-flex;align-items:baseline;
  gap:8px;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)}
}

/* ============ THE GRID ============
   280px is the number that makes 1320px of content into four columns.
   D-a, round 3: "default and plain", and the fix is the rhythm the plan
   asked for rather than a bigger gap alone — Zingara and The Possah now
   span the FULL row each (grid-column:1/-1 on .cl-feat, not span 2), so
   the two cases that carry a real case page are never sharing a row with
   each other or with a logo-only client, and the other ten read as their
   own deliberate band underneath. The gap is also wider: the client note
   that asked round 2 to CLOSE the roster's empty space was about rows with
   nothing in the middle column, not about the grid's own breathing room —
   a grid of cards earns more air than a grid of empty columns did. */
.cl-grid{list-style:none;margin:0;padding:clamp(16px,1.8vw,24px) 0 0;
  display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:clamp(28px,3.4vw,52px) clamp(16px,1.8vw,24px);border-top:1px solid var(--navy)}
/* The frame is the card's, not the control's. It was on .cl-hit, which left
   the outbound site link hanging below the box like a caption, and made every
   row ragged: a card with a link ended lower than one without. */
.cl{display:flex;flex-direction:column;min-width:0;position:relative;
  background:var(--cream);border:1px solid rgba(13,26,65,.18);
  transition:border-color var(--t-mid) var(--ease)}
.cl-feat{grid-column:1/-1}
/* a full-width card is a landscape, not a thumbnail beside a column of
   text — the 34/66 split that worked at half the grid's width left a huge
   flat panel of nothing at the image's own aspect ratio once the card
   doubled in width, so the feat card gets its own, narrower image column. */
.cl-feat .cl-hit{grid-template-columns:minmax(280px,22%) minmax(0,1fr)}

/* the card itself is the control. One element, so its accessible name is its
   own visible text — the last cycle paid for the alternative with three axe
   label-content-name-mismatch failures on cards whose aria-label did not
   contain what they said on screen. */
.cl-hit{flex:1 1 auto;display:flex;flex-direction:column;align-items:stretch;
  text-align:left;font:inherit;color:inherit;text-decoration:none;cursor:var(--cur-press);
  background:none;border:0;padding:0;overflow:hidden}
.cl-feat .cl-hit{display:grid;grid-template-columns:minmax(0,34%) minmax(0,1fr);
  grid-template-rows:minmax(0,1fr) auto;align-items:stretch}
/* the tile runs the full height of the card; the copy and the action stack in
   the second column. Left as plain children of the grid they flowed into
   column one and the action landed under the mark. */
.cl-feat .cl-tile{grid-column:1;grid-row:1 / -1}
.cl-feat .cl-txt{grid-column:2;grid-row:1}
.cl-feat .cl-go{grid-column:2;grid-row:2}

/* the copper rule grows along the bottom edge of a card you are pointing at.
   One accent, the same one the rows used to spend, and it stays one: twelve
   cards picked out in copper is a palette, not an accent. */
.cl::after{content:"";position:absolute;left:0;bottom:-1px;height:2px;width:0;
  background:var(--copper);transition:width var(--t-mid) var(--ease)}
@media (hover:hover){
  .cl:hover{border-color:var(--navy)}
  .cl:hover::after{width:100%}
}
.cl-hit:focus-visible{outline:1px dashed var(--copper-ink);outline-offset:4px}

/* ============ THE TILE ============
   The mark at 120px on the ground sampled from its own file, so the square's
   own ground and the tile's are the same colour and there is no seam. Every
   tile is aria-hidden with an empty alt: the client's name is live text below
   it in Gloock, and a plate that repeats the name is a screen reader saying
   everything twice.

   Desaturated and at .88 at rest, full on hover. Not lower: four of the seven
   grounds are lighter than the cream they sit on, and past about .8 those
   four stop reading as marks and become four empty plates. */
.cl-tile{display:grid;place-items:center;aspect-ratio:16/9;overflow:hidden;
  border-bottom:1px solid rgba(13,26,65,.1);
  filter:saturate(.7);opacity:.88;
  transition:filter var(--t-mid) var(--ease),opacity var(--t-mid) var(--ease)}
.cl-tile picture{display:block;line-height:0}
.cl-tile img{display:block;width:120px;height:120px;object-fit:contain}
.cl-feat .cl-tile{aspect-ratio:auto;height:100%;border-bottom:0;
  border-right:1px solid rgba(13,26,65,.1)}
.cl-feat .cl-tile img{width:150px;height:150px}
/* no file on hand: our own setting on stone, so it is not dimmed like a mark
   we were given and does not pretend to be one */
.cl-init{background:var(--stone);filter:none;opacity:1}
.cl-init span{font-family:var(--serif);font-weight:400;font-size:38px;line-height:1;
  color:var(--navy);letter-spacing:.01em}
.cl-feat .cl-init span{font-size:52px}
@media (hover:hover){
  .cl:hover .cl-tile{filter:none;opacity:1}
}

/* ============ THE CARD COPY ============ */
.cl-txt{display:flex;flex-direction:column;padding:clamp(16px,1.6vw,22px);flex:1 1 auto;
  min-width:0}
.cl-sector{display:block;font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--mute);margin-bottom:10px}
.cl-name{display:block;font-family:var(--serif);font-weight:400;font-size:clamp(21px,1.7vw,26px);
  line-height:1.05;letter-spacing:-.02em;color:var(--navy)}
.cl-feat .cl-name{font-size:clamp(30px,3.2vw,46px);letter-spacing:-.03em}
.cl-line{display:block;margin-top:12px;color:var(--mute);font-size:14px;line-height:1.55;
  max-width:46ch}
.cl-feat .cl-line{font-size:16px;margin-top:16px}
/* the action sits on the card's own baseline, not the copy's, so eleven cards
   of different lengths still line their arrows up */
.cl-go{display:flex;align-items:center;gap:8px;margin-top:auto;
  padding:14px clamp(16px,1.6vw,22px) clamp(15px,1.5vw,20px);
  font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--copper-ink)}
.cl-go i{font-style:normal;transition:transform var(--t-mid) var(--ease)}
@media (hover:hover){.cl:hover .cl-go i{transform:translateX(5px)}}
.cl-feat .cl-go{padding-top:0}
/* a card whose client has nothing published is visibly thinner rather than
   padded out to match its neighbours */
.cl-thin .cl-name{font-size:clamp(19px,1.4vw,22px)}
/* the thin cards keep the tile shape of every other card. Giving them a
   shorter one made the difference between "nothing is published about this
   client" and "this card is broken" impossible to tell apart at a glance. */

/* the outbound link to a client's live site, outside the card's own control
   so that neither is nested in the other: with JavaScript dead the button
   does nothing and this still works */
.cl-site{display:flex;align-items:center;gap:7px;
  padding:11px clamp(16px,1.6vw,22px) 12px;border-top:1px solid rgba(13,26,65,.1);
  font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--mute);
  text-decoration:none;transition:color var(--t-sm) var(--ease)}
.cl-site i{font-style:normal}
@media (hover:hover){.cl-site:hover{color:var(--copper-ink);text-decoration:underline}}

/* filtered out. Kept in the flow for Flip to measure, then taken out of it */
.cl[hidden]{display:none}

/* ============ THE OVERLAY ============
   A dedicated screen per client rather than a page: ten of the twelve have no
   case of their own and will not get one, because there is nothing on file to
   put in it.

   It opens as a sheet and .cl-ov-wide widens it to the full frame — "a pop up
   screen which can be expandable". The sheet is the default because the card
   it came from is still visible behind it, which is what makes the clip-path
   open read as this card opening rather than as a new page arriving. */
.cl-ov{position:fixed;inset:0;z-index:250;visibility:hidden;
  background:rgba(8,17,46,.52);display:grid;place-items:center;
  padding:clamp(16px,4vh,56px) var(--gut-in)}
.cl-ov.open{visibility:visible}
.cl-ov-sheet{width:min(760px,100%);max-height:100%;overflow-y:auto;background:var(--cream);
  border:1px solid var(--navy);position:relative;
  transition:width var(--t-big) var(--ease)}
.cl-ov.wide .cl-ov-sheet{width:min(1180px,100%)}
.cl-ov-bar{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;
  padding:14px clamp(18px,2.4vw,30px);background:var(--cream);
  border-bottom:1px solid rgba(13,26,65,.18)}
.cl-ov-crumb{margin:0;color:var(--mute);font-size:10px;letter-spacing:.12em;
  text-transform:uppercase;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cl-ov-ctl{margin-left:auto;display:flex;align-items:center;gap:7px;flex:0 0 auto}
.cl-ov-step,.cl-ov-wide,.cl-ov-close{border:1px solid var(--navy);background:none;
  color:var(--navy);border-radius:999px;padding:7px 13px 6px;font-family:var(--mono);
  font-size:10px;letter-spacing:.12em;text-transform:uppercase;cursor:var(--cur-press);white-space:nowrap;
  transition:background var(--t-sm) var(--ease),color var(--t-sm) var(--ease)}
/* the arrows are square-ish, so they do not read as two more words */
.cl-ov-step{padding:7px 10px 6px;letter-spacing:0;font-size:12px;line-height:1}
.cl-ov-wide[aria-pressed=true]{background:var(--navy);color:var(--cream)}
@media (hover:hover){
  .cl-ov-step:hover,.cl-ov-wide:hover,.cl-ov-close:hover{background:var(--navy);color:var(--cream)}
}
.cl-ov-in{padding:clamp(24px,3vw,40px) clamp(18px,2.4vw,30px) clamp(28px,3.4vw,44px)}

/* the head: the mark at size, then who they are */
.cl-ov-head{display:grid;grid-template-columns:132px minmax(0,1fr);gap:clamp(18px,2.4vw,30px);
  align-items:center}
.cl-ov-tile{aspect-ratio:1;display:grid;place-items:center;overflow:hidden;
  border:1px solid rgba(13,26,65,.18)}
.cl-ov-tile img{display:block;width:104px;height:104px;object-fit:contain}
.cl-ov-tile.cl-init span{font-size:44px}
.cl-ov-sector{margin:0 0 10px;color:var(--mute);font-size:10px;letter-spacing:.12em;
  text-transform:uppercase}
.cl-ov-name{margin:0;font-family:var(--serif);font-weight:400;
  font-size:clamp(32px,4vw,52px);line-height:.98;letter-spacing:-.03em}
.cl-ov-line{margin:14px 0 0;color:var(--mute);max-width:52ch}
.cl-ov-out{display:inline-flex;align-items:center;gap:8px;margin:16px 0 0;
  font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--copper-ink);text-decoration:none;border-bottom:1px solid currentColor;
  padding-bottom:2px}

/* the four parts the client's note asked for, in the order a reader wants
   them: what they came with, what we did, what they got, what happened */
.cl-ov-parts{margin:clamp(26px,3vw,40px) 0 0;padding:clamp(22px,2.6vw,32px) 0 0;
  border-top:1px solid var(--navy);display:grid;gap:clamp(20px,2.4vw,30px)}
.cl-ov-part{display:grid;grid-template-columns:minmax(0,150px) minmax(0,1fr);
  gap:10px clamp(16px,2vw,28px);align-items:baseline}
.cl-ov-part dt{margin:0;font-family:var(--mono);font-size:10px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--copper-ink)}
.cl-ov-part dd{margin:0;min-width:0}
.cl-ov-part dd ul{margin:0;padding-left:1.1em}
.cl-ov-part dd li+li{margin-top:5px}
.cl-ov-num{font-family:var(--serif);font-size:clamp(28px,3vw,40px);line-height:1;
  letter-spacing:-.03em;display:block}
.cl-ov-num+span{display:block;margin-top:7px;color:var(--mute);font-size:14px}
/* the honest end of a record: not every engagement has a published number */
.cl-ov-unpub{color:var(--mute);font-size:14px;margin:0}
.cl-ov-foot{margin:clamp(24px,3vw,36px) 0 0;padding-top:16px;
  border-top:1px solid rgba(13,26,65,.18)}

/* ============ RESPONSIVE ============ */
@media (max-width:900px){
  /* .cl-feat keeps spanning the full row (grid-column:1/-1 is the default
     now, not span 2) — below this width the case card just stops trying to
     hold the image and the copy side by side */
  .cl-feat .cl-hit{display:flex;flex-direction:column}
  .cl-feat .cl-tile{aspect-ratio:16/9;height:auto;border-right:0;
    border-bottom:1px solid rgba(13,26,65,.1)}
  .cl-feat .cl-tile img{width:120px;height:120px}
  .cl-feat .cl-go{padding-top:14px}
  .cl-ov-part{grid-template-columns:1fr}
}
@media (max-width:600px){
  /* One column of 16:9 tiles is the wrong card for a phone: measured, it took
     the roster from 2844px to 5497px, which is the opposite of what this
     round was asked for. On a narrow screen the card lies down - a 76px
     square of mark beside the name, which is the shape the roster had before
     and the right one at this width. Measured back to about 1900px. */
  .cl-grid{grid-template-columns:1fr;gap:12px}
  .cl .cl-hit,.cl-feat .cl-hit{display:grid;
    grid-template-columns:76px minmax(0,1fr);grid-template-rows:auto auto;
    align-items:start;gap:0 14px;padding:14px 14px 0}
  .cl .cl-tile,.cl-feat .cl-tile{grid-column:1;grid-row:1 / span 2;
    aspect-ratio:1;width:76px;height:76px;border:1px solid rgba(13,26,65,.1);
    border-right:1px solid rgba(13,26,65,.1)}
  .cl .cl-tile img,.cl-feat .cl-tile img{width:58px;height:58px}
  .cl .cl-init span,.cl-feat .cl-init span{font-size:24px}
  .cl .cl-txt,.cl-feat .cl-txt{grid-column:2;grid-row:1;padding:0}
  .cl .cl-go,.cl-feat .cl-go{grid-column:2;grid-row:2;padding:10px 0 14px;margin-top:0}
  .cl-name,.cl-feat .cl-name{font-size:24px}
  .cl-feat .cl-line{font-size:14px}
  .cl-sector{margin-bottom:7px}

  .cl-ov{padding:0}
  .cl-ov-sheet{width:100%;max-height:100%;border:0}
  .cl-ov-head{grid-template-columns:1fr;justify-items:start}
  .cl-ov-tile{width:112px}
}

/* ============ THE DOODLES ============
   A copper pen sketch in the corner of every card that has no case behind
   it, drawn in once when the card arrives. pathLength=1 on every stroke, so
   one dash value draws any of them. */
.cl-hit{position:relative}
.cl-doodle{position:absolute;right:clamp(16px,1.6vw,22px);bottom:8px;width:clamp(52px,4.4vw,62px);
  height:auto;fill:none;stroke:var(--copper);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;
  vector-effect:non-scaling-stroke;opacity:.8;pointer-events:none;transform:rotate(-6deg);
  transition:transform var(--t-mid) var(--ease),opacity var(--t-mid) var(--ease)}
.cl-doodle path{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.1s var(--ease)}
.cl-doodle path:nth-child(2){transition-delay:.25s}
.cl-doodle path:nth-child(3){transition-delay:.45s}
.cl-doodle path:nth-child(n+4){transition-delay:.6s}
.cl.is-drawn .cl-doodle path{stroke-dashoffset:0}
@media (hover:hover){.cl:hover .cl-doodle{transform:rotate(3deg) scale(1.06);opacity:1}}
@media (prefers-reduced-motion:reduce){.cl-doodle path{stroke-dashoffset:0;transition:none}}
