PromptsPrompt for Luxury Furniture Site

Luxury Furniture Showroom Website Prompt

A copy-ready prompt to build Nap & Grain, a luxury furniture showroom you walk through in WebGL with Next.js, GSAP and Three.js, then bring it into WordPress with UiChemy.

Luxury Furniture Showroom Site Prompt

This prompt tells your AI coding tool to build "Nap & Grain", a luxury furniture house you walk through room by room. A sunlit living room opens the page, and the cursor is a fingertip that leaves a real trail on live velvet, leather, bouclé and linen. Scrolling takes you through an anatomy of a sofa, a fabric atelier with 24 upholsteries, and showrooms for sofas, chairs and tables, then a side-by-side comparison, a workshop and a booking form. Once the site is built, you can bring it into WordPress with UiChemy.

Prefer to watch first? This video shows a 3D website built with Claude and what it takes to make it work in WordPress.

Claude Fable 5.2 Built This 3D Website. Here's What Nobody Shows You
Video walkthroughClaude Fable 5.2 Built This 3D Website. Here's What Nobody Shows YouWatch a 3D website built with Claude and see what happens when you bring it into WordPress.Watch on YouTube

What You Get

The prompt asks for these parts:

SectionWhat it covers
Hero: The Sun RoomA full-bleed morning interior in WebGL, the headline "Made to be touched. Even on screen.", and velvet that answers the cursor
AnatomyA pinned, scroll-driven film that sinks into the cushion, shows the thread, opens the sofa into 7 layers, stitches it shut and changes its fabric
The AtelierOne sofa in 24 upholsteries, with a loupe, three lights and a split view
The Long RoomSix sofas on plinths, with the camera walking past each one
The Velvet RoomFour chairs on a turning plinth under a spotlight that follows the cursor
The Stone HallFour tables seen from above, then at eye level, with dimension lines
Side by SideA two-piece comparison with a "Will it fit?" room check
The WorkshopStats, a 72-hour process ruler, a press-to-sit cushion test and customer reviews
VisitA 3-step booking form with a swatch box and a confirmation card
Product Pages14 static product pages with baked stills and a live 3D viewer

On top of these, the prompt gives the full brand and product data, the design system, the motion system, the camera keys for the scroll film, the material and lighting rules, and a list of known traps. Every sofa, chair, table, fabric and room is generated in code, and every product photo is baked from the same 3D scenes, so the site ships with zero downloaded models, textures or photos. It also sets the Lighthouse targets, accessibility rules, reduced-motion behavior and the build order.

This is one of the longest prompts in the library and it builds a full Next.js project, not a single page. Give your AI tool plenty of time, and expect it to run npm run build and npm run bake before it is done.

How to Use It

Copy the prompt

Click Copy Prompt at the top-right of the prompt below.

Run it in your AI tool

Paste it into an AI coding tool that can create files and run commands, such as Antigravity, Claude, Cursor, or Codex. Let it build the site, run the image bake, and preview the result.

Bring it into WordPress

Connect your AI tool to your site over UiChemy MCP, then send the Import in WordPress prompt below. See Set Up AI to WordPress for the connection steps.

Example prompt: After the site is built, ask: "Connect to my WordPress over the UiChemy MCP and, using UiChemy Composer, move the Nap & Grain website in: recreate it section by section; put the header and footer into the Theme Builder; keep colors, typography and spacing as global styles; import native and editable in Elementor, Gutenberg, or Bricks. When done, list the pages you created."

The Prompt

You are a senior creative developer, real-time 3D / material artist and luxury interior art director in one. Build the site below exactly as specified; every number, colour, word and timing here is the real one. Where something is not specified, choose what best serves the concept and the design system, never a generic default. It must feel like walking through a private luxury furniture showroom at golden hour, not a generic e-commerce store or a furniture template. Do not use stock photos, external image URLs or downloaded 3D models/textures; do not replace any WebGL scene with a video; do not add sections that are not listed; do not build product grids with "Add to cart" buttons. Every effect must serve the story; reading and navigation come first. Section 11 lists the traps this build is known to hit: read it before writing any code.
 
# NAP & GRAIN: SOFAS MADE TO BE TOUCHED
 
A sunlit limewash room in the morning fills the whole first screen. Window light falls in long mullion stripes across an ecru velvet curved sofa, a cognac leather lounge chair and a round travertine table. The visitor moves the cursor over the seat and the velvet answers: the pile leans, a lighter trail appears where the "finger" passed, and slowly fades. "Made to be touched. Even on screen." Scroll, and the same room returns at dusk, seen from the other side; as the camera sinks into the cushion the morning comes back and the screen is pure fabric, thread by thread; the sofa opens into its layers (oak frame, hand-tied springs, foam, feather wrap, cloth), closes again while a brass thread stitches every seam, and the cloth changes skin: velvet, leather, bouclé, linen. Then the page is the showroom itself: the Atelier (one sofa, 24 upholsteries, a loupe, three lights, a split view), the Long Room of six sofas, the Velvet Room of four chairs on a turning plinth, the Stone Hall of four tables seen from above then eye level, a side-by-side comparison with a room-fit check, the Workshop (press-to-sit cushion test, makers, reviews) and the Visit room (book a private viewing, collect swatches). A small floor plan in the corner always shows which room you are standing in.
 
Signature constraint: zero downloaded models, textures or photos. Every sofa, chair, table, fibre, grain and room is generated in code from `data/site.ts`, and every "product photograph" on the site is baked from those same 3D scenes at build time, so stills and live 3D always match.
 
Second signature: the cursor is a fingertip. On every live fabric it leaves the trail that real material would leave (velvet lightens, suede darkens, bouclé dents, linen creases, leather catches a moving highlight). The trail must be clearly visible at a glance, not a subtle hint.
 
=== 1. STACK AND STRUCTURE
 
- Next.js 16 (App Router, static generation) · React 19.2 · TypeScript 5.9 strict · Tailwind CSS v4 · gsap 3.13+ (ScrollTrigger + SplitText) · lenis 1.3 · three 0.180 · @react-three/fiber 9 · @react-three/drei 10 · @react-three/postprocessing 3 + postprocessing + n8ao (high tier only) · three-custom-shader-material 6 · motion 12 (`motion/react`, LazyMotion with the features loaded by dynamic import) · dev: playwright + sharp 0.34 (bake script only) + lighthouse.
- If a pinned version is unavailable, use the latest stable release of the same major version.
- Package `nap-and-grain`. Scripts: `dev`, `build`, `start`, `lint`, `typecheck` (tsc --noEmit), `bake` (node scripts/bake.mjs), `lh` (node scripts/lh.mjs: Lighthouse mobile + desktop, median of 3, for `/` and `/pieces/solenne`).
- `next.config.ts`: `reactStrictMode`, `compress`, `poweredByHeader: false`, `devIndicators: false` (the dev badge must never appear in a bake), immutable `Cache-Control` on `/baked/*` in production only. Do not add `experimental.viewTransition` (Next 16.4 rejects the key; `<ViewTransition>` from `react` works without it, typed through `/// <reference types="react/experimental" />`). Do not set a custom header on `/_next/static` (Next already serves it immutable and warns if you do).
- File tree:
- `app/layout.tsx` fonts, metadata, skip link, loader bar, Nav, main, Footer, FloorPlan, StageLoader, Cursor, Motion. `<html lang="en-US" suppressHydrationWarning>` and `<body suppressHydrationWarning>` (browser extensions write attributes there before hydration).
- `app/page.tsx` home (all sections, Server Components, no `<Suspense>` around the rooms)
- `app/pieces/[slug]/page.tsx` product detail page, `generateStaticParams` from data (14 pages)
- `app/bake/page.tsx` bake-only route (noindex, renders one view at one angle, deterministic)
- `app/sitemap.ts` · `app/robots.ts` · `app/opengraph-image.tsx` · `app/icon.svg` (a missing favicon is a console error)
- `components/sections/` Hero, Anatomy, Atelier, LongRoom, VelvetRoom, StoneHall, Compare, Workshop, Visit (+ their client leaves)
- `components/chrome/` Nav, NavState, Menu, FloorPlan, Plan, Footer, SwatchBox, Motion
- `components/ui/` Button, Eyebrow, FloatCard, Swatch, Hotspot, Hem, Cursor, Leaks, Baked, Still, PieceCard, PieceLink
- `components/three/` StageCanvas (the single shared canvas), StageLoader, ViewBox, post.ts (shared composer), views/, furniture/ (prims, kits: SofaKit, ChairKit, TableKit, piece object), materials/ (UberFabric + hard materials), textures/ (GPU texture baker), room/ (SunRoom), NapBrush
- `lib/` lenis.ts, gsap.ts (lazy), tier.ts, seed.ts (mulberry32), format.ts, store.ts (useSyncExternalStore), stage.ts (view registry)
- `data/site.ts` single source of truth (everything in section 2) · `data/baked.json` (sizes + 16 px blur placeholders, written by the bake)
- `public/baked/` AVIF + WebP stills produced by `npm run bake` and committed
- `scripts/bake.mjs` · `scripts/lh.mjs`
- Fonts (next/font/google, latin, display swap): Display `Bodoni Moda` variable (opsz + wght, normal + italic) → `--font-display`, preloaded · Body `Hanken Grotesk` variable → `--font-body`, preloaded · Data voice `DM Mono` 400 → `--font-mono`, preload false.
 
=== 2. BRAND AND CONTENT (single source of truth: data/site.ts)
 
Brand
- Name: Nap & Grain. Wordmark: "Nap" + italic cognac "&" + "Grain", Bodoni Moda 500, tracking -0.02em.
- Descriptor: Upholstery House · Charleston · Est. 2010.
- Tagline: Sofas made to be touched.
- Showroom: The Long Room, 17 Weaver's Row, French Quarter, Charleston SC 29401 (fictional).
- Phone +1 (843) 555-0119 · WhatsApp +1 (843) 555-0142 · visit@napandgrain.example · Hours Tue-Sun 11:00-20:00 · Private viewings 20:30 by appointment · Closed Mondays.
- Currency: USD, locale en-US, formatted with `Intl.NumberFormat` ("$6,400"). One `currency` and one `locale` field so they can be switched later.
- Socials (placeholder hrefs "#"): Instagram, Pinterest, YouTube.
- Title "Nap & Grain · Luxury sofas, chairs and tables, hand-built in Charleston". Description: "Hand-built sofas, chairs and tables from Charleston. 214 fabrics and leathers, a 25-year frame guarantee, and a showroom you can walk through on screen."
 
Nav: Collections (#long-room) · Materials (#atelier) · The Workshop (#workshop) · Visit (#visit) · right: "Swatch box (n)" + primary button "Book a viewing".
 
Hero record
- Eyebrow: "Room 01 · The Sun Room"
- H1 line 1: "Made to be touched." line 2 (italic, cognac): "Even on screen."
- Lede: "Hand-built in Charleston from kiln-dried oak, hand-tied springs and 214 fabrics and leathers. Brush the velvet. Then come and sit in it."
- CTAs: primary "Explore the collections" (#long-room) · ghost "Book a private viewing" (#visit).
- Hint chip (desktop, appears after 3D is live): "Move across the seat. The velvet remembers."
- Caption card: "In this room" / "Solenne, in ecru velvet" / "286 × 108 × 74 cm · from $6,400" / "View the piece →".
- Scene set: Solenne curved sofa in Ecru velvet · Bask lounge chair in Cognac leather · Strata coffee table in Travertine · Dot side table in Arabescato marble.
 
Stats: 16 years · 38 upholsterers · 72 hours of handwork per sofa · 214 fabrics and leathers · 25-year frame guarantee · 9-week make time.
 
Pieces (14). Fields: slug · name · collection · type · dims W×D×H cm · seat height cm · seat depth cm · sink (1 firm → 5 deep) · price from · default material id · allowed families · build recipe (text + the numbers the kits read) · 3 hotspots (title, one line, anchor point in metres) · specs (frame, fill, legs) · make weeks.
Sofas
1. `solenne` · Solenne · sofas · Curved designer sofa · 286×108×74 · seat 42 · depth 62 · sink 4 · $6,400 · velvet-ecru · all families · recipe: 5 wedge modules on an arc, radius 2.4 m, sweep 70°, low arms that roll into the back, oak plinth recessed 6 cm · hotspots: "Self-piping, 4 mm, matched at every seam" / "60/40 feather-down over a 40 kg/m³ foam core" / "Solid oak plinth, hand-oiled".
2. `cassian` · Cassian L · sofas · Luxury L-shaped sofa · 312×176×78 · seat 44 · depth 64 · sink 3 · $7,400 · leather-cognac · velvet, leather, suede, woven · recipe: 3-seat run + right chaise 176 deep, track arms 18 cm, saddle-stitched cushion borders, bronze blade legs 12 cm.
3. `mareo` · Mareo Sectional · sofas · Modern sectional · 348×246×72 · seat 41 · depth 66 · sink 5 · $9,500 · boucle-fog · bouclé, linen, velvet · recipe: U shape, 3 back cushions + 2 corner, loose pillow-top seats, plinth flush to floor (no legs).
4. `halden` · Halden 3 · sofas · Premium three-seater · 232×98×80 · seat 45 · depth 58 · sink 3 · $4,100 · velvet-moss · all families · recipe: rolled English arms, tight back, single bench seat cushion, turned walnut legs 14 cm.
5. `lin` · Lin · sofas · Minimalist contemporary sofa · 220×92×66 · seat 40 · depth 60 · sink 2 · $3,200 · linen-chalk · linen, bouclé, suede · recipe: 6 cm thin arms, floating base on two brass blade legs, crisp box-edged cushions, no piping.
6. `tessel` · Tessel Modular · sofas · Modular collection · per module 100×100×70 · seat 42 · depth 70 · sink 4 · $1,500 per module, 4-module starter $5,800 · boucle-teddy-sand · bouclé, velvet, linen · recipe: 6 square blocks (4 with backs, 2 ottomans) that slide into 3 layouts: Straight, Corner, Island.
Chairs
7. `orla` · Orla · chairs · Luxury accent chair · 78×74×76 · seat 43 · sink 2 · $1,300 · velvet-oxblood · velvet, bouclé, suede · recipe: lathe-turned shell back that wraps 220°, channel tufting (7 vertical channels), swivel brass disc base.
8. `bask` · Bask Lounge · chairs · Contemporary lounge chair · 86×90×68 · seat 36 · sink 4 · $1,900 · leather-cognac · leather, suede, woven · recipe: low solid-oak sled frame, sling-tilt 12°, two loose leather cushions with contrast stitch.
9. `wren` · Wren Armchair · chairs · Upholstered armchair · 84×88×96 · seat 46 · sink 3 · $1,550 · woven-oat-herringbone · woven, linen, velvet · recipe: soft wings, rolled arms, button-tufted back (9 buttons), walnut legs.
10. `pip` · Pip · chairs · Designer occasional chair · 60×58×78 · seat 45 · sink 1 · $850 · suede-mushroom · suede, velvet, leather · recipe: round drum seat, oval back pad on a single bent-brass rod, three 1.6 cm brass legs.
Tables (no upholstery picker, no price delta)
11. `strata` · Strata · tables · Premium coffee table · Ø110 H32 · $1,800 · travertine · recipe: honed travertine top 4 cm with visible pores, fluted drum plinth (24 flutes).
12. `dot` · Dot · tables · Modern side table · Ø45 H52 · $560 · arabescato · recipe: marble drum with 3 mm shadow-gap top.
13. `ledge` · Ledge · tables · Luxury centre table · 140×80 H36 · $2,500 · walnut burl · recipe: book-matched walnut burl top, 2 cm, clear lacquer; open bronze frame base.
14. `convivio` · Convivio Dining Set · tables · Designer dining table set · table 240×110 H75 (extends to 300 with one leaf), 6 chairs 50×56×80 · $8,400 set · oak + linen-flax chairs · recipe: oval solid-oak top in two halves on two sculpted pedestal legs; chairs with oak frames and wrapped linen seats.
 
Materials: 6 families × 4 colours = 24 swatches. Fields: id · family · name · hex · optional second tone · composition · Martindale rub count or leather grade · price delta · physical params · texture recipe + real feature size · brush behaviour · care line.
1. Velvet (cotton-mohair, 68,000 rubs, +0%): Ecru #E6DCCB · Moss #4F5A3A · Oxblood #5A1E22 · Midnight #1E2433. Params: roughness 0.92, sheen 1.0, sheenRoughness 0.32, sheenColor = colour lightened 28%, normal scale 0.35. Texture: dense pile micro-noise at 0.6 mm + soft "crush" lows. Brush: lightens (albedo × 1.42 + 0.05, sheen +50%, roughness −0.08), fades in 8 s. Care: "Steam to lift the pile. Brush with the nap."
2. Leather (full-grain aniline, Grade A, +22%): Cognac #8E5230 · Bone #E3D6C2 · Espresso #3A2620 · Saddle #A86B3C. Params: roughness 0.52, clearcoat 0.25, clearcoatRoughness 0.38, sheen 0, normal scale 0.6. Texture: Voronoi pebble grain 1.2 mm + low-frequency crease lines. Brush: no trail; a 9 cm soft specular "fingertip" highlight follows the pointer. Care: "Feed twice a year. It will darken where you live."
3. Linen & cotton (Belgian linen-cotton 55/45, 32,000 rubs, −6%): Chalk #EEEAE2 · Flax #CDBB9E · Stone #9C978C · Indigo #2D3A52. Params: roughness 0.86, sheen 0.3, sheenRoughness 0.7. Texture: plain weave 1.1 mm with random slubs (5% of threads 1.6× thicker). Brush: crease ripple (normal from the trail's gradient, albedo −12%) that relaxes in 3 s. Care: "Loose covers, dry clean only."
4. Bouclé & teddy (wool-alpaca bouclé, 45,000 rubs, +9%): Snow #F2EEE6 · Fog #C9C4BB · Biscuit #C6A57E · Teddy Sand #D8C3A5. Params: roughness 0.97, sheen 0.6, sheenRoughness 0.8, normal scale 0.9 (teddy 1.2). Texture: Worley loops 2.4 mm (teddy 3.6 mm) with per-loop height and AO in the cavities. Brush: dents (albedo −24%) that refill in 5 s. Care: "Pick, never pull."
5. Suede & microfibre (Italian microfibre suede, 80,000 rubs, +4%): Mushroom #9E8C7A · Tobacco #6E4B33 · Dove #B7B3AD · Rust #9A4A2C. Params: roughness 0.9, sheen 0.85, sheenRoughness 0.55. Texture: very fine fibre noise 0.3 mm with directional streaks. Brush: trail darkens 26% (against the nap), fades in 8 s. Care: "Wipe with a damp cloth, then brush."
6. Woven & textured (wool jacquards, 50,000 rubs, +12%): Oat Herringbone #CDBFA8 · Charcoal Tweed #4A4744 · Olive Chenille #6B6A45 · Terracotta Basket #B0613E. Params: roughness 0.88, sheen 0.4, sheenRoughness 0.6. Texture: herringbone 8 mm / tweed flecks / chenille ribs 3 mm / basket weave 6 mm, two-tone albedo per pattern. Brush: none, the pointer lifts a soft raking light across the weave.
Hard materials: Travertine #D9CBB6 (pores, roughness 0.7) · Arabescato #EDEAE4 with grey veins (roughness 0.35, clearcoat 0.4) · Oak #B58B5E (oiled, roughness 0.55, grain stripes) · Walnut #5B3B28 · Walnut burl (book-matched swirl noise, clearcoat 0.8) · Brass #B8925A (metalness 1, roughness 0.28) · Bronze #6E5136 (metalness 1, roughness 0.4).
 
Lighting presets (Atelier, PDP): Morning 09:00 (sun azimuth 118°, elevation 22°, colour #FFE6C7, intensity 3.2, env 0.9) · Noon 13:00 (azimuth 180°, elevation 64°, #FFF6EA, 4.0, env 1.0) · Lamp 21:00 (sun off, two warm lamps #FFC58A, intensity 6, env 0.25, walls drop to #2A211C).
 
Anatomy layers (bottom → top): Frame "Kiln-dried oak and beech, dowelled and glued, 25-year guarantee" · Springs "Eight-way hand-tied coil springs, 12 per seat" · Webbing "Jute webbing at 4 cm spacing" · Foam "40 kg/m³ high-resilience core" · Wrap "60/40 feather-down in stitched channels" · Cloth "Cut by hand, pattern-matched across every seam" · Thread "212 m of waxed thread, 3.2 stitches per cm".
 
Process (Workshop): 01 Frame (9 h) · 02 Springs (11 h) · 03 Foam and wrap (8 h) · 04 Cutting (6 h) · 05 Sewing (14 h) · 06 Upholstering (20 h) · 07 Inspection (4 h). Total 72 h.
 
Seat fills (press-to-sit toy): Feather-down: sinks 6.0 cm, recovers in 2.4 s · Foam-wrap: 4.0 cm, 0.9 s · Firm: 2.5 cm, 0.4 s.
 
Reviews (fictional):
1. "My daughter draws on our Ecru Solenne with one finger and the velvet keeps the drawing until someone sits down. We leave each other notes on it now." Rhea Kapadia, Brooklyn.
2. "The cognac Bask arrived the colour of weak tea. Eighteen months of evenings later it is the colour of the rum I drink in it." Arjun Menon, Austin.
3. "I sat in eleven sofas across two cities. Mareo was the only one where my shoulders dropped before my back touched the cushion." Farah Siddiqui, Chicago.
4. "They matched the herringbone across the Wren's wings so precisely my tailor asked who made it." Kabir Shah, Savannah.
5. "Our Convivio has had wine, crayons and a cricket ball on it. It just looks more like ours." Nandini Rao, Portland.
Placed by (fictional trade partners): Studio Kaavya · Ferrous & Fig · Atelier Noor · Hotel Saffronhill · The Indigo Courtyard · Marrow Architects.
 
Visit form options: date (next 21 days, Mondays disabled) · slot 11:00, 12:00, 14:00, 15:00, 16:00, 17:00, 18:00, 19:00, "20:30 private viewing" · interest chips (14 piece names, stored as slugs) · swatch box (max 6, prefilled from Atelier picks; free, posted in 3 days) · name, phone, email (required), message. Submit: no backend; show a confirmation card that says plainly nothing was sent, with reference "NG-" + 4 seeded digits, chosen date/slot, pieces, swatches, and a mailto link prefilled with the same summary. Focus moves to the confirmation heading.
 
Delivery line: "Free white-glove delivery in Charleston. Rest of the USA $350, placed and unwrapped in your room."
FAQ: "How long does a piece take?" nine weeks · "Can I bring my own fabric?" yes, 14 m for a three-seater, surcharge $290 · "Do you deliver outside Charleston?" $350 anywhere in the USA, free in Charleston · "What does the 25-year guarantee cover?" frame and springs, transferable.
 
Business rules: price shown = base × (1 + family delta), rounded to the nearest $50. Fit check passes when footprint + 10 cm wall gap + 90 cm walkway fit inside the entered room, along the chosen wall and out from it; when it fails, suggest the next-smallest piece in the same collection that fits.
 
=== 3. DESIGN SYSTEM
 
Colour tokens (the showroom at different hours):
- `--limewash` #F4EFE7 hero and light sections bg · `--oat` #E8DFD2 cards, light alt bg · `--travertine` #D9CBB6 · `--greige` #B8AC9C muted text on dark · `--ink` #231C18 text on light · `--cognac` #9A5B34 accent on light (italics, active states) · `--brass` #B8925A accent on dark, hotspots, thread · `--oxblood` #4A1F22 Velvet Room bg · `--espresso` #1E1714 dark sections bg · `--sage` #A7AE98 · `--bone` #F2EBDF text on dark.
- Theme slots (`--bg --fg --muted --accent --hair --glass --glass-border --btn-*`) flip under `[data-theme="dark"]`; every section carries `data-theme`.
- Contrast: body text pairs must pass WCAG AA (cognac only for 24 px+ type or icons on limewash).
 
Gradient system ("light leaks"): every section has 3 soft blobs (radial gradients, opacity 0.55, blur 80 px from 768 px up) that drift on transform only (translate ±6vw, scale 0.9-1.15, 18-26 s loops, alternate, offset phases). Sun Room: #FFE3C2 / #F7D9CF / #E4E8DA. Long Room: #EADBC6 / #F3E7D8 / #D7D2C3. Velvet Room: #6B2128 / #3B1B2E / #2E3A2C. Stone Hall: #3A3430 → #D9CBB6 vertical dusk ramp + #C9A27A blob. Workshop: #4A2E1E / #2B1E17. Visit: #FCEBDD / #F4EFE7 / #E9EEE4. Static under reduced motion.
 
Type scale:
- `.display-xl` Bodoni Moda 500, opsz max, clamp(3rem, min(8.4vw, 12.4vh), 8.75rem), lh 0.94, tracking -0.025em (hero H1; the vh term keeps it clear of the floor plan on short screens)
- `.display-l` Bodoni Moda 500, clamp(2.4rem, 5.6vw, 5.5rem), lh 0.98, tracking -0.02em (section headlines)
- `.display-m` Bodoni Moda 500, clamp(1.75rem, 3vw, 2.75rem), lh 1.05 (piece names). Prices are set in the body font, not the display font.
- `.italic-accent` Bodoni Moda italic 400, cognac on light, brass on dark
- `.lede` Hanken Grotesk 300, clamp(1.05rem, 1.35vw, 1.3rem), lh 1.55, max 46ch · `.body` 1rem / 1.6 · `.small` 0.875rem / 1.5
- `.eyebrow` DM Mono 400, 0.75rem, uppercase, tracking 0.16em, preceded by a 24 px hairline
- `.data` DM Mono 400, 0.8125rem, tabular-nums
- Every section headline: two lines, line 2 is `.italic-accent`.
 
Space and shape: grid 12 col, gutter clamp(16px, 2vw, 32px), page margin clamp(20px, 5vw, 88px) · section padding clamp(96px, 14vh, 180px) · radii: buttons 999 px, cards 22 px, swatches circle with 2 px inner ring · hairline 1 px at 18% ink / 16% bone · shadow-soft 0 30px 60px -30px rgba(35,28,24,0.35) · glass cards: rgba(244,239,231,0.62) light / rgba(30,23,20,0.55) dark, backdrop-filter blur(18px) saturate(1.2), border 1 px rgba(255,255,255,0.35).
 
Motifs:
1. The hem: a full-width wavy fabric edge (SVG pattern, amplitude 14 px, wavelength 120 px, 2 px brass stitch line 10 px inside the edge) at the top of the incoming section, in that section's colour, rising over the previous one.
2. The stitch: dashed brass line (dash 6, gap 4) for dividers, dimension lines, progress bars.
3. Swatch chips: 44 px circles showing the live procedural texture (flat colour until the GPU baker publishes it as a CSS variable `--chip-<id>`).
4. Room numbers: every section has a "Room 0N" eyebrow and a floor-plan cell.
5. Brass hotspots: 12 px brass ring + 4 px dot in a 44 px target, 2.4 s pulse ring scale 1 → 2.2, opacity 0.6 → 0.
 
Easing tokens: `--ease-silk` cubic-bezier(0.22, 1, 0.36, 1) · `--ease-drape` cubic-bezier(0.65, 0, 0.35, 1) · `--ease-sink` cubic-bezier(0.33, 0, 0.12, 1). GSAP: "expo.out", "power3.inOut", "power2.out".
Focus: 2 px dashed brass outline, offset 3 px, on every interactive element; never removed.
 
Layering model (this decides whether text is readable over 3D; build it first):
- One fixed canvas at z-index 2. Section backgrounds, light leaks (z 0) and view boxes with their posters (z 1 or auto) sit below it; section UI sits above it (z 3); hems z 4; nav z 50; cursor z 100.
- A wrapper must never become a stacking context between a view box and its UI. Because `position: sticky` and `fixed` always create one, every pinned room is built as TWO sticky siblings inside a tall track: a stage layer (z 1, holds the view box) and a UI layer (z 3, `margin-top: -100svh`, pointer-events none except on its controls). Do not use GSAP pinning.
- All custom CSS lives in `@layer components` so Tailwind utilities can override it.
 
=== 4. MOTION SYSTEM
 
- Nothing in this section may run before the page has loaded. `lib/gsap.ts` resolves on window load + idle (timeout 2.5 s) or on the first user interaction, whichever is first, then dynamically imports gsap, ScrollTrigger and SplitText. Motion also waits until the last room has hydrated before touching the DOM.
- Lenis (fine pointers only): lerp 0.09, wheelMultiplier 0.9, syncTouch false, driven by gsap.ticker; `lenis.on('scroll', ScrollTrigger.update)`. Anchor links use lenis.scrollTo with offset -72 and duration 1.4; native scrolling otherwise.
- GSAP defaults: ease "expo.out", duration 1.0.
- Reveals run from ONE IntersectionObserver (no up-front measuring, no ScrollTrigger per element). Elements already on screen at start are left alone; the rest are hidden until they enter. Headlines: SplitText by lines with line masks, yPercent 105 → 0, stagger 0.08, duration 1.1. Ledes and eyebrows: y 18 → 0 + fade, 0.8 s, delay 0.15. Card groups: scale 0.96 → 1, y 40 → 0, stagger 0.07.
- Hero H1: a CSS clip-path keyframe inset(0 0 100% 0) → inset(0) that starts on page load (0.9 s, ease-silk), on the H1 as ONE text block (inline spans + `<br>`), never opacity held by JS. Eyebrow, lede and CTAs fade up in CSS.
- Cursor (fine pointers only): 14 px ring 1.5 px ink (bone on dark), lerp 0.18. Modes via `data-cursor`: `brush` → 54 px soft disc "Brush", `drag` → 64 px ring "Drag to turn", `view` → 84 px filled cognac disc "View", `link` → 28 px. Hidden on touch and reduced motion.
- Magnetic: primary buttons and swatches pull 0.25 of pointer offset, max 10 px, return elastic.out(1, 0.5) 0.6 s.
- Buttons: primary = ink bg, bone text, 52 px tall, padding 0 28 px; hover: a cognac fill rises from the bottom (clip-path, 0.45 s, ease-silk) and the arrow slides 4 px. Ghost = 1 px ink border; hover fills oat. Inverted on dark.
- Floating cards: 3D tilt ±6° from pointer (perspective 900 px), shine gradient follows pointer, shadow deepens; settle 0.6 s.
- Mouse in 3D: every live view applies camera parallax (yaw ±3°, pitch ±1.5°, lerp 0.06) and the key light shifts ±8° azimuth with pointer x.
- Hem: translates up by 10vh over the first 60vh of its section's entry (scrub 0.6); nav colours invert by the section under 64 px from the top.
- Pinned rooms write a scroll progress 0..1 into a plain mutable object read inside `useFrame` (no React state per frame).
- Anatomy film (track 520svh desktop, 400svh phones, scrub 1). Camera keys, sofa at (0, 0, −1.45), seat centre S = (0, 0.44, −1.53):
 
| Beat | Window | Camera (position → target, FOV) | Visual | Copy (left column, crossfade) |
|-|-|-|-|-|
| 1 Sink | 0.00-0.16 | from (−2.3, 0.95, 2.9) → (−0.55, 0.6, −1.45), FOV 35, to (0.75, 1.15, 0.4) → S, FOV 22 | Opens at DUSK from the opposite side of the room to the hero (chair in the foreground); morning returns between 0.02 and 0.15 as the camera sinks into the centre seat | "Room 02 · Anatomy of softness" / "What you / sit on." / "Every piece starts as a frame you will never see." |
| 2 Thread | 0.16-0.32 | to (0.03, 0.535, S.z + 0.1) → S, FOV 22 | Surface fills the screen; texture crosses into macro, pile fibres stand up, an automatic brush stroke draws an S across the velvet (fine 1.4 cm stroke) | "212 metres / of thread." / "3.2 stitches to the centimetre." |
| 3 Open | 0.32-0.58 | to (3.3, 1.9, 3.6) → (−0.9, 0.82, −1.45), FOV 32 | Sofa explodes upward: cloth +0.62 m, wrap +0.48, foam +0.34, webbing +0.22, springs +0.12, frame stays (×1.25, stagger 0.04); the coffee table steps aside; brass leader lines + DOM labels for the 7 layers | "Seven layers, / one silhouette." |
| 4 Stitch | 0.58-0.78 | to (3.0, 1.5, 3.8) → (−0.7, 0.6, −1.45) | Layers settle back in reverse order (power3.inOut); a glowing brass thread runs along all piping seams (dash draw 0 → 1) | "Cut by hand. / Matched at every seam." |
| 5 Change skin | 0.78-1.00 | to (2.5, 1.2, 3.5) → (0, 0.4, −1.45), FOV 35 | The upholstery drape-wipes velvet → cognac leather → snow bouclé → flax linen → ecru velvet (0.05 each) | "Now choose / its skin." |
 
- Dusk (a 0..1 mix on the light rig, 1 at the top of the film): sun × (1 − 0.5·d) and tinted to #FF7628, environment × (1 − 0.86·d), hemisphere × (1 − 0.84·d), two warm lamps + 2.4·d / 1.6·d, the sky outside the window from bright cream (6, 5.6, 4.9) to amber (2.0, 0.72, 0.26).
- No visible edge between hero and anatomy: the hero's bottom fades to limewash, and a 30vh limewash → transparent gradient sits at the top of the anatomy track (in flow, so it scrolls away). On phones the hero poster fades out the same way.
 
=== 5. WEBGL CENTERPIECE
 
One shared canvas: `StageCanvas` is a single fixed full-viewport R3F Canvas (pointer-events none) using drei `<View track={…}>` rendered inside the Canvas. Each section owns a tracked `<div>` (the ViewBox, containing its baked poster) and registers itself in `lib/stage.ts`; the canvas turns each entry into a View with its own scene and camera.
- A root `useFrame` at priority 0 clears the whole canvas each frame (Views never clear).
- A View draws only when its box is on screen AND its scene is built, its textures are baked and `gl.compileAsync` has finished ("live"). Until then the poster shows. Views on a transparent background fade their poster out when live; opaque room views keep it underneath.
- A box that merely touches the viewport edge counts as off screen (IntersectionObserver rootMargin −1px, same check in the composer path).
- Scenes mount when their box is within 60% of a viewport; `frameloop="never"` when no view is on screen or the tab is hidden.
- Pointer input never goes through R3F events: each scene listens on its own box and raycasts by hand.
- One WebGL context for the whole site (home and PDP).
 
Loading: `StageLoader` imports the stage chunk on the first pointermove / pointerdown / wheel / scroll / keydown / touchstart only (no idle trigger). The bake route loads it at once. Geometry and textures are built one piece or one texture family per idle callback, the nearest view's needs first.
 
Renderer: AgX tone mapping, exposure 1.0, sRGB output, PCFSoft shadows (high 2048, mid 1024, low off), antialias false.
High tier post: ONE shared postprocessing composer (RenderPass → N8AO radius 0.5, intensity 1.6, half-res → EffectPass with AgX tone mapping + SMAA) used by the opaque room views (hero, anatomy, studio, bakes), each rendered through it into its own scissored rectangle. Transparent views render directly.
 
Light rig (per scene): one shadowed directional sun from the preset (intensity × 2.8 calibration gain under AgX), a hemisphere light (#FFEBD2 / #D9A870, 0.55 × env), two warm lamps for the Lamp preset, and drei `<Environment resolution={256} frames={1}>` built from Lightformers: a 4×3 m warm window rect (#FFE6C7, 2.4) on the sun side, a 6×1 m ceiling strip (#FFF6EA, 0.8), a cool bounce card (#E4E8DA, 0.4) opposite, a soft front fill, inside a #B5A590 sphere. Preset changes crossfade over about 1.2 s. When a tier change alters the shadow-map size, dispose the old map.
 
The Sun Room (hero and anatomy scene), 1 unit = 1 m:
- Shell 7 × 4.2 m, back wall at z = −2.5 in limewash plaster (#F3ECE0, roughness 0.95), wide-plank oak floor (22 cm boards, #D9BE98, clearcoat 0.15), left wall and ceiling extended to z = +7.5 so the sun enters only through the window. A 1.7 × 2.6 m arched window in the left wall centred at z = −0.55, sill 0.25, with 3 mullions (6-7 cm) and two transoms that cast the stripes; a bright sky plane behind it.
- A pale wool rug 3.9 × 2.7 m under the group, a skirting board, a warm bounce point light near the sun patch.
- Sheer linen curtain (plane 1.4 × 3.4, 40×80 segments, #F7F1E8 at 0.55, vertex sway sin(time·0.6 + y) amplitude 0.03, no shadow).
- 260 dust motes (points, 1.5 px, additive, placed along the sun rays through the window, drifting), 80 on mid, 0 on low and in bakes.
- Furniture: Solenne at (0, 0, −1.45), Bask at (−2.2, 0, −0.35) turned 28°, Strata at (0.15, 0, −0.1), Dot at (1.95, 0, −1.1) carrying a ceramic vase (lathe, #D8CFC2) with three dried pampas stems.
- Hero camera (landscape): position (2.85, 1.05, 3.4) → target (−1.1, 0.7, −1.3), vertical FOV 35 at 16:10. The sofa sits in the right half, the chair mid-left, the window at the far left. Idle breathing ±0.04 m on a 12 s sine. Portrait bake: position (2.9, 1.25, 4.6) → (0, 0.45, 0) with a widened FOV.
- 3 hotspots on Solenne as DOM buttons positioned every frame from projected 3D anchors (visually hidden but focusable until the scene is live). Click → glass card 260 px with title + one line + "See the anatomy ↓".
 
Furniture kits (parametric, built from data recipes, all geometry generated in code, merged per material slot):
- Primitives: `cushion` (RoundedBox, vertices merged, then a "pillow" pass: displace along the face normal by 0.018 × (1 − edgeDistance²) so cushions puff in the middle and pull at the edges, plus 0.004 m crease noise near seat fronts), rounded and sharp boxes, closed rounded-rectangle tubes for piping (r 0.004) and contrast stitch (r 0.0016) with a stitch UV, lathes, discs, round cushions, coil springs, capsules.
- SofaKit: a `run` builder (plinth / legs / flush base, upholstered frame per module, arms: track, roll, low, thin; seat cushions or one bench; back cushions or a tight back; piping loops). Solenne is a straight 5-module run bent onto its arc (outer radius 2.49 m, reference radius 2.1 m, 70°); Cassian adds a chaise; Mareo is a back run, two corners and two wings; Tessel is 6 separate blocks that slide between layouts in 0.8 s, stagger 0.06.
- ChairKit: Orla's shell is a closed profile swept 220° with 7 channels pressed into the inner face; Wren's back is dented by 9 buttons; Pip is a drum seat, an oval pad, a bent brass rod and three legs; Bask is an oak sled with two tilted cushions.
- TableKit: fluted drum (24 flutes), marble drum with shadow gap, burl slab on an open bronze frame, Convivio as two half-oval tops on pedestals, a 60 cm leaf and 8 chair instances (two parked until "Seats 8").
- Anatomy build of Solenne emits the same run as separate layers: frame (oak plinth and inner frames, kept well inside the upholstery so no corner pokes through), springs (12 coils per seat), webbing, foam, wrap, cloth.
- Triangle budget: ≤ 180k per scene on high, ≤ 90k on mid/low. Cushion tessellation is multiplied by a quality factor (1 high, 0.5 mid/low) set before any piece is built.
 
Materials:
- `UberFabric` = MeshPhysicalMaterial extended with three-custom-shader-material. Two parameter slots (A and B: albedo, second tone, roughness, sheen, sheenRoughness, sheenColor, clearcoat, clearcoatRoughness, detail texture, normal scale, tiles per metre, brush kind) and a mask. Uniforms: `uMix`, `uMaskMode` (0 drape wipe, 1 screen-space split), `uSplitX`, `uNapMap`, `uBrushGain`, `uFingertip`, `uSeamColor` #B8925A, plus the piece-space bounds.
- Detail is sampled TRIPLANAR in object space at real scale (no UV unwrap needed): each texture stores normal.xy, a tone channel (mixes the two albedo tones) and cavity. Sheen is set per pixel through a CSM patch of `material.sheenColor` / `sheenRoughness`; `sheen: 1` and `clearcoat: 1` stay on the base material so the defines exist.
- Velvet must read as velvet: add a pile falloff in the shader (faces towards the camera 20% darker, grazing edges lifted by the sheen colour). When a texture is magnified on screen (macro shots, loupe) boost its normal strength.
- Drape wipe: mask = smoothstep over (piece-space x + 0.12 × noise) against uMix; a 6 mm brass seam glows at the front (emissive 0.6); 900 ms, power2.inOut; normal scale overshoots +30% just behind the front. Colour change inside a family = 450 ms parameter crossfade + one automatic brush stroke across the seat. Reduced motion: 200 ms crossfade.
- NapBrush: a 512² (mid/low 256²) render target in the cushion's unrolled seat/back space, u = (x − minX) / width, v = ((maxZ − z) + y) / (depth + height), computed from the piece-space position in both the raycast and the shader. Stamps are soft discs (5 cm radius, strength 0.6, MAX blending) along the stroke; the map fades by SUBTRACTING 1/255 on a timer sized to the family's fade time. Leather and woven use only `uFingertip`.
- Procedural textures: full-screen shader passes into render targets (1024² high, 512² mid/low): pass 1 writes height / tone / cavity for one pattern (velvet, leather, linen, bouclé, suede, herringbone, tweed, chenille, basket, travertine, marble, wood, burl, plaster, planks), pass 2 derives the normal and writes a mipmapped, repeating RGBA texture. One family per idle callback, never during first paint. Swatch chips are rendered at 88 px, read back once and published as `--chip-<id>`.
 
Interaction mapping: pointer move = parallax + brush + key-light shift · drag = turn the piece (Atelier and PDP 360°, damping 0.08; Long Room ±40°, settling back after 4 s idle; Velvet Room front chair ±180°) · wheel never zooms · click hotspot = card · touch: `touch-action: pan-y`, horizontal drag turns, brushing on touch only in the Atelier after tapping "Brush mode".
 
Quality tiers (`lib/tier.ts`, from hardwareConcurrency, deviceMemory, DPR, saveData, then a 30-frame probe): high DPR 1.75, shadows 2048, composer (N8AO + SMAA), 260 motes · mid DPR 1.5, shadows 1024, drei ContactShadows (frames 1, parented to the piece) · low DPR 1.25, no shadow maps, ContactShadows, no motes, 512² textures. FPS < 45 for 2 s steps down one tier without rebuilding the furniture. `?tier=high|mid|low` forces and locks a tier; `?nogl=1` forces the fallback. The live hero runs only from 1024 px with a fine pointer; phones and tablets keep the poster.
 
Fallback: WebGL unavailable → every view keeps its baked poster; the Atelier crossfades between its 24 baked stills (400 ms); pinned rooms show their stacked layouts.
 
Baked photography (`npm run bake`): Playwright uses a running server (`BAKE_URL`) or starts the dev server, tries installed Chrome with the GPU first and SwiftShader as the fallback, opens `/bake?piece=…&angle=…&material=…&preset=morning` at 1600×1000 (deviceScaleFactor 1), waits for a `data-ready` flag set after the first full-quality frames, screenshots, and sharp writes AVIF q50 + WebP q72 at 1600 w and 800 w to `public/baked/` plus a 16 px blur placeholder into `data/baked.json`. The bake route renders on the high tier, synchronously, with no motes, parallax or breathing. Bake list (83 stills): 14 pieces × 4 angles (front, three-quarter, side, top) in a plaster studio · hero (1600×1000 at q70, cap 90 KB) and hero-portrait (900×1200 → 800 w, cap 45 KB) · anatomy at film progress 0.1 · 24 Atelier stills of Solenne on the gallery colour. Seed all randomness (mulberry32, seed 1907). Commit the outputs; the site never bakes at runtime.
 
=== 6. SECTIONS
 
Section themes in order: Hero light · Anatomy light → warm · Atelier light (Lamp preset darkens it locally) · Long Room light · Velvet Room dark · Stone Hall dusk (dark → light) · Compare light · Workshop dark · Visit light · Footer dark.
 
0. FLOOR PLAN (desktop ≥ 1024 px, fixed bottom-left, 132×96 px glass card, hidden below 720 px of height)
- SVG plan of the showroom: 9 rooms as rounded rectangles with hairline walls and door gaps; the current room fills cognac at 35% and a brass dot walks a dotted path between rooms with scroll. Hover → name tooltip; click → scroll. `aria-label="Showroom floor plan"`, rooms are links. Its glass follows the theme of the section under it. Hidden on PDP and on phones (replaced by the room name in the nav on tablets).
 
1. HERO · `#sun-room` · light · exactly 100svh on desktop (min 680 px)
- Desktop (≥ 1024 px): the Sun Room is FULL-BLEED, the view box covers the whole section. The copy sits on the left over a limewash scrim; the document order is copy first, then the stage, so the H1 paints in the first frame.
- Scrim (above the canvas, below the copy): horizontal limewash gradient 0.97 → 0.94 at 20% → 0.82 at 31% → 0.5 at 41% → 0.16 at 50% → 0 at 57%, plus a top fade (0.55 → 0 over 13%) for the nav and a bottom fade to solid limewash (16%). A warm radial "light leak" (soft-light blend) drifts over it in CSS, so the gradient is alive before any JS.
- Poster: the baked hero still, `object-fit: cover`, `object-position: 82% 50%`, preloaded with fetchpriority high (portrait still below 1024 px via `<picture>` media). The live camera must reproduce the poster's crop at every aspect: wider than 16:10 keep the horizontal field of view (narrow the vertical FOV); narrower than 16:10 keep FOV 35 and shift the frustum sideways with `setViewOffset(1, 1, (0.82 − 0.5) × (1.6 − aspect) / aspect, 0, 1, 1)`. There must be no jump when 3D takes over.
- Copy: eyebrow, H1 (max-width min(47vw, 5.6em) so it sets on four short lines clear of the sofa), a 96 px brass stitch, lede (max 40ch), the two CTAs (the ghost one on a translucent limewash fill).
- Floating material chips: 4 glass chips (velvet, leather, bouclé, linen; 64 px, rounded 18 px) around the sofa at (61%, 43%), (49%, 52%), (77%, 30%), (91%, 44%) of the view, floating ±10 px on 6-9 s loops; hover tilts and names the family; click scrolls to the Atelier with that family selected.
- Bottom right (≥ 1280 px): the glass "In this room" caption card. Bottom centre-right: the hint chip once live. Bottom left, beside the floor plan: "Scroll to sink in" + a 40 px stitch line drawing downward on a 2.2 s loop.
- Phones and tablets (< 1024 px): stacked. Eyebrow, H1 at clamp(3.4rem, 15vw, 5.4rem), lede, CTAs stacked full-width, the scroll cue in the flow, then the portrait poster in a 4/5 box that fades out at its bottom. The H1 must be the largest element in the first viewport (see section 8).
- Out: the hero copy lifts 60 px and fades between "bottom 100%" and "bottom 60%".
 
2. ANATOMY · `#anatomy` · light → warm oat · two-layer sticky film
- View fills 100svh; copy column on the left over a limewash gradient (a glass panel at the bottom on phones). Timeline: the beat table in section 4.
- Layer labels are DOM buttons positioned from projected 3D anchors each frame with dashed brass leader lines; each label: layer name (1.5 rem display) + one data line (name only on phones).
- Toy: hover/tap a label → that layer lifts an extra 4 cm and glows brass at its edge; the others dim to 50%.
- Static version (no WebGL / reduced motion): an SVG exploded axonometric of the layers with the same labels, no pin. A screen-reader list of the 7 layers is always present.
 
3. THE ATELIER · `#atelier` · light gallery (#F7F3EC) · header block, then a sticky 100svh stage inside a 220svh track (kept sticky under reduced motion)
- Eyebrow "Room 03 · The Atelier". Headline: "One sofa. / Twenty-four skins." Lede: "Pick a cloth, then a colour. Move the light. Get close. Order the swatches and we post them in three days, free."
- Stage desktop: Solenne centred on a transparent view with a shadow-catcher floor (3/4 view, about 47% of the width, drag to turn 360°). Left rail: 6 family radio buttons (live swatch + name + rub count, stitch underline on the active one). Right: glass data card: material name, composition, Martindale/grade, touch line, care line, "Solenne in this cloth: $6,400" (digit roll 0.6 s), 4 colour swatches (radio group), "Add to swatch box" (max 6, a chip flies to the nav counter along a bezier, 0.7 s).
- Bottom toolbar (glass pill): Light: Morning / Noon / Lamp + a draggable sun dial (azimuth 60°-300°, also a keyboard slider) · Loupe · Split · Brush mode (touch only). Lamp turns the stage dark (#2A211C) with the dark theme.
- Loupe: 220 px circle (160 px phone) following the pointer with lerp 0.2, offset up-right of the fingertip, showing the same scene through a second camera at 6×, with a 1 px brass ring and a mono readout "1:6 · Velvet pile 0.6 mm". Drawn by hand into a scissored square of the shared canvas with a depth mask for the circle.
- Split: a vertical brass handle (input type range, 0-100, step 5) divides the sofa; left = current material, right = a "Compare with ..." select in the card. Uses `uMaskMode` 1 with the main camera's view-projection, same seam glow.
- Phone: view top 62svh; controls in a 38svh bottom sheet (family chip row, colours, toolbar).
- A11y: radio groups with arrow-key navigation; a live region announces "Solenne in Moss velvet, $6,400".
 
4. THE LONG ROOM (SOFAS) · `#long-room` · light warm greige (#EFE8DE)
- Eyebrow "Room 04 · The Long Room". Headline "Six ways / to sink in."
- Desktop: two-layer sticky walk, track 620svh, scrub 0.8. Six travertine plinths (12 cm tall, 2.8 m apart edge to edge, each sized to its sofa) in one long transparent view; the camera tracks sideways, each sofa holds centre for 70% of its window then glides on, framed in the left two-thirds. Sofas are simply there when the camera arrives: NO cloth, veil or reveal effect.
- Per sofa a glass card (right third, tilt on hover): index "01 / 06", type, name, dims ("286 × 108 × 74 cm · seat 42"), price from, 3 material chips (drape wipe on the live sofa), "View the piece →" and "Add swatches". Tessel shows a Straight / Corner / Island switch.
- Behind: the room tint deepens with progress; a large outline number (Bodoni 30vw, 6% ink) changes.
- Drag turns the sofa in front ±40°; brushing works on it.
- Phone/tablet, reduced motion, no WebGL: six stacked showcases with the baked three-quarter still, the same card, and "Turn in 3D" which mounts a view for that piece only.
 
5. THE VELVET ROOM (CHAIRS) · `#velvet-room` · dark oxblood · hem in
- Eyebrow "Room 05 · The Velvet Room" (brass). Headline "Four chairs / worth the corner."
- Scene: a 3.2 m round lacquered plinth (#2A1416, clearcoat 0.9) carrying the 4 chairs at 90° steps (radius 1.08 m); dark velvet drapery (vertical folds by sine displacement on a curved wall); one spotlight that follows the cursor (penumbra 0.6, angle 22°) plus a warm fill. Track 400svh: scroll turns the plinth 90° per chair with snap (0.6 s).
- Front chair card (left, dark glass). Drag turns the front chair on its own disc ±180°.
- Phone: plinth view 70svh, swipe or buttons to turn, no pin.
 
6. THE STONE HALL (TABLES) · `#stone-hall` · dusk ramp, dark top → travertine bottom · hem in
- Eyebrow "Room 06 · The Stone Hall". Headline "Set in stone, / oak and burl."
- Track 460svh. Four tables 6 m apart, one per quarter: the camera starts in plan view with brass dashed dimension lines (DOM, fitted to the projected top) and size labels, tilts to 24° eye level, then slides on.
- Convivio: its chairs slide in when it comes into view (stagger 0.08); "Seats 6 / Seats 8" parts the halves 0.3 m, raises the leaf and brings two more chairs (1.2 s).
- Phone: no pin; each table a plan-view still that tilts away to the three-quarter still with a CSS view-timeline.
 
7. SIDE BY SIDE · `#compare` · light · hem in
- Eyebrow "Room 07 · Side by side". Headline "Hold two pieces / up to the light."
- Two selects (all 14 pieces, defaults Solenne vs Cassian L) and a Swap button (0.6 s morph). Front elevations drawn in SVG to one shared scale from data, A in ink, B in cognac dashed, on one baseline, with stitch dimension lines that draw in 0.9 s.
- Paired bars: Width · Depth · Height · Seat height · Seat depth · Sink (1-5 dots) · Price from · Make time. The larger value is tinted cognac and marked with ▲.
- Toy "Will it fit?": room width and length (cm, defaults 420 × 360) + wall (Back / Left / Right). A top-down SVG plan with the footprint and the 90 cm walkway; verdict in an aria-live region, e.g. "Solenne fits with 124 cm to walk past." or "Short by 34 cm along the back wall. Try Halden 3."
 
8. THE WORKSHOP · `#workshop` · dark espresso · hem in
- Eyebrow "Room 08 · The Workshop". Headline "Seventy-two hours / of hands."
- Stats row with counters (0 → value, 1.6 s, on enter).
- Process ruler: 7 steps on a stitch line, hours drive segment widths; hover/focus/tap → description card; total "72 h". Vertical list on phones.
- Toy "Press to sit": an SVG side section of a cushion (layers coloured as in Anatomy) + 3 fill tabs. Press and hold (pointer or Space/Enter) → compresses to the fill's depth (ease-sink, 0.5 s) with a ruler reading "6.0 cm"; release → recovers in the fill's time.
- Reviews: one large italic quote at a time, name + city in mono; drag, arrow keys or buttons; progress as stitch dashes; no auto-advance.
- "Placed by": the 6 partners in DM Mono, separated by ·, static.
 
9. VISIT · `#visit` · light dawn · hem in
- Eyebrow "Room 09 · Visit". Headline "Come and sit / before you choose."
- Left: address, hours, phone, WhatsApp, email, delivery line; an SVG street sketch of Weaver's Row with a cognac pin on no. 17 (no map embed).
- Right: the booking form in 3 steps (Visit · Pieces · You) with a stitch progress bar; a 21-day date strip built after mount; slot chips; interest chips; swatch tiles. Validation on blur, errors as text, announced via aria-live; an empty submit moves focus to the first invalid field.
- FAQ: 4 `<details>` accordions.
 
10. PRODUCT DETAIL PAGE · `/pieces/[slug]` (14 static pages)
- Desktop: viewer left 62% (sticky, aspect 4/3), info right 38%. Phone: viewer top (aspect 4/5), info below.
- Viewer tabs: Front · Three-quarter · Side · Top (baked stills, crossfade 350 ms) · Live 3D (mounts the studio view: drag 360°, Morning/Noon/Lamp, brush, loupe). Default Three-quarter; that still is the LCP image.
- Info: breadcrumb, eyebrow, H1, lede (recipe), price (updates with material), material picker limited to the allowed families, dimension drawing (SVG front + side), the 3 hotspots as a "Details" list, specs table (frame, fill, legs, make time, guarantee), CTAs "Book to sit in it" (→ /#visit with the piece preselected) and "Add swatches".
- "Seen with": 3 related pieces as tilt cards (one per collection).
- Transition from home cards: React `<ViewTransition>`; browsers without it get a 450 ms oat curtain wipe.
- JSON-LD Product + Offer (USD, price from).
 
=== 7. CHROME
 
- Loader: CSS only, never covers content. A 2 px top bar with a cognac "brush stroke" sweeping once (700 ms). Skipped on repeat visits (sessionStorage) and under reduced motion.
- Nav: fixed, 72 px → 60 px after 80 px; transparent over the hero, glass after; wordmark left; links centre (desktop) with a stitch underline on hover; right: Swatch box counter (opens a 360 px side drawer: chips with remove buttons, "Request these swatches" → #visit step 2) + "Book a viewing". Inverts on dark sections. Hides on scroll down after 600 px, returns on scroll up or focus.
- Menu (< 1024 px): full-screen oat panel rising by clip-path (0.6 s); the floor plan drawn large with tappable rooms; contact lines at the bottom.
- Footer (espresso): columns Collections (3) · Rooms (9) · Visit · Follow (3) · newsletter "Fabric letters, four a year"; a giant "Nap & Grain" wordmark (Bodoni 15.6vw so it fits edge to edge) filled with a velvet sheen: background-clip text with a radial highlight following the pointer; legal line "© 2026 Nap & Grain Upholstery House. Fictional brand for demonstration." + Privacy · Terms.
 
=== 8. PERFORMANCE, FALLBACKS, ACCESSIBILITY
 
Target: 90+ on Lighthouse / PageSpeed for Performance (mobile and desktop), Accessibility, Best Practices and SEO, on the home page and one PDP, measured on a production build (`npm run build && npm run start`), median of 3.
Budgets: home LCP < 2.0 s, TBT < 150 ms, CLS < 0.05, FCP < 1.5 s on mobile. Initial JS as small as the framework allows (React + Next alone are about 175 KB gzipped; report the real number).
LCP rule (this is what decides the mobile score): on phones the LCP element must be the hero H1 TEXT, painted in the first frame.
- The H1 is one text block (inline spans + `<br>`, not block spans, which are separate candidates).
- The copy comes before the stage in the document.
- On a 412×823 screen the poster's visible slice must be smaller than the H1's area: larger phone H1, CTAs stacked, scroll cue in the flow.
- Verify with a PerformanceObserver at 412×823 under 4× CPU throttle: one LCP entry, tag H1, at the same time as FCP.
- On desktop the full-bleed poster may be the LCP (≤ 90 KB). On the PDP the three-quarter still is the LCP; its simulated mobile LCP will be above 2 s on localhost while the score stays 90+. Say so in the report.
Loading strategy:
1. Sections are Server Components; "use client" only on leaves.
2. three, R3F, drei, postprocessing and CSM load only on the first user interaction.
3. Every view box holds its baked poster first (explicit sizes); the canvas draws a view only when it is live.
4. GSAP, SplitText, Lenis and the motion features load after the page (section 4).
5. Stills: `<picture>` with AVIF + WebP (`getImageProps` for the `<img>`), lazy below the fold, blur placeholders from `data/baked.json`.
6. No layout shift: media and overlays reserve their boxes or are fixed/absolute; fonts via next/font.
7. No third-party scripts, map embeds, icon fonts or analytics.
8. Animate only transform, opacity, filter, clip-path.
9. Render loop stops when nothing is visible; brush and motes update only while their view is.
Determinism: every random value from the seeded generator (seed 1907).
Reduced motion map: Lenis off · pinned rooms become stacked layouts (stills + cards, static anatomy SVG); the Atelier stays sticky · drape wipe → 200 ms crossfade · brush trails off · parallax and breathing off · blobs static · counters show final values · hems hidden (hard cuts) · cursor off.
Touch: no custom cursor; no horizontal walk; hover info also on tap; 44 px minimum targets.
Accessibility: skip link "Skip to the showroom"; one H1 per page; landmarks; canvases `aria-hidden` with text equivalents nearby; real buttons/inputs/radios with labels; visible brass focus ring; colour never the only signal; form errors announced; `lang="en-US"`.
SEO: title and description from data, canonical, Open Graph image (wordmark on limewash), JSON-LD FurnitureStore (address, hours, phone, country US) on home, Product on PDPs, sitemap with the 14 PDPs, robots allows all except `/bake`.
 
=== 9. BUILD ORDER
 
1. Scaffold, fonts, tokens, the layering model, `data/site.ts` with every record from section 2, utility classes, Button/Eyebrow/Hem/Swatch.
2. All sections and the PDP template static, real copy, placeholders in every view box; nav, menu, floor plan, footer, Visit form, Compare + fit logic, Press-to-sit.
3. Motion: lazy GSAP + Lenis, observer reveals, hems, cursor, magnetic, tilt cards, sticky tracks writing progress.
4. WebGL: StageCanvas + Views, tiers, texture baker, UberFabric, NapBrush, kits for all 14 pieces, Sun Room. Get the hero rendering through `/bake?piece=hero` first, then the studio view, then Anatomy, Atelier (wipe, split, loupe, lights), Long Room, Velvet Room, Stone Hall, PDP viewer.
5. Bake: `npm run bake`; review contact sheets of all 14 pieces; wire the stills into every poster and PDP tab.
6. Polish: brush strength per family, light balance, composer on the high tier, reduced-motion and no-WebGL paths.
7. Verify (section 10).
 
=== 10. QUALITY BAR, VERIFY, DELIVER
 
Perceptual checks:
- The hero is a full-bleed morning interior before any JS runs: an arched window, mullion stripes on the wall and across the sofa, soft shadows, a readable headline on a scrim that melts into the wall. It becomes live with no jump, at 1024, 1280, 1440 and 1920 px wide.
- The second section never looks like the hero: different side of the room, evening light, then morning as you scroll. No edge between the two.
- Velvet reads as velvet at a glance (bright grazing edges, darker faces, a clearly visible trail that fades). Leather shows grain and gloss; bouclé looks loopy in the loupe.
- Furniture proportions match the data dimensions.
- Every light ↔ dark change passes behind a stitched hem.
- No section looks like a product grid; every collection is a room with its own camera move. No reveal gimmicks on the Long Room sofas.
- A phone user can read every word and book a viewing without waiting for 3D.
Verify:
- `npm run typecheck`, `npm run lint` and `npm run build` with zero errors and zero warnings.
- `npm run lh` against the production server; close any other tab running WebGL first. All four categories 90+ on both pages and both form factors; report scores, LCP, TBT, CLS.
- Check 390, 768, 1280 and 1920 px; reduced motion; `?nogl=1`; `?tier=high` against `?tier=mid` (same framing and exposure); a tier step-down keeps its shadows; keyboard-only booking; zero console errors, including with a browser extension that writes attributes onto `<body>`.
Deliver: package the project as `website.zip` (exclude node_modules, .next and build output; include `public/baked/`), then show the folder tree and a short, honest list of anything not met and why.
 
=== 11. KNOWN TRAPS (design around these from the first line)
 
1. GLSL `smoothstep(a, b, x)` with a > b is undefined and returns 0 on ANGLE/Metal. Always write `1.0 - smoothstep(b, a, x)`.
2. Depth is only written when the depth test is on: a depth-only mask needs `depthTest: true, depthFunc: AlwaysDepth`.
3. `RoundedBoxGeometry(…, segments, …)` builds segments × 2 + 1 divisions per edge: 10 means 5,292 triangles per cushion. Count triangles from `renderer.info`, not by estimate.
4. An 8-bit render target cannot fade by multiplication (small values stop changing). Fade by subtraction.
5. drei Views never clear the canvas and do not skip a box that only touches the viewport edge; a pinned view just below a 100svh hero will draw over it unless edge-touching counts as off screen.
6. Sticky and fixed elements are stacking contexts: UI inside the same sticky wrapper as its view box ends up under the canvas. Use the two-layer structure.
7. Do not wrap the rooms in `<Suspense>`: React streams large boundaries out of order inside hidden containers, so no-JS visitors see only the hero and anything measured at mount reads zero. Without the boundaries, hydration still measured about 20 ms TBT.
8. Never let SplitText or a class toggle touch a room's DOM before it has hydrated.
9. Lighthouse on localhost simulates an image LCP at about 3.7 s on mobile no matter how small the image is, because every script and font finishes before first paint there. Only a text LCP painted at FCP collapses to FCP. Hence the LCP rule in section 8.
10. Changing a light's shadow-map size without disposing the old map loses its shadows; a context object that changes identity on a tier step-down rebuilds every piece.
11. A preview tab left open on a WebGL page skews Lighthouse TBT; so does running it during a build.
12. Under AgX, preset sun intensities need a fixed gain (2.8 here) and the ambient must stay well below the sun, or the room goes flat and saturated cloths wash out.
13. Unlayered custom CSS beats Tailwind utilities; a custom `transform: translateY(-50%)` plus Tailwind's `-translate-y-1/2` (which uses the `translate` property) doubles the offset.
14. The dev-tools badge and a missing favicon both end up in screenshots or the console; switch the first off and ship an icon.

Import in WordPress Using UiChemy MCP

Once your AI tool has generated the website, bring it into WordPress with this second prompt. It works from any AI tool connected to your site over UiChemy MCP. If you haven't connected yet, see Set Up AI to WordPress first.

First, thoroughly analyze and understand the existing website code, including its structure, styling, layout hierarchy, typography, colors, spacing, responsive behavior, animations, interactions, and scroll-driven behavior.

Once you fully understand the code and how each page works, start converting the website into WordPress using the UiChemy MCP.
Convert the page section by section, with each section created as an individual UiChemy Composer section. Preserve the original structure and styling as closely as possible while converting each section.

Ensure that the final WordPress page matches the original site in:

* Visual appearance
* Layout and spacing
* Typography and colors
* Images and media
* Animations and interactions
* Responsive behavior
* Overall user experience

Keep the WebGL and 3D scenes (the sun room, the anatomy film, the atelier viewer, and the showroom rooms) running as custom code or embeds, and make all the surrounding text, headings, buttons, and layout editable through UiChemy Composer.

Next Steps