3D Portal Worlds Journey is a full-screen, real-time 3D homepage that plays by itself. The camera drifts through eight original worlds, about twenty seconds in each, then flies through a plain capsule-shaped gate into the next: a citrus glasshouse floating in morning fog, a rain-soaked rooftop garden at blue hour, a coral reef hanging in open sky, a salt-flat mirror under a ringed planet, a library whose pages flock like starlings, a concrete canyon with waterfalls of light, an aurora tundra crossed by glass whales, and an orchard of brass clockwork trees. Everything is drawn in code with three.js and small shaders, with no model, texture, image or audio files, so the site loads straight into the first world with no start screen.
It is framed as the homepage of an ambient-visuals studio, with a slide-in drawer for offers, prices, past rooms and a contact address, but it suits anyone who wants a showpiece rather than a brochure: motion designers, creative studios, musicians, sleep and focus apps, or a developer's personal page.
The design gives every world its own fixed palette, light, fog and one signature motion, while the interface stays thin: a wordmark, a title card that fades in and out on a fixed rhythm, a slim world index with a countdown, and three round controls for pause, drag-to-look and sound. Each world has a generated ambient soundscape that stays off until asked for and cross-fades at the gates. Phones get lighter rendering, a bottom bar and a bottom sheet; reduced-motion visitors get a still camera with slow cross-fades.
To adapt it, change the brand, intro line, city and audience variables and the drawer copy follows. Each world is a self-contained module with its own palette, title and caption, so you can retitle, recolor, reorder or cut worlds without touching the engine.
The live demo was built from exactly this text — nothing added.
# 3D Portal Worlds Journey
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
A full-screen, hands-off journey through eight original 3D worlds that are drawn entirely in code and linked by gates you fly through, serving as the homepage of [BRAND], an invented ambient-visuals studio in [CITY]. The camera drifts through each world for about twenty seconds, a title card names the place, a gate opens onto the next world, and the camera passes through. It loops forever without input. A slim world index lets the visitor jump, pause or switch to drag-to-look, each world has its own generated ambient sound (off until asked for), and a Studio drawer carries what the studio offers for [VENUES]. The page opens already inside the first world, the Citrus Glasshouse: there is no start screen.
- Audience: People who commission or program screens in shared spaces (hotel and venue managers, exhibition designers, clinic operators) and anyone who lands on the page and simply wants to watch. They decide in the first three seconds, from the picture alone, whether this studio has taste.
- Goal: Let the work sell itself: hold the visitor through at least two gate crossings, make each world memorable enough to be named ('the one with the glass whales'), and make it one click to see prices and write to the studio.
- Tone: Calm, exact, a little dry. Short sentences with concrete nouns and numbers. No exclamation marks, no hype words, nothing about technology on the surface: the copy talks about rooms, light and time.
## Stack
- Framework: Vite 5 + TypeScript + three.js
- Styling: Vanilla CSS
- Libraries: three (MIT), vite (MIT), typescript (Apache-2.0), @types/three (MIT), lucide (ISC), @fontsource-variable/fraunces (OFL-1.1), @fontsource-variable/manrope (OFL-1.1), @fontsource/dm-mono (OFL-1.1)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
- Create a Vite 5 vanilla TypeScript project (vite 5.4, typescript 5.9, strict mode) with no UI framework. One HTML entry, index.html, with lang set to en. The npm build script is 'tsc --noEmit && vite build'.
- In vite.config.ts set base to './', build.outDir to 'dist', build.sourcemap to false and build.target to 'es2020'. Do not copy src/ into dist/.
- Install three 0.179 and @types/three 0.179 and import from the three package only. Do not use any loader (model, texture, audio or font loaders), the post-processing addons or the orbit controls addon; write the small amount of camera and input code yourself.
- Statically import the engine and src/worlds/01-citrus-glasshouse.ts in src/main.ts. Load worlds 2 to 8 with dynamic import() from a table in the journey engine so each becomes its own chunk.
- Install lucide 0.499.0 and import only the eight icons named in Assets; build each SVG with createElement from the package.
- Import the fonts once at the top of src/styles.css or main.ts: @fontsource-variable/fraunces/full.css, @fontsource-variable/fraunces/full-italic.css, @fontsource-variable/manrope/index.css and @fontsource/dm-mono/400.css. Add link rel=preload tags for the Fraunces latin normal and italic woff2 files.
- Write the GLSL as template strings in the world files (or .glsl files imported with ?raw). Keep one shared chunk of helpers: hash, value noise, 3D simplex noise, the dither function and the fog blend.
- Put the overlay markup (wordmark, intro block, controls, index rail, bottom bar) directly in index.html so it paints before JavaScript runs; scripts only attach behavior and fill in the world list from src/content.ts.
- Define the CSS custom properties --ink, --accent and --shade on :root with world 1's values and register them with @property so they can transition.
- Put every string, world name, caption and palette in src/content.ts, and the variables [BRAND], [TAGLINE], [VENUES], [CITY] and [CONTACT_EMAIL] at the top of that file.
## Variables
- [BRAND] — Studio or product name (default: "Slow Meridian"). Shown as the wordmark, in the document title and in the Studio drawer. Invented; one to three words.
- [TAGLINE] — Intro line over the first world (default: "Ambient worlds for rooms that need to breathe."). One short sentence, at most 50 characters, set large in italic over the glasshouse for the first seven seconds.
- [VENUES] — Where the worlds are shown (default: "hotel lobbies, concert halls and waiting rooms"). A plural noun phrase that completes 'making real-time scenes for ...'. The drawer's offers and client list are rewritten to match it.
- [CITY] — Home city (default: "Lisbon"). Used in the intro eyebrow and the drawer. The street address and the client towns are rewritten to suit it.
- [CONTACT_EMAIL] — Contact email (default: "[email protected]"). The mailto link in the Studio drawer. The only outbound link on the page.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/3d-portal-worlds-journey in the footer (default: yes; delete this line to remove it)
The copy under Pages & Sections is written for the default values. If your values differ, rewrite every headline, paragraph, label and image for them — same length, tone and structure. Layout, colors, type and motion stay as described.
Keep all copy, image paths and links in one content file (for example `src/content.ts`), keyed by section, so the content can be swapped later without touching components.
## Design
### Colors
- Panel `#0B0F14` — Background of the Studio drawer, the phone bottom bar and the world sheet, at 78% opacity over a 20px backdrop blur. Never used as a page background.
- Panel Text `#F4EFE6` — All text inside panels.
- Panel Muted `#A9B0B8` — Secondary text inside panels: prices, captions, addresses.
- Panel Hairline `rgba(255,255,255,0.16)` — 1px borders and dividers inside panels.
- Ink Light `#F6F1E6` — Overlay text color on dark worlds (worlds 2, 4, 5, 6, 7, 8). Each world sets --ink to its own near-white listed below; this is the fallback.
- Ink Dark `#12301F` — Overlay text color on the two bright worlds (1 and 3 use their own dark inks listed below).
- W1 Fog `#F6F2E3` — Citrus Glasshouse: fog, canvas clear color, page background before the first frame, scrim color (--shade).
- W1 Sky Mint `#BFE6DC` — Citrus Glasshouse: top of the sky gradient, glass tint.
- W1 Leaf `#1F8A4C` — Citrus Glasshouse: lit side of the tree canopies.
- W1 Deep Leaf `#0F4D2E` — Citrus Glasshouse: shaded side of canopies, iron ribs in silhouette.
- W1 Lemon `#FFC914` — Citrus Glasshouse: 60% of the fruit, light-shaft tint.
- W1 Orange `#FF8A1F` — Citrus Glasshouse: 40% of the fruit.
- W1 Terracotta `#C8643C` — Citrus Glasshouse: pots and the tiled aisle border.
- W1 Sunlight `#FFE2A0` — Citrus Glasshouse: color of the directional light.
- W1 Ink `#12301F` — Citrus Glasshouse: --ink for overlay text.
- W1 Accent `#E8590C` — Citrus Glasshouse: --accent for the progress tick, gate rim and focus ring.
- W2 Night Indigo `#0B1340` — Blue Hour Rooftop: top of the sky.
- W2 Electric Indigo `#3B4BD8` — Blue Hour Rooftop: horizon band of the sky, rim light on wet surfaces.
- W2 Fog `#1A2470` — Blue Hour Rooftop: fog.
- W2 Wet Deck `#101736` — Blue Hour Rooftop: deck, planters, city towers.
- W2 Window Amber `#FFB347` — Blue Hour Rooftop: lit windows, string lights; --accent.
- W2 Deep Amber `#FF7A1A` — Blue Hour Rooftop: the nearest lamps and their reflections.
- W2 Foliage `#1E6B5A` — Blue Hour Rooftop: grasses and small trees.
- W2 Rain `#AFC4FF` — Blue Hour Rooftop: rain streaks and ripple rings.
- W2 Ink `#F3EEDF` — Blue Hour Rooftop: --ink. Scrim (--shade) is #070B26.
- W3 Turquoise `#0FA3C7` — Sky Reef: top of the sky.
- W3 Aqua Haze `#BFF3EC` — Sky Reef: horizon, fog and cloud shadow.
- W3 Reef Rock `#2B6E86` — Sky Reef: floating rock.
- W3 Coral Pink `#FF5E8A` — Sky Reef: branch coral and jellyfish glow.
- W3 Coral Orange `#FF8F5C` — Sky Reef: brain coral and tube clusters.
- W3 Magenta `#D83A8F` — Sky Reef: fan coral; --accent.
- W3 Sea Teal `#12C7B2` — Sky Reef: sea grass ribbons.
- W3 Jelly `#FFD1E8` — Sky Reef: jellyfish bells.
- W3 Sunlight `#FFF4E0` — Sky Reef: color of the directional light.
- W3 Ink `#06303F` — Sky Reef: --ink (dark, because this world is bright). Scrim (--shade) is #D9F7F2.
- W4 Zenith Violet `#2B1672` — Salt Mirror: top of the sky.
- W4 Rose `#B0387F` — Salt Mirror: middle band of the sky.
- W4 Tangerine `#FF7A2F` — Salt Mirror: horizon band; --accent.
- W4 Sun Glow `#FFD08A` — Salt Mirror: glow where the sun has just set, planet ring.
- W4 Planet Lit `#E9C9F2` — Salt Mirror: lit side of the ringed planet.
- W4 Planet Shadow `#5B3FA8` — Salt Mirror: dark side of the planet.
- W4 Fog `#C24C7A` — Salt Mirror: fog.
- W4 Silhouette `#1C0E3F` — Salt Mirror: cairns and posts; scrim (--shade).
- W4 Ink `#FFF4E6` — Salt Mirror: --ink.
- W5 Vault `#2A0508` — Murmuration Library: ceiling vault.
- W5 Oxblood `#5C0F14` — Murmuration Library: walls and the long carpet.
- W5 Fog `#3A070B` — Murmuration Library: fog.
- W5 Shelf Wood `#3B0A0D` — Murmuration Library: shelves, ladders, tables.
- W5 Spine Red `#A3271F` — Murmuration Library: 55% of the book spines (another 30% use #7A1420, 5% use #1F3A3A).
- W5 Gilt `#C8922E` — Murmuration Library: 10% of the spines, balcony rail.
- W5 Paper `#FFF1CF` — Murmuration Library: the flying pages; --ink.
- W5 Candle Gold `#FFC24B` — Murmuration Library: flames and their light; --accent.
- W5 Floor `#1A0305` — Murmuration Library: floor outside the carpet; scrim (--shade).
- W6 Overcast `#DDE6F0` — Lightfall Canyon: the slit of sky.
- W6 Fog `#8F98A6` — Lightfall Canyon: fog.
- W6 Concrete Light `#B9BEC6` — Lightfall Canyon: lit concrete faces.
- W6 Concrete Mid `#7C838E` — Lightfall Canyon: most wall surfaces.
- W6 Concrete Dark `#2E333B` — Lightfall Canyon: undersides and deep recesses.
- W6 Cyan `#00E5FF` — Lightfall Canyon: four of the seven lightfalls; --accent.
- W6 Magenta `#FF2BD6` — Lightfall Canyon: three of the seven lightfalls.
- W6 Channel `#1B1F26` — Lightfall Canyon: the water channel. Scrim (--shade) is #14171C; --ink is #F4F7FA.
- W7 Night `#05070F` — Whale Aurora: sky; scrim (--shade).
- W7 Horizon `#0E1B2E` — Whale Aurora: horizon glow.
- W7 Fog `#070B18` — Whale Aurora: fog.
- W7 Aurora Green `#3DFFA2` — Whale Aurora: lower edge of the aurora; --accent.
- W7 Aurora Teal `#19D3C5` — Whale Aurora: middle of the aurora.
- W7 Ice Violet `#B39DFF` — Whale Aurora: top of the aurora, whale rim light.
- W7 Deep Violet `#6B4BD8` — Whale Aurora: snow shadows.
- W7 Snow `#DCE8F5` — Whale Aurora: snow where the moon hits it.
- W7 Whale Glass `#CFE6FF` — Whale Aurora: whale bodies. --ink is #EAF6FF.
- W8 Deep Teal `#052B33` — Clockwork Orchard: top of the sky.
- W8 Fog `#0B4A52` — Clockwork Orchard: fog and horizon.
- W8 Ground `#06343B` — Clockwork Orchard: ground.
- W8 Moss `#0E6B66` — Clockwork Orchard: moss between the brass rails.
- W8 Brass `#D9A441` — Clockwork Orchard: trunks, gears, leaves.
- W8 Brass Light `#FFD98A` — Clockwork Orchard: highlights; --accent.
- W8 Brass Dark `#7A5417` — Clockwork Orchard: shaded brass.
- W8 Copper `#C4683A` — Clockwork Orchard: every third gear and the pendulum bobs.
- W8 Verdigris `#3FC1A5` — Clockwork Orchard: patina on trunk collars.
- W8 Bulb `#FFE6A8` — Clockwork Orchard: glowing glass fruit. --ink is #FFF3D6; scrim (--shade) is #031D22.
### Typography
- Display: wordmark, intro line, world names, drawer headings. Fraunces Variable with font-variation-settings 'opsz' 144, 'SOFT' 100, 'WONK' 0. World names at weight 300, upright. Intro line at weight 300 italic. Wordmark at weight 500.: Fraunces Variable (OFL), weights 300/500
- Text: captions, buttons, drawer body. 16px/24px body, 14px/20px controls, weight 400, 500 for buttons and names in the index.: Manrope Variable (OFL), weights 400/500
- Mono: world numbers, countdown, eyebrows, prices. 12px, letter-spacing 0.08em, uppercase for eyebrows.: DM Mono (OFL), weights 400
### Layout & motion
- Spacing: 8px base unit. Desktop overlay margin 40px on all sides; phone margin 20px (12px for the bottom bar). Card slot max-width 620px. Controls are 44px circles with 12px gaps. Drawer width 440px with 32px padding; drawer sections are separated by 40px and a 1px hairline. The page never scrolls: html and body are 100dvh with overflow hidden; only the drawer and the bottom sheet scroll inside themselves.
- Radius: Controls and the phone bottom bar are fully round (999px). Panels: 20px on the drawer's inner corners and the top corners of the bottom sheet. The gate is a capsule: a rectangle 2.6 units wide and 4.4 units tall whose top and bottom are half circles of radius 1.3. No other rounded shapes in the interface.
- Motion: Journey clock: every world runs the same 22.4 s timeline. 0 to 1.6 s arrive, 2.5 s title card in, 12.5 s title card out, 14.0 s gate opens, 20.0 s approach starts, 22.4 s crossing. Eight worlds loop in 179.2 s and never stop.
- Motion: Camera drift: the camera rides a centripetal Catmull-Rom rail. Speed is baseSpeed times m(t). m falls from 3.0 to 1.0 over the first 1.6 s with easeOutCubic, holds 1.0 until 20.0 s, then rises from 1.0 to 3.0 over 2.4 s with easeInCubic. baseSpeed is railLength / 24.4, about 1.5 units per second, so the speed leaving one world equals the speed entering the next.
- Motion: Gate opening: at 14.0 s a vertical hairline of light widens into the full capsule over 1600 ms with cubic-bezier(0.16, 1, 0.3, 1). The rim glow then breathes between 70% and 100% opacity on a 4 s sine until the crossing.
- Motion: Gate pass-through: 2.4 s, accelerating with easeInCubic. Over the same 2.4 s the overlay colors (--ink, --accent, --shade), the outer fog tint and the sound cross-fade with cubic-bezier(0.45, 0, 0.55, 1). The swap of worlds happens 0.15 units before the gate plane and must be invisible: no flash, no fade to black, no cut.
- Motion: Title card in: number fades in 400 ms; the name rises 18px and fades in over 900 ms with cubic-bezier(0.22, 1, 0.36, 1), 80 ms stagger per line; the caption follows 250 ms later over 600 ms. Title card out: 700 ms, 8px upward, cubic-bezier(0.4, 0, 1, 1). Same place every time.
- Motion: Interface: hover, press and toggle states take 200 ms with cubic-bezier(0.2, 0, 0, 1). The drawer and the bottom sheet slide in over 520 ms with cubic-bezier(0.22, 1, 0.36, 1) and out over 320 ms with cubic-bezier(0.4, 0, 1, 1).
- Motion: Look mode: drag input is smoothed with an exponential half-life of 120 ms. When look mode is switched off, or when an approach starts, the view returns to the rail direction over 1200 ms with easeOutCubic.
- Motion: One signature motion per world, named in each world section. Everything else in a world is still or moves only because of that motion (leaves move because fog passes, reflections move because rain lands). Nothing spins, pulses or floats for decoration, and no interface element animates on a loop except the progress tick.
- Motion: Reduced motion: the camera stands still at each world's rest pose, worlds change by a 2500 ms cross-fade every 20 s, in-world motion runs at 40% speed, title cards fade without moving, and the film grain is static.
- Imagery: No image, model, texture or audio files. Every world is built at run time from three.js primitives, instanced meshes, noise-displaced geometry, points and small GLSL shaders; any sprite or matcap texture is painted on an in-memory canvas at start-up. No shadow maps, no transmission materials and no post-processing passes: glow is additive geometry, depth is fog. All sky and fog gradients add a one-step hash dither so dark gradients never band. A film-grain layer sits above the canvas: a 128px noise tile painted on a canvas at start-up, used as a CSS background at 6% opacity with mix-blend-mode overlay, shifted to a new offset 8 times per second. A soft vignette (radial gradient, transparent to 22% black at the corners) sits under the overlay text. Behind the text in the lower left there is a scrim: a radial gradient of the current world's --shade color, 72% at the corner fading to 0 at 60% of the viewport width, strong enough that the caption keeps a contrast of at least 4.5:1 in every world.
## Pages & Sections
### [BRAND] · Ambient worlds (`index.html`)
1. **Stage and first frame** — The page is one full-screen WebGL scene with a thin interface over it. There is no start screen, no loader, no progress bar, no spinner and no click-to-enter state. The first thing a visitor sees is the inside of the Citrus Glasshouse with the camera already drifting down the aisle, the [BRAND] wordmark top left and the intro line in the lower left. A still screenshot taken at any moment from 0 s onward must look like a finished poster. To guarantee that: (1) index.html ships the wordmark, the intro block and the controls as real HTML, styled by CSS that loads with the page, so they are visible before any script runs. (2) Until the first WebGL frame, html has a CSS background that stands in for the glasshouse: a linear gradient from #BFE6DC at the top to #F6F2E3 at 55%, with a radial glow of #FFC914 at 20% opacity in the upper right and a soft #1F8A4C band at 18% opacity along the bottom. The canvas clear color is #F6F2E3. (3) The engine and the Citrus Glasshouse module are in the entry bundle and build synchronously; the other seven worlds are separate lazy chunks. (4) The first WebGL frame must be on screen within 2 seconds of navigation on a mid-range laptop and within 3 seconds on a mid-range phone. Measure with performance.now() in development and cut glasshouse detail until it holds. (5) Fonts use font-display swap and the two Fraunces latin files are preloaded, so text never waits for a font. The document title is '[BRAND] · Ambient worlds'. If the address has a hash such as #/salt-mirror the journey starts in that world instead, showing that world's sky gradient as the CSS background until its chunk has loaded; with no hash it always starts in world 1. The hash is updated with history.replaceState at each crossing.
Layout: Layers from back to front: html background gradient; canvas#stage fixed, inset 0; vignette; grain; scrim; div#ui fixed, inset 0, pointer-events none (children that are controls set pointer-events auto); drawer and sheet. Camera: perspective, vertical field of view 55 degrees in landscape and 72 degrees when the viewport is taller than wide, near 0.1, far 600. Renderer: no tone mapping, sRGB output, antialias on only when the starting quality tier is high. Handle resize and orientation change by updating size, aspect, field of view and render-target size. Pause the animation loop and suspend audio while document.hidden. Clamp the frame delta to 50 ms.
Motion: The canvas does not fade in; the CSS stand-in is simply replaced by the first rendered frame, which uses the same colors, so the change reads as the picture sharpening.
2. **Journey engine** — src/engine/journey.ts owns one clock and one state machine: drift, approach, crossing. Each world module exports the same interface: id, slug, name, caption, palette, rail (five control points), rest pose for reduced motion, optional glance, async init(ctx) that builds the scene in steps and yields to the next animation frame whenever a step has used more than 8 ms, update(time, delta, quality), setQuality(tier), dispose() and createAmbience(audioContext, output). All worlds share one coordinate convention so the engine stays simple: the camera enters at (0, 2.2, 0) facing negative Z, and the gate stands at (0, 2.2, -36) facing the camera. The rail is a centripetal Catmull-Rom curve through the world's five points, sampled by arc length. The camera looks at the rail point 7 units ahead; during the approach this blends to looking straight down negative Z so it meets the gate square on. A world may define one glance: between 6 s and 12 s the view turns by a fixed yaw and pitch toward that world's main subject and back, each way 3 s with easeInOutSine. A vertical breathing bob of 0.06 units on a 9 s sine keeps the frame from feeling locked to a track. Schedule for the following world: start its dynamic import at 4 s, run init from 8 s, call renderer.compileAsync for it before 14 s so the gate opening never hitches. Only two worlds are ever alive: the current one and the one behind the gate. After a crossing the old world is disposed (geometries, materials, canvas textures, render targets) and renderer.info.memory must return to the same numbers each loop. After world 8 the gate leads back to world 1. Use one seeded pseudo-random generator per world (mulberry32, seed = world number times 1000) so every visit builds the identical scene.
Layout: No visible interface. Files: src/main.ts, src/content.ts (all copy, world names, captions and palettes in one place), src/engine/ (journey, rail, gate, quality, input), src/worlds/ (one file per world), src/audio/ (engine and shared helpers), src/ui/ (chrome, card, index, sheet, drawer), src/styles.css.
Motion: Speed profile exactly as in the Design motion list: 3.0x easing down to 1.0x over 1.6 s (easeOutCubic), 1.0x until 20.0 s, up to 3.0x by 22.4 s (easeInCubic). Integrate distance each frame as baseSpeed * m(t) * delta.
3. **Gate** — The gate is the portal between worlds and the only transition in the site. It is a plain upright capsule opening, 2.6 units wide and 4.4 units tall, standing on the ground at the end of the rail, with a rim 0.03 units thick in the next world's accent color and a soft additive halo 0.5 units wide at 25% opacity. It has no frame, machinery, runes, swirl or particles. From the moment it opens, the next world is visible through it, live and with correct parallax. Implementation: render the next world into a WebGLRenderTarget with a second camera whose rotation equals the main camera's and whose position is the main camera's position minus the gate position plus the next world's entry position (0, 2.2, 0); the capsule mesh uses a ShaderMaterial that samples the target with screen-space coordinates (gl_FragCoord.xy divided by the drawing-buffer size) and ends with the colorspace_fragment include so a pixel seen through the gate has exactly the value it will have after the swap. Use a half-float target when the device can render to one, otherwise 8-bit; give it a depth buffer; 4 samples on the high tier, 0 otherwise. The target is rendered only from 14.0 s on. Its size is the drawing buffer times the tier factor (0.75 high, 0.5 medium, 0.35 low) and ramps to 1.0 during the last 1.2 s of the approach so nothing sharpens at the swap. When the camera is 0.15 units from the gate plane, swap: the next world becomes the current scene, the main camera takes the second camera's position, the journey clock resets to 0, and the old world is disposed on the next idle frame. Check the swap by stepping one frame before and one frame after: there must be no jump in brightness, saturation, position or sharpness. During the approach the current world's fog color moves 40% of the way toward the next world's fog color, so the surroundings begin to take on the destination before the camera leaves.
Layout: World space: center (0, 2.2, -36), facing positive Z. Each world leaves a clear 5 unit wide, 6 unit tall corridor in front of the gate so nothing intersects it, and places something of its own on both sides (the last arch of the glasshouse, the roof parapet, two coral arms, and so on) so the gate reads as standing in the place rather than pasted on.
Motion: Opening: scale X from 0.01 to 1 over 1600 ms with cubic-bezier(0.16, 1, 0.3, 1) while scale Y stays 1, so it begins as a hairline of the next world's light. Rim halo breathes 70% to 100% on a 4 s sine. Jumping from the index summons a temporary gate 10 units ahead of the camera on its current heading: 600 ms opening with the same curve, then an 1800 ms straight approach with easeInCubic; after a summoned crossing the view eases to the new rail's direction over 1200 ms with easeOutCubic.
4. **Quality tiers and phones** — The journey must hold a steady frame rate on a mid-range phone. src/engine/quality.ts picks a starting tier and can only step down. Start at medium when the pointer is coarse, when the shorter viewport side is under 768px, or when navigator.hardwareConcurrency is 4 or less; otherwise start at high. High: pixel ratio capped at 1.75, particle and instance counts at 100%, gate target factor 0.75. Medium: pixel ratio capped at 1.5, counts at 50%, factor 0.5, terrain and curtain meshes at half their segment counts. Low: pixel ratio 1.0, counts at 30%, factor 0.35, point lights reduced to the two nearest. A monitor averages frame time over 120 frames, ignoring the approach; if two windows in a row average above 22 ms it steps down one tier and never steps back up in that session. Counts change through InstancedMesh.count and geometry draw ranges, never by rebuilding. All particle motion (rain, mist, dust, salt, filings, stars) is computed in the vertex shader from a time uniform and per-particle seeds, with no per-frame buffer uploads; only the page flock, the jellyfish and the whales update matrices on the CPU. Listen for webglcontextlost (prevent default, stop the loop) and webglcontextrestored (rebuild the current world and continue); a lost context must never leave a white or black page.
Layout: No visible interface. The per-world counts in the world sections below are the high-tier numbers.
5. **Overlay interface** — Thin and quiet. All overlay text uses the current world's --ink color and all hairlines, the progress tick and focus rings use --accent; accent never carries text. Top left: the wordmark '[BRAND]' in Fraunces 500, 22px (18px on phones). Top right: a text button 'Studio' in Manrope 500, 14px, with a 1px underline that draws from left to right on hover; it opens the Studio drawer. Lower left: the card slot. On first load the slot holds the intro block, visible from the very first paint: eyebrow in mono 'AMBIENT VISUALS STUDIO · [CITY]' (uppercase), then the headline '[TAGLINE]' in Fraunces 300 italic at clamp(36px, 5vw, 72px), line-height 1.02, letter-spacing -0.02em, max-width 13 characters per line on desktop, then one line in Manrope 16px: 'Eight worlds, drawn live in your browser. It plays on its own; sound is off until you ask.' The intro block stays until 7.0 s, fades out over 700 ms, and world 1's first title card appears at 8.0 s instead of 2.5 s. It is shown once per page load. Lower right (desktop): three round 44px controls with a 1px border of --ink at 35% opacity and no fill: Pause or Play, Look, Sound. Next to the Sound control a mono label always states the truth: 'Sound off' or 'Sound on'. Hover on desktop shows a small mono label above each control: 'Pause', 'Drag to look', 'Sound'. Every control is a button with an aria-label and aria-pressed, has a visible 2px --accent focus ring with 3px offset, and works from the keyboard.
Layout: Desktop 1440x900: wordmark at left 40, top 32. Studio button at right 40, top 34. Card slot at left 40, bottom 56. Controls at right 40, bottom 40, in a row with 12px gaps, the Sound label to the left of the row. The world index rail sits at right 40, vertically centered (next section but one). Phone 390x844: wordmark at left 20, top 18; Studio at right 20, top 20. The three controls move into a bottom bar: fixed at left 12, right 12, bottom 12 plus the safe-area inset, height 56, fully round, Panel color at 78% with 20px backdrop blur and a hairline border. The left part of the bar is the world chip, a button showing mono '01/08', the world name in Manrope 500 14px (ellipsis if it does not fit) and the countdown; the right part holds Pause, Look and Sound as 44px icon buttons without borders (the Sound label is replaced by the icon change plus a 6px --accent dot when sound is on). The card slot sits at left 20, right 20, bottom 92.
Motion: Overlay colors cross-fade with the worlds: register --ink, --accent and --shade with @property as colors and transition them over 2400 ms with cubic-bezier(0.45, 0, 0.55, 1) starting when the approach starts. Control hover: border goes to 100% opacity and the icon moves up 1px, 200 ms.
6. **Title card** — Each world shows one title card in the card slot: a mono line with its number ('03 / 08'), its name in Fraunces 300 at clamp(44px, 6.2vw, 96px), line-height 0.95, letter-spacing -0.025em, and a one-line caption in Manrope 16px/24px, max-width 34 characters per line. Names and captions for the defaults: 01 Citrus Glasshouse, 'Morning fog, eighteen citrus trees and nothing due until noon.' 02 Blue Hour Rooftop, 'Rain on the planters, and every window across the street still lit.' 03 Sky Reef, 'Coral with no sea around it, and jellyfish keeping the tide.' 04 Salt Mirror, 'Two dusks, one above the other, under a planet with rings.' 05 Murmuration Library, 'After closing, the pages leave their books and fly as one.' 06 Lightfall Canyon, 'Concrete sixty meters high, and light poured down it like water.' 07 Whale Aurora, 'Glass whales cross the tundra once the sky turns green.' 08 Clockwork Orchard, 'Thirty brass trees, wound each evening, ticking toward harvest.' The names and captions describe the worlds, not the brand, so they stay when the variables change; only rewrite them if the user replaces a world.
Layout: Always in the card slot, left aligned, bottom anchored, so the name grows upward and the caption baseline never moves. On phones the name is clamp(40px, 11vw, 56px) and may wrap to two lines. The card is aria-live polite so screen readers hear each world once.
Motion: In at 2.5 s: number fades over 400 ms; each line of the name rises 18px and fades in over 900 ms with cubic-bezier(0.22, 1, 0.36, 1), second line 80 ms later; caption fades in over 600 ms starting 250 ms after the name. Out at 12.5 s: the whole card moves up 8px and fades over 700 ms with cubic-bezier(0.4, 0, 1, 1). It is gone 0.8 s before the gate opens at 14.0 s, so the eye is free for the gate. While paused the current card stays; after a jump the new card follows the normal 2.5 s timing.
7. **World index** — The only navigation. Desktop: a vertical rail of eight rows, 28px each. Every row ends in a tick on the right: 16px wide, 1.5px tall, --ink at 45%. The current world's tick is 40px wide; over it a --accent bar fills from left to right across the 22.4 s of the world (scaleX, linear), and to its left the row shows the mono number, the name in Manrope 500 13px and the mono countdown to the crossing ('0:14'). The other seven labels are hidden until the pointer enters the rail or a row takes keyboard focus; then all labels appear so the rail reads as a list. Clicking a row jumps to that world through a summoned gate (see Gate); clicking the current row does nothing. If the destination chunk is still loading, the row's tick shows a moving 8px --accent segment until it is ready, and the journey continues meanwhile. Phone: the rail is replaced by the world chip in the bottom bar. Tapping it opens a bottom sheet titled 'Eight worlds' with eight rows, 60px each: mono number, name in Manrope 500 16px, caption in Panel Muted 13px on one line with ellipsis, and three 10px dots in that world's three strongest colors; the current row has a 2px --accent bar on its left edge and the countdown on its right. Tapping a row closes the sheet and jumps.
Layout: Rail: right 40, centered vertically, rows right aligned, hit area the full row width (at least 220px when labels show). Sheet: Panel color at 78% with 20px blur, top corners 20px, height fits content up to 76dvh, a 36px by 4px grab handle, 20px side padding; a 40% black backdrop behind it. It closes on backdrop tap, on Escape, on the close button and on a downward drag of more than 80px. While the sheet or the drawer is open, focus is trapped inside and returns to the opener on close.
Motion: Rail labels fade in over 180 ms with a 24 ms stagger from the current row outward, moving 6px from the right. Sheet slides up over 520 ms with cubic-bezier(0.22, 1, 0.36, 1), down over 320 ms with cubic-bezier(0.4, 0, 1, 1); during a drag it follows the finger.
8. **Pause, look mode and input** — Pause holds the camera and the journey clock exactly where they are; the world keeps living (rain keeps falling, pages keep flocking) and sound keeps playing, so a paused world works as a still, breathing backdrop. The Pause control swaps to a Play icon and the progress tick stops. Look mode: the journey continues on its rail, but the visitor can turn the view by dragging with a mouse or one finger: yaw up to 110 degrees each way, pitch up to 45 degrees, 0.18 degrees per pixel, inverted like dragging a photograph. The Look control shows aria-pressed and a filled --accent ring while on, and the cursor is grab or grabbing over the canvas. The first time look mode is switched on a mono hint 'Drag to look around' shows for 2.5 s above the controls. When an approach starts, the view eases back to the rail direction so every crossing is head-on, and the visitor's offset returns once the new world has arrived. In guided mode dragging the canvas does nothing. Keyboard: Space pause or play, L look mode, M sound, Right or Down arrow next world, Left or Up arrow previous world, digits 1 to 8 jump, Escape closes the drawer or sheet. Jumping always resumes play. Requests to jump during a crossing are ignored until it completes.
Layout: Use Pointer Events on the canvas with setPointerCapture. Set touch-action none on the canvas only while look mode is on. All touch targets are at least 44px. Nothing depends on hover. No pointer lock, no fullscreen request, no device-orientation permission prompt.
Motion: Look input is smoothed with a 120 ms half-life. Returning to the rail direction takes 1200 ms with easeOutCubic.
9. **Sound** — Each world has its own generated ambience, built only from Web Audio nodes: oscillators, filtered noise from a generated buffer, gain envelopes and one shared reverb. Nothing is recorded and nothing is loaded. Sound is off on load. The AudioContext is created on the first activation of the Sound control, never earlier, and the label changes to 'Sound on'. Signal path: each ambience has its own gain, feeding a master gain at 0.5, a compressor (threshold -18 dB, ratio 3) and the destination; 35% of each ambience is also sent to a convolver whose impulse response is generated at start-up: 3.2 s of stereo white noise multiplied by (1 - t/3.2) to the power 2.6 and gently low-passed. Switching on fades the master in over 1.5 s; switching off fades out over 0.4 s and then suspends the context. At each gate the two ambiences cross-fade with equal power over the 2.4 s of the approach, and the old one is disconnected and stopped 0.5 s after the crossing. The recipes are drones and textures, not tunes: no melody, no rhythm except the orchard's clock tick, no sound logo. Random events use the world's seeded generator. Recipes (frequencies in Hz, gains relative to the ambience gain): 01 Citrus Glasshouse: sines at 196 and 293.66 with a 0.07 Hz swell; band-passed noise at 900 Hz, gain 0.015, as air; every 2.5 to 6 s one soft glass ping, a sine at 1568, 1760, 2093 or 2349 with 8 ms attack and 1.4 s decay, gain 0.05. 02 Blue Hour Rooftop: rain as white noise high-passed at 1800 Hz, gain 0.05; brown noise low-passed at 140 Hz, gain 0.08; triangles at 110 and 164.81 through a 600 Hz low-pass; every 0.4 to 1.6 s a drip, a sine between 900 and 1400 falling 30% in 60 ms. 03 Sky Reef: sine pairs at 146.83, 220 and 329.63, each pair detuned by 3 cents so they beat slowly; noise band-passed around 400 Hz with its center swept 300 to 600 at 0.05 Hz; every 1.5 to 4 s a bubble, a sine gliding 400 to 900 in 120 ms. 04 Salt Mirror: sines at 55 and 82.41; a sawtooth at 110 through a resonant low-pass sweeping 180 to 420 Hz at 0.03 Hz; a sine at 2637, gain 0.004, with a 0.2 Hz tremolo; no events. 05 Murmuration Library: sines at 130.81 and 196; page flutter as 40 to 90 ms noise bursts band-passed at 2500 Hz with 28 Hz amplitude flutter, in clusters of 3 to 7 every 2 to 5 s, louder when the flock is near the camera. 06 Lightfall Canyon: a sawtooth at 73.42 through a 300 Hz low-pass plus a sine at 146.83; two noise sources through narrow band-passes (Q 8) at 1200 and 1790 Hz drifting by 6% on 11 s and 17 s sines, a pitched hiss like falling light. 07 Whale Aurora: sines at 98, 147 and 246.94; noise high-passed at 6000 Hz, gain 0.006, with a 0.1 Hz tremolo; every 9 to 16 s one long call, a sine gliding 220 to 330 to 262 over 6 s with 4 Hz vibrato, gain 0.03, mostly reverb. 08 Clockwork Orchard: sines at 87.31, 130.81 and 174.61; a tick every 1.0 s (a 4 ms noise burst through a 3200 Hz band-pass, gain 0.05) with a softer tock at the half second through 2400 Hz; every 7 to 12 s a brass chime, sines at 523.25 and 784 plus a partial at 2.76 times the lower one, 2.2 s decay.
Layout: Control in the lower-right cluster (bottom bar on phones). Icon volume-x when off, volume-2 when on. The state is always visible as text on desktop and as an icon plus dot on phones.
Motion: Master fade in 1.5 s, fade out 0.4 s, gate cross-fade 2.4 s equal power. No sound plays, and no AudioContext exists, before the visitor asks for it.
10. **Studio drawer** — This is what makes the page a studio homepage. The 'Studio' button opens a drawer while the journey keeps playing behind it. Content, top to bottom. Heading in Fraunces 300, 34px: '[BRAND] draws ambient worlds for rooms.' Paragraph: 'We are a two-person studio in [CITY], making real-time scenes for [VENUES]. Each world is drawn in code while you watch, so it never repeats exactly and it can run for months on a small computer behind a wall. The eight on this page are the current catalogue.' Section 'Ways to work with us', three rows with a name, a mono price and one line: 'License a world', 'from $1,800 per screen, per year', 'Any of the eight, tuned to your screen size, brightness and opening hours.' Then 'Commission a world', 'from $14,000, six weeks', 'A new place drawn for your space, with its own palette and soundscape.' Then 'Install and care', '$320 per month', 'A silent player, remote monitoring and a seasonal refresh.' Section 'Rooms we have filled', four rows with a name and a mono detail: 'Hotel Almadra, Porto', 'Salt Mirror on a 9 m lobby wall'; 'Kestrel Hall, Leeds', 'interval visuals for 62 concerts'; 'Vale Sereno Clinic, Braga', 'Sky Reef in three waiting rooms, sound off'; 'Nordlys Sauna Club, Tromsø', 'Whale Aurora across a 14 m ceiling'. All four are invented. Section 'Write to us': a mailto link to [CONTACT_EMAIL] in Fraunces 300, 26px, with an arrow-up-right icon; then 'Founded by Inês Carvalhal and Tobias Wren.'; '18 Rua do Limoeiro Alto, [CITY]'; 'Studio visits Tuesday to Thursday, 10:00 to 17:00, by appointment.' Last line in Panel Muted 13px: 'Everything on this page is drawn at run time. No model files, no textures, no recordings.' If the optional [CREDIT] line is used it goes under that sentence in the same style. Rewrite every sentence in this drawer when the variables describe a different kind of business, keeping the same four sections and row counts.
Layout: Desktop: fixed to the right edge, 440px wide, full height, Panel color at 78% with 20px blur, 20px radius on its left corners, 32px padding, internal scroll; the scene stays visible to its left and the index rail and controls hide while it is open. A round 44px close button (x icon) at its top right. Phone: the drawer becomes a full-height sheet with 20px padding and the same content in one column. Rows are two-column on desktop (name left, mono detail right) and stacked on phones. No photographs, avatars or logos anywhere in the drawer.
Motion: Slides in from the right over 520 ms with cubic-bezier(0.22, 1, 0.36, 1) (from the bottom on phones); the sections fade in 60 ms apart. Out over 320 ms with cubic-bezier(0.4, 0, 1, 1). Closes on Escape, on the close button and on a click outside it.
11. **Reduced motion and fallback** — When prefers-reduced-motion is set: the camera does not travel. Each world is shown from its rest pose (given in each world section) for 20 s, then the next world cross-fades in over 2500 ms: render the next world to the gate target and blend it over the frame with a full-screen quad. No gate is drawn and nothing accelerates. Motion inside the worlds runs at 40% speed, title cards fade without moving, the grain does not shift, the progress tick still fills. Look mode, pause, the index and sound all still work; a jump is a 1200 ms cross-fade. If the preference changes while the page is open, switch at the next crossing. If WebGL is unavailable or the renderer cannot be created, catch the error and run a still version instead: the page background becomes the current world's sky gradient (top, middle and bottom colors from its palette), title cards and the index work on the same 22.4 s clock, the Look control is hidden, and one mono line under the intro says 'Showing stills: 3D is switched off in this browser.' No console errors in either mode.
Layout: Same overlay layout in every mode.
12. **World 01: Citrus Glasshouse** — A long barrel-vaulted glasshouse standing on an island of earth that floats in morning fog. This is the first frame of the site, so it gets the most care. Signature motion: fog banks sliding past outside the glass, which makes the light shafts inside slowly brighten and dim. Build: an island slab 46 long and 16 wide (a box with noise-displaced edges whose underside tapers to a ragged point 9 units below, color #0F4D2E fading to fog). On it, 12 half-ring iron ribs of radius 6 spaced 3.5 apart from z = 2 to z = -36.5, joined by 7 thin purlins, color #0F4D2E. Glass: one half cylinder over the ribs, #BFE6DC at 10% opacity with a view-angle rim that rises to 35% at grazing angles. Floor: a 3 unit wide aisle of pale stone tiles (#F6F2E3 and a 6% darker alternate) edged with a 0.3 strip of #C8643C, and a 0.4 wide still water channel down the center reflecting the sky gradient. Trees: two rows of nine at x = -3.2 and x = 3.2, every 4 units from z = -2, each in a terracotta pot 0.9 tall: a slightly crooked trunk, a canopy of three merged noise-displaced icosahedra about 2.6 across with vertex colors mixing #1F8A4C on top and #0F4D2E below. Fruit: 252 instanced spheres of radius 0.11, 14 per tree at the canopy surface, 60% #FFC914 stretched 1.25 tall as lemons and 40% #FF8A1F as oranges, plus 40 fallen fruit along the aisle edges. One extra branch with five lemons hangs into frame at (-1.3, 2.4, -3.2) so the very first frame has fruit in the foreground. Light: hemisphere light sky #F6F2E3, ground #BFE6DC, intensity 1.1; directional light #FFE2A0, intensity 1.4, from (8, 14, 4). Five light shafts: long additive quads slanting 35 degrees from the roof to the floor, #FFC914 mixed 50% with white at 10% opacity. 60 pollen points drift inside the shafts. Outside: sky gradient #BFE6DC to #F6F2E3 and six large soft fog sprites (radial alpha painted on a canvas) moving along positive X at 0.3 units per second, 9 to 20 units from the glass. Fog: exponential, #F6F2E3, density 0.028. When a fog sprite passes between the sun direction and a shaft, that shaft's opacity eases down to 4%, and canopy vertices sway by 0.03 units on a 5 s sine as if the vents were open. Rail: (0, 2.2, 0), (-0.8, 1.8, -9), (0.9, 2.0, -18), (-0.4, 2.6, -27), (0, 2.2, -36). No glance. Rest pose: position (0.6, 2.0, -3), looking at (0, 2.3, -30). The gate stands under the last rib. Overlay: --ink #12301F, --accent #E8590C, --shade #F6F2E3.
Layout: First-frame composition at 1440x900: the aisle runs from the bottom center to a vanishing point slightly above the middle; tree rows frame both sides; ribs arch overhead; at least three shafts cross the aisle; the foreground lemon branch sits in the upper left third and does not cover the intro text in the lower left. At 390x844 the 72 degree field of view keeps both tree rows in frame.
Motion: Fog sprites 0.3 units per second; shaft opacity changes over 2 s with easeInOutSine; island bob 0.2 units on an 11 s sine applied to the outside fog and sky, not to the camera.
13. **World 02: Blue Hour Rooftop** — A rain-soaked rooftop garden just after sunset, surrounded by a city of lit windows. Signature motion: rain, and everything it causes (ripple rings on the deck, drops running off the string lights). Build: a deck 30 wide and 44 long, #101736, with a wet-surface shader: a dark base, a view-angle sheen of #3B4BD8, vertical smeared reflections of the amber lights computed analytically from the lamp positions, and 24 expanding ripple rings at any time placed by a hash of cell and time. Twelve raised planters, 1.2 wide and 0.7 tall, in two staggered lines either side of the rail, filled with 2,400 instanced grass blades (#1E6B5A, tips lit #3B4BD8) and six small multi-stem trees. A timber pergola from z = -14 to z = -24 carrying three catenary strings of 40 bulbs in total (emissive #FFB347 spheres of radius 0.06 with an additive halo sprite), and three point lights #FF7A1A, intensity 12, distance 14, under it. A cylindrical water tank on legs at (-9, 0, -20) and a parapet 1.1 tall around the roof edge. City: 70 instanced towers 40 to 160 units away, 20 to 90 tall, #101736, with a shader window grid in which 22% of the cells are lit #FFB347 and about 3% of those switch on or off once during a visit. Rain: 6,000 short line segments, #AFC4FF at 55% opacity, falling at 14 units per second with a slight slant, wrapped in a 30 by 18 by 30 box that follows the camera. Sky: gradient #0B1340 at the top to #3B4BD8 at the horizon, dithered. Hemisphere light sky #3B4BD8, ground #0B1340, intensity 0.9. Fog: exponential, #1A2470, density 0.022. Rail: (0, 2.2, 0), (2.2, 2.0, -8), (-1.8, 2.3, -17), (1.2, 2.6, -27), (0, 2.2, -36). Glance: yaw 12 degrees left, pitch 4 degrees up, toward the string lights. Rest pose: position (1.5, 2.1, -6), looking at (-1, 2.6, -22). The gate stands at the far parapet with the skyline behind it. Overlay: --ink #F3EEDF, --accent #FFB347, --shade #070B26.
Layout: Amber must be present in the first second after arrival: two string-light bulbs and their deck reflections are within 8 units of the entry point.
Motion: Rain 14 units per second; ripple rings grow from 0 to 0.5 units over 900 ms and fade; string lights swing 2 degrees on a 3.5 s sine, out of phase per string; grass leans away from the rain slant by 4 degrees with a 2 s gust cycle.
14. **World 03: Sky Reef** — A coral reef with no ocean: five reef islands hanging in open turquoise sky above a floor of cloud, with jellyfish drifting between them. Signature motion: the jellyfish, pulsing and rising. Build: five islands of #2B6E86 rock (icosahedra of detail 3, displaced by 3D noise, flattened on top, drawn out underneath into hanging spires), 8 to 14 units across, at (-7, 1, -8), (6, 3, -15), (-5, 5, -22), (7, 4, -29) and (0, 0, -38, the largest, split by a gap for the gate). Coral, all instanced and seeded: 90 branch corals (a merged tree of tapering cylinders, four levels deep) in #FF5E8A; 60 brain corals (noise-grooved spheres) in #FF8F5C; 50 fan corals (flat discs with radial ribs cut by alpha in the shader) in #D83A8F; 70 tube clusters in #FF8F5C tipped #FFD1E8; 300 sea-grass ribbons in #12C7B2 that wave as if in a current. Jellyfish: 36, bells 0.5 to 1.4 across. Each bell is a hemisphere whose rim contracts and relaxes in the vertex shader every 2 s (fast squeeze, slow release); each has six ribbon tentacles 2 to 4 units long that trail with a traveling sine. Material: #FFD1E8 at 35% opacity with an additive #FF5E8A rim at grazing angles. They rise 0.25 units per second in steps that match the pulse, wander on a slow curl-noise field, and wrap from top to bottom of a 30 unit tall volume; three of them pass within 3 units of the rail. Clouds: 14 clusters of soft sprites (canvas-painted radial alpha, white tinted #BFF3EC below) 12 to 20 units under the islands, drifting 0.2 units per second. Sky: #0FA3C7 at the top to #BFF3EC at the horizon. Directional light #FFF4E0, intensity 1.6, from high on the left; hemisphere light sky #BFF3EC, ground #FF5E8A at intensity 0.9, so the undersides of everything pick up pink. Fog: exponential, #BFF3EC, density 0.012. Rail: (0, 2.2, 0), (-3, 4.0, -9), (3.5, 6.5, -18), (-2, 4.5, -28), (0, 2.2, -36). Glance: yaw 16 degrees right, pitch 6 degrees up, toward the nearest group of jellyfish. Rest pose: position (-2, 3.5, -5), looking at (3, 5, -20). The gate hangs in the gap of the last island between two branch-coral arms. Overlay: --ink #06303F, --accent #D83A8F, --shade #D9F7F2.
Layout: The rail climbs and sinks 4 units, so the islands are seen from below, level and above within one pass.
Motion: Jellyfish pulse: 2 s cycle, contraction in 0.5 s with easeOutCubic, release in 1.5 s with easeInOutSine. Sea grass: 4 s wave. No fish, no bubbles in the scene.
15. **World 04: Salt Mirror** — A flooded salt flat at dusk that mirrors the whole sky, under a ringed planet. Signature motion: one long, slow ripple crossing the mirror every 6 s, bending the planet's reflection as it passes. Build: the sky is one shader function skyColor(direction): a vertical gradient #2B1672 at the zenith through #B0387F at 25 degrees to #FF7A2F at the horizon, a #FFD08A glow 30 degrees wide where the sun has set (straight ahead), 400 small stars above 35 degrees, and the planet: a disc of 9 degrees radius centered 32 degrees up and 20 degrees right of straight ahead, shaded from #E9C9F2 on its lower right to #5B3FA8 on its upper left with two faint bands, crossed by a ring in #FFD08A tilted 24 degrees with two dark gaps, drawn behind the disc at the top and in front of it at the bottom. The ground is a 400 unit plane whose shader returns skyColor of the reflected view direction, darkened 12%, plus: the ripple (a sine bump 6 units wide traveling toward the camera at 5 units per second, offsetting the reflection direction), a faint hexagonal salt-crust pattern in #FFD08A at 10% opacity that fades out by 40 units, and a 2% noise shimmer. Objects: seven salt cairns 1 to 2.4 tall (three to five stacked, flattened, noise-displaced spheres) in #1C0E3F with a #FF7A2F rim on the sun side, each with an upside-down copy under the plane and the plane drawn at 88% opacity so they read as reflections; a line of 24 knee-high posts 4 units apart leading to the horizon on the left of the rail; 800 salt-dust points skimming 0.05 units above the surface toward positive X at 1.2 units per second, catching #FFD08A. Directional light #FF7A2F, intensity 1.2, from the horizon ahead; hemisphere light sky #2B1672, ground #FF7A2F, intensity 0.7. Fog: exponential, #C24C7A, density 0.006. Rail: (0, 2.2, 0), (1.5, 1.2, -9), (-1.5, 0.9, -19), (0.8, 1.3, -28), (0, 2.2, -36), so the camera skims the mirror. Glance: yaw 14 degrees right, pitch 12 degrees up, to the planet. Rest pose: position (0, 1.1, -4), looking at a point 20 degrees right and 10 degrees up. The gate stands alone on the mirror with its own reflection drawn under it. Overlay: --ink #FFF4E6, --accent #FF7A2F, --shade #1C0E3F.
Layout: The horizon sits at 42% of the frame height from the bottom at the lowest point of the rail, so sky and reflection are nearly equal halves.
Motion: Ripple every 6 s, 5 units per second. The planet turns its ring by 2 degrees over a full visit. Nothing else moves.
16. **World 05: Murmuration Library** — A tall oxblood library lit by candles, after closing, where loose pages lift out of open books and fly through the nave as one flock, like starlings at dusk. Signature motion: the flock. Build: a nave 12 wide, 16 tall and 48 long with a ribbed barrel vault in #2A0508. Shelving in #3B0A0D on both walls: 8 bays per side, each 5 wide with 10 shelves, and a balcony with a #C8922E rail at half height reached by two rolling ladders. Books: 4,800 instanced boxes, 30 per shelf, heights 0.22 to 0.34, a few leaning; spine colors 55% #A3271F, 30% #7A1420, 10% #C8922E, 5% #1F3A3A. A carpet runner in #5C0F14 on a #1A0305 floor. Ten reading tables alternate left and right of the rail, each with two open books and one candle: a 0.25 tall stick, a flame drawn as an additive teardrop sprite in #FFC24B with a paler core, and a point light #FFC24B (intensity 6, distance 9) on the four candles nearest the camera only. 300 dust points hang in the candlelight. Pages: 1,400 instanced quads, 0.21 by 0.30, #FFF1CF, double sided, lit by the candles and slightly self-lit so they stay readable in the dark. They follow flocking rules on the CPU at 30 updates per second with a uniform grid for neighbor search, interpolated every frame: separation inside 0.5 units, alignment and cohesion inside 2.2 units, speed 3 to 6 units per second, a soft boundary 1 unit inside the nave walls, and a shared target that travels a slow figure-eight through the nave between 3 and 13 units high, dipping to table height every 14 s; each dip, 30 pages peel up from the open books to join while 30 others settle back. Each page flaps in the vertex shader by folding along its long center line 6 times per second with its own phase. The flock crosses directly over the rail at least twice per visit. Hemisphere light sky #5C0F14, ground #1A0305, intensity 0.6. Fog: exponential, #3A070B, density 0.03. Rail: (0, 2.2, 0), (-1.2, 2.8, -9), (1.4, 4.2, -18), (-0.6, 3.2, -28), (0, 2.2, -36). Glance: pitch 14 degrees up into the flock. Rest pose: position (-1, 2.4, -4), looking at (0.5, 7, -24). The gate stands at the end of the nave where a great window would be. Overlay: --ink #FFF1CF, --accent #FFC24B, --shade #1A0305.
Layout: Gold must read against red at all times: a candle is always within 6 units of the camera, and the flock is pale enough to be the brightest moving thing in frame.
Motion: Flock speed 3 to 6 units per second with turns limited to 90 degrees per second so it flows rather than darts. Flames change scale by 8% on a noise signal. Books and shelves never move.
17. **World 06: Lightfall Canyon** — A narrow canyon of raw cast concrete, sixty units deep, where light pours over the ledges and falls like water. Signature motion: the seven lightfalls. Build: two facing walls, each of 22 staggered concrete blocks 6 to 14 wide and 30 to 60 tall, set back or forward by up to 3 units, leaving a canyon 9 to 14 wide. The concrete shader mixes #B9BEC6, #7C838E and #2E333B by height and facing, with horizontal board-form lines every 0.5 units, a tie-hole dot every 1.2 units and vertical damp streaks from noise. Five slab bridges cross overhead at different heights, and broad steps climb the left side between z = -10 and z = -20. Floor: an 8 unit wide channel of shallow still water, #1B1F26, that reflects the lightfalls as long vertical smears of their colors and shows slow rings where mist lands. Lightfalls: seven vertical ribbons 2 to 5 wide and 30 to 50 tall, dropping from ledges on alternate sides at z = -6, -11, -16, -21, -26, -31 and one 7 wide directly behind the gate at z = -39. Cyan #00E5FF for the first, third, fifth and seventh; magenta #FF2BD6 for the others. The ribbon shader draws stretched noise streaks flowing downward at 9 units per second, brighter at the lip, thinning to transparent at the edges, additive. At each base: a mist plume of 600 points rising 3 units and drifting down-canyon, a glowing additive disc 3 units across on the water, and a point light of the fall's color (intensity 10, distance 16) on the four falls nearest the camera. Where cyan and magenta light overlap on a wall they mix toward violet. Sky: a slit of #DDE6F0 overcast far above. Hemisphere light sky #DDE6F0, ground #2E333B, intensity 0.7. Fog: exponential, #8F98A6, density 0.018. Rail: (0, 2.2, 0), (1.8, 1.6, -9), (-2.2, 1.5, -18), (1.0, 2.0, -28), (0, 2.2, -36); the mist of the second and fourth falls drifts across the rail, so their color washes over the frame for a moment as the camera passes. Glance: pitch 18 degrees up the nearest fall to its lip. Rest pose: position (1.2, 1.7, -3), looking at (-1, 9, -24). The gate stands in front of the largest fall, lit from behind. Overlay: --ink #F4F7FA, --accent #00E5FF, --shade #14171C.
Layout: The grey must stay grey: colored light is limited to the falls, their pools, their mist and what they physically light, so the cyan and magenta read as cuts through a cold monochrome space.
Motion: Streaks fall at 9 units per second. Mist rises 0.6 units per second and fades over 4 s. Rings on the water expand over 1.5 s. The concrete, bridges and steps never move.
18. **World 07: Whale Aurora** — A snow-covered tundra at night under a green and violet aurora, crossed by three whales made of glass that swim slowly through the air. Signature motion: the whales. Build: terrain, a 300 unit plane of 160 by 160 segments with gentle noise hills up to 4 units and a flat frozen lake from z = -12 to z = -30. Snow color runs from #DCE8F5 on moonlit slopes to #6B4BD8 in shadow; the lake ice reflects the aurora colors as soft vertical bands. 120 instanced tufts and stones break the snow near the rail and 14 ice shards (stretched octahedra, 1 to 3 tall, #CFE6FF with a faint inner glow) stand around the lake. Sky: #05070F with a #0E1B2E horizon band and 1,500 stars. Aurora: three curtain ribbons, each 240 long and 40 tall with 128 segments along its length, 80 to 120 units up, folded by two slow sine waves; the shader draws fine vertical rays from noise, colored #3DFFA2 at the lower edge through #19D3C5 to #B39DFF at the top, additive, fading out at both ends. Whales: three, 18, 21 and 24 units long. The body is a lathed profile (blunt head, deep chest, long taper) squashed slightly in width, with two long pectoral fins, a small dorsal fin and broad flukes built from extruded outlines. Material: glass drawn without refraction, 8% base opacity in #CFE6FF, a bright rim at grazing angles shading from #CFE6FF to #B39DFF, eleven faint rib lines inside, and moving specks of the aurora colors along the back as if the sky were caught in it. A traveling sine bends the spine and lifts the flukes once every 8 s; pectoral fins sweep once every 16 s. They follow three wide closed loops 20 to 35 units above the ground at 1.6 units per second; the largest passes 10 units above the rail around the 9th second of each visit, and its glow brightens the snow under it. Directional moonlight #CFE6FF at intensity 0.5 from behind the camera; hemisphere light sky #19D3C5, ground #05070F, intensity 0.5. Fog: exponential, #070B18, density 0.008. Rail: (0, 2.2, 0), (-2.5, 2.6, -9), (2.0, 3.4, -18), (-1.0, 2.8, -28), (0, 2.2, -36). Glance: pitch 20 degrees up to the passing whale. Rest pose: position (0, 2.4, -6), looking at a point 14 degrees up, straight ahead. The gate stands on the far shore of the lake between two ice shards. Overlay: --ink #EAF6FF, --accent #3DFFA2, --shade #05070F.
Layout: The whales are original animals drawn for this site: no saddles, riders, lights, armor or markings, and no resemblance to a creature from an existing film, game or animation.
Motion: Whale body wave 8 s; travel 1.6 units per second; aurora folds drift on 40 s and 65 s sines and its rays shimmer slowly. Stars do not twinkle.
19. **World 08: Clockwork Orchard** — An orchard of thirty brass trees on deep teal ground, built like clocks and all keeping the same time. Signature motion: the tick. Once a second every tree advances one step together. Build: five rows of six trees on a 7 unit grid with up to 0.4 units of jitter, the rail running down the middle row gap. Each tree, about 6 tall: a trunk of four stacked brass cylinders with a #3FC1A5 verdigris collar at each joint; three tiers of straight arms (five, four, then three) radiating from the trunk; a gear at the end of every arm (a toothed disc extruded 0.08 thick, 10 to 18 teeth, radius 0.35 to 0.9), paired with a second gear that meshes with it; one large horizontal crown gear of radius 1.6 at the top; a pendulum with a #C4683A bob hanging under the lowest tier; 60 small round brass leaves on thin stems (1,800 instances in all); and six glass fruit, spheres of radius 0.14 glowing #FFE6A8 with an additive halo. Every third gear is #C4683A. Brass is a matcap material so it looks polished without an environment map or extra lights: paint the matcap on a 256px canvas at start-up, a sphere shaded from #7A5417 at the edge through #D9A441 to a #FFD98A highlight in the upper left with a soft #0E6B66 bounce along the bottom. Ground: #06343B with #0E6B66 moss and thin inlaid brass rails forming concentric circles around every trunk, drawn in the shader. 500 brass-filing points hang in the air and glint. Sky: #052B33 at the top to #0B4A52 at the horizon. Directional light #FFD98A at intensity 1.0 from the upper left; hemisphere light sky #0B4A52, ground #052B33, intensity 0.8. Fog: exponential, #0B4A52, density 0.02. The tick: every 1.0 s each paired gear turns by one tooth, partners turning the opposite way; the crown gear turns 6 degrees; all leaves tilt 6 degrees and settle; the pendulums swing continuously with a 2 s period and are the only parts that never stop. Rail: (0, 2.2, 0), (0.9, 2.0, -9), (-0.9, 2.4, -18), (0.6, 2.8, -27), (0, 2.2, -36). Glance: yaw 10 degrees left, pitch 10 degrees up, into the nearest crown. Rest pose: position (0.8, 2.1, -3), looking at (-1.5, 4, -20). The gate stands at the end of the row; through it is the Citrus Glasshouse, closing the loop from brass and teal back to yellow, green and white. Overlay: --ink #FFF3D6, --accent #FFD98A, --shade #031D22.
Layout: Brass must look polished, not flat yellow: check the matcap highlight is visible on trunks and gear faces from the entry point.
Motion: Each tick moves over 180 ms with cubic-bezier(0.34, 1.56, 0.64, 1), a small overshoot like an escapement landing, then stillness for the rest of the second. The audio tick in this world is scheduled from the same clock. Under reduced motion the tick still happens, without overshoot.
## Assets
- image: No image files of any kind. Every surface, sky, creature and light is drawn at run time with three.js geometry and GLSL. The only textures are painted on in-memory canvases at start-up: one soft round sprite (128px radial alpha) for fog, clouds, halos and flames, the 256px brass matcap for world 8, and the 128px grain tile for the overlay. Do not download models, HDR environments, textures or photographs, and do not embed base64 images. There are no audio or video files either: all sound is generated in the browser with the Web Audio API from the recipes in the Sound section.
- icon: Lucide (ISC), npm package lucide pinned at 0.499.0, imported icon by icon and turned into inline SVG with its createElement helper: pause, play, rotate-3d (Look), volume-x, volume-2, x, chevron-up (world chip), arrow-up-right (mail link). Stroke width 1.5, 18px, currentColor. List the package in ASSETS.md.
- icon: Favicon drawn by hand as public/favicon.svg: a 32px square of #12301F with rounded corners of 7px and an upright capsule outline in #FFC914, 10px wide and 20px tall, stroke 2.5px, centered. No letters.
- font: Fraunces Variable (OFL-1.1, by Undercase Type) from @fontsource-variable/fraunces: import full.css and full-italic.css so the opsz, SOFT and WONK axes are available; family name 'Fraunces Variable'. Preload the latin normal and latin italic woff2 files. List in ASSETS.md.
- font: Manrope Variable (OFL-1.1, by Mikhail Sharanda) from @fontsource-variable/manrope: import index.css; family name 'Manrope Variable'. List in ASSETS.md.
- font: DM Mono (OFL-1.1, by Colophon Foundry) from @fontsource/dm-mono: import 400.css; family name 'DM Mono'. List in ASSETS.md.
## Don'ts
- No start screen of any kind: no loader, spinner, progress bar, splash, 'click to enter' or 'tap to begin', and never a black or blank first frame. The first paint already shows the Citrus Glasshouse colors with the wordmark and intro line, and the first WebGL frame arrives within 2 seconds.
- No backend, server code, API routes, database, auth, cookies, analytics, third-party APIs or forms that submit anywhere. The only outbound link is the mailto address.
- Build static files to dist/ with npm run build. Vite base is './' and every asset path is relative. No source maps, no src/ copied into dist/, dist/ under 20 MB. Any internal link points to a file name such as ./index.html, never to a bare directory.
- Nothing from a CDN: no remote script, stylesheet, font, image or audio. Fonts are self-hosted through the three Fontsource packages only; no commercial or system-default display fonts.
- No model files, HDR environments, texture files, photographs, illustrations, video or recorded audio. Geometry, light and sound are all generated at run time.
- No post-processing library or pass chain, no real-time shadow maps, no transmission or refraction materials, no physics engine. Do not add any dependency beyond the ones listed in the stack.
- Do not change the stack, the eight worlds, their order, their hex palettes or the timeline numbers unless the user asks. Do not add extra pages, a scroll-down section, a newsletter box, pricing tables, testimonials or a cookie banner.
- Keep the gate a plain capsule opening with a thin rim. No swirling vortex, no ring device, no glowing oval pairs in two fixed colors, no runes or machinery, and nothing that recalls a portal from an existing game, film or animation.
- Every world, creature and object is original to this site. Do not recreate recognizable places, characters, creatures, vehicles or shots from any existing film, game, animation or published 3D piece, and do not add people or faces.
- The ambience is drone and texture only: no melody, chord progression, drum pattern, jingle or imitation of any existing piece of music or sound logo. No sound before the visitor switches it on, and the on or off state is always visible.
- No real studio, artist, client, hotel, venue or product names in the copy; every name is invented. Do not mention any AI model, AI company or how the site was made anywhere in the site.
- Nothing moves for decoration. No idle spinning objects, pulsing buttons, parallax on the overlay text, cursor trails, typewriter text or looping interface animations other than the progress tick.
- Must run at 1440x900 and 390x844 with zero console errors or warnings from the app, no horizontal scroll and no page scroll. On phones use the quality tiers (pixel ratio cap, reduced counts), the bottom bar and the bottom sheet; touch targets are at least 44px and nothing depends on hover.
- Respect prefers-reduced-motion exactly as described: still camera, slow cross-fades, no gate fly-through, static grain. Handle a missing or lost WebGL context with the still version, never a white, black or error page.
- Keep all copy, world names, captions and palettes in src/content.ts. When the variable values differ from the defaults, rewrite the intro line and the Studio drawer to fit them; never leave default brand text behind.
- Write an ASSETS.md at the project root listing each font package and the icon package with source, author and license, and stating that every visual and sound is generated in code.
---
Inspired by Hands-off journey through code-drawn 3D worlds linked by portals, with synthesized ambient sound by @Ethan Mollick — https://www.oneusefulthing.org/p/fable-52-and-jagged-agi
— Prompt by VibeFather · https://vibefather.ai/t/3d-portal-worlds-journey · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
Free for personal projects under CC BY-NC 4.0. Commercial use comes with Pro.
The design system on its own — colors, type, spacing and motion. Apply this look to a project you already have.
---
name: "3D Portal Worlds Journey"
colors:
panel: "#0B0F14"
panel_text: "#F4EFE6"
panel_muted: "#A9B0B8"
panel_hairline: "rgba(255,255,255,0.16)"
ink_light: "#F6F1E6"
ink_dark: "#12301F"
w1_fog: "#F6F2E3"
w1_sky_mint: "#BFE6DC"
w1_leaf: "#1F8A4C"
w1_deep_leaf: "#0F4D2E"
w1_lemon: "#FFC914"
w1_orange: "#FF8A1F"
w1_terracotta: "#C8643C"
w1_sunlight: "#FFE2A0"
w1_ink: "#12301F"
w1_accent: "#E8590C"
w2_night_indigo: "#0B1340"
w2_electric_indigo: "#3B4BD8"
w2_fog: "#1A2470"
w2_wet_deck: "#101736"
w2_window_amber: "#FFB347"
w2_deep_amber: "#FF7A1A"
w2_foliage: "#1E6B5A"
w2_rain: "#AFC4FF"
w2_ink: "#F3EEDF"
w3_turquoise: "#0FA3C7"
w3_aqua_haze: "#BFF3EC"
w3_reef_rock: "#2B6E86"
w3_coral_pink: "#FF5E8A"
w3_coral_orange: "#FF8F5C"
w3_magenta: "#D83A8F"
w3_sea_teal: "#12C7B2"
w3_jelly: "#FFD1E8"
w3_sunlight: "#FFF4E0"
w3_ink: "#06303F"
w4_zenith_violet: "#2B1672"
w4_rose: "#B0387F"
w4_tangerine: "#FF7A2F"
w4_sun_glow: "#FFD08A"
w4_planet_lit: "#E9C9F2"
w4_planet_shadow: "#5B3FA8"
w4_fog: "#C24C7A"
w4_silhouette: "#1C0E3F"
w4_ink: "#FFF4E6"
w5_vault: "#2A0508"
w5_oxblood: "#5C0F14"
w5_fog: "#3A070B"
w5_shelf_wood: "#3B0A0D"
w5_spine_red: "#A3271F"
w5_gilt: "#C8922E"
w5_paper: "#FFF1CF"
w5_candle_gold: "#FFC24B"
w5_floor: "#1A0305"
w6_overcast: "#DDE6F0"
w6_fog: "#8F98A6"
w6_concrete_light: "#B9BEC6"
w6_concrete_mid: "#7C838E"
w6_concrete_dark: "#2E333B"
w6_cyan: "#00E5FF"
w6_magenta: "#FF2BD6"
w6_channel: "#1B1F26"
w7_night: "#05070F"
w7_horizon: "#0E1B2E"
w7_fog: "#070B18"
w7_aurora_green: "#3DFFA2"
w7_aurora_teal: "#19D3C5"
w7_ice_violet: "#B39DFF"
w7_deep_violet: "#6B4BD8"
w7_snow: "#DCE8F5"
w7_whale_glass: "#CFE6FF"
w8_deep_teal: "#052B33"
w8_fog: "#0B4A52"
w8_ground: "#06343B"
w8_moss: "#0E6B66"
w8_brass: "#D9A441"
w8_brass_light: "#FFD98A"
w8_brass_dark: "#7A5417"
w8_copper: "#C4683A"
w8_verdigris: "#3FC1A5"
w8_bulb: "#FFE6A8"
typography:
display_wordmark_intro_line_world_names_drawer_headings_fraunces_variable_with_font_variation_settings_opsz_144_soft_100_wonk_0_world_names_at_weight_300_upright_intro_line_at_weight_300_italic_wordmark_at_weight_500: { family: "Fraunces Variable", weights: [300, 500] }
text_captions_buttons_drawer_body_16px_24px_body_14px_20px_controls_weight_400_500_for_buttons_and_names_in_the_index: { family: "Manrope Variable", weights: [400, 500] }
mono_world_numbers_countdown_eyebrows_prices_12px_letter_spacing_0_08em_uppercase_for_eyebrows: { family: "DM Mono", weights: [400] }
spacing: "8px base unit. Desktop overlay margin 40px on all sides; phone margin 20px (12px for the bottom bar). Card slot max-width 620px. Controls are 44px circles with 12px gaps. Drawer width 440px with 32px padding; drawer sections are separated by 40px and a 1px hairline. The page never scrolls: html and body are 100dvh with overflow hidden; only the drawer and the bottom sheet scroll inside themselves."
radius: "Controls and the phone bottom bar are fully round (999px). Panels: 20px on the drawer's inner corners and the top corners of the bottom sheet. The gate is a capsule: a rectangle 2.6 units wide and 4.4 units tall whose top and bottom are half circles of radius 1.3. No other rounded shapes in the interface."
---
# 3D Portal Worlds Journey — Design System
Apply this design system to an existing project. It describes the look and feel only; for the full site, use prompt.md.
## Colors
- **Panel** `#0B0F14` — Background of the Studio drawer, the phone bottom bar and the world sheet, at 78% opacity over a 20px backdrop blur. Never used as a page background.
- **Panel Text** `#F4EFE6` — All text inside panels.
- **Panel Muted** `#A9B0B8` — Secondary text inside panels: prices, captions, addresses.
- **Panel Hairline** `rgba(255,255,255,0.16)` — 1px borders and dividers inside panels.
- **Ink Light** `#F6F1E6` — Overlay text color on dark worlds (worlds 2, 4, 5, 6, 7, 8). Each world sets --ink to its own near-white listed below; this is the fallback.
- **Ink Dark** `#12301F` — Overlay text color on the two bright worlds (1 and 3 use their own dark inks listed below).
- **W1 Fog** `#F6F2E3` — Citrus Glasshouse: fog, canvas clear color, page background before the first frame, scrim color (--shade).
- **W1 Sky Mint** `#BFE6DC` — Citrus Glasshouse: top of the sky gradient, glass tint.
- **W1 Leaf** `#1F8A4C` — Citrus Glasshouse: lit side of the tree canopies.
- **W1 Deep Leaf** `#0F4D2E` — Citrus Glasshouse: shaded side of canopies, iron ribs in silhouette.
- **W1 Lemon** `#FFC914` — Citrus Glasshouse: 60% of the fruit, light-shaft tint.
- **W1 Orange** `#FF8A1F` — Citrus Glasshouse: 40% of the fruit.
- **W1 Terracotta** `#C8643C` — Citrus Glasshouse: pots and the tiled aisle border.
- **W1 Sunlight** `#FFE2A0` — Citrus Glasshouse: color of the directional light.
- **W1 Ink** `#12301F` — Citrus Glasshouse: --ink for overlay text.
- **W1 Accent** `#E8590C` — Citrus Glasshouse: --accent for the progress tick, gate rim and focus ring.
- **W2 Night Indigo** `#0B1340` — Blue Hour Rooftop: top of the sky.
- **W2 Electric Indigo** `#3B4BD8` — Blue Hour Rooftop: horizon band of the sky, rim light on wet surfaces.
- **W2 Fog** `#1A2470` — Blue Hour Rooftop: fog.
- **W2 Wet Deck** `#101736` — Blue Hour Rooftop: deck, planters, city towers.
- **W2 Window Amber** `#FFB347` — Blue Hour Rooftop: lit windows, string lights; --accent.
- **W2 Deep Amber** `#FF7A1A` — Blue Hour Rooftop: the nearest lamps and their reflections.
- **W2 Foliage** `#1E6B5A` — Blue Hour Rooftop: grasses and small trees.
- **W2 Rain** `#AFC4FF` — Blue Hour Rooftop: rain streaks and ripple rings.
- **W2 Ink** `#F3EEDF` — Blue Hour Rooftop: --ink. Scrim (--shade) is #070B26.
- **W3 Turquoise** `#0FA3C7` — Sky Reef: top of the sky.
- **W3 Aqua Haze** `#BFF3EC` — Sky Reef: horizon, fog and cloud shadow.
- **W3 Reef Rock** `#2B6E86` — Sky Reef: floating rock.
- **W3 Coral Pink** `#FF5E8A` — Sky Reef: branch coral and jellyfish glow.
- **W3 Coral Orange** `#FF8F5C` — Sky Reef: brain coral and tube clusters.
- **W3 Magenta** `#D83A8F` — Sky Reef: fan coral; --accent.
- **W3 Sea Teal** `#12C7B2` — Sky Reef: sea grass ribbons.
- **W3 Jelly** `#FFD1E8` — Sky Reef: jellyfish bells.
- **W3 Sunlight** `#FFF4E0` — Sky Reef: color of the directional light.
- **W3 Ink** `#06303F` — Sky Reef: --ink (dark, because this world is bright). Scrim (--shade) is #D9F7F2.
- **W4 Zenith Violet** `#2B1672` — Salt Mirror: top of the sky.
- **W4 Rose** `#B0387F` — Salt Mirror: middle band of the sky.
- **W4 Tangerine** `#FF7A2F` — Salt Mirror: horizon band; --accent.
- **W4 Sun Glow** `#FFD08A` — Salt Mirror: glow where the sun has just set, planet ring.
- **W4 Planet Lit** `#E9C9F2` — Salt Mirror: lit side of the ringed planet.
- **W4 Planet Shadow** `#5B3FA8` — Salt Mirror: dark side of the planet.
- **W4 Fog** `#C24C7A` — Salt Mirror: fog.
- **W4 Silhouette** `#1C0E3F` — Salt Mirror: cairns and posts; scrim (--shade).
- **W4 Ink** `#FFF4E6` — Salt Mirror: --ink.
- **W5 Vault** `#2A0508` — Murmuration Library: ceiling vault.
- **W5 Oxblood** `#5C0F14` — Murmuration Library: walls and the long carpet.
- **W5 Fog** `#3A070B` — Murmuration Library: fog.
- **W5 Shelf Wood** `#3B0A0D` — Murmuration Library: shelves, ladders, tables.
- **W5 Spine Red** `#A3271F` — Murmuration Library: 55% of the book spines (another 30% use #7A1420, 5% use #1F3A3A).
- **W5 Gilt** `#C8922E` — Murmuration Library: 10% of the spines, balcony rail.
- **W5 Paper** `#FFF1CF` — Murmuration Library: the flying pages; --ink.
- **W5 Candle Gold** `#FFC24B` — Murmuration Library: flames and their light; --accent.
- **W5 Floor** `#1A0305` — Murmuration Library: floor outside the carpet; scrim (--shade).
- **W6 Overcast** `#DDE6F0` — Lightfall Canyon: the slit of sky.
- **W6 Fog** `#8F98A6` — Lightfall Canyon: fog.
- **W6 Concrete Light** `#B9BEC6` — Lightfall Canyon: lit concrete faces.
- **W6 Concrete Mid** `#7C838E` — Lightfall Canyon: most wall surfaces.
- **W6 Concrete Dark** `#2E333B` — Lightfall Canyon: undersides and deep recesses.
- **W6 Cyan** `#00E5FF` — Lightfall Canyon: four of the seven lightfalls; --accent.
- **W6 Magenta** `#FF2BD6` — Lightfall Canyon: three of the seven lightfalls.
- **W6 Channel** `#1B1F26` — Lightfall Canyon: the water channel. Scrim (--shade) is #14171C; --ink is #F4F7FA.
- **W7 Night** `#05070F` — Whale Aurora: sky; scrim (--shade).
- **W7 Horizon** `#0E1B2E` — Whale Aurora: horizon glow.
- **W7 Fog** `#070B18` — Whale Aurora: fog.
- **W7 Aurora Green** `#3DFFA2` — Whale Aurora: lower edge of the aurora; --accent.
- **W7 Aurora Teal** `#19D3C5` — Whale Aurora: middle of the aurora.
- **W7 Ice Violet** `#B39DFF` — Whale Aurora: top of the aurora, whale rim light.
- **W7 Deep Violet** `#6B4BD8` — Whale Aurora: snow shadows.
- **W7 Snow** `#DCE8F5` — Whale Aurora: snow where the moon hits it.
- **W7 Whale Glass** `#CFE6FF` — Whale Aurora: whale bodies. --ink is #EAF6FF.
- **W8 Deep Teal** `#052B33` — Clockwork Orchard: top of the sky.
- **W8 Fog** `#0B4A52` — Clockwork Orchard: fog and horizon.
- **W8 Ground** `#06343B` — Clockwork Orchard: ground.
- **W8 Moss** `#0E6B66` — Clockwork Orchard: moss between the brass rails.
- **W8 Brass** `#D9A441` — Clockwork Orchard: trunks, gears, leaves.
- **W8 Brass Light** `#FFD98A` — Clockwork Orchard: highlights; --accent.
- **W8 Brass Dark** `#7A5417` — Clockwork Orchard: shaded brass.
- **W8 Copper** `#C4683A` — Clockwork Orchard: every third gear and the pendulum bobs.
- **W8 Verdigris** `#3FC1A5` — Clockwork Orchard: patina on trunk collars.
- **W8 Bulb** `#FFE6A8` — Clockwork Orchard: glowing glass fruit. --ink is #FFF3D6; scrim (--shade) is #031D22.
## Typography
- **Display: wordmark, intro line, world names, drawer headings. Fraunces Variable with font-variation-settings 'opsz' 144, 'SOFT' 100, 'WONK' 0. World names at weight 300, upright. Intro line at weight 300 italic. Wordmark at weight 500.** — Fraunces Variable (OFL), weights 300/500. Self-host the font files.
- **Text: captions, buttons, drawer body. 16px/24px body, 14px/20px controls, weight 400, 500 for buttons and names in the index.** — Manrope Variable (OFL), weights 400/500. Self-host the font files.
- **Mono: world numbers, countdown, eyebrows, prices. 12px, letter-spacing 0.08em, uppercase for eyebrows.** — DM Mono (OFL), weights 400. Self-host the font files.
## Spacing & shape
- Spacing: 8px base unit. Desktop overlay margin 40px on all sides; phone margin 20px (12px for the bottom bar). Card slot max-width 620px. Controls are 44px circles with 12px gaps. Drawer width 440px with 32px padding; drawer sections are separated by 40px and a 1px hairline. The page never scrolls: html and body are 100dvh with overflow hidden; only the drawer and the bottom sheet scroll inside themselves.
- Radius: Controls and the phone bottom bar are fully round (999px). Panels: 20px on the drawer's inner corners and the top corners of the bottom sheet. The gate is a capsule: a rectangle 2.6 units wide and 4.4 units tall whose top and bottom are half circles of radius 1.3. No other rounded shapes in the interface.
## Motion
- Journey clock: every world runs the same 22.4 s timeline. 0 to 1.6 s arrive, 2.5 s title card in, 12.5 s title card out, 14.0 s gate opens, 20.0 s approach starts, 22.4 s crossing. Eight worlds loop in 179.2 s and never stop.
- Camera drift: the camera rides a centripetal Catmull-Rom rail. Speed is baseSpeed times m(t). m falls from 3.0 to 1.0 over the first 1.6 s with easeOutCubic, holds 1.0 until 20.0 s, then rises from 1.0 to 3.0 over 2.4 s with easeInCubic. baseSpeed is railLength / 24.4, about 1.5 units per second, so the speed leaving one world equals the speed entering the next.
- Gate opening: at 14.0 s a vertical hairline of light widens into the full capsule over 1600 ms with cubic-bezier(0.16, 1, 0.3, 1). The rim glow then breathes between 70% and 100% opacity on a 4 s sine until the crossing.
- Gate pass-through: 2.4 s, accelerating with easeInCubic. Over the same 2.4 s the overlay colors (--ink, --accent, --shade), the outer fog tint and the sound cross-fade with cubic-bezier(0.45, 0, 0.55, 1). The swap of worlds happens 0.15 units before the gate plane and must be invisible: no flash, no fade to black, no cut.
- Title card in: number fades in 400 ms; the name rises 18px and fades in over 900 ms with cubic-bezier(0.22, 1, 0.36, 1), 80 ms stagger per line; the caption follows 250 ms later over 600 ms. Title card out: 700 ms, 8px upward, cubic-bezier(0.4, 0, 1, 1). Same place every time.
- Interface: hover, press and toggle states take 200 ms with cubic-bezier(0.2, 0, 0, 1). The drawer and the bottom sheet slide in over 520 ms with cubic-bezier(0.22, 1, 0.36, 1) and out over 320 ms with cubic-bezier(0.4, 0, 1, 1).
- Look mode: drag input is smoothed with an exponential half-life of 120 ms. When look mode is switched off, or when an approach starts, the view returns to the rail direction over 1200 ms with easeOutCubic.
- One signature motion per world, named in each world section. Everything else in a world is still or moves only because of that motion (leaves move because fog passes, reflections move because rain lands). Nothing spins, pulses or floats for decoration, and no interface element animates on a loop except the progress tick.
- Reduced motion: the camera stands still at each world's rest pose, worlds change by a 2500 ms cross-fade every 20 s, in-world motion runs at 40% speed, title cards fade without moving, and the film grain is static.
## Imagery
No image, model, texture or audio files. Every world is built at run time from three.js primitives, instanced meshes, noise-displaced geometry, points and small GLSL shaders; any sprite or matcap texture is painted on an in-memory canvas at start-up. No shadow maps, no transmission materials and no post-processing passes: glow is additive geometry, depth is fog. All sky and fog gradients add a one-step hash dither so dark gradients never band. A film-grain layer sits above the canvas: a 128px noise tile painted on a canvas at start-up, used as a CSS background at 6% opacity with mix-blend-mode overlay, shifted to a new offset 8 times per second. A soft vignette (radial gradient, transparent to 22% black at the corners) sits under the overlay text. Behind the text in the lower left there is a scrim: a radial gradient of the current world's --shade color, 72% at the corner fading to 0 at 60% of the viewport width, strong enough that the caption keeps a contrast of at least 4.5:1 in every world.
## Tone
Calm, exact, a little dry. Short sentences with concrete nouns and numbers. No exclamation marks, no hype words, nothing about technology on the surface: the copy talks about rooms, light and time.
---
Inspired by Hands-off journey through code-drawn 3D worlds linked by portals, with synthesized ambient sound by @Ethan Mollick — https://www.oneusefulthing.org/p/fable-52-and-jagged-agi
— Prompt by VibeFather · https://vibefather.ai/t/3d-portal-worlds-journey · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
Yes. The 3D Portal Worlds Journey template is free on VibeFather: its prompt and DESIGN.md are free for personal, non-commercial use under CC BY-NC 4.0. It is a single full-screen page where the camera drifts through eight code-drawn worlds, so you can watch a free demo and then run the prompt in Claude Code or another agent to get your own version.
Each of the eight worlds is a self-contained module with its own palette, title and caption, so you retitle, recolor, reorder or cut worlds without touching the journey engine. All strings, world names, captions and palettes live in one content file. Set the brand, tagline, city, venues and contact email at the top of that file and the drawer copy follows.
No. Every world is drawn in real time with three.js and small shaders, and the ambient soundscapes are generated, so there are no model, texture, image or audio files to host. The site loads straight into the first world, the Citrus Glasshouse, with no start screen. The one outbound link on the page is the contact email in the Studio drawer.
Yes. Sound stays off until a visitor asks for it, and each world's generated ambient soundscape cross-fades at the gates. Visitors with reduced-motion settings get a still camera with slow cross-fades instead of the drift. There are three round controls for pause, drag-to-look and sound, and a slim world index with a countdown lets anyone jump between worlds.
Yes. The template is framed as an ambient-visuals studio, but it suits anyone who wants a showpiece rather than a brochure: motion designers, musicians, sleep and focus apps or a developer's personal page. Change the brand, intro line, city and audience variables, then rewrite the drawer copy for what you offer and how people reach you.
Copy the prompt from this page or run npx vibefather add 3d-portal-worlds-journey, replace the variables with your own content, and paste it into Claude Code, Codex, Cursor or another AI coding agent. The live demo was built from exactly that text.
The Ambient visuals studio case was built by Claude Fable 5.2 in Claude Code. Each build used the published prompt with nothing added.
3D Portal Worlds Journey is a single-page site built with Plain HTML and Three.js, with generative / canvas, page transitions and 3d / webgl. The prompt fixes the stack so every AI tool builds the same kind of project, and the result runs as a static site you can host anywhere.
The 3D Portal Worlds Journey prompt and DESIGN.md are free for personal, non-commercial projects under CC BY-NC 4.0. Client work and commercial use need VibeFather Pro, which also includes the source code of the live demo.
Yes. Every 3D Portal Worlds Journey build was tested on a phone-sized screen as well as desktop before it went live, checking layout, text size and touch targets. Open the live demo on your phone, or switch the preview on this page to mobile view, to check it yourself.