
Partition Bureau
Landing Page
Landing Page
A full-bleed silk field of layered CSS gradients folding and warping in slow drift beneath an oversized tracked wordmark
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 **SABLE**, a Parisian fashion house. Document title: "SABLE — A Study in Silk". html lang="en". ONE file: plain HTML + 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 <canvas> anywhere (every pixel is CSS paint), 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, lookbook or product galleries, blog, cookie banner, scroll indicator, modal dialogs, extra sections beyond header / hero / footer, footer content beyond the three specified items, desktop hamburger (burger only <= 900px). Google Fonts is the ONLY network request.
**The single visual idea:** a bolt of heavy silk hanging in an unlit atelier, raked by one low light. Behind everything, five blurred gradient fold layers slide, shear and rotate at non-harmonic speeds so the cloth appears to warp and breathe like real satin; a slow specular sheen travels across the weave; one deep oxblood lamp bleeds in from the lower right. Over the cloth: an oversized, widely tracked serif wordmark **S A B L E** rising letter by letter out of a hard edge, one hairline rule drawing itself left to right beneath it, and a single muted line of season copy. Nothing else competes with the cloth.
---
## B. THE BACKDROP — the silk field (counts, gradient stops, blur radii, drift periods)
Everything behind the type lives in one fixed .silk at inset:0; overflow:hidden; pointer-events:none; z-index:0. Element count: exactly 19 divs in 9 composited layers — 5 fold stacks (each .fold-drape > .fold > .fold-scale > .fold-art, 4 nodes), 1 .sheen, 1 .oxblood-veil, 1 .vignette, 1 .grain. No SVG, no images, no canvas.
1. **.silk-base** (inset:0, z-index:0) background: linear-gradient(163deg, #050404 0%, #0d0b0a 34%, #080606 68%, #020101 100%).
2. **.fold-1 … .fold-5** (z-index 1..5). Each .fold-art is a repeating-linear-gradient of satin bands — a bone specular crest falling into a black trough — laid on a box of 26% x 26% of the .silk box, positioned left:37%; top:37% (centred), then blown up 2.4x by .fold-scale. Exact art, in art-local px (multiply by 2.4 for the visual value):
- fold-1: repeating-linear-gradient(74deg, rgba(236,229,216,0) 0px, rgba(236,229,216,0.13) 15px, rgba(0,0,0,0.34) 39px, rgba(236,229,216,0) 73px); filter:blur(22px) (visual 53px); opacity 0.85; blend normal.
- fold-2: repeating-linear-gradient(96deg, rgba(236,229,216,0) 0px, rgba(236,229,216,0.09) 22px, rgba(0,0,0,0.28) 53px, rgba(236,229,216,0) 97px); filter:blur(34px) (visual 82px); opacity 0.80; blend normal.
- fold-3 (the oxblood thread in the weave): repeating-linear-gradient(58deg, rgba(138,32,38,0) 0px, rgba(138,32,38,0.20) 18px, rgba(0,0,0,0.22) 48px, rgba(138,32,38,0) 88px); filter:blur(49px) (visual 118px); opacity 0.72; blend screen.
- fold-4 (the fine weave): repeating-linear-gradient(112deg, rgba(236,229,216,0) 0px, rgba(236,229,216,0.06) 12px, rgba(0,0,0,0.20) 29px, rgba(236,229,216,0) 54px); filter:blur(16px) (visual 38px); opacity 0.55; blend soft-light.
- fold-5 (the broad drape): repeating-linear-gradient(36deg, rgba(236,229,216,0) 0px, rgba(236,229,216,0.05) 33px, rgba(0,0,0,0.24) 79px, rgba(236,229,216,0) 142px); filter:blur(62px) (visual 149px); opacity 0.90; blend normal.
Rest transforms (every keyframe holds scale(2.4) on .fold-scale; the drift animates ONLY .fold): fold-1 rotate(-6deg) skewX(-4deg); fold-2 rotate(4deg) skewX(6deg); fold-3 rotate(10deg); fold-4 rotate(-12deg) skewX(8deg); fold-5 rotate(2deg).
Drift periods — non-harmonic so the folds never re-sync: fold-1 38s, fold-2 52s, fold-3 61s, fold-4 74s, fold-5 89s, all ease-in-out infinite.
3. **.sheen** (z-index 6): box 150% x 150% at left:-25%; top:-25%; background: linear-gradient(104deg, transparent 34%, rgba(236,229,216,0.15) 47%, rgba(236,229,216,0.05) 53%, transparent 66%); opacity 0.80; animation sheen-sweep 26s ease-in-out infinite (translate3d -6% <-> +6%, skewX -3deg <-> 2deg, opacity 0.55 <-> 0.95). No blur — the gradient stops already soften it.
4. **.oxblood-veil** (z-index 7): box 120% x 120% at left:-10%; top:-10%; background: radial-gradient(ellipse 92% 74% at 78% 84%, rgba(122,24,30,0.30) 0%, rgba(90,18,24,0.12) 38%, transparent 66%); animation veil-breathe 19s ease-in-out infinite (opacity 0.55 <-> 0.85, scale 1 <-> 1.06).
5. **.vignette** (z-index 8): background: radial-gradient(ellipse 120% 105% at 50% 46%, transparent 42%, rgba(0,0,0,0.52) 78%, rgba(0,0,0,0.88) 100%).
6. **.grain** (z-index 30): fixed inset:-50%; width:200%; height:200%; opacity:0.05; background: inline SVG feTurbulence data-URI (feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" stitchTiles="stitch", then feColorMatrix type="saturate" values="0"), tile 160px; animation grain 0.9s steps(4) infinite jittering translate among (0,0) (-2%,1%) (1%,-2%) (-1%,2%).
**Resolution trick (there is NO canvas on this page — this is the equivalent raster-cost trick):** every fold paints and blurs inside a 26%-sized .fold-art box and .fold-scale then multiplies it by a CONSTANT transform:scale(2.4) with will-change:transform. The blur raster is therefore computed at 1/2.4 linear resolution — 1/5.76 the fill cost of blurring the full-bleed layer — and the compositor scales the cached raster up, exactly the economy of drawing a canvas at half devicePixelRatio. fold-4's 38px visual blur costs a 16px blur raster; fold-5's 149px costs 62px. Because scale(2.4) is constant and .fold-scale never animates, the raster is built once and reused forever.
**Per-frame cost budget:** the JS loop performs 2 transform writes (.lift-near, .lift-far) + 1 counter increment and nothing else — zero layout, zero paint, zero DOM reads, under 0.1ms at 1440x900. All nine composited layers animate transform/opacity only; filter values are constant, so nothing is ever re-rastered. Compositor memory at 1440x900, dpr 2: 5 fold rasters of 374x234 CSS px (748x468 device px) ≈ 7MB, plus 4 full-frame layers ≈ 41MB, capped: dpr above 2 is never honoured because nothing rasterises at device scale except the grain tile. The loop must sustain >= 20 frames per 1.2s at 1440x900 headless. If document.hidden, keep loop and counter alive, skip the transform writes.
---
## C. THE LAYER STACK (back -> front, z-index)
1. html, body — #050404, forced twice (Failure Guards).
2. .silk — z-index:0, fixed inset:0, overflow:hidden, pointer-events:none. Inside: .silk-base 0, .lift-far 1 (holding .fold-4, .fold-5, .oxblood-veil), .lift-near 2 (holding .fold-1, .fold-2, .fold-3, .sheen), .vignette 8, .grain 30.
3. .scrim — z-index:20, fixed inset:0, pointer-events:none, background: linear-gradient(180deg, rgba(2,1,1,0.50) 0%, rgba(2,1,1,0.08) 30%, rgba(2,1,1,0.26) 64%, rgba(2,1,1,0.84) 100%) so the header and footer type always clears contrast over the sheen.
4. .page — z-index:40, position:relative; display:grid; grid-template-rows:auto minmax(0,1fr) auto; min-height:100dvh (height:100dvh inside the desktop lock).
5. main.hero z-index:50; header.site-header and footer.site-footer z-index:60.
6. .menu (mobile, when open) — fixed inset:0, z-index:80.
---
## D. TOKEN TABLE (defaults at 1440x900)
```
--bg: #050404
--bg-2: #0d0b0a
--bone: #ece5d8
--bone-soft: #cfc6b6
--muted: #9a9184
--dim: #6d655a
--oxblood: #5a0f16
--oxblood-lit: #a5343a
--oxblood-deep: #3a0a0f
--focus: #cf6a63
--border: rgba(236,229,216,0.30)
--border-soft: rgba(236,229,216,0.14)
--serif: "Bodoni Moda", "Didot", Georgia, "Times New Roman", serif
--sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif
--word: 128px
--word-track: 0.34em
--logo: 14px
--logo-track: 0.34em
--nav: 11.5px
--nav-track: 0.16em
--nav-h: 38px
--btn: 11.5px
--btn-h: 42px
--btn-track: 0.18em
--copy: 14px
--foot: 11px
--foot-track: 0.12em
--header-y: 26px
--header-x: 44px
--hero-x: 44px
--hero-bottom: 72px
--copy-max: 460px
--rule-h: 1px
--rule-y: 28px
--radius: 0px
--focus-w: 2px
--focus-offset: 3px
--grain-op: 0.05
--fold-scale: 2.4
--ease-out: cubic-bezier(0.16,1,0.3,1)
--enter-dur: 0.95s
```
Fonts: Google Fonts ONLY — Bodoni Moda 400;500, Inter 400;500 — one preconnect to https://fonts.gstatic.com (crossorigin) and one stylesheet link with display=swap, with the fallback stacks above.
---
## E. THE COMPOSITION — exact build order
**.page** holds <header class="site-header">, <main class="hero">, <footer class="site-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 "Sable home"): inline SVG mark 20x20 — one cubic drape stroke: <path d="M2 15 C 6 5, 14 5, 18 15" fill="none" stroke="#a5343a" stroke-width="1.4" stroke-linecap="round"/> plus a 1px bone thread <path d="M2 18 H 18" stroke="rgba(236,229,216,0.5)" stroke-width="1"/> — then the word "SABLE", var(--serif), font-size var(--logo), weight 500, letter-spacing var(--logo-track), color var(--bone), no underline. The trailing letter-space is cancelled with margin-right:calc(var(--logo-track) * -1).
- nav with exactly 3 links — "Maison", "Collections", "Ateliers" — href "#", var(--sans), font-size var(--nav), weight 500, uppercase, letter-spacing var(--nav-track), color var(--muted), display:flex; gap:34px; height:var(--nav-h); align-items:center. Hover: color var(--bone), 0.18s ease.
- a.cta (href "#", accessible name "Book a fitting", text "Book a fitting"): height var(--btn-h); padding 0 22px; inline-flex; align-items:center; border-radius var(--radius); font-family var(--sans); font-size var(--btn); font-weight 500; text-transform uppercase; letter-spacing var(--btn-track); color var(--bone); border 1px solid var(--border); background linear-gradient(180deg, rgba(236,229,216,0.10) 0%, rgba(236,229,216,0.02) 100%).
**MAIN (hero, bottom-anchored title card)** — 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, sitting in the lower third — never centred, never right-aligned. Inner .hero-copy: width:100%; display:flex; flex-direction:column; align-items:flex-start (no max-width — the rule spans the full padded width; only the copy line is capped).
1. h1.word — EXACTLY ONE <h1>, var(--serif), font-weight 400, font-size var(--word), line-height 0.94, letter-spacing var(--word-track), text-transform uppercase, color var(--bone), margin:0, and margin-right:calc(var(--word-track) * -1) to kill the trailing track. Five masked letters (Motion): <span class="letter"><span class="letter-inner appear appear--mask">S</span></span> … one per letter, spelling **S A B L E** with tracking doing the spacing (no literal spaces in the markup). Visible text content is exactly "SABLE".
2. .rule — width:100%; height:var(--rule-h); margin:var(--rule-y) 0; background: linear-gradient(90deg, var(--oxblood-lit) 0%, rgba(236,229,216,0.55) 14%, rgba(236,229,216,0.22) 56%, rgba(236,229,216,0.06) 100%); transform-origin:left center. ONE rule only.
3. p.copy — var(--sans), font-size var(--copy), line-height 1.5, letter-spacing 0.03em, color var(--muted), max-width var(--copy-max), margin:0. Exact copy: "Autumn–Winter MMXXVI. Silk cut on the bias, in black, bone and oxblood."
**FOOTER** — display:flex; align-items:center; justify-content:space-between; gap:20px; padding:22px var(--header-x) 26px; border-top:1px solid var(--border-soft).
- Left: var(--sans) var(--foot), uppercase, letter-spacing var(--foot-track), color var(--dim): "© MMXXVI Maison Sable".
- Centre: same treatment, color var(--dim): "Paris · 8 rue de Turenne", preceded by a 6px round dot (border-radius:50%; background:var(--oxblood-lit); box-shadow:0 0 8px rgba(165,52,58,0.6); display:inline-block; margin-right:9px).
- Right: exactly 3 links "Instagram", "Journal", "Contact" — var(--sans) var(--foot), uppercase, letter-spacing var(--foot-track), color var(--muted), gap:24px, href "#", hover color var(--bone).
---
## F. THE UI LANGUAGE
- **.cta (the only button on the page):** sharp couture corners (border-radius var(--radius): 0px), 1px var(--border) hairline, bone text on a two-stop bone wash linear-gradient(180deg, rgba(236,229,216,0.10) 0%, rgba(236,229,216,0.02) 100%), tracked uppercase. Hover: border-color var(--oxblood-lit); background linear-gradient(180deg, #7a141c 0%, var(--oxblood-deep) 100%); color var(--bone); box-shadow 0 12px 32px rgba(90,15,22,0.45); transform translateY(-1px). Active: translateY(0); box-shadow 0 6px 18px rgba(90,15,22,0.35). Transition: transform / border-color / background / color / box-shadow 220ms var(--ease-out).
- **Nav and footer links:** plain tracked uppercase text — no pills, no backgrounds, no underline ever; hover shifts colour (muted -> bone) over 0.18s ease.
- **Focus:** every a and button gets :focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-offset) }. Selection: ::selection { background: rgba(165,52,58,0.55); color:#f6f1ea }. No default blue ring, no text underline anywhere on the page.
- **The .copy line, .rule, wordmark and footer dot never react to the pointer** — they are print, not controls.
---
## 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 -> animation -> delay):
```
brand in-fade 0.08s
nav link 1 in-fade 0.16s
nav link 2 in-fade 0.24s
nav link 3 in-fade 0.32s
header cta in-chip 0.40s
letter S in-mask 0.62s (duration 1.10s)
letter A in-mask 0.72s
letter B in-mask 0.82s
letter L in-mask 0.92s
letter E in-mask 1.02s
rule in-rule 1.22s (duration 1.25s)
copy line in-soft 1.36s
footer left in-fade 1.50s
footer centre in-fade 1.58s
footer right in-fade 1.66s
```
Named entrance keyframes (all end at opacity 1 / identity):
```
in-fade from { opacity: 0 } to { opacity: 1 }
in-soft from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none }
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-rule from { transform: scaleX(0) } to { transform: scaleX(1) }
```
Named continuous keyframes (the silk):
```
fold-drift-1 38s ease-in-out infinite
0%,100% { transform: translate3d(-2%,-1%,0) rotate(-6deg) skewX(-4deg) }
50% { transform: translate3d(2%,1.5%,0) rotate(-2deg) skewX(2deg) }
fold-drift-2 52s ease-in-out infinite
0%,100% { transform: translate3d(1.5%,2%,0) rotate(4deg) skewX(6deg) }
50% { transform: translate3d(-2.5%,-1%,0) rotate(7deg) skewX(0deg) }
fold-drift-3 61s ease-in-out infinite
0%,100% { transform: translate3d(3%,-2%,0) rotate(10deg) }
50% { transform: translate3d(-1%,2%,0) rotate(6deg) }
fold-drift-4 74s ease-in-out infinite
0%,100% { transform: translate3d(-3%,1%,0) rotate(-12deg) skewX(8deg) }
50% { transform: translate3d(2%,-2%,0) rotate(-8deg) skewX(2deg) }
fold-drift-5 89s ease-in-out infinite
0%,100% { transform: translate3d(2%,2%,0) rotate(2deg) }
50% { transform: translate3d(-2%,-2%,0) rotate(6deg) }
sheen-sweep 26s ease-in-out infinite
0%,100% { transform: translate3d(-6%,0,0) skewX(-3deg); opacity: 0.55 }
50% { transform: translate3d(6%,0,0) skewX(2deg); opacity: 0.95 }
veil-breathe 19s ease-in-out infinite
0%,100% { opacity: 0.55; transform: scale(1) }
50% { opacity: 0.85; transform: scale(1.06) }
grain 0.9s steps(4) infinite translate among (0,0) (-2%,1%) (1%,-2%) (-1%,2%)
```
Letter masking: each letter is <span class="letter"><span class="letter-inner appear appear--mask" style="--d:0.62s">S</span></span> with .letter { display:inline-block; overflow:hidden; vertical-align:bottom; padding: 0.05em 0.02em 0.11em } and .letter-inner { display:inline-block } — five characters rising from one hard baseline. Periods 38/52/61/74/89/26/19s are mutually non-harmonic, so the cloth never re-syncs into a visible loop.
---
## H. RESPONSIVE TABLE — exact token overrides per breakpoint
```
>= 1600px:
--word: 152px --word-track: 0.36em --copy: 15px --logo: 15px --nav: 12px
--btn: 12px --btn-h: 46px --foot: 11.5px
--header-y: 30px --header-x: 60px --hero-x: 60px --hero-bottom: 80px --rule-y: 32px
>= 1920px:
--word: 184px --word-track: 0.38em --copy: 16px --header-x: 80px --hero-x: 80px
--hero-bottom: 92px --rule-y: 36px --copy-max: 520px
1280px – 1599px:
--word: 112px --header-x: 48px --hero-x: 48px --hero-bottom: 68px
901px – 1279px:
--word: 84px --word-track: 0.30em --nav: 11px --btn: 11px --copy: 13.5px
--header-x: 32px --hero-x: 32px --hero-bottom: 52px --rule-y: 22px
>= 901px AND max-height 850px:
--word: 96px --word-track: 0.32em --hero-bottom: 44px --header-y: 18px --rule-y: 20px
(footer padding 16px top, 20px bottom)
>= 901px AND max-height 720px:
--word: 76px --word-track: 0.28em --copy: 13px --btn-h: 38px --foot: 10.5px
--hero-bottom: 30px --header-y: 14px --rule-y: 16px (footer padding 12px top, 16px bottom)
>= 901px (desktop lock, all heights):
html, body { height:100%; overflow:hidden } .page { height:100dvh; overflow:hidden }
<= 900px:
no viewport lock; vertical scroll; 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(--bone), gap 5px
- .menu { position:fixed; inset:0; z-index:80; background: rgba(5,4,4,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 the 3 nav links at 22px tracked 0.14em + the .cta button; Escape, any link click, resize > 900px close it
--word: 72px --word-track: 0.26em --header-x: 24px --hero-x: 24px --hero-bottom: 48px
--copy-max: 100% .fold-4 and .fold-5 display:none (3 fold stacks remain; cheaper compositing)
<= 560px:
--word: 46px --word-track: 0.24em --copy: 12.5px --foot: 10px --header-x: 20px
--hero-x: 20px --hero-bottom: 36px --rule-y: 18px
.fold-3 display:none (2 fold stacks remain)
header .cta display:none (it lives inside the menu on mobile)
footer becomes flex-direction:column; align-items:flex-start; gap:12px (dot row first, links wrap)
```
---
## I. FAILURE GUARDS — the page is never blank, never broken
1. **Black-first:** the FIRST CSS rule is html, body { background:#050404 !important; color:#ece5d8 }; body carries style="background:#050404;color:#ece5d8"; a later rule restates html, body { background:#050404; background: var(--bg, #050404) }.
2. **Resting opacity is 1:** every .appear element's un-animated computed style is its final state (opacity 1, no transform, no clip); 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 and readable.
3. **Two-rAF entrance fallback:** after two nested requestAnimationFrame callbacks, for each .appear call el.getAnimations({ subtree:false }); if none reports playState "running"/"finished", add .is-in to ALL .appear. If getAnimations is missing, run the sweep unconditionally after the two rAFs. .is-in forces animation:none !important; opacity:1 !important; transform:none !important; filter:none !important; clip-path:none !important.
4. **Nothing graphical can fail hard:** there is no canvas to lose; if the SVG grain data-URI fails to decode, .grain simply shows no background and no other layer is affected; if Google Fonts never arrives, the Didot/Georgia and system-ui fallback stacks hold every measurement above. All silk layers are background-image + filter — a dropped background paints transparent over .silk-base, never white.
5. **Reduced motion:** inside @media (prefers-reduced-motion: reduce): *, *::before, *::after { transition:none !important; animation:none !important }, and .appear / .appear.is-in forced to opacity:1 !important; transform:none !important; filter:none !important. The silk freezes at its rest transforms: .fold-1 rotate(-6deg) skewX(-4deg), .fold-2 rotate(4deg) skewX(6deg), .fold-3 rotate(10deg), .fold-4 rotate(-12deg) skewX(8deg), .fold-5 rotate(2deg) — the fold pattern is still fully visible, just still; .sheen translate3d(0,0,0) skewX(-1deg) opacity 0.72; .oxblood-veil opacity 0.70 scale(1); .rule scaleX(1); .grain display:none. JS disables the cursor drape (lifts stay at translate3d(0,0,0)). The telemetry rAF loop keeps counting frames — it writes no transforms while reduced motion matches, so nothing moves, and ready still becomes true.
6. **Contrast floor:** wordmark and brand #ece5d8 on #050404 (>14:1); copy #9a9184 over the scrim (>6:1); footer #6d655a at 11px uppercase stays above 4.5:1 against #050404; never drop text opacity below 0.86.
7. **Zero console output:** no console calls anywhere, no thrown exceptions, every DOM call guarded.
---
## J. THE EXACT JS (only this, vanilla, one IIFE at end of body)
1. **Telemetry first:** window.__DEMO__ = { name: 'sable', ready: false, frames: 0, effects: [], errors: [] }; then push exactly these effect names once, in order: 'silk-folds', 'sheen-sweep', 'oxblood-veil', 'cursor-drape', 'film-grain'. Then window.addEventListener('error', function (e) { window.__DEMO__.errors.push(String(e.message || e)); }).
2. **The rAF loop (telemetry + cursor drape only):** cache at startup: .lift-near, .lift-far (style refs only), and two state pairs { x, y, tx, ty }. On pointermove (passive listener, NEVER inside the loop) write targets from e.clientX / e.clientY normalised against cached window.innerWidth / window.innerHeight to the range -0.5..0.5, times amplitudes 12px (near) and 6px (far). Each rAF tick: increment window.__DEMO__.frames by exactly 1; lerp x += (tx - x) * 0.06 and y += (ty - y) * 0.06 for both lifts; write el.style.transform = 'translate3d(' + x.toFixed(2) + 'px,' + y.toFixed(2) + 'px,0)'. The FIRST tick sets window.__DEMO__.ready = true. NEVER getBoundingClientRect, NEVER offsetWidth, NEVER filter/shadowBlur property reads or writes, NO style reads in the loop. While document.hidden, keep the loop and counter alive, skip the two transform writes.
3. **Resize:** one boolean resizeQueued + requestAnimationFrame, no timers; the handler only refreshes the cached innerWidth / innerHeight used for pointer normalisation and closes the mobile menu past 900px. No measurement of any element.
4. **Entrance fallback:** the two nested rAFs, the getAnimations check, the .is-in sweep (Guard 3).
5. **Mobile menu (<= 900px):** burger click toggles .menu.open and aria-expanded; Escape, any menu link click, and resize past 900px close it.
6. **prefers-reduced-motion:** read matchMedia('(prefers-reduced-motion: reduce)') once; if it matches, register no pointermove listener and never write a lift transform — the loop still increments frames and still sets ready on its first tick.
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