Glass Garden
A warm grey page with a slow haze of light, a huge word in pale glass that slides in and catches falling die-cut stickers, and headlines that mix a flared contrast face, condensed caps, a pixel word and sage pills on one line. Suits studios and agencies that want to look polished and crafted but still play: design, landscape, product and digital shops.
Parts
Pill menu bar
Ring monogram and two-line name, a spiky language badge that spins on hover and flips EN/PT, and a MENU pill whose star turns on hover; opening it fans five pills out from behind it with a 0.1s stagger, each label rolling up and the pill turning black on hover. On phones the pills drop into a column.
Code
React For Figma<header class="nav">
<a class="nav__brand" href="#" aria-label="Pátio Norte, home">
<svg class="nav__mark" viewBox="0 0 52 52" aria-hidden="true">
<circle cx="26" cy="26" r="22.5" fill="none" stroke="currentColor" stroke-width="5"/>
<path d="M18 39V14h10.5a8.5 8.5 0 0 1 0 17H18" fill="none" stroke="currentColor" stroke-width="5" stroke-linejoin="round"/>
<circle cx="28.5" cy="22.5" r="2.4" fill="currentColor"/>
</svg>
<span class="nav__name">Pátio<br>Norte Lda.</span>
</a>
<nav class="nav__bar" aria-label="main">
<ul class="nav__menu" id="nav-menu-1">
<li class="nav__item"><a class="nav__pill" href="#" tabindex="-1"><span class="nav__roll"><span>Home</span><span aria-hidden="true">Home</span></span><svg class="nav__spark" viewBox="0 0 12 12" aria-hidden="true"><path d="M6 0c.5 3.4 1.6 4.5 6 6-4.4 1.5-5.5 2.6-6 6-.5-3.4-1.6-4.5-6-6 4.4-1.5 5.5-2.6 6-6z"/></svg></a></li>
<li class="nav__item"><a class="nav__pill" href="#" tabindex="-1"><span class="nav__roll"><span>Studio</span><span aria-hidden="true">Studio</span></span><svg class="nav__spark" viewBox="0 0 12 12" aria-hidden="true"><path d="M6 0c.5 3.4 1.6 4.5 6 6-4.4 1.5-5.5 2.6-6 6-.5-3.4-1.6-4.5-6-6 4.4-1.5 5.5-2.6 6-6z"/></svg></a></li>
<li class="nav__item"><a class="nav__pill" href="#" tabindex="-1"><span class="nav__roll"><span>Gardens</span><span aria-hidden="true">Gardens</span></span><svg class="nav__spark" viewBox="0 0 12 12" aria-hidden="true"><path d="M6 0c.5 3.4 1.6 4.5 6 6-4.4 1.5-5.5 2.6-6 6-.5-3.4-1.6-4.5-6-6 4.4-1.5 5.5-2.6 6-6z"/></svg></a></li>
<li class="nav__item"><a class="nav__pill" href="#" tabindex="-1"><span class="nav__roll"><span>Case studies</span><span aria-hidden="true">Case studies</span></span><svg class="nav__spark" viewBox="0 0 12 12" aria-hidden="true"><path d="M6 0c.5 3.4 1.6 4.5 6 6-4.4 1.5-5.5 2.6-6 6-.5-3.4-1.6-4.5-6-6 4.4-1.5 5.5-2.6 6-6z"/></svg></a></li>
<li class="nav__item"><a class="nav__pill" href="#" tabindex="-1"><span class="nav__roll"><span>Contact</span><span aria-hidden="true">Contact</span></span><svg class="nav__spark" viewBox="0 0 12 12" aria-hidden="true"><path d="M6 0c.5 3.4 1.6 4.5 6 6-4.4 1.5-5.5 2.6-6 6-.5-3.4-1.6-4.5-6-6 4.4-1.5 5.5-2.6 6-6z"/></svg></a></li>
</ul>
<button class="nav__lang" type="button" aria-label="Switch language to Portuguese">
<svg class="nav__burst" viewBox="0 0 40 40" aria-hidden="true"></svg>
<span class="nav__lang-code">EN</span>
</button>
<button class="nav__toggle" type="button" aria-expanded="false" aria-controls="nav-menu-1">
<span class="nav__roll nav__roll--toggle"><span class="nav__word">Menu</span><span class="nav__word" aria-hidden="true">Menu</span></span>
<svg class="nav__star" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 0c.7 4.6 2.4 6.3 8 8-5.6 1.7-7.3 3.4-8 8-.7-4.6-2.4-6.3-8-8 5.6-1.7 7.3-3.4 8-8z"/></svg>
</button>
</nav>
</header>
<style>
.nav {
position: relative;
z-index: 20;
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-m);
height: 110px;
padding: 0 var(--edge);
background:
linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / var(--grid-step) var(--grid-step),
linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / var(--grid-step) var(--grid-step),
var(--stone);
color: var(--ink);
font-family: var(--font-body);
}
.nav__brand {
display: flex;
align-items: center;
gap: 12px;
min-width: var(--tap);
min-height: var(--tap);
color: inherit;
text-decoration: none;
}
.nav__mark { width: 52px; height: 52px; }
.nav__name { font: 600 17px/1 var(--font-body); letter-spacing: 0.01em; }
.nav__brand:focus-visible,
.nav__lang:focus-visible,
.nav__toggle:focus-visible,
.nav__pill:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.nav__bar { position: relative; display: flex; align-items: center; gap: 14px; }
.nav__menu {
position: absolute;
top: 50%;
right: calc(100% - 44px);
display: flex;
gap: 10px;
width: max-content;
margin: 0;
padding: 0;
list-style: none;
translate: 0 -50%;
pointer-events: none;
}
.nav__item {
flex: none;
opacity: 0;
transform: translate(var(--nav-shift-x, 0), var(--nav-shift-y, 0));
transition: transform var(--time) var(--ease-out), opacity var(--time) var(--ease-out);
transition-delay: calc(var(--nav-close-order, 0) * 0.05s);
}
.nav.is-open .nav__menu { pointer-events: auto; }
.nav.is-open .nav__item {
opacity: 1;
transform: none;
transition-delay: calc(var(--nav-order, 0) * var(--stagger));
}
.nav__pill,
.nav__toggle {
display: inline-flex;
align-items: center;
gap: 14px;
height: var(--tap);
padding: 0 18px 0 20px;
border: 1.5px solid var(--ink);
border-radius: var(--radius-pill);
background: var(--paper);
color: var(--ink);
font: 500 var(--menu-size)/1 var(--font-body);
letter-spacing: 0.04em;
text-transform: uppercase;
text-decoration: none;
white-space: nowrap;
cursor: pointer;
transition: background var(--time-colour) var(--ease-out-quart), color var(--time-colour) var(--ease-out-quart);
}
.nav__pill:hover,
.nav__pill:focus-visible { background: var(--ink); color: var(--paper); }
.nav__roll {
display: grid;
height: 1em;
overflow: hidden;
line-height: 1;
}
.nav__roll > span {
grid-area: 1 / 1;
transition: transform var(--time-colour) var(--ease-out-quart);
}
.nav__roll > span + span { transform: translateY(110%); }
.nav__pill:hover .nav__roll > span,
.nav__pill:focus-visible .nav__roll > span,
.nav__toggle:hover .nav__roll > span,
.nav__toggle:focus-visible .nav__roll > span { transform: translateY(-110%); }
.nav__pill:hover .nav__roll > span + span,
.nav__pill:focus-visible .nav__roll > span + span,
.nav__toggle:hover .nav__roll > span + span,
.nav__toggle:focus-visible .nav__roll > span + span { transform: none; }
.nav__spark { width: 10px; height: 10px; fill: currentColor; }
.nav__toggle { position: relative; z-index: 2; width: 118px; justify-content: space-between; }
.nav__star {
width: 15px;
height: 15px;
fill: currentColor;
transition: transform var(--time-icon) var(--ease), color var(--time-icon) var(--ease);
}
.nav__toggle:hover .nav__star,
.nav__toggle:focus-visible .nav__star { transform: rotate(180deg); }
.nav.is-open .nav__star { transform: rotate(45deg); }
.nav.is-open .nav__toggle:hover .nav__star { transform: rotate(225deg); }
.nav__lang {
position: relative;
display: grid;
place-items: center;
width: var(--tap);
height: var(--tap);
padding: 0;
border: 0;
background: none;
color: var(--paper);
cursor: pointer;
transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav.is-open .nav__lang { opacity: 0; transform: scale(0.6); pointer-events: none; }
.nav__burst {
position: absolute;
inset: 4px;
fill: var(--ink);
animation: nav-spin var(--spin-slow) linear infinite paused;
}
.nav__lang:hover .nav__burst,
.nav__lang:focus-visible .nav__burst { animation-play-state: running; }
.nav__lang-code {
position: relative;
font: 600 9px/1 var(--font-body);
letter-spacing: 0.02em;
transition: transform 0.4s var(--ease-out-quart);
}
.nav__lang.is-flipped .nav__lang-code { animation: nav-flip 0.4s var(--ease-out-quart); }
@keyframes nav-spin { to { transform: rotate(1turn); } }
@keyframes nav-flip { 0% { transform: rotateX(90deg); } 100% { transform: none; } }
@media (max-width: 760px) {
.nav { height: 88px; }
.nav__mark { width: 42px; height: 42px; }
.nav__name { font-size: 15px; }
}
@media (max-width: 1100px) {
.nav__menu {
top: calc(100% + 12px);
right: 0;
flex-direction: column;
align-items: flex-end;
translate: none;
}
}
@media (max-width: 370px) {
.nav__name { display: none; }
}
</style>
<script>
(() => {
function drawBurst(svg) {
const spikes = 26;
let points = '';
for (let index = 0; index < spikes * 2; index += 1) {
const radius = index % 2 ? 14.5 : 19.5;
const turn = (index / (spikes * 2)) * Math.PI * 2;
points += `${(20 + Math.cos(turn) * radius).toFixed(2)},${(20 + Math.sin(turn) * radius).toFixed(2)} `;
}
svg.innerHTML = `<polygon points="${points.trim()}"/>`;
}
function setUp(root) {
const toggle = root.querySelector('.nav__toggle');
const items = [...root.querySelectorAll('.nav__item')];
const pills = items.map((item) => item.querySelector('.nav__pill'));
const words = [...toggle.querySelectorAll('.nav__word')];
const lang = root.querySelector('.nav__lang');
drawBurst(root.querySelector('.nav__burst'));
function measureHome() {
const home = toggle.getBoundingClientRect();
items.forEach((item, order) => {
item.style.transition = 'none';
item.style.transform = 'none';
const box = item.getBoundingClientRect();
item.style.setProperty('--nav-shift-x', `${home.right - box.right}px`);
item.style.setProperty('--nav-shift-y', `${home.top - box.top}px`);
item.style.setProperty('--nav-order', order);
item.style.setProperty('--nav-close-order', items.length - 1 - order);
});
void root.offsetWidth;
items.forEach((item) => { item.style.transition = ''; item.style.transform = ''; });
}
function setOpen(open) {
root.classList.toggle('is-open', open);
toggle.setAttribute('aria-expanded', String(open));
for (const word of words) word.textContent = open ? 'Close' : 'Menu';
for (const pill of pills) pill.tabIndex = open ? 0 : -1;
}
toggle.addEventListener('click', () => setOpen(!root.classList.contains('is-open')));
root.addEventListener('keydown', (event) => {
if (event.key === 'Escape' && root.classList.contains('is-open')) { setOpen(false); toggle.focus(); }
});
for (const pill of pills) pill.addEventListener('click', (event) => { event.preventDefault(); setOpen(false); });
lang.addEventListener('click', () => {
const code = lang.querySelector('.nav__lang-code');
const next = code.textContent === 'EN' ? 'PT' : 'EN';
code.textContent = next;
lang.setAttribute('aria-label', `Switch language to ${next === 'EN' ? 'Portuguese' : 'English'}`);
lang.classList.remove('is-flipped');
void lang.offsetWidth;
lang.classList.add('is-flipped');
});
measureHome();
new ResizeObserver(measureHome).observe(root);
}
document.querySelectorAll('.nav').forEach(setUp);
})();
</script>
Greeting loader
Greetings in four languages swap in condensed caps above a percent counter, a tracked caps line and a 1px track that shuttles until the count reaches 100; then the loader fades and a replay button is left.
Code
React For Figma<section class="loader" aria-label="Loading">
<div class="loader__center">
<p class="loader__words" aria-live="off">
<span class="loader__word" data-active="true">Hello.</span>
<span class="loader__word">Bonjour.</span>
<span class="loader__word">Hola.</span>
<span class="loader__word">Ciao.</span>
<span class="loader__word">Olá.</span>
</p>
<div class="loader__foot">
<div class="loader__preparation">
<p class="loader__count"><span class="loader__number">0</span><span class="loader__percent">%</span></p>
<p class="loader__caption">Preparing the garden</p>
<span class="loader__track" aria-hidden="true"><span class="loader__shuttle"></span></span>
</div>
<button class="loader__replay" type="button" aria-label="Play the greeting again">
<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M15.5 6.5A6.5 6.5 0 1 0 16.5 11"/><path d="M16 2.5v4.2h-4.2"/></svg>
</button>
</div>
</div>
</section>
<style>
.loader {
position: relative;
display: grid;
place-items: center;
height: clamp(520px, 50vw, 720px);
background: var(--stone);
color: var(--forest);
}
.loader__center { display: grid; justify-items: center; width: min(320px, 68vw); text-align: center; }
.loader__words { display: grid; margin: 0; font: 400 clamp(44px, 1.6rem + 2.6vw, 64px)/1 var(--font-condensed); }
.loader__word {
grid-area: 1 / 1;
opacity: 0;
visibility: hidden;
transform: translateY(8px);
transition: opacity var(--quick) var(--ease), transform var(--quick-move) var(--ease), visibility 0s linear var(--quick);
}
.loader__word[data-active="true"] {
opacity: 1;
visibility: visible;
transform: none;
transition: opacity var(--quick) var(--ease), transform var(--quick-move) var(--ease), visibility 0s;
}
.loader__foot { display: grid; place-items: center; width: 100%; margin-top: 22px; }
.loader__foot > * { grid-area: 1 / 1; }
.loader__preparation {
display: grid;
width: 100%;
justify-items: center;
gap: 14px;
color: var(--sage-mid);
transition: opacity var(--time-fade) var(--ease);
}
.loader.is-done .loader__preparation { opacity: 0; pointer-events: none; }
.loader__count { margin: 0; font: 500 var(--text-xs)/1 var(--font-body); font-variant-numeric: tabular-nums; }
.loader__percent { margin-left: 3px; font-size: 0.72em; }
.loader__caption { margin: 6px 0 0; font: 400 9px/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; }
.loader__track {
position: relative;
display: block;
width: 100%;
max-width: 150px;
height: 1px;
overflow: hidden;
background: rgba(82, 99, 84, 0.15);
}
.loader__shuttle {
position: relative;
display: block;
width: 35%;
height: 1px;
background: linear-gradient(90deg, rgba(82, 99, 84, 0.15), var(--sage-mid));
animation: loader-shuttle var(--time-shuttle) var(--ease-shuttle) infinite;
}
.loader.is-complete .loader__shuttle { width: 100%; background: var(--sage-mid); animation: none; transform: none; }
@keyframes loader-shuttle { from { transform: translateX(-110%); } to { transform: translateX(400%); } }
.loader__replay {
display: grid;
place-items: center;
width: var(--tap);
height: var(--tap);
padding: 0;
border: 1.5px solid var(--ink);
border-radius: 50%;
background: var(--paper);
color: var(--ink);
cursor: pointer;
opacity: 0;
visibility: hidden;
transform: translateY(10px);
transition: opacity var(--time-icon) var(--ease), transform var(--time-icon) var(--ease), background var(--time-colour) var(--ease-out-quart), color var(--time-colour) var(--ease-out-quart), visibility 0s linear var(--time-icon);
}
.loader.is-done .loader__replay { opacity: 1; visibility: visible; transform: none; transition-delay: 0.13s, 0.13s, 0s, 0s, 0s; }
.loader__replay svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transition: transform var(--time-icon) var(--ease); }
.loader__replay:hover,
.loader__replay:focus-visible { background: var(--ink); color: var(--paper); }
.loader__replay:hover svg,
.loader__replay:focus-visible svg { transform: rotate(180deg); }
.loader__replay:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.loader:not(.is-live) .loader__shuttle { animation-play-state: paused; }
</style>
<script>
(() => {
const still = matchMedia('(prefers-reduced-motion: reduce)');
const COUNT_TIME = 1050;
const WORD_TIME = 260;
const HOLD = 150;
function setUp(root) {
const words = [...root.querySelectorAll('.loader__word')];
const number = root.querySelector('.loader__number');
let frame = 0;
let timers = [];
function showWord(index) {
words.forEach((word, order) => word.dataset.active = String(order === index));
}
function finish() {
cancelAnimationFrame(frame);
number.textContent = '100';
showWord(words.length - 1);
root.classList.add('is-complete');
timers.push(setTimeout(() => root.classList.add('is-done'), HOLD));
}
function play() {
cancelAnimationFrame(frame);
timers.forEach(clearTimeout);
timers = [];
root.classList.remove('is-complete', 'is-done');
showWord(0);
number.textContent = '0';
if (still.matches) { finish(); return; }
const start = performance.now();
const tick = (now) => {
const progress = Math.min(1, (now - start) / COUNT_TIME);
number.textContent = String(Math.round(100 * (1 - (1 - progress) ** 2)));
showWord(Math.min(words.length - 1, Math.floor((now - start) / WORD_TIME)));
if (progress < 1) frame = requestAnimationFrame(tick);
else finish();
};
frame = requestAnimationFrame(tick);
}
root.querySelector('.loader__replay').addEventListener('click', play);
let played = false;
new IntersectionObserver(([entry]) => {
root.classList.toggle('is-live', entry.isIntersecting);
if (entry.isIntersecting && !played) { played = true; play(); }
}).observe(root);
}
document.querySelectorAll('.loader').forEach(setUp);
})();
</script>
Glass word with falling stickers
The signature: a haze of drifting light, a giant script word rendered as pale glass that slides in from the right, and drawn die-cut stickers that fall, collide and settle on its letters. Grab and throw them. Credentials box, lede, scroll hint and a glass ring sit in the corners.
Code
React For Figma<section class="hero" aria-label="Pátio Norte, landscape and garden architecture in Porto">
<canvas class="hero__haze" aria-hidden="true"></canvas>
<div class="hero__grid" aria-hidden="true"></div>
<svg class="hero__glass" aria-hidden="true">
<defs>
<filter class="hero__filter" id="hero-glass" x="-15%" y="-30%" width="130%" height="160%" color-interpolation-filters="sRGB">
<feGaussianBlur in="SourceAlpha" stdDeviation="7" result="bump" data-scale="0.026"/>
<feSpecularLighting in="bump" surfaceScale="5" specularConstant="1.25" specularExponent="26" result="shine" style="lighting-color: var(--paper)">
<feDistantLight azimuth="235" elevation="34"/>
</feSpecularLighting>
<feComposite in="shine" in2="SourceAlpha" operator="in" result="shineInside"/>
<feDiffuseLighting in="bump" surfaceScale="4" diffuseConstant="1.05" result="light" style="lighting-color: var(--glass-light)">
<feDistantLight azimuth="70" elevation="58"/>
</feDiffuseLighting>
<feComposite in="light" in2="SourceAlpha" operator="in" result="lit"/>
<feColorMatrix in="lit" type="matrix" values="0.9 0 0 0 0.02 0 0.94 0 0 0.04 0 0 0.9 0 0.03 0 0 0 0.5 0" result="body"/>
<feMorphology in="SourceAlpha" operator="erode" radius="2" result="thin" data-scale="0.008"/>
<feComposite in="SourceAlpha" in2="thin" operator="out" result="rimShape"/>
<feFlood flood-opacity="0.75" style="flood-color: var(--paper)"/>
<feComposite in2="rimShape" operator="in" result="rim"/>
<feGaussianBlur in="SourceAlpha" stdDeviation="12" result="soft" data-scale="0.045"/>
<feOffset in="soft" dx="8" dy="18" result="dropped" data-scale-dx="0.03" data-scale-dy="0.065"/>
<feFlood flood-opacity="0.26" style="flood-color: var(--glass-shadow)"/>
<feComposite in2="dropped" operator="in" result="shadow"/>
<feMerge>
<feMergeNode in="shadow"/>
<feMergeNode in="body"/>
<feMergeNode in="rim"/>
<feMergeNode in="shineInside"/>
</feMerge>
</filter>
</defs>
<g class="hero__word-slide">
<text class="hero__word" filter="url(#hero-glass)">jardins</text>
</g>
</svg>
<canvas class="hero__stickers" aria-hidden="true"></canvas>
<div class="hero__signature">
<div class="hero__credentials">
<div class="hero__cell hero__cell--year">
<svg class="hero__globe" viewBox="0 0 24 16" aria-hidden="true"><ellipse cx="12" cy="8" rx="11" ry="7"/><ellipse cx="12" cy="8" rx="4.6" ry="7"/><path d="M1 8h22M3 4.2h18M3 11.8h18"/></svg>
<span>Est. 2016</span>
</div>
<div class="hero__cell">10+ years shaping<br>outdoor rooms.</div>
</div>
<p class="hero__lede">Landscape and garden architecture in Porto: courtyards, roof terraces and public squares that grow into themselves.</p>
</div>
<p class="hero__hint"><span class="hero__orb" aria-hidden="true"></span>Scroll to discover</p>
<svg class="hero__ring" viewBox="0 0 98 69" aria-hidden="true">
<defs>
<filter id="hero-glass-small" x="-20%" y="-20%" width="140%" height="140%" color-interpolation-filters="sRGB">
<feGaussianBlur in="SourceAlpha" stdDeviation="1.4" result="bump"/>
<feSpecularLighting in="bump" surfaceScale="2.4" specularConstant="1.2" specularExponent="20" result="shine" style="lighting-color: var(--paper)"><feDistantLight azimuth="235" elevation="36"/></feSpecularLighting>
<feComposite in="shine" in2="SourceAlpha" operator="in" result="shineInside"/>
<feFlood flood-opacity="0.85" style="flood-color: var(--sage-pale)"/>
<feComposite in2="SourceAlpha" operator="in" result="body"/>
<feGaussianBlur in="SourceAlpha" stdDeviation="2" result="soft"/>
<feOffset in="soft" dx="1" dy="3" result="dropped"/>
<feFlood flood-opacity="0.22" style="flood-color: var(--glass-shadow)"/>
<feComposite in2="dropped" operator="in" result="shadow"/>
<feMerge><feMergeNode in="shadow"/><feMergeNode in="body"/><feMergeNode in="shineInside"/></feMerge>
</filter>
</defs>
<g filter="url(#hero-glass-small)">
<ellipse cx="49" cy="36" rx="42" ry="23" fill="none" stroke="#000" stroke-width="3.2" transform="rotate(-8 49 36)"/>
<path d="M49 18c1.6 10 4.6 13 14.5 15-9.9 2-12.9 5-14.5 15-1.6-10-4.6-13-14.5-15 9.9-2 12.9-5 14.5-15z"/>
<path d="M78 6c.8 5 2.3 6.5 7.2 7.4-4.9.9-6.4 2.4-7.2 7.4-.8-5-2.3-6.5-7.2-7.4 4.9-.9 6.4-2.4 7.2-7.4z"/>
<path d="M19 47c.7 4.2 2 5.5 6 6.2-4 .7-5.3 2-6 6.2-.7-4.2-2-5.5-6-6.2 4-.7 5.3-2 6-6.2z"/>
</g>
</svg>
</section>
<style>
.hero {
position: relative;
height: clamp(600px, 62.5vw, 900px);
overflow: hidden;
background: var(--stone);
color: var(--ink);
isolation: isolate;
}
.hero__haze,
.hero__stickers,
.hero__glass {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
max-width: none;
}
.hero__haze { z-index: 0; filter: blur(14px); transform: scale(1.06); mask: linear-gradient(var(--ink) 82%, transparent); }
.hero__grid {
position: absolute;
inset: 0 0 auto;
z-index: 1;
height: calc(var(--grid-step) * 2);
background:
linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / var(--grid-step) var(--grid-step),
linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / var(--grid-step) var(--grid-step);
mask: linear-gradient(var(--ink), transparent);
pointer-events: none;
}
.hero__glass { z-index: 2; overflow: visible; pointer-events: none; }
.hero__word {
font-family: var(--font-script);
fill: var(--ink);
text-anchor: middle;
}
.hero__word-slide {
opacity: 0;
transform: translateX(46%);
transition: transform 1.1s var(--ease-reveal), opacity 0.6s var(--ease);
}
.hero.is-ready .hero__word-slide { opacity: 1; transform: none; }
.hero__stickers { z-index: 3; touch-action: pan-y; cursor: grab; }
.hero__stickers.is-grabbing { cursor: grabbing; }
.hero__signature {
position: absolute;
z-index: 4;
left: var(--edge);
bottom: 30px;
width: min(280px, calc(100% - 2 * var(--edge)));
pointer-events: none;
}
.hero__signature > * {
opacity: 0;
transform: translateY(10px);
transition: opacity var(--time-icon) var(--ease), transform var(--time-icon) var(--ease);
}
.hero__signature > .hero__lede { transition-delay: 0.13s; }
.hero.is-ready .hero__signature > * { opacity: 1; transform: none; }
.hero__credentials {
display: grid;
grid-template-columns: 96px 1fr;
border: 1px solid rgba(0, 0, 0, 0.14);
border-radius: 4px;
background: rgba(255, 255, 255, 0.18);
font: 500 10px/1.25 var(--font-body);
text-transform: uppercase;
}
.hero__cell { padding: 10px 14px; }
.hero__cell--year {
display: grid;
justify-items: center;
gap: 6px;
border-right: 1px solid rgba(0, 0, 0, 0.14);
font-weight: 400;
}
.hero__globe { width: 26px; fill: none; stroke: var(--ink); stroke-width: 1; }
.hero__lede {
margin: 10px 0 0;
font: 400 var(--text-s)/1.2 var(--font-body);
letter-spacing: -0.012em;
}
.hero__hint {
position: absolute;
z-index: 4;
left: 50%;
bottom: 30px;
display: grid;
justify-items: center;
gap: 12px;
margin: 0;
translate: -50% 0;
color: var(--sage-mid);
font: 400 var(--text-xs)/1 var(--font-body);
letter-spacing: 0.1em;
white-space: nowrap;
opacity: 0;
transition: opacity var(--time-icon) var(--ease) 0.26s;
}
.hero.is-ready .hero__hint { opacity: 1; }
.hero__orb {
width: 6px;
height: 6px;
border-radius: 50%;
background: conic-gradient(from 0deg, var(--pearl-1), var(--pearl-2), var(--pearl-3), var(--pearl-4), var(--pearl-1));
box-shadow: 0 0 0 1px rgba(82, 99, 84, 0.35);
animation: hero-orb 5.533s var(--ease) infinite;
animation-play-state: paused;
}
.hero.is-live .hero__orb { animation-play-state: running; }
@keyframes hero-orb {
0%, 12% { transform: translateY(-8px); opacity: 0; }
30% { opacity: 1; }
62% { transform: translateY(6px); opacity: 1; }
80%, 100% { transform: translateY(10px); opacity: 0; }
}
.hero__ring {
position: absolute;
z-index: 4;
right: calc(var(--edge) - 6px);
bottom: 54px;
width: 98px;
height: 69px;
opacity: 0;
transition: opacity var(--time-icon) var(--ease) 0.26s;
}
.hero.is-ready .hero__ring { opacity: 1; }
@media (max-width: 600px) {
.hero { height: clamp(620px, 170vw, 760px); }
.hero__hint { display: none; }
.hero__ring { bottom: auto; top: 96px; right: 10px; transform: scale(0.8); }
.hero__signature { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
.hero__word-slide { transform: none; }
.hero__orb { animation: none; opacity: 1; }
}
</style>
<script>
(() => {
const still = matchMedia('(prefers-reduced-motion: reduce)');
const GRAVITY = 2600;
const STEP = 1 / 120;
const MASK_CELL = 3;
function readColour(root, name) {
return getComputedStyle(root).getPropertyValue(name).trim();
}
function clear(hex) {
const value = parseInt(hex.replace('#', ''), 16);
return `rgba(${value >> 16}, ${(value >> 8) & 255}, ${value & 255}, 0)`;
}
/* ---------- the haze: soft diagonal light streaks, drawn small and blurred ---------- */
function startHaze(root, canvas) {
const context = canvas.getContext('2d');
const light = readColour(root, '--stone-light');
const shade = readColour(root, '--stone-shade');
const base = readColour(root, '--stone');
const streaks = Array.from({ length: 11 }, (_, index) => ({
x: (index * 0.137 + 0.05) % 1.1,
y: ((index * 0.383) % 1) * 1.1 - 0.05,
length: 0.35 + ((index * 7) % 5) * 0.08,
width: 0.05 + ((index * 3) % 4) * 0.018,
bright: index % 3 !== 0,
phase: index * 1.7,
}));
const SCALE = 0.16;
function paint(seconds) {
const width = canvas.width;
const height = canvas.height;
context.fillStyle = base;
context.fillRect(0, 0, width, height);
for (const streak of streaks) {
const drift = Math.sin(seconds * 0.12 + streak.phase) * 0.03;
const cx = (streak.x + drift) * width;
const cy = (streak.y - drift * 0.6) * height;
const rx = streak.length * Math.max(width, height) * 0.5;
const ry = streak.width * Math.max(width, height) * 0.5;
context.save();
context.translate(cx, cy);
context.rotate(-0.95);
context.scale(1, ry / rx);
const glow = context.createRadialGradient(0, 0, 0, 0, 0, rx);
const tone = streak.bright ? light : shade;
glow.addColorStop(0, tone);
glow.addColorStop(1, clear(tone));
context.globalAlpha = streak.bright ? 0.85 : 0.14;
context.fillStyle = glow;
context.beginPath();
context.arc(0, 0, rx, 0, Math.PI * 2);
context.fill();
context.restore();
}
context.globalAlpha = 1;
}
let frame = 0;
const fit = () => {
canvas.width = Math.max(1, Math.round(canvas.clientWidth * SCALE));
canvas.height = Math.max(1, Math.round(canvas.clientHeight * SCALE));
paint(performance.now() / 1000);
};
const tick = (now) => {
paint(now / 1000);
frame = requestAnimationFrame(tick);
};
new ResizeObserver(fit).observe(canvas);
return (running) => {
cancelAnimationFrame(frame);
if (running && !still.matches) frame = requestAnimationFrame(tick);
};
}
/* ---------- stickers: drawn once into sprites, white die-cut edge, soft shadow ---------- */
function makeArtist(root) {
const colour = {
leaf: readColour(root, '--sticker-leaf'),
terracotta: readColour(root, '--sticker-terracotta'),
lemon: readColour(root, '--sticker-lemon'),
azul: readColour(root, '--sticker-azul'),
rose: readColour(root, '--sticker-rose'),
ink: readColour(root, '--ink'),
paper: readColour(root, '--paper'),
sage: readColour(root, '--sage'),
roseLight: readColour(root, '--rose-light'),
sand: readColour(root, '--sand'),
horn: readColour(root, '--horn'),
};
let cut = false;
let context = null;
const fill = (paint) => {
if (cut) { context.fill(); context.stroke(); return; }
context.fillStyle = paint;
context.fill();
};
const ellipse = (x, y, rx, ry, turn = 0) => { context.beginPath(); context.ellipse(x, y, rx, ry, turn, 0, Math.PI * 2); };
const shape = (points) => {
context.beginPath();
context.moveTo(points[0], points[1]);
for (let index = 2; index < points.length; index += 6) {
context.bezierCurveTo(points[index], points[index + 1], points[index + 2], points[index + 3], points[index + 4], points[index + 5]);
}
context.closePath();
};
const line = (paint, width, draw) => {
if (cut) return;
context.save();
context.strokeStyle = paint;
context.lineWidth = width;
context.lineCap = 'round';
context.beginPath();
draw();
context.stroke();
context.restore();
};
const detail = (paint, draw) => {
if (cut) return;
context.fillStyle = paint;
context.beginPath();
draw();
context.fill();
};
const face = (x, y, size = 1) => {
detail(colour.ink, () => { context.arc(x - 7 * size, y, 2.6 * size, 0, Math.PI * 2); context.arc(x + 7 * size, y, 2.6 * size, 0, Math.PI * 2); });
line(colour.ink, 2.2 * size, () => { context.arc(x, y + 3 * size, 5 * size, 0.25 * Math.PI, 0.75 * Math.PI); });
};
const drawings = {
lemon() {
ellipse(50, 52, 34, 25, -0.35); fill(colour.lemon);
ellipse(18, 64, 6, 5, -0.35); fill(colour.lemon);
ellipse(83, 40, 6, 5, -0.35); fill(colour.lemon);
shape([62, 26, 70, 8, 88, 6, 92, 12, 86, 24, 74, 30, 62, 26]); fill(colour.leaf);
line('rgba(255,255,255,0.55)', 2, () => { context.moveTo(66, 24); context.quadraticCurveTo(78, 14, 89, 11); });
detail('rgba(255,255,255,0.6)', () => context.ellipse(38, 42, 11, 5, -0.5, 0, Math.PI * 2));
detail('rgba(160,110,10,0.22)', () => context.ellipse(58, 64, 22, 9, -0.35, 0, Math.PI * 2));
face(52, 52, 0.9);
},
tile() {
context.beginPath(); context.roundRect(14, 14, 72, 72, 8); fill(colour.paper);
if (!cut) { context.save(); context.beginPath(); context.roundRect(14, 14, 72, 72, 8); context.clip(); }
detail(colour.azul, () => {
for (const [x, y] of [[14, 14], [86, 14], [14, 86], [86, 86]]) { context.moveTo(x, y); context.arc(x, y, 17, 0, Math.PI * 2); }
});
detail(colour.azul, () => {
for (let petal = 0; petal < 4; petal += 1) {
const turn = petal * Math.PI / 2;
context.ellipse(50 + Math.cos(turn) * 13, 50 + Math.sin(turn) * 13, 11, 7, turn, 0, Math.PI * 2);
}
});
if (!cut) context.restore();
detail(colour.lemon, () => context.arc(50, 50, 6, 0, Math.PI * 2));
line(colour.azul, 2.4, () => { context.roundRect(19, 19, 62, 62, 5); });
detail('rgba(255,255,255,0.35)', () => context.ellipse(34, 28, 14, 4, -0.6, 0, Math.PI * 2));
},
pot() {
shape([46, 50, 30, 46, 16, 30, 20, 20, 34, 18, 44, 34, 46, 50]); fill(colour.leaf);
shape([54, 50, 56, 32, 70, 12, 82, 16, 88, 30, 70, 44, 54, 50]); fill(colour.leaf);
line('rgba(255,255,255,0.5)', 2, () => { context.moveTo(44, 46); context.quadraticCurveTo(32, 34, 24, 24); context.moveTo(56, 46); context.quadraticCurveTo(68, 30, 80, 20); });
context.beginPath(); context.moveTo(24, 58); context.lineTo(76, 58); context.lineTo(68, 92); context.lineTo(32, 92); context.closePath(); fill(colour.terracotta);
context.beginPath(); context.roundRect(18, 48, 64, 14, 4); fill(colour.terracotta);
detail('rgba(0,0,0,0.16)', () => context.rect(26, 62, 48, 4));
detail('rgba(255,255,255,0.35)', () => context.roundRect(24, 51, 22, 4, 2));
face(50, 75, 0.85);
},
leaf() {
shape([50, 92, 14, 78, 8, 30, 34, 14, 44, 8, 56, 8, 66, 14, 92, 30, 86, 78, 50, 92]); fill(colour.leaf);
if (!cut) {
context.save();
context.globalCompositeOperation = 'destination-out';
context.lineCap = 'round';
context.lineWidth = 5;
context.beginPath();
for (const [x, y, ex, ey] of [[22, 40, 38, 50], [18, 62, 38, 64], [78, 40, 62, 50], [82, 62, 62, 64]]) { context.moveTo(x, y); context.lineTo(ex, ey); }
context.stroke();
context.restore();
}
line('rgba(255,255,255,0.55)', 2.4, () => { context.moveTo(50, 90); context.quadraticCurveTo(52, 50, 50, 16); });
line(colour.sage, 3, () => { context.moveTo(50, 92); context.lineTo(50, 98); });
},
sun() {
context.beginPath();
for (let ray = 0; ray < 12; ray += 1) {
const turn = ray * Math.PI / 6;
const inner = turn - 0.16;
const outer = turn + 0.16;
context.moveTo(50 + Math.cos(inner) * 30, 50 + Math.sin(inner) * 30);
context.lineTo(50 + Math.cos(turn) * 46, 50 + Math.sin(turn) * 46);
context.lineTo(50 + Math.cos(outer) * 30, 50 + Math.sin(outer) * 30);
}
fill(colour.terracotta);
ellipse(50, 50, 31, 31); fill(colour.lemon);
detail('rgba(255,255,255,0.5)', () => context.ellipse(40, 38, 9, 5, -0.6, 0, Math.PI * 2));
detail(colour.rose, () => { context.arc(36, 57, 4.4, 0, Math.PI * 2); context.arc(64, 57, 4.4, 0, Math.PI * 2); });
face(50, 50, 1.1);
},
can() {
shape([70, 40, 82, 34, 90, 22, 94, 18, 98, 22, 92, 36, 76, 52, 70, 50]); fill(colour.azul);
context.beginPath(); context.ellipse(95, 20, 5, 7, 0.6, 0, Math.PI * 2); fill(colour.azul);
line(colour.azul, 7, () => { context.moveTo(28, 42); context.bezierCurveTo(18, 18, 52, 10, 56, 38); });
context.beginPath(); context.roundRect(18, 36, 56, 50, 10); fill(colour.azul);
detail('rgba(255,255,255,0.32)', () => context.roundRect(24, 42, 8, 36, 4));
detail('rgba(0,0,0,0.16)', () => context.rect(18, 74, 56, 4));
face(48, 58, 0.95);
},
daisy() {
for (let petal = 0; petal < 9; petal += 1) {
const turn = petal * Math.PI * 2 / 9;
ellipse(50 + Math.cos(turn) * 24, 50 + Math.sin(turn) * 24, 15, 9, turn); fill(petal % 2 ? colour.rose : colour.roseLight);
}
ellipse(50, 50, 17, 17); fill(colour.lemon);
detail('rgba(160,110,10,0.25)', () => { for (const [x, y] of [[44, 56], [55, 58], [58, 47]]) { context.moveTo(x, y); context.arc(x, y, 2, 0, Math.PI * 2); } });
face(50, 48, 0.8);
},
snail() {
shape([10, 84, 14, 72, 34, 70, 60, 72, 74, 64, 80, 52, 86, 50, 92, 52, 92, 62, 88, 70, 80, 84, 60, 88, 10, 84]); fill(colour.sand);
ellipse(46, 54, 28, 28); fill(colour.terracotta);
line('rgba(255,255,255,0.7)', 3.2, () => {
for (let step = 0; step < 60; step += 1) {
const turn = step * 0.2;
const radius = 22 - step * 0.34;
const x = 46 + Math.cos(turn) * radius;
const y = 54 + Math.sin(turn) * radius;
if (step === 0) context.moveTo(x, y); else context.lineTo(x, y);
}
});
line(colour.horn, 2.4, () => { context.moveTo(84, 52); context.lineTo(82, 38); context.moveTo(90, 52); context.lineTo(94, 40); });
detail(colour.ink, () => { context.arc(82, 37, 2.6, 0, Math.PI * 2); context.arc(94, 39, 2.6, 0, Math.PI * 2); });
},
};
return function sprite(kind, radius) {
const density = Math.min(2, devicePixelRatio || 1);
const size = Math.ceil(radius * 2.6);
const canvas = document.createElement('canvas');
canvas.width = canvas.height = Math.ceil(size * density);
context = canvas.getContext('2d');
const unit = (radius * 2) / 100;
context.setTransform(density * unit, 0, 0, density * unit, density * (size / 2 - radius), density * (size / 2 - radius));
context.lineJoin = 'round';
cut = true;
context.save();
context.shadowColor = 'rgba(40, 40, 30, 0.22)';
context.shadowBlur = 6 * density;
context.shadowOffsetY = 3 * density;
context.fillStyle = colour.paper;
context.strokeStyle = colour.paper;
context.lineWidth = 11;
drawings[kind]();
context.restore();
cut = false;
drawings[kind]();
return { canvas, size };
};
}
/* ---------- physics: circles that fall, land on the glass word, and can be flicked ---------- */
function startStickers(root, canvas, word) {
const context = canvas.getContext('2d');
const sprite = makeArtist(root);
const kinds = ['lemon', 'tile', 'pot', 'leaf', 'sun', 'can', 'daisy', 'snail'];
let width = 0;
let height = 0;
let bodies = [];
let mask = null;
let maskColumns = 0;
let frame = 0;
let last = 0;
let pointer = null;
let held = null;
let born = 0;
let wordShown = false;
function solid(x, y) {
if (!mask || !wordShown) return false;
const column = Math.floor(x / MASK_CELL);
const row = Math.floor(y / MASK_CELL);
if (column < 0 || row < 0 || column >= maskColumns) return false;
return mask[row * maskColumns + column] === 1;
}
function buildMask(layout) {
const scratch = document.createElement('canvas');
maskColumns = Math.ceil(width / MASK_CELL);
const rows = Math.ceil(height / MASK_CELL);
scratch.width = maskColumns;
scratch.height = rows;
const paint = scratch.getContext('2d');
paint.scale(1 / MASK_CELL, 1 / MASK_CELL);
paint.font = `${layout.size}px ${getComputedStyle(word).fontFamily}`;
paint.textAlign = 'center';
paint.fillText(word.textContent, layout.x, layout.y);
const pixels = paint.getImageData(0, 0, maskColumns, rows).data;
mask = new Uint8Array(maskColumns * rows);
for (let index = 0; index < mask.length; index += 1) mask[index] = pixels[index * 4 + 3] > 110 ? 1 : 0;
}
function spawn(count) {
const radius = Math.max(20, Math.min(30, width * 0.02));
const sprites = Object.fromEntries(kinds.map((kind) => [kind, sprite(kind, radius)]));
bodies = Array.from({ length: count }, (_, index) => {
const kind = kinds[index % kinds.length];
return {
kind,
art: sprites[kind],
r: radius,
x: width * (0.12 + ((index * 0.6180339) % 1) * 0.76),
y: -radius - (index % 5) * radius * 2.2 - Math.floor(index / 5) * radius * 1.4,
vx: (((index * 37) % 11) - 5) * 18,
vy: 260,
a: index * 0.7,
va: (((index * 13) % 7) - 3) * 0.8,
};
});
}
function dropAgain(body) {
body.x = body.r + Math.random() * (width - body.r * 2);
body.y = -body.r * (1.5 + Math.random() * 4);
body.vx = (Math.random() - 0.5) * 120;
body.vy = 120;
}
function settleOnWord(body) {
let pushX = 0;
let pushY = 0;
const probe = () => {
pushX = 0;
pushY = 0;
let hits = 0;
for (let spoke = 0; spoke < 16; spoke += 1) {
const turn = spoke * Math.PI / 8;
const px = body.x + Math.cos(turn) * body.r * 0.9;
const py = body.y + Math.sin(turn) * body.r * 0.9;
if (solid(px, py)) { pushX -= Math.cos(turn); pushY -= Math.sin(turn); hits += 1; }
}
return hits;
};
if (!probe()) return;
const length = Math.hypot(pushX, pushY) || 1;
const nx = pushX / length;
const ny = pushY / length;
for (let tries = 0; tries < 14 && probe(); tries += 1) { body.x += nx * 1.5; body.y += ny * 1.5; }
const along = body.vx * nx + body.vy * ny;
if (along < 0) {
body.vx -= 1.35 * along * nx;
body.vy -= 1.35 * along * ny;
}
body.vx *= 0.97;
body.va += (body.vx * -ny + body.vy * nx) / body.r * 0.02;
}
function step(dt) {
for (const body of bodies) {
if (body === held) continue;
body.vy += GRAVITY * dt;
body.vx *= 0.9995;
body.x += body.vx * dt;
body.y += body.vy * dt;
body.a += body.va * dt;
body.va *= 0.995;
if (body.x < body.r) { body.x = body.r; body.vx = Math.abs(body.vx) * 0.4; }
if (body.x > width - body.r) { body.x = width - body.r; body.vx = -Math.abs(body.vx) * 0.4; }
if (body.y > height + body.r * 2) dropAgain(body);
settleOnWord(body);
}
for (let first = 0; first < bodies.length; first += 1) {
for (let second = first + 1; second < bodies.length; second += 1) {
const a = bodies[first];
const b = bodies[second];
const dx = b.x - a.x;
const dy = b.y - a.y;
const reach = a.r + b.r;
const distance = Math.hypot(dx, dy);
if (distance === 0 || distance >= reach) continue;
const nx = dx / distance;
const ny = dy / distance;
const overlap = (reach - distance) / 2;
if (a !== held) { a.x -= nx * overlap; a.y -= ny * overlap; }
if (b !== held) { b.x += nx * overlap; b.y += ny * overlap; }
const closing = (b.vx - a.vx) * nx + (b.vy - a.vy) * ny;
if (closing < 0) {
const impulse = -1.3 * closing / 2;
a.vx -= impulse * nx; a.vy -= impulse * ny;
b.vx += impulse * nx; b.vy += impulse * ny;
a.va -= impulse * 0.004; b.va += impulse * 0.004;
}
}
}
}
function draw() {
context.clearRect(0, 0, width, height);
for (const body of bodies) {
context.save();
context.translate(body.x, body.y);
context.rotate(body.a);
if (body === held) context.scale(1.08, 1.08);
context.drawImage(body.art.canvas, -body.art.size / 2, -body.art.size / 2, body.art.size, body.art.size);
context.restore();
}
}
function tick(now) {
const elapsed = Math.min(0.05, (now - last) / 1000);
last = now;
if (now - born > 520) {
for (let time = 0; time < elapsed; time += STEP) step(STEP);
}
draw();
frame = requestAnimationFrame(tick);
}
function fit(layout) {
const density = Math.min(2, devicePixelRatio || 1);
width = canvas.clientWidth;
height = canvas.clientHeight;
canvas.width = Math.round(width * density);
canvas.height = Math.round(height * density);
context.setTransform(density, 0, 0, density, 0, 0);
buildMask(layout);
spawn(width < 600 ? 10 : 15);
if (still.matches) {
wordShown = true;
for (let time = 0; time < 6; time += STEP) step(STEP);
}
draw();
}
function bodyAt(x, y) {
return bodies.find((body) => Math.hypot(body.x - x, body.y - y) < body.r);
}
function local(event) {
const box = canvas.getBoundingClientRect();
return { x: event.clientX - box.left, y: event.clientY - box.top, t: performance.now() };
}
canvas.addEventListener('pointerdown', (event) => {
const point = local(event);
held = bodyAt(point.x, point.y) || null;
if (!held) return;
canvas.setPointerCapture(event.pointerId);
canvas.classList.add('is-grabbing');
pointer = point;
held.vx = 0; held.vy = 0;
});
canvas.addEventListener('pointermove', (event) => {
const point = local(event);
if (held) {
const seconds = Math.max(0.008, (point.t - pointer.t) / 1000);
held.vx = (point.x - pointer.x) / seconds;
held.vy = (point.y - pointer.y) / seconds;
held.x = point.x; held.y = point.y;
pointer = point;
draw();
return;
}
canvas.style.cursor = bodyAt(point.x, point.y) ? '' : 'default';
});
const release = () => {
if (!held) return;
held.vx = Math.max(-2400, Math.min(2400, held.vx));
held.vy = Math.max(-2400, Math.min(2400, held.vy));
held.va = held.vx / held.r * 0.4;
held = null;
canvas.classList.remove('is-grabbing');
};
canvas.addEventListener('pointerup', release);
canvas.addEventListener('pointercancel', release);
return {
fit,
showWord() { wordShown = true; },
run(running) {
cancelAnimationFrame(frame);
if (!running || still.matches) return;
last = performance.now();
frame = requestAnimationFrame(tick);
},
restart() { born = performance.now(); },
};
}
function layoutWord(root, svg, word) {
const width = root.clientWidth;
const height = root.clientHeight;
const size = Math.min(width * (width < 600 ? 0.28 : 0.24), height * 0.46);
const layout = { x: width / 2, y: height * (width < 600 ? 0.5 : 0.56), size };
svg.setAttribute('viewBox', `0 0 ${width} ${height}`);
word.setAttribute('x', layout.x);
word.setAttribute('y', layout.y);
word.setAttribute('font-size', size);
for (const node of svg.querySelectorAll('.hero__filter [data-scale]')) {
const value = Math.max(0.6, size * Number(node.dataset.scale));
node.setAttribute(node.tagName === 'feMorphology' ? 'radius' : 'stdDeviation', value.toFixed(2));
}
for (const node of svg.querySelectorAll('.hero__filter [data-scale-dx]')) {
node.setAttribute('dx', (size * Number(node.dataset.scaleDx)).toFixed(2));
node.setAttribute('dy', (size * Number(node.dataset.scaleDy)).toFixed(2));
}
return layout;
}
function setUp(root, order) {
const svg = root.querySelector('.hero__glass');
const word = root.querySelector('.hero__word');
const filterId = `hero-glass-${order}`;
root.querySelector('.hero__filter').id = filterId;
word.setAttribute('filter', `url(#${filterId})`);
const smallId = `hero-glass-small-${order}`;
root.querySelector('#hero-glass-small').id = smallId;
root.querySelector('.hero__ring > g').setAttribute('filter', `url(#${smallId})`);
const haze = startHaze(root, root.querySelector('.hero__haze'));
const stickers = startStickers(root, root.querySelector('.hero__stickers'), word);
let visible = false;
let fitted = '';
const refit = () => {
const size = `${root.clientWidth}x${root.clientHeight}`;
if (size === fitted) return;
fitted = size;
stickers.fit(layoutWord(root, svg, word));
};
document.fonts.load(`100px ${getComputedStyle(word).fontFamily}`).finally(() => {
refit();
stickers.restart();
requestAnimationFrame(() => root.classList.add('is-ready'));
setTimeout(() => stickers.showWord(), 420);
new ResizeObserver(() => refit()).observe(root);
stickers.run(visible);
});
new IntersectionObserver(([entry]) => {
visible = entry.isIntersecting;
root.classList.toggle('is-live', visible);
haze(visible);
stickers.run(visible);
}).observe(root);
}
document.querySelectorAll('.hero').forEach(setUp);
})();
</script>
Mixed-type headline
Right-aligned three-line headline mixing a flared contrast face, a swash ampersand, a pixel word, a gyroscope of dashed rings, condensed caps and a sage pill; the second line holds a capsule with two pill buttons that fill with ink blots on hover.
Code
React For Figma<section class="statement" aria-labelledby="statement-title-1">
<p class="statement__tags">#Porto #Douro #Lisbon</p>
<h2 class="statement__title" id="statement-title-1">
<span class="statement__line">
<span class="statement__word">Design,</span>
<span class="statement__word">Plant</span>
<span class="statement__word statement__amp" aria-label="and">&<svg class="statement__amp-spark" viewBox="0 0 60 24" aria-hidden="true"><path d="M2 4c14 16 34 18 48 12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><path d="M52 8c.6 4 1.8 5.4 6 6.6-4.2 1.2-5.4 2.6-6 6.6-.6-4-1.8-5.4-6-6.6 4.2-1.2 5.4-2.6 6-6.6z" fill="currentColor"/></svg></span>
<span class="statement__word">Tend</span>
</span>
<span class="statement__line">
<span class="statement__word statement__capsule">
<a class="statement__button statement__button--sage" href="#">
<span class="statement__blot" aria-hidden="true"></span>
<span class="statement__label">Get in touch</span>
<svg class="statement__arrow" viewBox="0 0 22 10" aria-hidden="true"><path d="M0 5h20M16 1l4 4-4 4" fill="none" stroke="currentColor" stroke-width="1"/></svg>
</a>
<a class="statement__button statement__button--ink" href="#">
<span class="statement__blot" aria-hidden="true"></span>
<span class="statement__label">Learn more</span>
</a>
</span>
<span class="statement__word statement__pixel">with</span>
<span class="statement__word">Patience</span>
<span class="statement__word statement__gyro" aria-hidden="true">
<svg viewBox="0 0 80 80">
<circle class="statement__gyro-dashes" cx="40" cy="40" r="37" fill="none" stroke="currentColor" stroke-width="1.2" stroke-dasharray="3 3.6"/>
<circle cx="40" cy="40" r="29" fill="none" stroke="currentColor" stroke-width="1.2"/>
<ellipse class="statement__gyro-vertical" cx="40" cy="40" rx="29" ry="29" fill="none" stroke="currentColor" stroke-width="1"/>
<ellipse class="statement__gyro-horizontal" cx="40" cy="40" rx="29" ry="29" fill="none" stroke="currentColor" stroke-width="1"/>
<path d="M40 28c1.2 7 3.4 9.4 11 12-7.6 2.6-9.8 5-11 12-1.2-7-3.4-9.4-11-12 7.6-2.6 9.8-5 11-12z" fill="currentColor"/>
</svg>
</span>
<span class="statement__word statement__pixel">The</span>
</span>
<span class="statement__line">
<span class="statement__word statement__caps">Quiet power of</span>
<span class="statement__word statement__caps statement__pill">Living ground</span>
</span>
</h2>
<div class="statement__row">
<a class="statement__case" href="#">
<span class="statement__thumb" aria-hidden="true">
<svg viewBox="0 0 120 120">
<rect width="120" height="120" style="fill: var(--forest)"/>
<g fill="none" stroke-width="1.2" style="stroke: var(--sage-pale)">
<circle cx="60" cy="60" r="34"/><circle cx="60" cy="60" r="22"/><circle cx="60" cy="60" r="10"/>
<path d="M0 60h26M94 60h26M60 0v26M60 94v26"/>
</g>
<g style="fill: var(--sage)"><circle cx="33" cy="33" r="7"/><circle cx="87" cy="33" r="7"/><circle cx="33" cy="87" r="7"/><circle cx="87" cy="87" r="7"/></g>
<circle cx="60" cy="60" r="4" style="fill: var(--lime)"/>
</svg>
</span>
<span class="statement__case-text">
<span class="statement__case-title">Latest case study with Quinta do Rio</span>
<span class="statement__more"><svg viewBox="0 0 30 10" aria-hidden="true"><path d="M0 5h28M24 1l4 4-4 4" fill="none" stroke="currentColor" stroke-width="1"/></svg><span>See more</span></span>
</span>
</a>
<ul class="statement__list">
<li><span class="statement__pearl" aria-hidden="true"></span>We draw gardens where planting, stone and water share one plan.</li>
<li><span class="statement__pearl" aria-hidden="true"></span>We build roof terraces light enough for old Porto houses.</li>
<li><span class="statement__pearl" aria-hidden="true"></span>We plan squares that cool a street by three degrees.</li>
</ul>
<a class="statement__reel" href="#" aria-label="Play the studio reel">
<svg class="statement__reel-art" viewBox="0 0 200 150" preserveAspectRatio="xMidYMid slice" aria-hidden="true">
<defs>
<linearGradient id="statement-sky-1" x1="0" y1="0" x2="0" y2="1"><stop offset="0" style="stop-color: var(--mist)"/><stop offset="1" style="stop-color: var(--stone-light)"/></linearGradient>
</defs>
<rect width="200" height="150" fill="url(#statement-sky-1)"/>
<circle cx="148" cy="44" r="18" style="fill: var(--pearl-4)"/>
<path d="M0 96c34-18 62-22 96-10s70 8 104-8v72H0z" style="fill: var(--sage-pale)"/>
<path d="M0 116c40-14 76-12 112-2s62 6 88-6v42H0z" style="fill: var(--sage)"/>
<g stroke-width="2.4" style="stroke: var(--forest)"><path d="M30 128V70M78 132V70M24 70h62M24 78h62"/></g>
<g stroke-width="1" opacity="0.6" style="stroke: var(--forest)"><path d="M34 70l8-8M46 70l8-8M58 70l8-8M70 70l8-8"/></g>
<g style="fill: var(--sticker-leaf)"><circle cx="128" cy="112" r="10"/><circle cx="142" cy="106" r="13"/><circle cx="158" cy="114" r="9"/></g>
<path d="M0 150h200v-14c-30 6-60 8-100 4S30 134 0 140z" style="fill: var(--forest)"/>
</svg>
<span class="statement__play" aria-hidden="true"><svg viewBox="0 0 20 20"><path d="M7 5l9 5-9 5z"/></svg></span>
</a>
</div>
</section>
<style>
.statement {
position: relative;
padding: var(--space-xl) var(--edge) var(--space-l);
background: var(--stone);
color: var(--ink);
overflow: hidden;
}
.statement__tags {
margin: 0 0 6px;
color: var(--ash);
font: 700 var(--text-m)/1.5 var(--font-body);
text-align: right;
}
.statement__title {
display: grid;
justify-items: end;
margin: 0;
font: 400 var(--hero-line)/1.3 var(--font-display);
letter-spacing: 0;
}
.statement__line {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
align-items: center;
column-gap: 0.32em;
}
.statement__word {
display: inline-flex;
align-items: center;
opacity: 0;
transform: translateY(0.45em);
transition: opacity var(--time-icon) var(--ease-reveal), transform var(--time-icon) var(--ease-reveal);
transition-delay: calc(var(--statement-order, 0) * 0.05s);
}
.statement.is-seen .statement__word { opacity: 1; transform: none; }
.statement__amp {
position: relative;
margin: 0 -0.08em 0 -0.24em;
color: var(--sage);
font-family: var(--font-script);
font-size: 0.86em;
}
.statement__amp-spark {
position: absolute;
left: 0.3em;
bottom: -0.05em;
width: 1.3em;
color: var(--sage);
}
.statement__pixel { font-family: var(--font-pixel); font-size: 0.92em; }
.statement__capsule {
gap: 8px;
padding: 10px;
border-radius: var(--radius-xl);
background: var(--stone-shade);
}
.statement__button {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 30px;
height: 54px;
padding: 0 20px;
overflow: hidden;
border-radius: var(--radius-l);
color: var(--paper);
font: 500 var(--text-xs)/1.3 var(--font-body);
text-decoration: none;
white-space: nowrap;
isolation: isolate;
}
.statement__button--sage { min-width: 174px; background: var(--sage); --statement-fill: var(--ink); }
.statement__button--ink { min-width: 120px; background: var(--charcoal); font-weight: 400; --statement-fill: var(--sage); }
.statement__button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.statement__arrow { width: 22px; }
.statement__blot {
position: absolute;
inset: 0 -1% 0 0;
z-index: -1;
background: var(--statement-fill);
-webkit-mask: var(--statement-blot) 0 0 / 7100% 100% no-repeat;
mask: var(--statement-blot) 0 0 / 7100% 100% no-repeat;
}
.statement__button.is-filled .statement__blot { animation: statement-blot-in var(--time-blot) steps(70) forwards; }
.statement__button.is-draining .statement__blot { animation: statement-blot-out var(--time-blot) steps(70) forwards; }
@keyframes statement-blot-in { from { -webkit-mask-position: 0 0; mask-position: 0 0; } to { -webkit-mask-position: 100% 0; mask-position: 100% 0; } }
@keyframes statement-blot-out { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
.statement__gyro { width: 0.96em; color: var(--sage); }
.statement__gyro svg { width: 100%; overflow: visible; }
.statement__gyro-dashes { transform-origin: 40px 40px; animation: statement-ccw 24s linear infinite; }
.statement__gyro-vertical { transform-origin: 40px 40px; animation: statement-vertical 7s ease-in-out infinite; }
.statement__gyro-horizontal { transform-origin: 40px 40px; animation: statement-horizontal 8.5s ease-in-out infinite; }
.statement:not(.is-live) .statement__gyro * { animation-play-state: paused; }
@keyframes statement-ccw { to { transform: rotate(-1turn); } }
@keyframes statement-vertical { 0%, 100% { transform: scaleX(0.18); } 50% { transform: scaleX(0.92); } }
@keyframes statement-horizontal { 0%, 100% { transform: scaleY(0.86); } 50% { transform: scaleY(0.16); } }
.statement__caps {
font-family: var(--font-condensed);
font-size: 0.94em;
letter-spacing: -0.01em;
text-transform: uppercase;
line-height: 1;
}
.statement__pill {
padding: 0.06em 0.28em 0;
border-radius: var(--radius-pill);
background: var(--sage);
color: var(--paper);
}
.statement__row {
display: grid;
grid-template-columns: minmax(0, 528fr) minmax(0, 290fr) minmax(0, 200fr);
gap: clamp(24px, 5vw, 72px);
align-items: start;
margin-top: var(--space-l);
}
.statement__case {
display: grid;
grid-template-columns: 188px 1fr;
gap: 12px;
min-height: 150px;
padding: 15px;
border-radius: var(--radius-s);
background: rgba(255, 255, 255, 0.82);
color: var(--ink);
text-decoration: none;
transition: transform var(--time) var(--ease);
}
.statement__case:hover { transform: translateY(-4px); }
.statement__case:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.statement__thumb { overflow: hidden; border-radius: 14px; }
.statement__thumb svg { width: 100%; height: 100%; transition: transform var(--time) var(--ease); }
.statement__case:hover .statement__thumb svg { transform: scale(1.06) rotate(-4deg); }
.statement__case-text { display: grid; align-content: start; gap: 10px; }
.statement__case-title { font: 400 var(--head-s)/1.5 var(--font-display); }
.statement__more {
display: inline-flex;
align-items: center;
gap: 10px;
min-height: var(--tap);
color: var(--sage);
font: 400 var(--text-s)/1 var(--font-body);
}
.statement__more svg { width: 30px; transition: transform var(--time) var(--ease); }
.statement__more span { text-decoration: underline; text-underline-offset: 3px; }
.statement__case:hover .statement__more svg { transform: translateX(6px); }
.statement__list {
display: grid;
gap: 14px;
margin: 0;
padding: 0;
list-style: none;
font: 400 var(--text-l)/1.2 var(--font-display);
}
.statement__list li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; }
.statement__reel {
position: relative;
display: block;
aspect-ratio: 4 / 3;
overflow: hidden;
border-radius: 19px;
transition: transform 0.3s var(--ease);
}
.statement__reel:hover { transform: scale(0.98); }
.statement__reel:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.statement__reel-art { width: 100%; height: 100%; }
.statement__play {
position: absolute;
right: 12px;
bottom: 12px;
display: grid;
place-items: center;
width: var(--tap);
height: var(--tap);
border-radius: 50%;
background: var(--lime);
transition: transform 0.3s var(--ease);
}
.statement__play svg { width: 20px; fill: var(--ink); }
.statement__reel:hover .statement__play,
.statement__reel:focus-visible .statement__play { transform: scale(1.14); }
.statement__pearl {
width: 26px;
height: 26px;
border-radius: 50%;
background: conic-gradient(from 200deg, var(--pearl-1), var(--pearl-3), var(--pearl-2), var(--pearl-4), var(--pearl-1));
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}
@media (max-width: 1000px) {
.statement__capsule { order: 10; }
.statement__row { grid-template-columns: 1fr 1fr; }
.statement__case { grid-template-columns: 120px 1fr; }
.statement__row > :last-child { display: none; }
}
@media (max-width: 700px) {
.statement__tags { text-align: left; }
.statement__title { justify-items: start; }
.statement__line { justify-content: flex-start; row-gap: 10px; }
.statement__row { grid-template-columns: 1fr; }
.statement__case { grid-template-columns: 110px 1fr; }
.statement__button--sage { min-width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
.statement__word { opacity: 1; transform: none; transition: none; }
}
</style>
<script>
(() => {
const FRAMES = 71;
function blotSprite(aspect) {
const frameWidth = 200;
const frameHeight = Math.max(24, Math.round(frameWidth / aspect));
const canvas = document.createElement('canvas');
canvas.width = frameWidth * FRAMES;
canvas.height = frameHeight;
const context = canvas.getContext('2d');
context.fillStyle = '#000';
let seed = 7;
const random = () => { seed = (seed * 16807) % 2147483647; return seed / 2147483647; };
const reach = Math.hypot(frameWidth, frameHeight);
const blots = Array.from({ length: 13 }, (_, index) => ({
x: random() * frameWidth,
y: random() * frameHeight,
start: index === 0 ? 0 : random() * 0.5,
size: (0.35 + random() * 0.4) * reach,
wobble: random() * 10,
drops: Array.from({ length: 3 }, () => ({ angle: random() * Math.PI * 2, distance: 0.6 + random() * 0.8, size: 0.06 + random() * 0.08 })),
}));
function blob(cx, cy, radius, wobble) {
context.beginPath();
for (let step = 0; step <= 28; step += 1) {
const angle = (step / 28) * Math.PI * 2;
const edge = radius * (1 + 0.16 * Math.sin(angle * 3 + wobble) + 0.09 * Math.sin(angle * 5 - wobble * 1.7));
const x = cx + Math.cos(angle) * edge;
const y = cy + Math.sin(angle) * edge * 0.62;
if (step === 0) context.moveTo(x, y); else context.lineTo(x, y);
}
context.fill();
}
for (let frame = 0; frame < FRAMES; frame += 1) {
const time = frame / (FRAMES - 1);
context.save();
context.beginPath();
context.rect(frame * frameWidth, 0, frameWidth, frameHeight);
context.clip();
context.translate(frame * frameWidth, 0);
if (frame === FRAMES - 1) {
context.fillRect(0, 0, frameWidth, frameHeight);
} else if (frame > 0) {
for (const spot of blots) {
const grown = Math.max(0, (time - spot.start) / (1 - spot.start));
if (grown <= 0) continue;
const radius = spot.size * grown ** 1.7;
blob(spot.x, spot.y, Math.max(1.2, radius), spot.wobble + time * 2);
for (const drop of spot.drops) {
const distance = Math.max(radius, 4) * drop.distance + 3;
const dropSize = Math.max(0.8, spot.size * drop.size * Math.min(1, grown * 4));
blob(spot.x + Math.cos(drop.angle) * distance, spot.y + Math.sin(drop.angle) * distance, dropSize, drop.angle);
}
}
}
context.restore();
}
return `url("${canvas.toDataURL('image/png')}")`;
}
function wireBlot(button) {
const fill = () => { button.classList.remove('is-draining'); button.classList.add('is-filled'); };
const drain = () => {
if (!button.classList.contains('is-filled')) return;
button.classList.remove('is-filled');
button.classList.add('is-draining');
};
button.addEventListener('pointerenter', fill);
button.addEventListener('focus', fill);
button.addEventListener('pointerleave', drain);
button.addEventListener('blur', drain);
}
function setUp(root) {
const buttons = [...root.querySelectorAll('.statement__button')];
for (const button of buttons) {
const box = button.getBoundingClientRect();
button.style.setProperty('--statement-blot', blotSprite(box.width / Math.max(1, box.height) || 3));
wireBlot(button);
}
root.querySelectorAll('.statement__word').forEach((word, order) => word.style.setProperty('--statement-order', order));
new IntersectionObserver(([entry]) => {
root.classList.toggle('is-live', entry.isIntersecting);
if (entry.isIntersecting) root.classList.add('is-seen');
}, { threshold: 0.1 }).observe(root);
}
document.querySelectorAll('.statement').forEach(setUp);
})();
</script>
Service rows and cards
Numbered pill rows that fill black with an ink-blot mask, lift on hover and swap the illustrated garden plan beside them; two cards on the right, dark and sage, with a pointer spotlight and a turning arrow.
Code
React For Figma<section class="services" aria-label="What we do">
<div class="services__rows">
<p class="services__intro">Pátio Norte plans, plants and builds outdoor rooms sized to how you live in them.</p>
<button class="services__row is-active" type="button" aria-pressed="true" data-scene="0">
<span class="services__face"><span class="services__number">01</span><span class="services__name">Garden design</span><svg class="services__arrow" viewBox="0 0 26 14" aria-hidden="true"><path d="M0 7h24M18 1l6 6-6 6"/></svg></span>
<span class="services__face services__face--ink" aria-hidden="true"><span class="services__number">01</span><span class="services__name">Garden design</span><svg class="services__arrow" viewBox="0 0 26 14"><path d="M0 7h24M18 1l6 6-6 6"/></svg></span>
</button>
<button class="services__row" type="button" aria-pressed="false" data-scene="1">
<span class="services__face"><span class="services__number">02</span><span class="services__name">Roof terraces</span><svg class="services__arrow" viewBox="0 0 26 14" aria-hidden="true"><path d="M0 7h24M18 1l6 6-6 6"/></svg></span>
<span class="services__face services__face--ink" aria-hidden="true"><span class="services__number">02</span><span class="services__name">Roof terraces</span><svg class="services__arrow" viewBox="0 0 26 14"><path d="M0 7h24M18 1l6 6-6 6"/></svg></span>
</button>
<button class="services__row" type="button" aria-pressed="false" data-scene="2">
<span class="services__face"><span class="services__number">03</span><span class="services__name">Public squares</span><svg class="services__arrow" viewBox="0 0 26 14" aria-hidden="true"><path d="M0 7h24M18 1l6 6-6 6"/></svg></span>
<span class="services__face services__face--ink" aria-hidden="true"><span class="services__number">03</span><span class="services__name">Public squares</span><svg class="services__arrow" viewBox="0 0 26 14"><path d="M0 7h24M18 1l6 6-6 6"/></svg></span>
</button>
<button class="services__row" type="button" aria-pressed="false" data-scene="3">
<span class="services__face"><span class="services__number">04</span><span class="services__name">Planting care</span><svg class="services__arrow" viewBox="0 0 26 14" aria-hidden="true"><path d="M0 7h24M18 1l6 6-6 6"/></svg></span>
<span class="services__face services__face--ink" aria-hidden="true"><span class="services__number">04</span><span class="services__name">Planting care</span><svg class="services__arrow" viewBox="0 0 26 14"><path d="M0 7h24M18 1l6 6-6 6"/></svg></span>
</button>
</div>
<figure class="services__picture">
<svg class="services__scenes" viewBox="0 0 528 514" preserveAspectRatio="xMidYMid slice" role="img" aria-label="Drawing of the chosen service">
<g class="services__scene is-shown">
<rect width="528" height="514" style="fill: var(--linen)"/>
<g fill="none" stroke-width="1" style="stroke: var(--stone-shade)"><path d="M0 64h528M0 128h528M0 192h528M0 256h528M0 320h528M0 384h528M0 448h528M66 0v514M132 0v514M198 0v514M264 0v514M330 0v514M396 0v514M462 0v514"/></g>
<path d="M-10 420C90 380 150 300 230 290s150 40 200-30 60-150 120-170" fill="none" stroke-width="34" stroke-linecap="round" style="stroke: var(--sand)"/>
<path d="M-10 420C90 380 150 300 230 290s150 40 200-30 60-150 120-170" fill="none" stroke-width="34" stroke-dasharray="2 14" style="stroke: var(--sand-deep)"/>
<circle cx="210" cy="170" r="92" style="fill: var(--sage-pale)"/>
<circle cx="210" cy="170" r="92" fill="none" stroke-width="2" stroke-dasharray="4 6" style="stroke: var(--sage)"/>
<ellipse cx="380" cy="380" rx="70" ry="44" style="fill: var(--pool)"/>
<ellipse cx="368" cy="372" rx="30" ry="10" opacity="0.7" style="fill: var(--mist)"/>
<g style="fill: var(--sage)"><circle cx="92" cy="92" r="40"/><circle cx="440" cy="78" r="46"/><circle cx="96" cy="270" r="30"/><circle cx="470" cy="470" r="38"/></g>
<g style="fill: var(--sticker-leaf)"><circle cx="80" cy="80" r="22"/><circle cx="426" cy="64" r="26"/><circle cx="88" cy="262" r="16"/><circle cx="460" cy="460" r="20"/></g>
<g style="fill: var(--forest)"><circle cx="92" cy="92" r="3"/><circle cx="440" cy="78" r="3"/><circle cx="96" cy="270" r="3"/><circle cx="470" cy="470" r="3"/></g>
<rect x="250" y="300" width="70" height="16" rx="3" style="fill: var(--sticker-terracotta)"/>
<circle cx="210" cy="170" r="6" style="fill: var(--lime)"/>
</g>
<g class="services__scene">
<rect width="528" height="514" style="fill: var(--mist)"/>
<circle cx="408" cy="110" r="46" style="fill: var(--pearl-4)"/>
<rect x="40" y="250" width="448" height="264" style="fill: var(--stone-shade)"/>
<g style="fill: var(--stone-deep)"><rect x="80" y="330" width="56" height="80"/><rect x="176" y="330" width="56" height="80"/><rect x="272" y="330" width="56" height="80"/><rect x="368" y="330" width="56" height="80"/><rect x="80" y="440" width="56" height="74"/><rect x="176" y="440" width="56" height="74"/><rect x="272" y="440" width="56" height="74"/><rect x="368" y="440" width="56" height="74"/></g>
<rect x="30" y="238" width="468" height="14" style="fill: var(--charcoal)"/>
<g stroke-width="5" style="stroke: var(--forest)"><path d="M90 238V140M250 238V140M410 238V140"/></g>
<path d="M74 140h352" stroke-width="7" style="stroke: var(--forest)"/>
<g stroke-width="2" style="stroke: var(--forest)"><path d="M110 140l-14 -14M150 140l-14 -14M190 140l-14 -14M230 140l-14 -14M270 140l-14 -14M310 140l-14 -14M350 140l-14 -14M390 140l-14 -14"/></g>
<g style="fill: var(--sticker-terracotta)"><rect x="60" y="206" width="70" height="32" rx="4"/><rect x="300" y="206" width="110" height="32" rx="4"/></g>
<g style="fill: var(--sticker-leaf)"><circle cx="78" cy="196" r="20"/><circle cx="110" cy="190" r="24"/><circle cx="320" cy="196" r="20"/><circle cx="354" cy="186" r="28"/><circle cx="392" cy="198" r="18"/></g>
<g style="fill: var(--sage)"><circle cx="96" cy="182" r="12"/><circle cx="340" cy="176" r="14"/></g>
<rect x="180" y="196" width="80" height="10" rx="5" style="fill: var(--paper)"/>
<path d="M188 206v32M252 206v32" stroke-width="4" style="stroke: var(--paper)"/>
<path d="M150 160c30-34 70-34 100 0" fill="none" stroke-width="3" style="stroke: var(--sticker-leaf)"/>
</g>
<g class="services__scene">
<rect width="528" height="514" style="fill: var(--stone)"/>
<g fill="none" stroke-width="2" style="stroke: var(--stone-deep)"><path d="M0 40h528M0 80h528M0 120h528M0 160h528M0 200h528M0 240h528M0 280h528M0 320h528M0 360h528M0 400h528M0 440h528M0 480h528M40 0v514M80 0v514M120 0v514M160 0v514M200 0v514M240 0v514M280 0v514M320 0v514M360 0v514M400 0v514M440 0v514M480 0v514"/></g>
<circle cx="264" cy="257" r="96" stroke-width="10" style="fill: var(--mist); stroke: var(--paper)"/>
<circle cx="264" cy="257" r="62" style="fill: var(--pool)"/>
<circle cx="264" cy="257" r="18" style="fill: var(--paper)"/>
<g fill="none" stroke-width="2" opacity="0.8" style="stroke: var(--paper)"><circle cx="264" cy="257" r="34"/><circle cx="264" cy="257" r="48"/></g>
<g style="fill: var(--sage)"><circle cx="80" cy="80" r="44"/><circle cx="264" cy="64" r="44"/><circle cx="448" cy="80" r="44"/><circle cx="80" cy="434" r="44"/><circle cx="264" cy="450" r="44"/><circle cx="448" cy="434" r="44"/><circle cx="64" cy="257" r="44"/><circle cx="464" cy="257" r="44"/></g>
<g opacity="0.55" style="fill: var(--sage-pale)"><circle cx="70" cy="70" r="22"/><circle cx="254" cy="54" r="22"/><circle cx="438" cy="70" r="22"/><circle cx="70" cy="424" r="22"/><circle cx="254" cy="440" r="22"/><circle cx="438" cy="424" r="22"/><circle cx="54" cy="247" r="22"/><circle cx="454" cy="247" r="22"/></g>
<g style="fill: var(--sticker-terracotta)"><rect x="150" y="150" width="40" height="10" rx="3"/><rect x="338" y="354" width="40" height="10" rx="3"/></g>
<circle cx="264" cy="257" r="5" style="fill: var(--lime)"/>
</g>
<g class="services__scene">
<rect width="528" height="514" style="fill: var(--sage)"/>
<circle cx="390" cy="130" r="70" style="fill: var(--pearl-4)"/>
<path d="M120 514C110 380 170 250 300 190c-20 120-80 240-180 324z" style="fill: var(--sticker-leaf)"/>
<path d="M120 514C170 390 220 300 300 190" fill="none" stroke-width="3" style="stroke: var(--sage-pale)"/>
<path d="M300 514c20-120 90-210 210-240-20 110-100 200-210 240z" style="fill: var(--forest)"/>
<path d="M300 514c60-100 120-170 210-240" fill="none" stroke-width="3" style="stroke: var(--sage)"/>
<path d="M-20 360c80-60 170-60 230 10-90 40-170 40-230-10z" style="fill: var(--sage-pale)"/>
<path d="M-20 360c80 0 150 4 230 10" fill="none" stroke-width="3" style="stroke: var(--sage)"/>
<g style="fill: var(--mist)"><path d="M236 80c10 16 14 26 14 34a14 14 0 0 1-28 0c0-8 4-18 14-34z"/><path d="M196 140c7 11 10 18 10 24a10 10 0 0 1-20 0c0-6 3-13 10-24z"/><path d="M268 150c6 10 9 16 9 21a9 9 0 0 1-18 0c0-5 3-11 9-21z"/></g>
<circle cx="390" cy="130" r="8" style="fill: var(--lime)"/>
</g>
</svg>
<figcaption class="services__caption"><span class="services__caption-number">01</span> <span class="services__caption-name">Garden design</span></figcaption>
</figure>
<div class="services__cards">
<a class="services__card" href="#">
<span class="services__card-text">Wondering how a bare courtyard turns into a garden?</span>
<span class="services__card-foot">
<span class="services__card-title">Our<br>work.</span>
<span class="services__disc"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 13L13 3M5 3h8v8"/></svg></span>
</span>
</a>
<a class="services__card services__card--sage" href="#">
<span class="services__card-text">Looking for people who know which tree survives a sea wind?</span>
<span class="services__card-foot">
<span class="services__card-title">Our<br>team.</span>
<span class="services__disc"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 13L13 3M5 3h8v8"/></svg></span>
</span>
</a>
</div>
</section>
<style>
.services {
display: grid;
grid-template-columns: minmax(0, 418fr) minmax(0, 528fr) minmax(0, 308fr);
gap: clamp(20px, 1.7vw, 24px);
align-items: stretch;
padding: var(--space-xl) var(--edge);
background: var(--stone);
color: var(--ink);
}
.services__rows { display: grid; align-content: start; gap: 35px; }
.services__intro {
max-width: 24em;
margin: 0 0 1px;
font: 400 var(--text-m)/2.06 var(--font-body);
}
.services__row {
position: relative;
display: grid;
width: 100%;
min-height: 78px;
padding: 0;
overflow: hidden;
border: 1px solid var(--line);
border-radius: var(--radius-pill);
background: none;
color: var(--ink);
font: inherit;
text-align: left;
cursor: pointer;
transition: transform var(--time) var(--ease), border-color var(--time) var(--ease), box-shadow var(--time) var(--ease);
}
.services__row:hover { transform: scale(1.02); }
.services__row:active { transform: scale(0.98); }
.services__row:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; }
.services__row.is-active { border-color: var(--ink); box-shadow: 0 10px 30px var(--shadow); }
.services__face {
grid-area: 1 / 1;
display: flex;
align-items: center;
gap: 18px;
padding: 24px 28px 24px 32px;
}
.services__face--ink {
position: relative;
background: var(--ink);
color: var(--paper);
-webkit-mask: var(--services-blot) 0 0 / 7100% 100% no-repeat;
mask: var(--services-blot) 0 0 / 7100% 100% no-repeat;
}
.services__face--ink .services__number { color: var(--lime); }
.services__row.is-filled .services__face--ink { animation: services-blot-in var(--time-blot) steps(70) forwards; }
.services__row.is-draining .services__face--ink { animation: services-blot-out var(--time-blot) steps(70) forwards; }
@keyframes services-blot-in { from { -webkit-mask-position: 0 0; mask-position: 0 0; } to { -webkit-mask-position: 100% 0; mask-position: 100% 0; } }
@keyframes services-blot-out { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
.services__number { font: 700 var(--text-m)/1.7 var(--font-body); }
.services__name { flex: 1; font: 300 var(--text-m)/1.7 var(--font-body); }
.services__arrow { width: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.services__picture {
position: relative;
min-height: 420px;
margin: 0;
overflow: hidden;
border-radius: var(--radius-s);
}
.services__scenes { position: absolute; inset: 0; width: 100%; height: 100%; }
.services__scene { opacity: 0; transition: opacity var(--time) var(--ease); }
.services__scene.is-shown { opacity: 1; }
.services__caption {
position: absolute;
left: 16px;
bottom: 16px;
display: inline-flex;
gap: 10px;
padding: 8px 16px;
border-radius: var(--radius-pill);
background: var(--paper);
font: 500 var(--text-s)/1.2 var(--font-body);
letter-spacing: 0.04em;
text-transform: uppercase;
}
.services__caption-number { font-weight: 700; }
.services__cards { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.services__card {
position: relative;
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 28px;
min-height: 220px;
padding: 30px;
overflow: hidden;
border-radius: var(--radius-s);
background: var(--charcoal);
color: var(--paper);
text-decoration: none;
transition: transform var(--time) var(--ease), background-color var(--time) var(--ease);
}
.services__card--sage { background: var(--sage); }
.services__card::before {
content: "";
position: absolute;
inset: 0;
z-index: 3;
border-radius: inherit;
background: radial-gradient(800px circle at var(--services-x, 50%) var(--services-y, 50%), var(--spot), transparent 40%);
opacity: 0;
pointer-events: none;
transition: opacity var(--time) var(--ease);
}
.services__card:hover::before,
.services__card:focus-visible::before { opacity: 1; }
.services__card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.services__card-text { font: 400 var(--text-m)/1.7 var(--font-body); }
.services__card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.services__card-title { font: 700 28px/1 var(--font-body); }
.services__disc {
display: grid;
place-items: center;
flex: none;
width: var(--tap);
height: var(--tap);
border-radius: 50%;
background: rgba(255, 255, 255, 0.06);
color: var(--paper);
}
.services__card--sage .services__disc { background: var(--paper); color: var(--ink); }
.services__disc svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform var(--time) var(--ease); }
.services__card:hover .services__disc svg,
.services__card:focus-visible .services__disc svg { transform: rotate(30deg); }
@media (max-width: 1100px) {
.services { grid-template-columns: 1fr 1fr; }
.services__cards { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
}
@media (max-width: 700px) {
.services { grid-template-columns: 1fr; }
.services__rows { gap: 18px; }
.services__picture { min-height: 0; aspect-ratio: 1; }
.services__cards { grid-template-columns: 1fr; }
.services__face { padding: 20px 22px 20px 24px; }
}
</style>
<script>
(() => {
const FRAMES = 71;
function blotSprite(aspect) {
const frameWidth = 260;
const frameHeight = Math.max(20, Math.round(frameWidth / aspect));
const canvas = document.createElement('canvas');
canvas.width = frameWidth * FRAMES;
canvas.height = frameHeight;
const context = canvas.getContext('2d');
context.fillStyle = '#000';
let seed = 11;
const random = () => { seed = (seed * 16807) % 2147483647; return seed / 2147483647; };
const reach = Math.hypot(frameWidth, frameHeight);
const blots = Array.from({ length: 15 }, (_, index) => ({
x: random() * frameWidth,
y: random() * frameHeight,
start: index === 0 ? 0 : random() * 0.5,
size: (0.3 + random() * 0.35) * reach,
wobble: random() * 10,
drops: Array.from({ length: 3 }, () => ({ angle: random() * Math.PI * 2, distance: 0.6 + random() * 0.8, size: 0.04 + random() * 0.06 })),
}));
function blob(cx, cy, radius, wobble) {
context.beginPath();
for (let step = 0; step <= 28; step += 1) {
const angle = (step / 28) * Math.PI * 2;
const edge = radius * (1 + 0.16 * Math.sin(angle * 3 + wobble) + 0.09 * Math.sin(angle * 5 - wobble * 1.7));
const x = cx + Math.cos(angle) * edge;
const y = cy + Math.sin(angle) * edge * 0.5;
if (step === 0) context.moveTo(x, y); else context.lineTo(x, y);
}
context.fill();
}
for (let frame = 0; frame < FRAMES; frame += 1) {
const time = frame / (FRAMES - 1);
context.save();
context.beginPath();
context.rect(frame * frameWidth, 0, frameWidth, frameHeight);
context.clip();
context.translate(frame * frameWidth, 0);
if (frame === FRAMES - 1) {
context.fillRect(0, 0, frameWidth, frameHeight);
} else if (frame > 0) {
for (const spot of blots) {
const grown = Math.max(0, (time - spot.start) / (1 - spot.start));
if (grown <= 0) continue;
const radius = spot.size * grown ** 1.7;
blob(spot.x, spot.y, Math.max(1, radius), spot.wobble + time * 2);
for (const drop of spot.drops) {
const distance = Math.max(radius, 4) * drop.distance + 3;
const dropSize = Math.max(0.7, spot.size * drop.size * Math.min(1, grown * 4));
blob(spot.x + Math.cos(drop.angle) * distance, spot.y + Math.sin(drop.angle) * distance, dropSize, drop.angle);
}
}
}
context.restore();
}
return `url("${canvas.toDataURL('image/png')}")`;
}
function setUp(root) {
const rows = [...root.querySelectorAll('.services__row')];
const scenes = [...root.querySelectorAll('.services__scene')];
const captionNumber = root.querySelector('.services__caption-number');
const captionName = root.querySelector('.services__caption-name');
const box = rows[0].getBoundingClientRect();
root.style.setProperty('--services-blot', blotSprite(box.width / Math.max(1, box.height) || 5.4));
let active = rows.find((row) => row.classList.contains('is-active')) || rows[0];
active.classList.add('is-filled');
const fill = (row) => { row.classList.remove('is-draining'); row.classList.add('is-filled'); };
const drain = (row) => {
if (row === active || !row.classList.contains('is-filled')) return;
row.classList.remove('is-filled');
row.classList.add('is-draining');
};
function show(row) {
const index = Number(row.dataset.scene);
scenes.forEach((scene, order) => scene.classList.toggle('is-shown', order === index));
captionNumber.textContent = row.querySelector('.services__number').textContent;
captionName.textContent = row.querySelector('.services__name').textContent;
}
function choose(row) {
if (row === active) return;
const previous = active;
previous.classList.remove('is-active');
previous.setAttribute('aria-pressed', 'false');
active = row;
row.classList.add('is-active');
row.setAttribute('aria-pressed', 'true');
fill(row);
drain(previous);
show(row);
}
for (const row of rows) {
row.addEventListener('pointerenter', () => fill(row));
row.addEventListener('pointerleave', () => drain(row));
row.addEventListener('focus', () => fill(row));
row.addEventListener('blur', () => drain(row));
row.addEventListener('click', () => choose(row));
}
for (const card of root.querySelectorAll('.services__card')) {
card.addEventListener('pointermove', (event) => {
const area = card.getBoundingClientRect();
card.style.setProperty('--services-x', `${event.clientX - area.left}px`);
card.style.setProperty('--services-y', `${event.clientY - area.top}px`);
});
}
}
document.querySelectorAll('.services').forEach(setUp);
})();
</script>
Band and case accordion
A black band of bold words with spinning sage stars running forever, then a two-face heading and a row of 40px case cards that widen on hover or focus, each with a drawn scene, a white caps label and a turning plus.
Code
React For Figma<section class="cases" aria-labelledby="cases-title-1">
<div class="cases__band" aria-hidden="true">
<div class="cases__track">
<span class="cases__phrase">Let’s grow your project<svg class="cases__star" viewBox="0 0 40 40"><path d="M20 2c2 12 6 16 18 18-12 2-16 6-18 18-2-12-6-16-18-18 12-2 16-6 18-18z" transform="rotate(45 20 20)"/></svg></span>
<span class="cases__phrase">Let’s grow your project<svg class="cases__star" viewBox="0 0 40 40"><path d="M20 2c2 12 6 16 18 18-12 2-16 6-18 18-2-12-6-16-18-18 12-2 16-6 18-18z" transform="rotate(45 20 20)"/></svg></span>
<span class="cases__phrase">Let’s grow your project<svg class="cases__star" viewBox="0 0 40 40"><path d="M20 2c2 12 6 16 18 18-12 2-16 6-18 18-2-12-6-16-18-18 12-2 16-6 18-18z" transform="rotate(45 20 20)"/></svg></span>
</div>
</div>
<h2 class="cases__title" id="cases-title-1"><span class="cases__kicker">Discover our</span><span class="cases__caps">Latest case studies</span></h2>
<ul class="cases__row">
<li class="cases__card cases__card--mint is-open">
<a class="cases__link" href="#">
<svg class="cases__art" viewBox="0 0 800 600" preserveAspectRatio="xMidYMid slice" aria-hidden="true">
<rect width="800" height="600" class="cases__fill-mint"/>
<g transform="translate(400 300)">
<path d="M0-150L260-20 0 110-260-20z" class="cases__fill-paper"/>
<path d="M-260-20L0 110v40l-260-130z" class="cases__fill-stone-shade"/>
<path d="M260-20L0 110v40l260-130z" class="cases__fill-stone"/>
<path d="M-120-60L40-140l120 60-160 80z" class="cases__fill-pale"/>
<path d="M-40-20L60-70l70 35L30 15z" class="cases__fill-pool"/>
<g class="cases__fill-leaf"><ellipse cx="-150" cy="-10" rx="26" ry="14"/><ellipse cx="-90" cy="20" rx="26" ry="14"/><ellipse cx="-30" cy="50" rx="26" ry="14"/><ellipse cx="150" cy="-10" rx="26" ry="14"/><ellipse cx="90" cy="20" rx="26" ry="14"/></g>
<g class="cases__fill-sage"><ellipse cx="-150" cy="-22" rx="18" ry="16"/><ellipse cx="-90" cy="8" rx="18" ry="16"/><ellipse cx="-30" cy="38" rx="18" ry="16"/><ellipse cx="150" cy="-22" rx="18" ry="16"/><ellipse cx="90" cy="8" rx="18" ry="16"/></g>
<path d="M-200-20l40 20M180-50l40 20" class="cases__line-ink"/>
<circle cx="40" cy="-140" r="6" class="cases__fill-lime"/>
</g>
</svg>
<span class="cases__label">Quinta do Rio, courtyard for a winery</span>
<span class="cases__plus" aria-hidden="true"><svg viewBox="0 0 16 16"><path d="M8 2v12M2 8h12"/></svg></span>
</a>
</li>
<li class="cases__card cases__card--night">
<a class="cases__link" href="#">
<svg class="cases__art" viewBox="0 0 800 600" preserveAspectRatio="xMidYMid slice" aria-hidden="true">
<rect width="800" height="600" class="cases__fill-night"/>
<g class="cases__line-lime" fill="none"><circle cx="400" cy="300" r="190"/><circle cx="400" cy="300" r="130"/><circle cx="400" cy="300" r="70"/><path d="M400 60v480M160 300h480"/></g>
<g class="cases__fill-sage"><circle cx="266" cy="166" r="30"/><circle cx="534" cy="166" r="30"/><circle cx="266" cy="434" r="30"/><circle cx="534" cy="434" r="30"/></g>
<circle cx="400" cy="300" r="14" class="cases__fill-lime"/>
</svg>
<span class="cases__label">Praça Nova, a square that cools its street</span>
<span class="cases__plus" aria-hidden="true"><svg viewBox="0 0 16 16"><path d="M8 2v12M2 8h12"/></svg></span>
</a>
</li>
<li class="cases__card cases__card--stone">
<a class="cases__link" href="#">
<svg class="cases__art" viewBox="0 0 800 600" preserveAspectRatio="xMidYMid slice" aria-hidden="true">
<rect width="800" height="600" class="cases__fill-stone-shade"/>
<g class="cases__fill-stone"><path d="M220 600V280a80 80 0 0 1 160 0v320z"/><path d="M420 600V280a80 80 0 0 1 160 0v320z"/></g>
<g class="cases__fill-paper"><path d="M250 600V290a50 50 0 0 1 100 0v310z"/><path d="M450 600V290a50 50 0 0 1 100 0v310z"/></g>
<g class="cases__fill-leaf"><circle cx="300" cy="540" r="40"/><circle cx="500" cy="540" r="40"/><circle cx="270" cy="560" r="26"/><circle cx="530" cy="560" r="26"/></g>
<path d="M180 200h440" class="cases__line-ink"/>
<circle cx="620" cy="140" r="30" class="cases__fill-butter"/>
</svg>
<span class="cases__label">Casa Alta, a terrace over the river</span>
<span class="cases__plus" aria-hidden="true"><svg viewBox="0 0 16 16"><path d="M8 2v12M2 8h12"/></svg></span>
</a>
</li>
<li class="cases__card cases__card--mist">
<a class="cases__link" href="#">
<svg class="cases__art" viewBox="0 0 800 600" preserveAspectRatio="xMidYMid slice" aria-hidden="true">
<rect width="800" height="600" class="cases__fill-mist"/>
<g class="cases__fill-sage"><path d="M400 560C380 420 420 260 560 160c-10 160-60 300-160 400z"/><path d="M400 560C420 420 380 280 240 200c10 150 60 280 160 360z"/></g>
<path d="M400 560c40-140 80-260 160-400M400 560c-40-130-80-240-160-360" class="cases__line-pale" fill="none"/>
<circle cx="560" cy="160" r="10" class="cases__fill-terracotta"/>
</svg>
<span class="cases__label">Jardim do Bonfim, a school garden</span>
<span class="cases__plus" aria-hidden="true"><svg viewBox="0 0 16 16"><path d="M8 2v12M2 8h12"/></svg></span>
</a>
</li>
</ul>
</section>
<style>
.cases { padding: 0 0 var(--space-xl); background: var(--stone); color: var(--ink); overflow: hidden; }
.cases__band { overflow: hidden; background: var(--ink); color: var(--paper); }
.cases__track { display: flex; width: max-content; animation: cases-roll 26s linear infinite; }
.cases:not(.is-live) .cases__track,
.cases:not(.is-live) .cases__star { animation-play-state: paused; }
.cases__phrase {
display: inline-flex;
flex: none;
align-items: center;
gap: 34px;
padding: 24px 34px 24px 0;
font: 700 var(--band-size)/1 var(--font-body);
letter-spacing: 1px;
white-space: nowrap;
}
.cases__star {
width: 1.12em;
height: 1.12em;
fill: var(--sage);
animation: cases-turn var(--spin-slow) linear infinite;
}
.cases.is-reversed .cases__star { animation-name: cases-turn-back; }
@keyframes cases-roll { to { transform: translateX(-50%); } }
@keyframes cases-turn { to { transform: rotate(1turn); } }
@keyframes cases-turn-back { to { transform: rotate(-1turn); } }
.cases__title { display: grid; margin: var(--space-l) var(--edge) var(--space-m); font-weight: 400; }
.cases__kicker { font: 400 var(--head-s)/1.1 var(--font-display); }
.cases__caps { font: 400 var(--head-l)/1 var(--font-condensed); text-transform: uppercase; letter-spacing: -0.005em; }
.cases__row {
display: flex;
gap: 10px;
height: clamp(340px, 34vw, 560px);
margin: 0;
padding: 0 var(--edge);
list-style: none;
overflow-x: auto;
scrollbar-width: none;
}
.cases__row::-webkit-scrollbar { display: none; }
.cases__card {
position: relative;
flex: none;
width: clamp(120px, 21vw, 300px);
overflow: hidden;
border-radius: var(--radius-xl);
transition: width var(--time) var(--ease-case);
}
.cases__card.is-open { width: 65%; }
.cases__link { position: absolute; inset: 0; display: block; color: var(--ink); text-decoration: none; }
.cases__link:focus-visible { outline: 3px solid var(--sage); outline-offset: -6px; border-radius: var(--radius-xl); }
.cases__art { width: 100%; height: 100%; transition: transform var(--time) var(--ease-case); }
.cases__card.is-open .cases__art { transform: scale(1.03); }
.cases__label {
position: absolute;
left: 16px;
bottom: 16px;
max-width: calc(100% - 32px);
padding: 12px 16px;
border-radius: 6px;
background: var(--paper);
font: 400 var(--text-s)/1.2 var(--font-condensed);
font-size: 15px;
letter-spacing: 0.02em;
text-transform: uppercase;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
opacity: 0;
transform: translateY(8px);
transition: opacity var(--time) var(--ease), transform var(--time) var(--ease);
}
.cases__card.is-open .cases__label { opacity: 1; transform: none; transition-delay: 0.2s; }
.cases__plus {
position: absolute;
top: 18px;
right: 18px;
display: grid;
place-items: center;
width: var(--tap);
height: var(--tap);
border-radius: 50%;
background: rgba(255, 255, 255, 0.55);
color: var(--ink);
transition: transform var(--time) var(--ease), background-color var(--time) var(--ease), color var(--time) var(--ease);
}
.cases__plus svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: scale var(--time) var(--ease); }
.cases__link:hover .cases__plus,
.cases__link:focus-visible .cases__plus { transform: rotate(45deg); background: var(--ink); color: var(--paper); }
.cases__link:hover .cases__plus svg { scale: 1.1; }
.cases__fill-mint { fill: var(--mint-card); }
.cases__fill-paper { fill: var(--paper); }
.cases__fill-stone { fill: var(--stone); }
.cases__fill-stone-shade { fill: var(--stone-shade); }
.cases__fill-pale { fill: var(--sage-pale); }
.cases__fill-pool { fill: var(--mist); }
.cases__fill-leaf { fill: var(--sticker-leaf); }
.cases__fill-sage { fill: var(--sage); }
.cases__fill-lime { fill: var(--lime); }
.cases__fill-night { fill: var(--forest); }
.cases__fill-butter { fill: var(--pearl-4); }
.cases__fill-mist { fill: var(--mist); }
.cases__fill-terracotta { fill: var(--sticker-terracotta); }
.cases__line-ink { stroke: var(--ink); stroke-width: 3; }
.cases__line-lime { stroke: var(--lime); stroke-width: 2; }
.cases__line-pale { stroke: var(--sage-pale); stroke-width: 3; }
@media (max-width: 700px) {
.cases__row { height: 440px; }
.cases__card { width: 76px; }
.cases__card.is-open { width: calc(100% - 172px); min-width: 200px; }
.cases__label { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
.cases__track, .cases__star { animation: none; }
}
</style>
<script>
(() => {
function setUp(root) {
const track = root.querySelector('.cases__track');
for (const phrase of [...track.children]) track.append(phrase.cloneNode(true));
const cards = [...root.querySelectorAll('.cases__card')];
const open = (card) => {
for (const other of cards) other.classList.toggle('is-open', other === card);
};
for (const card of cards) {
const link = card.querySelector('.cases__link');
card.addEventListener('pointerenter', () => open(card));
link.addEventListener('focus', () => open(card));
link.addEventListener('click', (event) => {
if (card.classList.contains('is-open')) return;
event.preventDefault();
open(card);
});
}
let lastScroll = scrollY;
addEventListener('scroll', () => {
root.classList.toggle('is-reversed', scrollY < lastScroll);
lastScroll = scrollY;
}, { passive: true });
new IntersectionObserver(([entry]) => root.classList.toggle('is-live', entry.isIntersecting)).observe(root);
}
document.querySelectorAll('.cases').forEach(setUp);
})();
</script>
Big call and footer
A condensed caps question with an iridescent arrow disc, a huge ultra-condensed email cut by a spinning spiky @ badge, footer link columns, and a sage START A PROJECT card whose star whips round while the card turns black.
Code
React For Figma<section class="contact" aria-labelledby="contact-title-1">
<div class="contact__top">
<h2 class="contact__call" id="contact-title-1">
<span class="contact__ask">Got a garden<br>in mind?</span>
<span class="contact__shout">Let’s talk!<a class="contact__disc" href="#" aria-label="Write to us"><span class="contact__prism" aria-hidden="true"></span><span class="contact__prism contact__prism--two" aria-hidden="true"></span><svg class="contact__disc-arrow" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 19L19 5M8 5h11v11"/></svg></a></span>
</h2>
<svg class="contact__orb" viewBox="0 0 260 200" aria-hidden="true">
<defs>
<radialGradient id="contact-chrome-1" cx="0.38" cy="0.32" r="0.75">
<stop offset="0" class="contact__stop-light"/>
<stop offset="0.45" class="contact__stop-mid"/>
<stop offset="1" class="contact__stop-dark"/>
</radialGradient>
<linearGradient id="contact-ring-1" x1="0" y1="0" x2="1" y2="0">
<stop offset="0" class="contact__stop-pearl-1"/>
<stop offset="0.35" class="contact__stop-pearl-2"/>
<stop offset="0.7" class="contact__stop-pearl-3"/>
<stop offset="1" class="contact__stop-pearl-4"/>
</linearGradient>
</defs>
<ellipse cx="130" cy="186" rx="64" ry="8" class="contact__orb-shadow"/>
<path d="M22 108a108 26 -12 0 1 216 -46" fill="none" stroke="url(#contact-ring-1)" stroke-width="9" stroke-linecap="round"/>
<circle cx="130" cy="96" r="70" fill="url(#contact-chrome-1)"/>
<ellipse cx="104" cy="66" rx="22" ry="12" transform="rotate(-30 104 66)" class="contact__orb-glint"/>
<path d="M238 62a108 26 -12 0 1 -216 46" fill="none" stroke="url(#contact-ring-1)" stroke-width="9" stroke-linecap="round" stroke-dasharray="0 120 400"/>
</svg>
</div>
<a class="contact__email" href="#">
<span class="contact__email-word">Hello</span>
<span class="contact__badge" aria-label="at">
<svg class="contact__burst" viewBox="0 0 200 200" aria-hidden="true"></svg>
<span class="contact__at" aria-hidden="true">@</span>
</span>
<span class="contact__email-word">patio-norte.pt</span>
</a>
<footer class="contact__footer">
<div class="contact__brand">
<svg class="contact__mark" viewBox="0 0 52 52" aria-hidden="true">
<circle cx="26" cy="26" r="22.5" fill="none" stroke="currentColor" stroke-width="5"/>
<path d="M18 39V14h10.5a8.5 8.5 0 0 1 0 17H18" fill="none" stroke="currentColor" stroke-width="5" stroke-linejoin="round"/>
<circle cx="28.5" cy="22.5" r="2.4" fill="currentColor"/>
</svg>
<span class="contact__name">Pátio<br>Norte Lda.</span>
<p class="contact__about">The patience of a gardener joined to the precision of an engineering office.</p>
</div>
<nav class="contact__column" aria-label="Quick access">
<h3 class="contact__head">Quick access</h3>
<ul><li><a href="#">Home</a></li><li><a href="#">Studio</a></li><li><a href="#">Gardens</a></li><li><a href="#">Case studies</a></li><li><a href="#">Contact</a></li></ul>
</nav>
<nav class="contact__column" aria-label="Useful links">
<h3 class="contact__head">Useful links</h3>
<ul><li><a href="#">Journal</a></li><li><a href="#">Plant list</a></li><li><a href="#">Privacy policy</a></li><li><a href="#">Legal notice</a></li></ul>
</nav>
<nav class="contact__column" aria-label="Social">
<h3 class="contact__head">Social</h3>
<ul><li><a href="#">Instagram</a></li><li><a href="#">Pinterest</a></li><li><a href="#">LinkedIn</a></li><li><a href="#">Are.na</a></li></ul>
</nav>
<a class="contact__start" href="#">
<svg class="contact__star" viewBox="0 0 120 110" aria-hidden="true">
<path d="M60 0v110M2 54h116" stroke="currentColor" stroke-width="2"/>
<ellipse cx="60" cy="55" rx="58" ry="17" transform="rotate(-48 60 55)" fill="none" stroke="currentColor" stroke-width="6"/>
<path d="M60 41c1.6 9 4.6 12 14 14-9.4 2-12.4 5-14 14-1.6-9-4.6-12-14-14 9.4-2 12.4-5 14-14z" fill="currentColor"/>
</svg>
<span class="contact__start-label">Start a project</span>
</a>
</footer>
<div class="contact__legal">
<span>hello@patio-norte.pt</span>
<span>© 2026 Pátio Norte Lda.</span>
<span>All rights reserved</span>
</div>
</section>
<style>
.contact { padding: var(--space-xl) var(--edge) 40px; overflow: hidden; background: var(--stone); color: var(--ink); }
.contact__top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-m); }
.contact__call { display: grid; margin: 0; font-weight: 400; text-transform: uppercase; }
.contact__ask { font: 400 var(--head-l)/0.98 var(--font-condensed); color: var(--forest); }
.contact__shout {
display: flex;
align-items: center;
gap: 0.14em;
color: var(--sage);
font: 400 var(--shout)/0.95 var(--font-condensed);
letter-spacing: 3px;
}
.contact__disc {
position: relative;
display: grid;
place-items: center;
flex: none;
width: clamp(56px, 6.3vw, 90px);
height: clamp(56px, 6.3vw, 90px);
overflow: hidden;
border: 1.5px solid var(--ink);
border-radius: 50%;
color: var(--ink);
isolation: isolate;
}
.contact__prism {
position: absolute;
inset: -30%;
z-index: -1;
background: conic-gradient(from 0deg, var(--pearl-1), var(--pearl-3), var(--pearl-2), var(--pearl-4), var(--pearl-1));
animation: contact-orbit 20s linear infinite;
}
.contact__prism--two {
background: radial-gradient(circle at 30% 30%, var(--paper), transparent 45%);
mix-blend-mode: soft-light;
animation-duration: 22s;
animation-direction: reverse;
}
.contact__disc-arrow { width: 42%; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 0.3s var(--ease); }
.contact__disc:hover .contact__disc-arrow,
.contact__disc:focus-visible .contact__disc-arrow { transform: rotate(45deg); }
.contact__disc:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; }
@keyframes contact-orbit { to { transform: rotate(1turn); } }
.contact__orb { width: clamp(150px, 20vw, 290px); margin-top: -20px; overflow: visible; animation: contact-bob 6s ease-in-out infinite; }
.contact__stop-light { stop-color: var(--paper); }
.contact__stop-mid { stop-color: var(--sage-pale); }
.contact__stop-dark { stop-color: var(--sage); }
.contact__stop-pearl-1 { stop-color: var(--pearl-1); }
.contact__stop-pearl-2 { stop-color: var(--pearl-2); }
.contact__stop-pearl-3 { stop-color: var(--pearl-3); }
.contact__stop-pearl-4 { stop-color: var(--pearl-4); }
.contact__orb-shadow { fill: var(--shadow); }
.contact__orb-glint { fill: var(--paper); opacity: 0.75; }
@keyframes contact-bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(-2deg); } }
.contact:not(.is-live) .contact__prism,
.contact:not(.is-live) .contact__orb,
.contact:not(.is-live) .contact__burst { animation-play-state: paused; }
.contact__email {
display: flex;
align-items: center;
width: max-content;
margin: var(--space-l) auto var(--space-xl);
min-height: var(--tap);
color: var(--ink);
font: 800 var(--contact-size, 10vw)/0.82 var(--font-block);
letter-spacing: -0.01em;
text-transform: uppercase;
text-decoration: none;
white-space: nowrap;
transition: color 0.3s var(--ease);
}
.contact__email:hover,
.contact__email:focus-visible { color: var(--sage); }
.contact__email:focus-visible { outline: 2px solid var(--ink); outline-offset: 8px; }
.contact__badge {
position: relative;
display: grid;
place-items: center;
flex: none;
width: 0.92em;
height: 0.92em;
margin: 0 -0.12em;
z-index: 1;
}
.contact__burst {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
fill: var(--ink);
stroke: var(--sage);
stroke-width: 7;
stroke-linejoin: round;
animation: contact-spin var(--spin) linear infinite;
transition: fill 0.3s var(--ease), stroke 0.3s var(--ease);
}
.contact__email:hover .contact__burst,
.contact__email:focus-visible .contact__burst { fill: var(--sage); stroke: var(--ink); }
.contact__at {
position: relative;
font: 700 0.42em/1 var(--font-body);
padding: 0.08em 0.02em 0.14em;
background: linear-gradient(135deg, var(--pearl-1), var(--pearl-3) 40%, var(--pearl-2) 70%, var(--pearl-4));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
@keyframes contact-spin { to { transform: rotate(1turn); } }
.contact__footer {
display: grid;
grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr);
gap: var(--space-m);
align-items: start;
}
.contact__brand { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 14px; }
.contact__mark { width: 72px; height: 72px; }
.contact__name { font: 600 23px/1.05 var(--font-body); }
.contact__about { grid-column: 1 / -1; max-width: 22em; margin: 26px 0 0; color: var(--graphite); font: 400 var(--text-m)/1.75 var(--font-body); }
.contact__head { margin: 12px 0 18px; font: 400 23px/1 var(--font-display); text-transform: uppercase; }
.contact__column ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.contact__column a {
padding: 10px 0;
color: var(--ink);
font: 400 var(--text-m)/1.5 var(--font-body);
text-decoration: none;
background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
transition: background-size var(--time) var(--ease-out-quart);
}
.contact__column a:hover,
.contact__column a:focus-visible { background-size: 100% 1px; }
.contact__column a:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
.contact__start {
position: relative;
display: grid;
justify-items: center;
align-content: center;
gap: 14px;
min-height: 200px;
padding: 20px;
overflow: hidden;
border-radius: var(--radius-s);
background: var(--sage);
color: var(--paper);
text-decoration: none;
transition: transform var(--time) var(--ease), background var(--time) var(--ease);
}
.contact__start::after {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
background: radial-gradient(800px circle at var(--contact-x, 50%) var(--contact-y, 50%), var(--spot), transparent 40%);
opacity: 0;
pointer-events: none;
transition: opacity var(--time) var(--ease);
}
.contact__start:hover,
.contact__start:focus-visible { background: var(--ink); }
.contact__start:hover::after,
.contact__start:focus-visible::after { opacity: 1; }
.contact__start:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.contact__star { width: 116px; }
.contact__start:hover .contact__star,
.contact__start:focus-visible .contact__star { animation: contact-whip var(--time-star) var(--ease-star) forwards; }
@keyframes contact-whip { to { transform: rotate(1turn); } }
.contact__start-label { font: 400 23px/1.5 var(--font-display); text-transform: uppercase; }
.contact__legal {
display: flex;
justify-content: space-between;
gap: var(--space-s);
flex-wrap: wrap;
margin-top: 70px;
font: 400 var(--text-m)/1.4 var(--font-display);
}
@media (max-width: 1100px) {
.contact__footer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact__brand { grid-column: 1 / -1; }
.contact__start { grid-column: 1 / -1; min-height: 160px; }
}
@media (max-width: 700px) {
.contact__top { flex-direction: column; }
.contact__orb { position: absolute; top: -10px; right: -20px; width: 130px; }
.contact__footer { grid-template-columns: 1fr 1fr; }
.contact__column:last-of-type { grid-column: 1 / -1; }
.contact__legal { flex-direction: column; margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
.contact__prism, .contact__orb, .contact__burst { animation: none; }
}
</style>
<script>
(() => {
function drawBurst(svg) {
const spikes = 14;
let path = '';
for (let index = 0; index <= spikes * 2; index += 1) {
const turn = (index / (spikes * 2)) * Math.PI * 2;
const radius = index % 2 ? 66 : 96;
const x = 100 + Math.cos(turn) * radius;
const y = 100 + Math.sin(turn) * radius;
if (index === 0) { path += `M${x.toFixed(1)} ${y.toFixed(1)}`; continue; }
const middle = turn - Math.PI / (spikes * 2);
const pull = index % 2 ? 90 : 72;
path += ` Q${(100 + Math.cos(middle) * pull).toFixed(1)} ${(100 + Math.sin(middle) * pull).toFixed(1)} ${x.toFixed(1)} ${y.toFixed(1)}`;
}
svg.innerHTML = `<path d="${path}Z"/>`;
}
function setUp(root) {
const email = root.querySelector('.contact__email');
drawBurst(root.querySelector('.contact__burst'));
const fitEmail = () => {
email.style.setProperty('--contact-size', '100px');
const room = root.clientWidth - parseFloat(getComputedStyle(root).paddingLeft) * 2;
const natural = email.getBoundingClientRect().width;
email.style.setProperty('--contact-size', `${Math.floor((100 * room) / natural * 0.995)}px`);
};
document.fonts.ready.then(fitEmail);
new ResizeObserver(fitEmail).observe(root);
const start = root.querySelector('.contact__start');
start.addEventListener('pointermove', (event) => {
const box = start.getBoundingClientRect();
start.style.setProperty('--contact-x', `${event.clientX - box.left}px`);
start.style.setProperty('--contact-y', `${event.clientY - box.top}px`);
});
new IntersectionObserver(([entry]) => root.classList.toggle('is-live', entry.isIntersecting)).observe(root);
}
document.querySelectorAll('.contact').forEach(setUp);
})();
</script>
Style
- --stone #e0dbd9
- --stone-light #f2f1ee
- --stone-shade #d3cdca
- --paper #ffffff
- --mist #e9eef0
- --ink #000000
- --ink-soft #111111
- --charcoal #2b2b2b
- --graphite #444444
- --ash #8e8e8e
- --sage #556b5b
- --sage-mid #526354
- --sage-pale #b9c6bc
- --forest #222c24
- --lime #d2ff3a
- --line rgba(0, 0, 0, 0.1)
- --grid-line rgba(0, 0, 0, 0.045)
- --spot rgba(255, 255, 255, 0.15)
- --shadow rgba(0, 0, 0, 0.1)
- --glass rgba(236, 241, 237, 0.55)
- --pearl-1 #a9eedb
- --pearl-2 #f5b8d4
- --pearl-3 #c8b9f6
- --pearl-4 #f6efad
- --sticker-leaf #4f8a4b
- --sticker-terracotta #cf6a3a
- --sticker-lemon #f2d23c
- --sticker-azul #2c5fa8
- --sticker-rose #e88aa6
- --linen #ece7df
- --sand #d9cdb8
- --sand-deep #c9b99f
- --horn #b08a5c
- --pool #a9c4c9
- --mint-card #8fb3a0
- --stone-deep #c4bdb9
- --rose-light #f3a9bf
- --glass-light #eef2ee
- --glass-shadow #6f7d72
Type
- Belleza 400 for hero headline lines, section heads, card heads, list lines, stands in for a licensed flared high-contrast sans in the Optima family (Haboro Contrast Norm), used light and large
- Instrument Serif 400 for shout caps, loader greeting, the big call, case heads, stands in for a licensed condensed contrast display (Gageexo), set in caps with tiny flares
- Poppins 300 to 700 for running text, menu pills, buttons, numbers, band words, stands in for the same face the site uses, light for text, bold for card titles and the band
- Handjet 400 for one pixel word dropped into a headline, stands in for the same pixel face the site uses for its single pixel word
- Big Shoulders Display 800 for the huge black email in the contact block, stands in for a custom ultra-condensed black wordmark drawn as an SVG
- Kaushan Script 400 for the glass word in the hero, stands in for hand-drawn calligraphy rendered as 3D glass
Motion
- Loader: a greeting swaps every 0.32s (opacity 0.12s, 8px rise 0.18s), a percent counter climbs to 100 and a 1px track shuttles on a 1.6s cubic-bezier(0.45, 0, 0.25, 1) loop until it fills; the loader then fades out in 0.45s.
- Hero: a glass word slides in from the right over 1.1s on cubic-bezier(0.22, 1, 0.36, 1) while die-cut stickers drop from above, bounce off each other and come to rest on top of the letters; stickers can be grabbed and thrown, and new ones keep drifting down.
- Hero captions fade up in 0.8s ease, the second one 0.13s later; the scroll hint carries an iridescent orb on a 5.53s loop.
- Buttons and service rows fill with an ink-blot mask: 71 frames of spreading blots stepped through in 0.7s with steps(70), played backwards when the pointer leaves.
- Service rows grow to 1.02 on hover and press to 0.98 in 0.5s ease; the active row turns black with a lime number, a black border and a 0 10px 30px shadow.
- Menu: pills fan out from behind the MENU pill, 0.5s cubic-bezier(0, 0, 0.2, 1) each, 0.1s apart; labels roll up and pills turn black in 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); the MENU star turns half a turn in 0.8s on hover.
- Dark cards carry a white spotlight that follows the pointer (fades in 0.5s), their arrow turns 30 degrees in 0.5s, and a reason card turns sage over 0.6s ease-in-out.
- Case cards widen from 300px to most of the row in 0.5s on cubic-bezier(0.84, 0.04, 0.24, 0.94); their plus turns 45 degrees.
- The footer star makes one turn in 1.5s on cubic-bezier(1, 0.02, 0, 0.97), stalling, whipping round, stalling, while its card turns black in 0.5s; the spiky @ badge spins every 2.6s, linear.
- The black band of bold words runs left forever and its sage stars spin every 3s; scrolling up reverses the stars.
Rules
- One warm grey ground (#e0dbd9) with a faint 110px square grid at the top; colour comes only from sage (#556b5b), black, white and one lime number.
- Headlines are set right-aligned in mixed faces on one baseline: a flared contrast word, a pixel word, condensed caps, and a phrase inside a sage pill.
- Inline objects sit in the lines of type: a capsule holding two pill buttons, a gyroscope of dashed rings, a swash ampersand with a sparkle.
- Corners are generous and varied: 100px pills, 40px case cards, 24px dark cards, 20px footer card, full circles for arrows and badges.
- Running text is Poppins light at 16/27.2; small caps labels are 10 to 15px with a little tracking.
- Pictures are glass, iridescent or flat illustration, never stock: pale glass lettering, mint-pink-lilac pearl gradients, cheerful die-cut stickers.
- Interaction is tactile: things fill, roll, fan out, turn and widen; nothing just changes colour.
base.css
/* Fonts: free Google Fonts that stand in for the site's faces. */
@import url("https://fonts.googleapis.com/css2?family=Belleza&family=Instrument+Serif&family=Poppins:wght@300;400;500;600;700&family=Handjet:wght@400&family=Big+Shoulders+Display:wght@800&family=Kaushan+Script&display=swap");
:root {
--stone: #e0dbd9; /* page background, warm grey */
--stone-light: #f2f1ee; /* the lit part of the hero haze */
--stone-shade: #d3cdca; /* the shaded part of the hero haze, capsule behind hero buttons */
--paper: #ffffff; /* menu pills, case labels, white cards */
--mist: #e9eef0; /* cool grey card fill */
--ink: #000000; /* main text, active rows, the band */
--ink-soft: #111111; /* long text */
--charcoal: #2b2b2b; /* dark cards */
--graphite: #444444; /* secondary text */
--ash: #8e8e8e; /* hashtags and quiet captions */
--sage: #556b5b; /* the one colour: pills, footer card, big call */
--sage-mid: #526354; /* loader text and track */
--sage-pale: #b9c6bc; /* glass tint, dashed rings */
--forest: #222c24; /* loader word */
--lime: #d2ff3a; /* the number of the active row */
--line: rgba(0, 0, 0, 0.1); /* idle row borders, hairlines */
--grid-line: rgba(0, 0, 0, 0.045); /* the faint square grid behind the top of the page */
--spot: rgba(255, 255, 255, 0.15); /* pointer spotlight on dark cards */
--shadow: rgba(0, 0, 0, 0.1); /* shadow under the active row */
--glass: rgba(236, 241, 237, 0.55); /* body of glass lettering */
--pearl-1: #a9eedb; /* iridescent: mint */
--pearl-2: #f5b8d4; /* iridescent: pink */
--pearl-3: #c8b9f6; /* iridescent: lilac */
--pearl-4: #f6efad; /* iridescent: butter */
--sticker-leaf: #4f8a4b; /* sticker: leaf green */
--sticker-terracotta: #cf6a3a; /* sticker: pot and tile */
--sticker-lemon: #f2d23c; /* sticker: lemon and sun */
--sticker-azul: #2c5fa8; /* sticker: azulejo blue */
--sticker-rose: #e88aa6; /* sticker: flower */
--linen: #ece7df; /* drawings: light paving */
--sand: #d9cdb8; /* drawings: gravel paths, snail body */
--sand-deep: #c9b99f; /* drawings: path joints */
--horn: #b08a5c; /* drawings: snail horns */
--pool: #a9c4c9; /* drawings: water */
--mint-card: #8fb3a0; /* first case card */
--stone-deep: #c4bdb9; /* drawings: windows, paving lines */
--rose-light: #f3a9bf; /* sticker: second petal tone */
--glass-light: #eef2ee; /* light falling on glass lettering */
--glass-shadow: #6f7d72; /* shadow under glass lettering */
--font-display: "Belleza", "Optima", "Candara", sans-serif; /* flared high-contrast face: hero lines, section heads, card heads */
--font-condensed: "Instrument Serif", "Didot", serif; /* condensed contrast caps: shout lines, loader word, big call */
--font-body: "Poppins", "Helvetica Neue", Arial, sans-serif; /* geometric sans for running text, menu, buttons */
--font-pixel: "Handjet", ui-monospace, monospace; /* one pixel word dropped into a headline */
--font-block: "Big Shoulders Display", "Impact", sans-serif; /* the huge black email */
--font-script: "Kaushan Script", cursive; /* the glass lettering in the hero */
--text-xs: 11px; /* hero buttons, credential caps */
--text-s: 13px; /* small captions, tracked -0.035em */
--text-m: 16px; /* running text 16/27.2 light */
--text-l: 20px; /* list lines in the display face */
--menu-size: 15px; /* menu pills, caps 500 tracked 0.04em */
--head-s: clamp(22px, 1.4rem + 0.4vw, 26px); /* card heads 26/39 */
--head-m: clamp(30px, 1.2rem + 1.6vw, 40px); /* section heads 40/40 */
--head-l: clamp(44px, 1.6rem + 3.6vw, 70px); /* condensed caps heads 70/70 */
--hero-line: clamp(38px, 1rem + 4.6vw, 83px); /* hero headline 83 on 1.3 */
--shout: clamp(52px, 1.6rem + 6.8vw, 130px); /* the call 130/124 tracked 3px */
--band-size: clamp(22px, 1rem + 1.2vw, 34px); /* band words 34/34 bold tracked 1px */
--edge: clamp(16px, 4.9vw, 70px); /* side padding, 70 at 1440 */
--space-xs: 8px; /* inside pills */
--space-s: 16px; /* between lines of one block */
--space-m: 24px; /* between items */
--space-l: 40px; /* between blocks */
--space-xl: 80px; /* section padding */
--grid-step: 110px; /* square grid cell behind the top of the page */
--tap: 44px; /* smallest tappable size */
--radius-s: 20px; /* small cards, footer card */
--radius-m: 24px; /* dark cards */
--radius-l: 30px; /* capsules, hero buttons */
--radius-xl: 40px; /* case cards */
--radius-pill: 100px; /* service rows, menu pills */
--ease: ease; /* plain CSS ease: hover lifts, rotations, fades (0.5s) */
--ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1); /* menu pill colour, label roll */
--ease-out: cubic-bezier(0, 0, 0.2, 1); /* menu pills fanning out */
--ease-in-out: ease-in-out; /* dark card turning sage */
--ease-case: cubic-bezier(0.84, 0.04, 0.24, 0.94); /* case cards widening */
--ease-star: cubic-bezier(1, 0.02, 0, 0.97); /* footer star: stalls, whips, stalls */
--ease-reveal: cubic-bezier(0.22, 1, 0.36, 1); /* glass word and chrome arriving */
--ease-shuttle: cubic-bezier(0.45, 0, 0.25, 1); /* loader track shuttle */
--quick: 0.12s; /* loader word opacity swap */
--quick-move: 0.18s; /* loader word 8px rise */
--time-fade: 0.45s; /* loader leaving */
--time: 0.5s; /* hover lift, spotlight, arrows, case widths */
--time-colour: 0.6s; /* menu colour, card colour */
--time-blot: 0.7s; /* ink-blot fill, 71 frames on steps(70) */
--time-icon: 0.8s; /* menu star half turn, captions fading in */
--time-star: 1.5s; /* footer star turn */
--time-shuttle: 1.6s; /* loader track pass, chrome arriving */
--stagger: 0.1s; /* between menu pills */
--spin: 2.6s; /* badge spin, linear */
--spin-slow: 3s; /* band star and language badge, linear */
}
*, *::before, *::after { box-sizing: border-box; }
body {
margin: 0;
background: var(--stone);
color: var(--ink);
font: 300 var(--text-m)/1.7 var(--font-body);
-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("glass-garden"), 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