---
name: php186-skill-60323
description: "构建电影级滚动驱动、3D倾斜、视差及环境变形网站——章节固定展示、英雄视差、景深图像角色、悬停倾斜"
---

# Cinematic Scroll

&lt;!--  
 =============================================================================  
 HUMAN READING THIS BY ACCIDENT? You don't need to. This file is for Claude.



Open README.md instead — it's the human quickstart.



This file (SKILL.md) is the machine-readable contract the agent reads when the  
 skill is invoked. It's long and technical by design.  
 =============================================================================  
 --&gt;



&lt;h2&gt;Cinematic Scroll&lt;/h2&gt;  
 &lt;p&gt;Reusable patterns + production templates for building cinematic, scroll-driven  
 React pages: pinned chapters, multi-depth parallax, 3D mouse tilt,  
 environment-morphing backgrounds, reduced-motion-safe degradation, and  
 (optionally) a full Next.js release site with fal.ai-generated visuals.&lt;/p&gt;  
 &lt;p&gt;This is v2.0 — built on a &lt;strong&gt;5-phase pipeline&lt;/strong&gt; that is &lt;em&gt;adaptively&lt;/em&gt; gated (see  
 &quot;Match the gating to the ask&quot; below). Every phase produces a reviewable artifact:  
 the user approves each phase before the next &lt;strong&gt;when they want the process or the  
 brief is ambiguous&lt;/strong&gt;, and the agent runs straight through &lt;strong&gt;when handed a complete  
 brief or asked for a result directly&lt;/strong&gt; (still emitting every artifact). This  
 replaces the v1.0 one-shot model with a process that consistently produces  
 production-quality output.&lt;/p&gt;  
 &lt;h2&gt;Agent quickstart — route, act, verify&lt;/h2&gt;  
 &lt;p&gt;Read this section first; read the rest as the route demands. Three rules:&lt;/p&gt;  
 &lt;p&gt;&lt;strong&gt;1 · Route the request.&lt;/strong&gt; Match what the user asked for and go straight to work:&lt;/p&gt;  
 &lt;table&gt;  
 &lt;thead&gt;  
 &lt;tr&gt;  
 &lt;th&gt;Request shape&lt;/th&gt;  
 &lt;th&gt;Do this&lt;/th&gt;  
 &lt;th&gt;Read first&lt;/th&gt;  
 &lt;/tr&gt;  
 &lt;/thead&gt;  
 &lt;tbody&gt;&lt;tr&gt;  
 &lt;td&gt;&quot;a scroll section / hero / one-pager&quot;&lt;/td&gt;  
 &lt;td&gt;&lt;strong&gt;Mode A&lt;/strong&gt;: one self-contained &lt;code&gt;.html&lt;/code&gt; (GSAP + ScrollTrigger via pinned CDN + SRI). Start from the closest &lt;code&gt;examples/\*&lt;/code&gt; page.&lt;/td&gt;  
 &lt;td&gt;Phase 4 Mode A rules · &lt;code&gt;taste-guardrails.md&lt;/code&gt;&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;&quot;a release site / product launch / multi-chapter story&quot;&lt;/td&gt;  
 &lt;td&gt;&lt;strong&gt;Mode B&lt;/strong&gt;: copy &lt;code&gt;templates/nextjs/&lt;/code&gt; verbatim, then art-direct.&lt;/td&gt;  
 &lt;td&gt;Phase 4 Mode B rules · &lt;code&gt;templates/nextjs/FLAGSHIP.md&lt;/code&gt;&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;&quot;3D / WebGL / WebXR / &#39;like the flagship&#39;&quot;&lt;/td&gt;  
 &lt;td&gt;Mode A → adapt &lt;code&gt;examples/flagship/&lt;/code&gt; (vanilla three, manifest-driven GLBs, FX layer). Mode B → the &lt;code&gt;/flagship&lt;/code&gt; route (&lt;code&gt;templates/nextjs/FLAGSHIP.md&lt;/code&gt;). Generate real meshes: &lt;code&gt;npm run generate:flagship -- --apply&lt;/code&gt; (needs &lt;code&gt;FAL\_KEY&lt;/code&gt;).&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;references/3d-stack.md&lt;/code&gt; · &lt;code&gt;ASSETS-3D.md&lt;/code&gt;&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;&quot;a launch film / video of the site&quot;&lt;/td&gt;  
 &lt;td&gt;Compile the same choreography to video: &lt;code&gt;node compile-choreography.mjs scene.json --target video&lt;/code&gt;, or author HyperFrames/Remotion directly in &lt;code&gt;video/&lt;/code&gt;.&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;FRAME.md&lt;/code&gt; · &lt;code&gt;video/PIPELINE.md&lt;/code&gt;&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;&quot;score / review an existing URL&#39;s scroll experience&quot;&lt;/td&gt;  
 &lt;td&gt;&lt;strong&gt;Audit mode&lt;/strong&gt;: analyze the user-supplied URL (only sites they own or are authorized to test) and score Pacing / Performance / Accessibility / Emotional Arc, then emit a remediation plan.&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;audit-mode.md&lt;/code&gt;&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;&quot;audit / improve a page I&#39;m building&quot;&lt;/td&gt;  
 &lt;td&gt;Run the doctor first, fix what it flags, re-run; pair with the verify orchestrator.&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;tools/cinematic-doctor/README.md&lt;/code&gt; · &lt;code&gt;tools/verify/README.md&lt;/code&gt;&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;&quot;avatar walkthrough / HeyGen video of the site&quot;&lt;/td&gt;  
 &lt;td&gt;Capture scroll frames + optional fal.ai sticker cutouts → HeyGen avatar-narrated walkthrough. Run &lt;code&gt;node tools/heygen/generate-walkthrough.mjs &lt;page&gt;&lt;/code&gt; to produce the payload, then fire via HeyGen MCP or API.&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;tools/heygen/README.md&lt;/code&gt;&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;&quot;an immersive brand world / &#39;constant wow&#39; / world-building / make it look like the reference&quot;&lt;/td&gt;  
 &lt;td&gt;Run &lt;strong&gt;Phase 1.5 Asset Direction&lt;/strong&gt; before the storyboard — design the world premise, hero concept, motif system, material language, and per-asset sourcing; then clear the &lt;strong&gt;Wow Gate&lt;/strong&gt; (reject generic &lt;em&gt;before&lt;/em&gt; building).&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;references/asset-direction.md&lt;/code&gt; · &lt;code&gt;references/wow-gate.md&lt;/code&gt;&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;&quot;Awwwards-tier / image distortion / kinetic type / custom cursor / preloader / page transitions&quot;&lt;/td&gt;  
 &lt;td&gt;The five second-generation techniques, each with its degrade contract; all five live in &lt;code&gt;examples/atelier/&lt;/code&gt;.&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;references/awwwards-techniques.md&lt;/code&gt;&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;/tbody&gt;&lt;/table&gt;  
 &lt;p&gt;&lt;strong&gt;1b · Speak the design contract.&lt;/strong&gt; Before emitting any CSS/TS, resolve every  
 color, type size, spacing value, easing curve, and pin height through a token —  
 never a literal. The readable map is &lt;code&gt;design.md&lt;/code&gt;; the machine source  
 is &lt;code&gt;tokens/&lt;/code&gt; (DTCG: &lt;code&gt;core&lt;/code&gt; primitives, &lt;code&gt;motion&lt;/code&gt;, &lt;code&gt;semantic&lt;/code&gt; roles).  
 Components/chapters reference semantic role vars only (&lt;code&gt;--bg&lt;/code&gt;, &lt;code&gt;--accent&lt;/code&gt;,  
 &lt;code&gt;--ease-reveal&lt;/code&gt;); a visual-system swap is one &lt;code&gt;themes/\*.theme.json&lt;/code&gt;. Verify the  
 contract with &lt;code&gt;npm run tokens:check&lt;/code&gt;. Full reference: &lt;code&gt;references/design-tokens.md&lt;/code&gt;.  
 Reusable, doctor-verified building blocks (HeroParallax, PinnedReveal, DepthFigure,  
 TiltCard, MorphBackground, HorizontalGallery, ScrubVideo, KineticHeadline,  
 MagneticCursor) live in &lt;code&gt;references/component-grammar.md&lt;/code&gt; + &lt;code&gt;components/&lt;/code&gt; (Mode A  
 html + Mode B tsx) — start from these instead of writing motion from scratch.&lt;/p&gt;  
 &lt;p&gt;&lt;strong&gt;2 · Match the gating to the ask.&lt;/strong&gt; The 5-phase pipeline below produces an  
 artifact per phase. When the user wants the &lt;em&gt;process&lt;/em&gt; (or the brief is genuinely  
 ambiguous), gate each phase on their approval as written. When the user asked for  
 a &lt;em&gt;result&lt;/em&gt; (&quot;build me…&quot;, one-shot, CI, or another agent invoked you), run the  
 phases internally without pausing, still emit the artifacts (&lt;code&gt;cinematic-audit.md&lt;/code&gt;,  
 &lt;code&gt;motion-storyboard.md&lt;/code&gt;, &lt;code&gt;technical-spec.md&lt;/code&gt;, &lt;code&gt;polish-report.md&lt;/code&gt;) as the audit  
 trail, and replace human gates with the verify loop below. Never block an  
 autonomous run waiting for approval the user can&#39;t give.&lt;/p&gt;  
 &lt;p&gt;&lt;strong&gt;3 · Verify before you call it done — every time.&lt;/strong&gt;&lt;/p&gt;  
 &lt;pre&gt;&lt;code class="language-bash"&gt;node tools/cinematic-doctor/cli.mjs &lt;your-page&gt;.html # 0–100; exits non-zero &lt; 80  
 &lt;/code&gt;&lt;/pre&gt;  
 &lt;p&gt;Fix what it flags and re-run until it passes — the same gate CI enforces. The  
 doctor scores taste, performance, a11y, mobile, tokens, and 3D; its findings reference  
 the exact guardrail sections to read. For Mode B also run &lt;code&gt;npm run typecheck&lt;/code&gt;  
 and &lt;code&gt;npm run build&lt;/code&gt; in the project.&lt;/p&gt;  
 &lt;p&gt;The doctor grades the static contract; pair it with the runtime half:&lt;/p&gt;  
 &lt;pre&gt;&lt;code class="language-bash"&gt;npm run proof -- &lt;url-or-file&gt; # tools/page-proof — headless run +  
 # console errors + scroll screenshots  
 &lt;/code&gt;&lt;/pre&gt;  
 &lt;p&gt;&lt;code&gt;page-proof&lt;/code&gt; opens the page in headless Chromium, scrolls it, collects every  
 console error / uncaught exception / failed request, and writes screenshots at  
 each depth (&lt;code&gt;.page-proof/proof.json&lt;/code&gt; + shots). Exit 1 means runtime errors —  
 fix and re-run. Add &lt;code&gt;--fps&lt;/code&gt; on DOM pages to measure scroll smoothness (avg fps&lt;/p&gt;  
 &lt;ul&gt;  
 &lt;li&gt;dropped-frame share — the §1 transform/opacity budget, measured, not  
 asserted). Needs &lt;code&gt;playwright-core&lt;/code&gt; + any Chrome (&lt;code&gt;--wait 8000&lt;/code&gt; for WebGL).&lt;/li&gt;  
 &lt;/ul&gt;  
 &lt;p&gt;&lt;strong&gt;Then LOOK at the shots — this step is not optional.&lt;/strong&gt; You can read images:  
 open every screenshot page-proof wrote and grade the frame like a director  
 reviewing dailies, against &lt;code&gt;taste-guardrails.md&lt;/code&gt;:&lt;/p&gt;  
 &lt;ul&gt;  
 &lt;li&gt;&lt;strong&gt;Composition&lt;/strong&gt; — is there a clear focal point at every depth, or dead/empty  
 frames mid-scroll? (A dwell with nothing composed in view is a failed shot.)&lt;/li&gt;  
 &lt;li&gt;&lt;strong&gt;Hierarchy&lt;/strong&gt; — does the type read in order (eyebrow → display → body)?  
 Any title colliding with imagery or another overlay?&lt;/li&gt;  
 &lt;li&gt;&lt;strong&gt;Reveal state&lt;/strong&gt; — are entrance animations finished or stuck half-way  
 (clipped masks, 0-opacity text that never arrived)?&lt;/li&gt;  
 &lt;li&gt;&lt;strong&gt;Canvas truth&lt;/strong&gt; — for WebGL: is the scene actually rendering, or is it a  
 black/empty canvas behind healthy-looking DOM?&lt;/li&gt;  
 &lt;li&gt;&lt;strong&gt;Edges&lt;/strong&gt; — stretched or wrongly-cropped media, horizontal overflow,  
 elements pinned off-screen.&lt;/li&gt;  
 &lt;/ul&gt;  
 &lt;p&gt;Anything you would screenshot-and-complain-about as a user, fix and re-prove.  
 A build is done when the doctor passes, proof exits 0, AND the shots would  
 survive an art director&#39;s review.&lt;/p&gt;  
 &lt;p&gt;&lt;strong&gt;Verification map&lt;/strong&gt; — four surfaces, each answers a different question:&lt;/p&gt;  
 &lt;table&gt;  
 &lt;thead&gt;  
 &lt;tr&gt;  
 &lt;th&gt;Question&lt;/th&gt;  
 &lt;th&gt;Use&lt;/th&gt;  
 &lt;th&gt;Command&lt;/th&gt;  
 &lt;/tr&gt;  
 &lt;/thead&gt;  
 &lt;tbody&gt;&lt;tr&gt;  
 &lt;td&gt;Is an &lt;em&gt;existing URL&#39;s&lt;/em&gt; scroll experience any good?&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;audit-mode.md&lt;/code&gt; (4-dimension score + remediation)&lt;/td&gt;  
 &lt;td&gt;agent-driven&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;Does &lt;em&gt;my static build&lt;/em&gt; clear the craft bar?&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;cinematic-doctor&lt;/code&gt; (taste/perf/a11y/mobile/tokens/3D)&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;npm run doctor -- &lt;file&gt;&lt;/code&gt;&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;Does it &lt;em&gt;run&lt;/em&gt; without errors / jank?&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;page-proof&lt;/code&gt; (headless run, console, shots, fps)&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;npm run proof -- &lt;file&gt;&lt;/code&gt;&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;Prove a whole phase at once (contract + doctor + runtime + Mode B)&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;verify-build&lt;/code&gt; orchestrator&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;npm run verify -- &lt;target&gt;&lt;/code&gt;&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;/tbody&gt;&lt;/table&gt;  
 &lt;p&gt;The contract itself: &lt;code&gt;npm run tokens:check · themes:check · links:check · evals:run&lt;/code&gt;, or all gates via &lt;code&gt;npm test&lt;/code&gt;.&lt;/p&gt;



&lt;h2&gt;The aesthetic is the user&#39;s — the motion is yours&lt;/h2&gt;  
 &lt;p&gt;&lt;strong&gt;This skill supplies the &lt;em&gt;motion grammar&lt;/em&gt;, never a fixed look.&lt;/strong&gt; The pinned  
 chapters, parallax, tilt, title choreography, and morphing backgrounds are the  
 constant; the visual world — palette, typography, imagery, mood — comes entirely  
 from the user&#39;s brief. Derive the aesthetic from what they ask for (brand,  
 references, palette, vibe, or a visual system from &lt;code&gt;references/film-archetypes.md&lt;/code&gt;).  
 If they haven&#39;t said, &lt;strong&gt;ask&lt;/strong&gt; or offer 2–3 distinct directions — never default to  
 any one style. The same machinery must produce a brutalist black-on-white drop, a  
 quiet-luxury launch, a neon Gen-Z page, a sci-fi noir reveal, an organic wellness  
 story, or a Renaissance editorial. None is &quot;the&quot; style. The five public examples  
 (&lt;code&gt;examples/renaissance&lt;/code&gt;, &lt;code&gt;examples/studio&lt;/code&gt;, &lt;code&gt;examples/noir&lt;/code&gt;, &lt;code&gt;examples/luxe&lt;/code&gt;, &lt;code&gt;examples/pop&lt;/code&gt;)  
 are &lt;em&gt;different&lt;/em&gt; worlds from the same engine — proof the look is a variable, not a default.&lt;/p&gt;



&lt;h2&gt;Philosophy&lt;/h2&gt;  
 &lt;h2&gt;1. Taste is non-negotiable&lt;/h2&gt;  
 &lt;p&gt;The difference between slop and craft is anti-convergence. This skill ships  
 with &lt;code&gt;taste-guardrails.md&lt;/code&gt; — 11 banned patterns, a cinematic vocabulary,  
 pacing rules, and anti-convergence principles. These are the skill&#39;s default  
 &lt;strong&gt;craft constraints&lt;/strong&gt; (anti-slop quality, not a forced aesthetic or locale): the  
 user&#39;s explicit preferences always win — palette, tone, intensity, language, or a  
 minimal/static fallback are theirs to set. Absent such direction, an agent that  
 skips these guardrails produces tasteless output regardless of prompt quality, so  
 every generated file is checked against the banned-patterns list before delivery.&lt;/p&gt;  
 &lt;h2&gt;2. Process over prompt&lt;/h2&gt;  
 &lt;p&gt;A great prompt is not enough. The 5-phase gated pipeline ensures that  
 &lt;strong&gt;auditing&lt;/strong&gt;, &lt;strong&gt;planning&lt;/strong&gt;, &lt;strong&gt;specifying&lt;/strong&gt;, &lt;strong&gt;building&lt;/strong&gt;, and &lt;strong&gt;polishing&lt;/strong&gt;  
 happen as discrete, reviewable steps. The user sees a &lt;code&gt;cinematic-audit.md&lt;/code&gt;  
 before any code is written. They approve a &lt;code&gt;motion-storyboard.md&lt;/code&gt; before  
 any animation is implemented. Process de-risks the output.&lt;/p&gt;  
 &lt;h2&gt;3. Film grammar over web patterns&lt;/h2&gt;  
 &lt;p&gt;Scroll is not &quot;web design.&quot; It is &lt;strong&gt;digital cinematography&lt;/strong&gt;. The cinematic  
 vocabulary in &lt;code&gt;taste-guardrails.md&lt;/code&gt; (Section 2) maps 12 film techniques to  
 scroll equivalents — dolly zooms, whip pans, rack focus, tracking shots,  
 crane shots. Every scroll behavior names the film technique it implements.  
 This is how we produce cinema, not PowerPoint transitions.&lt;/p&gt;  
 &lt;h2&gt;4. Measurable quality&lt;/h2&gt;  
 &lt;p&gt;Every output has reviewable artifacts. Every phase has a decision gate.  
 Every build is checked against &lt;code&gt;performance-budget.md&lt;/code&gt; (Section 6, 11-point  
 pre-launch checklist). Quality is not a feeling — it is a checklist.&lt;/p&gt;



&lt;h2&gt;The 5-Phase Pipeline&lt;/h2&gt;  
 &lt;p&gt;Each phase produces a reviewable &lt;code&gt;.md&lt;/code&gt; artifact. Gating is &lt;strong&gt;adaptive&lt;/strong&gt; (see the  
 quickstart&#39;s &quot;Match the gating to the ask&quot;): when the user wants the process or the  
 brief is ambiguous, the user reviews and approves each phase before the next; when  
 the user asked for a direct result (a complete brief, one-shot, CI, or another agent  
 invoked this skill), the agent runs the phases internally without pausing and still  
 emits every artifact as the audit trail. The agent never silently drops a phase&#39;s  
 artifact.&lt;/p&gt;



&lt;h2&gt;Phase 1: Cinematic Audit&lt;/h2&gt;  
 &lt;p&gt;&lt;strong&gt;Purpose:&lt;/strong&gt; Analyze the brand/content, define the emotional arc, select  
 the visual system, and establish the motion personality.&lt;/p&gt;  
 &lt;table&gt;  
 &lt;thead&gt;  
 &lt;tr&gt;  
 &lt;th&gt;&lt;/th&gt;  
 &lt;th&gt;&lt;/th&gt;  
 &lt;/tr&gt;  
 &lt;/thead&gt;  
 &lt;tbody&gt;&lt;tr&gt;  
 &lt;td&gt;&lt;strong&gt;Input&lt;/strong&gt;&lt;/td&gt;  
 &lt;td&gt;User&#39;s brief, brand materials (palette, logo, copy), reference sites, target audience, device context&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;&lt;strong&gt;Output&lt;/strong&gt;&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;cinematic-audit.md&lt;/code&gt;&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;&lt;strong&gt;Decision gate&lt;/strong&gt;&lt;/td&gt;  
 &lt;td&gt;User approves the emotional arc and visual system before proceeding&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;/tbody&gt;&lt;/table&gt;  
 &lt;h3&gt;Agent instructions&lt;/h3&gt;  
 &lt;ol&gt;  
 &lt;li&gt;&lt;p&gt;Ask the user about their brand&#39;s motion personality if not provided:&lt;/p&gt;  
 &lt;ul&gt;  
 &lt;li&gt;&quot;What emotion should the first 3 seconds produce?&quot;&lt;/li&gt;  
 &lt;li&gt;&quot;Is your brand closer to a Symmetric Monument (meticulous, formal) or a Warm Scrapbook (intimate, playful)?&quot;&lt;/li&gt;  
 &lt;li&gt;&quot;Who is scrolling this — a curious visitor or a decision-maker?&quot;&lt;/li&gt;  
 &lt;/ul&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;Select a &lt;strong&gt;visual system&lt;/strong&gt; from &lt;code&gt;references/film-archetypes.md&lt;/code&gt;.  
 Read the archetypes file (Section 1-7) and match the brief to ONE primary  
 visual system. Document the choice in the audit with rationale. Never mix more  
 than 2 visual systems; if hybridity is needed, choose one primary and one accent.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;Define the &lt;strong&gt;emotional arc&lt;/strong&gt; across the full scroll journey:&lt;/p&gt;  
 &lt;ul&gt;  
 &lt;li&gt;Opening emotion (what the user feels at scroll position 0)&lt;/li&gt;  
 &lt;li&gt;Mid-journey turning point (where the narrative shifts)&lt;/li&gt;  
 &lt;li&gt;Closing emotion (what the user carries away)&lt;/li&gt;  
 &lt;li&gt;Pacing rhythm: glacial / medium / energetic / variable&lt;/li&gt;  
 &lt;/ul&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;Document:&lt;/p&gt;  
 &lt;ul&gt;  
 &lt;li&gt;Brand motion personality (3-5 adjectives)&lt;/li&gt;  
 &lt;li&gt;Emotional arc definition (opening → midpoint → closing)&lt;/li&gt;  
 &lt;li&gt;Audience analysis (device split, technical sophistication, attention span)&lt;/li&gt;  
 &lt;li&gt;Device context (primary viewport, performance tier expectation)&lt;/li&gt;  
 &lt;li&gt;Accessibility requirements (reduced-motion needs, WCAG target)&lt;/li&gt;  
 &lt;li&gt;Visual system selection (primary + optional accent, with rationale)&lt;/li&gt;  
 &lt;li&gt;Color temperature progression across chapters (warm → cool → neutral)&lt;/li&gt;  
 &lt;li&gt;Typography strategy (display font + body font, from archetype)&lt;/li&gt;  
 &lt;/ul&gt;  
 &lt;/li&gt;  
 &lt;/ol&gt;  
 &lt;h3&gt;Output: &lt;code&gt;cinematic-audit.md&lt;/code&gt;&lt;/h3&gt;  
 &lt;p&gt;→ Full template: &lt;code&gt;references/artifact-templates.md&lt;/code&gt;. Copy the &lt;strong&gt;cinematic-audit.md&lt;/strong&gt; section and fill every field.&lt;/p&gt;  
 &lt;h2&gt;Phase 1.5: Asset Direction — the world before the layout&lt;/h2&gt;  
 &lt;p&gt;&lt;strong&gt;Purpose:&lt;/strong&gt; Decide the &lt;em&gt;physical world&lt;/em&gt; the brand lives in and where every visual comes  
 from — so the build can&#39;t drift into a generic dark-landing-page. This is the module that  
 makes &lt;strong&gt;wow reproducible&lt;/strong&gt; instead of occasional. Required for any &lt;em&gt;release · launch ·  
 immersive · premium · flagship · &quot;wow&quot;&lt;/em&gt; brief; skippable only for a single utilitarian section.&lt;/p&gt;  
 &lt;table&gt;  
 &lt;thead&gt;  
 &lt;tr&gt;  
 &lt;th&gt;&lt;/th&gt;  
 &lt;th&gt;&lt;/th&gt;  
 &lt;/tr&gt;  
 &lt;/thead&gt;  
 &lt;tbody&gt;&lt;tr&gt;  
 &lt;td&gt;&lt;strong&gt;Input&lt;/strong&gt;&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;cinematic-audit.md&lt;/code&gt;&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;&lt;strong&gt;Output&lt;/strong&gt;&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;art-direction.md&lt;/code&gt; (world premise · hero concept · motif system · material/light language · per-asset sourcing · signature moment)&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;&lt;strong&gt;Decision gate&lt;/strong&gt;&lt;/td&gt;  
 &lt;td&gt;&lt;strong&gt;The Wow Gate&lt;/strong&gt; — Hero Concept Gate (hard pass/fail) + Wow Rubric (≥ 8/12). A failed concept is regenerated &lt;em&gt;before&lt;/em&gt; any code is written; never build a generic hero because the prompt was thin.&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;/tbody&gt;&lt;/table&gt;  
 &lt;p&gt;Read &lt;strong&gt;&lt;code&gt;references/asset-direction.md&lt;/code&gt;&lt;/strong&gt; (the five decisions +  
 the coherence rule) and &lt;strong&gt;&lt;code&gt;references/wow-gate.md&lt;/code&gt;&lt;/strong&gt; (the gate). The  
 storyboard (Phase 2) then makes every chapter carry ≥1 motif, and the polish phase (Phase 5)  
 verifies the &lt;strong&gt;signature moment&lt;/strong&gt; survived in the page-proof frames — paired with  
 &lt;code&gt;cinematic-doctor&lt;/code&gt;, which scores the executed contract. Doctor = &quot;not slop&quot;; Wow Gate =  
 &quot;actually memorable.&quot;&lt;/p&gt;  
 &lt;p&gt;→ Artifact template: &lt;code&gt;references/artifact-templates.md&lt;/code&gt;, the &lt;strong&gt;art-direction.md&lt;/strong&gt; section.&lt;/p&gt;  
 &lt;h2&gt;Phase 2: Motion Storyboard&lt;/h2&gt;  
 &lt;p&gt;&lt;strong&gt;Purpose:&lt;/strong&gt; Plan the scroll sequence — chapters, patterns, transitions,  
 depth layers, timing, and mobile degradation.&lt;/p&gt;  
 &lt;table&gt;  
 &lt;thead&gt;  
 &lt;tr&gt;  
 &lt;th&gt;&lt;/th&gt;  
 &lt;th&gt;&lt;/th&gt;  
 &lt;/tr&gt;  
 &lt;/thead&gt;  
 &lt;tbody&gt;&lt;tr&gt;  
 &lt;td&gt;&lt;strong&gt;Input&lt;/strong&gt;&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;cinematic-audit.md&lt;/code&gt;&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;&lt;strong&gt;Output&lt;/strong&gt;&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;motion-storyboard.md&lt;/code&gt;&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;&lt;strong&gt;Decision gate&lt;/strong&gt;&lt;/td&gt;  
 &lt;td&gt;User approves the chapter structure and pattern choices before proceeding&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;/tbody&gt;&lt;/table&gt;  
 &lt;h3&gt;Agent instructions&lt;/h3&gt;  
 &lt;ol&gt;  
 &lt;li&gt;&lt;p&gt;Design a &lt;strong&gt;chapter breakdown&lt;/strong&gt; of 5-8 chapters. Each chapter is one  
 pinned section with a distinct visual world. The total scroll distance  
 should be 1500-3000vh for the full experience.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;Select &lt;strong&gt;ONE pattern from &lt;code&gt;references/scroll-patterns.md&lt;/code&gt; per chapter&lt;/strong&gt;.  
 The 12 available patterns (Section 1-12) are:&lt;/p&gt;  
 &lt;ul&gt;  
 &lt;li&gt;Pinned Hero, Scrubbed Timeline, Velocity-Reactive, Sticky Narrative,  
 Chaptered Release, Parallax Gallery, 3D Product Orbit, Editorial Longread,  
 Data Story, Landing Sequence, Portfolio Reveal, Archive Explorer.  
 Document the pattern choice and rationale for each chapter.&lt;/li&gt;  
 &lt;/ul&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;Ensure &lt;strong&gt;no adjacent chapters use the same pattern or transition type&lt;/strong&gt;.  
 This is a hard rule from &lt;code&gt;taste-guardrails.md&lt;/code&gt; Section 4.4. Alternate:  
 fade → slide → scale → rotate → crossfade → wipe.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;Configure &lt;strong&gt;depth layers per chapter&lt;/strong&gt; following the selected pattern&#39;s  
 depth configuration. Reference &lt;code&gt;taste-guardrails.md&lt;/code&gt; Section 4.3: never  
 repeat a depth multiplier between adjacent chapters. Maximum 7 layers per  
 chapter (&lt;code&gt;taste-guardrails.md&lt;/code&gt; Section 1.7).&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;Verify &lt;strong&gt;all pinned sections respect the 150-400vh rule&lt;/strong&gt; from  
 &lt;code&gt;taste-guardrails.md&lt;/code&gt; Section 3.2 and 3.3. No pin shorter than 150vh,  
 no pin longer than 400vh.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;Ensure &lt;strong&gt;breathing room between chapters&lt;/strong&gt;: minimum 80vh of free-scroll  
 space between pinned chapters (&lt;code&gt;taste-guardrails.md&lt;/code&gt; Section 3.4).&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;Specify the &lt;strong&gt;title reveal style per chapter&lt;/strong&gt;, rotating through the  
 vocabulary in &lt;code&gt;taste-guardrails.md&lt;/code&gt; Section 4.5. Never use the same  
 treatment twice in a row.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;Document the &lt;strong&gt;mobile degradation plan&lt;/strong&gt; per chapter using the tier  
 system from &lt;code&gt;performance-budget.md&lt;/code&gt; Section 3.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;/ol&gt;  
 &lt;h3&gt;Output: &lt;code&gt;motion-storyboard.md&lt;/code&gt;&lt;/h3&gt;  
 &lt;p&gt;→ Full template: &lt;code&gt;references/artifact-templates.md&lt;/code&gt;. Copy the &lt;strong&gt;motion-storyboard.md&lt;/strong&gt; section and fill every field.&lt;/p&gt;  
 &lt;h2&gt;Phase 3: Technical Spec&lt;/h2&gt;  
 &lt;p&gt;&lt;strong&gt;Purpose:&lt;/strong&gt; Output the Lenis/GSAP/ScrollTrigger implementation plan with  
 exact configs, performance budget allocation, and asset requirements.&lt;/p&gt;  
 &lt;table&gt;  
 &lt;thead&gt;  
 &lt;tr&gt;  
 &lt;th&gt;&lt;/th&gt;  
 &lt;th&gt;&lt;/th&gt;  
 &lt;/tr&gt;  
 &lt;/thead&gt;  
 &lt;tbody&gt;&lt;tr&gt;  
 &lt;td&gt;&lt;strong&gt;Input&lt;/strong&gt;&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;motion-storyboard.md&lt;/code&gt; + &lt;code&gt;references/performance-budget.md&lt;/code&gt;&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;&lt;strong&gt;Output&lt;/strong&gt;&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;technical-spec.md&lt;/code&gt;&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;&lt;strong&gt;Decision gate&lt;/strong&gt;&lt;/td&gt;  
 &lt;td&gt;User confirms the tech stack and approves performance budget before proceeding&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;/tbody&gt;&lt;/table&gt;  
 &lt;h3&gt;Agent instructions&lt;/h3&gt;  
 &lt;ol&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Select packages:&lt;/strong&gt;&lt;/p&gt;  
 &lt;ul&gt;  
 &lt;li&gt;Smooth scroll: Lenis (&lt;code&gt;lenis&lt;/code&gt; npm package — NOT &lt;code&gt;@studio-freight/lenis&lt;/code&gt;)  
 OR GSAP ScrollSmoother (preferred when GSAP is already in the build)&lt;/li&gt;  
 &lt;li&gt;Animation: GSAP + ScrollTrigger + SplitText (all now free)&lt;/li&gt;  
 &lt;li&gt;Motion primitives: &lt;code&gt;choreo-3d&lt;/code&gt; for pinning orchestration&lt;/li&gt;  
 &lt;li&gt;Framework: React 19 + Next.js App Router (Mode B) or vanilla (Mode A)&lt;/li&gt;  
 &lt;/ul&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Specify exact GSAP ScrollTrigger configs&lt;/strong&gt; for every pinned chapter:&lt;/p&gt;  
 &lt;ul&gt;  
 &lt;li&gt;&lt;code&gt;scrub&lt;/code&gt; value (0.3-0.8 range per &lt;code&gt;performance-budget.md&lt;/code&gt; Section 7)&lt;/li&gt;  
 &lt;li&gt;&lt;code&gt;start&lt;/code&gt; and &lt;code&gt;end&lt;/code&gt; positions&lt;/li&gt;  
 &lt;li&gt;&lt;code&gt;pin&lt;/code&gt; configuration&lt;/li&gt;  
 &lt;li&gt;&lt;code&gt;snap&lt;/code&gt; behavior if applicable&lt;/li&gt;  
 &lt;li&gt;Easing functions per role (hero entrance, exit, micro-interaction,  
 chapter transition — from &lt;code&gt;taste-guardrails.md&lt;/code&gt; Section 4.1)&lt;/li&gt;  
 &lt;/ul&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Allocate performance budget&lt;/strong&gt; from &lt;code&gt;performance-budget.md&lt;/code&gt;:&lt;/p&gt;  
 &lt;ul&gt;  
 &lt;li&gt;Layer count per viewport (max 10 desktop, 4 mobile — Section 2)&lt;/li&gt;  
 &lt;li&gt;will-change strategy (Section 2)&lt;/li&gt;  
 &lt;li&gt;Image budget per chapter (Section 5)&lt;/li&gt;  
 &lt;li&gt;Font budget (Section 5)&lt;/li&gt;  
 &lt;li&gt;JS budget (Section 5)&lt;/li&gt;  
 &lt;/ul&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Flag any performance risks:&lt;/strong&gt; If the storyboard requests more than  
 7 layers per chapter, more than 3 simultaneous motion types in a 50vh  
 window, or pins approaching the 400vh limit, flag it here with mitigation.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Document asset requirements:&lt;/strong&gt; Images, videos, fonts, with specifications  
 for each (format, dimensions, generation prompts if using fal.ai).&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Specify mobile degradation implementation&lt;/strong&gt; per chapter, referencing  
 &lt;code&gt;performance-budget.md&lt;/code&gt; Section 3 (Mobile Degradation Matrix).&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Select the 3D / shader stack tier&lt;/strong&gt; (see block below) and &lt;strong&gt;declare the  
 chosen tier in the technical spec&lt;/strong&gt;. Default is Tier A (no 3D). Every step up  
 must be justified by a named narrative need, not a vibe.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;/ol&gt;  
 &lt;h3&gt;3D / Shader Stack Selection&lt;/h3&gt;  
 &lt;p&gt;3D is the most expensive thing you can put on a scroll page. The default answer  
 is &lt;strong&gt;Tier A: no 3D.&lt;/strong&gt; Earn each step up the ladder with a reason. Pick the  
 &lt;strong&gt;lowest&lt;/strong&gt; tier that satisfies the narrative — climbing a tier multiplies cost  
 (bundle, GPU memory, battery, asset-production time, failure surface). Read  
 &lt;code&gt;references/3d-stack.md&lt;/code&gt; and &lt;code&gt;references/webxr.md&lt;/code&gt; before specifying any 3D.&lt;/p&gt;  
 &lt;pre&gt;&lt;code&gt;Does the story actually need real 3D depth / rotation / parallax-in-space?  
 │  
 ├─ NO ──────────────────────────────────────────► TIER A (GSAP / CSS only)  
 │ Fake depth with layered transforms + CSS 3D. 95% of cinematic  
 │ scroll pages live here. (scroll-patterns.md #1, #6, #7.)  
 │  
 └─ YES → Do you have (or can you commission) a real model?  
 │  
 ├─ YES, a discrete object/scene/figure ──► TIER B (Three + GLB)  
 │ A product, an environment, an avatar. Asset-driven.  
 │  
 └─ NO model — the visual IS the math ─────► TIER C (Three + shaders)  
 Fields, flows, particles, generative surfaces. Zero assets.



…and on top of B or C, only if a flat screen genuinely cannot deliver  
 the moment (scale / presence / embodiment):  
 ──────────► TIER D (+ WebXR)  
 Immersive VR / room-scale AR. (references/webxr.md.)  
 &lt;/code&gt;&lt;/pre&gt;  
 &lt;ul&gt;  
 &lt;li&gt;&lt;strong&gt;Tier A — GSAP / CSS only.&lt;/strong&gt; The depth is illusory and a screen is the final  
 medium. The &quot;3D Product Orbit&quot; pattern is CSS &lt;code&gt;rotateY&lt;/code&gt; on layered images, not  
 a mesh. If you cannot name a specific thing the user &lt;em&gt;does&lt;/em&gt; that requires a  
 camera moving through real geometry, stay here.&lt;/li&gt;  
 &lt;li&gt;&lt;strong&gt;Tier B — GSAP + Three.js + GLB.&lt;/strong&gt; A discrete hero artifact whose form  
 carries the story and that the user orbits / inspects / configures, or a place  
 the camera flies through. Requires the GLB (or a committed path to it) plus the  
 &lt;code&gt;ASSETS-3D.md&lt;/code&gt; hand-off and a manifest.&lt;/li&gt;  
 &lt;li&gt;&lt;strong&gt;Tier C — GSAP + Three.js + procedural shaders.&lt;/strong&gt; The visual &lt;em&gt;is&lt;/em&gt; the  
 computation — a field, flow, surface, or particle system with no object to  
 model. Zero external assets; this is the procedural backbone (and the  
 fallback every Tier-B chapter degrades to).&lt;/li&gt;  
 &lt;li&gt;&lt;strong&gt;Tier D — any of B/C + WebXR.&lt;/strong&gt; Flatness is the actual limitation (scale,  
 presence, embodiment). XR is a session the user explicitly enters; never the  
 default render path. The 2D page must be complete on its own.&lt;/li&gt;  
 &lt;/ul&gt;  
 &lt;p&gt;&lt;strong&gt;Pin every renderer version exactly — no &lt;code&gt;latest&lt;/code&gt;, no floating majors.&lt;/strong&gt;  
 Three.js makes breaking changes between minors; an un-pinned 3D stack is a  
 future blank chapter. Pin vanilla Three to an exact patch (&lt;code&gt;three@0.160.0&lt;/code&gt;) via  
 a versioned CDN import map; pin Three exactly in package builds (caret only on  
 the R3F wrappers, lockfile freezes the tree). Full pin table and import map in  
 &lt;code&gt;references/3d-stack.md&lt;/code&gt; Section 2.&lt;/p&gt;  
 &lt;p&gt;&lt;strong&gt;Declare the stack tier in the technical spec&lt;/strong&gt; (the table in the output  
 template). State the chosen tier, the named narrative need that justifies it,  
 and the pinned versions. If two tiers both satisfy the story, ship the lower  
 one — &quot;could be 3D&quot; is not &quot;should be 3D.&quot; Full decision criteria, performance  
 caps, fallback rules, and the scroll-camera pattern: &lt;code&gt;references/3d-stack.md&lt;/code&gt;.  
 WebXR session setup, comfort/safety, and AR quick-look: &lt;code&gt;references/webxr.md&lt;/code&gt;.&lt;/p&gt;  
 &lt;h3&gt;Output: &lt;code&gt;technical-spec.md&lt;/code&gt;&lt;/h3&gt;  
 &lt;p&gt;→ Full template: &lt;code&gt;references/artifact-templates.md&lt;/code&gt;. Copy the &lt;strong&gt;technical-spec.md&lt;/strong&gt; section and fill every field.&lt;/p&gt;  
 &lt;h2&gt;Phase 4: Build&lt;/h2&gt;  
 &lt;p&gt;&lt;strong&gt;Purpose:&lt;/strong&gt; Generate the code.&lt;/p&gt;  
 &lt;table&gt;  
 &lt;thead&gt;  
 &lt;tr&gt;  
 &lt;th&gt;&lt;/th&gt;  
 &lt;th&gt;&lt;/th&gt;  
 &lt;/tr&gt;  
 &lt;/thead&gt;  
 &lt;tbody&gt;&lt;tr&gt;  
 &lt;td&gt;&lt;strong&gt;Input&lt;/strong&gt;&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;technical-spec.md&lt;/code&gt;&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;&lt;strong&gt;Output&lt;/strong&gt;&lt;/td&gt;  
 &lt;td&gt;Mode A (self-contained HTML) or Mode B (Next.js project)&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;&lt;strong&gt;Decision gate&lt;/strong&gt;&lt;/td&gt;  
 &lt;td&gt;Implicit — the code IS the deliverable&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;/tbody&gt;&lt;/table&gt;  
 &lt;h3&gt;Agent instructions&lt;/h3&gt;  
 &lt;ol&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Apply ALL taste guardrails as hard constraints.&lt;/strong&gt; Before delivering,  
 check every output against the banned patterns list in  
 &lt;code&gt;taste-guardrails.md&lt;/code&gt; Section 1. Violating these rules is a bug, not a  
 style choice.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Ensure reduced-motion fallback&lt;/strong&gt; for every scroll-driven effect.  
 When &lt;code&gt;prefers-reduced-motion: reduce&lt;/code&gt; is active: disable pinning, disable  
 parallax, show static compositions, set all transitions to instant.  
 Reference &lt;code&gt;performance-budget.md&lt;/code&gt; Section 3, Tier 4.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Give mobile a touch-safe cinematic experience — not a dead page.&lt;/strong&gt; Below  
 768px, unpin every chapter and stack the layout, BUT keep motion  
 &lt;em&gt;scroll-coupled&lt;/em&gt;: a lerped/damped image parallax (one transform-only mover per  
 section) plus scroll-linked entrance reveals (transform + opacity). A flat,  
 motionless mobile page is a failure mode for this skill. Drive it with JS  
 (rAF reading &lt;code&gt;scrollY&lt;/code&gt; in Mode A, framer &lt;code&gt;useScroll&lt;/code&gt;/&lt;code&gt;useSpring&lt;/code&gt; in Mode B) —  
 never CSS &lt;code&gt;animation-timeline&lt;/code&gt;, which iOS Safari reports as supported but does  
 not actually run. No pinning/scroll-jacking on touch, no 3D tilt on touch.  
 Reference &lt;code&gt;references/mobile-motion.md&lt;/code&gt; for the recipe and  
 &lt;code&gt;performance-budget.md&lt;/code&gt; Section 3 (Mobile Degradation Matrix).&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Name the cinematic technique in code comments.&lt;/strong&gt; Every scroll-driven  
 animation should carry a developer comment identifying the film technique it  
 implements (from &lt;code&gt;taste-guardrails.md&lt;/code&gt; Section 2). This is a code-comment  
 convention for maintainers — it does not dictate the page&#39;s user-facing  
 language or locale, which follow the user&#39;s request.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Only animate &lt;code&gt;transform&lt;/code&gt; and &lt;code&gt;opacity&lt;/code&gt; in hot scroll paths.&lt;/strong&gt; Never  
 &lt;code&gt;width&lt;/code&gt;, &lt;code&gt;height&lt;/code&gt;, &lt;code&gt;top&lt;/code&gt;, &lt;code&gt;left&lt;/code&gt;, &lt;code&gt;filter&lt;/code&gt;, &lt;code&gt;box-shadow&lt;/code&gt;.  
 Reference &lt;code&gt;performance-budget.md&lt;/code&gt; Section 1 (Permitted Properties).&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Use &lt;code&gt;will-change&lt;/code&gt; strategically&lt;/strong&gt; — 200ms before animation starts,  
 200ms after it ends, max 3 simultaneous elements. Never globally.  
 Reference &lt;code&gt;performance-budget.md&lt;/code&gt; Section 2.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Optional accelerator — compile from a choreography document.&lt;/strong&gt; If the  
 technical spec is expressed as a &lt;code&gt;scroll-choreography.json&lt;/code&gt;, run the bundled  
 compiler to emit the GSAP ScrollTrigger + Lenis code instead of hand-writing it:  
 &lt;code&gt;node compile-choreography.mjs my-scene.json --out scene.js&lt;/code&gt;. The compiler maps  
 the schema&#39;s CSS property names to GSAP shorthand (&lt;code&gt;translateX&lt;/code&gt;→&lt;code&gt;x&lt;/code&gt;,  
 &lt;code&gt;rotateZ&lt;/code&gt;→&lt;code&gt;rotation&lt;/code&gt;, …) — a mapping that is easy to get wrong by hand and  
 silently no-ops in GSAP if you do. See &lt;code&gt;scroll-choreography-compilation.md&lt;/code&gt;.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;One choreography, two media.&lt;/strong&gt; The same document also compiles to a  
 fixed-time video timeline for HTML-to-video renderers (HyperFrames,  
 Remotion): &lt;code&gt;node compile-choreography.mjs my-scene.json --target video&lt;/code&gt;.  
 Scroll progress maps to seconds via FRAME.md §5 pacing; the DOM contract is  
 identical, so one skeleton serves the page and its launch film. For a complete  
 render-ready composition in one step, use &lt;code&gt;--target hyperframes&lt;/code&gt; (emits the  
 full HTML with real Layer.content rendered; &lt;code&gt;npx hyperframes render&lt;/code&gt; → MP4).  
 If the user wants a promo/launch video of the site they just built, this is  
 the path — see &lt;code&gt;video/PIPELINE.md&lt;/code&gt; and &lt;code&gt;FRAME.md&lt;/code&gt;.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Follow the &lt;code&gt;technical-spec.md&lt;/code&gt; exactly.&lt;/strong&gt; Do not improvise animation  
 configs that differ from the approved spec.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;If using fal.ai assets&lt;/strong&gt;, follow the server-side generation pattern,  
 never expose &lt;code&gt;FAL\_KEY&lt;/code&gt; in client code. Reference &lt;code&gt;MODELS.md&lt;/code&gt; for model  
 selection and cost.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;/ol&gt;  
 &lt;h3&gt;Mode A vs Mode B&lt;/h3&gt;  
 &lt;p&gt;This phase operates in two modes. Follow the mode specified in the  
 &lt;code&gt;technical-spec.md&lt;/code&gt;.&lt;/p&gt;  
 &lt;table&gt;  
 &lt;thead&gt;  
 &lt;tr&gt;  
 &lt;th&gt;&lt;/th&gt;  
 &lt;th&gt;&lt;strong&gt;Mode A — Scroll artifact&lt;/strong&gt;&lt;/th&gt;  
 &lt;th&gt;&lt;strong&gt;Mode B — Full release site&lt;/strong&gt;&lt;/th&gt;  
 &lt;/tr&gt;  
 &lt;/thead&gt;  
 &lt;tbody&gt;&lt;tr&gt;  
 &lt;td&gt;Use when&lt;/td&gt;  
 &lt;td&gt;Single section / hero / pinned chapter / parallax demo&lt;/td&gt;  
 &lt;td&gt;Full release / launch / product-story website&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;Output&lt;/td&gt;  
 &lt;td&gt;One self-contained &lt;code&gt;.html&lt;/code&gt; (inline CSS + JS) or &lt;code&gt;.tsx&lt;/code&gt; component&lt;/td&gt;  
 &lt;td&gt;Next.js App Router project from &lt;code&gt;templates/nextjs/&lt;/code&gt;&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;Build step&lt;/td&gt;  
 &lt;td&gt;None&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;npm install &amp;&amp; npm run dev&lt;/code&gt;&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;AI assets&lt;/td&gt;  
 &lt;td&gt;None (CSS/SVG/static only)&lt;/td&gt;  
 &lt;td&gt;Optional fal.ai pipeline (bring your own key)&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;GSAP&lt;/td&gt;  
 &lt;td&gt;GSAP + ScrollTrigger via a &lt;strong&gt;pinned CDN + SRI&lt;/strong&gt; (vanilla rAF fallback for no-CDN sandboxes)&lt;/td&gt;  
 &lt;td&gt;Full GSAP + plugins (now free), via npm&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;Smooth scroll&lt;/td&gt;  
 &lt;td&gt;ScrollTrigger scrub + rAF-throttled handlers&lt;/td&gt;  
 &lt;td&gt;Lenis or ScrollSmoother&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;/tbody&gt;&lt;/table&gt;  
 &lt;p&gt;If the request is ambiguous, default to &lt;strong&gt;Mode A&lt;/strong&gt; for a single section  
 and &lt;strong&gt;Mode B&lt;/strong&gt; when the user says &quot;site&quot;, &quot;page&quot;, &quot;release&quot;, &quot;launch&quot;,  
 or &quot;landing&quot;.&lt;/p&gt;  
 &lt;h3&gt;Mode A build rules&lt;/h3&gt;  
 &lt;ul&gt;  
 &lt;li&gt;Single self-contained HTML file: &lt;code&gt;&lt;!DOCTYPE html&gt;&lt;/code&gt; ... &lt;code&gt;&lt;/html&gt;&lt;/code&gt;, inline  
 CSS + JS, renders immediately with &lt;strong&gt;no build step and no npm packages&lt;/strong&gt;.&lt;/li&gt;  
 &lt;li&gt;Load &lt;strong&gt;GSAP + ScrollTrigger from a pinned CDN with SRI&lt;/strong&gt; (exact version, integrity  
 hash, &lt;code&gt;crossorigin&lt;/code&gt; — as every &lt;code&gt;examples/\*&lt;/code&gt; page does). &lt;strong&gt;Third-party CDN disclosure:&lt;/strong&gt;  
 generated Mode A pages load GSAP from &lt;code&gt;unpkg.com&lt;/code&gt;, fonts from &lt;code&gt;fonts.googleapis.com&lt;/code&gt;  
 / &lt;code&gt;fonts.gstatic.com&lt;/code&gt;, and &lt;code&gt;@google/model-viewer&lt;/code&gt; from &lt;code&gt;cdn.jsdelivr.net&lt;/code&gt;. These  
 are outbound network requests made by the browser when the page is opened. If the  
 user&#39;s deployment policy restricts third-party origins, self-host these assets and  
 replace the CDN URLs — mention this proactively. For sandboxes where the CDN is  
 unreachable, fall back to &lt;code&gt;requestAnimationFrame&lt;/code&gt;-throttled scroll handlers:  
 identical motion grammar, zero dependencies. Either way there is no bundler and  
 nothing to &lt;code&gt;npm install&lt;/code&gt;. (Lenis is Mode B only.)&lt;/li&gt;  
 &lt;li&gt;&lt;code&gt;perspective: 1200px&lt;/code&gt; on chapter wrapper. 3D transforms on at least one  
 layer (&lt;code&gt;rotateX&lt;/code&gt; ±4deg max, &lt;code&gt;rotateY&lt;/code&gt; ±2deg max).&lt;/li&gt;  
 &lt;li&gt;Minimum 5 depth layers per chapter.&lt;/li&gt;  
 &lt;li&gt;Type reveal: use one of mask reveal, word stagger, letter stagger,  
 vertical mask, or scrub letter-spacing.&lt;/li&gt;  
 &lt;li&gt;&lt;code&gt;clamp()&lt;/code&gt; for all typography. No fixed &lt;code&gt;px&lt;/code&gt; for &lt;code&gt;font-size&lt;/code&gt;.&lt;/li&gt;  
 &lt;li&gt;Progress HUD in top-right for sandbox/iframe environments.&lt;/li&gt;  
 &lt;li&gt;Reduced-motion check: &lt;code&gt;prefers-reduced-motion: reduce&lt;/code&gt; → static  
 composition, no scroll binding.&lt;/li&gt;  
 &lt;/ul&gt;  
 &lt;h3&gt;Mode B build rules&lt;/h3&gt;  
 &lt;ul&gt;  
 &lt;li&gt;Scaffold from &lt;code&gt;templates/nextjs/&lt;/code&gt; — copy bundled files &lt;strong&gt;verbatim&lt;/strong&gt;.  
 Do NOT regenerate &lt;code&gt;package.json&lt;/code&gt;, &lt;code&gt;ChapterScene.tsx&lt;/code&gt;, &lt;code&gt;fal-models.ts&lt;/code&gt;,  
 &lt;code&gt;fal-generate.ts&lt;/code&gt;, or API routes from memory. The templates contain  
 tested, production-safe code.&lt;/li&gt;  
 &lt;li&gt;&lt;code&gt;choreo-3d&lt;/code&gt; for motion primitives: &lt;code&gt;ScrollChoreography&lt;/code&gt;, &lt;code&gt;ScrollLayer&lt;/code&gt;,  
 &lt;code&gt;ScrollDepthImage&lt;/code&gt;, &lt;code&gt;ScrollBackgroundMorph&lt;/code&gt;, &lt;code&gt;useTilt3D&lt;/code&gt;, &lt;code&gt;useMouseSpring&lt;/code&gt;.&lt;/li&gt;  
 &lt;li&gt;GSAP plugins (all free): &lt;code&gt;ScrollTrigger&lt;/code&gt;, &lt;code&gt;SplitText&lt;/code&gt;, &lt;code&gt;ScrollSmoother&lt;/code&gt;.  
 Register once: &lt;code&gt;gsap.registerPlugin(ScrollTrigger, SplitText, ScrollSmoother)&lt;/code&gt;.&lt;/li&gt;  
 &lt;li&gt;&lt;code&gt;@gsap/react&lt;/code&gt;&#39;s &lt;code&gt;useGSAP()&lt;/code&gt; hook with a &lt;code&gt;scope&lt;/code&gt; for cleanup.&lt;/li&gt;  
 &lt;li&gt;Lenis (&lt;code&gt;lenis&lt;/code&gt; package — NOT &lt;code&gt;@studio-freight/lenis&lt;/code&gt;) for smooth scroll.  
 Forward Lenis RAF tick to &lt;code&gt;ScrollTrigger.update&lt;/code&gt;.&lt;/li&gt;  
 &lt;li&gt;&lt;code&gt;lib/editions-manifest.ts&lt;/code&gt; — 6-12 chapters, each with: &lt;code&gt;id&lt;/code&gt;, &lt;code&gt;eyebrow&lt;/code&gt;,  
 &lt;code&gt;title&lt;/code&gt;, &lt;code&gt;summary&lt;/code&gt;, &lt;code&gt;features&lt;/code&gt;, &lt;code&gt;accent&lt;/code&gt;, &lt;code&gt;background&lt;/code&gt;, &lt;code&gt;foreground&lt;/code&gt;,  
 &lt;code&gt;poster&lt;/code&gt;, &lt;code&gt;video&lt;/code&gt;.&lt;/li&gt;  
 &lt;li&gt;&lt;code&gt;ChapterScene.tsx&lt;/code&gt; — the 7-layer cinematic scene. Do NOT downgrade it:  
 never collapse to 2 layers, never remove &lt;code&gt;perspective: 1200px&lt;/code&gt;, never  
 replace word-stagger with plain opacity fade, never drop mobile fallback.&lt;/li&gt;  
 &lt;li&gt;&lt;code&gt;lib/fal-models.ts&lt;/code&gt; adapter for all image generation — never inline  
 &lt;code&gt;image\_size&lt;/code&gt;, &lt;code&gt;aspect\_ratio&lt;/code&gt;, or &lt;code&gt;negative\_prompt&lt;/code&gt;.&lt;/li&gt;  
 &lt;li&gt;fal.ai key stays server-side only. Never in client components or &lt;code&gt;.env&lt;/code&gt;.&lt;/li&gt;  
 &lt;/ul&gt;  
 &lt;h3&gt;3D / WebGL / XR build rules (Tier B/C/D only)&lt;/h3&gt;  
 &lt;p&gt;These apply &lt;strong&gt;only&lt;/strong&gt; when the technical spec declared Tier B, C, or D. Tier A  
 (GSAP/CSS) ships none of this. &lt;code&gt;examples/flagship/&lt;/code&gt; is the worked 4-chapter  
 reference; &lt;code&gt;references/3d-stack.md&lt;/code&gt; (renderer + caps) and &lt;code&gt;references/webxr.md&lt;/code&gt;  
 (Tier D sessions) are the authority. Each rule below is enforceable — a miss is  
 a bug, not a style choice.&lt;/p&gt;  
 &lt;ol&gt;  
 &lt;li&gt;&lt;strong&gt;Cap &lt;code&gt;devicePixelRatio&lt;/code&gt; low for live scenes&lt;/strong&gt; — &lt;code&gt;Math.min(devicePixelRatio, isMobile ? 1.0 : 1.5)&lt;/code&gt; (raymarchers/fullscreen shaders can go 0.85–1.3; the  
 blur hides it). Uncapped or a flat &lt;code&gt;2&lt;/code&gt; is a Retina GPU tax — a 4K display  
 renders 4–9× the pixels and is the &lt;strong&gt;#1 cause of 3D scroll jank&lt;/strong&gt;. &lt;strong&gt;One  
 renderer per page&lt;/strong&gt; — never a second WebGL context per chapter.  
 See &lt;code&gt;performance-budget.md&lt;/code&gt; §9. &lt;em&gt;(doctor-enforced)&lt;/em&gt;&lt;/li&gt;  
 &lt;/ol&gt;  
 &lt;p&gt;1b. &lt;strong&gt;Light budget: ~2–4 dynamic lights — prefer emissive + IBL.&lt;/strong&gt; Every  
 real-time &lt;code&gt;PointLight&lt;/code&gt;/&lt;code&gt;SpotLight&lt;/code&gt;/&lt;code&gt;DirectionalLight&lt;/code&gt; costs per-fragment on  
 every lit mesh; one light per object (e.g. a spotlight per painting) is a  
 frame-rate cliff. Get the look from &lt;code&gt;scene.environment&lt;/code&gt; (an equirectangular  
 HDRI via &lt;code&gt;PMREMGenerator&lt;/code&gt; — image-based fill + real reflections), emissive  
 materials/&lt;code&gt;emissiveMap&lt;/code&gt; for self-lit art, and a couple of camera-following  
 lights. Keep MSAA off on fog/fill-heavy scenes. &lt;code&gt;performance-budget.md&lt;/code&gt; §9.  
 &lt;em&gt;(doctor-enforced)&lt;/em&gt;&lt;/p&gt;  
 &lt;ol start="2"&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Feature-detect WebGL before creating a context.&lt;/strong&gt; Probe for a context;  
 if it fails, render the &lt;strong&gt;permanent poster / CSS fallback&lt;/strong&gt; — never a blank  
 canvas. The fallback is a first-class deliverable, not an afterthought.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Handle context loss.&lt;/strong&gt; Add a &lt;code&gt;webglcontextlost&lt;/code&gt; listener that calls  
 &lt;code&gt;e.preventDefault()&lt;/code&gt;, plus a &lt;code&gt;webglcontextrestored&lt;/code&gt; handler that rebuilds the  
 scene. Without &lt;code&gt;preventDefault()&lt;/code&gt; the context never comes back.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;code&gt;prefers-reduced-motion: reduce&lt;/code&gt; → render a single static frame.&lt;/strong&gt; Draw  
 once, then stop. No continuous rAF loop, no auto-rotate, no idle animation.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Gate the rAF loop.&lt;/strong&gt; Run frames only when the document is visible  
 (&lt;code&gt;document.visibilityState&lt;/code&gt;) AND the canvas is on-screen (&lt;code&gt;IntersectionObserver&lt;/code&gt;).  
 Stop the loop otherwise. On teardown, &lt;strong&gt;dispose every geometry, material, and  
 texture&lt;/strong&gt; (and the renderer) — leaked GPU resources accumulate per chapter.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;All runtime 3D asset paths come from a manifest&lt;/strong&gt; — never hardcode model,  
 USDZ, or poster paths in code. Read them from  
 &lt;code&gt;examples/flagship/assets-3d/manifest.json&lt;/code&gt; (shape: &lt;code&gt;version&lt;/code&gt; (2), &lt;code&gt;basePath&lt;/code&gt;,  
 &lt;code&gt;chapters.{id}.{label, runtime, iosAr, fallbackPoster, height, lift, spin, pivot, cameraNodes, shader, scale, animations, stripRootMotion}&lt;/code&gt; — &lt;code&gt;runtime&lt;/code&gt;  
 is the glb path or &lt;code&gt;&quot;procedural&quot;&lt;/code&gt;, &lt;code&gt;iosAr&lt;/code&gt; the optional &lt;code&gt;.usdz&lt;/code&gt;).&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;XR (Tier D) is feature-gated.&lt;/strong&gt; Check &lt;code&gt;navigator.xr&lt;/code&gt; and  
 &lt;code&gt;await navigator.xr.isSessionSupported(&#39;immersive-vr&#39; | &#39;immersive-ar&#39;)&lt;/code&gt;  
 &lt;strong&gt;before&lt;/strong&gt; rendering any Enter-VR / Enter-AR button. If unsupported, the  
 button never appears. The 2D page must be complete and shippable without XR —  
 XR is a session the user explicitly enters, never the default render path.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;/ol&gt;  
 &lt;h3&gt;Output: Mode A (single file) or Mode B (project directory)&lt;/h3&gt;



&lt;h2&gt;Phase 5: Polish&lt;/h2&gt;  
 &lt;p&gt;&lt;strong&gt;Purpose:&lt;/strong&gt; Performance audit, accessibility check, mobile verification,  
 and final quality gate.&lt;/p&gt;  
 &lt;table&gt;  
 &lt;thead&gt;  
 &lt;tr&gt;  
 &lt;th&gt;&lt;/th&gt;  
 &lt;th&gt;&lt;/th&gt;  
 &lt;/tr&gt;  
 &lt;/thead&gt;  
 &lt;tbody&gt;&lt;tr&gt;  
 &lt;td&gt;&lt;strong&gt;Input&lt;/strong&gt;&lt;/td&gt;  
 &lt;td&gt;The built code (Mode A HTML or Mode B project)&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;&lt;strong&gt;Output&lt;/strong&gt;&lt;/td&gt;  
 &lt;td&gt;&lt;code&gt;polish-report.md&lt;/code&gt;&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;&lt;strong&gt;Decision gate&lt;/strong&gt;&lt;/td&gt;  
 &lt;td&gt;All 11 pre-launch checks must pass. User reviews the polish report.&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;/tbody&gt;&lt;/table&gt;  
 &lt;h3&gt;Agent instructions&lt;/h3&gt;  
 &lt;ol&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Run the performance-budget.md monitoring checklist&lt;/strong&gt; (Section 6).  
 All 11 pre-launch checks must be verified:&lt;/p&gt;  
 &lt;ul&gt;  
 &lt;li&gt;&lt;input disabled="" type="checkbox"&gt; Chrome DevTools Performance: 10s scroll recording, &lt; 5% red frames&lt;/li&gt;  
 &lt;li&gt;&lt;input disabled="" type="checkbox"&gt; Lighthouse Performance score &gt; 90&lt;/li&gt;  
 &lt;li&gt;&lt;input disabled="" type="checkbox"&gt; WebPageTest filmstrip: smooth visual progression during scroll&lt;/li&gt;  
 &lt;li&gt;&lt;input disabled="" type="checkbox"&gt; iPhone 12 Safari: no visible stutter during fast scroll&lt;/li&gt;  
 &lt;li&gt;&lt;input disabled="" type="checkbox"&gt; iPhone SE: content accessible, no broken layout on budget tier&lt;/li&gt;  
 &lt;li&gt;&lt;input disabled="" type="checkbox"&gt; Reduced-motion test: all content visible, no broken layout&lt;/li&gt;  
 &lt;li&gt;&lt;input disabled="" type="checkbox"&gt; Battery test: 5min continuous scrolling drains &lt; 3% battery&lt;/li&gt;  
 &lt;li&gt;&lt;input disabled="" type="checkbox"&gt; Memory test: tab memory does not grow &gt; 50MB after 5min scrolling&lt;/li&gt;  
 &lt;li&gt;&lt;input disabled="" type="checkbox"&gt; Layer count: &lt; 10 layers desktop, &lt; 4 on mobile&lt;/li&gt;  
 &lt;li&gt;&lt;input disabled="" type="checkbox"&gt; No layout thrashing: no purple &quot;Layout&quot; bars during scroll&lt;/li&gt;  
 &lt;li&gt;&lt;input disabled="" type="checkbox"&gt; Network: no images load during scroll animation&lt;/li&gt;  
 &lt;/ul&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Verify no banned patterns survived.&lt;/strong&gt; Re-check the code against  
 &lt;code&gt;taste-guardrails.md&lt;/code&gt; Section 1 (Banned Patterns).&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Confirm emotional arc matches Phase 1 audit.&lt;/strong&gt; Scroll through the  
 entire experience and verify the emotional progression matches the  
 &lt;code&gt;cinematic-audit.md&lt;/code&gt; definition.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Verify all reduced-motion fallbacks.&lt;/strong&gt; Test with macOS → Accessibility  
 → Reduce Motion ON. All content must be visible and usable.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Verify mobile degradation.&lt;/strong&gt; Test at 375px viewport. All pinned  
 sections must be converted to stacked layout. No broken tap targets.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Verify accessibility:&lt;/strong&gt; All images have meaningful &lt;code&gt;alt&lt;/code&gt; text (or  
 &lt;code&gt;alt=&quot;&quot;&lt;/code&gt; if decorative). All interactive elements have focus states.  
 &lt;code&gt;aria-label&lt;/code&gt; on visual navigation controls. Keyboard navigation works.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Measure scroll jank&lt;/strong&gt; using the protocol from &lt;code&gt;performance-budget.md&lt;/code&gt;  
 Section 4 (Scroll Jank Measurement Protocol).&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;3D / XR polish checks (Tier B/C/D only).&lt;/strong&gt; Skip for Tier A. Verify:&lt;/p&gt;  
 &lt;ul&gt;  
 &lt;li&gt;&lt;input disabled="" type="checkbox"&gt; Context loss tested — force a &lt;code&gt;webglcontextlost&lt;/code&gt;, confirm  
 &lt;code&gt;e.preventDefault()&lt;/code&gt; fires and &lt;code&gt;webglcontextrestored&lt;/code&gt; rebuilds the scene.&lt;/li&gt;  
 &lt;li&gt;&lt;input disabled="" type="checkbox"&gt; Fallback verified — disable WebGL (or block the context) and confirm the  
 permanent poster / CSS fallback renders, never a blank canvas.&lt;/li&gt;  
 &lt;li&gt;&lt;input disabled="" type="checkbox"&gt; Mobile &lt;code&gt;devicePixelRatio&lt;/code&gt; lowered (≤ 2, lower on phones) and a single  
 renderer is used for the whole page.&lt;/li&gt;  
 &lt;li&gt;&lt;input disabled="" type="checkbox"&gt; No per-frame allocation — no &lt;code&gt;new&lt;/code&gt; geometries/materials/vectors inside  
 the rAF loop; no raycasting or heavy work every frame.&lt;/li&gt;  
 &lt;li&gt;&lt;input disabled="" type="checkbox"&gt; Teardown disposes all geometries/materials/textures (no GPU leak across  
 chapters); rAF is gated on visibility + on-screen.&lt;/li&gt;  
 &lt;li&gt;&lt;input disabled="" type="checkbox"&gt; &lt;code&gt;prefers-reduced-motion&lt;/code&gt; renders a single static frame (no loop).&lt;/li&gt;  
 &lt;li&gt;&lt;input disabled="" type="checkbox"&gt; XR feature-gated — Enter-VR/AR only appears after  
 &lt;code&gt;navigator.xr.isSessionSupported(...)&lt;/code&gt;; the 2D page is complete without XR.  
 See &lt;code&gt;references/3d-stack.md&lt;/code&gt; and &lt;code&gt;references/webxr.md&lt;/code&gt; for the authority.&lt;/li&gt;  
 &lt;/ul&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Run the cinematic-doctor quality gate — the polish phase is not complete  
 until it passes.&lt;/strong&gt; Every build SHOULD pass this executable gate before  
 shipping:&lt;/p&gt;  
 &lt;pre&gt;&lt;code class="language-bash"&gt;npm run doctor -- examples/your-build/index.html  
 # equivalently (the gate&#39;s direct entry point):  
 node tools/cinematic-doctor/cli.mjs examples/your-build/index.html  
 &lt;/code&gt;&lt;/pre&gt;  
 &lt;p&gt;It statically scores the build 0–100 across taste, performance, a11y, mobile,  
 tokens, and (when 3D is detected) 3D categories, prints a scorecard, writes  
 &lt;code&gt;cinematic-report.json&lt;/code&gt;, and &lt;strong&gt;exits non-zero below the default threshold of  
 80&lt;/strong&gt; — so it is CI-blockable / pre-commit-hook ready. Treat a failing score as  
 a list of concrete fixes to apply, then re-run until it passes. Do not call  
 the build polished while cinematic-doctor is red.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;/ol&gt;  
 &lt;h3&gt;Output: &lt;code&gt;polish-report.md&lt;/code&gt;&lt;/h3&gt;  
 &lt;p&gt;→ Full template: &lt;code&gt;references/artifact-templates.md&lt;/code&gt;. Copy the &lt;strong&gt;polish-report.md&lt;/strong&gt; section and fill every field.&lt;/p&gt;  
 &lt;h2&gt;Mandatory Motion + Craft Requirements&lt;/h2&gt;  
 &lt;p&gt;Every artifact MUST satisfy ALL of these. No exceptions for &quot;demo simplicity&quot;  
 — the demo IS the product.&lt;/p&gt;  
 &lt;h2&gt;1. Multi-depth field — minimum 5 layers&lt;/h2&gt;  
 &lt;p&gt;Two-layer parallax is amateur. A real depth field uses 5-7 layers at  
 distinct depth multipliers. Pick at least 5 of these 7 slots:&lt;/p&gt;  
 &lt;table&gt;  
 &lt;thead&gt;  
 &lt;tr&gt;  
 &lt;th&gt;Depth&lt;/th&gt;  
 &lt;th&gt;Role&lt;/th&gt;  
 &lt;th&gt;Examples&lt;/th&gt;  
 &lt;/tr&gt;  
 &lt;/thead&gt;  
 &lt;tbody&gt;&lt;tr&gt;  
 &lt;td&gt;0.15&lt;/td&gt;  
 &lt;td&gt;Atmospheric far&lt;/td&gt;  
 &lt;td&gt;Sky gradient, distant fog, soft glow&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;0.30&lt;/td&gt;  
 &lt;td&gt;Mid-far&lt;/td&gt;  
 &lt;td&gt;Distant props, blurred shapes, horizon&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;0.50&lt;/td&gt;  
 &lt;td&gt;Mid&lt;/td&gt;  
 &lt;td&gt;Subject background, atmospheric texture&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;0.75&lt;/td&gt;  
 &lt;td&gt;Subject&lt;/td&gt;  
 &lt;td&gt;Main figure / image / 3D object&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;1.00&lt;/td&gt;  
 &lt;td&gt;UI text&lt;/td&gt;  
 &lt;td&gt;Title, body copy, eyebrow label&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;1.20&lt;/td&gt;  
 &lt;td&gt;Foreground accents&lt;/td&gt;  
 &lt;td&gt;Floating numbers, edge labels, brackets&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;1.40&lt;/td&gt;  
 &lt;td&gt;Closest overlays&lt;/td&gt;  
 &lt;td&gt;Cursor highlights, badges, scroll cue&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;/tbody&gt;&lt;/table&gt;  
 &lt;h2&gt;2. 3D perspective camera&lt;/h2&gt;  
 &lt;p&gt;Set &lt;code&gt;perspective: 1200px&lt;/code&gt; on the chapter wrapper. Use scroll-driven 3D  
 transforms on at least one layer: &lt;code&gt;rotateX(±4deg max)&lt;/code&gt;, &lt;code&gt;rotateY(±2deg max)&lt;/code&gt;,  
 &lt;code&gt;translateZ(0px → -80px)&lt;/code&gt;. Disable all 3D rotation on touch devices AND  
 when &lt;code&gt;prefers-reduced-motion: reduce&lt;/code&gt;.&lt;/p&gt;  
 &lt;h2&gt;3. Type reveal patterns&lt;/h2&gt;  
 &lt;p&gt;Plain &lt;code&gt;opacity: 0 → 1&lt;/code&gt; on oversized titles is lazy. Use one of:  
 word stagger, letter stagger, mask reveal (&lt;code&gt;clip-path: inset&lt;/code&gt;), vertical mask,  
 scrub letter-spacing. Combine with &lt;code&gt;translateY()&lt;/code&gt; and &lt;code&gt;opacity&lt;/code&gt;.&lt;/p&gt;  
 &lt;h2&gt;4. Smooth scrolling — mandatory in production&lt;/h2&gt;  
 &lt;ul&gt;  
 &lt;li&gt;&lt;strong&gt;Mode A:&lt;/strong&gt; &lt;code&gt;requestAnimationFrame&lt;/code&gt;-throttled scroll handlers (not raw  
 &lt;code&gt;scroll&lt;/code&gt; events). No packages — dependency-free by design.&lt;/li&gt;  
 &lt;li&gt;&lt;strong&gt;Mode B:&lt;/strong&gt; Lenis (&lt;code&gt;lenis&lt;/code&gt; npm — NOT &lt;code&gt;@studio-freight/lenis&lt;/code&gt;) OR GSAP  
 &lt;code&gt;ScrollSmoother&lt;/code&gt; (preferred when GSAP is already in the build). Forward  
 Lenis RAF tick to &lt;code&gt;ScrollTrigger.update&lt;/code&gt; if using both.&lt;/li&gt;  
 &lt;/ul&gt;  
 &lt;h2&gt;5. GSAP is now free — use the premium plugins in Mode B&lt;/h2&gt;  
 &lt;p&gt;As of the Webflow acquisition (2025), GSAP is 100% free including every  
 former Club plugin. In Mode B, prefer:&lt;/p&gt;  
 &lt;table&gt;  
 &lt;thead&gt;  
 &lt;tr&gt;  
 &lt;th&gt;Want&lt;/th&gt;  
 &lt;th&gt;Use the free plugin&lt;/th&gt;  
 &lt;th&gt;Instead of&lt;/th&gt;  
 &lt;/tr&gt;  
 &lt;/thead&gt;  
 &lt;tbody&gt;&lt;tr&gt;  
 &lt;td&gt;Per-word/per-char reveals&lt;/td&gt;  
 &lt;td&gt;&lt;strong&gt;SplitText&lt;/strong&gt; (&lt;code&gt;gsap/SplitText&lt;/code&gt;)&lt;/td&gt;  
 &lt;td&gt;Manual word &lt;code&gt;&lt;span&gt;&lt;/code&gt; wrapping&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;Pinned chapters + scroll-scrub&lt;/td&gt;  
 &lt;td&gt;&lt;strong&gt;ScrollTrigger&lt;/strong&gt; (&lt;code&gt;gsap/ScrollTrigger&lt;/code&gt;)&lt;/td&gt;  
 &lt;td&gt;Custom IntersectionObserver pinning&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;Smooth scroll&lt;/td&gt;  
 &lt;td&gt;&lt;strong&gt;ScrollSmoother&lt;/strong&gt; (&lt;code&gt;gsap/ScrollSmoother&lt;/code&gt;)&lt;/td&gt;  
 &lt;td&gt;Lenis + RAF forwarding&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;tr&gt;  
 &lt;td&gt;Layout transitions&lt;/td&gt;  
 &lt;td&gt;&lt;strong&gt;Flip&lt;/strong&gt; (&lt;code&gt;gsap/Flip&lt;/code&gt;)&lt;/td&gt;  
 &lt;td&gt;Manual FLIP math&lt;/td&gt;  
 &lt;/tr&gt;  
 &lt;/tbody&gt;&lt;/table&gt;  
 &lt;p&gt;Register once: &lt;code&gt;gsap.registerPlugin(ScrollTrigger, SplitText, ScrollSmoother)&lt;/code&gt;.&lt;/p&gt;  
 &lt;h2&gt;6. Mobile-responsive — mandatory&lt;/h2&gt;  
 &lt;ul&gt;  
 &lt;li&gt;&lt;code&gt;&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1, viewport-fit=cover&quot;&gt;&lt;/code&gt;&lt;/li&gt;  
 &lt;li&gt;Typography in &lt;code&gt;clamp(min, fluid, max)&lt;/code&gt; — never fixed &lt;code&gt;px&lt;/code&gt; for &lt;code&gt;font-size&lt;/code&gt;&lt;/li&gt;  
 &lt;li&gt;Disable pinning below 768px, but keep motion scroll-coupled and touch-safe:  
 lerped image parallax (one transform-only mover per section) + scroll-linked  
 entrance reveals (transform + opacity). JS-driven, NOT CSS &lt;code&gt;animation-timeline&lt;/code&gt;  
 (iOS Safari reports support but doesn&#39;t run it). See &lt;code&gt;references/mobile-motion.md&lt;/code&gt;.&lt;/li&gt;  
 &lt;li&gt;&lt;code&gt;env(safe-area-inset-\*)&lt;/code&gt; padding on fixed nav / overlays&lt;/li&gt;  
 &lt;li&gt;Tap targets ≥ 44px square&lt;/li&gt;  
 &lt;li&gt;Mobile-first: design at 375px viewport FIRST, then scale up&lt;/li&gt;  
 &lt;/ul&gt;  
 &lt;h2&gt;7. Loading sequence&lt;/h2&gt;  
 &lt;ul&gt;  
 &lt;li&gt;Preload critical backgrounds with &lt;code&gt;&lt;link rel=&quot;preload&quot; as=&quot;image&quot;&gt;&lt;/code&gt;&lt;/li&gt;  
 &lt;li&gt;Show poster / blurred LQIP placeholder during decode&lt;/li&gt;  
 &lt;li&gt;First paint readable within ~1.5s on simulated 4G&lt;/li&gt;  
 &lt;li&gt;In Next.js, &lt;code&gt;&lt;Image&gt;&lt;/code&gt; with &lt;code&gt;priority&lt;/code&gt; on above-the-fold imagery&lt;/li&gt;  
 &lt;/ul&gt;  
 &lt;h2&gt;8. Performance — compositor-only paths, designed for 60fps (benchmark your targets)&lt;/h2&gt;  
 &lt;ul&gt;  
 &lt;li&gt;Only &lt;code&gt;transform&lt;/code&gt; and &lt;code&gt;opacity&lt;/code&gt; mutate per scroll frame&lt;/li&gt;  
 &lt;li&gt;&lt;code&gt;will-change: transform&lt;/code&gt; on animated layers ONLY (never globally)&lt;/li&gt;  
 &lt;li&gt;&lt;code&gt;translate3d(0,0,0)&lt;/code&gt; to force GPU compositing where needed&lt;/li&gt;  
 &lt;li&gt;Cache &lt;code&gt;getBoundingClientRect()&lt;/code&gt; once on init + resize, never per frame&lt;/li&gt;  
 &lt;li&gt;No layout reads in scroll handlers&lt;/li&gt;  
 &lt;li&gt;Chrome DevTools Performance flame chart = all green (composite only)&lt;/li&gt;  
 &lt;li&gt;Lighthouse Performance ≥ 90&lt;/li&gt;  
 &lt;/ul&gt;  
 &lt;h2&gt;9. Component rules&lt;/h2&gt;  
 &lt;ul&gt;  
 &lt;li&gt;Every full-screen chapter: &lt;code&gt;id&lt;/code&gt; + single &lt;code&gt;&lt;section&gt;&lt;/code&gt; wrapper + &lt;code&gt;eyebrow&lt;/code&gt;,  
 &lt;code&gt;title&lt;/code&gt;, &lt;code&gt;summary&lt;/code&gt;, &lt;code&gt;features&lt;/code&gt;, &lt;code&gt;asset&lt;/code&gt;, &lt;code&gt;accent&lt;/code&gt;&lt;/li&gt;  
 &lt;li&gt;All text overlays = &lt;strong&gt;selectable HTML&lt;/strong&gt;, never baked into images&lt;/li&gt;  
 &lt;li&gt;&lt;code&gt;aria-label&lt;/code&gt; on visual navigation controls&lt;/li&gt;  
 &lt;li&gt;Avoid scroll hijacking — pin per chapter, not the whole page&lt;/li&gt;  
 &lt;li&gt;On mobile: collapse pinned scenes into stacked vertical cards&lt;/li&gt;  
 &lt;li&gt;Prefer 16:9 backgrounds, 4:5 foreground figures&lt;/li&gt;  
 &lt;/ul&gt;



&lt;h2&gt;Core Principles&lt;/h2&gt;  
 &lt;ol&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Reduced motion first.&lt;/strong&gt; Every effect degrades gracefully when  
 &lt;code&gt;prefers-reduced-motion: reduce&lt;/code&gt; is set. Pin hooks skip GSAP, layers snap  
 to stable mid-keyframe, tilt returns zeros.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;iOS WebKit video safety.&lt;/strong&gt; Safari freezes &lt;code&gt;&lt;video&gt;&lt;/code&gt; frames inside a  
 &lt;code&gt;transform-style: preserve-3d&lt;/code&gt; ancestor that updates. Detect touch and  
 bypass the 3D wrapper for video.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Animate transform + opacity only&lt;/strong&gt; in hot scroll paths.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Pin chapters, not the page.&lt;/strong&gt; Each cinematic block opts into pinning.  
 The rest of the document scrolls normally.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;li&gt;&lt;p&gt;&lt;strong&gt;Deterministic motion.&lt;/strong&gt; Any procedural value must be stable across  
 re-renders so SSR and resize don&#39;t shift layout.&lt;/p&gt;  
 &lt;/li&gt;  
 &lt;/ol&gt;



&lt;h2&gt;Quality Bar&lt;/h2&gt;  
 &lt;p&gt;Output must compete with:&lt;/p&gt;  
 &lt;ul&gt;  
 &lt;li&gt;&lt;strong&gt;Shopify Editions&lt;/strong&gt; (Winter/Summer drops) — multi-chapter release worlds&lt;/li&gt;  
 &lt;li&gt;&lt;strong&gt;Apple product launch pages&lt;/strong&gt; — pinned cinematic sequences&lt;/li&gt;  
 &lt;li&gt;&lt;strong&gt;Linear release notes&lt;/strong&gt; — editorial typography + restraint&lt;/li&gt;  
 &lt;li&gt;&lt;strong&gt;Stripe Sessions&lt;/strong&gt; — depth-of-field + atmospheric morphing&lt;/li&gt;  
 &lt;li&gt;&lt;strong&gt;Awwwards SOTD nominees&lt;/strong&gt; in Editorial + Product Launch categories&lt;/li&gt;  
 &lt;/ul&gt;  
 &lt;p&gt;&quot;Looks like a Bootstrap landing page&quot; or &quot;looks like a Tailwind UI template&quot;  
 = failure. Output should look studio-crafted. If constraints prevent this tier,  
 &lt;strong&gt;say so explicitly&lt;/strong&gt; and deliver the highest-quality fallback the constraints  
 allow — never ship mid-tier silently.&lt;/p&gt;



&lt;h2&gt;fal.ai Integration (Mode B)&lt;/h2&gt;  
 &lt;p&gt;This skill includes NO keys or credits. Every user creates their own fal.ai  
 account. The page works &lt;strong&gt;without fal.ai&lt;/strong&gt; — &lt;code&gt;ChapterDemoVisual&lt;/code&gt; renders  
 stunning CSS-only chapter visuals at $0.&lt;/p&gt;  
 &lt;h2&gt;Setup&lt;/h2&gt;  
 &lt;ol&gt;  
 &lt;li&gt;Walk new users through &lt;code&gt;examples/GETTING\_STARTED.md&lt;/code&gt;&lt;/li&gt;  
 &lt;li&gt;Sign up at fal.ai, create API key, add &lt;code&gt;FAL\_KEY&lt;/code&gt; to &lt;code&gt;.env.local&lt;/code&gt;&lt;/li&gt;  
 &lt;li&gt;Restart dev server after adding env vars&lt;/li&gt;  
 &lt;li&gt;Never put &lt;code&gt;FAL\_KEY&lt;/code&gt; in client components or committed &lt;code&gt;.env&lt;/code&gt; files&lt;/li&gt;  
 &lt;li&gt;Mention they can skip fal.ai and use static images&lt;/li&gt;  
 &lt;/ol&gt;  
 &lt;h2&gt;Technical rules&lt;/h2&gt;  
 &lt;ol&gt;  
 &lt;li&gt;Never expose &lt;code&gt;FAL\_KEY&lt;/code&gt; in browser code&lt;/li&gt;  
 &lt;li&gt;Use &lt;code&gt;@fal-ai/server-proxy/nextjs&lt;/code&gt; — export &lt;code&gt;GET&lt;/code&gt;, &lt;code&gt;POST&lt;/code&gt;, &lt;strong&gt;and &lt;code&gt;PUT&lt;/code&gt;&lt;/strong&gt;&lt;/li&gt;  
 &lt;li&gt;Always go through &lt;code&gt;lib/fal-models.ts&lt;/code&gt; — never inline &lt;code&gt;image\_size&lt;/code&gt; or &lt;code&gt;negative\_prompt&lt;/code&gt;&lt;/li&gt;  
 &lt;li&gt;Use server routes for production asset generation&lt;/li&gt;  
 &lt;li&gt;Use &lt;code&gt;fal.subscribe&lt;/code&gt; for ≤5 chapters; &lt;code&gt;fal.queue.submit&lt;/code&gt; + webhook for &gt;5&lt;/li&gt;  
 &lt;li&gt;Set &lt;code&gt;allowedEndpoints&lt;/code&gt; on the proxy + &lt;code&gt;allowUnauthorizedRequests: false&lt;/code&gt;&lt;/li&gt;  
 &lt;li&gt;Model IDs configurable via environment variables&lt;/li&gt;  
 &lt;/ol&gt;  
 &lt;p&gt;See &lt;code&gt;MODELS.md&lt;/code&gt; for the full model menu, cost table, and per-model parameter  
 differences. Default: &lt;code&gt;fal-ai/flux-2-pro&lt;/code&gt; (~$0.06/img, ~4s).&lt;/p&gt;



&lt;h2&gt;Quick-Start (For Expert Users)&lt;/h2&gt;  
 &lt;p&gt;Experienced users can skip the full pipeline by providing a complete brief  
 upfront. The agent runs all 5 phases internally and delivers the final output  
 in one shot. Use these prompts as templates.&lt;/p&gt;  
 &lt;h2&gt;Quick-Start A: Single scroll section (Mode A)&lt;/h2&gt;  
 &lt;blockquote&gt;  
 &lt;p&gt;Build a cinematic-scroll pinned hero chapter for my \[brand/product\].  
 Visual system: \[Symmetric Monument / Clinical Noir / Storybook Geometry / Temporal Monument / Atmospheric Sublime / Warm Scrapbook / Naturalistic Drift\].  
 \[N\] chapters, \[color palette\], \[typography feel\].  
 Pin duration \[X\]vh. Output: single self-contained HTML file.&lt;/p&gt;  
 &lt;/blockquote&gt;  
 &lt;p&gt;The agent internally runs Phase 1-3 assumptions, builds (Phase 4), and  
 delivers a performance-annotated file with inline polish notes (Phase 5  
 lightweight).&lt;/p&gt;  
 &lt;h2&gt;Quick-Start B: Full release site (Mode B)&lt;/h2&gt;  
 &lt;blockquote&gt;  
 &lt;p&gt;Scaffold a complete Shopify-Editions-tier cinematic release page for  
 \[product\]. Visual system: \[name\]. \[N\] chapters. Demo mode first — no fal.ai  
 key required. Copy templates verbatim from &lt;code&gt;templates/nextjs/&lt;/code&gt;.&lt;/p&gt;  
 &lt;/blockquote&gt;  
 &lt;p&gt;The agent runs the full pipeline internally: cinematic audit (assumed),  
 storyboard (assumed), technical spec (assumed), build (Mode B), and delivers  
 with a lightweight polish checklist.&lt;/p&gt;  
 &lt;h2&gt;Quick-Start C: Existing project upgrade&lt;/h2&gt;  
 &lt;blockquote&gt;  
 &lt;p&gt;Add a cinematic-scroll pinned chapter to my existing \[React/Next.js\] project.  
 Use choreo-3d primitives. Pattern: \[Pinned Hero/Chaptered Release/etc from  
 scroll-patterns.md\]. Pin \[X\]vh, \[N\] layers. Match my existing \[palette/typography\].&lt;/p&gt;  
 &lt;/blockquote&gt;  
 &lt;p&gt;The agent runs Phase 2-4 only, integrating with the existing codebase.&lt;/p&gt;



&lt;h2&gt;Example Prompts — Full Pipeline (5-Phase)&lt;/h2&gt;  
 &lt;p&gt;These examples show how the complete gated pipeline works end-to-end.&lt;/p&gt;  
 &lt;h2&gt;Example 1: Fintech Trust Page (Clinical Noir system)&lt;/h2&gt;  
 &lt;blockquote&gt;  
 &lt;p&gt;&lt;strong&gt;Phase 1:&lt;/strong&gt; We&#39;re a fintech app that needs to communicate trust and  
 precision. Our brand is clinical, data-driven, restrained. Audience:  
 decision-makers on desktop. Build a cinematic-scroll experience using  
 the Clinical Noir visual system from &lt;code&gt;references/film-archetypes.md&lt;/code&gt;  
 Section 2. Output: &lt;code&gt;cinematic-audit.md&lt;/code&gt;.&lt;/p&gt;  
 &lt;p&gt;&lt;strong&gt;Phase 2:&lt;/strong&gt; Based on the audit, design a 6-chapter motion storyboard.  
 Chapters: Authority, Problem, Solution, Product, Proof, CTA. Use  
 Chaptered Release pattern for chapters 1 and 5, Sticky Narrative for  
 chapter 2, Data Story for chapter 4. Reference &lt;code&gt;references/scroll-patterns.md&lt;/code&gt;  
 Sections 5, 4, and 9. Output: &lt;code&gt;motion-storyboard.md&lt;/code&gt;.&lt;/p&gt;  
 &lt;p&gt;&lt;strong&gt;Phase 3:&lt;/strong&gt; Produce the technical spec. Use GSAP ScrollTrigger + Lenis +  
 choreo-3d. Scrub 0.5, pin spacing true. Reference &lt;code&gt;performance-budget.md&lt;/code&gt;  
 Sections 1, 2, and 7 for all constraints. Output: &lt;code&gt;technical-spec.md&lt;/code&gt;.&lt;/p&gt;  
 &lt;p&gt;&lt;strong&gt;Phase 4:&lt;/strong&gt; Build Mode B — Next.js project from templates. 6 chapters,  
 Clinical Noir palette (ash grey, steel blue, sickly yellow-green, black).  
 CSS-only demo mode for first run. Output: project directory.&lt;/p&gt;  
 &lt;p&gt;&lt;strong&gt;Phase 5:&lt;/strong&gt; Run the full polish checklist. Verify all 11 pre-launch  
 checks from &lt;code&gt;performance-budget.md&lt;/code&gt; Section 6. Confirm no banned patterns  
 from &lt;code&gt;taste-guardrails.md&lt;/code&gt; Section 1 survived. Output: &lt;code&gt;polish-report.md&lt;/code&gt;.&lt;/p&gt;  
 &lt;/blockquote&gt;  
 &lt;h2&gt;Example 2: Wellness Brand (Warm Scrapbook + Naturalistic Drift)&lt;/h2&gt;  
 &lt;blockquote&gt;  
 &lt;p&gt;&lt;strong&gt;Phase 1:&lt;/strong&gt; We&#39;re a longevity science company. We want warmth,  
 approachability, and land-connection. Primary system: Warm Scrapbook  
 (&lt;code&gt;references/film-archetypes.md&lt;/code&gt; Section 6). Accent system: Naturalistic Drift  
 (Section 7) for the landscape chapters. Output: &lt;code&gt;cinematic-audit.md&lt;/code&gt;.&lt;/p&gt;  
 &lt;p&gt;&lt;strong&gt;Phase 2:&lt;/strong&gt; Design a 5-chapter storyboard. Chapters: Welcome, Science,  
 Nature, Product, Community. Use Pinned Hero for ch1, Editorial Longread  
 for ch2, Parallax Gallery for ch3, Chaptered Release for ch4, Landing  
 Sequence for ch5. Reference &lt;code&gt;references/scroll-patterns.md&lt;/code&gt; Sections 1,  
 8, 6, 5, and 10. Output: &lt;code&gt;motion-storyboard.md&lt;/code&gt;.&lt;/p&gt;  
 &lt;p&gt;&lt;strong&gt;Phase 3:&lt;/strong&gt; Technical spec with warm palette progression (rose → peach →  
 amber → sage → cream). GSAP + Lenis. Mobile (≤768px): keep touch-safe  
 scroll-coupled motion — lerped image parallax + scroll-linked entrance reveals  
 (no pinning, no 3D tilt); see references/mobile-motion.md. Reference  
 &lt;code&gt;performance-budget.md&lt;/code&gt; Section 3 (Mobile Degradation Matrix). Output: &lt;code&gt;technical-spec.md&lt;/code&gt;.&lt;/p&gt;  
 &lt;p&gt;&lt;strong&gt;Phase 4:&lt;/strong&gt; Build Mode B. 5 chapters, organic editorial aesthetic.  
 fal.ai for chapter images: &lt;code&gt;historicalLayer: &#39;atelier&#39;&lt;/code&gt;, painterly botanical  
 subjects. Demo mode for first run. Output: project directory.&lt;/p&gt;  
 &lt;p&gt;&lt;strong&gt;Phase 5:&lt;/strong&gt; Polish. Verify emotional arc matches Phase 1: welcome (warmth)  
 → science (curiosity) → nature (awe) → product (trust) → community  
 (belonging). Run 11-point checklist. Output: &lt;code&gt;polish-report.md&lt;/code&gt;.&lt;/p&gt;  
 &lt;/blockquote&gt;  
 &lt;h2&gt;Example 3: Sci-Fi Game Reveal (Temporal Monument, Mode A)&lt;/h2&gt;  
 &lt;blockquote&gt;  
 &lt;p&gt;&lt;strong&gt;Phase 1:&lt;/strong&gt; We&#39;re launching a sci-fi game expansion. We want cosmic scale,  
 event-level drama, layered realities. Visual system: Temporal Monument  
 (&lt;code&gt;references/film-archetypes.md&lt;/code&gt; Section 4). Audience: gamers, 70% desktop.  
 Output: &lt;code&gt;cinematic-audit.md&lt;/code&gt;.&lt;/p&gt;  
 &lt;p&gt;&lt;strong&gt;Phase 2:&lt;/strong&gt; Design a 7-chapter storyboard. Chapters: Teaser, World, Lore,  
 Characters, Gameplay, Release, CTA. Use Pinned Hero for ch1, Chaptered  
 Release for ch2 and ch3, 3D Product Orbit for ch5, Landing Sequence for  
 ch7. Reference &lt;code&gt;references/scroll-patterns.md&lt;/code&gt; Sections 1, 5, 5, 7, and 10.  
 Max 7 layers in ch2 (the deepest chapter). Output: &lt;code&gt;motion-storyboard.md&lt;/code&gt;.&lt;/p&gt;  
 &lt;p&gt;&lt;strong&gt;Phase 3:&lt;/strong&gt; Technical spec. Mode A output (single HTML). rAF-throttled  
 scroll, no packages. 5-7 depth layers per chapter. 3D camera:  
 &lt;code&gt;rotateX(±4deg)&lt;/code&gt;, &lt;code&gt;translateZ(0 → -80px)&lt;/code&gt;. Performance budget: all  
 &lt;code&gt;transform&lt;/code&gt; + &lt;code&gt;opacity&lt;/code&gt; only, &lt;code&gt;will-change&lt;/code&gt; on 3 elements max. Reference  
 &lt;code&gt;performance-budget.md&lt;/code&gt; Sections 1 and 2. Output: &lt;code&gt;technical-spec.md&lt;/code&gt;.&lt;/p&gt;  
 &lt;p&gt;&lt;strong&gt;Phase 4:&lt;/strong&gt; Build Mode A. Single self-contained HTML. Near-black backgrounds,  
 deep teal and crimson accents, heavy grain overlay. 7 chapters, each pinned  
 200-300vh. Title reveals: mask wipe, word stagger, letter-spacing scrub,  
 scale-down entrance — varied per chapter per &lt;code&gt;taste-guardrails.md&lt;/code&gt; Section 4.5.  
 Reduced-motion fallback: static compositions. Progress HUD included.  
 Output: &lt;code&gt;index.html&lt;/code&gt;.&lt;/p&gt;  
 &lt;p&gt;&lt;strong&gt;Phase 5:&lt;/strong&gt; Polish the HTML. Verify: compositor-only scroll paths, &lt; 5%  
 dropped frames on 10s recording, reduced-motion shows all content, mobile  
 &lt;768px stacks with no pinning. No banned patterns from &lt;code&gt;taste-guardrails.md&lt;/code&gt;  
 Section 1. Output: &lt;code&gt;polish-report.md&lt;/code&gt;.&lt;/p&gt;  
 &lt;/blockquote&gt;



&lt;h2&gt;What&#39;s in the Box&lt;/h2&gt;  
 &lt;pre&gt;&lt;code&gt;cinematic-scroll-skill/  
 ├── SKILL.md # Agent contract (5-phase pipeline) \[this file\]  
 ├── taste-guardrails.md # Quality enforcement system (11 banned patterns,  
 │ # cinematic vocabulary, pacing rules,  
 │ # anti-convergence principles)  
 ├── design.md # Design contract (token roles, motion, banned patterns)  
 ├── tokens/ # DTCG design tokens (core / motion / semantic) + build/  
 ├── themes/ # 11 per-visual-system theme overlays  
 ├── manifest.json # Skill manifest (v2.3.5)  
 ├── MODELS.md # fal.ai model menu and cost table  
 ├── README.md # Human-facing overview  
 ├── LICENSE # MIT  
 ├── references/  
 │ ├── scroll-patterns.md # 12 proven scroll patterns (Sections 1-12),  
 │ │ # each with use case, depth config, transition,  
 │ │ # mobile strategy, performance budget  
 │ ├── film-archetypes.md # 11 visual systems (Sections 1-11):  
 │ │ # Symmetric Monument, Clinical Noir,  
 │ │ # Storybook Geometry, Temporal Monument,  
 │ │ # Atmospheric Sublime, Warm Scrapbook,  
 │ │ # Naturalistic Drift, Brutalist Kinetic,  
 │ │ # Liquid Chrome, Botanical Editorial,  
 │ │ # Data Cinematic — each → a themes/\*.theme.json  
 │ ├── performance-budget.md # 60fps production contract:  
 │ │ # frame budget, permitted/forbidden properties,  
 │ │ # will-change strategy, mobile degradation matrix  
 │ │ # (4 tiers), benchmark targets, asset budgets,  
 │ │ # 11-point pre-launch monitoring checklist,  
 │ │ # GSAP-specific rules, failure modes  
 │ └── mobile-motion.md # Touch-safe mobile motion recipe:  
 │ # scroll-coupled lerped parallax + entrance  
 │ # reveals, the iOS Safari animation-timeline  
 │ # gotcha, vanilla (Mode A) + framer (Mode B)  
 │ # sketches, reduced-motion gating  
 ├── examples/  
 │ ├── PROMPTS.md # 20+ trigger prompts (Mode A and B)  
 │ ├── GETTING\_STARTED.md # fal.ai setup walkthrough  
 │ └── KNOWN\_ISSUES.md # QA log of known issues and fixes  
 ├── templates/nextjs/ # Next.js App Router template:  
 │ # package.json, ChapterScene.tsx (7-layer scene),  
 │ # ChapterDemoVisual.tsx (CSS-only fallback),  
 │ # EditionsPage.tsx (orchestrator),  
 │ # fal proxy routes, fal client/lib/scripts,  
 │ # SmoothScrollProvider, use-device hooks,  
 │ # globals.css with fluid type scale,  
 │ # tailwind.config.ts, tsconfig.json  
 └── assets/ # Shared static assets  
 &lt;/code&gt;&lt;/pre&gt;



&lt;h2&gt;Legal and Originality Rules&lt;/h2&gt;  
 &lt;ul&gt;  
 &lt;li&gt;Do not reproduce the Shopify logo, screenshots, copy, proprietary  
 illustrations, exact section design, or exact visual scene.&lt;/li&gt;  
 &lt;li&gt;Do not generate images that imitate a living artist by name.&lt;/li&gt;  
 &lt;li&gt;Do not bake readable UI copy into generated images unless the user  
 specifically asks and the target model supports reliable text.&lt;/li&gt;  
 &lt;li&gt;Build UI text, labels, nav, cards, numbers, and feature lists as HTML/CSS  
 so they remain editable, accessible, and crisp.&lt;/li&gt;  
 &lt;li&gt;Use references only as art-direction benchmarks — chaptered release  
 storytelling, not clone targets.&lt;/li&gt;  
 &lt;li&gt;If the user asks to clone a proprietary site exactly, respond by making  
 an original system that uses the reference as inspiration.&lt;/li&gt;  
 &lt;/ul&gt;



&lt;h2&gt;Anti-Patterns&lt;/h2&gt;  
 &lt;p&gt;Do NOT use this skill for:&lt;/p&gt;  
 &lt;ul&gt;  
 &lt;li&gt;&quot;Build a basic hero + features + pricing landing page.&quot;&lt;/li&gt;  
 &lt;li&gt;&quot;Generate a WordPress theme.&quot;&lt;/li&gt;  
 &lt;li&gt;Ordinary SaaS landing pages, CRUD dashboards, or simple brochure sites  
 — unless the user explicitly asks for a cinematic / editorial treatment.&lt;/li&gt;  
 &lt;li&gt;&quot;Regenerate all templates from scratch without reading bundled files.&quot;&lt;/li&gt;  
 &lt;li&gt;&quot;Give me motion ideas only, no code.&quot; (The skill must output runnable artifacts.)&lt;/li&gt;  
 &lt;/ul&gt;
