# Immersive Cinematic (`immersive-cinematic`)

> The site of a landscape photography tour company, cut like a short film ordered by the hour: widescreen letterbox, full-bleed photographs and four chapters from dawn to night, followed by the routes with prices and the contacts.

This is a worked example: one concept, built for one fictional client. Study how its concept turned into decisions and borrow the craft. Do not ship its surface (palette, motifs, component looks) for a different client unless your own concept, drawn from that client's world, leads to the same place.

- Chinese name: 沉浸式影像叙事. 一家风光摄影旅行社的网站，做成一部按时辰剪的短片：宽银幕遮幅、满屏照片，破晓、正午、黄昏、入夜四章往下滑着看，片子后面是线路价格和联系方式。
- Category: Cinematic. Tags: Dramatic, Premium, Dark, Serif, Full-bleed, Photography, Scroll story, WebGL.
- Live page: [English](/en/sites/immersive-cinematic/full/) · [Chinese](/sites/immersive-cinematic/full/) · [viewer with desktop and mobile views](/en/sites/immersive-cinematic/)
- Built with Astro, React, TypeScript and Tailwind CSS 4, plus GSAP, Paper Shaders, Magic UI.

## Where the concept came from

From the short film Long Light cuts for every trip: the title over a mountain at dawn, shots ordered by the hour and credits at the end. The four chapters are its four regular routes, and each subtitle names a place, a time and one practical fact; the routes, prices and contacts follow the film as plain lists.

## When it fits

Good for:
- Photography tours, guides and tailor-made travel: tell a route as a film ordered by the hour, then state the prices plainly.
- Attractions, national parks and destinations that sell the view.
- Resort hotels, and launches that deserve one big set piece.

Avoid when:
- Spec-heavy product pages that need side-by-side comparison: the imagery crowds out the information.
- Audiences on low-end phones and slow networks: full-bleed photographs cost data and performance.
- Sites whose content changes daily, such as news or event calendars.
- Clients without strong photos: blurred bokeh and gradients can't carry it, so illustrate the client's real scene or choose another style.

Industry fit (1-5): Tour guide 5, Attraction 5, Hotel & homestay 4, Creative brand 3, Artisan 3, Farm produce 3, Restaurant 2, Export factory 1, Education 1.

## Adapting it to another client

Keep:
- Order the story by time (a day, a night or a route), with chapters that follow the clock and two subtitle lines each.
- Subtitles state facts (place, time, altitude, walking time), never lyrical lines.
- After the film, set the routes, days, seasons and prices per person as a plain list, then give the phone number and WeChat ID.
- On the near-black ground there is one solid ivory button and every other action is an underlined link; colour comes from the photographs and each chapter’s tint.

Change:
- The near-black ground and letterbox suit night scenes and cinematic brands; daytime outdoor or family clients need a bright ground.
- Swap the chapters for the next client’s own timeline: a hotel’s day, a tea garden’s season, a show from doors to curtain.
- Make the end credits list the next client’s real crew and services instead of reusing guide, photographer, car and stays.

## Essentials

- **Color.** A near-black #0b0d0c ground with ivory #ede6d6 text and #8a8f8a for secondary text. The page has one solid button, ivory with near-black text, which turns into an outline under the pointer; every other action is an underlined link. Each chapter shifts the ground to its own very dark tint (dawn #151012, noon #0f130f, dusk #16100a, night #0a0c14) to follow the hour in the photographs. Ember #c8743a only marks text selection; the warmth of sunrise and lanterns stays in the photographs.
- **Type.** Bodoni Moda with optical sizing for titles, the name at 64–192px. Noto Serif SC Light (300) for Chinese at 0.12em tracking. Section headings are nouns (Outtakes, Routes, Tailor-made trips) at 48–128px. Subtitles in Bodoni italic in English and upright light Song in Chinese, 24–46px, two lines per chapter. Place and time slates in uppercase Instrument Sans at 0.3em; body 15–16px, with a 1.85 line height in Chinese.
- **Layout.** Film framing: 2.39:1 letterbox bars over the title on desktop and a square frame on phones. Each chapter pins its image for about a screen and a half of scrolling (never more than 1.5 screens on a phone), with the hour and time at top left, the place at top right and two subtitle lines rising at the bottom. No chapter numbers; the header holds only the brand, the language switch and Plan a trip. The outtakes sit between noon and dusk as a row of portrait photographs that swipe sideways, the next one peeking in on phones. After night come the routes, four of them, each with a 2.39:1 still, its stops, days, season and price per person. Last comes the tailor-made section: one line, a call button, WeChat and email, then end credits listing the guide, photographer, car and stays.
- **Imagery.** Landscape photography ordered through one day: Xingping at dawn, the Longji terraces at noon, Xitang at dusk and Xinluhai at night, each with deep shadows for type to sit on. The light rays in the dawn photograph are one shader frame baked into the image, not rendered live. The route stills are tighter crops of the same photographs, scaled 1.4–1.6×, so they read as a second camera angle.
- **Motion.** Slow-camera pacing on native scrolling with GSAP ScrollTrigger; nothing takes over the scroll. The title and Plan a trip are readable at first paint, and the letterbox closes around them in under half a second, then opens as you scroll while the title fades. Each chapter frame pushes open from a smaller frame while the photograph eases in and the subtitles rise; the route stills open from a slit like a letterbox. The night lake is the only live shader: it loads as the chapter approaches and pauses off screen. Under reduced motion none of it runs and the chapters no longer pin.

## Common mistakes

- Writing the subtitles as lyrical lines (“the mist says good morning”): subtitles state a place, a time and one practical fact, such as the altitude, the walking time or the months the terraces are flooded.
- Burying routes and prices in the story: after the film, list the days, seasons and prices per person plainly, then give the phone number and WeChat ID.
- Crowding each screen with text and labels: two subtitle lines at most, no chapter numbers, header counters or labels above headings; the place and time slate is the only small label.
- Putting the warm colour on buttons: the orange of sunrise and lanterns stays in the photographs, and buttons are solid ivory or underlined links.
- Letting the effects hold up the content: a title hidden behind an intro, several live shaders at once, hijacked scrolling, a chapter pinned for two or three screens. The title and main action are readable at first paint, any intro is over within half a second, one live shader at most, the browser keeps the scroll and a chapter pins for 1.5 phone screens at most; under reduced motion the choreography stays off and the page is still complete.

## Design tokens

| Token | Value | Role |
| --- | --- | --- |
| `--color-night` | `#0b0d0c` | Near-black ground, and the text on the ivory button |
| `--color-ivory` | `#ede6d6` | Text, and the one solid button |
| `--color-mist` | `#8a8f8a` | Secondary text and the roles in the end credits |
| `--color-ember` | `#c8743a` | Text selection only; the warm colour stays in the photographs |

Semantic colors with shadcn/ui names, ready for `globals.css`:

```css
:root {
  --background: #0b0d0c;
  --foreground: #ede6d6;
  --primary: #ede6d6;
  --primary-foreground: #0b0d0c;
  --muted: #151816;
  --muted-foreground: #8a8f8a;
  --border: rgb(237 230 214 / 0.14);
}
```

Fonts. The stacks use Fontsource family names; with Google Fonts or `next/font`, drop the " Variable" suffix. Each npm package holds the CSS and its unicode-range sliced font files. The jsDelivr links are for prototypes only: Google Fonts is blocked in mainland China and jsDelivr is unreliable there, so a production site for mainland visitors bundles the packages, or copies each CSS file with its `files/` folder to its own server or object storage and links that. A Chinese family costs about 100 KB of render-blocking CSS per weight (31 KB gzipped, about 100 slices); browsers then download only the slices for the characters on the page, so link only the weights you use.

- `--font-display`: "Bodoni Moda Variable", "Noto Serif SC Variable", ui-serif, serif
- `--font-sans`: "Instrument Sans Variable", "Noto Serif SC Variable", ui-sans-serif, system-ui, sans-serif
- Bodoni Moda Variable: `npm install @fontsource-variable/bodoni-moda`, then `import '@fontsource-variable/bodoni-moda/opsz.css'` and `import '@fontsource-variable/bodoni-moda/opsz-italic.css'`. Plain-HTML prototype: `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/bodoni-moda@5.3.0/opsz.css">` `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/bodoni-moda@5.3.0/opsz-italic.css">`
- Instrument Sans Variable: `npm install @fontsource-variable/instrument-sans`, then `import '@fontsource-variable/instrument-sans'`. Plain-HTML prototype: `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/instrument-sans@5.3.0/index.css">`
- Noto Serif SC Variable: `npm install @fontsource-variable/noto-serif-sc`, then `import '@fontsource-variable/noto-serif-sc'`. Plain-HTML prototype: `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/noto-serif-sc@5.3.1/index.css">`

Easing:

- `--ease-film`: `cubic-bezier(0.65, 0, 0.35, 1)`

All tokens: [tokens.css](/styles/immersive-cinematic/tokens.css) · [tokens.json](/styles/immersive-cinematic/tokens.json)

## Page structure

Screenshots are 1440 × 900 (desktop) and 390 × 844 (mobile) viewports, on the Chinese page unless marked English. Sections taller than the screen, such as pinned scroll chapters, are captured part-way through.

1. **Header** (`:is(body, main) > header`): [components/Header.astro](/sources/immersive-cinematic/components/Header.astro.txt). Visible in the Prologue screenshots
2. **Prologue** (`#top`): [components/Prologue.astro](/sources/immersive-cinematic/components/Prologue.astro.txt). Screenshots: [desktop](/shots/immersive-cinematic/top-desktop.jpg) · [mobile](/shots/immersive-cinematic/top-mobile.jpg) · [desktop, English](/shots/immersive-cinematic/top-desktop-en.jpg) · [mobile, English](/shots/immersive-cinematic/top-mobile-en.jpg)
3. **Chapter · noon** (`#noon`): [components/Chapter.astro](/sources/immersive-cinematic/components/Chapter.astro.txt). Screenshots: [desktop](/shots/immersive-cinematic/noon-desktop.jpg) · [mobile](/shots/immersive-cinematic/noon-mobile.jpg) · [desktop, English](/shots/immersive-cinematic/noon-desktop-en.jpg) · [mobile, English](/shots/immersive-cinematic/noon-mobile-en.jpg)
4. **ReelSection** (`#reel`): [components/ReelSection.astro](/sources/immersive-cinematic/components/ReelSection.astro.txt). Screenshots: [desktop](/shots/immersive-cinematic/reel-desktop.jpg) · [mobile](/shots/immersive-cinematic/reel-mobile.jpg) · [desktop, English](/shots/immersive-cinematic/reel-desktop-en.jpg) · [mobile, English](/shots/immersive-cinematic/reel-mobile-en.jpg)
5. **Chapter · dusk** (`#dusk`): [components/Chapter.astro](/sources/immersive-cinematic/components/Chapter.astro.txt). Screenshots: [desktop](/shots/immersive-cinematic/dusk-desktop.jpg) · [mobile](/shots/immersive-cinematic/dusk-mobile.jpg) · [desktop, English](/shots/immersive-cinematic/dusk-desktop-en.jpg) · [mobile, English](/shots/immersive-cinematic/dusk-mobile-en.jpg)
6. **Chapter · night** (`#night`): [components/Chapter.astro](/sources/immersive-cinematic/components/Chapter.astro.txt). Screenshots: [desktop](/shots/immersive-cinematic/night-desktop.jpg) · [mobile](/shots/immersive-cinematic/night-mobile.jpg) · [desktop, English](/shots/immersive-cinematic/night-desktop-en.jpg) · [mobile, English](/shots/immersive-cinematic/night-mobile-en.jpg)
7. **Routes** (`#routes`): [components/Routes.astro](/sources/immersive-cinematic/components/Routes.astro.txt). Screenshots: [desktop](/shots/immersive-cinematic/routes-desktop.jpg) · [mobile](/shots/immersive-cinematic/routes-mobile.jpg) · [desktop, English](/shots/immersive-cinematic/routes-desktop-en.jpg) · [mobile, English](/shots/immersive-cinematic/routes-mobile-en.jpg)
8. **Closing** (`#closing`): [components/Closing.astro](/sources/immersive-cinematic/components/Closing.astro.txt). Screenshots: [desktop](/shots/immersive-cinematic/closing-desktop.jpg) · [mobile](/shots/immersive-cinematic/closing-mobile.jpg) · [desktop, English](/shots/immersive-cinematic/closing-desktop-en.jpg) · [mobile, English](/shots/immersive-cinematic/closing-mobile-en.jpg)

## Key components

### choreography.ts

The whole scroll choreography in one script, on native scrolling: the letterbox opening, the title fading, push-ins, chapter tints and route stills opening from a slit. It does not start at all under reduced motion. The letterbox size, its half-second close and the pinned heights live in styles.css, so the first screen never waits for the script.

- Source: [choreography.ts](/sources/immersive-cinematic/choreography.ts.txt) (GSAP)
- Also needs: [styles.css](/sources/immersive-cinematic/styles.css.txt)

### Frame

One frame: a full-bleed photograph with a vignette and a ProgressiveBlur along the bottom, the hour (an h2) and time at top left, the place at top right and two subtitle lines below. Chapter pins it in a 240svh section, about 1.4 screens of scrolling, shared by three chapters; the prologue uses it too, under the title.

- Source: [components/Frame.astro](/sources/immersive-cinematic/components/Frame.astro.txt) (Magic UI)
- Also needs: [components/Chapter.astro](/sources/immersive-cinematic/components/Chapter.astro.txt), [components/Prologue.astro](/sources/immersive-cinematic/components/Prologue.astro.txt)
- Built on Magic UI `progressive-blur` ([components/ui/progressive-blur.tsx](/sources/immersive-cinematic/components/ui/progressive-blur.tsx.txt), restyled): `npx shadcn@latest add https://magicui.design/r/progressive-blur.json`
- Appears in: Prologue (`top`), Chapter · noon (`noon`), Chapter · dusk (`dusk`), Chapter · night (`night`)

### Night lake

The page’s only live shader: Water ripples the lake across the lower part of the night frame. Paper Shaders’ plain ShaderMount loads a screen before the chapter, without React, pauses off screen and renders at 1× pixel ratio with a pixel cap. Under reduced motion it never loads and the photograph stands on its own.

- Source: [lake.ts](/sources/immersive-cinematic/lake.ts.txt) (Paper Shaders)
- Also needs: [lake-water.ts](/sources/immersive-cinematic/lake-water.ts.txt), [Site.astro](/sources/immersive-cinematic/Site.astro.txt)

### Outtakes

The outtakes: a row of portrait photographs on native horizontal scrolling with scroll-snap, moved by a swipe, a trackpad or the arrow keys once focused. The next photo peeks in on phones, so it needs no instructions. No WebGL and no autoplay.

- Source: [components/ReelSection.astro](/sources/immersive-cinematic/components/ReelSection.astro.txt)
- Appears in: ReelSection (`reel`)

### Routes

The routes: four of them, each with a 2.39:1 still (a new crop of the chapter photograph), its stops, days, season and price per person, with days, season and price in three aligned columns on wide screens and one line on what the price includes.

- Source: [components/Routes.astro](/sources/immersive-cinematic/components/Routes.astro.txt)
- Appears in: Routes (`routes`)

### Tailor-made trips and credits

The end: one line, an ivory call button, a copy-WeChat-ID button and an email link with a template, then end credits listing the guide, photographer, car and stays.

- Source: [components/Closing.astro](/sources/immersive-cinematic/components/Closing.astro.txt)
- Appears in: Closing (`closing`)

## Dependencies

`npm install @paper-design/shaders gsap`

## Source files

Read only what you need:

- [Site.astro](/sources/immersive-cinematic/Site.astro.txt): the whole page, with fonts, sections and scripts
- [styles.css](/sources/immersive-cinematic/styles.css.txt): tokens and component classes
- [i18n.ts](/sources/immersive-cinematic/i18n.ts.txt): all copy, in Chinese and English
- [meta.ts](/sources/immersive-cinematic/meta.ts.txt): this guide as data
- [components/Header.astro](/sources/immersive-cinematic/components/Header.astro.txt): section
- [components/Prologue.astro](/sources/immersive-cinematic/components/Prologue.astro.txt): section
- [components/Chapter.astro](/sources/immersive-cinematic/components/Chapter.astro.txt): section
- [components/ReelSection.astro](/sources/immersive-cinematic/components/ReelSection.astro.txt): section
- [components/Routes.astro](/sources/immersive-cinematic/components/Routes.astro.txt): section
- [components/Closing.astro](/sources/immersive-cinematic/components/Closing.astro.txt): section
- [choreography.ts](/sources/immersive-cinematic/choreography.ts.txt)
- [components/Frame.astro](/sources/immersive-cinematic/components/Frame.astro.txt)
- [lake-water.ts](/sources/immersive-cinematic/lake-water.ts.txt)
- [lake.ts](/sources/immersive-cinematic/lake.ts.txt)
- [components/ui/progressive-blur.tsx](/sources/immersive-cinematic/components/ui/progressive-blur.tsx.txt): Magic UI `progressive-blur`, restyled

Everything in one file: [/sources/immersive-cinematic.txt](/sources/immersive-cinematic.txt) (about 13K tokens).

Before building, read the [design guide](/guide.md): the process and rules that apply to every site.
