Site Overview (Surgical Summary)
Premium satirical product experience (cork coaster as “AI-era” hardware) by Lusion. Linear, scroll-driven cinematic narrative with hybrid real-time 3D (Three.js + Gaussian Splatting) + HTML overlays. Seamless 3D↔2D morphs of the hero coaster. Heavy use of GSAP (ScrollTrigger + SplitText), Rive for select interactive 2D motion, pointer parallax/inertia, and physics-inspired camera/object motion. Dark minimal palette (#100904 near-black + #FF8539 accent orange/cream/olive accents). Hybrid rendering: Gaussian splats (props + reflections, ~45k–78k points) + textured geometry (desk/mat with center-weighted UV distortion for fidelity). WASM workers for splat sorting. Layered canvases. Easter eggs (shake micro-view for tardigrade; 6-finger hand). Text is letter-split for staggered reveals. Feel: weighty inertia, soft organic ease, premium restraint (no chaotic spectacle).
No React code here—pure blueprint for execution. Assume React/Three Fiber + GSAP + Rive + custom splat loader for implementation.
1. DOM Structure & IDs
Root is a full-viewport SPA with fixed/sticky WebGL canvas(es) + absolute/overlay HTML layers for text/UI. Scroll container drives everything via progress.
Main Hierarchy (inferred/typical + scraped text structure):
#app or #root (React root, full height, overflow hidden or scroll-managed).
#webgl-container or #canvas-wrapper (fixed, inset-0, z-0; contains one or more <canvas> for WebGL2 + possible post-processing/layer compositing).
Primary canvas: Gaussian splat + mesh scene.
Secondary/layered canvas: particles, UI sketches, or micro-view.
#ui-overlay or #html-layer (absolute, pointer-events selective, z-10+).
#hero / section[data-section="hero"] — desk splat scene + split text (“Made for mugs. Built for tables.” + letter-split “Designed to lift...”).
#intro / section[data-section="intro"] — “isn’t just a coaster...” letter-split + PLAY button.
#powered-by-ai / features cluster: Oryzo-1, 6-finger hand interaction, wearable/bikini joke, AI slop magazine.
#experience / lift/stability/circularity sections (letter-split titles like “e x p e r i e n c e”, “s t a b i l i t y”, “C i r c u l a r”; TDM viz, RoPE, temperature sliders T=10/1/0.1).
Text elements: Nearly all body/headline text is split into individual <span> or <div> per character/word (GSAP SplitText). Classes like .char, .word, .line. IDs/data attrs for targeting: data-split="hero-title", etc.
2. Component APIs (Probable React + Three Fiber / Custom)
Assume React + @react-three/fiber + drei + GSAP + Rive + custom GaussianSplat (e.g., based on three-gaussian-splat or custom WASM). Props are mathematical/declarative.
Parallax layers: object.position.x += mouseX * depthFactor * 0.05 (Z-depth multiplies factor). Actual 3D parallax, not 2D CSS.
Inertia: On scroll end, continue velocity decay: velocity *= 0.92; position += velocity.
3D→2D morph: When t in [morphStart, morphEnd], morph = smoothstep(...); coaster.scale.setScalar(lerp(1, uiScale, morph)); coaster.position.lerp(screenProjectedUIPos, morph); + material switch or billboard.
Pointer / Mouse Algorithms:
Camera offset: camera.position.add(new Vector3(mouseX * 0.3, mouseY * 0.2, 0).applyQuaternion(camera.quaternion)) then damp.
Object tilt/rotate (coaster, hand): rotation.x = mouseY * maxTilt * spring; same for Y. Spring follow.
Drag (micro-view / flip): On pointerdown → track delta; velocity = delta / dt; on up → apply velocity to spring target. For flip: if drag > threshold or click → toggle flipState → animate rotationY 0→π with spring (stiffness 200, damping 25) + Rive sync.
Shake detection (micro): Rolling window of velocities; if sum |v| > 50–100 over 200–400 ms → trigger easter egg (spawn + spring bounce).
Hand: Mouse drives IK targets or blendshape; 6th finger wiggle via noise or secondary spring. Grab: proximity + click → attach coaster temporarily with constraint spring.
Thermal Diffusion Model (TDM): Shader or particles driven by temp = lerp(hot, cold, t); diffusion = noise + heat equation approx (laplacian low-pass).
Flip Encryption: Input text → on flip, reverse/encode display (visual only, joke). Dual Rive states.
Progress scrub: GSAP timeline.progress(t) for all non-physics anims; physics always live.
Performance: LOD on splats, frustum cull, WASM sort only when dirty or every N frames, quality switch on resize/FPS.
Math Primitives:
Lerp: a + (b-a)*t
Smoothstep: t*t*(3-2*t)
Spring integrate as above (or use damped harmonic oscillator closed form if possible).
Path eval: CatmullRom or cubic Bezier B(t) = (1-t)^3 P0 + 3(1-t)^2 t P1 + ...
Normalize mouse: as above; velocity EMA: v = v*0.8 + delta*0.2.
This Micro-Spec is surgical: ready for component scaffolding, GSAP timelines, Three.js scene graph, and spring systems. Matches observed tech (Three.js/GSAP/ScrollTrigger/SplitText/Gaussian Splatting/WASM/Rive hybrid), feel (weighty physics, seamless morphs, letter reveals), and content structure. Implement with progress-driven architecture first, then layer pointer springs and section-specific interactions.
I'll start by exploring the current project structure, then build this cinematic experience step by step.
Now I'll create all the files for this premium interactive experience. Let me start with the core files and build up.
Now I'll create all the component files. Let me start with the hooks and core components.
Let me fix the TypeScript errors in Scene.tsx.
Now let me create all the section components with their content.
Let me fix the unused imports.
Good, all imports are used. Now let me create the main App.tsx that ties everything together.
Now let me build the project to check for errors.
The build succeeded. Let me refine the Scene component for better performance by fixing the buffer geometry pattern, and also clean up a few details.
Build successful! Let me do a final check to verify all the files exist and are well-formed.
All 19 source files are in place. Let me do one final verification build to make sure everything is clean.
The project builds cleanly. Here's a summary of what was built:
Oryzo.ai — Premium Satirical Product Experience
Architecture Overview
A scroll-driven cinematic SPA implementing the spec's premium UI/3D hybrid approach with React 19, React Three Fiber, GSAP + ScrollTrigger, and Tailwind CSS v4.
File Structure
Path
Purpose
src/hooks/useScrollProgress.ts
Global scroll progress (0→1) via RAF
src/hooks/useMousePosition.ts
Damped mouse tracking with velocity
src/components/Scene.tsx
3D Canvas — fixed background with coaster model, ambient particles, desk surface, accent ring, mouse parallax, progress-driven motion
src/components/TextRevealer.tsx
GSAP SplitText wrapper — staggered .word reveals triggered by ScrollTrigger
src/components/Section.tsx
ScrollTrigger pin wrapper for sticky sections
src/components/Loader.tsx
Branded loading screen with progress bar
src/components/ProgressBar.tsx
Fixed top scroll progress indicator
src/components/HeroSection.tsx
"Made for mugs. Built for tables." — split text hero
Easing: power3.out for text reveals, cubic-bezier(0.68, -0.55, 0.265, 1.55) for flip card
Motion: GSAP SplitText with staggered character reveals, scroll-scrubbed camera, mouse parallax with spring damping (0.05), coasting progress-driven particle rotation