/* pa140 Glass fit (INV-18, stage 1, A2480). The script that picks each slab's picture. It draws nothing: INV-04's overhead
   light went with the cotton (A2484), so the opener's ground and the page's match to the pixel. */

/* INV-18 additions (plan_inv18_additions_w1.md Part 5, claim A2664; owner 2026-11-03: A, C, F, G, K "All of them", B and
   the silk swatch out). The layer's two moving things, A and C; composited only; paused off screen (pa140-sunlit).
   F, G and K are still and live in their sections' own markup and style (closing, invitation). */
/* A: a star of light: a white core in a warm gold halo, two thin flares; it flashes about 1.5 s every 5 to 9 s */
.pa140-glint { position: absolute; z-index: 3; width: 18px; height: 18px; margin: -9px 0 0 -9px; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, #FFFFFF 0 16%, rgb(255 238 196 / .95) 30%, rgb(226 186 106 / .45) 55%, rgb(176 132 52 / .16) 72%, transparent);
  transform: scale(.2) rotate(var(--gr, 0deg)); }
.pa140-glint::before, .pa140-glint::after { content: ""; position: absolute; left: -60%; top: calc(50% - 1px); width: 220%; height: 2px;
  background: linear-gradient(90deg, transparent, rgb(255 246 222 / .95) 50%, transparent); }
.pa140-glint::after { transform: rotate(90deg); }
@media (min-width: 700px) { .pa140-glint { width: 24px; height: 24px; margin: -12px 0 0 -12px; } }
.pa140-sunlit > .pa140-glint { animation: pa140-glint var(--gt, 7s) ease-in-out var(--gd, 0s) infinite; }
@keyframes pa140-glint {
  0%, 100% { opacity: 0; transform: scale(.2) rotate(var(--gr, 0deg)); }
  8% { opacity: 1; transform: scale(1) rotate(calc(var(--gr, 0deg) + 25deg)); }
  18% { opacity: 0; transform: scale(.35) rotate(calc(var(--gr, 0deg) + 45deg)); }
}
/* C: dust in the window's light: soft warm flecks on two slow random drifts and a twinkle (INV-03's flurry, slower) */
.pa140-dust { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.pa140-dust--front { z-index: 4; }
.pa140-dust > i { position: absolute; display: block; border-radius: 50%; opacity: var(--a, .7);
  background: radial-gradient(closest-side, rgb(255 250 236) 0, rgb(255 242 210 / .75) 30%, rgb(255 232 186 / .25) 62%, rgb(255 232 186 / 0)); }
.pa140-sunlit > .pa140-dust > i { animation: pa140-dust-a var(--ta, 18s) ease-in-out var(--da, 0s) infinite alternate,
  pa140-dust-b var(--tb, 24s) ease-in-out var(--db, 0s) infinite alternate, pa140-dust-tw var(--tc, 6s) ease-in-out var(--dc, 0s) infinite alternate; }
@keyframes pa140-dust-a { to { translate: var(--ax, 0px) var(--ay, 0px); } }
@keyframes pa140-dust-b { to { transform: translate(var(--bx, 0px), var(--by, 0px)); } }
@keyframes pa140-dust-tw { to { opacity: calc(var(--a, .7) * .4); } }
/* stills only (the evidence look tools set pa140-still on html): a glint at its brightest, two in three showing; no dust mid-move */
html.pa140-still .pa140-glint { animation: none; opacity: 1; transform: scale(1) rotate(calc(var(--gr, 0deg) + 25deg)); }
html.pa140-still .pa140-glint:nth-of-type(3n) { opacity: 0; }
html.pa140-still .pa140-dust > i { animation: none; }
/* INV-18 W2 (A2669): gold fills the engraving as each piece comes into view (section.js): the words wait as a pale cut in
   the engraving's own shade and lip, then gold flows in, in reading order (--pa140-d), once. Colour only. Only under
   kjy-fx: lite, Reduce motion and no script keep the gold */
html.kjy-fx:not(.kjy-lite) .pa140-gild:not(.is-gilt) .pa140-gw { color: rgb(255 255 255 / .62); }
html.kjy-fx:not(.kjy-lite) .pa140-gild.is-gilt:not(.is-done) .pa140-gw { transition: color 1.3s cubic-bezier(.45, 0, .25, 1) var(--pa140-d, 0s); }
