# Folio — a quarterly whose real 3D magazine opens, turns its paper pages and carries you through the site
> Paste this whole prompt as one message into a new, empty project.
## 1. Role and goal
You are a senior creative developer and art director. Build the one-page site of [BRAND], a printed quarterly of long reads on art, craft and place, complete and production-ready in one pass. The whole site hangs on one real-time object: a two-colour magazine built in code, whose paper really bends. On the first screen it lies closed on a warm stone table under a raking light; its embossed masthead catches the light, and the cover lifts towards the visitor's pointer to show the contents page beneath. Dragging the paper, or scrolling, opens it: the magazine rises off the table while its shadow grows until it swallows the page in ink, then three page turns carry the reader through three features, each spread with its own layout and generative illustration. The issue ends on a full stop printed in the accent; the camera dives into it until the red fills the screen and becomes the next section. That section then turns over like a sheet of paper to uncover the archive, the next issue flies into the empty place at the end of the shelf, and it is carried into the subscription page while that page slides over the archive. The numbers below are the design: follow them exactly.
## 2. Stack and constraints
- Next.js (App Router) with TypeScript and Tailwind CSS v4 (`@import "tailwindcss"`, tokens in `@theme`, your own rules inside `@layer base` / `@layer components` so they never fight the utilities); `three` with `@react-three/fiber` and `@react-three/drei`; `gsap` (core: the ticker, timelines and tweens; ScrollTrigger is deliberately not used, because every scroll range is computed in the ticker from `scrollY`, which keeps the canvas and the DOM in the same frame); `lenis` (lerp 0.1, `autoRaf: false`, driven by the ticker). In a Vite project, the same libraries with React 19.
- Fonts by name: Fraunces (variable, with its `opsz`, `SOFT` and `WONK` axes, roman and italic), Newsreader (variable, roman and italic), DM Mono (400 and 500). Load them with `next/font/google` (Fraunces with `axes: ["opsz", "SOFT", "WONK"]`), or self-host the Latin files of `@fontsource-variable/fraunces` (the `full` files), `@fontsource-variable/newsreader` and `@fontsource/dm-mono` in Vite, with `font-display: swap`. The 2D canvases that print the pages must wait for these faces (`document.fonts.load`) before they draw.
- The scene is one client component loaded without server rendering (`dynamic(() => import("./Scene"), { ssr: false })`). One `<Canvas>` for the whole page with `frameloop="never"`: a single `gsap.ticker` callback runs, in this order, `lenis.raf`, the scroll and layout measurements, every scroll-driven DOM write, then fiber's `advance()`, so the paper and the page can never drift apart by a frame.
- No external assets: every visual is generated in code. No image, video, model, HDRI or texture file. Forbidden because they download files: drei `Environment` with `preset` or `files` (use `<Environment resolution={256} frames={1}>` with `<Lightformer>` children), `useGLTF`, `useTexture` with a URL, drei `<Text>` (all printed type is drawn on 2D canvases), any `<link>` or `@import` to a font or script host.
- One page. Every link is an in-page anchor scrolled by lenis (1.4 s, ease `1 - (1 - t)^4`); social links point to in-page anchors; the form sends nothing. No `target="_blank"`, no `alert`, no navigation away. Never hijack the scroll: pinned sections use `position: sticky`, and dragging the paper simply moves the scroll position.
- Everything that changes with time or scroll is driven from script (gsap or the ticker). CSS transitions exist for hover only, and are declared inside the `:hover` rule, so a colour that the scroll rewrites never lags behind.