# Afterlight Gallery

> **Category:** Landing Page
> **Effect:** A framed lenticular print turns through a coordinated wave of vertical slats, revealing three original geometric artworks with directional shading.
> **Platform:** Codex (`codex`)
> **Model:** `gpt-6.1-sol` — Codex authored example
> **License:** Free / MIT — copy, paste, ship.
> **Self-contained:** yes — one `index.html`, no build step, no external media.

---

## 🎬 Live demo

Open [`public/demos/afterlight-gallery/index.html`](../public/demos/afterlight-gallery/index.html) — generated by the model
above from the prompt below, with no human edits to the markup.

## ✅ Verification

<!-- VERIFICATION:START -->
**Verified:** 20/20 checks passed — ✅ fully passing
**Verified at:** 2026-11-07T03:33:00.029Z
**Demo size:** 16.3 KB (single self-contained file)

### Provenance

| Field | Value |
|---|---|
| Platform | Codex — `original authored example` |
| Model | `gpt-6.1-sol` |
| Prompt sent | — characters (sha256:—) |
| Prompt tokens | 0 |
| Completion tokens | 0 |
| Reasoning tokens | 0 |
| **Total tokens** | **0** |
| API calls | 0 (0 attempts) |
| Latency | 0.0 s |
| Finish reason | `—` |

### Automated checks

| | Check | Observed |
|---|---|---|
| ✅ | demo file exists and is non-trivial | 16685 bytes |
| ✅ | window.__DEMO__.ready became true | 2 frames, effects: lenticular |
| ✅ | animation loop is live (>= 20 frames / 1.2s) | 72 frames in 1.2s |
| ✅ | window.__DEMO__.errors empty | clean |
| ✅ | canvas paints non-blank content | mean 57.77, stdev 29.05, coverage 1 |
| ✅ | canvas spans the viewport width | 1440px of 1440px |
| ✅ | canvas keeps repainting (content changes) | hash 2903599880 -> 3753041531 |
| ✅ | exactly one <h1> with text | "Look once.
Look again." |
| ✅ | header/main/footer landmarks present | header,main,footer |
| ✅ | interactive elements have accessible names | 0 unnamed |
| ✅ | document has <title> | Afterlight Gallery \| Interactive design concept |
| ✅ | document declares lang | en |
| ✅ | no horizontal overflow @ 390px | clean |
| ✅ | no horizontal overflow @ 768px | clean |
| ✅ | no horizontal overflow @ 1440px | clean |
| ✅ | desktop is one viewport (no scroll) | doc 900 vs viewport 900 |
| ✅ | no console errors | clean |
| ✅ | no uncaught page errors | clean |
| ✅ | no failed network requests | clean |
| ✅ | reduced-motion: page still renders content | h1=1 textLen=418 pageErrors=0 |

_Cross-check pending._

*Reproduce: `node tools/runner.mjs --jobs data/jobs.json` then `node tools/verify.mjs --only afterlight-gallery`.*
<!-- VERIFICATION:END -->

## 📋 Prompt

```text
DESIGN BRIEF: Afterlight Gallery

Build an original animated landing page for a gallery of shifting perspectives.

BRAND AND EXACT COPY
Brand: Afterlight Gallery
Eyebrow: A gallery of shifting perspectives
Headline, preserving the intended two lines: Look once. / Look again.
Body: An experimental visual collection that changes with the angle of your attention.
Primary action: Choose a print
Selection labels: Horizon, Orbital, Chromatic
Interaction guidance: Choose an original print. The vertical slats turn to reveal its changing view.
Palette: background #283345; foreground #f0e1c4; accent #dca274; secondary text #c3c4c8.

PROCEDURAL ART DIRECTION
Build a physical print installation from 22 narrow vertical slats inside a thin cream rectangular frame. Each slat clips a portion of one continuous original artwork, so the selected composition reads across the entire object. Horizon is a warm sun above two graphic landscape bands, Orbital is a group of offset nested arcs, and Chromatic is a set of diagonal color fields. As a slat turns, reduce its visible width with abs(cos(angle)) and draw a darker side edge; show an alternate muted reverse color when facing away. Keep at least a 1px visible edge at maximum turn. Do not make this a grid of unrelated thumbnails or a flat image with a CSS rotate transform.

PAGE COMPOSITION AND RESPONSIVE BEHAVIOR
Use a dark gallery split hero with a clean sans heading left and a tall framed art object right. The print occupies roughly 340 by 400px at desktop, with its entire frame and narrow local shadow visible. Maintain a stable navy ground, parchment type and a peach accent. On phones scale the frame to about 190 by 230px beneath the introduction. The art should feel deliberately composed both face-on and during a turn. No fake admission prices, exhibition dates or gallery address.

ANIMATION CHOREOGRAPHY AND STATE CHANGES
Send a slow traveling angular wave across the slats: angle=sin(time*0.45-index*0.14)*0.55. Pointer x shifts the viewing angle by at most 0.20 radians using smoothed input. Slat boundaries remain inside the frame and preserve the shared picture alignment. Selecting a print changes the clipped underlying artwork and caption with a 650ms dissolve. Pause stops the wave and pointer angle. Under reduced motion the slats sit face-on so the whole original print is readable, while all three print choices continue to work.

QUALITY BAR
The first frame must look deliberately composed before any motion begins. Preserve the named object's recognizable silhouette and meaningful differences between all three options. Match the art technique described above instead of replacing it with a generic rotating sphere, blurry gradient or card stack. Keep every decorative layer behind HTML text. The selected state must change visible artwork, not just a button color. A static screenshot should communicate the brand's own palette and composition; a ten-second recording should show the specified motion without overwhelming the copy.

DELIVERABLE AND CONTENT
Produce a complete, runnable index.html with inline CSS and JavaScript. This is an original fictional brand concept for a free design-prompt library. Use the brand and copy supplied above, not any other site's wording. Do not add testimonials, fabricated statistics, paywalls, account forms, model names or irrelevant pipeline details. The only external resource permitted is an optional Google Font; a strong system stack is preferred. Procedural live art is the deliverable, so do not substitute screenshots, images or videos for it.

LAYOUT AND TYPE
At 1440x900 the composition is a single cinematic frame with a real header, nav, main and footer. Reserve about 80px for header, 110px for controls, and the remainder for the hero and scene. Use a maximum content width of 1320px and 5.5vw outer gutters. Text is a separate semantic HTML layer above an aria-hidden full-viewport canvas. Keep body copy at least 15px, muted text contrast readable, and the main headline between 64 and 104px at desktop. At widths below 760px use 24px gutters, a 42-54px headline and a real vertical flow. Hide optional desktop navigation, not the title or primary action. Let the page scroll vertically on small screens when controls need space. Never crop a headline to satisfy the desktop composition.

WORKING INTERACTIONS
Use the primary action to focus or open the selection area, not to navigate to a fake app. Three visible choices switch the scene's meaningful state and update a live caption. Set aria-pressed on the selected choice. Include Pause motion / Resume motion and Reset buttons. Reset restores the first choice, neutral pointer and initial composition. All buttons work with keyboard. Show a clear focus ring, preserve ordinary cursor behavior and make touch targets at least 44px. Add a brief footer disclosure that this is a concept demo with example content.

MOTION AND PERFORMANCE
Use one requestAnimationFrame loop, performance.now deltas, cached dimensions, a capped devicePixelRatio of 1.5, and deterministic seeded geometry. Never read layout inside a hot drawing loop. Use a ResizeObserver or resize handler to update canvas dimensions and cached positions. Use pointermove only to update target values; ease the targets in the animation loop. Draw all visual motion in Canvas or transform/opacity, not layout properties. On document.hidden skip expensive painting; resume without a large time jump. Honor prefers-reduced-motion both at startup and when the preference changes: freeze continuous motion, remove entry translation and keep content and selectors usable. The pause control must correspond to visible motion. Maintain window.__DEMO__ readiness, frames, effects, errors and selected state so the example can be checked.

FAILURE GUARDS AND REVIEW
Initialize the canvas and draw an attractive first frame even if motion is disabled. Keep HTML text and actions visible if JavaScript fails. A scene must never be required to read the copy. Test 390x844, 768x1024, 1024x640 and 1440x900; test pointer movement, each scene option, pause, reset, keyboard focus and reduced motion. Confirm one h1, named controls, real semantic landmarks, no horizontal document overflow, no console errors and no failed resources. Keep all colors in the supplied family. Include no external image, animation, icon or UI framework dependency. Return the entire HTML file, without placeholders or omitted code.


---

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".
```

---

*LandingPagePrompts Prompt Library — free, verified, model-attributed.*
