/* ==========================================================================
   PORTFOLIO UPDATE (layered after pass6.css; only the Projects media change)
   ========================================================================== */

/* Portfolio layouts: every card is the same size, and its slot is 16:9, the covers' own shape, so each
   cover fills its card edge to edge (no carbon bands, and nothing cropped). A cover's ground is the night's
   own carbon, so the slot is carbon too. (In the case sheet each figure keeps its own image's shape.) */
.case__media--frame { background: var(--carbon); aspect-ratio: 16 / 9; }
.case__media--frame .case__rise > img { object-fit: cover; }

/* Portfolio update 2: a video that is a later layer (Seed Health's capture) plays only in the case sheet, which
   takes its own copy of the control. Under the cover in the list, the control has nothing to play. */
.case__rise > .video-toggle { display: none; }

/* ==========================================================================
   PORTFOLIO UPDATE 3: a card is its cover and one type word
   The cover is the card's title card, so under it there is only what kind of
   project it is: one word on the card's horizon, at its left end, like a
   station name. The project's name stays the card's link (read out, not
   shown); the sheet shows it.
   ========================================================================== */
/* set like the filter tabs (their size and tracking, sentence case), so the word and the categories speak
   the same language; Field at rest, the colour of the covers' own context lines */
.case__type { font-size: clamp(.9375rem, 1.05vw, 1.0625rem); line-height: 1.3; letter-spacing: -.005em; color: var(--field); }
.work--cards .case__say { padding-top: .8rem; }
.work--cards .case__title { margin: 0; }
/* it lights with its horizon when you reach for the card */
.work--cards .case__type { transition: color .5s var(--e-io); }
@media (hover: hover) { .work--cards .case__card:hover .case__type { color: var(--sodium); } }
.work--cards .case__card:focus-within .case__type { color: var(--sodium); }

/* the rhythm without the say blocks: each row is shorter by a title and a deck, so the rows stand further
   apart and the list still breathes (big card, the small one standing lower, room between rows) */
@media (min-width: 1000px) { .work--cards .cases { row-gap: clamp(6rem, 16vh, 10rem); } }
@media (min-width: 600px) and (max-width: 999px) { .work--cards .cases { row-gap: clamp(4.5rem, 10vh, 6.5rem); } }
@media (max-width: 599px) { .work--cards .cases { gap: clamp(4rem, 10vh, 5.5rem); } }

/* the sheet's header: the type, then the project's name */
.csheet__type { font-size: clamp(.9375rem, 1.05vw, 1.0625rem); line-height: 1.3; letter-spacing: -.005em; color: var(--sodium); }
