/* Living leaf light (layer/particles/004) — INV-05 Sage Light v2.2 · Luxe (inv05_luxe_plus w1, A1427). The invitation
   lies on cotton paper by a sunny window: soft, warm olive-leaf shadows sway over everything (the paper, the cards,
   their words), as one window light would, stirred by a fast scroll. Two planes: the room behind every section
   (z-index 0: the ground's window light, vignette and cotton grain), and the light above them (a fixed canvas,
   pointer-events none, drawn by section.js). Edge sprigs were tried on wide screens and dropped after review round 2
   (fixed, they were cut by the hero's edge and repeated the card's own eucalyptus). The first
   review found shadows that stopped dead at each card's edge read as a background layer, not sunlight (A1427).
   Sections that bring their own light (hero, gallery, closing) quieten it. Nothing blurred is animated (AG-T068). */
.pa004-room { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--k-ease, ease); }
html.kjy-opened .pa004-room { opacity: 1; }
/* The ground stays within a hair of the page colour (window light and vignette under ΔE 1.5): the hero paints its own
   flat paper and ends in a straight edge, so a stronger ground would show a seam there. section.js also fades the
   ground (and the leaves) while the hero, gallery or closing fills half the screen (--pa004-g). */
.pa004-ground { position: absolute; inset: 0; opacity: var(--pa004-g, 1);
  background: radial-gradient(130% 95% at 12% -5%, rgb(255 251 243 / .26), rgb(255 251 243 / 0) 58%), radial-gradient(160% 120% at 50% 45%, rgb(110 82 62 / 0) 62%, rgb(110 82 62 / .05) 100%); }
/* the cotton tooth: the skin's grain as a MASK over its own ink (a mask is never an LCP candidate) */
.pa004-ground::after { content: ""; position: absolute; inset: 0; background: rgb(59, 51, 48); -webkit-mask: var(--k-grain); mask: var(--k-grain); opacity: .22; }
/* the light: above every section (the events sheet is z-index 2), below the gate (100); it never takes a touch */
.pa004-light { position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--k-ease, ease); }
html.kjy-opened .pa004-light { opacity: 1; }
.pa004-leaves { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---- W2a (A1771; D-115, the picture board's "day passes as you scroll") ----
   section.js turns page progress p into the hour (--pa004-sun-rgb: a fresh pale morning, warm midday, golden late
   afternoon, the closing's evening gold; OKLab) and its strength (--pa004-wash), written on .pa004 only when they change.
   The wash lies on the ground from the window's side (110 deg: the window is top left), fading with the ground where a
   section brings its own light; over everything, words and cards too, the same light multiplies at .4 of that strength,
   but only with the afternoon (--pa004-mul: 0 until p .5, 1 from p .85), so the morning stays fresh and midday bright
   (W2a eye review r1). The leaf shadows take the hour's tint, and deepen and lengthen through the afternoon, in
   section.js. Reduced motion: no script, so no wash.
   W2a.1 (A1800; owner 2026-10-23: the end of the page "creamish", keep it whitish like the top): the afternoon gold is
   gone; after noon the light returns to the morning's white, and --pa004-mul stays 0 (no tint over the cards). */
.pa004-wash { position: absolute; inset: 0;
  background: linear-gradient(110deg, rgb(var(--pa004-sun-rgb, 255 251 243) / var(--pa004-wash, 0)) 0%, rgb(var(--pa004-sun-rgb, 255 251 243) / calc(var(--pa004-wash, 0) * .25)) 100%); }
/* the afternoon light falls off away from the window (one even tint read as a filter, W2a review r2): lighter on the
   window side, deeper on the far side; .4 of the wash on average, as the board had it */
.pa004-top { position: fixed; inset: 0; z-index: 4; pointer-events: none; mix-blend-mode: multiply; opacity: 0;
  background: linear-gradient(110deg, rgb(var(--pa004-sun-rgb, 255 251 243) / calc(var(--pa004-wash, 0) * .15)) 0%, rgb(var(--pa004-sun-rgb, 255 251 243) / calc(var(--pa004-wash, 0) * .65)) 100%); }
html.kjy-opened .pa004-top { opacity: calc(var(--pa004-g, 1) * var(--pa004-mul, 0)); }
.pa004-leaves { transform-origin: 0 0; }
