/* Copied from holding-site/assets/css/pointer-light.css, unchanged below this note.
 * `.backdrop::after` is the last box inside banner-site's backdrop, after the bath
 * (artwork.css `.backdrop::before`) and the drawing artwork.js appends, with no z-index
 * on any of them -- the same place it holds in holding-site, where it follows the arcs,
 * the glow, the figure, the scrim, the rim and the corners. So it lies over the drawing
 * and under `.page` (base.css, z-index 1), and takes no pointer events. Its three
 * colours are the --pointer-* tokens, identical in both tokens.css files. banner-site
 * declares no other cascade layer, so `@layer light` here outranks nothing and is
 * outranked by nothing that names `.backdrop::after`.
 *
 * ONE ADDITION, AT THE FOOT: `--sheen-over`. The source paints its light over its own
 * scrim, on purpose (its header, below, says why). banner-site's feathered ground under
 * the headline is drawn in the page (hero.css `.hero__title::before`), above the
 * backdrop, so there the light would be hidden exactly where the headline stands.
 * `--sheen-over` is this file's gradient again, as one value, and hero.css's
 * `.hero__title::after` lays it on top of that ground with `background-attachment:
 * fixed`, which positions it against the viewport -- the same box the backdrop fills --
 * so the two paint one light, masked by the ground's own gradient so it is restored only
 * where the ground hid it. The value appears with [data-lit], and a background image
 * cannot transition, so hero.css fades the layer that paints it by its opacity, on this
 * file's own 620ms curve: the copy over the headline arrives with the backdrop's light.
 *
 * ONE CHANGE, BY THE OWNER'S RULING: LESS DRAMATIC. The source's three --pointer-* stops
 * are read through --blend-pointer-core and --blend-pointer-mid (tokens.css, BANNER-SITE
 * BLENDS), the same stops faded toward nothing by one number. Box, stops, falloff, lag
 * and fade are the source's; only the strength is less. The header below is the source's
 * and speaks of the source's strength. */

/* THE LIGHT THAT FOLLOWS THE POINTER.

   LIFTED, NOT REBUILT. The company's own site already carries this, and so do ten pages
   of this repository, byte for byte alike. What is here is that code with the changes
   the architect asked for, not a second invention of it.

   IT WRITES TWO NUMBERS AND PAINTS NOTHING. Where the light is belongs to the pointer and
   what it looks like belongs here, so the script never grows a colour and this file never
   grows a coordinate.

   IT CROSSES THE WHOLE SURFACE, THE TEXT INCLUDED. It was clipped to the drawing for one
   round, on instruction, and that instruction was replaced by its opposite. So it paints on
   the backdrop rather than on the figure, and the two numbers are percentages of the
   backdrop, which fills the viewport. The backdrop seals its own stacking context beneath
   the page column, so the light reaches every part of the screen and still cannot reach
   above a single word. It is the backdrop's last layer, which puts it over the scrim --
   deliberate, because the scrim is nearly opaque where the headline sits and a light
   underneath it would be erased exactly where it is wanted.

   ITS PEAK IS JUST UNDER THE PAGE'S OWN AMBIENT GLOW, and that is the whole of the
   calibration. The bath this page is lit by peaks at .15; this sits at .14, which is 93
   percent of it, and is far narrower than it, so the light is a sheen that passes over a
   lit ground rather than a second lamp standing on it. Every figure is measured against
   that one anchor rather than chosen, and if the bath is ever retuned this must be
   retuned with it.

   THE GEOMETRY IS THE ORIGINAL'S, RESTORED. The effect was lifted at a 28rem box falling
   to nothing at 68 percent of it, and a round between then and now narrowed the box to
   24rem and dimmed the peak to .085. The box and the two stops below are back where they
   were lifted from. The middle stop is not a third decision: it sits exactly on the line
   the original fell along, so three tokens draw a ramp the original drew with two.

   AND IT IS BOUNDED BY A PERSON. The reader this page is built for does not tolerate
   large bright regions. The brightest pixel here is the headline's ink, at a luma of 231;
   the light lifts a near-black ground by about fifteen and comes nowhere near it. That
   ceiling is a standing accommodation and not a preference, so the peak above is a limit
   as much as it is a setting.

   IT IS DARK UNTIL A REAL READING ARRIVES. Without the script there is no pointer to follow,
   so a light pinned at whatever the properties fall back to would be brightness for no
   reason. The mark is set by the script on the first real reading and by nothing else.

   IT TAKES NO POINTER EVENTS, because a reader has to be able to click through the thing
   following their cursor.

   ONE LIMIT, STATED RATHER THAN LEFT TO BE FOUND. The page's reduced-motion rule uses the
   universal selector, which does not match a pseudo-element, so this fade is not caught by
   it. The script returns before anything is marked under that setting, so no light ever
   appears -- but the rule below is not what stops it. */

@layer light {
  @media (hover:hover) and (pointer:fine) {
    .backdrop::after{content:"";position:absolute;inset:0;pointer-events:none;
      background-image:radial-gradient(28rem 28rem at var(--px,50%) var(--py,50%),
        var(--blend-pointer-core) 0%,var(--blend-pointer-mid) 42%,var(--pointer-far) 68%);
      opacity:0;transition:opacity 620ms cubic-bezier(.16,1,.3,1)}
    [data-lit] .backdrop::after{opacity:1}
  }
}

@layer light {
  @media (hover:hover) and (pointer:fine) {
    [data-lit]{--sheen-over:radial-gradient(28rem 28rem at var(--px,50%) var(--py,50%),
      var(--blend-pointer-core) 0%,var(--blend-pointer-mid) 42%,var(--pointer-far) 68%)}
  }
}
