# LUMBRE — luz de autor

## Mechanism actually used

Original reference: [Glowing Text Marquee Animation](https://tympanus.net/Tutorials/GlowingTextMarqueeAnimation/), by Kaploom® Creative House / Ulvis for Codrops.

Inspected repository: [ulviskaploom/codrops-darkroom](https://github.com/ulviskaploom/codrops-darkroom), commit `7a01250842349f195501aff22dc6311e744bc620`, downloaded and reviewed on 9 October 2026. `css/base.css` and the complete scene in `index.html` were read. `js/main.js` is empty: the effect is genuinely CSS and SVG, not a JavaScript renderer or WebGL shader.

Substantial CSS mechanism is adapted under MIT, **Copyright (c) 2024 Ulvis**, with exact original notice in `LICENSE.codrops.txt`. The adaptation retains:

- An inline SVG `clipPath` with `clipPathUnits="objectBoundingBox"`, containing **two identical words**. The outlined word is the moving aperture, not painted text with `background-clip`.
- Mask translation `0% → -50%`, twenty seconds, linear, infinite. The inner colour plane translates `0% → +50%`, with the same timing, so the coloured light remains stationary in viewport coordinates while the letters pass through it.
- Original sizing principles: doubled rail is `232vw` on desktop and `420vw` on mobile; the mobile gradients/products are enlarged `1.75` times. Colour plane background is near black. The two light images measure `52vw` square; product images retain `26vw` / `22vw` sizing and relative `±7vw`, `-2.3vw` / `5vw` offsets.
- Core entrance: three seconds with half-second delay. Pro entrance: 2.75 seconds with 0.75-second delay. Both use `cubic-bezier(.04,1.15,.4,.99)` and begin one viewport below the final placement. Product and associated word illumination enter together.
- Core float: four seconds, `0% → 5%`, alternating ease-in-out. Pro float: three seconds, `4% → 0%`, alternating ease-in-out. This is deliberately the original float, not random pointer motion.
- Product glow at 180% of product container, 0.4 opacity, with the original opposite offsets.

## Original brand, assets and font

The original DARKROOM lettering, box images, gradients, Kaploom logo, promotional copy and Google font are **not reused**. LUMBRE is a fictional author-lighting studio created for this simulated commercial demo. Warm amber glass and cool folded opal lights give the illumination a concrete product meaning.

`glyphs.js` / `glyphs.svg` are LUMBRE's own double-word document outlines built from the unmodified `fonts/BebasNeue-Regular.ttf` with development-only fontTools 4.60.0. Typeface: Bebas Neue, **Copyright © 2010 by Dharma Type**, SIL Open Font License 1.1. Exact font notice is retained as `OFL-BebasNeue.txt`. The font file SHA-256 is `08e4623805102d819f58601e46e345648846075e363b2ceb23313c2d1c83ec73`. This creates a document outline, not a renamed or modified font. The generated wordmark's two-word aspect ratio is `7.327436619718309`; its six-letter natural shape differs from the original eight-letter word, but both repeat periods occupy exactly half the clip coordinates. The reproducible generator lives in `tools/build-glyphs.py` and its development dependency is not needed by the browser or deployment.

`gradient-core.svg` and `gradient-pro.svg` are original 50×50 images with radial stops and a baked SVG Gaussian blur. They are rendered as small external images rather than applying an expensive live full-screen CSS blur to every animation frame. The amber / opal palette is specific to the two LUMBRE products. Product imagery is own generated imagery; prompts and final provenance are documented by the main demo release record. No photography from the source repository is copied.

## Integration and safeguards added

Load `glyphs.js` before `glow.js` and load `glow.css` with the demo styles. Mount:

```js
const cleanup = LumbreGlow.mount(document.querySelector('#lumbre-stage'), {
  signal: controller.signal,
  reducedMotion: false,
  control: document.querySelector('#motion-toggle') // Optional root button, including outside the stage.
});
await cleanup.ready;
// On scene removal:
controller.abort();
cleanup(); // Safe after abort or repeated cleanup.
```

The stage keeps its native fallback `.lm-glow-fallback`, which is hidden during the neutral loading state and during successful rendering. `data-ready` is `loading` / `ready`; `data-mode` is `animated` / `reduced` / `fallback`. `data-paused` and `data-pause-reasons` compose manual pause, offscreen state, hidden document, page suspension, reduced preference, loading and actual failure. `cleanup.ready` resolves to `{mode, ready}` including disposal. An explicit `control` option accepts a validated native button, including the root hero-controls button outside the stage; that control takes priority and no duplicate ID is created. A root `#motion-toggle` inside the stage may alternatively be supplied; otherwise the engine adds one native button with its own SVG pause/play icon. Existing root control children and attributes are restored on teardown. The stage wordmark and product render is decorative; meaningful headings and product details remain native document content.

The renderer waits for all image loads/decodes and the first animation frame before being revealed. There is no poster flash. Clip failure, missing glyph data or broken assets switch to an actual native fallback rather than displaying half the scene. No-JavaScript presentation must be enabled by the root's `noscript` / no-JS styles.

Reduced motion uses a **static version of the genuine clip scene** with products and glows at their final placements. Restoring motion does not replay the entrance after a reduced state. Manual pause survives visibility and page restoration changes; offscreen/hidden/pagehide reasons must all clear before motion resumes. CSS animations own the movement; there is no continuous JavaScript ticker, wheel interception, touch interception or global scrolling library. Cleanup removes the generated DOM, all own listeners, observer, load timer and pending paint callback. Remounting one stage first disposes its previous scene.

## Verification boundaries

The full commercial interface uses local Manrope, Copyright 2018 The Manrope Project Authors, SIL OFL1.1; the unmodified font and exact OFL notice are retained. Root adds a native missing-module fallback, mobile direct navigation (without a pending page-scroll transition),16px mobile fields to avoid Safari input zoom, an editable browser-local selection with prices from its immutable fictitious catalogue, a downloadable local proposal and a20-minute simulated advice appointment. No requests, payments, email or real reservations are sent. The appointment submit is initially disabled and uses a non-network native method; it is enabled only after the commerce controller is ready. Names/emails are never persisted. All arrows and playback controls are SVG, not emoji.

Three own image_gen assets are orbita.png, pliegue.png and room.png. Prompts/provenance are in the source bundle's image-prompts.json. Actual hero/scene screenshots are used for demo-preview.webp/effect-preview.webp, with no fabricated preview and no pixel retouching.

`tests/glow-engine-test.cjs` verifies exact mechanism constants, neutral decode/paint gating, composed pause reasons, offscreen and page suspension, forced/live reduced preference, failed assets/clip support, abort/double cleanup, repeated mounting and legacy media-listener removal. These source/mocked-DOM tests are not a substitute for root's required real-browser desktop/mobile visual review. Browser-responsive tests do not certify physical iPhone Safari or Android devices. No WebGL or GPU capability requirement is introduced by this CSS/SVG effect.
