1The page head, in three layouts and two sizes. One component rather than
2three — the layouts differ only in where the lead and the actions sit,
3and splitting them is how you end up with three that drift.
4
5## Layout
6
7- **Left** — everything stacks in a measure-limited column. The default,
8 and the right answer unless there is a reason.
9- **Justified** — headline on the left, optional section eyebrow, lead in its
10 own column, actions under the headline. Use it when the lead is a real
11 sentence rather than a tagline; it gives the headline room to be short.
12- **Center** — centred on a narrow measure. Reads as an announcement.
13 Use it sparingly; a page of centred heads has no hierarchy.
14
15## Scale (R-10)
16
17**Display** is the headline at the top of a page, under the nav.
18**Headline** is the same layout used as a module further down one.
19
20A page has one display headline at most. Tying the size to the position
21rather than to the layout is what stops a page becoming a stack of
22competing openings, each shouting at the volume meant for the first one.
23
24Display titles never have an eyebrow. At headline scale, an optional
25eyebrow is allowed only for Left or Justified (R-14).
26
27## Actions
28
29Author the headline, lead and action labels in sentence case (R-09),
30including the first word of the subhead. Preserve proper product names
31such as Warp Terminal. The module renders exactly what it receives;
32there is no CSS transform or automatic title-casing to repair copy.
33
34- **None** — a head and nothing else.
35- **CTAs** — the pair. First action solid, everything after it outlined.
36 An external destination gets the arrow.
37- **Command** — a Command CTA below the lead, for the heroes that open
38 with something to run.
39
40CTAs and a command are mutually exclusive in practice. If a page wants
41both, the question to ask is which one it actually wants.
42
43### Existing action events
44
45`HeroAction.trackingEvent` accepts an existing registry key; when supplied,
46the inner anchor gets delegated tracking with exactly `{href: action.href}`.
47There is no automatic event chosen from the page, visual placement or copy.
48The page must wire its established contract, not merely rely on the prop's
49existence.
50
51Home preserves the hero actions from the retired factories-page-sections
52composition: both early access and Terminal download use
53`CTA_IN_HERO_CLICKED` (`cta in hero clicked`) with their own href. Do not
54replace the latter with a download event.
55Enterprise preserves the same event for `/contact-sales` and `/security`
56from its pre-migration route composition. Factories' request-access/docs
57actions remain intentionally untracked.
58
59`HomepageNavigation.test.tsx` checks these actual page compositions with
60the real delegated interceptor and exact single SDK emissions. Existing
61names and payloads must remain unchanged during component migration.
62Previously untracked actions stay untracked; a genuinely new conversion
63surface requires separate approval under the website-telemetry skill.
64
65## Media
66
67`ambient` is an optional decorative node behind the content, independent
68of `media`. Pass GlyphHover to restore the live site's pointer effect.
69It stays pointer-transparent; the Hero keeps copy and media above it.
70Nothing is mounted in that slot unless the caller supplies it.
71
72Every hero can carry an image, illustration or figure as part of the
73same block. It renders full-bleed beneath the copy, never beside it —
74the factory grid is twenty-eight columns of glyphs and turns to mush in
75half a page.
76
77## Eyebrows
78
79Omit by default. Use one only when it adds useful section context and
80both conditions hold: `scale="headline"` and layout Left or Justified.
81
82Never add an eyebrow to Display, including a smaller eyebrow above a
83display title. Never add one to Center, at either scale. Eligibility
84depends on visual scale, not the heading's HTML tag.
85
86HeroProps makes forbidden combinations type errors. Untyped callers
87receive no eyebrow in invalid combinations; the title still renders.
88The justified specimen's eyebrow appears only at Headline scale.
89
90See the Eyebrows guideline (`docs/eyebrows.md`) for authoring examples.
91
92## Ground
93
94Clear is the default: the hero does not paint a background.
95`ground="fade"` adds the live site's opening wash, from the named
96page surface to transparent over `--w-hero-fade-depth` (420px).
97
98On a light page it starts white and reveals the cool drawing ground
99and texture underneath. In the inverted palette it starts in Space
100rather than hardcoding white. It does not fade or animate the content.
101
102The Ground axis keeps both component properties available, but the
103isolated specimen stays on the neutral board ground. A white fade
104over white is intentionally subtle; do not add page chrome to make
105the option look different.
106
107## In context
108
109Use `/brand-workshop/home` to judge the composition: Hero inside
110VisualGrid, with the opening fade, Glyph Hover, actions and factory
111figure. Those are caller-supplied choices, not defaults of Hero.
112
113The Hero specimen isolates typography, layout, scale and actions,
114like the other module specimens. It does not mount VisualGrid or
115ambient effects. The board's alignment debugger remains available
116when needed; it is not the decorative page grid.
117
118## Two deliberate departures from the comps
119
120Headlines are mono in all three layouts. The centred comp was set in The
121Future and predates R-01.
122
123CTA labels are sentence case, not the comps' uppercase (R-09).
124
125## Known rough edge
126
127Justified plus Command puts the field in a half-width column, so the
128Agent CLI curl scrolls rather than fits. That is the designed behaviour
129of the command field, but it means this particular combination shows a
130truncated command by default and is worth a look before using it.