# Monolith CTA

> A dramatic dark closing band with an interactive 28-louver architectural light-shutter canvas that responds to pointer position and focuses volumetric tungsten light onto the primary action.

Most landing pages end on a flat gradient rectangle with a centred button. Monolith CTA closes the page inside a lit dark architectural room: 28 machined vertical shutter blades span a high-DPI HTML5 canvas behind monumental, tightly set display typography. Moving the pointer across the band smoothly twists the nearest shutters open so volumetric tungsten shafts sweep across the surface, intensifying when the visitor hovers the primary conversion block. The canvas sleeps automatically off screen and renders a crisp lit still under reduced motion.

## Install

```bash
npx shadcn@latest add @hairline-pro/monolith-cta
```

Needs React 19, Tailwind CSS v4 and shadcn/ui theme variables (any style, light and dark). Icons from lucide-react.

- npm: `lucide-react`
- Hairline UI components it needs (the CLI installs them too): none
- Docs and live preview: https://hairlineui.com/blocks/monolith-cta
- Premium block, included with All-Access (https://hairlineui.com/buy/all-access?from=blocks). Installs only with an All-Access token through the @hairline-pro registry: https://hairlineui.com/ui/installation#premium. Its source isn't public.

## Usage

```tsx
import { MonolithCta } from "@/components/monolith-cta";

<MonolithCta
  tone="tungsten"
  headline={["Ship the version", "people remember."]}
  primaryAction={{ label: "Start building", href: "/signup" }}
  secondaryAction={{ label: "Talk to engineering", href: "/contact" }}
/>
```

## Architectural shutter closer with Archivo

Pass a heavy display face through --mc-display and pick tungsten or vermilion (or override --mc-beam directly).

```tsx
import { Archivo } from "next/font/google";
import { MonolithCta } from "@/components/monolith-cta";

const display = Archivo({ subsets: ["latin"] });

export function ClosingBand() {
  return (
    <MonolithCta
      tone="tungsten"
      style={{ "--mc-display": display.style.fontFamily } as React.CSSProperties}
      eyebrow="Ready when you are"
      headline={["Ship the version", "people remember."]}
      primaryAction={{ label: "Create workspace", href: "/signup" }}
      secondaryAction={{ label: "Book architecture review", href: "/demo" }}
    />
  );
}
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `tone` | `'tungsten' \| 'vermilion'` | `'tungsten'` | Incandescent tungsten amber or dark basalt vermilion palette. |
| `eyebrow / headline / subheading` | `string \| string[]` | – | Closing typography; pass an array to headline for exact line breaks. |
| `primaryAction / secondaryAction` | `{ label: string; href?: string; onClick?: () => void }` | – | Illuminated primary conversion block and optional secondary button. |
| `facts` | `string[]` | – | Measured proof points anchored along the bottom architectural sill. |

## States

- **idle drift**: When no mouse pointer is active, the shutter beam breathes calmly across the primary action zone.
- **pointer sweep**: Moving the pointer smoothly rotates the nearest louvers open, sweeping volumetric shafts across the dark monolithic wall.
- **cta focus**: Hovering the primary action widens the beam radius and intensifies the lit blade rims around the button.
- **off-screen sleep**: Scrolling past the band or switching browser tabs immediately cancels the animation frame loop.
- **reduced motion**: Renders one crisp static lit shutter frame focused on the primary action with zero continuous animation.

## What it handles

Building a battery-friendly, high-DPI interactive canvas shutter field that responds smoothly to pointer movement, boosts light on CTA hover and halts completely off screen takes careful rendering discipline.

- **Interactive 28-louver light-shutter canvas**: Vertical blades twist open toward the cursor and project volumetric light shafts with illuminated metallic edges.
- **CTA hover beam intensification**: Hovering the primary conversion button widens and brightens the shutter aperture onto the action.
- **Monumental tight display typography**: Scales from 38px on phones to 88px on wide monitors using your --mc-display face.
- **Tungsten and vermilion --mc-* palettes**: Ships with warm incandescent tungsten amber and dark vermilion basalt palettes—zero default blues or purples.
- **Zero off-screen CPU burn**: IntersectionObserver and visibilitychange pause requestAnimationFrame whenever the band leaves view.
- **Graceful reduced-motion render**: Draws a crisp, statically focused tungsten shutter frame under prefers-reduced-motion.

## Replaces

gradient CTA banner, WebGL shader hero/closer, glowing dark CTA card, closing proof strip

## Where it fits

- **Developer infrastructure & AI launches**: Closes a dark-mode product site with unmistakable physical lighting instead of stock purple glow blobs.
- **High-ticket enterprise demo sections**: Pairs monumental display copy with an illuminated primary conversion block and measured proof sill.
- **Hardware, robotics & creative studios**: Gives the final scroll stop a dramatic architectural shutter beam that responds live to the visitor’s cursor.
- **Waitlist & early-access closers**: Wire primaryAction to an anchor link or custom async signup trigger with zero modal clutter.

## Notes

- Pure HTML5 Canvas 2D with zero WebGL boilerplate failures and zero animation libraries.
- All colours ship as --mc-* CSS variables so buyers can tune background, ink and beam colour cleanly.
- Stops requestAnimationFrame off screen and under document.hidden.

License: Hairline UI commercial license, not MIT (https://hairlineui.com/license#blocks)
