/* Projects overview (work.html): every project as a card that leads to its own case page. Same system as the other content pages: tokens only,
   12-column grid, every length in rem (1rem = 16px at 1440), paragraphs 18px (--fs-link). A project without a case page yet is shown as "coming soon" (no link).
   To add a project: copy a .wk-card in work.html, add its case page under work/, then add the new Dutch texts (node tools/i18n/build.mjs lists what is missing). */

.editorial .wk-eyebrow{padding-top:0.6em;}

/* hero: label on column 1, title and lead from column 5 (like the about and contact pages) */
.editorial .wk-hero{padding-top:clamp(2.5rem,6vw,6rem);padding-bottom:var(--block-gap);}
.editorial .wk-hero-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gutter);}
.editorial .wk-hero .wk-eyebrow{grid-column:1 / span 4;grid-row:1;align-self:start;}
.editorial .wk-title{grid-column:5 / span 5;grid-row:1;margin:0;font-family:var(--serif);font-weight:400;font-size:var(--sf-h2);line-height:var(--sf-h2-lh);letter-spacing:var(--sf-ls);text-wrap:balance;}
.editorial .wk-lead{grid-column:5 / span 4;grid-row:2;margin:clamp(1.5rem,2.8vw,2.5rem) 0 0;font-size:var(--fs-link);line-height:1.5;letter-spacing:var(--ls-text);color:var(--muted);}

/* the cards: two per row on the grid, one column on a phone. Each card is the photo itself, full-bleed, with two pill tags overlaid
   on it (top-left: name · category, bottom-right: what it is) -- no text below the photo. On hover (and while focused), a muted,
   looping, controls-less recording of the site or design plays over the photo, where one is supplied; a card without a video
   just keeps the photo and its zoom. "is-soon" cards have no link and no video, only the photo in grayscale. */
.editorial .wk-list{padding-bottom:var(--block-gap);}
.editorial .wk-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gutter);row-gap:clamp(2rem,3.5vw,3rem);}
.editorial .wk-card{grid-column:span 6;}
.editorial .wk-link{display:block;color:inherit;text-decoration:none;}
.editorial .wk-art{position:relative;overflow:hidden;margin:0;border-radius:var(--radius);background:var(--night);aspect-ratio:2 / 3;}
.editorial .wk-art img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;transition:transform .9s cubic-bezier(.2,.7,.2,1);}
/* the recording plays in a small window centred on the photo, not full-bleed, at the recording's own aspect ratio so nothing is cropped: it scales in on hover and back out on leave */
.editorial .wk-hover-video{position:absolute;z-index:5;top:50%;left:50%;width:38%;height:auto;display:block;object-fit:contain;border-radius:calc(var(--radius) * 0.6);box-shadow:var(--shadow-card);opacity:0;transform:translate(-50%,-50%) scale(.95);transition:opacity .4s ease,transform .4s cubic-bezier(.2,.7,.2,1);pointer-events:none;}
.editorial a.wk-link:focus-visible .wk-art img{transform:scale(1.04);}
@media (hover: hover){
.editorial a.wk-link:hover .wk-art img{transform:scale(1.04);}}
.editorial a.wk-link:focus-visible .wk-hover-video,.editorial a.project-card:focus-visible .wk-hover-video{opacity:1;transform:translate(-50%,-50%) scale(1);}
@media (hover: hover){
.editorial a.wk-link:hover .wk-hover-video,.editorial a.project-card:hover .wk-hover-video{opacity:1;transform:translate(-50%,-50%) scale(1);}}
.editorial a.wk-link:focus-visible{outline:0.125rem solid var(--red);outline-offset:0.5rem;border-radius:var(--radius);}
.editorial .wk-tag{position:absolute;z-index:6;top:1.25rem;left:1.25rem;display:inline-flex;align-items:center;gap:1rem;padding:0.5rem 0.75rem;border-radius:62.4375rem;background:var(--paper);color:var(--ink);font-family:var(--body);font-size:var(--fs-meta);font-weight:400;line-height:1;letter-spacing:-0.035em;white-space:nowrap;}
.editorial .wk-tag i{display:block;width:0.25rem;height:0.25rem;border-radius:50%;background:color-mix(in srgb,var(--ink) 45%,var(--paper));}
.editorial .wk-tag span{color:color-mix(in srgb,var(--ink) 45%,var(--paper));}
.editorial .wk-type-pill{position:absolute;z-index:6;right:1.25rem;bottom:1.25rem;padding:0.5rem 0.75rem;border-radius:62.4375rem;background:color-mix(in srgb,var(--ink) 60%,transparent);color:var(--white);font-family:var(--body);font-size:var(--fs-pill);font-weight:400;line-height:1;letter-spacing:-0.025em;white-space:nowrap;}
.editorial .is-soon .wk-art img{filter:grayscale(1);}
.editorial .is-soon .wk-type-pill{background:color-mix(in srgb,var(--ink) 35%,transparent);}

/* Desktop bento layout (Figma, 2026-11): groups of up to six cards, two stacked side by side (7 of 12 columns)
   next to one tall card (the other 5 columns), mirrored every other group (stack+tall, then tall+stack). Row
   height is a plain rem (27.34375rem = 437.5px at the 1440 reference, since 1rem = 16px there) rather than a
   vw clamp, so it scales exactly in step with the column widths -- both ride the same fluid root font-size --
   and a tall card (2 rows + the row-gap) lines up with its neighbouring stack to the pixel. A trailing group of
   one card still fills the row -- the lone card spans both halves instead of leaving a gap. Below 1000px this
   is skipped and the simple one-per-row list further down applies instead. */
@media(min-width:1000px){
  .editorial .wk-list .wk-grid{grid-auto-flow:row dense;grid-auto-rows:27.34375rem;row-gap:var(--gutter);}
  .editorial .wk-list .wk-card{grid-column:1 / 8;}
  .editorial .wk-list .wk-card:nth-child(6n+3){grid-column:8 / 13;grid-row:span 2;}
  .editorial .wk-list .wk-card:nth-child(6n+4){grid-column:1 / 6;grid-row:span 2;}
  .editorial .wk-list .wk-card:nth-child(6n+5),.editorial .wk-list .wk-card:nth-child(6n+6){grid-column:6 / 13;}
  .editorial .wk-list .wk-card:nth-child(6n+5):last-child{grid-row:span 2;}
  .editorial .wk-list .wk-link,.editorial .wk-list .wk-art{height:100%;}
  .editorial .wk-list .wk-art{aspect-ratio:auto;}
  /* The tall cards are twice the height of a normal one, so their hover preview is twice as wide too -- otherwise
     it reads as a small window lost in a much bigger photo. */
  .editorial .wk-list .wk-card:nth-child(6n+3) .wk-hover-video,.editorial .wk-list .wk-card:nth-child(6n+4) .wk-hover-video,.editorial .wk-list .wk-card:nth-child(6n+5):last-child .wk-hover-video{width:76%;}
}

/* the homepage's own featured-work teaser: the same cards, but one full-width column with a wider, shorter photo */
.editorial .wk-grid--home{row-gap:clamp(1.5rem,2.5vw,2.25rem);}
.editorial .wk-card--home{grid-column:1 / -1;}
.editorial .wk-art--home{aspect-ratio:16 / 8.4;}

@media(max-width:999px){
  .editorial .wk-hero .wk-eyebrow,.editorial .wk-title,.editorial .wk-lead{grid-column:1 / -1;}
  .editorial .wk-hero .wk-eyebrow{grid-row:1;}
  .editorial .wk-title{grid-row:2;margin-top:1rem;}
  .editorial .wk-lead{grid-row:3;}
  .editorial .wk-card{grid-column:1 / -1;}
}
@media(max-width:700px){
  .editorial .wk-art--home{aspect-ratio:4 / 3;}
}
@media(max-width:600px){
  .editorial .wk-tag{top:0.875rem;left:0.875rem;padding:0.4375rem 0.625rem;font-size:var(--fs-pill);}
  .editorial .wk-type-pill{right:0.875rem;bottom:0.875rem;padding:0.4375rem 0.625rem;font-size:var(--fs-tiny);}
}

/* Review 2026-11-28: no zoom or pop with reduced motion. */
@media(prefers-reduced-motion:reduce){.editorial a.wk-link .wk-art img,.editorial .wk-hover-video{transition:none;}.editorial a.wk-link:is(:hover,:focus-visible) .wk-art img{transform:none;}}
