/* Halftone fade: a fixed cover in the page colour, drawn as a dot grid by part.js (see its header).
   An entry cover ([data-htf-entry]) is a solid sheet until the script takes over, so the page never flashes
   uncovered; if the script never runs, the sheet fades away by itself after 1.2 s. */
.htf {
  --htf-color: #f3f1ea;      /* the page colour (dots are drawn in it) */
  --htf-z: 40;
  position: fixed; inset: 0; z-index: var(--htf-z);
  pointer-events: none;
  color: var(--htf-color);   /* part.js reads the colour from here */
}
.htf[data-htf-entry] { background: var(--htf-color); animation: htf-nojs .4s ease 1.2s both; }
.htf.is-live { background: none; animation: none; }
.htf.is-flat-fallback { background: var(--htf-color); }            /* no WebGL: the same timing on opacity */
.htf.is-clear { visibility: hidden; }                              /* nothing drawn: off the compositor */
.htf.is-covering { pointer-events: auto; cursor: progress; }       /* no stray clicks while the page leaves */
.htf__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@keyframes htf-nojs { to { opacity: 0; visibility: hidden; } }
