# Periwinkle Studio Float

A pale periwinkle canvas with huge light-weight grotesque headlines, pill-shaped controls and rounded project tiles, all layered over a persistent WebGL scene. Playful yet precise, with plus-mark grid crosshairs and a stark black loader that tilts white panels.

Tags: light, 3d, webgl, portfolio, agency, minimal, pill-buttons, editorial
Inspired by: https://lusion.co/

## How to use (for coding agents)

Use `tailwind.config.js` (theme.extend) and `tokens.css` from this folder. Build UI with the
token classes below rather than default Tailwind colors. Components in `components/` are
self-contained React + Tailwind files and can be copied in as-is.

## Colors
| Token | Value | Role |
| --- | --- | --- |
| `canvas` | #f0f1fa | Main page background (off-white with a periwinkle tint) |
| `canvas-deep` | #e4e6ef | Secondary surfaces, menu pill background |
| `ink` | #000000 | Primary text, logo and crosshair marks |
| `paper` | #ffffff | Loader panels, text on dark pills |
| `night` | #121416 | Dark panels and project tiles |
| `slate` | #2b2e3a | Primary dark pill button (Let's Talk) |
| `cobalt` | #0016ec | Header accent color |
| `electric-blue` | #1a2ffb | Brand blue accent |
| `lime` | #c1ff00 | Highlight accent |
| `coral` | #ff4c41 | Warm accent |
| `violet` | #8832f7 | Secondary accent |
| `error` | #e90000 | Error state |
| `canvas-soft` | rgba(240,241,250,0.7) | Semi-transparent text on dark |

## Typography
| Token | Stack | Usage |
| --- | --- | --- |
| `font-sans` | Aeonik, 'Helvetica Neue', Arial, sans-serif | All headings, body, nav, and labels; regular weight dominates |
| `font-mono` | LusionMono, IBMPlexMono, ui-monospace, monospace | Technical labels and small details |

| Class | Size | Line height | Weight | Tracking |
| --- | --- | --- | --- | --- |
| `text-display` | 144px | 1 | 400 | -0.03em |
| `text-h1` | 115.2px | 1 | 400 | -0.03em |
| `text-h2` | 86.4px | 1.05 | 400 | -0.02em |
| `text-h3` | 43.2px | 1.15 | 400 | -0.01em |
| `text-lead` | 26px | 1.3 | 400 | 0 |
| `text-body` | 18px | 1.4 | 400 | 0 |
| `text-label` | 14.4px | 1.25 | 400 | 0.01em |
| `text-caption` | 12.96px | 1.3 | 400 | 0.02em |

## Shape & depth
| Class | Value |
| --- | --- |
| `rounded-card` | 15px |
| `rounded-global` | 20px |
| `rounded-small` | 10px |
| `rounded-pill` | 100px |
| `rounded-circle` | 100% |
| `shadow-soft-lift` | rgba(0,0,0,0.04) 0px 6px 10px 0px, rgba(0,0,0,0.04) 0px 2px 4px 0px |
| `bg-side-scrim` | linear-gradient(270deg, rgba(11,11,18,0.5), rgba(11,11,18,0)) |

## Motion
| Token | Kind | Duration | Easing | Notes |
| --- | --- | --- | --- | --- |
| `standard` | transition | 400ms | cubic-bezier(0.4, 0, 0.1, 1) | Color and transform changes on links and buttons |
| `snap` | transition | 400ms | cubic-bezier(0.35, 0, 0, 1) | Snappy transform for cards and image zooms |
| `arrow-animation` | animation | 600ms | cubic-bezier(0.4, 0, 0.1, 1) | Arrow icon slides down out of its mask on hover |
| `text-animation` | animation | 600ms | cubic-bezier(0.4, 0, 0.1, 1) | Button label rolls vertically to a duplicate on hover |
| `fade-rise` | transition | 500ms | cubic-bezier(0.4, 0, 0.1, 1) | Opacity plus transform for scroll reveals |

## Components
- **Tilted Panel Loader** (`components/tilted-panel-loader.tsx`, animated-graphic) — Full-screen black intro with rotated white and light-grey rectangular panels forming an L shape, with soft 3D render fragments inside. A huge white counter numeral sits cropped at the bottom left. Props: duration (ms for the counter, default 3200), imageSrc and imageSrc2 for the render fragments inside the panels. The overlay counts to 100, then wipes upward; press 'Replay intro' to run it again.
- **Floating Pill Header** (`components/floating-pill-header.tsx`, header) — Transparent header with a wordmark at left and three pills at right: a circular icon toggle, a dark slate CTA with a dot, and a light MENU pill with two dots. Pills are fully rounded with small uppercase labels. Props: wordmark, ctaLabel, menuLabel, onCtaClick, onMenuClick. The header is position:fixed, so place it at the top of the page; labels roll and pill colors invert on hover/focus, and the circle button toggles its icon.
- **Oversized Section Heading with Side Blurb** (`components/oversized-section-heading.tsx`, features) — Giant light-weight heading at left ('Featured Work') paired with a small uppercase paragraph aligned to the right grid columns, on the pale periwinkle canvas. Props: `heading` (large light-weight title, each word slides up in turn) and `blurb` (small uppercase paragraph at the right). Renders standalone with no props.
- **Rounded Project Tile** (`components/rounded-project-tile.tsx`, card) — Two-column grid of large media tiles (about 630×410) with 15–20px radius showing full-bleed photography, 3D renders or video. Below sits a small uppercase dot-separated tag line and a large regular-weight title. Pass `projects` (title, tags, image, alt) to fill the two-column grid and `onSelect` to handle clicks. Hovering a tile zooms its image, shows a custom cursor label and nudges the title.
- **Dot-Separated Category Tags** (`components/dot-separated-tag-line.tsx`, badge) — Tiny uppercase service labels joined by bullet separators (WEB • DESIGN • 3D), set in 12–13px regular weight with light tracking and no pill chrome. Pass `tags` (string array) to set the labels and optionally `separator` (default •) and `className`. Renders as a semantic list with uppercase 12–13px text and no pill chrome.
- **Plus Crosshair Grid Markers** (`components/plus-crosshair-grid.tsx`, background) — Small black plus signs at the column lines under the header, which reveal the 12-column grid. They sit on the pale canvas above a ghostly large 3D shape. Props: columns (number of plus markers, default 5), heading, caption, className. Markers fade in when the section scrolls into view and sit above a soft ghostly shape on the canvas.
- **Persistent WebGL Backdrop** (`components/persistent-webgl-backdrop.tsx`, background) — Full-bleed 1440×900 canvas fixed behind the content showing a faint pale 3D form that shows through the periwinkle canvas. A 270° dark scrim gradient overlays media sections. Props: heading, caption, imageSrc, imageSrc2. The fixed backdrop form drifts with pointer movement and scroll; place the component at the page root so content scrolls over it.
- **Slate Pill CTA** (`components/slate-pill-button.tsx`, button) — Fully rounded dark slate (#2b2e3a) button with small uppercase white label and a trailing dot, about 134×45. Props: label (default "Let's talk"), href (renders an anchor if given, otherwise a button), onClick, className. On hover or focus the label rolls up to a duplicate and the trailing dot turns into an arrow, with a 0.4s background shift.
- **Menu Pill Button** (`components/menu-pill-button.tsx`, button) — Light grey-blue pill with the MENU label and a two-dot glyph, sitting at the far right of the header. Props: label (default "Menu"), onToggle(open) fired on click so you can show your navigation overlay, and className. Hover rolls the label, darkens the pill and pulls the dots together; click morphs the dots into a close cross.
- **Circular Icon Button** (`components/circular-icon-button.tsx`, floating-button) — 45px circle in canvas-deep with a bold dash icon, placed next to the CTA in the header. Props: label (aria-label, default "Toggle sound") and onClick callback. Drop it beside the header CTA; on hover it scales up and the dash swaps to a plus.
- **Vertical Scroll Indicator** (`components/scroll-progress-indicator.tsx`, progress) — Thin vertical track at the right viewport edge with a short black rounded thumb marking scroll position. Drop it anywhere; by default it is fixed at the right viewport edge and its thumb follows page scroll. Props: trackHeight, thumbHeight (px), label (aria), fixed (set false to place inline).
