/* Version 1, 21 Nov 2026: the grain. A fine film grain over every painting and photo, and the same grain, much
   fainter, in the white content cards. Michiel, 21 Nov: "B: fine grain", out of the picture layer experiment of round 2
   (options A none, C stipple and D fade and resolve are gone; the whole experiment is kept in
   research/v12/h-before-order6-2026-11-21/). No option and no switch: this is the page. No script.
   The layer is the ::after of the box that holds the picture: above the picture, under the windows and cards on it,
   so no text or interface changes. Left alone: the engravings (ink on paper already), the 34 px avatars, logo marks,
   blog charts, and the founder photos under 601 px (a 104 px float there).
   The tile assets/img/tex/grain.png is our own, generated by tiles.py (handoff-2026-11-19/website/round-2/checks-pictures/).
   Every rule starts with html:root: that gives it the weight the option had as html[data-o-img="b"], which it needs
   to win from the cards' own backgrounds (.p-wait .g-form).
   Screen only: print shows the plain pictures. Report: handoff-2026-11-19/website/reports/round-2-pictures.md */
@media screen {

/* ---------- the layer ---------- */
html:root :is(.h-panel, .h-cl-pic, .a-dm, .pane-img, .post-img, .a-res-img):has(> img)::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
html:root :is(.h-panel, .h-cl-pic, .a-dm)::after { z-index: -1; }   /* their painting sits at z-index -1 with the interface above it: the layer goes in between */
html:root :is(.post-img, .a-res-img):has(> img) { position: relative; }   /* has(> img): a cover drawn in CSS or SVG is no picture and stays as it is */
@media (min-width: 601px) {   /* a founder card is a grid of photo and words: the layer takes the photo's cell */
  html:root .a-fdrs--about .a-fdr > img { grid-area: 1 / 1; }
  html:root .a-fdrs--about .a-fdr > figcaption { grid-area: 1 / 2; }
  html:root .a-fdrs--about .a-fdr::after { content: ""; grid-area: 1 / 1; z-index: 1; pointer-events: none; }
}

/* ---------- the grain ----------
   grain.png: dark and light specks, 192 px shown at 96 px, strongest speck 16% (most are far fainter). In a white card
   it lies under a white veil of 75%, which leaves 4%. Product windows and the kit cards stay clean. */
html:root :is(.h-panel, .h-cl-pic, .a-dm, .pane-img, .post-img, .a-res-img, .a-fdr):has(> img)::after {
  background: url(/assets/img/tex/grain.png) 0 0 / 96px 96px;
}
html:root :is(.a-fdr, .a-res, .h-num, .h-cl-card, .post, .p-wait-l, .g-form) {
  background-image: linear-gradient(rgba(255, 255, 255, .75), rgba(255, 255, 255, .75)), url(/assets/img/tex/grain.png);
  background-size: auto, 96px 96px;
}

}
