One night, hour by hour, pinned

A pinned night from 10 PM to 7 AM as one long line over a plum-graded bedroom: an hour marker crosses, wake-ups rise as lime ticks with a huge serif count, then twelve weeks later six ticks fall away.

Product tourFreeFrom Perennial, HealthAbout 4k tokens saved
The whole page

Links in the preview stay on the block.

Open on its own

The prompt

One prompt, written to stand on its own: goal, structure, type, colour, spacing, behaviour and the words in square brackets to replace. Paste it into any tool that writes HTML. The Code tab has this block as one file.

706 words
Download .zip
# One night, hour by hour, pinned

One product tour section, not a whole page: build it to drop into a page that already exists. Works in Claude, v0, Lovable, Bolt, Cursor or any tool that writes HTML.

## Goal
Show what broken sleep in menopause feels like and what care changes, in one scrubbed scene with very few words.

## Structure
1. section with a graded photo behind: the image, a plum colour layer, an aubergine dim layer, a left and top scrim
2. eyebrow and serif heading at the top left
3. two frames in the same cell while pinned: a label, a large count and a caption each
4. a chart at the bottom: a 1px line with hour notches, lime ticks at the wake-up times, a marker line with a live time label, hour labels under the line

## Type
Heading Libre Caslon Display 400 clamp(40px, 5vw, 84px)/1. Count Libre Caslon Display clamp(120px, 15vw, 232px)/.76. Labels Anek Latin 600 12px capitals tracking .16em. Caption Anek clamp(16px, 1.3vw, 19px)/1.45. Hours and marker Anek 500 12px to 13px tabular figures.

## Colour
Ground #1A0D18. Photo flipped so its window is on the right, colour layer #6B3A63 in mix-blend-mode color, dim layer #22121F at .7 lifting to .56 at the end. Heading and marker #F2EADF, line rgba(242,234,223,.3), hours #B79BB0, labels, count and ticks #CFE56A.

## Spacing and lines
Pinned stage 100vh with clamp(104px, 14vh, 140px) top and clamp(44px, 7vh, 80px) bottom padding. Count in a .52em slot, caption beside it. Chart pushed to the bottom with clamp(100px, 14vh, 136px) above the line for the marker. Ticks 2px by 64px.

## Behaviour
GSAP 3.15.0 ScrollTrigger: pin for 280 percent, scrub .8, one proxy value p from 0 to 1 drives a render function. Marker crosses in p 0 to .58 with its time formatted by Intl every five minutes. Each of seven wake-ups grows scaleY 0 to 1 over 14 minutes of night as the marker passes, and the count follows. At p .6 to .74 the first label and caption fade up and out and 'Twelve weeks later' fades in. From .66 to .9 six ticks fall 96px and fade one after another and the count drops to one; the marker dims.

## Responsive
Pinned only at 900px wide and 600px tall and up. On phones, under reduced motion and in capture mode both nights stack as final states with their own charts, ticks rising once in view, every third hour label shown.

## Accessibility
Charts aria-hidden; the counts and captions are real text, and the animated numeral is aria-hidden beside a hidden static value. No pinning or scrub under reduced motion.

## Built values (from code.html)
- Fonts: Libre Caslon Display 400 (self-hosted: fonts/libre-caslon-display-400.woff2); Anek Latin 100 to 800 (self-hosted: fonts/anek-latin-400.woff2). Self-hosted files sit in fonts/ in the block download.
- Colour variables: --aub #22121F, --aub-deep #1A0D18, --plum #3A2136, --linen #F2EADF, --mauve #B79BB0, --lime #CFE56A, --ink #22121F, --ink-2 #5E4459, --line-d rgba(242,234,223,.16), --line-d2 rgba(242,234,223,.3), --line-l rgba(34,18,31,.16), --line-l2 rgba(34,18,31,.34).
- Font variables: --serif "Libre Caslon Display", "Baskerville", Georgia, serif; --sans "Anek Latin", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif.
- Size variables: --gut-l max(112px, 8vw), --gut-r max(40px, 6vw).
- Media queries: max-width 699px, prefers-reduced-motion.
- Media: assets/night.webp (2000x1333).
- Script: none, CSS only.

## Content to replace
- [Eyebrow]: why sleep comes first, four words
- [Heading]: One night, hour by hour.
- [Label one]: Before care
- [Caption one]: times awake between two hours, and why
- [Label two]: Twelve weeks later
- [Caption two]: the same kind of night, after care
- [Note]: a one-line illustration disclaimer

## Rules
Plain, specific copy that reads as a live product; never the word sample. No shadows, glow, glass, blur, gradient text, emoji or italics. Motion moves transform and opacity, with colour, border, height and stroke transitions on state changes, and holds its end state under prefers-reduced-motion. Text passes WCAG AA.

## Output
Return the block in one piece: the markup, one style block with the web fonts imported on its first line, and a small script only if the behaviour needs one. No page wrapper, no framework, no build step. Prefix every class with `blk-` and put the colours and sizes in CSS variables at the top.

Media to supply

The photos and video on the live page are licensed for this showcase, so the code points at an assets folder instead. Drop your own files in with these names, or change the paths: night.webp

More like this

Product tour

Every product tour block

Same page

More from Perennial

See the page