Ink Bloom Column
A white Swiss page in one medium grotesque at two sizes, hung on an 8 column grid and one thin vertical rule, where every line of type grows out of a blurred ink blob and the whole page can be flooded in one of five muted colours. Suits one-person design, sound and code studios that want a portfolio that feels printed and alive at once.
Parts
Corner nav with stepped panels
A 5% grey corner square and a small black Menu pill. The pill opens three grey panels of falling height that unclip from the top, each with a numbered ring and a 40px word that rolls on hover; the pill rolls to Close.
Code
React For Figma<header class="nav">
<div class="nav__bar">
<a class="nav__corner" href="#" aria-label="nachklang, home"><span class="nav__square" aria-hidden="true"></span></a>
<button class="nav__button" type="button" aria-expanded="false" aria-controls="nav-panels">
<span class="nav__pill"><span class="nav__label" data-roll>Menu</span></span>
</button>
</div>
<nav class="nav__panels" id="nav-panels" aria-label="Main">
<a class="nav__panel is-current" href="#" aria-current="page">
<span class="nav__dot">1</span>
<span class="nav__word" data-roll>Index</span>
</a>
<a class="nav__panel" href="#">
<span class="nav__dot">2</span>
<span class="nav__word" data-roll>Sounds</span>
</a>
<a class="nav__panel" href="#">
<span class="nav__dot">3</span>
<span class="nav__word" data-roll>Write</span>
</a>
</nav>
</header>
<style>
.nav {
position: relative;
z-index: 5;
min-height: max(260px, 25vw);
}
.nav__bar {
display: flex;
align-items: flex-start;
justify-content: space-between;
padding: var(--edge);
}
.nav__corner {
display: grid;
place-items: start;
width: var(--tap);
height: var(--tap);
margin: calc(var(--edge) * -1) 0 0 calc(var(--edge) * -1);
padding: var(--edge) 0 0 var(--edge);
}
.nav__square {
width: max(12px, 1.1111vw);
height: max(12px, 1.1111vw);
background: var(--tint);
transition: background var(--dur-s) var(--ease-out);
}
.nav__corner:hover .nav__square,
.nav__corner:focus-visible .nav__square {
background: var(--ink);
}
.nav__corner:focus-visible,
.nav__button:focus-visible .nav__pill,
.nav__panel:focus-visible {
outline: var(--stroke) solid var(--ink);
outline-offset: 3px;
}
.nav__corner:focus-visible,
.nav__button:focus-visible { outline: none; }
/* The visible pill is small; the button around it is a full tap target. */
.nav__button {
position: relative;
z-index: 2;
display: grid;
place-items: start end;
min-width: var(--tap);
min-height: var(--tap);
margin: calc(var(--edge) * -1) calc(var(--edge) * -1) 0 0;
padding: var(--edge) var(--edge) 0 0;
border: 0;
background: none;
color: inherit;
font: inherit;
letter-spacing: inherit;
cursor: pointer;
}
.nav__pill {
display: inline-flex;
align-items: center;
height: calc(1lh + 8px);
padding: 4px max(8px, 0.5556vw);
border-radius: var(--radius-m);
background: var(--ink);
color: var(--on-ink);
}
.nav__label {
display: block;
overflow: clip;
white-space: nowrap;
transition: width 0.2s cubic-bezier(0.77, 0, 0.175, 1);
}
/* Three stepped panels hang from the top right corner. */
.nav__panels {
position: absolute;
top: 0;
right: 0;
display: flex;
align-items: flex-start;
width: calc(var(--cell) * 4.5 + var(--gap) * 4.5 + var(--edge));
pointer-events: none;
}
.nav__panel {
position: relative;
display: flex;
flex-direction: column;
justify-content: space-between;
flex: 1 1 0;
padding: var(--edge);
color: var(--ink);
text-decoration: none;
clip-path: inset(0% 0% 100% 0%);
visibility: hidden;
}
.nav__panel:nth-child(1) { height: max(220px, 25vw); background: var(--menu-1); }
.nav__panel:nth-child(2) { height: max(172px, 19.4444vw); background: var(--menu-2); }
.nav__panel:nth-child(3) { height: max(132px, 15vw); background: var(--menu-3); padding-right: calc(var(--edge) + 80px); }
.nav.is-open .nav__panels { pointer-events: auto; }
.nav.is-open .nav__panel,
.nav.is-closing .nav__panel { visibility: visible; }
.nav__dot {
display: grid;
place-items: center;
width: max(23px, 1.5972vw);
height: max(23px, 1.5972vw);
border: var(--stroke) solid var(--ink);
border-radius: var(--radius-round);
transition: background var(--dur-s) var(--ease-out), color var(--dur-s) var(--ease-out);
}
.nav__panel.is-current .nav__dot,
.nav__panel:hover .nav__dot {
background: var(--ink);
color: var(--on-ink);
}
.nav__word {
font-size: var(--text-l);
line-height: var(--leading-l);
letter-spacing: var(--tracking-l);
}
/* Character roll: the word slides up and out while its copy slides up from below. */
.nav__roll {
display: inline-grid;
overflow: clip;
vertical-align: top;
white-space: pre;
}
.nav__copy { grid-area: 1 / 1; justify-self: start; }
.nav__char {
display: inline-block;
transition: translate var(--dur-s) var(--ease-in-out);
transition-delay: calc(var(--back) * var(--roll-spread));
}
.nav__copy + .nav__copy .nav__char { translate: 0 100%; }
.is-rolled > .nav__roll .nav__char { translate: 0 -100%; transition-delay: calc(var(--fore) * var(--roll-spread)); }
.is-rolled > .nav__roll .nav__copy + .nav__copy .nav__char { translate: 0 0; }
.is-instant .nav__char { transition: none; }
.nav__spoken {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
@media (max-width: 47.99rem) {
.nav__panels {
width: 100%;
}
.nav__panel {
clip-path: inset(0% 0% 0% 100%);
}
.nav__panel:nth-child(3) { padding-right: var(--edge); padding-top: calc(var(--edge) + 48px); }
}
@media (prefers-reduced-motion: reduce) {
.nav__char { transition: none; }
}
</style>
<script>
(() => {
const still = matchMedia('(prefers-reduced-motion: reduce)');
const narrow = matchMedia('(max-width: 47.99rem)');
function cssTime(root, name) {
return parseFloat(getComputedStyle(root).getPropertyValue(name)) * 1000;
}
function bezier(spec) {
const [x1, y1, x2, y2] = spec.match(/-?[\d.]+/g).map(Number);
const curve = (a, b, t) => 3 * a * t * (1 - t) ** 2 + 3 * b * t * t * (1 - t) + t ** 3;
return (x) => {
let low = 0, high = 1, t = x;
for (let step = 0; step < 24; step += 1) {
t = (low + high) / 2;
if (curve(x1, x2, t) < x) low = t; else high = t;
}
return curve(y1, y2, t);
};
}
function tween(duration, delay, ease, update) {
return new Promise((done) => {
const start = performance.now() + delay;
const frame = (now) => {
const progress = Math.min(1, Math.max(0, (now - start) / duration));
if (now >= start) update(ease(progress));
if (progress < 1) requestAnimationFrame(frame); else done();
};
requestAnimationFrame(frame);
});
}
function buildRoll(element, first, second = first) {
const roll = document.createElement('span');
roll.className = 'nav__roll';
roll.setAttribute('aria-hidden', 'true');
for (const text of [first, second]) {
const line = document.createElement('span');
const last = Math.max(1, text.length - 1);
line.className = 'nav__copy';
[...text].forEach((letter, index) => {
const char = document.createElement('span');
char.className = 'nav__char';
char.textContent = letter;
char.style.setProperty('--fore', index / last);
char.style.setProperty('--back', (last - index) / last);
line.append(char);
});
roll.append(line);
}
const spoken = document.createElement('span');
spoken.className = 'nav__spoken';
spoken.textContent = second;
element.dataset.text = second;
element.replaceChildren(roll, spoken);
}
function swapText(element, next, hovered, duration) {
const before = element.getBoundingClientRect().width;
buildRoll(element, element.dataset.text, next);
const after = element.querySelector('.nav__copy:last-child').getBoundingClientRect().width;
element.style.width = `${before}px`;
requestAnimationFrame(() => { element.style.width = `${after}px`; });
element.classList.remove('is-rolled');
void element.offsetWidth;
element.classList.add('is-rolled');
clearTimeout(element._swap);
element._swap = setTimeout(() => {
element.classList.add('is-instant');
buildRoll(element, next);
element.classList.toggle('is-rolled', hovered());
void element.offsetWidth;
element.classList.remove('is-instant');
}, duration);
}
function setUp(root) {
const button = root.querySelector('.nav__button');
const label = root.querySelector('.nav__label');
const panels = [...root.querySelectorAll('.nav__panel')];
const easeOut = bezier(getComputedStyle(root).getPropertyValue('--ease-out'));
const easeIn = bezier(getComputedStyle(root).getPropertyValue('--ease-in'));
const durS = cssTime(root, '--dur-s');
const durM = cssTime(root, '--dur-m');
const stagger = cssTime(root, '--stagger');
const spread = cssTime(root, '--roll-spread');
let open = false;
let run = 0;
root.querySelectorAll('[data-roll]').forEach((word) => buildRoll(word, word.textContent.trim()));
root.querySelectorAll('[data-roll]').forEach((word) => {
const host = word.closest('a, button');
host.addEventListener('pointerenter', () => word.classList.add('is-rolled'));
host.addEventListener('pointerleave', () => word.classList.remove('is-rolled'));
host.addEventListener('focus', () => word.classList.add('is-rolled'));
host.addEventListener('blur', () => word.classList.remove('is-rolled'));
});
const hidden = () => (narrow.matches ? [0, 0, 0, 100] : [0, 0, 100, 0]);
const clip = (panel, amount) => {
const edges = hidden().map((value) => value * (1 - amount));
panel.style.clipPath = `inset(${edges.map((value) => `${value}%`).join(' ')})`;
};
function animate(toOpen) {
run += 1;
const ticket = run;
const order = toOpen && !narrow.matches ? [...panels].reverse() : panels;
const from = panels.map((panel) => panel._amount ?? 0);
root.classList.toggle('is-open', toOpen);
root.classList.toggle('is-closing', !toOpen);
const tweens = order.map((panel, position) => {
const start = from[panels.indexOf(panel)];
const target = toOpen ? 1 : 0;
if (still.matches) { panel._amount = target; clip(panel, target); return Promise.resolve(); }
return tween(toOpen ? durM : durS, position * stagger, toOpen ? easeOut : easeIn, (eased) => {
if (ticket !== run) return;
panel._amount = start + (target - start) * eased;
clip(panel, panel._amount);
});
});
Promise.all(tweens).then(() => {
if (ticket === run && !toOpen) root.classList.remove('is-closing');
});
}
function setOpen(next) {
open = next;
button.setAttribute('aria-expanded', String(open));
swapText(label, open ? 'Close' : 'Menu', () => button.matches(':hover'), durS + spread);
panels.forEach((panel) => { panel.inert = !open; });
animate(open);
}
panels.forEach((panel) => { panel.inert = true; clip(panel, 0); });
button.addEventListener('click', () => setOpen(!open));
root.addEventListener('keydown', (event) => {
if (event.key === 'Escape' && open) { setOpen(false); button.focus(); }
});
narrow.addEventListener('change', () => panels.forEach((panel) => clip(panel, panel._amount ?? 0)));
}
document.querySelectorAll('.nav').forEach(setUp);
})();
</script>
Counter loader
The signature opening: a 90px percent counter, a rule growing down column 3 with the role label riding its foot, then the counter melts into goo, corner chrome slides in and the pale split wordmark appears. Replay button.
Code
React For Figma<section class="loader" aria-label="Loading screen">
<svg class="loader__defs" aria-hidden="true" focusable="false"><defs></defs></svg>
<span class="loader__square" aria-hidden="true"></span>
<span class="loader__pill" aria-hidden="true">Menu</span>
<div class="loader__track">
<span class="loader__rule" aria-hidden="true"></span>
<p class="loader__label"><span class="loader__line">Sound Designer</span><span class="loader__line">& Engineer</span></p>
</div>
<p class="loader__count" role="status" aria-live="off"><span class="loader__line"><span class="loader__number">0</span>%</span></p>
<p class="loader__name" aria-label="nachklang">
<span class="loader__half"><span class="loader__line">nach</span></span>
<span class="loader__half"><span class="loader__line">klang</span></span>
</p>
<button class="loader__replay" type="button" disabled>Replay</button>
</section>
<style>
.loader {
position: relative;
display: grid;
grid-template-columns: repeat(8, minmax(0, 1fr));
column-gap: var(--gap);
height: max(560px, 62.5vw);
padding: var(--edge);
overflow: clip;
background: var(--paper);
}
.loader__defs {
position: absolute;
width: 0;
height: 0;
}
.loader__line {
display: block;
}
/* The corner chrome waits off screen and slides in when the count is done. */
.loader__square {
position: absolute;
top: var(--edge);
left: var(--edge);
width: max(12px, 1.1111vw);
height: max(12px, 1.1111vw);
background: var(--tint);
}
.loader__pill {
position: absolute;
top: var(--edge);
right: var(--edge);
padding: 4px max(8px, 0.5556vw);
border-radius: var(--radius-m);
background: var(--ink);
color: var(--on-ink);
}
.is-waiting .loader__square { translate: -5vw -5vw; }
.is-waiting .loader__pill { translate: 5vw -5vw; }
.is-settled .loader__square,
.is-settled .loader__pill {
translate: 0 0;
transition: translate var(--dur-m) var(--ease-out);
}
/* The rule grows down the right edge of column 3, carrying its label at the foot. */
.loader__track {
position: relative;
grid-column: 3;
grid-row: 1;
height: 70%;
}
.loader__rule {
position: absolute;
top: 0;
right: calc(var(--gap) / -2);
width: var(--stroke);
height: calc(var(--grow, 1) * 100%);
background: var(--ink);
}
.loader__label {
position: absolute;
left: 0;
top: calc(var(--grow, 1) * 100%);
margin: 0;
translate: 0 -100%;
white-space: nowrap;
}
.loader__count {
position: absolute;
left: var(--edge);
bottom: var(--edge);
margin: 0;
font-size: var(--text-xl);
line-height: var(--leading-xl);
letter-spacing: var(--tracking-xl);
}
/* The split wordmark rests at the bottom corners in a pale ink. */
.loader__name {
position: absolute;
inset: auto var(--edge) var(--edge);
display: flex;
justify-content: space-between;
margin: 0;
color: var(--ink-ghost);
font-size: var(--text-xl);
line-height: var(--leading-xl);
letter-spacing: var(--tracking-xl);
pointer-events: none;
}
.is-counting .loader__name { visibility: hidden; }
.loader__replay {
position: absolute;
right: var(--edge);
bottom: calc(var(--edge) + var(--text-xl) * var(--leading-xl) + var(--space-s));
min-width: var(--tap);
min-height: var(--tap);
padding: 0;
border: 0;
background: none;
color: var(--ink);
font: inherit;
letter-spacing: inherit;
text-align: right;
text-decoration: underline;
text-decoration-thickness: var(--stroke);
text-underline-offset: 3px;
cursor: pointer;
opacity: 0;
transition: opacity var(--dur-s) var(--ease-out);
}
.loader__replay:not(:disabled) { opacity: 1; }
.loader__replay:hover { text-decoration-color: transparent; }
.loader__replay:focus-visible { outline: var(--stroke) solid var(--ink); outline-offset: 2px; }
@media (max-width: 47.99rem) {
.loader {
grid-template-columns: repeat(4, minmax(0, 1fr));
height: max(560px, 150vw);
}
.loader__track { grid-column: 2; height: 62%; }
.loader__label { left: auto; right: calc(100% + var(--gap)); translate: 100% -100%; }
.is-waiting .loader__square { translate: -25vw -25vw; }
.is-waiting .loader__pill { translate: 25vw -25vw; }
}
</style>
<script>
(() => {
const still = matchMedia('(prefers-reduced-motion: reduce)');
const COUNT_MS = 2000;
const RULE_MS = 4000;
let filters = 0;
function token(root, name) {
return getComputedStyle(root).getPropertyValue(name).trim();
}
function ms(root, name) {
return parseFloat(token(root, name)) * 1000;
}
function bezier(spec) {
const [x1, y1, x2, y2] = spec.match(/-?[\d.]+/g).map(Number);
const curve = (a, b, t) => 3 * a * t * (1 - t) ** 2 + 3 * b * t * t * (1 - t) + t ** 3;
return (x) => {
let low = 0, high = 1, t = x;
for (let step = 0; step < 24; step += 1) {
t = (low + high) / 2;
if (curve(x1, x2, t) < x) low = t; else high = t;
}
return curve(y1, y2, t);
};
}
const linear = (x) => x;
function tween(duration, delay, ease, update) {
return new Promise((done) => {
const start = performance.now() + delay;
const frame = (now) => {
const progress = Math.min(1, Math.max(0, (now - start) / duration));
if (now >= start) update(ease(progress));
if (progress < 1) requestAnimationFrame(frame); else done();
};
requestAnimationFrame(frame);
});
}
/* Goo: a heavy blur pushed through a hard alpha threshold, so letters grow out of ink blobs. */
function gooFilter(root, line) {
if (line._goo) return line._goo;
const svg = 'http://www.w3.org/2000/svg';
const filter = document.createElementNS(svg, 'filter');
const blur = document.createElementNS(svg, 'feGaussianBlur');
const matrix = document.createElementNS(svg, 'feColorMatrix');
filters += 1;
filter.id = `loader-goo-${filters}-${Math.random().toString(36).slice(2, 7)}`;
Object.entries({ x: '-25%', y: '-25%', width: '150%', height: '150%', 'color-interpolation-filters': 'sRGB' }).forEach(([key, value]) => filter.setAttribute(key, value));
blur.setAttribute('in', 'SourceGraphic');
matrix.setAttribute('type', 'matrix');
filter.append(blur, matrix);
root.querySelector('.loader__defs defs').append(filter);
const scale = parseFloat(getComputedStyle(line).fontSize) / 90;
line._goo = {
set(deviation, amp, offset) {
blur.setAttribute('stdDeviation', (deviation * scale).toFixed(2));
matrix.setAttribute('values', `1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 ${amp} ${offset}`);
line.style.filter = `url(#${filter.id})`;
},
};
return line._goo;
}
function reveal(root, lines, delay = 0) {
const easeOut = bezier(token(root, '--ease-out'));
const durL = ms(root, '--dur-l');
const stagger = ms(root, '--stagger');
const most = parseFloat(token(root, '--goo-blur'));
return Promise.all(lines.map((line, index) => {
line.style.visibility = 'visible';
if (still.matches) return Promise.resolve();
const goo = gooFilter(root, line);
const state = { deviation: most, amp: 20, offset: -8 };
const paint = () => goo.set(state.deviation, state.amp, state.offset);
paint();
const start = delay + index * stagger;
return Promise.all([
tween(durL, start, easeOut, (eased) => { state.deviation = most * (1 - eased); paint(); }),
tween(durL * 0.35, start + durL * 0.65, linear, (eased) => { state.amp = 20 - 19 * eased; state.offset = -8 + 8 * eased; paint(); }),
]).then(() => { line.style.filter = ''; });
}));
}
function hide(root, lines, delay = 0) {
const easeIn = bezier(token(root, '--ease-in'));
const durS = ms(root, '--dur-s');
const stagger = ms(root, '--stagger') / 2;
const most = parseFloat(token(root, '--goo-blur'));
return Promise.all(lines.map((line, index) => {
if (still.matches) { line.style.visibility = 'hidden'; return Promise.resolve(); }
const goo = gooFilter(root, line);
const state = { deviation: 0, amp: 1, offset: 0 };
const paint = () => goo.set(state.deviation, state.amp, state.offset);
const start = delay + index * stagger;
return Promise.all([
tween(durS * 0.3, start, linear, (eased) => { state.amp = 1 + 19 * eased; state.offset = -8 * eased; paint(); }),
tween(durS, start, easeIn, (eased) => { state.deviation = most * eased; paint(); }),
]).then(() => { line.style.visibility = 'hidden'; line.style.filter = ''; });
}));
}
function play(root) {
const number = root.querySelector('.loader__number');
const replay = root.querySelector('.loader__replay');
const countLines = [...root.querySelectorAll('.loader__count .loader__line')];
const labelLines = [...root.querySelectorAll('.loader__label .loader__line')];
const nameLines = [...root.querySelectorAll('.loader__name .loader__line')];
const easeInOut = bezier(token(root, '--ease-in-out'));
replay.disabled = true;
root.classList.remove('is-settled');
root.classList.add('is-waiting', 'is-counting');
nameLines.forEach((line) => { line.style.visibility = 'hidden'; });
countLines.forEach((line) => { line.style.visibility = 'visible'; });
number.textContent = '0';
root.style.setProperty('--grow', 0);
if (still.matches) {
number.textContent = '100';
root.style.setProperty('--grow', 1);
root.classList.remove('is-waiting', 'is-counting');
root.classList.add('is-settled');
nameLines.forEach((line) => { line.style.visibility = 'visible'; });
countLines.forEach((line) => { line.style.visibility = 'hidden'; });
replay.disabled = false;
return;
}
reveal(root, [...countLines, ...labelLines]);
const rule = tween(RULE_MS, 0, easeInOut, (eased) => root.style.setProperty('--grow', eased));
tween(COUNT_MS, 0, easeInOut, (eased) => { number.textContent = Math.round(eased * 100); }).then(() => {
hide(root, countLines);
root.classList.remove('is-counting');
root.classList.add('is-settled');
requestAnimationFrame(() => root.classList.remove('is-waiting'));
return Promise.all([reveal(root, nameLines), rule]);
}).then(() => { replay.disabled = false; });
}
function setUp(root) {
let started = false;
root.querySelector('.loader__replay').addEventListener('click', () => play(root));
new IntersectionObserver(([entry], observer) => {
if (!entry.isIntersecting || started) return;
started = true;
observer.disconnect();
play(root);
}, { threshold: 0.2 }).observe(root);
}
document.querySelectorAll('.loader').forEach(setUp);
})();
</script>
Ruled hero
The black pebble mark melting out of a box, name and role stacked in 90px lines either side of the column rule, meta lines with a rolling link, every line growing out of goo as it comes into view.
Code
React For Figma<section class="intro" aria-label="Introduction">
<svg class="intro__defs" aria-hidden="true" focusable="false"><defs></defs></svg>
<div class="intro__top">
<svg class="intro__mark" viewBox="0 0 100 164" role="img" aria-label="nachklang mark: a black pebble sending out sound">
<path class="intro__pebble" d="M6 82a44 76 0 1 0 88 0a44 76 0 1 0-88 0Z" />
<g class="intro__face">
<circle cx="40" cy="66" r="6" />
<path d="M54 56a14 14 0 0 1 0 20" />
<path d="M63 49a24 24 0 0 1 0 34" />
</g>
</svg>
<p class="intro__label intro__block"><span class="intro__line">Sound Designer</span><span class="intro__line">& Engineer</span></p>
<span class="intro__rule" aria-hidden="true"></span>
<p class="intro__meta intro__block">
<span class="intro__line">Based in Leipzig</span>
<span class="intro__line">Working w/ <a class="intro__link" href="#" data-roll>HALL9</a></span>
</p>
<h1 class="intro__name intro__block"><span class="intro__line">Runa</span><span class="intro__line">Vosskamp</span></h1>
</div>
<h2 class="intro__heading intro__block"><span class="intro__line">Sound for</span><span class="intro__line">Rooms, Films</span><span class="intro__line">& Screens,</span></h2>
<div class="intro__lower">
<span class="intro__rule intro__rule--lower" aria-hidden="true"></span>
<h2 class="intro__heading intro__heading--right intro__block"><span class="intro__line">Foley</span><span class="intro__line">& Spat-</span><span class="intro__line">ial</span><span class="intro__line intro__line--offset">mix.</span></h2>
<p class="intro__note intro__block"><span class="intro__line">Records, designs and mixes sound for films, rooms</span><span class="intro__line">and interfaces, with a focus on space, silence</span><span class="intro__line">and timing.</span></p>
</div>
</section>
<style>
.intro {
--rows: max(360px, 40.7639vw);
position: relative;
display: grid;
grid-template-columns: repeat(8, minmax(0, 1fr));
column-gap: var(--gap);
padding: var(--edge) var(--edge) var(--space-l);
background: var(--paper);
}
.intro__defs { position: absolute; width: 0; height: 0; }
.intro__line { display: block; }
:where(.intro) :is(p, h1, h2) { margin: 0; font-weight: inherit; }
.intro__top {
position: relative;
grid-column: 3 / -1;
display: grid;
grid-template-columns: subgrid;
grid-template-rows: auto 1fr auto;
height: var(--rows);
}
.intro__mark {
grid-column: 1;
grid-row: 1;
width: 58.6%;
height: auto;
overflow: visible;
}
.intro__pebble { fill: var(--ink); }
.intro__face {
fill: var(--paper);
stroke: var(--paper);
stroke-width: 4;
stroke-linecap: round;
transition: opacity var(--dur-s) var(--ease-out);
}
.intro__face path { fill: none; }
.is-boxed .intro__face { opacity: 0; }
.intro__label {
grid-column: 1;
grid-row: 3;
align-self: end;
}
.intro__rule {
position: absolute;
top: 0;
bottom: 0;
left: calc((100% - 5 * var(--gap)) / 6 + var(--gap) / 2);
width: var(--stroke);
background: var(--ink);
}
.intro__meta {
grid-column: 2 / span 3;
grid-row: 1;
}
.intro__name,
.intro__heading {
font-size: var(--text-xl);
line-height: var(--leading-xl);
letter-spacing: var(--tracking-xl);
}
.intro__name {
grid-column: 2 / -1;
grid-row: 3;
align-self: end;
}
.intro__heading {
grid-column: 3 / -1;
margin-top: 0.28em;
}
.intro__lower {
position: relative;
grid-column: 3 / -1;
display: grid;
grid-template-columns: subgrid;
padding-top: var(--space-m);
}
.intro__rule--lower { left: calc((100% - 5 * var(--gap)) / 6 + var(--gap) / 2); }
.intro__heading--right {
grid-column: 2 / -1;
margin: 0 0 var(--space-l);
}
.intro__line--offset { padding-left: calc((100% - 4 * var(--gap)) / 5 * 0.74); }
.intro__note {
grid-column: 2 / span 2;
max-width: 34ch;
}
.intro__note .intro__line { display: inline; }
.intro__note .intro__line::after { content: " "; }
/* Link roll, same as the menu: letters leave upward while a copy rises in. */
.intro__link {
display: inline-block;
position: relative;
color: inherit;
text-decoration: none;
vertical-align: top;
padding: 15px 2px;
margin: -15px -2px;
}
.intro__link:focus-visible { outline: var(--stroke) solid var(--ink); outline-offset: -13px; }
.intro__roll { display: inline-grid; overflow: clip; vertical-align: top; white-space: pre; }
.intro__copy { grid-area: 1 / 1; justify-self: start; }
.intro__char {
display: inline-block;
transition: translate var(--dur-s) var(--ease-in-out);
transition-delay: calc(var(--back) * var(--roll-spread));
}
.intro__copy + .intro__copy .intro__char { translate: 0 100%; }
.intro__link:is(:hover, :focus-visible) .intro__char { translate: 0 -100%; transition-delay: calc(var(--fore) * var(--roll-spread)); }
.intro__link:is(:hover, :focus-visible) .intro__copy + .intro__copy .intro__char { translate: 0 0; }
.intro__spoken { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 47.99rem) {
.intro {
--rows: max(420px, 118vw);
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.intro__top,
.intro__lower { grid-column: 1 / -1; }
.intro__mark { width: 100%; }
.intro__rule,
.intro__rule--lower { left: calc((100% - 3 * var(--gap)) / 4 + var(--gap) / 2); }
.intro__meta { grid-column: 2 / -1; }
.intro__heading { grid-column: 1 / -1; }
.intro__heading--right { grid-column: 2 / -1; }
.intro__note { grid-column: 2 / -1; }
.intro__line--offset { padding-left: 24%; }
}
@media (prefers-reduced-motion: reduce) {
.intro__char, .intro__face { transition: none; }
}
</style>
<script>
(() => {
const still = matchMedia('(prefers-reduced-motion: reduce)');
const POINTS = 48;
let filters = 0;
function token(root, name) { return getComputedStyle(root).getPropertyValue(name).trim(); }
function ms(root, name) { return parseFloat(token(root, name)) * 1000; }
function bezier(spec) {
const [x1, y1, x2, y2] = spec.match(/-?[\d.]+/g).map(Number);
const curve = (a, b, t) => 3 * a * t * (1 - t) ** 2 + 3 * b * t * t * (1 - t) + t ** 3;
return (x) => {
let low = 0, high = 1, t = x;
for (let step = 0; step < 24; step += 1) {
t = (low + high) / 2;
if (curve(x1, x2, t) < x) low = t; else high = t;
}
return curve(y1, y2, t);
};
}
const linear = (x) => x;
function tween(duration, delay, ease, update) {
return new Promise((done) => {
const start = performance.now() + delay;
const frame = (now) => {
const progress = Math.min(1, Math.max(0, (now - start) / duration));
if (now >= start) update(ease(progress));
if (progress < 1) requestAnimationFrame(frame); else done();
};
requestAnimationFrame(frame);
});
}
/* Goo: heavy blur through a hard alpha threshold, so each line grows out of ink blobs. */
function gooFilter(root, line) {
if (line._goo) return line._goo;
const svg = 'http://www.w3.org/2000/svg';
const filter = document.createElementNS(svg, 'filter');
const blur = document.createElementNS(svg, 'feGaussianBlur');
const matrix = document.createElementNS(svg, 'feColorMatrix');
filters += 1;
filter.id = `intro-goo-${filters}-${Math.random().toString(36).slice(2, 7)}`;
Object.entries({ x: '-25%', y: '-25%', width: '150%', height: '150%', 'color-interpolation-filters': 'sRGB' }).forEach(([key, value]) => filter.setAttribute(key, value));
blur.setAttribute('in', 'SourceGraphic');
matrix.setAttribute('type', 'matrix');
filter.append(blur, matrix);
root.querySelector('.intro__defs defs').append(filter);
const scale = Math.max(0.3, parseFloat(getComputedStyle(line).fontSize) / 90);
line._goo = (deviation, amp, offset) => {
blur.setAttribute('stdDeviation', (deviation * scale).toFixed(2));
matrix.setAttribute('values', `1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 ${amp} ${offset}`);
line.style.filter = `url(#${filter.id})`;
};
return line._goo;
}
function reveal(root, lines, delay) {
const easeOut = bezier(token(root, '--ease-out'));
const durL = ms(root, '--dur-l');
const stagger = ms(root, '--stagger');
const most = parseFloat(token(root, '--goo-blur'));
lines.forEach((line, index) => {
const goo = gooFilter(root, line);
const state = { deviation: most, amp: 20, offset: -8 };
const paint = () => goo(state.deviation, state.amp, state.offset);
const start = delay + index * stagger;
paint();
Promise.all([
tween(durL, start, easeOut, (eased) => { state.deviation = most * (1 - eased); paint(); }),
tween(durL * 0.35, start + durL * 0.65, linear, (eased) => { state.amp = 20 - 19 * eased; state.offset = -8 + 8 * eased; paint(); }),
]).then(() => { line.style.filter = ''; });
});
}
/* The mark is drawn as 48 points around its centre, so a box can melt into the pebble. */
function outline(shape) {
return Array.from({ length: POINTS }, (_, index) => {
const angle = (index / POINTS) * Math.PI * 2;
const cos = Math.cos(angle), sin = Math.sin(angle);
if (shape === 'box') {
const reach = Math.min(42 / Math.abs(cos || 1e-6), 74 / Math.abs(sin || 1e-6));
return [50 + reach * cos, 82 + reach * sin];
}
const wobble = 1 + 0.07 * Math.sin(2 * angle + 0.6) + 0.045 * Math.sin(3 * angle + 1.9) + 0.025 * Math.sin(5 * angle + 0.4);
return [50 + 44 * wobble * cos + 3 * sin, 82 + 76 * wobble * sin];
});
}
function smoothPath(points, tension) {
const n = points.length;
const at = (index) => points[(index + n) % n];
let d = `M${at(0)[0].toFixed(2)} ${at(0)[1].toFixed(2)}`;
for (let index = 0; index < n; index += 1) {
const [p0, p1, p2, p3] = [at(index - 1), at(index), at(index + 1), at(index + 2)];
const c1 = [p1[0] + ((p2[0] - p0[0]) / 6) * tension, p1[1] + ((p2[1] - p0[1]) / 6) * tension];
const c2 = [p2[0] - ((p3[0] - p1[0]) / 6) * tension, p2[1] - ((p3[1] - p1[1]) / 6) * tension];
d += `C${c1[0].toFixed(2)} ${c1[1].toFixed(2)} ${c2[0].toFixed(2)} ${c2[1].toFixed(2)} ${p2[0].toFixed(2)} ${p2[1].toFixed(2)}`;
}
return `${d}Z`;
}
function morphMark(root, delay) {
const pebble = root.querySelector('.intro__pebble');
const box = outline('box');
const stone = outline('pebble');
const blend = (amount) => box.map((point, index) => [
point[0] + (stone[index][0] - point[0]) * amount,
point[1] + (stone[index][1] - point[1]) * amount,
]);
if (still.matches) { pebble.setAttribute('d', smoothPath(stone, 1)); return; }
root.classList.add('is-boxed');
pebble.setAttribute('d', smoothPath(box, 0));
tween(ms(root, '--dur-m'), delay, bezier(token(root, '--ease-in-out')), (eased) => {
pebble.setAttribute('d', smoothPath(blend(eased), eased));
}).then(() => root.classList.remove('is-boxed'));
}
function buildRoll(link) {
const text = link.textContent.trim();
const roll = document.createElement('span');
roll.className = 'intro__roll';
roll.setAttribute('aria-hidden', 'true');
const last = Math.max(1, text.length - 1);
for (let copy = 0; copy < 2; copy += 1) {
const line = document.createElement('span');
line.className = 'intro__copy';
[...text].forEach((letter, index) => {
const char = document.createElement('span');
char.className = 'intro__char';
char.textContent = letter;
char.style.setProperty('--fore', index / last);
char.style.setProperty('--back', (last - index) / last);
line.append(char);
});
roll.append(line);
}
const spoken = document.createElement('span');
spoken.className = 'intro__spoken';
spoken.textContent = text;
link.replaceChildren(roll, spoken);
}
function setUp(root) {
root.querySelectorAll('[data-roll]').forEach(buildRoll);
morphMark(root, 0);
if (still.matches) return;
const blocks = [...root.querySelectorAll('.intro__block')];
blocks.forEach((block) => block.querySelectorAll('.intro__line').forEach((line) => gooFilter(root, line)(parseFloat(token(root, '--goo-blur')), 20, -8)));
const stagger = ms(root, '--stagger');
const seen = new IntersectionObserver((entries) => {
const arriving = entries.filter((entry) => entry.isIntersecting).map((entry) => entry.target);
arriving.forEach((block, order) => {
seen.unobserve(block);
reveal(root, [...block.querySelectorAll('.intro__line')], order * stagger);
});
}, { threshold: 0.1 });
blocks.forEach((block) => seen.observe(block));
}
document.querySelectorAll('.intro').forEach(setUp);
})();
</script>
Theme flood
Grey swatch squares with rings that thicken on hover; clicking one floods the section in its colour with a goo blob from the click point while the mark pops up in the middle. A stepped statement and a note sit between them.
Code
React For Figma<section class="themes" aria-label="Choose a room colour">
<svg class="themes__flood" aria-hidden="true" focusable="false">
<defs>
<filter class="themes__goo" x="-20%" y="-20%" width="140%" height="140%" color-interpolation-filters="sRGB">
<feGaussianBlur in="SourceGraphic" stdDeviation="22" />
<feColorMatrix type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 20 -8" />
</filter>
</defs>
<g class="themes__blobs"></g>
</svg>
<span class="themes__rule" aria-hidden="true"></span>
<div class="themes__swatches" role="group" aria-label="Room colour">
<button class="themes__swatch is-current" type="button" aria-pressed="true" aria-label="Paper white" style="--swatch: var(--paper)"><span class="themes__ring"></span></button>
<button class="themes__swatch" type="button" aria-pressed="false" aria-label="Slate grey" style="--swatch: var(--theme-slate)"><span class="themes__ring"></span></button>
<button class="themes__swatch" type="button" aria-pressed="false" aria-label="Ember orange" style="--swatch: var(--theme-ember)"><span class="themes__ring"></span></button>
<button class="themes__swatch" type="button" aria-pressed="false" aria-label="Lichen green" style="--swatch: var(--theme-lichen)"><span class="themes__ring"></span></button>
<button class="themes__swatch" type="button" aria-pressed="false" aria-label="Oxblood red" style="--swatch: var(--theme-oxblood)"><span class="themes__ring"></span></button>
</div>
<p class="themes__note" data-goo>Every room rings differently. Pick a wall colour and the page takes it on, the way a hall takes on a voice.</p>
<h2 class="themes__statement">
<span class="themes__first" data-goo><span class="themes__word">the</span><span class="themes__word">quiet</span></span>
<span class="themes__line" data-goo>parts deserve</span>
<span class="themes__line" data-goo>attention.</span>
</h2>
<p class="themes__foot" data-goo>© ’26</p>
<svg class="themes__totem" viewBox="0 0 100 164" aria-hidden="true" focusable="false">
<path class="themes__pebble" d="M98.0 82.0C99.1 94.8 95.8 111.5 91.8 122.2C87.8 132.9 80.5 140.1 74.0 146.0C67.5 152.0 60.0 158.1 53.0 157.9C46.0 157.6 38.2 150.9 31.7 144.4C25.3 137.9 18.5 129.5 14.3 119.1C10.1 108.7 7.7 95.0 6.6 82.0C5.4 69.0 4.5 52.8 7.3 40.9C10.1 29.0 16.9 15.2 23.5 10.4C30.1 5.6 39.7 9.9 47.0 11.9C54.3 13.8 61.1 16.4 67.5 21.9C73.8 27.5 80.2 35.3 85.2 45.4C90.3 55.4 96.9 69.2 98.0 82.0Z" />
<g class="themes__face"><circle cx="40" cy="66" r="6" /><path d="M54 56a14 14 0 0 1 0 20" /><path d="M63 49a24 24 0 0 1 0 34" /></g>
</svg>
</section>
<style>
.themes {
position: relative;
display: grid;
grid-template-columns: repeat(8, minmax(0, 1fr));
column-gap: var(--gap);
padding: var(--edge) var(--edge) var(--space-l);
overflow: clip;
background: var(--room, var(--paper));
isolation: isolate;
}
.themes > :not(.themes__flood, .themes__totem) { position: relative; z-index: 1; }
.themes p, .themes h2 { margin: 0; font-weight: inherit; }
.themes__flood {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
z-index: 0;
pointer-events: none;
}
.themes__rule {
position: absolute !important;
top: 0;
bottom: 0;
left: calc(var(--edge) + 3 * (100% - 2 * var(--edge) - 7 * var(--gap)) / 8 + 2.5 * var(--gap));
width: var(--stroke);
background: var(--ink);
}
/* Squares sit on columns 1, 4, 5, 7 and 8, as loose as the grid allows. */
.themes__swatches {
grid-column: 1 / -1;
display: grid;
grid-template-columns: subgrid;
margin-top: var(--space-l);
}
.themes__swatch:nth-child(1) { grid-column: 1; }
.themes__swatch:nth-child(2) { grid-column: 4; }
.themes__swatch:nth-child(3) { grid-column: 5; }
.themes__swatch:nth-child(4) { grid-column: 7; }
.themes__swatch:nth-child(5) { grid-column: 8; }
.themes__swatch {
display: grid;
place-items: center;
aspect-ratio: 1;
min-width: var(--tap);
padding: 0;
border: 0;
background: var(--tint);
cursor: pointer;
}
.themes__swatch:focus-visible { outline: var(--stroke) solid var(--ink); outline-offset: 3px; }
.themes__ring {
width: max(24px, 2.2222vw);
height: max(24px, 2.2222vw);
border: var(--ring-thin) solid var(--swatch);
border-radius: var(--radius-round);
transition: border-width var(--dur-s) var(--ease-out);
}
.themes__swatch:hover .themes__ring,
.themes__swatch:focus-visible .themes__ring,
.themes__swatch.is-current .themes__ring {
border-width: var(--ring-thick);
}
.themes__note {
grid-column: 4 / span 2;
max-width: 34ch;
margin-top: var(--space-m) !important;
}
.themes__statement {
grid-column: 1 / -1;
display: grid;
grid-template-columns: subgrid;
margin-top: var(--space-l) !important;
font-size: var(--text-xl);
line-height: var(--leading-xl);
letter-spacing: var(--tracking-xl);
}
.themes__first {
grid-column: 1 / -1;
display: grid;
grid-template-columns: subgrid;
}
.themes__word:first-child { grid-column: 2 / span 2; justify-self: end; }
.themes__word:last-child { grid-column: 4 / -1; }
.themes__line { grid-column: 3 / -1; display: block; }
.themes__foot {
grid-column: 4 / span 2;
margin-top: var(--space-l) !important;
}
/* The mark that pops up in the middle while a new colour floods in. */
.themes__totem {
position: absolute;
left: 50%;
top: 50%;
z-index: 2;
width: max(140px, 16vw);
height: auto;
translate: -50% -50%;
scale: 0;
pointer-events: none;
}
.themes__pebble { fill: var(--ink); }
.themes__face { fill: var(--room, var(--paper)); stroke: var(--room, var(--paper)); stroke-width: 4; stroke-linecap: round; }
.themes__face path { fill: none; }
.themes.is-showing .themes__totem { scale: 1; transition: scale var(--dur-m) var(--ease-out); }
.themes.is-leaving .themes__totem { scale: 0; transition: scale var(--dur-s) var(--ease-in); }
@media (max-width: 47.99rem) {
.themes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.themes__rule { left: calc(var(--edge) + (100% - 2 * var(--edge) - 3 * var(--gap)) / 4 + 0.5 * var(--gap)); }
.themes__swatches { display: flex; gap: var(--space-s); }
.themes__swatch { flex: 1 1 0; }
.themes__note { grid-column: 2 / -1; }
.themes__word:first-child { grid-column: 1; }
.themes__word:last-child { grid-column: 2 / -1; }
.themes__line { grid-column: 1 / -1; }
.themes__foot { grid-column: 2 / -1; }
}
</style>
<script>
(() => {
/* Goo reveal: each line starts as a heavy blur through a hard alpha threshold and grows out of ink blobs.
Blocks marked data-goo reveal when they come into view; their data-line children follow each other. */
function revealOnView(root) {
if (matchMedia('(prefers-reduced-motion: reduce)').matches) return;
const styles = getComputedStyle(root);
const time = (name) => parseFloat(styles.getPropertyValue(name)) * 1000;
const durL = time('--dur-l'), stagger = time('--stagger');
const most = parseFloat(styles.getPropertyValue('--goo-blur'));
const [x1, y1, x2, y2] = styles.getPropertyValue('--ease-out').match(/-?[\d.]+/g).map(Number);
const curve = (a, b, t) => 3 * a * t * (1 - t) ** 2 + 3 * b * t * t * (1 - t) + t ** 3;
const easeOut = (x) => {
let low = 0, high = 1, t = x;
for (let step = 0; step < 24; step += 1) { t = (low + high) / 2; if (curve(x1, x2, t) < x) low = t; else high = t; }
return curve(y1, y2, t);
};
const defs = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
defs.setAttribute('aria-hidden', 'true');
defs.style.cssText = 'position:absolute;width:0;height:0;overflow:hidden';
root.prepend(defs);
const prepare = (line) => {
const ns = 'http://www.w3.org/2000/svg';
const filter = document.createElementNS(ns, 'filter');
const blur = document.createElementNS(ns, 'feGaussianBlur');
const matrix = document.createElementNS(ns, 'feColorMatrix');
filter.id = `themes-goo-${Math.random().toString(36).slice(2, 9)}`;
Object.entries({ x: '-25%', y: '-25%', width: '150%', height: '150%', 'color-interpolation-filters': 'sRGB' }).forEach(([key, value]) => filter.setAttribute(key, value));
blur.setAttribute('in', 'SourceGraphic');
matrix.setAttribute('type', 'matrix');
filter.append(blur, matrix);
defs.append(filter);
const scale = Math.max(0.3, parseFloat(getComputedStyle(line).fontSize) / 90);
line._goo = (deviation, amp, offset) => {
blur.setAttribute('stdDeviation', (deviation * scale).toFixed(2));
matrix.setAttribute('values', `1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 ${amp} ${offset}`);
};
line._goo(most, 20, -8);
line.style.filter = `url(#${filter.id})`;
};
const play = (line, delay) => {
const begin = performance.now() + delay;
const frame = (now) => {
const elapsed = now - begin;
if (elapsed < 0) { requestAnimationFrame(frame); return; }
const blurDone = Math.min(1, elapsed / durL);
const threshold = Math.min(1, Math.max(0, (elapsed - durL * 0.65) / (durL * 0.35)));
line._goo(most * (1 - easeOut(blurDone)), 20 - 19 * threshold, -8 + 8 * threshold);
if (blurDone < 1) requestAnimationFrame(frame); else line.style.filter = '';
};
requestAnimationFrame(frame);
};
const linesOf = (block) => {
const lines = [...block.querySelectorAll('[data-line]')];
return lines.length ? lines : [block];
};
const blocks = [...root.querySelectorAll('[data-goo]')];
blocks.forEach((block) => linesOf(block).forEach(prepare));
const seen = new IntersectionObserver((entries) => {
entries.filter((entry) => entry.isIntersecting).forEach((entry, order) => {
seen.unobserve(entry.target);
linesOf(entry.target).forEach((line, index) => play(line, (order + index) * stagger));
});
}, { threshold: 0.1 });
blocks.forEach((block) => seen.observe(block));
}
const still = matchMedia('(prefers-reduced-motion: reduce)');
const SATELLITES = 11;
const TOTEM_HOLD_MS = 1600;
let rooms = 0;
function token(root, name) { return getComputedStyle(root).getPropertyValue(name).trim(); }
function ms(root, name) { return parseFloat(token(root, name)) * 1000; }
function bezier(spec) {
const [x1, y1, x2, y2] = spec.match(/-?[\d.]+/g).map(Number);
const curve = (a, b, t) => 3 * a * t * (1 - t) ** 2 + 3 * b * t * t * (1 - t) + t ** 3;
return (x) => {
let low = 0, high = 1, t = x;
for (let step = 0; step < 24; step += 1) {
t = (low + high) / 2;
if (curve(x1, x2, t) < x) low = t; else high = t;
}
return curve(y1, y2, t);
};
}
function tween(duration, ease, update) {
return new Promise((done) => {
const start = performance.now();
const frame = (now) => {
const progress = Math.min(1, (now - start) / duration);
update(ease(progress));
if (progress < 1) requestAnimationFrame(frame); else done();
};
requestAnimationFrame(frame);
});
}
/* A flood is one big circle from the click point plus satellites that run ahead or lag, merged by the goo filter. */
function flood(root, x, y, color) {
const svg = 'http://www.w3.org/2000/svg';
const group = root.querySelector('.themes__blobs');
const box = root.getBoundingClientRect();
const reach = Math.hypot(Math.max(x, box.width - x), Math.max(y, box.height - y)) * 1.15;
const blobs = [{ dx: 0, dy: 0, size: 1, lead: 0 }];
for (let index = 0; index < SATELLITES; index += 1) {
const angle = (index / SATELLITES) * Math.PI * 2 + Math.random() * 0.5;
const distance = 0.25 + Math.random() * 0.35;
blobs.push({ dx: Math.cos(angle) * distance, dy: Math.sin(angle) * distance, size: 0.35 + Math.random() * 0.3, lead: Math.random() * 0.25 });
}
const circles = blobs.map(() => {
const circle = document.createElementNS(svg, 'circle');
circle.setAttribute('fill', color);
group.append(circle);
return circle;
});
const ease = bezier(token(root, '--ease-out'));
return tween(ms(root, '--dur-m'), (x01) => x01, (time) => {
blobs.forEach((blob, index) => {
const local = ease(Math.min(1, time * (1 + blob.lead)));
const radius = reach * blob.size * local;
circles[index].setAttribute('cx', x + blob.dx * reach * local);
circles[index].setAttribute('cy', y + blob.dy * reach * local);
circles[index].setAttribute('r', Math.max(0, radius));
});
}).then(() => {
root.style.setProperty('--room', color);
circles.forEach((circle) => circle.remove());
});
}
function showTotem(root) {
clearTimeout(root._totem);
root.classList.remove('is-leaving');
root.classList.add('is-showing');
root._totem = setTimeout(() => {
root.classList.replace('is-showing', 'is-leaving');
}, TOTEM_HOLD_MS);
}
function setUp(root) {
rooms += 1;
const filter = root.querySelector('.themes__goo');
filter.id = `themes-goo-${rooms}`;
root.querySelector('.themes__blobs').setAttribute('filter', `url(#${filter.id})`);
const swatches = [...root.querySelectorAll('.themes__swatch')];
let busy = Promise.resolve();
swatches.forEach((swatch) => swatch.addEventListener('click', (event) => {
if (swatch.classList.contains('is-current')) return;
swatches.forEach((other) => {
other.classList.toggle('is-current', other === swatch);
other.setAttribute('aria-pressed', String(other === swatch));
});
const color = getComputedStyle(swatch).getPropertyValue('--swatch').trim();
if (still.matches) { root.style.setProperty('--room', color); return; }
const box = root.getBoundingClientRect();
const fromPointer = event.clientX || event.clientY;
const target = swatch.getBoundingClientRect();
const x = (fromPointer ? event.clientX : target.left + target.width / 2) - box.left;
const y = (fromPointer ? event.clientY : target.top + target.height / 2) - box.top;
showTotem(root);
busy = busy.then(() => flood(root, x, y, color));
}));
}
document.querySelectorAll('.themes').forEach((root) => { setUp(root); revealOnView(root); });
})();
</script>
Work globe
Work and the year range at the two edges and a turning sphere of drawn project tiles between them; tiles at the back shrink, blur and dim, the sphere can be dragged, and the front tile names itself.
Code
React For Figma<section class="globe" aria-label="Selected work">
<h2 class="globe__word" data-goo>Work</h2>
<p class="globe__years" data-goo>24–26</p>
<canvas class="globe__canvas" role="img" aria-label="A turning sphere of project tiles. Drag to spin it."></canvas>
<p class="globe__caption" aria-live="polite"><span class="globe__index">(01)</span> <span class="globe__title">Ferry Hall, waiting room tone</span></p>
</section>
<style>
.globe {
position: relative;
display: grid;
grid-template-columns: repeat(8, minmax(0, 1fr));
column-gap: var(--gap);
align-items: center;
height: max(520px, 62.5vw);
padding: var(--edge);
overflow: clip;
background: var(--paper);
}
.globe__word,
.globe__years {
position: relative;
z-index: 1;
margin: 0;
grid-row: 1;
font-size: var(--text-xl);
font-weight: inherit;
line-height: var(--leading-xl);
letter-spacing: var(--tracking-xl);
pointer-events: none;
}
.globe__word { grid-column: 1 / span 2; }
.globe__years { grid-column: 7 / -1; justify-self: end; }
.globe__canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
cursor: grab;
touch-action: pan-y;
}
.globe.is-dragging .globe__canvas { cursor: grabbing; }
.globe__canvas:focus-visible { outline: var(--stroke) solid var(--ink); outline-offset: -6px; }
.globe__caption {
position: absolute;
left: 50%;
bottom: var(--edge);
margin: 0;
translate: -50% 0;
white-space: nowrap;
pointer-events: none;
}
.globe__index { color: var(--ink-soft); }
@media (max-width: 47.99rem) {
.globe {
grid-template-columns: repeat(4, minmax(0, 1fr));
align-items: start;
height: max(560px, 160vw);
}
.globe__word { grid-column: 1 / -1; grid-row: 1; padding-top: var(--space-l); }
.globe__years { grid-column: 1 / -1; grid-row: 1; align-self: end; justify-self: end; margin-bottom: var(--space-l); }
.globe { grid-template-rows: 1fr; }
.globe__caption { white-space: normal; text-align: center; width: calc(100% - 2 * var(--edge)); }
}
</style>
<script>
(() => {
/* Goo reveal: each line starts as a heavy blur through a hard alpha threshold and grows out of ink blobs.
Blocks marked data-goo reveal when they come into view; their data-line children follow each other. */
function revealOnView(root) {
if (matchMedia('(prefers-reduced-motion: reduce)').matches) return;
const styles = getComputedStyle(root);
const time = (name) => parseFloat(styles.getPropertyValue(name)) * 1000;
const durL = time('--dur-l'), stagger = time('--stagger');
const most = parseFloat(styles.getPropertyValue('--goo-blur'));
const [x1, y1, x2, y2] = styles.getPropertyValue('--ease-out').match(/-?[\d.]+/g).map(Number);
const curve = (a, b, t) => 3 * a * t * (1 - t) ** 2 + 3 * b * t * t * (1 - t) + t ** 3;
const easeOut = (x) => {
let low = 0, high = 1, t = x;
for (let step = 0; step < 24; step += 1) { t = (low + high) / 2; if (curve(x1, x2, t) < x) low = t; else high = t; }
return curve(y1, y2, t);
};
const defs = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
defs.setAttribute('aria-hidden', 'true');
defs.style.cssText = 'position:absolute;width:0;height:0;overflow:hidden';
root.prepend(defs);
const prepare = (line) => {
const ns = 'http://www.w3.org/2000/svg';
const filter = document.createElementNS(ns, 'filter');
const blur = document.createElementNS(ns, 'feGaussianBlur');
const matrix = document.createElementNS(ns, 'feColorMatrix');
filter.id = `globe-goo-${Math.random().toString(36).slice(2, 9)}`;
Object.entries({ x: '-25%', y: '-25%', width: '150%', height: '150%', 'color-interpolation-filters': 'sRGB' }).forEach(([key, value]) => filter.setAttribute(key, value));
blur.setAttribute('in', 'SourceGraphic');
matrix.setAttribute('type', 'matrix');
filter.append(blur, matrix);
defs.append(filter);
const scale = Math.max(0.3, parseFloat(getComputedStyle(line).fontSize) / 90);
line._goo = (deviation, amp, offset) => {
blur.setAttribute('stdDeviation', (deviation * scale).toFixed(2));
matrix.setAttribute('values', `1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 ${amp} ${offset}`);
};
line._goo(most, 20, -8);
line.style.filter = `url(#${filter.id})`;
};
const play = (line, delay) => {
const begin = performance.now() + delay;
const frame = (now) => {
const elapsed = now - begin;
if (elapsed < 0) { requestAnimationFrame(frame); return; }
const blurDone = Math.min(1, elapsed / durL);
const threshold = Math.min(1, Math.max(0, (elapsed - durL * 0.65) / (durL * 0.35)));
line._goo(most * (1 - easeOut(blurDone)), 20 - 19 * threshold, -8 + 8 * threshold);
if (blurDone < 1) requestAnimationFrame(frame); else line.style.filter = '';
};
requestAnimationFrame(frame);
};
const linesOf = (block) => {
const lines = [...block.querySelectorAll('[data-line]')];
return lines.length ? lines : [block];
};
const blocks = [...root.querySelectorAll('[data-goo]')];
blocks.forEach((block) => linesOf(block).forEach(prepare));
const seen = new IntersectionObserver((entries) => {
entries.filter((entry) => entry.isIntersecting).forEach((entry, order) => {
seen.unobserve(entry.target);
linesOf(entry.target).forEach((line, index) => play(line, (order + index) * stagger));
});
}, { threshold: 0.1 });
blocks.forEach((block) => seen.observe(block));
}
const still = matchMedia('(prefers-reduced-motion: reduce)');
const TILES = 26;
const STEP_MS = 2500;
const SPIN_MS = 24000;
const TILT = -0.32;
const ART = 8;
const WORKS = [
'Ferry Hall, waiting room tone', 'Lindenau Baths, reverb study', 'Night Tram, title sound', 'Moss Archive, app clicks',
'Glasshouse, installation drone', 'Kiln, short film foley', 'Signal Box, museum audio', 'Paper Choir, spatial mix',
];
function token(root, name) { return getComputedStyle(root).getPropertyValue(name).trim(); }
function bezier(spec) {
const [x1, y1, x2, y2] = spec.match(/-?[\d.]+/g).map(Number);
const curve = (a, b, t) => 3 * a * t * (1 - t) ** 2 + 3 * b * t * t * (1 - t) + t ** 3;
return (x) => {
let low = 0, high = 1, t = x;
for (let step = 0; step < 24; step += 1) {
t = (low + high) / 2;
if (curve(x1, x2, t) < x) low = t; else high = t;
}
return curve(y1, y2, t);
};
}
/* Each project gets a small drawn cover: white marks on a black card. */
function drawArt(kind, ink, paper) {
const tile = document.createElement('canvas');
tile.width = 200;
tile.height = 150;
const c = tile.getContext('2d');
c.fillStyle = ink;
c.fillRect(0, 0, 200, 150);
c.fillStyle = paper;
c.strokeStyle = paper;
c.lineWidth = 4;
if (kind === 0) {
for (let bar = 0; bar < 22; bar += 1) {
const height = 10 + Math.abs(Math.sin(bar * 1.7) * Math.cos(bar * 0.45)) * 90;
c.fillRect(22 + bar * 7.4, 75 - height / 2, 4, height);
}
} else if (kind === 1) {
c.beginPath(); c.arc(100, 75, 8, 0, Math.PI * 2); c.fill();
for (let ring = 1; ring < 5; ring += 1) { c.beginPath(); c.arc(100, 75, 8 + ring * 15, -0.9, 0.9); c.stroke(); c.beginPath(); c.arc(100, 75, 8 + ring * 15, Math.PI - 0.9, Math.PI + 0.9); c.stroke(); }
} else if (kind === 2) {
for (let col = 0; col < 16; col += 1) {
for (let row = 0; row < 10; row += 1) {
c.globalAlpha = Math.max(0.08, Math.sin(col * 0.5 + row * 0.9) * 0.5 + 0.5 - row * 0.05);
c.fillRect(20 + col * 10.2, 20 + row * 11.5, 8.6, 9.5);
}
}
c.globalAlpha = 1;
} else if (kind === 3) {
c.font = '600 92px Archivo, sans-serif';
c.textBaseline = 'middle';
c.fillText('A/B', 18, 80);
} else if (kind === 4) {
c.beginPath();
for (let x = 0; x <= 200; x += 2) c.lineTo(x, 75 + Math.sin(x / 11) * 34 * Math.sin(x / 64));
c.stroke();
} else if (kind === 5) {
for (let col = 0; col < 9; col += 1) for (let row = 0; row < 6; row += 1) { c.beginPath(); c.arc(28 + col * 18, 30 + row * 18, (col + row) % 4 === 0 ? 6 : 2.5, 0, Math.PI * 2); c.fill(); }
} else if (kind === 6) {
c.lineWidth = 3;
c.strokeRect(16, 16, 168, 118);
c.font = '600 54px Archivo, sans-serif';
c.fillText('mix.', 28, 118);
} else {
c.save(); c.beginPath(); c.rect(0, 0, 200, 150); c.clip();
for (let stripe = -150; stripe < 200; stripe += 22) c.fillRect(stripe, 0, 9, 150);
c.restore();
c.fillStyle = ink; c.fillRect(64, 44, 72, 62);
}
return tile;
}
function fibonacci(count) {
const gold = Math.PI * (3 - Math.sqrt(5));
return Array.from({ length: count }, (_, index) => {
const y = 1 - (index / (count - 1)) * 2;
const ring = Math.sqrt(1 - y * y);
return [Math.cos(index * gold) * ring, y, Math.sin(index * gold) * ring];
});
}
function rotate([x, y, z], yaw, pitch) {
const x1 = x * Math.cos(yaw) + z * Math.sin(yaw);
const z1 = -x * Math.sin(yaw) + z * Math.cos(yaw);
const y2 = y * Math.cos(pitch) - z1 * Math.sin(pitch);
const z2 = y * Math.sin(pitch) + z1 * Math.cos(pitch);
return [x1, y2, z2];
}
function setUp(root) {
const canvas = root.querySelector('.globe__canvas');
const context = canvas.getContext('2d');
const caption = root.querySelector('.globe__title');
const index = root.querySelector('.globe__index');
const styles = getComputedStyle(root);
const ink = styles.getPropertyValue('--ink').trim();
const paper = styles.getPropertyValue('--paper').trim();
const backEdge = styles.getPropertyValue('--ink-soft').trim();
const osmo = bezier(token(root, '--ease-osmo'));
const points = fibonacci(TILES);
const arts = Array.from({ length: ART }, (_, kind) => drawArt(kind, ink, paper));
const slot = (Math.PI * 2) / 9;
let width = 0, height = 0, frame = 0, front = -1;
let dragYaw = 0, dragPitch = 0, velocity = 0, dragging = null, clock = 0, last = performance.now();
function fit() {
const density = Math.min(2, devicePixelRatio || 1);
width = canvas.clientWidth;
height = canvas.clientHeight;
canvas.width = width * density;
canvas.height = height * density;
context.setTransform(density, 0, 0, density, 0, 0);
paint();
}
function yawAt(time) {
const steps = Math.floor(time / STEP_MS);
const phase = (time % STEP_MS) / STEP_MS;
return (steps + osmo(phase)) * slot;
}
function paint() {
const radius = Math.min(width * 0.23, height * 0.36);
const centreX = width / 2, centreY = height / 2;
const roll = (clock / SPIN_MS) * Math.PI * 2;
const yaw = yawAt(clock) + dragYaw;
const pitch = TILT + dragPitch;
const tileWidth = radius * 0.13, tileHeight = tileWidth * 0.75;
const camera = 2.6;
const cosRoll = Math.cos(roll), sinRoll = Math.sin(roll);
const tiles = points.map((point, number) => {
const [x, y, z] = rotate(point, yaw, pitch);
const east = rotate([point[2], 0, -point[0]].map((v) => v / (Math.hypot(point[0], point[2]) || 1)), yaw, pitch);
const north = [y * east[2] - z * east[1], z * east[0] - x * east[2], x * east[1] - y * east[0]];
return { number, x, y, z, east, north };
}).sort((a, b) => a.z - b.z);
context.clearRect(0, 0, width, height);
let nearest = null;
for (const tile of tiles) {
const scale = camera / (camera - tile.z);
const toScreen = (vx, vy) => [(vx * cosRoll - vy * sinRoll) * scale, (vx * sinRoll + vy * cosRoll) * scale];
const [cx, cy] = toScreen(tile.x * radius, -tile.y * radius);
const [ax, ay] = toScreen(tile.east[0] * tileWidth, -tile.east[1] * tileWidth);
const [bx, by] = toScreen(-tile.north[0] * tileHeight, tile.north[1] * tileHeight);
const depth = (tile.z + 1) / 2;
const facing = tile.z > -0.05;
const size = Math.pow(depth, 1.3);
context.save();
context.globalAlpha = 0.25 + 0.75 * size;
context.filter = size < 0.6 ? `blur(${((0.6 - size) * 4).toFixed(2)}px)` : 'none';
const density = Math.min(2, devicePixelRatio || 1);
context.setTransform(ax * density, ay * density, bx * density, by * density, (centreX + cx) * density, (centreY + cy) * density);
if (facing) {
context.drawImage(arts[tile.number % ART], -1, -1, 2, 2);
} else {
context.fillStyle = paper;
context.fillRect(-1, -1, 2, 2);
context.strokeStyle = backEdge;
context.lineWidth = 0.035;
context.strokeRect(-1, -1, 2, 2);
context.strokeRect(-0.6, -0.45, 1.2, 0.9);
}
context.restore();
if (facing && (!nearest || tile.z > nearest.z)) nearest = tile;
}
if (nearest && nearest.number !== front) {
front = nearest.number;
caption.textContent = WORKS[front % WORKS.length];
index.textContent = `(${String(front + 1).padStart(2, '0')})`;
}
}
function tick(now) {
const delta = Math.min(64, now - last);
last = now;
if (!dragging) {
clock += delta;
dragYaw += velocity;
velocity *= 0.94;
dragPitch *= 0.96;
}
paint();
frame = requestAnimationFrame(tick);
}
function start() {
cancelAnimationFrame(frame);
last = performance.now();
if (!still.matches) frame = requestAnimationFrame(tick);
}
canvas.addEventListener('pointerdown', (event) => {
dragging = { x: event.clientX, y: event.clientY, yaw: dragYaw, pitch: dragPitch, time: event.timeStamp };
velocity = 0;
root.classList.add('is-dragging');
canvas.setPointerCapture(event.pointerId);
});
canvas.addEventListener('pointermove', (event) => {
if (!dragging) return;
const spinYaw = dragging.yaw + (event.clientX - dragging.x) * 0.008;
velocity = (spinYaw - dragYaw) * 0.6;
dragYaw = spinYaw;
dragPitch = Math.max(-0.6, Math.min(0.6, dragging.pitch + (event.clientY - dragging.y) * 0.004));
if (still.matches) paint();
});
const release = () => { dragging = null; root.classList.remove('is-dragging'); };
canvas.addEventListener('pointerup', release);
canvas.addEventListener('pointercancel', release);
canvas.tabIndex = 0;
canvas.addEventListener('keydown', (event) => {
if (event.key !== 'ArrowLeft' && event.key !== 'ArrowRight') return;
event.preventDefault();
velocity += event.key === 'ArrowLeft' ? -0.06 : 0.06;
if (still.matches) { dragYaw += velocity * 6; velocity = 0; paint(); }
});
new ResizeObserver(fit).observe(canvas);
new IntersectionObserver(([entry]) => {
cancelAnimationFrame(frame);
if (entry.isIntersecting) start();
}).observe(root);
if (document.fonts) document.fonts.ready.then(() => { arts.splice(0, ART, ...Array.from({ length: ART }, (_, kind) => drawArt(kind, ink, paper))); paint(); });
}
document.querySelectorAll('.globe').forEach((root) => { setUp(root); revealOnView(root); });
})();
</script>
Honours table
An ampersand and a hyphen-broken 90px heading stepping across columns, over a small ruled table of years, projects, juries and prizes whose rows tint on hover.
Code
React For Figma<section class="honours" aria-labelledby="honours-title">
<span class="honours__rule" aria-hidden="true"></span>
<p class="honours__amp" aria-hidden="true" data-goo>&</p>
<h2 class="honours__title" id="honours-title" aria-label="Honours and mentions" data-goo>
<span class="honours__line" data-line>Honours</span>
<span class="honours__line" data-line>Men-</span>
<span class="honours__line honours__line--offset" data-line>tions</span>
</h2>
<p class="honours__count" data-goo>’23–’26<br />11 entries</p>
<div class="honours__table">
<div class="honours__head" aria-hidden="true">
<span>Year</span><span>Project</span><span>Jury</span><span>Prize</span>
</div>
<ul class="honours__list">
<li class="honours__group">
<a class="honours__row" href="#"><span class="honours__year">’26</span><span class="honours__project">nachklang’26</span><span>Hörfeld Awards</span><span>Sound of the Year</span></a>
<a class="honours__row" href="#"><span class="honours__year"></span><span class="honours__project"></span><span>Reel Guild</span><span>Honourable Mention</span></a>
<a class="honours__row" href="#"><span class="honours__year"></span><span class="honours__project"></span><span>Index of Quiet</span><span>Shortlist</span></a>
</li>
<li class="honours__group">
<a class="honours__row" href="#"><span class="honours__year">’25</span><span class="honours__project">Ferry Hall</span><span>Mono/Stereo Annual</span><span>Gold</span></a>
<a class="honours__row" href="#"><span class="honours__year"></span><span class="honours__project"></span><span>Hörfeld Awards</span><span>Best Installation</span></a>
<a class="honours__row" href="#"><span class="honours__year"></span><span class="honours__project"></span><span>Reel Guild</span><span>Craft Award</span></a>
<a class="honours__row" href="#"><span class="honours__year"></span><span class="honours__project"></span><span>Lautsprecher Prize</span><span>Winner</span></a>
</li>
<li class="honours__group">
<a class="honours__row" href="#"><span class="honours__year">’24</span><span class="honours__project">Kiln, short film</span><span>Northern Shorts</span><span>Best Sound</span></a>
<a class="honours__row" href="#"><span class="honours__year"></span><span class="honours__project"></span><span>Reel Guild</span><span>Nomination</span></a>
</li>
<li class="honours__group">
<a class="honours__row" href="#"><span class="honours__year">’23</span><span class="honours__project">Moss Archive</span><span>Interface Sound Club</span><span>Pick of the Month</span></a>
<a class="honours__row" href="#"><span class="honours__year"></span><span class="honours__project"></span><span>Index of Quiet</span><span>Feature</span></a>
</li>
</ul>
</div>
</section>
<style>
.honours {
position: relative;
display: grid;
grid-template-columns: repeat(8, minmax(0, 1fr));
column-gap: var(--gap);
padding: var(--space-l) var(--edge);
background: var(--paper);
}
.honours p, .honours h2 { margin: 0; font-weight: inherit; }
.honours__rule {
position: absolute;
top: 0;
height: calc(var(--space-l) + var(--text-xl) * var(--leading-xl) * 3);
left: calc(var(--edge) + 3 * (100% - 2 * var(--edge) - 7 * var(--gap)) / 8 + 2.5 * var(--gap));
width: var(--stroke);
background: var(--ink);
}
.honours__amp,
.honours__title {
font-size: var(--text-xl);
line-height: var(--leading-xl);
letter-spacing: var(--tracking-xl);
}
.honours__amp {
grid-column: 2;
grid-row: 1;
align-self: center;
justify-self: end;
}
.honours__title {
grid-column: 4 / -1;
grid-row: 1;
}
.honours__line { display: block; }
.honours__line--offset { padding-left: calc((100% - 4 * var(--gap)) / 5 * 0.74); }
.honours__count {
grid-column: 3;
grid-row: 1;
align-self: end;
color: var(--ink-soft);
}
.honours__table {
grid-column: 1 / -1;
margin-top: var(--space-l);
}
.honours__head,
.honours__row {
display: grid;
grid-template-columns: repeat(8, minmax(0, 1fr));
column-gap: var(--gap);
}
.honours__head {
padding-bottom: var(--space-s);
border-bottom: var(--stroke) solid var(--ink);
color: var(--ink-soft);
}
.honours__head > :nth-child(1), .honours__row > :nth-child(1) { grid-column: 1; }
.honours__head > :nth-child(2), .honours__row > :nth-child(2) { grid-column: 3 / span 2; }
.honours__head > :nth-child(3), .honours__row > :nth-child(3) { grid-column: 5 / span 2; }
.honours__head > :nth-child(4), .honours__row > :nth-child(4) { grid-column: 7 / span 2; }
.honours__list {
margin: 0;
padding: 0;
list-style: none;
}
.honours__group {
padding: var(--space-m) 0;
border-bottom: var(--stroke) solid var(--hairline);
}
.honours__row {
align-items: center;
min-height: var(--tap);
margin-inline: calc(var(--space-s) * -1);
padding-inline: var(--space-s);
color: inherit;
text-decoration: none;
transition: background var(--dur-s) var(--ease-out);
}
.honours__row + .honours__row { border-top: var(--stroke) solid var(--hairline); }
.honours__row:hover,
.honours__row:focus-visible {
background: var(--tint);
}
.honours__row:focus-visible { outline: var(--stroke) solid var(--ink); outline-offset: -1px; }
.honours__row > :last-child { position: relative; }
.honours__row > :last-child::after {
content: "\2197";
position: absolute;
right: 0;
opacity: 0;
translate: -6px 4px;
transition: opacity var(--dur-s) var(--ease-out), translate var(--dur-s) var(--ease-out);
}
.honours__row:is(:hover, :focus-visible) > :last-child::after { opacity: 1; translate: 0 0; }
@media (max-width: 47.99rem) {
.honours { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.honours__rule { left: calc(var(--edge) + (100% - 2 * var(--edge) - 3 * var(--gap)) / 4 + 0.5 * var(--gap)); }
.honours__amp { grid-column: 1; justify-self: start; }
.honours__title { grid-column: 2 / -1; }
.honours__count { grid-column: 1; grid-row: 2; margin-top: var(--space-m) !important; }
.honours__head { display: none; }
.honours__row { grid-template-columns: 3.5ch minmax(0, 1fr) minmax(0, 1fr); row-gap: 2px; padding-block: var(--space-s); }
.honours__row > :nth-child(1) { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
.honours__row > :nth-child(2) { grid-column: 2 / -1; grid-row: 1; }
.honours__row > :nth-child(2):empty { display: none; }
.honours__row > :nth-child(3) { grid-column: 2; grid-row: 2; }
.honours__row > :nth-child(4) { grid-column: 3; grid-row: 2; }
.honours__row > :nth-child(2):empty ~ :nth-child(3),
.honours__row > :nth-child(2):empty ~ :nth-child(4) { grid-row: 1; }
}
</style>
<script>
(() => {
/* Goo reveal: each line starts as a heavy blur through a hard alpha threshold and grows out of ink blobs.
Blocks marked data-goo reveal when they come into view; their data-line children follow each other. */
function revealOnView(root) {
if (matchMedia('(prefers-reduced-motion: reduce)').matches) return;
const styles = getComputedStyle(root);
const time = (name) => parseFloat(styles.getPropertyValue(name)) * 1000;
const durL = time('--dur-l'), stagger = time('--stagger');
const most = parseFloat(styles.getPropertyValue('--goo-blur'));
const [x1, y1, x2, y2] = styles.getPropertyValue('--ease-out').match(/-?[\d.]+/g).map(Number);
const curve = (a, b, t) => 3 * a * t * (1 - t) ** 2 + 3 * b * t * t * (1 - t) + t ** 3;
const easeOut = (x) => {
let low = 0, high = 1, t = x;
for (let step = 0; step < 24; step += 1) { t = (low + high) / 2; if (curve(x1, x2, t) < x) low = t; else high = t; }
return curve(y1, y2, t);
};
const defs = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
defs.setAttribute('aria-hidden', 'true');
defs.style.cssText = 'position:absolute;width:0;height:0;overflow:hidden';
root.prepend(defs);
const prepare = (line) => {
const ns = 'http://www.w3.org/2000/svg';
const filter = document.createElementNS(ns, 'filter');
const blur = document.createElementNS(ns, 'feGaussianBlur');
const matrix = document.createElementNS(ns, 'feColorMatrix');
filter.id = `honours-goo-${Math.random().toString(36).slice(2, 9)}`;
Object.entries({ x: '-25%', y: '-25%', width: '150%', height: '150%', 'color-interpolation-filters': 'sRGB' }).forEach(([key, value]) => filter.setAttribute(key, value));
blur.setAttribute('in', 'SourceGraphic');
matrix.setAttribute('type', 'matrix');
filter.append(blur, matrix);
defs.append(filter);
const scale = Math.max(0.3, parseFloat(getComputedStyle(line).fontSize) / 90);
line._goo = (deviation, amp, offset) => {
blur.setAttribute('stdDeviation', (deviation * scale).toFixed(2));
matrix.setAttribute('values', `1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 ${amp} ${offset}`);
};
line._goo(most, 20, -8);
line.style.filter = `url(#${filter.id})`;
};
const play = (line, delay) => {
const begin = performance.now() + delay;
const frame = (now) => {
const elapsed = now - begin;
if (elapsed < 0) { requestAnimationFrame(frame); return; }
const blurDone = Math.min(1, elapsed / durL);
const threshold = Math.min(1, Math.max(0, (elapsed - durL * 0.65) / (durL * 0.35)));
line._goo(most * (1 - easeOut(blurDone)), 20 - 19 * threshold, -8 + 8 * threshold);
if (blurDone < 1) requestAnimationFrame(frame); else line.style.filter = '';
};
requestAnimationFrame(frame);
};
const linesOf = (block) => {
const lines = [...block.querySelectorAll('[data-line]')];
return lines.length ? lines : [block];
};
const blocks = [...root.querySelectorAll('[data-goo]')];
blocks.forEach((block) => linesOf(block).forEach(prepare));
const seen = new IntersectionObserver((entries) => {
entries.filter((entry) => entry.isIntersecting).forEach((entry, order) => {
seen.unobserve(entry.target);
linesOf(entry.target).forEach((line, index) => play(line, (order + index) * stagger));
});
}, { threshold: 0.1 });
blocks.forEach((block) => seen.observe(block));
}
document.querySelectorAll('.honours').forEach(revealOnView);
})();
</script>
Clock sentence footer
A stepped sentence broken by a huge live clock in brackets with a black waveform tile in the middle, a contact column with a rolling email link and round social rings, and the wordmark halves sliding together.
Code
React For Figma<footer class="footer">
<h2 class="footer__sentence footer__sentence--top" data-goo>
<span class="footer__line" data-line>Every sound</span>
<span class="footer__line footer__line--in" data-line>you hear</span>
<span class="footer__line footer__line--in" data-line>was first</span>
</h2>
<p class="footer__clock" aria-label="Local time in Leipzig">
<span class="footer__part footer__part--hours" data-goo><span>(</span><time class="footer__hours">21</time></span>
<span class="footer__colon footer__colon--first" aria-hidden="true">:</span>
<span class="footer__tile"><canvas class="footer__wave" role="img" aria-label="A live waveform"></canvas></span>
<span class="footer__colon footer__colon--second" aria-hidden="true">:</span>
<span class="footer__part footer__part--minutes" data-goo><time class="footer__minutes">47</time><span>)</span></span>
</p>
<h2 class="footer__sentence footer__sentence--bottom" data-goo>
<span class="footer__line footer__line--in" data-line>a silence</span>
<span class="footer__line footer__line--deep" data-line>waiting</span>
<span class="footer__line footer__line--in" data-line>its turn.</span>
</h2>
<div class="footer__contact">
<p class="footer__note">Available for selected<br />projects from March</p>
<p class="footer__note">Write directly to:<br /><a class="footer__mail" href="#" data-roll>hello@nachklang.studio</a></p>
</div>
<ul class="footer__social" aria-label="Elsewhere">
<li><a class="footer__ring" href="#" aria-label="Listen to the reel"><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M4 2.5v7l6-3.5z" /></svg></a></li>
<li><a class="footer__ring" href="#" aria-label="Read the notes"><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M2.5 4h7M2.5 6h7M2.5 8h4.5" /></svg></a></li>
<li><a class="footer__ring" href="#" aria-label="Archive of sounds"><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M1.5 6h1.5l1-3 2 6 1.5-4.5 1 1.5h2" /></svg></a></li>
</ul>
<div class="footer__base">
<p class="footer__small">’26 © All sounds kept</p>
<p class="footer__name" aria-label="nachklang"><span class="footer__half">nach</span><span class="footer__half">klang</span></p>
<p class="footer__small footer__small--right">made w/ patience</p>
</div>
</footer>
<style>
.footer {
position: relative;
display: grid;
grid-template-columns: repeat(8, minmax(0, 1fr));
column-gap: var(--gap);
padding: var(--space-l) var(--edge) var(--edge);
overflow: clip;
background: var(--paper);
}
.footer p, .footer h2 { margin: 0; font-weight: inherit; }
.footer__sentence,
.footer__clock,
.footer__name {
font-size: var(--text-xl);
line-height: var(--leading-xl);
letter-spacing: var(--tracking-xl);
}
.footer__sentence { grid-column: 3 / -1; }
.footer__line { display: block; }
.footer__line--in { padding-left: calc((100% - 5 * var(--gap)) / 6 + var(--gap)); }
.footer__line--deep { padding-left: calc(((100% - 5 * var(--gap)) / 6 + var(--gap)) * 1.6); }
/* The clock spreads across the full grid with the waveform tile at its centre. */
.footer__clock {
grid-column: 1 / -1;
display: grid;
grid-template-columns: subgrid;
align-items: center;
margin: var(--space-l) 0 !important;
}
.footer__part { display: flex; gap: 0.12em; }
.footer__part--hours { grid-column: 1 / span 2; }
.footer__part--minutes { grid-column: 7 / -1; justify-self: end; }
.footer__colon--first { grid-column: 3; justify-self: center; }
.footer__colon--second { grid-column: 6; justify-self: center; }
.footer__tile {
grid-column: 4 / span 2;
justify-self: center;
width: max(72px, 5vw);
aspect-ratio: 3 / 4;
background: var(--ink);
}
.footer__wave { width: 100%; height: 100%; color: var(--paper); }
.footer__contact {
grid-column: 2 / span 2;
display: grid;
gap: var(--space-m);
align-self: end;
margin-top: var(--space-l);
}
.footer__mail {
display: inline-block;
position: relative;
color: inherit;
text-decoration: none;
vertical-align: top;
padding: 15px 0;
margin: -15px 0;
}
.footer__mail::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 13px;
height: var(--stroke);
background: currentColor;
transform-origin: right;
transition: scale var(--dur-s) var(--ease-in-out);
}
.footer__mail:is(:hover, :focus-visible)::after { scale: 0 1; }
.footer__mail:focus-visible { outline: var(--stroke) solid var(--ink); outline-offset: -11px; }
.footer__roll { display: inline-grid; overflow: clip; vertical-align: top; white-space: pre; }
.footer__copy { grid-area: 1 / 1; justify-self: start; }
.footer__char {
display: inline-block;
transition: translate var(--dur-s) var(--ease-in-out);
transition-delay: calc(var(--back) * var(--roll-spread));
}
.footer__copy + .footer__copy .footer__char { translate: 0 100%; }
.footer__mail:is(:hover, :focus-visible) .footer__char { translate: 0 -100%; transition-delay: calc(var(--fore) * var(--roll-spread)); }
.footer__mail:is(:hover, :focus-visible) .footer__copy + .footer__copy .footer__char { translate: 0 0; }
.footer__spoken { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.footer__social {
grid-column: 4 / span 2;
align-self: end;
justify-self: center;
display: flex;
margin: var(--space-l) 0 0;
padding: 0;
list-style: none;
}
.footer__ring {
display: grid;
place-items: center;
width: var(--tap);
height: var(--tap);
color: var(--ink);
}
.footer__ring svg {
width: max(24px, 1.6667vw);
height: max(24px, 1.6667vw);
padding: 25%;
border: var(--stroke) solid var(--ink);
border-radius: var(--radius-round);
fill: currentColor;
stroke: currentColor;
stroke-width: 1.2;
stroke-linecap: round;
stroke-linejoin: round;
transition: background var(--dur-s) var(--ease-out), color var(--dur-s) var(--ease-out);
}
.footer__ring svg path[d^="M2.5"],
.footer__ring svg path[d^="M1.5"] { fill: none; }
.footer__ring:is(:hover, :focus-visible) svg { background: var(--ink); color: var(--on-ink); }
.footer__ring:focus-visible { outline: none; }
.footer__ring:focus-visible svg { outline: var(--stroke) solid var(--ink); outline-offset: 3px; }
/* The two halves of the wordmark meet in the middle once the footer is fully in view. */
.footer__base {
grid-column: 1 / -1;
display: grid;
grid-template-columns: 1fr auto;
align-items: end;
row-gap: var(--space-s);
margin-top: var(--space-l);
}
.footer__name {
grid-column: 1 / -1;
grid-row: 1;
display: flex;
justify-content: space-between;
color: var(--ink-ghost);
transition: color var(--dur-l) var(--ease-in-out);
}
.footer__half {
translate: var(--shift, 0) 0;
transition: translate var(--dur-l) var(--ease-in-out);
}
.footer.is-joined .footer__name { color: var(--ink); }
.footer__small { grid-row: 2; }
.footer__small--right { justify-self: end; }
@media (max-width: 47.99rem) {
.footer { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.footer__sentence { grid-column: 1 / -1; }
.footer__clock { display: flex; justify-content: space-between; }
.footer__tile { width: max(48px, 14vw); }
.footer__contact { grid-column: 1 / -1; }
.footer__social { grid-column: 1 / -1; justify-self: start; margin-left: -10px; margin-top: var(--space-m); }
}
@media (prefers-reduced-motion: reduce) {
.footer__char, .footer__half, .footer__name { transition: none; }
}
</style>
<script>
(() => {
/* Goo reveal: each line starts as a heavy blur through a hard alpha threshold and grows out of ink blobs.
Blocks marked data-goo reveal when they come into view; their data-line children follow each other. */
function revealOnView(root) {
if (matchMedia('(prefers-reduced-motion: reduce)').matches) return;
const styles = getComputedStyle(root);
const time = (name) => parseFloat(styles.getPropertyValue(name)) * 1000;
const durL = time('--dur-l'), stagger = time('--stagger');
const most = parseFloat(styles.getPropertyValue('--goo-blur'));
const [x1, y1, x2, y2] = styles.getPropertyValue('--ease-out').match(/-?[\d.]+/g).map(Number);
const curve = (a, b, t) => 3 * a * t * (1 - t) ** 2 + 3 * b * t * t * (1 - t) + t ** 3;
const easeOut = (x) => {
let low = 0, high = 1, t = x;
for (let step = 0; step < 24; step += 1) { t = (low + high) / 2; if (curve(x1, x2, t) < x) low = t; else high = t; }
return curve(y1, y2, t);
};
const defs = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
defs.setAttribute('aria-hidden', 'true');
defs.style.cssText = 'position:absolute;width:0;height:0;overflow:hidden';
root.prepend(defs);
const prepare = (line) => {
const ns = 'http://www.w3.org/2000/svg';
const filter = document.createElementNS(ns, 'filter');
const blur = document.createElementNS(ns, 'feGaussianBlur');
const matrix = document.createElementNS(ns, 'feColorMatrix');
filter.id = `footer-goo-${Math.random().toString(36).slice(2, 9)}`;
Object.entries({ x: '-25%', y: '-25%', width: '150%', height: '150%', 'color-interpolation-filters': 'sRGB' }).forEach(([key, value]) => filter.setAttribute(key, value));
blur.setAttribute('in', 'SourceGraphic');
matrix.setAttribute('type', 'matrix');
filter.append(blur, matrix);
defs.append(filter);
const scale = Math.max(0.3, parseFloat(getComputedStyle(line).fontSize) / 90);
line._goo = (deviation, amp, offset) => {
blur.setAttribute('stdDeviation', (deviation * scale).toFixed(2));
matrix.setAttribute('values', `1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 ${amp} ${offset}`);
};
line._goo(most, 20, -8);
line.style.filter = `url(#${filter.id})`;
};
const play = (line, delay) => {
const begin = performance.now() + delay;
const frame = (now) => {
const elapsed = now - begin;
if (elapsed < 0) { requestAnimationFrame(frame); return; }
const blurDone = Math.min(1, elapsed / durL);
const threshold = Math.min(1, Math.max(0, (elapsed - durL * 0.65) / (durL * 0.35)));
line._goo(most * (1 - easeOut(blurDone)), 20 - 19 * threshold, -8 + 8 * threshold);
if (blurDone < 1) requestAnimationFrame(frame); else line.style.filter = '';
};
requestAnimationFrame(frame);
};
const linesOf = (block) => {
const lines = [...block.querySelectorAll('[data-line]')];
return lines.length ? lines : [block];
};
const blocks = [...root.querySelectorAll('[data-goo]')];
blocks.forEach((block) => linesOf(block).forEach(prepare));
const seen = new IntersectionObserver((entries) => {
entries.filter((entry) => entry.isIntersecting).forEach((entry, order) => {
seen.unobserve(entry.target);
linesOf(entry.target).forEach((line, index) => play(line, (order + index) * stagger));
});
}, { threshold: 0.1 });
blocks.forEach((block) => seen.observe(block));
}
function buildRoll(link) {
const text = link.textContent.trim();
const roll = document.createElement('span');
roll.className = 'footer__roll';
roll.setAttribute('aria-hidden', 'true');
const last = Math.max(1, text.length - 1);
for (let copy = 0; copy < 2; copy += 1) {
const line = document.createElement('span');
line.className = 'footer__copy';
[...text].forEach((letter, index) => {
const char = document.createElement('span');
char.className = 'footer__char';
char.textContent = letter;
char.style.setProperty('--fore', index / last);
char.style.setProperty('--back', (last - index) / last);
line.append(char);
});
roll.append(line);
}
const spoken = document.createElement('span');
spoken.className = 'footer__spoken';
spoken.textContent = text;
link.replaceChildren(roll, spoken);
}
function runClock(root) {
const hours = root.querySelector('.footer__hours');
const minutes = root.querySelector('.footer__minutes');
const pad = (value) => String(value).padStart(2, '0');
const update = () => {
const now = new Date();
hours.textContent = pad(now.getHours());
minutes.textContent = pad(now.getMinutes());
hours.dateTime = minutes.dateTime = `${pad(now.getHours())}:${pad(now.getMinutes())}`;
};
update();
setInterval(update, 1000);
}
/* A waveform that breathes inside the black tile, drawn only while the tile is on screen. */
function runWave(canvas) {
const still = matchMedia('(prefers-reduced-motion: reduce)');
const context = canvas.getContext('2d');
let frame = 0;
const paint = (seconds) => {
const width = canvas.clientWidth, height = canvas.clientHeight;
context.clearRect(0, 0, width, height);
context.fillStyle = getComputedStyle(canvas).color;
const bars = 9;
const step = width / (bars + 1);
for (let bar = 0; bar < bars; bar += 1) {
const swing = Math.sin(seconds * 2.1 + bar * 0.9) * Math.sin(seconds * 0.7 + bar * 0.35);
const length = height * (0.1 + 0.32 * Math.abs(swing));
context.fillRect(step * (bar + 1) - 1.25, height / 2 - length, 2.5, length * 2);
}
};
const fit = () => {
const density = Math.min(2, devicePixelRatio || 1);
canvas.width = canvas.clientWidth * density;
canvas.height = canvas.clientHeight * density;
context.setTransform(density, 0, 0, density, 0, 0);
paint(performance.now() / 1000);
};
const tick = (now) => { paint(now / 1000); frame = requestAnimationFrame(tick); };
new ResizeObserver(fit).observe(canvas);
new IntersectionObserver(([entry]) => {
cancelAnimationFrame(frame);
if (entry.isIntersecting && !still.matches) frame = requestAnimationFrame(tick);
}).observe(canvas);
}
function joinName(root) {
const name = root.querySelector('.footer__name');
const [left, right] = root.querySelectorAll('.footer__half');
const measure = () => {
const box = name.getBoundingClientRect();
const total = left.offsetWidth + right.offsetWidth;
const start = (box.width - total) / 2;
left.style.setProperty('--shift', root.classList.contains('is-joined') ? `${start}px` : '0px');
right.style.setProperty('--shift', root.classList.contains('is-joined') ? `${start + left.offsetWidth - (box.width - right.offsetWidth)}px` : '0px');
};
new ResizeObserver(measure).observe(name);
document.fonts.ready.then(measure);
new IntersectionObserver(([entry]) => {
root.classList.toggle('is-joined', entry.isIntersecting);
measure();
}, { threshold: 1 }).observe(name);
}
document.querySelectorAll('.footer').forEach((root) => {
root.querySelectorAll('[data-roll]').forEach(buildRoll);
runClock(root);
root.querySelectorAll('.footer__wave').forEach(runWave);
joinName(root);
revealOnView(root);
});
})();
</script>
Style
- --paper #ffffff
- --ink #000000
- --mist #f2f2f2
- --tint rgba(0, 0, 0, 0.05)
- --hairline rgba(0, 0, 0, 0.1)
- --ink-ghost rgba(0, 0, 0, 0.1)
- --ink-soft rgba(0, 0, 0, 0.5)
- --menu-1 #cbcccd
- --menu-2 #d8d9da
- --menu-3 #e6e6e6
- --theme-slate #bec1ca
- --theme-ember #ff633d
- --theme-lichen #919e44
- --theme-oxblood #d5312f
- --on-ink #ffffff
Type
- Archivo 600 at width 96 for everything: headlines at 90px, menu words at 40px, all text, labels and buttons at 14px, stands in for a licensed medium-weight classic grotesque (Akzidenz Grotesk Pro Medium), tracked tight
Motion
- Goo reveal: each line starts as a 50px blur pushed through a hard alpha threshold (alpha x20, -8), the blur falls to zero over 1.2s on cubic-bezier(0.25, 1, 0.5, 1), and in the last 0.42s the threshold relaxes linearly to normal; lines follow each other by 0.1s.
- Goo hide is the reverse: the threshold snaps on in 0.12s while the blur climbs to 50px over 0.4s on cubic-bezier(0.5, 0, 0.75, 0), lines 0.05s apart.
- Loader: a huge percent counter runs 0 to 100 over 2s and the column rule grows down the page over 4s, both on cubic-bezier(0.76, 0, 0.24, 1), with the role label riding the foot of the rule; at 100 the counter goo-hides, the corner square and Menu pill slide in from 5vw outside over 0.8s on the out curve, and the pale split wordmark goo-reveals in the bottom corners.
- Link roll: on hover the letters slide up out of their line while a copy rises from below, 0.4s on cubic-bezier(0.76, 0, 0.24, 1), the letters 0.075s apart in total, reversed on leave.
- Menu: three grey panels unclip from the top, right panel first, 0.8s on the out curve with 0.1s between them, and close upward in 0.4s on the in curve; the pill text rolls from Menu to Close while the pill width eases over 0.2s on cubic-bezier(0.77, 0, 0.175, 1).
- Theme swatches: the ring inside each grey square thickens from 1px to 8px over 0.4s on the out curve on hover; a click floods the section with that colour as an organic goo blob growing from the click point, and the black mark pops up in the middle and melts away.
- Work globe: drawn project tiles sit on a slowly turning sphere, shrink, dim and blur toward the back, step to the next tile every 2.5s on cubic-bezier(0.625, 0.05, 0, 1), can be dragged with inertia, and stop while off screen.
- The footer clock ticks live and its sound tile draws a moving waveform; at the end of the page the two halves of the wordmark slide together into one word.
Rules
- One face, one weight, three sizes: 90px headlines at line height 0.88 and -0.0495em tracking, 40px menu words at 0.8 and -0.036em, 14px text at 15px line height and -0.027em; sizes scale with the viewport (1rem is 1vw at 1440).
- Everything is black on white; the only other colours are the 5% black of squares and hovers, three menu greys and the five theme colours used as full floods.
- An 8 column grid with 16px gaps and edges; text blocks start on column edges and headlines step across columns line by line, one word pushed right by a column.
- A single 1px vertical rule runs down the edge of column 3 through the whole page, with small labels sitting at its foot.
- Headlines are stacked short lines with hyphenated breaks (Spat- / ial), never centred, never in capitals.
- Small text sits in two or three line stacks pinned to tops and bottoms of tall empty cells; the space between is part of the layout.
- Shapes are few and blunt: a black pebble mark, small round rings, a black pill; corners are square except pills and rings.
- The split wordmark sits pale in the bottom corners of every screen and only joins up at the very end.
base.css
/* Fonts: free Google Fonts that stand in for the site's faces. */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@96,600&display=swap");
:root {
--paper: #ffffff; /* page background, the base theme */
--ink: #000000; /* every word, the column rule, the black pill and the mark */
--mist: #f2f2f2; /* the one flat grey surface: tile backs, loader cover */
--tint: rgba(0, 0, 0, 0.05); /* swatch squares, row hover, the corner square */
--hairline: rgba(0, 0, 0, 0.1); /* table rules, ring outlines */
--ink-ghost: rgba(0, 0, 0, 0.1); /* the split wordmark parked at the bottom corners */
--ink-soft: rgba(0, 0, 0, 0.5); /* secondary labels, footnotes */
--menu-1: #cbcccd; /* first menu panel, the tallest */
--menu-2: #d8d9da; /* second menu panel */
--menu-3: #e6e6e6; /* third menu panel, the shortest */
--theme-slate: #bec1ca; /* theme swatch: cool concrete grey */
--theme-ember: #ff633d; /* theme swatch: warm signal orange */
--theme-lichen: #919e44; /* theme swatch: dull olive green */
--theme-oxblood: #d5312f; /* theme swatch: brick red */
--on-ink: #ffffff; /* text on the black pill and the current menu dot */
--font-display: "Archivo", "Helvetica Neue", Arial, sans-serif; /* the one grotesque for everything, display and text */
--font-body: "Archivo", "Helvetica Neue", Arial, sans-serif; /* same face, same weight, small size */
--font-stretch: 96%; /* width axis of the face, a hair narrower than normal */
--weight: 600; /* the only weight used */
--text-s: clamp(14px, 0.9722vw, 20px); /* running text, labels, buttons: 14px at 1440 */
--leading-s: 1.0714; /* 15px on 14px, set solid */
--tracking-s: -0.027em; /* -0.378px at 14px */
--text-l: max(28px, 2.7778vw); /* menu words: 40px at 1440 */
--leading-l: 0.8; /* 32px on 40px */
--tracking-l: -0.036em; /* -1.44px at 40px */
--text-xl: max(44px, 6.25vw); /* every headline and the counter: 90px at 1440 */
--leading-xl: 0.88; /* 79.2px on 90px */
--tracking-xl: -0.0495em; /* -4.455px at 90px */
--edge: max(12px, 1.1111vw); /* page side padding, 16px at 1440 */
--gap: max(12px, 1.1111vw); /* gap between the 8 columns, 16px at 1440 */
--cell: calc((100vw - 2 * var(--edge) - 7 * var(--gap)) / 8); /* one column of the 8 column grid, 162px at 1440 */
--space-s: max(8px, 0.5556vw); /* inside small groups */
--space-m: max(16px, 1.6667vw); /* between a headline and its note */
--space-l: max(48px, 7.2222vw); /* 104px: between blocks */
--space-xl: max(72px, 13.3333vw); /* 192px: between sections */
--tap: 44px; /* smallest tappable size */
--stroke: 1px; /* the column rule and every outline */
--ring-thin: 1px; /* resting swatch ring */
--ring-thick: max(6px, 0.5556vw); /* swatch ring when current or hovered, 8px at 1440 */
--radius-s: 8px; /* small cards */
--radius-m: 16px; /* the black menu pill */
--radius-l: 32px; /* large rounded tiles */
--radius-round: 50%; /* rings, dots, social buttons */
--ease-in-out: cubic-bezier(0.76, 0, 0.24, 1); /* rolls, loader rule, counter, swatch rings */
--ease-out: cubic-bezier(0.25, 1, 0.5, 1); /* goo reveals, menu opening, backgrounds */
--ease-in: cubic-bezier(0.5, 0, 0.75, 0); /* goo hides, menu closing */
--ease-osmo: cubic-bezier(0.625, 0.05, 0, 1); /* the globe stepping to its next tile */
--dur-s: 0.4s; /* hover rolls, hides, background fades */
--dur-m: 0.8s; /* menu panels, corner chrome sliding in */
--dur-l: 1.2s; /* goo reveal of a line */
--stagger: 0.1s; /* between lines and panels */
--roll-spread: 0.075s; /* total spread of a character roll, first to last letter */
--goo-blur: 50; /* blur at the start of a goo reveal, in px at 90px type */
}
*, *::before, *::after { box-sizing: border-box; }
body {
margin: 0;
background: var(--paper);
color: var(--ink);
font: var(--weight) var(--text-s) / var(--leading-s) var(--font-body);
font-stretch: var(--font-stretch);
letter-spacing: var(--tracking-s);
-webkit-font-smoothing: antialiased;
overflow-x: clip;
}
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("ink-bloom-column"), 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