Split wordmark hero
The wordmark in two giant words pushed to both edges with the pill menu floating between them, over a full-width grayscale photograph in a 5 px frame.
Part of the style
Lights-Out Pill Index
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/lights-out-pill-index/hero/figma.html?type=comment-bracket-folio
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/lights-out-pill-index/hero/figma.html?type=comment-bracket-folio and pass that whole HTML document to the html_to_figma tool, so the part "Split wordmark hero" lands as editable layers in my open Figma file. Fonts come from Google Fonts: if a face is missing in Figma, pick the closest one.
Code
<style>
/* Goes after the pack's base.css */
@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;600&family=Space+Mono:wght@700&display=swap");
:root {
--font-display: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
--font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}
</style>
<header class="hero">
<div class="hero__top">
<p class="hero__word hero__word--first" aria-hidden="true">OSTRA</p>
<nav class="hero__nav" aria-label="Main">
<span class="hero__marker" aria-hidden="true"></span>
<a class="hero__link is-active" href="#" aria-current="page">Index</a>
<a class="hero__link" href="#">About</a>
<a class="hero__link" href="#">Journal</a>
<a class="hero__link" href="#">Shop</a>
</nav>
<p class="hero__word hero__word--last" aria-hidden="true">VALE</p>
<h1 class="hero__title">Ostra Vale</h1>
</div>
<figure class="hero__frame">
<img class="hero__photo" src="assets/hero-stairs.jpg" alt="White concrete stairs casting a stepped shadow across a plaster wall" width="1600" height="1067">
<figcaption class="hero__caption">
<span class="hero__pill">Brand systems, interfaces and type</span>
<span class="hero__pill hero__pill--soft">Lisbon / Remote</span>
</figcaption>
</figure>
</header>
<style>
.hero {
padding: var(--frame) var(--frame) 0;
}
.hero__top {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: start;
gap: var(--space-m);
padding: 0 0 clamp(6px, 0.8vw, 12px);
}
.hero__word {
margin: 0;
font-family: var(--font-display);
font-size: var(--wordmark);
font-weight: 500;
line-height: 0.78;
letter-spacing: -0.035em;
padding-top: 0.06em;
}
.hero__word--last {
grid-column: 3;
text-align: right;
}
.hero__title {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
}
.hero__nav {
position: relative;
justify-self: center;
display: flex;
gap: var(--space-xs);
padding: var(--space-xs);
border: var(--rule) solid var(--line);
border-radius: var(--radius-pill);
background: var(--veil);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
}
.hero__marker {
position: absolute;
top: var(--space-xs);
bottom: var(--space-xs);
left: 0;
width: 0;
border-radius: var(--radius-pill);
background: var(--pill-fill);
transition: transform var(--move) var(--ease), width var(--move) var(--ease);
}
.hero__link {
position: relative;
display: inline-flex;
align-items: center;
min-height: var(--tap);
padding: 0 clamp(12px, 1.5vw, 21px);
border-radius: var(--radius-pill);
color: var(--ink);
font-size: var(--text-s);
text-decoration: none;
opacity: 0.86;
transition: opacity var(--quick) var(--ease);
}
.hero__link:hover,
.hero__link.is-active {
opacity: 1;
}
.hero__link:focus-visible {
outline: var(--rule) solid var(--ink);
outline-offset: -2px;
}
.hero__frame {
position: relative;
margin: 0;
overflow: hidden;
border-radius: var(--radius-tile);
background: var(--tile);
}
.hero__photo {
width: 100%;
height: clamp(380px, 52vw, 760px);
object-fit: cover;
object-position: 40% 50%;
filter: grayscale(1) contrast(1.05) brightness(0.86);
}
.hero__caption {
position: absolute;
left: var(--space-m);
bottom: var(--space-m);
display: flex;
flex-wrap: wrap;
gap: var(--space-s);
}
.hero__pill {
display: inline-flex;
align-items: center;
min-height: var(--pill-h);
padding: 0 16px;
border-radius: var(--radius-pill);
background: var(--veil);
color: var(--ink);
font-size: var(--text-s);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.hero__pill--soft {
color: var(--ink-soft);
}
@media (max-width: 1180px) {
.hero__top {
grid-template-columns: 1fr auto;
row-gap: var(--space-m);
}
.hero__nav {
grid-column: 1 / -1;
grid-row: 1;
}
.hero__word--first { grid-row: 2; }
.hero__word--last { grid-row: 2; grid-column: 2; }
}
@media (max-width: 520px) {
.hero__word { font-size: clamp(54px, 17vw, 96px); }
.hero__link { padding: 0 11px; }
.hero__nav { justify-self: stretch; justify-content: space-between; }
.hero__photo { height: clamp(420px, 120vw, 560px); }
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.hero')) {
const nav = root.querySelector('.hero__nav');
const marker = root.querySelector('.hero__marker');
const links = [...root.querySelectorAll('.hero__link')];
const moveTo = (link) => {
marker.style.width = link.offsetWidth + 'px';
marker.style.transform = 'translateX(' + link.offsetLeft + 'px)';
};
const active = () => links.find((link) => link.classList.contains('is-active')) || links[0];
for (const link of links) {
link.addEventListener('mouseenter', () => moveTo(link));
link.addEventListener('focus', () => moveTo(link));
link.addEventListener('click', (event) => {
event.preventDefault();
for (const other of links) {
other.classList.toggle('is-active', other === link);
if (other === link) other.setAttribute('aria-current', 'page');
else other.removeAttribute('aria-current');
}
moveTo(link);
});
}
nav.addEventListener('mouseleave', () => moveTo(active()));
new ResizeObserver(() => moveTo(active())).observe(nav);
}
})();
</script>