
Echo
Landing Page
Landing Page
Jagged lightning arcs crackle between eight ring nodes on canvas with a single per-frame glow composite, over a charge bar that fills and snaps
Ready to paste
Copy it as written, then change the content and brand details inside your coding agent.
## A. WHAT IS BEING BUILT
Build one complete, valid index.html — a single-viewport cinematic landing page for **Voltage**, a grid-scale energy storage company. Document title: "Voltage — We Hold the Bolt". html lang="en". ONE file: one style block + one vanilla script at end of body. No build step, no framework, no bundler.
**Viewport rule:** at width >= 901px the page is exactly one frame: `html, body { height:100%; overflow:hidden }` and `.page { height:100dvh; overflow:hidden }`. NO SCROLL on desktop. At width <= 900px the page may scroll vertically. No horizontal overflow at 390, 768, 1440 or 1920.
**Do NOT build:** no video, mp4/webm/gif, remote images, base64 photo blobs, third-party CDN URLs, WebGL, Three.js, GSAP, Lottie, jQuery, Tailwind, React, audio, forms, pricing tables, testimonials, blog, cookie banner, scroll indicator, modals, dashboard widgets, extra sections beyond header / hero / stats footer, footer content beyond the three specified stats, desktop hamburger (burger only <= 900px). Google Fonts is the ONLY network request.
**The single visual idea:** a deep-black switchyard at night, one storage ring at full charge. Centre-upper: eight fixed nodes on a hairline ring tied by live lightning — each arc a jagged 14-vertex polyline re-crackling every 260–480ms, near-white core over a violet glow composited ONCE per frame from a half-resolution offscreen layer. Beneath the type: a charge rail filling over 5 seconds, then snapping to zero in a flash. Over it: a bottom-anchored hero (eyebrow chip, two masked headline lines, lead, charge rail, two buttons) and a three-item stats footer.
---
## B. THE BACKDROP — the field stack (counts, blur radii, gradient stops, drift periods, resolution trick, per-frame budget)
All of it lives in one fixed .backdrop (inset:0;overflow:hidden;pointer-events:none;z-index:0). CSS in this spec is written with compact property lists.
1. **.grid-bg** (z 0) background layers, back to front: `radial-gradient(ellipse 120% 82% at 50% 42%,rgba(155,92,255,0.14) 0%,rgba(120,70,230,0.05) 32%,transparent 64%)`; a hairline pair `linear-gradient(rgba(233,222,252,0.030) 1px,transparent 1px)` + `linear-gradient(90deg,rgba(233,222,252,0.030) 1px,transparent 1px)` at `background-size:56px 56px` (26x16 cells at 1440x900); `linear-gradient(180deg,#0a0714 0%,#060410 38%,#050308 70%,#020104 100%)`.
2. **.bloom** (z 1) `left:50%;top:var(--ring-top);transform:translate(-50%,-50%);width:calc(var(--ring) * 1.9);height:calc(var(--ring) * 1.9)`; `background:radial-gradient(circle,rgba(155,92,255,0.34) 0%,rgba(140,80,255,0.16) 26%,rgba(110,60,220,0.06) 48%,transparent 72%);filter:blur(64px);opacity:0.62;animation:bloom-breathe 11s ease-in-out infinite` (opacity 0.50 <-> 0.74, scale 1 <-> 1.045).
3. **.bloom-core** (z 2) `width/height:calc(var(--ring) * 0.5)`, same centring; `background:radial-gradient(circle,rgba(233,222,252,0.30) 0%,rgba(155,92,255,0.14) 40%,transparent 70%);filter:blur(20px);opacity:0.55`.
4. **.halo** (z 3) `width/height:calc(var(--ring) * 1.28)`, centred, `border-radius:50%;background:conic-gradient(from 0deg,rgba(155,92,255,0) 0deg,rgba(155,92,255,0.22) 60deg,rgba(233,222,252,0.30) 104deg,rgba(155,92,255,0.02) 170deg,rgba(155,92,255,0) 230deg,rgba(155,92,255,0.18) 300deg,rgba(155,92,255,0) 360deg)`; 60px ring mask `radial-gradient(circle,transparent 0 calc(50% - 60px),#000 calc(50% - 59px) 50%,transparent calc(50% + 1px))` (plus the -webkit- duplicate); `filter:blur(26px);opacity:0.5;animation:halo-turn 46s linear infinite`.
5. **canvas#volts** (z 4) `position:fixed;inset:0;width:100%;height:100%;display:block;pointer-events:none`.
6. **.vignette** (z 5) `position:fixed;inset:0;background:radial-gradient(ellipse 90% 80% at 50% 45%,transparent 0%,transparent 44%,rgba(2,1,4,0.45) 78%,rgba(2,1,4,0.80) 100%)`.
7. **.grain** (z 30) `position:fixed;inset:-50%;width:200%;height:200%;opacity:0.05`; background: inline SVG feTurbulence data-URI (fractalNoise baseFrequency 0.8, numOctaves 2, stitchTiles stitch, feColorMatrix saturate 0), tile 160px; `animation:grain 0.9s steps(4) infinite` jittering translate among (0,0) (-2%,1%) (1%,-2%) (-1%,2%).
**Ring geometry (canvas 2D, no libraries):** N = 8 nodes at theta_i = (i/8) * 6.2832 - 1.5708; cx = w/2, cy = h * 0.42; R = min(w, h) * 0.28 (252px at 1440x900); node i at (cx + R cos theta_i, cy + R sin theta_i), node 0 at twelve o'clock, clockwise. Guide ring: one arc at radius R, rgba(155,92,255,0.12), 1px, plus 8 ticks from R+6 to R+11 at the node angles.
**Arcs (exactly 8 links):** [0,1] [1,2] [2,3] [3,4] [4,5] [5,6] [0,4] [2,6] — six ring edges plus two cross-ties.
**Polyline (per link, per crackle):** 14 vertices, V_k = lerp(A, B, k/13) + n * j_k (n = chord normal; j_0 = j_13 = 0 pinning endpoints; j_k = (lcg() * 2 - 1) * 13 * sin(PI * k/13)^0.85 px, k = 1..12). Fork: if lcg() < 0.35, a 3-point stub off V6 — F1 at 22px / 38 degrees off chord, F2 at 30px / 26 degrees off F1 — stroked alone at half alpha (max 3 forks). One LCG, seed 20260305, advanced only at generation time.
**Crackle clock:** per-link period P = 260ms + floor(lcg() * 220)ms (260–479ms, non-harmonic). On expiry rebuild vertices + fork, fresh strength s = 0.45 + 0.55 * lcg(). Per-frame alpha a_i = s * (0.78 + 0.22 * sin(t * 2.3 + i * 0.9)).
**Per-frame draw order:**
1. **Glow surface** — offscreen #glowCv at 0.55x CSS resolution (backing round(w*0.55) x round(h*0.55), identity transform). clearRect, then per arc one beginPath, moveTo V0, 13 lineTo, fork if present, `strokeStyle='rgba(155,92,255,' + 0.85 * s + ')'`, `lineWidth=3.2` glow px, round caps/joins, stroke — 8–11 strokes, ZERO ctx.filter, ZERO ctx.shadowBlur in this per-item loop.
2. **Composite — ONCE per frame:** main ctx, `ctx.filter='blur(11px)'` exactly once, `globalCompositeOperation='lighter'`, `globalAlpha=0.90`, drawImage(glowCv, 0, 0, w, h); then `globalAlpha=0.45`, drawImage(glowCv, 0, 0, w, h) filter untouched; `ctx.filter='none'`, `globalAlpha=1`. Pass 1 = bloom, pass 2 = halo body.
3. **Cores:** 'lighter', `strokeStyle='rgba(246,241,255,0.95)'`, `lineWidth=1.4`, same 8 polylines sharp; forks 0.5 alpha.
4. **Ring furniture:** guide circle + 8 ticks, one beginPath, one stroke.
5. **Nodes:** one pre-rendered 52x52 sprite (`radial-gradient(rgba(246,241,255,0.95) 0%,rgba(155,92,255,0.55) 28%,transparent 70%)`) drawn 8 times into a 26px box; per-node alpha 0.55 + 0.45 * |sin(t * 2.2 + i * 0.7)|, box 24 + 2 * sin(t * 2.2 + i * 0.7) px.
**Per-frame budget:** 1 clearRect + ~11 strokes on the 0.55x glow surface + 2 full-surface drawImage (one blurred) + 9 strokes + 8 sprite drawImage ≈ 31 primitives, under 4ms at 1440x900. CSS motion is transform/opacity only. NEVER getBoundingClientRect in the loop. document.hidden: keep loop + counter, skip paint.
**Filter feature-detect (once at init):** `ctx.filter='blur(4px)'`; `var hasFilter = ctx.filter === 'blur(4px)'`; `ctx.filter='none'`. If false, step 2 becomes THREE unfiltered drawImage passes at globalAlpha 0.55 / 0.26 / 0.13, 'lighter', scaled 1.0 / 1.035 / 1.08 about centre.
**Resolution trick:** dpr = Math.min(window.devicePixelRatio || 1, 2); main backing round(w*dpr) x round(h*dpr), `ctx.setTransform(dpr, 0, 0, dpr, 0, 0)`; #glowCv backing round(w*0.55) x round(h*0.55), unscaled, line widths in glow px. getBoundingClientRect only in resizeCanvas (one resizeQueued flag + requestAnimationFrame).
---
## C. THE LAYER STACK (back -> front, z-index)
1. html, body — #050308, forced twice (Failure Guards).
2. .backdrop — z-index:0, fixed inset:0, pointer-events:none, overflow:hidden. Inside: .grid-bg 0, .bloom 1, .bloom-core 2, .halo 3, canvas#volts 4, .vignette 5, .grain 30.
3. .scrim — z-index:20, fixed inset:0, pointer-events:none, `background:linear-gradient(180deg,rgba(2,1,4,0.55) 0%,rgba(2,1,4,0.08) 30%,rgba(2,1,4,0.26) 60%,rgba(2,1,4,0.88) 100%)` so the bottom-anchored hero and stats clear contrast over the arcs.
4. .page — z-index:40, `position:relative;display:grid;grid-template-rows:auto minmax(0, 1fr) auto;min-height:100dvh` (height:100dvh in the desktop lock).
5. main.hero z-index:50; header.site-header and footer.stats-footer z-index:60.
6. .menu (mobile, when open) — fixed inset:0, z-index:80.
---
## D. TOKEN TABLE (defaults at 1440x900)
```
--bg: #050308
--bg-2: #0a0714
--text: #f3f0fa
--text-soft: #cfc8e0
--muted: #9a93ad
--dim: #6a6480
--accent: #9b5cff
--accent-hot: #e9defc
--accent-core: #f6f1ff
--accent-soft: rgba(155,92,255,0.55)
--accent-line: rgba(155,92,255,0.30)
--arc-glow: rgba(155,92,255,0.85)
--border: rgba(233,222,252,0.16)
--border-soft: rgba(233,222,252,0.09)
--focus: #e9defc
--serif: "Instrument Serif", Georgia, "Times New Roman", serif
--sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif
--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace
--logo: 16px
--logo-track: 0.22em
--nav: 13.5px
--nav-h: 38px
--btn: 13.5px
--btn-h: 44px
--chip-h: 30px
--eyebrow: 12px
--h1: 74px
--lead: 18px
--charge-w: 340px
--charge-h: 3px
--charge-label: 11px
--stat-val: 26px
--stat-label: 12px
--header-y: 26px
--header-x: 44px
--hero-x: 44px
--hero-bottom: 56px
--copy-max: 720px
--ring-top: 42%
--radius-pill: 999px
--focus-w: 2px
--focus-offset: 3px
--bloom-blur: 64px
--halo-blur: 26px
--grain-op: 0.05
--ease-out: cubic-bezier(0.16,1,0.3,1)
--enter-dur: 0.95s
```
Fonts: Google Fonts ONLY — Instrument Serif 400, Inter 400;500;600, JetBrains Mono 400;500 — one preconnect to https://fonts.gstatic.com (crossorigin), one stylesheet link with display=swap, fallback stacks as above.
---
## E. THE COMPOSITION — exact build order
**.page** holds <header class="site-header">, <main class="hero">, <footer class="stats-footer"> in grid rows auto / 1fr / auto.
**HEADER** — `display:flex;align-items:center;justify-content:space-between;gap:24px;padding:var(--header-y) var(--header-x)`.
- a.brand (href "#", accessible name "Voltage home"): inline SVG mark 22x22 — filled bolt <path d="M13 2 L5 13 L10.5 13 L9 22 L17 10.5 L11.5 10.5 Z" fill="#9b5cff"/> — then "VOLTAGE", `font-family:var(--sans);font-size:var(--logo);font-weight:600;letter-spacing:var(--logo-track);color:var(--text)`, no underline.
- nav, exactly 3 links — "Network", "Storage", "Dispatch" — href "#", `font-family:var(--sans);font-size:var(--nav);font-weight:500;color:var(--muted);display:flex;gap:32px;height:var(--nav-h);align-items:center`. Hover: color var(--text), 0.18s ease.
- a.cta (href "#", text "Request access"): `height:var(--btn-h);padding:0 20px;display:inline-flex;align-items:center;border-radius:var(--radius-pill);font-size:var(--btn);font-weight:600;color:var(--accent-hot);border:1px solid var(--accent-line);background:linear-gradient(180deg,rgba(155,92,255,0.16) 0%,rgba(155,92,255,0.05) 100%)`.
**MAIN (hero, bottom-anchored)** — `display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;padding:0 var(--hero-x) var(--hero-bottom)`; copy hugs the LEFT page padding — never centred, right-aligned or vertically centred. Inner .hero-copy: `width:100%;max-width:var(--copy-max);display:flex;flex-direction:column;align-items:flex-start`.
1. .chip (a <p>, not interactive): `height:var(--chip-h);padding:0 14px;display:inline-flex;align-items:center;border-radius:var(--radius-pill);border:1px solid var(--border);background:rgba(155,92,255,0.06);font-family:var(--mono);font-size:var(--eyebrow);letter-spacing:0.18em;color:var(--accent)`. Exact copy: "DISTRIBUTED ENERGY GRID".
2. h1 — EXACTLY ONE <h1>, `font-family:var(--serif);font-weight:400;font-size:var(--h1);line-height:0.98;letter-spacing:-0.015em;color:var(--text);margin:20px 0 0`. Two masked lines (Motion): line 1 "We hold the bolt."; line 2 "You <em>flip</em> the switch." with <em>flip</em> `font-style:italic;color:var(--accent-hot);text-shadow:0 0 22px rgba(155,92,255,0.55)`.
3. .lead — `font-family:var(--sans);font-size:var(--lead);line-height:1.55;letter-spacing:-0.012em;color:var(--text-soft);max-width:560px;margin:22px 0 0`. Exact copy: "Voltage operates a 3.2 GW storage ring across nine regions — we catch grid surges in 40-millisecond arcs and discharge them the instant demand lands."
4. .charge (`margin-top:26px;width:100%;max-width:var(--charge-w);position:relative`): label row above (`display:flex;justify-content:space-between;margin-bottom:8px`) — .charge-label "RING CHARGE" left in var(--muted), .charge-state "AUTO-DISCHARGE ARMED" right in var(--dim), both `font-family:var(--mono);font-size:var(--charge-label);letter-spacing:0.16em;text-transform:uppercase`. Under it .charge-track: `width:100%;max-width:var(--charge-w);height:var(--charge-h);border-radius:2px;background:rgba(233,222,252,0.08);overflow:hidden;position:relative`. Inside: .charge-fill (`height:100%;transform-origin:left center;transform:scaleX(0);background:linear-gradient(90deg,#6b3fd6 0%,#9b5cff 58%,#e9defc 100%);box-shadow:0 0 12px rgba(155,92,255,0.6);animation:charge-cycle 8.4s cubic-bezier(0.4,0,0.35,1) infinite`) and .charge-flash (`position:absolute;inset:0;background:rgba(233,222,252,0.9);box-shadow:0 0 18px rgba(155,92,255,0.55);opacity:0;animation:discharge-flash 8.4s linear infinite`).
5. .actions — `display:flex;gap:12px;flex-wrap:wrap;margin-top:30px`. Two anchors: .btn--primary href "#" text "Get grid access"; .btn--ghost href "#" text "See the dispatch map".
**FOOTER (three-item stats)** — `display:grid;grid-template-columns:repeat(3, 1fr);gap:0;padding:22px var(--header-x) 28px;border-top:1px solid var(--border-soft)`. Exactly one <ul> with exactly three <li>. Each li: `display:grid;gap:6px;padding:0 30px`; li:first-child padding-left:0; li:last-child padding-right:0; li + li border-left:1px solid var(--border-soft); li:nth-child(2) text-align:center; li:nth-child(3) text-align:right. Each li holds <strong class="stat-val"> (`font-family:var(--mono);font-size:var(--stat-val);font-weight:500;letter-spacing:-0.02em;color:var(--text)`) and <span class="stat-label"> (`font-family:var(--mono);font-size:var(--stat-label);letter-spacing:0.14em;text-transform:uppercase;color:var(--dim)`). Exact pairs left to right: "40 ms" / "arc capture window"; "3.2 GW" / "stored on the ring"; "9" / "regions on dispatch".
---
## F. THE UI LANGUAGE
- **.btn (shared base):** `display:inline-flex;align-items:center;justify-content:center;height:var(--btn-h);padding:0 22px;border-radius:var(--radius-pill);font-family:var(--sans);font-size:var(--btn);font-weight:600;text-decoration:none;position:relative;overflow:hidden;transition:transform/border-color/background/box-shadow 220ms var(--ease-out)`.
- **.btn--primary:** `color:#140528;border:1px solid rgba(233,222,252,0.55);background:linear-gradient(180deg,#e9defc 0%,#9b5cff 52%,#6b3fd6 100%);box-shadow:0 14px 44px rgba(155,92,255,0.24),inset 0 1px 0 rgba(255,255,255,0.62)`. Hover: `background:linear-gradient(180deg,#f6f1ff 0%,#a977ff 48%,#7a4ae6 100%);transform:translateY(-1px);box-shadow:0 18px 54px rgba(155,92,255,0.34)`. Active translateY(0).
- **.btn--ghost:** `color:var(--text-soft);border:1px solid var(--border);background:rgba(233,222,252,0.035)`. Hover: `color:var(--text);border-color:var(--accent-line);background:rgba(155,92,255,0.08);transform:translateY(-1px)`.
- **Arc sweep** on .btn/.cta: `:after{content:"";position:absolute;inset:-1px;background:linear-gradient(112deg,transparent 0% 36%,rgba(233,222,252,0.20) 50%,transparent 64% 100%);transform:translateX(-140%);transition:transform 680ms var(--ease-out)}`, hover -> translateX(140%).
- **.cta (header)** takes .btn base at padding 0 20px with section E's violet hairline look; hover: `border-color:var(--accent-soft);background:linear-gradient(180deg,rgba(155,92,255,0.24) 0%,rgba(155,92,255,0.08) 100%);box-shadow:0 0 20px rgba(155,92,255,0.22)`.
- **Nav links** plain, no pills, no underline; hover color var(--text). **.chip** and the .charge block never react — the rail is instrumentation, not a control.
- **Focus:** every a and button gets `:focus-visible{outline:var(--focus-w) solid var(--focus);outline-offset:var(--focus-offset);border-radius:var(--radius-pill)}`. Selection: `::selection{background:rgba(155,92,255,0.32);color:#f6f1ff}`. No default blue ring, no underline anywhere.
---
## G. MOTION — entrance stagger and named keyframes
Entrance animations: `animation-duration:var(--enter-dur);animation-fill-mode:both;animation-timing-function:var(--ease-out);animation-delay:var(--d, 0.08s)`. Each element: .appear + one modifier + inline --d. Resting state is the final state.
Stagger table (element -> modifier -> --d):
```
brand appear--fade 0.08s
nav link 1 appear--fade 0.16s
nav link 2 appear--fade 0.24s
nav link 3 appear--fade 0.32s
header cta appear--chip 0.40s
canvas ring appear--open 0.18s (duration 1.4s)
eyebrow chip appear--pop 0.62s
h1 line 1 appear--mask 0.76s
h1 line 2 appear--mask 0.92s
lead appear--soft 1.10s
charge block appear--soft 1.26s
primary button appear--chip 1.38s
ghost button appear--chip 1.46s
stat 1 appear--stat 1.56s
stat 2 appear--stat 1.64s
stat 3 appear--stat 1.72s
```
Named entrance keyframes (all end at opacity 1 / identity):
```
in-fade from{opacity:0} to{opacity:1}
in-soft from{opacity:0;transform:translateY(14px);filter:blur(4px)} to{opacity:1;transform:none;filter:blur(0)}
in-mask from{opacity:0;transform:translateY(108%)} to{opacity:1;transform:none}
in-chip from{opacity:0;transform:translateY(10px) scale(0.96)} to{opacity:1;transform:none}
in-pop 0%{opacity:0;transform:scale(0.94)} 68%{opacity:1;transform:scale(1.03)} 100%{opacity:1;transform:none}
in-open from{opacity:0;transform:scale(0.90)} to{opacity:1;transform:none}
in-stat from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none}
```
Named continuous keyframes (the machinery):
```
charge-cycle 8.4s cubic-bezier(0.4,0,0.35,1) infinite (transform only)
0%{transform:scaleX(0)} /* empty ring */
52%{transform:scaleX(0.82)}
64%{transform:scaleX(1)} /* full charge */
65%{transform:scaleX(1)} /* hold one beat */
66%{transform:scaleX(0)} /* SNAP discharge */
70%{transform:scaleX(0.05)} /* residual arc back */
72%{transform:scaleX(0)}
100%{transform:scaleX(0)}
discharge-flash 8.4s linear infinite (opacity only)
0%,63%{opacity:0} 65%{opacity:1} 78%,100%{opacity:0}
bloom-breathe 11s ease-in-out infinite 0%,100%{opacity:0.50;transform:translate(-50%,-50%) scale(1)} 50%{opacity:0.74;transform:translate(-50%,-50%) scale(1.045)}
halo-turn 46s linear infinite from{transform:translate(-50%,-50%) rotate(18deg)} to{transform:translate(-50%,-50%) rotate(378deg)}
grain 0.9s steps(4) infinite translate among (0,0) (-2%,1%) (1%,-2%) (-1%,2%)
```
H1 masking: each line is <span class="line"><span class="line-inner appear appear--mask" style="--d:0.76s">…</span></span> with `.line{display:block;overflow:hidden;padding:0.06em 0.06em 0.12em}`, `.line-inner{display:inline-block}` — type rising from a hard edge. Periods 8.4s / 11s / 46s / 0.9s are non-harmonic; the canvas crackle clocks (260–479ms) are independent of all of them.
---
## H. RESPONSIVE TABLE — exact token overrides per breakpoint
```
>= 1600px:
--h1: 88px --lead: 19px --logo: 17px --nav: 14px --nav-h: 40px --btn: 14px --btn-h: 46px
--stat-val: 30px --charge-w: 400px --header-y: 30px --header-x: 56px --hero-x: 56px
--hero-bottom: 64px --copy-max: 820px
>= 1920px:
--h1: 100px --lead: 20px --stat-val: 34px --stat-label: 12.5px --charge-w: 440px
--header-x: 72px --hero-x: 72px --hero-bottom: 72px --copy-max: 900px
1280px – 1599px:
--h1: 70px --copy-max: 680px
901px – 1279px:
--h1: 54px --lead: 16px --stat-val: 24px --nav: 12.5px --btn: 12.5px --charge-w: 300px
--header-x: 30px --hero-x: 30px --hero-bottom: 44px --copy-max: 600px
>= 901px AND max-height 850px:
--h1: 50px --lead: 16px --stat-val: 22px --chip-h: 28px --charge-w: 280px
--header-y: 18px --hero-bottom: 36px (h1 margin-top 14px, lead 16px, charge 18px, actions 22px)
canvas: R = min(w,h) * 0.26, cy = h * 0.38
>= 901px AND max-height 720px:
--h1: 40px --lead: 15px --eyebrow: 11px --stat-val: 20px --stat-label: 11px --chip-h: 26px
--btn-h: 38px --charge-w: 240px --charge-label: 10.5px --header-y: 14px --hero-bottom: 26px
(footer padding 14px top, 18px bottom) canvas: R = min(w,h) * 0.24, cy = h * 0.34
>= 901px (desktop lock, all heights):
html, body{height:100%;overflow:hidden} .page{height:100dvh;overflow:hidden}
<= 900px:
scroll allowed; nav + CTA move into a burger menu:
- header keeps .brand + <button class="burger" aria-label="Open navigation" aria-expanded="false">, three 18x1.5px bars, var(--text), gap 5px
- .menu{position:fixed;inset:0;z-index:80;background:rgba(5,3,8,0.94);backdrop-filter:blur(14px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0 32px;gap:26px;transform:translateY(-100%);transition:transform 0.45s cubic-bezier(0.16,1,0.3,1)} .menu.open{transform:none}
- menu shows 3 nav links at 22px + the .cta chip; Escape, any link click, resize > 900px close it
--h1: 46px --lead: 16px --stat-val: 22px --header-x: 24px --hero-x: 24px --hero-bottom: 40px
--copy-max: 100% --charge-w: 100% canvas: R = min(w,h) * 0.32, cy = h * 0.34, node box 22px
<= 560px:
--h1: 36px --lead: 15px --eyebrow: 11px --stat-val: 19px --stat-label: 10.5px
--header-x: 20px --hero-x: 20px --hero-bottom: 32px --charge-label: 10.5px
stats footer stacks: grid-template-columns:1fr; li{padding:12px 0;text-align:left !important}; li+li{border-left:0;border-top:1px solid var(--border-soft)}
.actions{width:100%} .btn{flex:1 1 100%}
canvas: R = min(w,h) * 0.34, cy = h * 0.30, drop cross-ties [0,4] and [2,6] (6 arcs), fork probability 0.20
```
---
## I. FAILURE GUARDS — the page is never blank, never broken
1. **Black-first:** the FIRST CSS rule is `html, body{background:#050308 !important;color:#f3f0fa}`; body carries `style="background:#050308;color:#f3f0fa"`; a later rule restates `html, body{background:#050308;background:var(--bg, #050308)}`.
2. **Resting opacity is 1:** every .appear element's un-animated style is its final state (opacity 1, no transform, no filter); keyframes own the FROM states, fill-mode:both holds them only during the delay. If CSS animation fails or JS never runs, the page renders complete.
3. **Two-rAF entrance fallback:** after two nested requestAnimationFrame callbacks, check each .appear with el.getAnimations({ subtree:false }); if none reports playState "running"/"finished" (or getAnimations is missing), add .is-in to ALL .appear — `animation:none !important;opacity:1 !important;transform:none !important;filter:none !important;clip-path:none !important`.
4. **Canvas fallback:** if canvas or getContext("2d") is missing, add .no-canvas to <html>, push "canvas-unavailable" into window.__DEMO__.errors, and paint the ring statically on .backdrop::after with an inline SVG data-URI (240x240 viewBox: dashed circle r=100 stroke rgba(155,92,255,0.35) stroke-dasharray "3 7", eight 3px violet dots at the node angles, jagged polylines M120 20 L108 62 L124 78 L96 128 L112 140 L84 200 and M20 120 L64 112 L82 128 L138 96 stroked #9b5cff 1.5px). Type stays fully visible.
5. **Filter fallback:** the init-time ctx.filter feature-detect (section B) switches the glow composite to three unfiltered drawImage passes at globalAlpha 0.55 / 0.26 / 0.13, scales 1.0 / 1.035 / 1.08.
6. **Reduced motion:** inside `@media (prefers-reduced-motion: reduce)`: `*, *::before, *::after{transition:none !important;animation:none !important}`, .appear / .appear.is-in forced to `opacity:1 !important;transform:none !important;filter:none !important;clip-path:none !important`. Canvas draws exactly ONE static frame at t = 0, every arc generated once at strength 1, alpha 0.8; ready becomes true, frames stops at 1, no further rAF. .charge-fill freezes at `transform:scaleX(0.62) !important`, .charge-flash opacity 0, .bloom opacity 0.62, .halo rotate(18deg), .grain display:none. Nothing moves.
7. **Contrast floor:** h1 and stat values #f3f0fa on #050308, lead #cfc8e0 over the scrim, labels #6a6480 12px uppercase above 4.5:1 — never drop text opacity below 0.86.
8. **Zero console output:** no console calls anywhere, no thrown exceptions, every canvas and DOM call guarded.
---
## J. THE EXACT JS (only this, vanilla, one IIFE at end of body)
1. **Telemetry first:** `window.__DEMO__ = { name: 'voltage', ready: false, frames: 0, effects: [], errors: [] }`; then push exactly these effect names once, in order: 'lightning-arcs', 'glow-composite', 'ring-nodes', 'charge-bar', 'film-grain'. Then `window.addEventListener('error', function (e) { window.__DEMO__.errors.push(String(e.message || e)); })`.
2. **Canvas setup:** cache document.documentElement, canvas#volts and its 2d context (null -> .no-canvas path, push "canvas-unavailable"), create #glowCv via document.createElement('canvas') with its 2d context, build the 52x52 node sprite once, run the one-time filter feature-detect, build the LCG (seed 20260305: `state = state * 1664525 + 1013904223 >>> 0`, return `state / 4294967296`), then build the 8 node positions and 8 link records { a, b, verts, fork, strength, regenAt, period } from section B, each with `period = 260 + Math.floor(lcg() * 220)` and an initial generation.
3. **The loop:** one requestAnimationFrame function; each tick increments window.__DEMO__.frames by exactly 1, and while document.hidden skips the paint but keeps loop and counter. Painting: (a) regenerate links whose regenAt expired (new verts, fork, strength, period from the LCG); (b) glow pass on #glowCv — clearRect then 8–11 strokes, NO filter and NO shadowBlur ever in this per-item loop; (c) composite #glowCv exactly ONCE per frame via the filter path or the three-pass fallback; (d) 8 cores at 1.4px 'rgba(246,241,255,0.95)'; (e) guide ring + 8 ticks in one beginPath; (f) node sprite drawImage x8 with the per-node alpha and box pulse. NEVER ctx.filter, ctx.shadowBlur or getBoundingClientRect in the loop — sizes come from cached { w, h }. The FIRST completed paint sets window.__DEMO__.ready = true.
4. **Resize:** resizeCanvas() reads canvas.getBoundingClientRect() ONCE (the only permitted call), recomputes cached { w, h }, R and node positions, sets `dpr = Math.min(window.devicePixelRatio || 1, 2)`, sizes the main backing round(w*dpr) x round(h*dpr) with `ctx.setTransform(dpr, 0, 0, dpr, 0, 0)`, sizes #glowCv round(w*0.55) x round(h*0.55), repaints. One boolean resizeQueued + requestAnimationFrame — no timers.
5. **Entrance fallback:** the two nested rAFs, the getAnimations check, the .is-in sweep (Guard 3).
6. **Mobile menu (<= 900px):** burger click toggles .menu.open and aria-expanded; Escape, any menu link click, and resize past 900px close it.
7. **prefers-reduced-motion:** read matchMedia('(prefers-reduced-motion: reduce)') once; if it matches, paint the single frozen frame of Guard 6 (8 links generated once), set ready on that paint, count that one frame, schedule no further rAF.
No other JS. No libraries. No timers. No console calls.
---
TECHNICAL CONTRACT (non-negotiable):
1. Deliver ONE single file: a complete, valid `index.html`. No build step, no bundler,
no framework, no package install. It must open correctly by double-clicking the file
and also over http://.
2. Vanilla only. No React, no Tailwind CDN, no GSAP, no Three.js, no jQuery, no Lottie.
Plain HTML + CSS + modern JavaScript in <style> and <script> tags.
3. NO external media. No .mp4, no .webm, no .gif, no remote images, no base64 blobs of
photos. Every visual must be generated procedurally with CSS gradients, SVG, or
<canvas>. This keeps the page free to host and impossible to break with a dead link.
4. Google Fonts is the ONLY permitted network request, and it must be declared with a
<link rel="preconnect"> plus a system-font fallback stack so the page still looks
intentional offline. If you prefer, skip it and use a pure system stack.
5. Responsive and correct at 390x844 (phone), 768x1024 (tablet) and 1440x900 (desktop).
No horizontal scrollbar at any of those widths. Nothing may overflow its container.
6. Accessibility: exactly one <h1>; real <header>/<main>/<footer>/<nav> landmarks; every
interactive element is a <button> or <a> with an accessible name; visible :focus-visible
ring; body text contrast ratio >= 4.5:1 against its background.
7. Motion safety: wrap all continuous motion in
`@media (prefers-reduced-motion: reduce)` rules that reduce it to a static or
near-static state. The page must remain fully readable and usable with motion off.
8. Performance: no layout thrash. Cache DOM reads, batch writes inside a single
requestAnimationFrame loop, use transform/opacity for animation, and never allocate
inside the hot loop. Target 60fps on a 2019 laptop. Total file under 90 KB.
9. Runtime telemetry hook (used by the automated verifier — implement it exactly):
at the top of your script define
window.__DEMO__ = { name: '<slug>', ready: false, frames: 0, effects: [], errors: [] };
then set `ready = true` after the first paint of your main effect, increment
`frames` once per animation frame inside your rAF loop, and push the name of each
implemented effect into `effects`. Add a `window.addEventListener('error', ...)`
handler that pushes messages into `errors`. Do not rename these fields.
10. Zero console output in the happy path. No console.log left behind. No uncaught
exceptions, no failed network requests.
RESPONSE FORMAT:
Return ONLY the raw HTML inside a single ```html fenced code block. No explanation, no
preamble, no commentary before or after the fence. The file must be complete and
immediately runnable — never truncate, never write "// rest of code here".Keep exploring