/* ---------- list view ---------- */

/* Figma 794:1943. Every project as a row across the full width — Name, Type,
   Service, Year — with the hovered project's first image or video behind the
   rows, where that media sits when its project page loads.

   Why it exists: the strip is for browsing and bad at finding. About three
   cards fit on screen, captions only appear on hover, and because it loops
   nothing tells you when you have seen everything. Someone arriving with a
   question needs to scan. Same shell as About otherwise — inset:0, no band
   behind the chrome, rubber band, cross-fade. */
.worklist{
  position:absolute;
  inset:0;
  padding:0 var(--pad);
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-width:none;
  visibility:hidden;
  pointer-events:none;
  transition:visibility 0s linear 420ms;
}
body.worklist-open .worklist{visibility:visible;pointer-events:auto;transition-delay:0s}
.worklist::-webkit-scrollbar{display:none}

/* Figma: x=20 y=70 w=1360, headings then rows 20px below. Rows touch — 10px
   of padding above and below instead of a 20px gap — so moving down the list
   never crosses a gap that belongs to no row; across a real gap :hover would
   drop off the list for a frame and every row would flash back. The pitch is
   Figma's. */
.wl-doc{
  display:flex;
  flex-direction:column;
  gap:10px;                    /* + the first row's 10px padding = Figma's 20 */
  padding-top:var(--header-h);
  padding-bottom:var(--seam);
  opacity:0;
  transition:opacity var(--fade) var(--fade-ease);
}
body.worklist-open .wl-doc{opacity:1;transition:opacity var(--fade) var(--fade-ease) var(--fade-gap)}

/* Four equal columns, 20 apart: (1360 - 60) / 4 = Figma's 325. */
.wl-head,
.wl-row{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  column-gap:var(--gap);
}

/* A heading sorts by its column — names, types and services A to Z, years
   newest first, one click each. Figma draws every heading at full ink; the
   ones not in use step back to the rows' own .4 so the active sort can be
   told apart without a mark being added. */
.wl-sort{
  padding:0;
  border:0;
  background:none;
  font:inherit;
  font-size:var(--fs-s);
  color:var(--ink);
  text-align:left;
  cursor:pointer;
  opacity:.4;
  transition:opacity 200ms var(--ease);
}
.wl-sort.is-active{opacity:1}@media (hover:hover){.wl-sort:hover{opacity:1}}.wl-sort.is-pressed{opacity:1}

.wl-rows{
  list-style:none;
  margin:0;
  padding:0;
}

.wl-row{
  padding:10px 0;
  font-size:16px;              /* Figma 794:2064 */
  color:var(--ink);
  transition:opacity 200ms var(--ease);
}
/* Every other row sat on a pale --surface pill band from 2026-09-23 to 09-24
   (wlStripe, `.is-alt`); the row stepped out 10 and padded back in so the
   band reached past the words while they stayed on the page margin. */
.wl-row{margin:0 -10px;padding-left:10px;padding-right:10px;border-radius:999px}
/* THE BANDS WENT AGAIN (Anthony, 2026-09-24: "get rid of the gray
   alternating bars"). The step-out-and-pad-back above stays: it is net zero,
   and the phone's row padding assumes it. */
/* Clipped SIDEWAYS only. Cells are cap-trimmed like all text here, and
   `overflow:hidden` crops to that box — which cut the tail off every g, p and
   y ("Earbuas", "Espresso Cun"). `clip` is per-axis: a value too long for its
   column still ends in an ellipsis while its descenders hang free. */
.wl-row .wl-cell{
  overflow-x:clip;
  overflow-y:visible;
  text-overflow:ellipsis;
  white-space:nowrap;
}
/* Figma: the row you point at at full ink, every other at 40%. Keyboard focus
   does the same, through :has, so a mouse click never triggers it. */
.wl-rows:has(.wl-row:focus-visible) .wl-row{opacity:.4}@media (hover:hover){.wl-rows:hover .wl-row{opacity:.4}}.wl-rows.is-pressed .wl-row{opacity:.4}
.wl-rows .wl-row:focus-visible{opacity:1}@media (hover:hover){.wl-rows .wl-row:hover{opacity:1}}.wl-rows .wl-row.is-pressed{opacity:1}
.wl-row:focus-visible{outline:none}

/* The hover preview: the project's first image or video as a thumbnail — the
   strip card's 4:5 at half size — that trails the pointer while it is over a
   row: just right of the cursor, centred on it, easing after it rather than
   stuck to it (the follow is per-frame in app.js, never a CSS transition, so
   it can be redirected mid-move without restarting). Its top never rises above
   the heading row (y=70) and its foot stays 20px inside the window.

   History: a full-size image behind the rows was built first ("a bit too
   much"), then a thumbnail pinned beside the row at the right edge that glided
   between rows on a 260ms transition — Anthony found that too stiff. */
.wl-preview{
  position:fixed;
  inset:0;
  pointer-events:none;
  visibility:hidden;
}
body.worklist-open .wl-preview{visibility:visible}
/* the services page borrows it for its cards (svcHover) */
body.services-open .wl-preview{visibility:visible}

.wl-media{
  position:fixed;
  top:0;
  left:0;
  width:200px;
  height:250px;
  border-radius:10px;   /* the cards' 20 at half their size (was 15, 2026-09-25) */
  overflow:hidden;
  opacity:0;
  will-change:transform;
  transition:opacity 200ms var(--ease);
}
.wl-media.is-showing{opacity:1;transition:opacity 260ms var(--ease)}

/* Moving between rows, the incoming picture fades in ON TOP of the outgoing
   one, which stays at full strength until it is covered and only then drops.
   Fading both at once dips through the page halfway. */
.wl-media > *{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:inherit;       /* Safari lets a composited video escape the parent's clip */
  background:var(--surface);
  opacity:0;
  z-index:0;
  transition:opacity 0s linear 240ms;
}
.wl-media > .is-on{
  opacity:1;
  z-index:1;
  transition:opacity 240ms var(--ease);
}
