Black Bar Grotesk
One regular-weight grotesk set huge and tight on warm off-white, with solid black bars that wipe across a line to turn it white on black, bracket-numbered section labels and photographs placed freely or turned on a slow ring. Suits studios and practices that want a quiet page with a few loud gestures.
Parts
Bar and opening line
A half-washed sticky bar with a text wordmark, three underlined links and a language switch, a black square menu button on phones, and an opening line set in a black bar.
Code
React For Figma<header class="nav">
<div class="nav__bar">
<a class="nav__wordmark" href="#" aria-label="Moraine, home">Moraine</a>
<nav class="nav__links" aria-label="Main">
<a class="nav__link" href="#">Projects</a>
<a class="nav__link is-current" href="#" aria-current="page">Studio</a>
<a class="nav__link" href="#">Contact</a>
</nav>
<div class="nav__lang">
<a class="nav__lang-link is-current" href="#" lang="en">En</a>
<span class="nav__lang-sep" aria-hidden="true">/</span>
<a class="nav__lang-link" href="#" lang="fr">Fr</a>
</div>
<button class="nav__toggle" type="button" aria-expanded="false" aria-controls="nav-menu" aria-label="Open menu">
<span class="nav__toggle-line"></span>
<span class="nav__toggle-line"></span>
<span class="nav__toggle-line"></span>
</button>
</div>
<div class="nav__menu" id="nav-menu" hidden>
<ul class="nav__menu-list">
<li><a class="nav__menu-link" href="#">Projects</a></li>
<li><a class="nav__menu-link" href="#">Studio</a></li>
<li><a class="nav__menu-link" href="#">Journal</a></li>
<li><a class="nav__menu-link" href="#">Contact</a></li>
</ul>
<p class="nav__menu-foot"><a class="nav__lang-link is-current" href="#">En</a> / <a class="nav__lang-link" href="#">Fr</a></p>
</div>
<div class="nav__intro">
<p class="nav__intro-line">We are <span class="nav__mark">landscape architects.</span></p>
</div>
</header>
<style>
.nav {
position: relative;
}
.nav__bar {
position: sticky;
top: 0;
z-index: 5;
display: flex;
align-items: center;
gap: var(--gap);
padding: 0 var(--edge);
min-height: 60px;
background: var(--veil);
backdrop-filter: blur(6px);
}
.nav__wordmark {
display: inline-flex;
align-items: center;
min-height: var(--tap);
color: var(--ink);
font-family: var(--font-display);
font-size: 1.35rem;
font-weight: 700;
letter-spacing: var(--track-tight);
text-decoration: none;
}
.nav__links {
display: flex;
gap: var(--space-m);
}
.nav__link,
.nav__lang-link {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: var(--tap);
min-height: var(--tap);
color: var(--ink);
font-size: var(--text-xs);
text-decoration: underline;
text-decoration-color: transparent;
text-decoration-thickness: var(--rule);
text-underline-offset: 4px;
transition: text-decoration-color var(--quick) var(--ease);
}
.nav__link.is-current,
.nav__lang-link.is-current,
.nav__link:hover,
.nav__lang-link:hover,
.nav__link:focus-visible {
text-decoration-color: var(--ink);
}
.nav__lang {
display: flex;
align-items: center;
gap: var(--space-xs);
margin-left: auto;
font-size: var(--text-xs);
}
.nav__toggle {
display: none;
flex-direction: column;
justify-content: center;
gap: 4px;
width: var(--tap);
height: var(--tap);
padding: 0 11px;
margin-left: auto;
border: 0;
border-radius: var(--radius-s);
background: var(--ink);
cursor: pointer;
transition: background-color var(--quick) var(--ease);
}
.nav__toggle-line {
display: block;
height: 2px;
background: var(--paper);
transition: transform var(--quick) var(--ease), opacity var(--quick) var(--ease);
}
.nav.is-open .nav__toggle-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle-line:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav__menu {
position: absolute;
inset: 60px 0 auto;
z-index: 4;
padding: var(--space-l) var(--edge);
background: var(--ink);
color: var(--paper);
}
.nav__menu-list {
margin: 0;
padding: 0;
list-style: none;
}
.nav__menu-link {
display: block;
color: var(--paper);
font-size: var(--display-s);
letter-spacing: var(--track-tight);
line-height: var(--lead-display);
text-decoration: none;
opacity: 0;
transform: translateY(12px);
transition: opacity var(--quick) var(--ease), transform var(--quick) var(--ease);
}
.nav.is-open .nav__menu-link { opacity: 1; transform: none; }
.nav.is-open li:nth-child(2) .nav__menu-link { transition-delay: 60ms; }
.nav.is-open li:nth-child(3) .nav__menu-link { transition-delay: 120ms; }
.nav.is-open li:nth-child(4) .nav__menu-link { transition-delay: 180ms; }
.nav__menu-foot {
margin: var(--space-l) 0 0;
font-size: var(--text-xs);
}
.nav__menu-foot .nav__lang-link { color: var(--paper); }
.nav__menu-foot .nav__lang-link.is-current { text-decoration-color: var(--paper); }
.nav__intro {
display: grid;
place-items: center;
min-height: clamp(20rem, 46vw, 36rem);
padding: var(--space-xl) var(--edge);
border-bottom: var(--rule) solid var(--ink);
}
.nav__intro-line {
margin: 0;
font-size: var(--display-s);
letter-spacing: var(--track-tight);
line-height: var(--lead-display);
text-align: center;
}
.nav__mark {
padding: 0 0.12em;
background: var(--ink);
color: var(--paper);
box-decoration-break: clone;
-webkit-box-decoration-break: clone;
}
@media (max-width: 40rem) {
.nav__links,
.nav__lang { display: none; }
.nav__toggle { display: flex; }
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.nav')) {
const toggle = root.querySelector('.nav__toggle');
const menu = root.querySelector('.nav__menu');
if (!toggle || !menu) continue;
const set = (open) => {
toggle.setAttribute('aria-expanded', String(open));
toggle.setAttribute('aria-label', open ? 'Close menu' : 'Open menu');
if (open) {
menu.hidden = false;
requestAnimationFrame(() => root.classList.add('is-open'));
} else {
root.classList.remove('is-open');
menu.hidden = true;
}
};
toggle.addEventListener('click', () => set(!root.classList.contains('is-open')));
root.addEventListener('keydown', (event) => {
if (event.key === 'Escape' && root.classList.contains('is-open')) { set(false); toggle.focus(); }
});
menu.addEventListener('click', (event) => { if (event.target.closest('a')) set(false); });
}
})();
</script>
Huge line over a photograph
The hero line set huge and tight, a full-width photograph that settles in scale, a large intro sentence and a black plus button.
Code
React For Figma<section class="hero">
<h1 class="hero__title">We make public green.</h1>
<figure class="hero__frame">
<img class="hero__photo" src="assets/pergola.jpg" alt="A long pergola of climbing roses over a straight garden path" width="1200" height="800" loading="eager">
</figure>
<div class="hero__foot">
<p class="hero__lead">Moraine is a small studio of landscape architects in Lyon, Basel and Turin, with one plain aim: parks, squares and courtyards that people actually stay in.</p>
<a class="hero__cta" href="#">See the parks <span class="hero__plus" aria-hidden="true">+</span></a>
</div>
</section>
<style>
.hero {
padding: var(--space-l) var(--edge) var(--section-space);
}
.hero__title {
margin: 0 0 var(--space-l);
font-family: var(--font-display);
font-size: var(--display-l);
font-weight: 400;
letter-spacing: var(--track-tight);
line-height: var(--lead-display);
text-align: center;
text-wrap: balance;
}
.hero__frame {
margin: 0;
overflow: hidden;
aspect-ratio: 16 / 7;
}
.hero__photo {
width: 100%;
height: 100%;
object-fit: cover;
transform: scale(1.08);
transition: transform 1.6s var(--ease);
}
.hero.is-seen .hero__photo {
transform: scale(1);
}
.hero__foot {
display: grid;
grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
align-items: end;
gap: var(--gap);
margin-top: var(--space-l);
}
.hero__lead {
margin: 0;
font-size: var(--text-l);
letter-spacing: -0.03em;
line-height: 1.15;
}
.hero__cta {
justify-self: end;
display: inline-flex;
align-items: center;
gap: 0.3em;
min-height: var(--tap);
padding: 0 var(--space-s);
border-radius: var(--radius-s);
background: var(--ink);
color: var(--paper);
font-size: var(--text-s);
font-weight: 700;
text-decoration: none;
transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease), box-shadow var(--quick) var(--ease);
}
.hero__plus {
display: inline-block;
transition: transform var(--quick) var(--ease);
}
.hero__cta:hover,
.hero__cta:focus-visible {
background: var(--paper);
color: var(--ink);
box-shadow: inset 0 0 0 var(--rule) var(--ink);
}
.hero__cta:hover .hero__plus,
.hero__cta:focus-visible .hero__plus {
transform: rotate(90deg);
}
@media (max-width: 40rem) {
.hero__title { text-align: left; }
.hero__frame { aspect-ratio: 4 / 5; }
.hero__foot { grid-template-columns: 1fr; }
.hero__cta { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
.hero__photo { transform: none; transition: none; }
}
</style>
<script>
(() => {
const roots = document.querySelectorAll('.hero');
const seen = new IntersectionObserver((entries) => {
for (const entry of entries) {
if (!entry.isIntersecting) continue;
entry.target.classList.add('is-seen');
seen.unobserve(entry.target);
}
}, { threshold: 0.05 });
for (const root of roots) seen.observe(root);
})();
</script>
Wiped statement
A bracket-numbered label, a statement a black bar wipes across on view, two narrow columns of copy and a black button.
Code
React For Figma<section class="statement">
<p class="statement__label"><span class="statement__num">(01)</span> <span class="statement__name">Our work</span></p>
<h2 class="statement__line">
<span class="statement__plain">We build places to linger.</span>
<span class="statement__wipe" aria-hidden="true"><span class="statement__bar">We build places to linger.</span></span>
</h2>
<div class="statement__body">
<p class="statement__text">Our work sits where a city opens up: market squares, river banks, school yards and the small leftover corners between new housing blocks.</p>
<p class="statement__text">We plant for shade first and for show second, we keep old trees where they stand, and we draw benches before we draw paths.</p>
<p class="statement__text">Every scheme is tested on site with chalk, string and borrowed chairs, so the people who will use a place can tell us where it is wrong before it is built.</p>
<p class="statement__text">The result is ground that keeps working long after the opening day, truly used and truly public.</p>
</div>
<a class="statement__cta" href="#">View projects <span class="statement__plus" aria-hidden="true">+</span></a>
</section>
<style>
.statement {
padding: var(--section-space) var(--edge);
}
.statement__label {
display: flex;
align-items: baseline;
gap: var(--space-xs);
margin: 0 0 var(--space-xl);
}
.statement__num {
font-size: var(--text-xs);
}
.statement__name {
padding-bottom: var(--space-xs);
border-bottom: var(--rule) solid var(--ink);
font-size: var(--text-l);
letter-spacing: -0.03em;
line-height: 1.1;
}
.statement__line {
position: relative;
width: fit-content;
max-width: 100%;
margin: 0 0 var(--space-xl);
font-family: var(--font-display);
font-size: var(--display-s);
font-weight: 400;
letter-spacing: var(--track-tight);
line-height: var(--lead-display);
}
.statement__plain {
display: block;
}
.statement__wipe {
position: absolute;
inset: 0;
clip-path: inset(0 100% 0 0);
transition: clip-path var(--wipe) var(--ease-bar);
}
.statement__bar {
background: var(--ink);
color: var(--paper);
box-decoration-break: clone;
-webkit-box-decoration-break: clone;
}
.statement.is-seen .statement__wipe {
clip-path: inset(0 0 0 0);
}
.statement__line:hover .statement__wipe {
clip-path: inset(0 0 0 100%);
}
.statement__body {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0 var(--gap);
max-width: 52rem;
margin-left: auto;
}
.statement__text {
margin: 0 0 var(--space-m);
font-size: var(--text-s);
line-height: var(--lead-text);
}
.statement__cta {
display: inline-flex;
align-items: center;
gap: 0.3em;
min-height: var(--tap);
margin-top: var(--space-l);
padding: 0 var(--space-s);
border-radius: var(--radius-s);
background: var(--ink);
color: var(--paper);
font-weight: 700;
text-decoration: none;
transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease), box-shadow var(--quick) var(--ease);
}
.statement__plus {
display: inline-block;
transition: transform var(--quick) var(--ease);
}
.statement__cta:hover,
.statement__cta:focus-visible {
background: var(--paper);
color: var(--ink);
box-shadow: inset 0 0 0 var(--rule) var(--ink);
}
.statement__cta:hover .statement__plus,
.statement__cta:focus-visible .statement__plus {
transform: rotate(90deg);
}
@media (max-width: 40rem) {
.statement__body { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
.statement__wipe { clip-path: inset(0 0 0 0); transition: none; }
.statement__line:hover .statement__wipe { clip-path: inset(0 0 0 0); }
}
</style>
<script>
(() => {
const seen = new IntersectionObserver((entries) => {
for (const entry of entries) {
if (!entry.isIntersecting) continue;
const root = entry.target;
setTimeout(() => root.classList.add('is-seen'), 250);
seen.unobserve(root);
}
}, { threshold: 0.2 });
for (const root of document.querySelectorAll('.statement')) seen.observe(root);
})();
</script>
Photo ring
Photo tiles, repeated to twenty-four, on a tilted 3D ring that turns slowly and reads as an arc across the page, with a short line and a count under it.
Code
React For Figma<section class="ring" aria-label="Recent parks">
<div class="ring__stage">
<ul class="ring__wheel">
<li class="ring__tile"><img class="ring__photo" src="assets/shade-path.jpg" alt="A bark path through a shady planted garden" width="1000" height="750" loading="lazy"></li>
<li class="ring__tile"><img class="ring__photo" src="assets/pavilion.jpg" alt="An old park pavilion with a tower in winter" width="800" height="533" loading="lazy"></li>
<li class="ring__tile"><img class="ring__photo" src="assets/pergola-2.jpg" alt="Rose arches over a pale path" width="800" height="533" loading="lazy"></li>
<li class="ring__tile"><img class="ring__photo" src="assets/walking-path.jpg" alt="A sandy path curving through ferns" width="800" height="600" loading="lazy"></li>
<li class="ring__tile"><img class="ring__photo" src="assets/coast-path.jpg" alt="A path under rhododendrons near the coast" width="800" height="533" loading="lazy"></li>
<li class="ring__tile"><img class="ring__photo" src="assets/pergola.jpg" alt="A long pergola of climbing roses" width="1200" height="800" loading="lazy"></li>
<li class="ring__tile"><img class="ring__photo" src="assets/shade-path.jpg" alt="Hostas and ferns along a garden walk" width="1000" height="750" loading="lazy"></li>
<li class="ring__tile"><img class="ring__photo" src="assets/pavilion.jpg" alt="A timbered pavilion seen across snow" width="800" height="533" loading="lazy"></li>
<li class="ring__tile"><img class="ring__photo" src="assets/pergola-2.jpg" alt="A rose walk in summer" width="800" height="533" loading="lazy"></li>
<li class="ring__tile"><img class="ring__photo" src="assets/walking-path.jpg" alt="A woodland walk in green shade" width="800" height="600" loading="lazy"></li>
<li class="ring__tile"><img class="ring__photo" src="assets/coast-path.jpg" alt="Evergreen shrubs over a paved trail" width="800" height="533" loading="lazy"></li>
<li class="ring__tile"><img class="ring__photo" src="assets/pergola.jpg" alt="Roses on timber beams above a walk" width="1200" height="800" loading="lazy"></li>
<li class="ring__tile"><img class="ring__photo" src="assets/walking-path.jpg" alt="A worn path between ferns" width="800" height="600" loading="lazy"></li>
<li class="ring__tile"><img class="ring__photo" src="assets/pergola-2.jpg" alt="Climbing roses on a timber frame" width="800" height="533" loading="lazy"></li>
<li class="ring__tile"><img class="ring__photo" src="assets/coast-path.jpg" alt="A shaded trail under broad shrubs" width="800" height="533" loading="lazy"></li>
<li class="ring__tile"><img class="ring__photo" src="assets/pavilion.jpg" alt="A park tower against a white sky" width="800" height="533" loading="lazy"></li>
</ul>
</div>
<div class="ring__foot">
<p class="ring__text">Combining patient planting with a clear plan, we take the awkward plot nobody wanted and turn it into the place everybody meets.</p>
<p class="ring__count"><span class="ring__num">(16)</span> parks in the round</p>
</div>
</section>
<style>
.ring {
overflow: hidden;
padding: var(--space-l) 0 var(--section-space);
}
.ring__stage {
position: relative;
height: clamp(13rem, 27vw, 25rem);
perspective: 1600px;
perspective-origin: 50% 0%;
}
.ring__wheel {
--radius: 520px;
--tile-w: 240px;
--turn: 0deg;
position: absolute;
left: 50%;
top: 8%;
width: 0;
height: 0;
margin: 0;
padding: 0;
list-style: none;
transform-style: preserve-3d;
transform: translateZ(calc(var(--radius) * -1)) rotateX(-14deg) rotateZ(-7deg) rotateY(var(--turn));
}
.ring__tile {
position: absolute;
left: calc(var(--tile-w) / -2);
top: 0;
width: var(--tile-w);
aspect-ratio: 4 / 5;
transform: rotateY(calc(var(--i) * 15deg)) translateZ(var(--radius));
backface-visibility: hidden;
}
.ring__photo {
width: 100%;
height: 100%;
object-fit: cover;
}
.ring__foot {
display: flex;
justify-content: space-between;
align-items: end;
gap: var(--gap);
margin-top: var(--space-l);
padding: 0 var(--edge);
}
.ring__text {
max-width: 22rem;
margin: 0;
font-size: var(--text-s);
line-height: 1.3;
}
.ring__count {
margin: 0;
font-size: var(--text-xs);
}
.ring__num {
margin-right: var(--space-xs);
}
@media (max-width: 40rem) {
.ring__foot { flex-direction: column; align-items: start; }
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.ring')) {
const stage = root.querySelector('.ring__stage');
const wheel = root.querySelector('.ring__wheel');
const originals = [...root.querySelectorAll('.ring__tile')];
for (let i = 0; originals.length && wheel.children.length < 24; i += 1) {
const copy = originals[i % originals.length].cloneNode(true);
copy.setAttribute('aria-hidden', 'true');
wheel.append(copy);
}
const tiles = wheel.querySelectorAll('.ring__tile');
const step = 360 / tiles.length;
tiles.forEach((tile, i) => {
tile.style.setProperty('--i', i);
tile.style.transform = `rotateY(${i * step}deg) translateZ(var(--radius))`;
});
const size = () => {
const width = stage.clientWidth;
const radius = Math.max(260, width * 0.55);
const tileW = (2 * Math.PI * radius) / tiles.length * 0.94;
wheel.style.setProperty('--radius', `${radius}px`);
wheel.style.setProperty('--tile-w', `${tileW}px`);
};
size();
new ResizeObserver(size).observe(stage);
const still = matchMedia('(prefers-reduced-motion: reduce)');
let angle = -15;
let frame = 0;
let last = 0;
const draw = () => wheel.style.setProperty('--turn', `${angle}deg`);
const tick = (now) => {
if (last) angle -= (now - last) * 0.006;
last = now;
draw();
frame = requestAnimationFrame(tick);
};
const start = () => { if (!frame && !still.matches) { last = 0; frame = requestAnimationFrame(tick); } };
const stop = () => { cancelAnimationFrame(frame); frame = 0; };
draw();
new IntersectionObserver(([entry]) => (entry.isIntersecting ? start() : stop())).observe(root);
still.addEventListener('change', () => (still.matches ? stop() : start()));
}
})();
</script>
Scattered pictures
Photographs of different sizes placed freely on the page, drifting at their own speeds as it scrolls, with captions on hover.
Code
React For Figma<section class="scatter" aria-label="Selected projects">
<a class="scatter__link" href="#">View projects <span class="scatter__plus" aria-hidden="true">+</span></a>
<div class="scatter__field">
<figure class="scatter__item" style="--x: 0%; --y: 6%; --w: 22%; --speed: 0.10">
<img class="scatter__photo" src="assets/pergola-2.jpg" alt="Rose arches over a pale garden path" width="800" height="533" loading="lazy">
<figcaption class="scatter__cap">Rose Walk, Annecy</figcaption>
</figure>
<figure class="scatter__item" style="--x: 30%; --y: 0%; --w: 30%; --speed: -0.06">
<img class="scatter__photo" src="assets/pavilion.jpg" alt="A timbered park pavilion with a clock tower, in snow" width="800" height="533" loading="lazy">
<figcaption class="scatter__cap">Tower Lawn, Winnipeg</figcaption>
</figure>
<figure class="scatter__item scatter__item--tall" style="--x: 74%; --y: 14%; --w: 26%; --speed: 0.14">
<img class="scatter__photo" src="assets/walking-path.jpg" alt="A sandy path curving through ferns under trees" width="800" height="600" loading="lazy">
<figcaption class="scatter__cap">Fern Hollow, Basel</figcaption>
</figure>
<figure class="scatter__item" style="--x: 12%; --y: 56%; --w: 28%; --speed: -0.1">
<img class="scatter__photo" src="assets/coast-path.jpg" alt="A path under rhododendrons near the coast" width="800" height="533" loading="lazy">
<figcaption class="scatter__cap">Cliff Garden, Turin</figcaption>
</figure>
<figure class="scatter__item" style="--x: 48%; --y: 50%; --w: 20%; --speed: 0.08">
<img class="scatter__photo" src="assets/shade-path.jpg" alt="A bark path through a shady planted bed" width="1000" height="750" loading="lazy">
<figcaption class="scatter__cap">Shade Court, Lyon</figcaption>
</figure>
</div>
</section>
<style>
.scatter {
padding: var(--space-l) var(--edge) var(--section-space);
}
.scatter__link {
display: flex;
align-items: center;
justify-content: center;
gap: 0.3em;
width: fit-content;
min-height: var(--tap);
margin: 0 auto var(--space-l);
color: var(--ink);
font-size: var(--text-xs);
font-weight: 700;
text-decoration: underline;
text-decoration-thickness: var(--rule);
text-underline-offset: 4px;
}
.scatter__plus {
display: inline-block;
transition: transform var(--quick) var(--ease);
}
.scatter__link:hover .scatter__plus,
.scatter__link:focus-visible .scatter__plus {
transform: rotate(90deg);
}
.scatter__field {
position: relative;
height: clamp(26rem, 52vw, 46rem);
}
.scatter__item {
position: absolute;
left: var(--x);
top: var(--y);
width: var(--w);
margin: 0;
transform: translateY(var(--drift, 0px));
will-change: transform;
}
.scatter__photo {
width: 100%;
height: auto;
aspect-ratio: 4 / 3;
object-fit: cover;
transition: filter var(--quick) var(--ease);
}
.scatter__item--tall .scatter__photo {
aspect-ratio: 3 / 4;
}
.scatter__cap {
margin-top: var(--space-xs);
font-size: var(--text-xs);
opacity: 0;
transition: opacity var(--quick) var(--ease);
}
.scatter__item:hover .scatter__cap {
opacity: 1;
}
@media (max-width: 40rem) {
.scatter__field {
height: auto;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--space-l) var(--space-m);
}
.scatter__item {
position: static;
width: auto;
}
.scatter__item:nth-child(odd) { margin-top: var(--space-xl); }
.scatter__item:nth-child(3n) { grid-column: 1 / -1; width: 70%; justify-self: end; }
.scatter__cap { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
.scatter__item { transform: none; }
}
</style>
<script>
(() => {
const still = matchMedia('(prefers-reduced-motion: reduce)');
for (const root of document.querySelectorAll('.scatter')) {
const items = [...root.querySelectorAll('.scatter__item')];
let visible = false;
let queued = false;
const place = () => {
queued = false;
if (!visible || still.matches) return;
const box = root.getBoundingClientRect();
const offset = Math.min(box.top, 0) + Math.max(box.top - innerHeight * 0.5, 0);
for (const item of items) {
const speed = parseFloat(getComputedStyle(item).getPropertyValue('--speed')) || 0;
item.style.setProperty('--drift', `${(offset * speed).toFixed(1)}px`);
}
};
const ask = () => { if (!queued) { queued = true; requestAnimationFrame(place); } };
new IntersectionObserver(([entry]) => { visible = entry.isIntersecting; ask(); }).observe(root);
addEventListener('scroll', ask, { passive: true });
addEventListener('resize', ask);
}
})();
</script>
Dictionary entry
The brand name set as a dictionary word with its pronunciation and word class on a rule, a short gloss, two small paragraphs and a photograph.
Code
React For Figma<section class="definition">
<header class="definition__entry">
<h2 class="definition__word">Moraine</h2>
<span class="definition__say">/məˈreɪn/</span>
<span class="definition__class">noun</span>
</header>
<p class="definition__gloss">Carried far, set down with care</p>
<div class="definition__body">
<div class="definition__text">
<p class="definition__para">A moraine is the ground a glacier leaves behind: stones carried a long way and set down where they make new land. We try to work the same way, bringing what we learn on one site to the next.</p>
<p class="definition__para">Each project begins with a long walk and ends with a planting plan a gardener can keep up. In between, we look for the one move that makes a place feel like it was always there.</p>
</div>
<figure class="definition__figure">
<img class="definition__photo" src="assets/walking-path.jpg" alt="A sandy path curving through ferns under a tall trunk" width="800" height="600" loading="lazy">
</figure>
</div>
</section>
<style>
.definition {
padding: var(--section-space) var(--edge);
}
.definition__entry {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 0 var(--space-m);
padding-bottom: var(--space-xs);
border-bottom: var(--rule) solid var(--ink);
}
.definition__word {
margin: 0;
font-family: var(--font-display);
font-size: var(--display-m);
font-weight: 400;
letter-spacing: var(--track-tight);
line-height: 1;
}
.definition__say {
font-size: var(--text-m);
letter-spacing: var(--track-text);
}
.definition__class {
margin-left: auto;
font-size: var(--text-m);
}
.definition__gloss {
margin: var(--space-xs) 0 var(--space-xl);
font-size: var(--text-l);
letter-spacing: -0.03em;
line-height: 1.1;
}
.definition__body {
display: grid;
grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 4fr);
gap: var(--gap);
align-items: start;
}
.definition__text {
grid-column: 1;
max-width: 24rem;
}
.definition__para {
margin: 0 0 var(--space-m);
font-size: var(--text-xs);
line-height: 1.55;
}
.definition__figure {
grid-column: 3;
margin: 0;
overflow: hidden;
}
.definition__photo {
width: 100%;
height: auto;
aspect-ratio: 4 / 3;
object-fit: cover;
transition: transform 0.6s var(--ease);
}
.definition__figure:hover .definition__photo {
transform: scale(1.04);
}
@media (max-width: 40rem) {
.definition__body { grid-template-columns: 1fr; }
.definition__text,
.definition__figure { grid-column: 1; }
.definition__class { margin-left: 0; }
}
</style>
Black footer with bubble
A black footer with Back to top, a line with a white bar, three link columns and a sign-up form in an off-white speech bubble.
Code
React For Figma<footer class="footer">
<a class="footer__top" href="#">Back to top <span class="footer__arrow" aria-hidden="true">↑</span></a>
<p class="footer__line">We plant for <span class="footer__mark">the long run.</span></p>
<div class="footer__grid">
<nav class="footer__col" aria-label="Footer">
<h3 class="footer__head">Navigation</h3>
<a class="footer__link" href="#">Projects</a>
<a class="footer__link" href="#">Studio</a>
<a class="footer__link" href="#">Journal</a>
<a class="footer__link" href="#">Careers</a>
</nav>
<div class="footer__col">
<h3 class="footer__head">Studios</h3>
<p class="footer__addr">Quai Saint-Vincent 12, Lyon</p>
<p class="footer__addr">Rheingasse 31, Basel</p>
<p class="footer__addr">Via Po 8, Turin</p>
</div>
<div class="footer__col">
<h3 class="footer__head">Social</h3>
<a class="footer__link" href="#">Instagram</a>
<a class="footer__link" href="#">LinkedIn</a>
</div>
<form class="footer__bubble" action="#" onsubmit="return false">
<label class="footer__label" for="footer-mail">One letter a season, about what we planted.</label>
<div class="footer__row">
<input class="footer__input" id="footer-mail" type="email" name="email" placeholder="you@example.com" autocomplete="email" required>
<button class="footer__send" type="submit">Sign up <span aria-hidden="true">+</span></button>
</div>
</form>
</div>
<p class="footer__fine"><span>© 2027 Moraine Landscape</span><span>Imprint</span><span>Privacy</span></p>
</footer>
<style>
.footer {
padding: var(--space-l) var(--edge) var(--space-m);
background: var(--ink);
color: var(--paper);
}
.footer__top,
.footer__link {
display: inline-flex;
align-items: center;
min-width: var(--tap);
gap: 0.3em;
min-height: var(--tap);
color: var(--paper);
font-size: var(--text-xs);
text-decoration: underline;
text-decoration-color: transparent;
text-decoration-thickness: var(--rule);
text-underline-offset: 4px;
transition: text-decoration-color var(--quick) var(--ease);
}
.footer__top:hover,
.footer__top:focus-visible,
.footer__link:hover,
.footer__link:focus-visible {
text-decoration-color: var(--paper);
}
.footer__arrow {
display: inline-block;
transition: transform var(--quick) var(--ease);
}
.footer__top:hover .footer__arrow { transform: translateY(-3px); }
.footer__line {
margin: var(--space-xl) 0;
font-size: var(--display-s);
letter-spacing: var(--track-tight);
line-height: var(--lead-display);
}
.footer__mark {
padding: 0 0.1em;
background: var(--paper);
color: var(--ink);
box-decoration-break: clone;
-webkit-box-decoration-break: clone;
}
.footer__grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr);
gap: var(--gap);
align-items: start;
}
.footer__col {
display: flex;
flex-direction: column;
align-items: start;
}
.footer__head {
margin: 0 0 var(--space-xs);
font-size: var(--text-xs);
font-weight: 700;
}
.footer__addr {
margin: 0 0 var(--space-xs);
font-size: var(--text-xs);
}
.footer__bubble {
position: relative;
padding: var(--space-m);
border-radius: var(--radius-bubble);
background: var(--paper);
color: var(--ink);
}
.footer__bubble::after {
content: "";
position: absolute;
right: 0;
bottom: -14px;
border-top: 14px solid var(--paper);
border-left: 18px solid transparent;
}
.footer__label {
display: block;
margin-bottom: var(--space-s);
font-size: var(--text-s);
line-height: 1.3;
}
.footer__row {
display: flex;
gap: var(--space-xs);
}
.footer__input {
flex: 1;
min-width: 0;
min-height: var(--tap);
padding: 0 var(--space-xs);
border: 0;
border-bottom: var(--rule) solid var(--ink);
border-radius: var(--radius-s);
background: transparent;
color: var(--ink);
font: inherit;
font-size: var(--text-xs);
}
.footer__input:focus-visible {
outline: none;
background: var(--veil);
}
.footer__send {
min-height: var(--tap);
padding: 0 var(--space-s);
border: 0;
border-radius: var(--radius-s);
background: var(--ink);
color: var(--paper);
font: inherit;
font-size: var(--text-xs);
font-weight: 700;
cursor: pointer;
transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease), box-shadow var(--quick) var(--ease);
}
.footer__send:hover,
.footer__send:focus-visible {
background: var(--paper);
color: var(--ink);
box-shadow: inset 0 0 0 var(--rule) var(--ink);
}
.footer__fine {
display: flex;
flex-wrap: wrap;
gap: var(--space-m);
margin: var(--space-xl) 0 0;
font-size: var(--text-xs);
color: var(--ink-soft);
}
@media (max-width: 56rem) {
.footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer__bubble { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
.footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
</style>
Style
- --ink #000000
- --paper #fffffc
- --ink-soft #6b6b66
- --veil rgba(255, 255, 252, 0.5)
Type
- DM Sans for headlines and text, stands in for a geometric grotesk used at one regular weight for every size, bold only for buttons and small heads
Motion
- On view a black bar wipes left to right across a statement line in 900ms (cubic-bezier 0.7, 0, 0.2, 1), leaving it white on black; on hover the bar wipes off to the right.
- A ring of twenty-four photo tiles (the markup's tiles, repeated by the script) turns slowly in CSS 3D, about 6 degrees a second, tilted so it reads as an arc; it stops off screen and under reduced motion.
- Scattered photographs drift up or down at their own speeds as the page scrolls.
- The hero photograph eases from 108 to 100 percent scale over 1.6s when it comes into view.
- Buttons swap black for an outlined off-white in 300ms ease-in-out and their plus turns 90 degrees.
Rules
- One grotesk at regular weight does everything; display sizes track at -0.05em and set at 1.1 line height.
- Emphasis is a solid black bar behind the words, never a colour or bold.
- Sections open with a small bracket number, (01), beside a mid-size title underlined with a 1.5px rule.
- Pure black on warm off-white #fffffc; colour comes only from the photographs.
- Square corners everywhere, except the one speech bubble at 10px.
- Lots of empty space: short body copy sits in narrow columns pushed to one side.
base.css
/* Fonts: free Google Fonts that stand in for the site's faces. */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,700&display=swap");
:root {
/* Colour */
--ink: #000000; /* main text, highlight bars, buttons, footer ground */
--paper: #fffffc; /* page background, warm off-white */
--ink-soft: #6b6b66; /* quiet captions and the phonetic line */
--veil: rgba(255, 255, 252, 0.5); /* half wash behind the sticky bar */
/* Type */
--font-display: "DM Sans", sans-serif; /* headlines: one grotesk, regular weight, tracked tight */
--font-body: "DM Sans", sans-serif; /* running text, labels, buttons */
--text-xs: 0.8125rem; /* captions, numbers in brackets, fine print */
--text-s: 1rem; /* body copy */
--text-m: clamp(1.25rem, 1rem + 0.8vw, 1.6rem); /* small headings, intro lines */
--text-l: clamp(1.6rem, 1.1rem + 1.5vw, 2.1rem); /* section titles next to the bracket number */
--display-s: clamp(2rem, 1.2rem + 3vw, 3.15rem); /* statements and highlighted lines */
--display-m: clamp(2.6rem, 1rem + 5.4vw, 5rem); /* the dictionary word */
--display-l: clamp(3rem, 0.6rem + 7.6vw, 6.8rem); /* the hero line */
--track-tight: -0.05em; /* display tracking */
--track-text: -0.01em; /* body tracking */
--lead-display: 1.1; /* display line height */
--lead-text: 1.5; /* body line height */
/* Space */
--edge: clamp(0.875rem, 0.6rem + 1vw, 1.25rem); /* page side padding */
--gap: clamp(1rem, 0.6rem + 1.4vw, 2rem); /* gutter between columns */
--space-xs: 0.375rem; /* tight steps inside a label */
--space-s: 0.75rem; /* small step */
--space-m: 1.25rem; /* paragraph step */
--space-l: 2.5rem; /* block step */
--space-xl: clamp(3rem, 2rem + 4vw, 6rem); /* between blocks of a section */
--section-space: clamp(4rem, 2.5rem + 6vw, 8rem); /* air between sections */
/* Shape */
--radius-s: 0px; /* buttons and bars are square */
--radius-bubble: 10px; /* the one soft corner, on the notice bubble */
--rule: 1.5px; /* underlines and the dictionary rule */
--tap: 44px; /* smallest tap target */
/* Motion */
--ease: ease-in-out; /* every hover and fade */
--ease-bar: cubic-bezier(0.7, 0, 0.2, 1); /* the highlight bar's wipe */
--quick: 300ms; /* hover, press, colour swaps */
--wipe: 900ms; /* the highlight bar crossing a line */
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--text-s)/var(--lead-text) var(--font-body); letter-spacing: var(--track-text); -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
For your agent
Use the kitbash MCP server at https://kitbash.me/mcp. Call get_pack("black-bar-grotesk"), then get_component for the parts you need, and build my site in that style: keep its tokens and rules, replace the placeholder copy with mine.
How to connect