# Cinder — Lit at six. Ash by ten.

Build an isolated Next.js 16 / React 19 / TypeScript / Tailwind CSS v4 landing page at `/templates/cinder` for **Cinder**, a fictional twelve-seat wood-fire tasting counter. One fire is lit at 18:00 and seven courses are cooked as it burns down. Dependencies: `lenis` for optional desktop smooth scroll, otherwise pure CSS plus lightweight client hooks.

## Central idea

**The fire burns down over one evening, so the page burns down as you scroll.** A heat gauge falls from 900 °C to 80 °C, the page's light shifts from flame to ember to ash, and each course appears at the temperature it's cooked at.

## Brand

- **Palette (seven colours, tints only via `color-mix()`):** char `#15110E` (night, text on ash), coal `#2A221D` (dark surfaces), ash `#EDE6DB` (paper), bone `#F7F2EA` (cards, text on char), smoke `#615850` (muted text, AA on ash/bone), ember `#B9381E` (primary accent, AA on ash/bone), flame `#F2A33A` (high heat, AAA on char). The live glow colour is `color-mix(in oklab, flame calc(var(--heat) * 100%), ember)`.
- **Type (`next/font/google`):** Gloock 400 for display (tight 0.92–0.95 leading); Hanken Grotesk 400/500/600 for body, 17px / 1.6; Martian Mono 400 for temperatures, times and labels, 11px uppercase, 0.08em tracking. Temperatures are written with a thin space: `640 °C`.
- **Logo:** lowercase "cinder" in Gloock, with the dot of the "i" replaced by an ember (a teardrop flame with an amber core). The favicon is the ember on a char rounded square.
- **Geometry:** 6px corners on cards and inputs, pill buttons, gutter `clamp(20px, 5vw, 72px)`, max width 1280px.

## Sections

1. **Header:** fixed; global 2px scroll-progress hairline driven by `--scroll-progress`; transparent, then a blurred char backdrop after 40px. Logo, anchor links (The fire, The menu, The wood, The cooks, Reserve) with a GPU-composited sliding active indicator, a **live heat chip** (glowing dot + current °C), a Reserve button, and a clip-path mobile drawer under 900px (locks scroll, closes on Escape).
2. **Hero (char):** full-bleed 16:9 hearth photograph behind an asymmetric directional char scrim (dark negative space on the left for AA/AAA legibility, warm open fire on the right, seamless bottom dissolve into `#15110E`). Foreground: "Lit at six. / Ash by ten." (second line in the glow colour, wide 780px column so it stays two crisp lines), lead copy, "Reserve a seat" (magnetic) and "Follow the fire" CTAs, and a translucent bottom-right mono stamp (`18:00 · 900 °C · vine & oak`). Load sequence is pure CSS keyframes: backdrop settles from `scale(1.08)`, eyebrow ember flickers, headline lines mask-rise, copy/CTAs settle, and header drops in. Scroll exit lifts copy and gently drifts the backdrop via `--hero-drift`.
3. **The fire (signature):** a section `courses × 90svh` tall with a sticky 100svh stage. A pure `sectionTravel()` turns cached section offsets (zero layout reads during scroll) into progress; `heatAt(progress)` interpolates °C between the seven course stops, and `courseIndexAt(progress)` gives each course an equal slice. A `FireProvider` writes `--heat` (0..1), `--burn` (0..1, in the last 18% of the track), `--scroll-progress`, and `--hero-drift` on the page root in one rAF loop and shares discrete `{ temp, index, phase, activeSection }` via context. The stage background is `color-mix(ash calc(var(--burn)*100%), char)`; text flips to char once progress > 0.92. The stage contains a vertical mercury gauge (horizontal on phones) with ticks and numeric readout, a **course card you can turn over** (CSS 3D flip: plate + thermal bar on the front; wood, heat, minutes on fire and serving time on the back), a 7-course desktop rail, and a 7-course mobile tap strip.
   Courses: Sardine, vine flame 900 °C · Flatbread, blistered 760 · Leeks, buried 620 · Duck heart, skewered 480 · Hake, slow grate 340 · Beetroot, ash-roasted 200 · Milk, smoked custard 80. Phases: ≥700 flame, ≥400 coals, ≥150 embers, otherwise ash.
4. **The menu (`03 — The menu`, ash):** pure scannable full-evening tasting index reusing the 7 `COURSES` (`menu/selection.ts` + `MenuLedger.tsx`). On desktop, a `bone` printed ledger lists 01→07 chronologically with time, wood/phase, and temperature beside a sticky live dish plate whose stacked `<Picture>` layers cross-fade + scale-settle (`1.04 → 1`) on hover/focus and lock on click, paired with specs, thermal bar, `"See it on the fire ↑"` jump back to `#the-fire`, and a sheet footer (`7 courses · €145 per guest · One sitting at 18:00` + `"Reserve a seat →"`). On mobile (`< 900px`), each row expands an inline `grid-template-rows` accordion with the dish photo and details (Course 01 open by default).
5. **The wood (`04 — The wood`, ash):** a continuously rotating infinite horizontal carousel (`wood/carousel.ts` + `WoodCarousel.tsx`) looping Grapevine, Sessile oak, and Wild cherry seamlessly via a single rAF `translate3d` modulo wrap (`58 px/s`, easing gently to `14 px/s` while hovering a card, auto-paused off-screen, on hidden tabs, and under reduced motion). Cards feature rAF tilt, flame spotlight, peak/burn badge, and 1.04× hover zoom; supports 1:1 pointer drag with momentum decay, Left/Right arrow keys, timber jump pills, prev/next nudges, and an explicit Pause/Play toggle.
6. **The cooks (`05 — The cooks`, coal):** an image clip-wipe reveal with inner scale settle and a three-line mask-rise quote, "We don't set the fire to the menu. We write the menu to the fire."
7. **The counter / Reserve (`06 — The counter`, ash):** facts (12 seats, 1 fire, 7 courses, 0 gas) animated with `CountUp` (tabular-nums + visually hidden final value), three off-screen-paused ambient ash flecks, and a reservation card: name, email, evening (date), and a **12-seat arc chart around the hearth** (seats booked per date come from a deterministic hash; max party 4). Validation is a pure function; invalid fields shake and focus the first error; on success, a drawn checkmark and "Your seat is warm." settle in. No network.
8. **Footer (char):** a huge wordmark, the address, links.

## Motion

Organic / analog, expressive. Verbs: *flicker* and *settle*. Tokens live in `@theme` (`--ease-out`, `--ease-out-expo`, `--ease-in-out`, `--ease-spring`, `--dur-instant` to `--dur-hero`, `--reveal-shift`, `--stagger`). Reveal variants: mask-rise lines, rise, settle, card (rise + scale + slight rotation), wipe (clip-path + inner scale), draw (rules), count-up. Only compositor-friendly properties (`transform`, `opacity`, `clip-path`) animate. All hidden states are scoped to `prefers-reduced-motion: no-preference`, with a `noscript` override; hover effects are scoped to `(hover: hover) and (pointer: fine)`. Ambient loops pause off-screen and on hidden tabs.

## Logic and tests

Pure modules with Vitest tests beside them: `fire/heat.ts`, `menu/selection.ts`, `wood/carousel.ts`, `counter/seats.ts`, `forms/reserve.ts`, `motion/math.ts`.

## Imagery

Labelled placeholders with firelit SVG marks until real photographs exist: `hero-hearth`, `wood-vine`, `wood-oak`, `wood-cherry`, `cooks-hands`, and the seven plated dishes in `02 — The fire` (`course-sardine`, `course-flatbread`, `course-leeks`, `course-duck`, `course-hake`, `course-beetroot`, `course-custard`). Firelit documentary photography, no blue light, no faces to camera, no text.
