/* NEXIFY STUDIO: the cursor-aimed hero spotlight (js/spotlight.js).
   The canvas is the hero plate, re-lit with its own beam turned about the
   fixed fixture. It sits under the film, so the film covers it during the
   scroll sequence; once the film fades out (hero-live) it is the background.
   At rest it is pixel-identical to the plate, so showing or hiding it is
   invisible. */
.spot-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
  visibility: hidden;
}
.spot-on .spot-canvas { visibility: visible; }

/* The pool of light the beam throws on the type: the conic cone's own
   champagne, lightest at the core, falling off softly. js/spotlight.js lays a
   light-only copy of NEXIFY and of STUDIO (.giant--spot) exactly over each
   word, in the same layer (NEXIFY stays behind the chair, STUDIO in front).
   The copy carries only this pool, clipped to the letter shapes and screened
   over the gold, so it only ever brightens the letters it reaches. The words
   themselves are never touched or repainted; --spot-i is 0 at rest and the
   copies are hidden, so the letters look exactly as before. */
.giant.giant--spot {
  /* set per frame on these two elements only (never on an ancestor: that
     would restyle the whole hero interface every frame) */
  --spot-x: 0px;
  --spot-y: 0px;
  --spot-r: 1px;
  --spot-i: 0;
  background-image: radial-gradient(
    ellipse var(--spot-r) calc(var(--spot-r) * 1.25) at var(--spot-x) var(--spot-y),
    rgba(255, 241, 205, calc(0.78 * var(--spot-i))) 0,
    rgba(246, 218, 152, calc(0.52 * var(--spot-i))) 22%,
    rgba(231, 196, 126, calc(0.3 * var(--spot-i))) 46%,
    rgba(207, 164, 82, calc(0.12 * var(--spot-i))) 70%,
    rgba(207, 164, 82, 0) 100%
  );
  background-blend-mode: normal;
  mix-blend-mode: screen;
  visibility: hidden;
}
.spot-lit .giant.giant--spot { visibility: visible; }
