Backroom Tunnel
Gig-poster grit on a flat metal-grey page: heavy condensed caps painted onto the walls of a drifting tunnel, rounded boxes in black, neon pink and pale blue, halftone pictures and tilted tickets, all held together by a small pill nav that floats at the bottom. Suits culture programmes, scene associations, venues, night schools and anything that wants to feel printed in a basement.
Parts
Floating pill nav
A metal pill pinned to the bottom centre with the wordmark on a black plate and three big condensed words that fill pink on hover. On phones a pink Menu button slides a panel of huge words up from the bottom; Escape closes it.
Code
React For Figma<nav class="dock" aria-label="Main">
<div class="dock__panel" id="dock-panel" inert>
<ul class="dock__panel-list">
<li><a class="dock__panel-link" href="#">Trades</a></li>
<li><a class="dock__panel-link" href="#">Voices</a></li>
<li><a class="dock__panel-link" href="#">Open nights</a></li>
</ul>
</div>
<div class="dock__bar">
<a class="dock__logo" href="#" aria-label="Inkrun, home">
<svg class="dock__glyph" viewBox="0 0 24 24" aria-hidden="true">
<rect x="2" y="4" width="15" height="7" rx="3.5"></rect>
<path d="M17 7.5h3.2v5.8H11v3.2"></path>
<rect x="9" y="16" width="4" height="6.5" rx="1.4"></rect>
</svg>
<span class="dock__word">Inkrun.org</span>
</a>
<ul class="dock__links">
<li><a class="dock__link" href="#">Trades</a></li>
<li><a class="dock__link" href="#">Voices</a></li>
<li><a class="dock__link" href="#">Open nights</a></li>
</ul>
<button class="dock__toggle" type="button" aria-expanded="false" aria-controls="dock-panel">
<span class="dock__toggle-word" data-open="Close" data-closed="Menu">Menu</span>
</button>
</div>
</nav>
<style>
.dock {
position: fixed;
z-index: 200;
right: 0;
bottom: 0;
left: 0;
padding: var(--space-4);
pointer-events: none;
}
.dock__bar {
position: relative;
z-index: 2;
display: flex;
align-items: center;
gap: var(--space-2);
width: fit-content;
margin: 0 auto;
padding: var(--space-2);
border-radius: var(--radius-main);
background: var(--metal);
box-shadow: inset 0 0 0 var(--outline-thin) var(--backstage);
pointer-events: auto;
}
@media (min-width: 768px) {
.dock__bar { gap: var(--space-5); padding: 8px; }
}
.dock__logo {
display: flex;
align-items: center;
gap: 3px;
height: var(--tap);
padding: 0 7px 0 5px;
border-radius: var(--radius-small);
background: var(--backstage);
color: var(--metal);
text-decoration: none;
}
.dock__logo:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; }
.dock__glyph {
width: 22px;
height: 22px;
fill: currentColor;
stroke: currentColor;
stroke-width: 0;
}
.dock__glyph path { fill: none; stroke-width: 2; stroke-linejoin: round; }
.dock__word {
font: 800 37px/1 var(--font-poster);
letter-spacing: -0.025em;
text-transform: uppercase;
translate: 0 1px;
}
.dock__links {
display: flex;
align-items: center;
gap: 8px;
margin: 0;
padding: 0;
list-style: none;
}
.dock__link,
.dock__panel-link {
display: flex;
align-items: center;
justify-content: center;
min-height: var(--tap);
padding: 8px 12px;
border-radius: var(--radius-main);
background: transparent;
color: var(--backstage);
font: 800 var(--t-h4)/0.9 var(--font-poster);
letter-spacing: -0.025em;
text-decoration: none;
text-transform: uppercase;
white-space: nowrap;
transition: background-color var(--time) var(--ease);
}
.dock__link.is-current,
.dock__panel-link.is-current { background: var(--neon); }
@media (hover: hover) {
.dock__link:hover,
.dock__panel-link:hover { background: var(--neon); }
}
.dock__link:focus-visible,
.dock__panel-link:focus-visible,
.dock__toggle:focus-visible {
outline: 3px solid var(--backstage);
outline-offset: 2px;
background: var(--neon);
}
.dock__toggle {
display: none;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 74px;
height: var(--tap);
padding: 8px 12px;
border: 0;
border-radius: var(--radius-main);
background: var(--neon);
color: var(--backstage);
font: 800 var(--t-h4)/0.9 var(--font-poster);
letter-spacing: -0.025em;
text-transform: uppercase;
cursor: pointer;
}
.dock__panel {
position: absolute;
z-index: 1;
right: 0;
bottom: 0;
left: 0;
display: none;
padding: 64px var(--space-4) calc(28px + 92px);
border-radius: var(--radius-main) var(--radius-main) 0 0;
background: var(--metal);
box-shadow: inset 0 0 0 var(--outline-thin) var(--backstage);
translate: 0 101%;
transition: translate var(--time-panel) var(--ease);
pointer-events: none;
}
.dock__panel-list {
display: flex;
flex-direction: column;
align-items: center;
gap: 24px;
margin: 0;
padding: 0;
list-style: none;
}
.dock__panel-link {
padding: 8px 16px;
font-size: clamp(50px, 15vw, 72px);
line-height: 0.9;
}
.dock.is-open .dock__panel {
translate: 0 0;
pointer-events: auto;
}
@media (max-width: 767.98px) {
.dock__links { display: none; }
.dock__toggle { display: flex; }
.dock__panel { display: block; }
}
@media (max-width: 380px) {
.dock__word { font-size: 31px; }
}
</style>
<script>
(() => {
function setUp(root) {
const toggle = root.querySelector('.dock__toggle');
const word = root.querySelector('.dock__toggle-word');
const panel = root.querySelector('.dock__panel');
function setOpen(open) {
root.classList.toggle('is-open', open);
toggle.setAttribute('aria-expanded', String(open));
panel.inert = !open;
word.textContent = open ? word.dataset.open : word.dataset.closed;
}
toggle.addEventListener('click', () => setOpen(!root.classList.contains('is-open')));
panel.querySelectorAll('a').forEach((link) => link.addEventListener('click', () => setOpen(false)));
root.addEventListener('keydown', (event) => {
if (event.key !== 'Escape' || !root.classList.contains('is-open')) return;
setOpen(false);
toggle.focus();
});
}
document.querySelectorAll('.dock').forEach(setUp);
})();
</script>
Tunnel heading
The signature: a canvas tunnel whose four walls are painted with rough condensed words in perspective, the back opening drifting on a 6s loop, with a flat extended word underneath. Beside it a pink band scrolls the wordmark and a black box holds a label, a narrow headline and short text.
Code
React For Figma<section class="hero" aria-label="Inkrun, the trades of the small press">
<div class="hero__tunnel">
<canvas class="hero__canvas" role="img" aria-label="Roll the ink, backroom press: words painted on the four walls of a tunnel that drifts, with PRESS set flat underneath"></canvas>
</div>
<div class="hero__side">
<a class="hero__marquee" href="#" aria-label="Inkrun, home">
<span class="hero__track">
<span class="hero__mark">
<svg class="hero__glyph" viewBox="0 0 24 24" aria-hidden="true">
<rect x="2" y="4" width="15" height="7" rx="3.5"></rect>
<path d="M17 7.5h3.2v5.8H11v3.2"></path>
<rect x="9" y="16" width="4" height="6.5" rx="1.4"></rect>
</svg>
<span class="hero__word">Inkrun.org</span>
</span>
<span class="hero__mark" aria-hidden="true">
<svg class="hero__glyph" viewBox="0 0 24 24" aria-hidden="true">
<rect x="2" y="4" width="15" height="7" rx="3.5"></rect>
<path d="M17 7.5h3.2v5.8H11v3.2"></path>
<rect x="9" y="16" width="4" height="6.5" rx="1.4"></rect>
</svg>
<span class="hero__word">Inkrun.org</span>
</span>
<span class="hero__mark" aria-hidden="true">
<svg class="hero__glyph" viewBox="0 0 24 24" aria-hidden="true">
<rect x="2" y="4" width="15" height="7" rx="3.5"></rect>
<path d="M17 7.5h3.2v5.8H11v3.2"></path>
<rect x="9" y="16" width="4" height="6.5" rx="1.4"></rect>
</svg>
<span class="hero__word">Inkrun.org</span>
</span>
<span class="hero__mark" aria-hidden="true">
<svg class="hero__glyph" viewBox="0 0 24 24" aria-hidden="true">
<rect x="2" y="4" width="15" height="7" rx="3.5"></rect>
<path d="M17 7.5h3.2v5.8H11v3.2"></path>
<rect x="9" y="16" width="4" height="6.5" rx="1.4"></rect>
</svg>
<span class="hero__word">Inkrun.org</span>
</span>
</span>
</a>
<div class="hero__box">
<h2 class="hero__label">What is it?</h2>
<div class="hero__main">
<h1 class="hero__heading">The trades and night classes that keep the small presses running.</h1>
<div class="hero__text">
<p>Behind every zine on a café shelf there is a backroom with a drum that needs cleaning, a guillotine that needs a steady hand and somebody who knows which paper drinks ink. Those rooms are hiring, and they would rather teach you than wait.</p>
<p>Riso shops, screen benches, binderies, distro tables. Small rooms, real people, work you can hold. Pick a trade, try a night class, and leave with a print that has your name in the corner.</p>
<p>A programme of the North Shore Small Press Guild, with help from the people who still own the machines.</p>
</div>
</div>
</div>
</div>
</section>
<style>
.hero {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: var(--edge);
padding: var(--edge);
background: var(--metal);
opacity: 0;
transition: opacity var(--time) var(--ease);
}
.hero.is-ready { opacity: 1; }
@media (min-width: 768px) {
.hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hero__tunnel { aspect-ratio: 1; }
.hero__canvas {
width: 100%;
height: 100%;
color: var(--backstage);
}
.hero__side {
display: flex;
flex-direction: column;
gap: var(--edge);
min-width: 0;
}
.hero__marquee {
display: block;
overflow: hidden;
padding: 8px 0;
border-radius: 8px;
background: var(--neon);
color: var(--backstage);
text-decoration: none;
}
@media (min-width: 1024px) {
.hero__marquee { padding: 16px 0; border-radius: var(--radius-main); }
}
.hero__marquee:focus-visible { outline: 3px solid var(--backstage); outline-offset: 3px; }
.hero__track {
display: flex;
width: max-content;
animation: hero-roll var(--hero-roll, 14.6s) linear infinite;
}
.hero.is-offscreen .hero__track { animation-play-state: paused; }
.hero__mark {
display: flex;
flex: none;
align-items: center;
gap: 0.04em;
padding-right: 0.32em;
font: 800 clamp(44px, 5.83vw, 84px)/0.9 var(--font-poster);
letter-spacing: -0.025em;
text-transform: uppercase;
white-space: nowrap;
}
.hero__glyph {
width: 0.62em;
height: 0.62em;
fill: currentColor;
}
.hero__glyph path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
.hero__word { translate: 0 0.04em; }
@keyframes hero-roll { to { transform: translateX(-50%); } }
.hero__box {
display: flex;
flex: 1;
flex-direction: column;
padding: var(--space-4);
border-radius: var(--radius-main);
background: var(--backstage);
color: var(--metal);
}
.hero__label {
margin: 0 0 var(--space-8);
font: 400 var(--t-c1)/1.1 var(--font-label);
font-stretch: calc(var(--label-width) * 1%);
text-transform: uppercase;
}
.hero__main { margin-top: auto; }
.hero__heading {
margin: 0 0 24px;
font: 400 var(--t-h2)/0.94 var(--font-label);
font-stretch: calc(var(--label-width) * 1%);
letter-spacing: -0.014em;
text-transform: uppercase;
text-wrap: balance;
}
.hero__text {
max-width: 400px;
font: 400 var(--t-text)/1.2 var(--font-body);
}
.hero__text p { margin: 0 0 1.2em; }
.hero__text p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
.hero { opacity: 1; transition: none; }
.hero__track { animation: none; }
}
</style>
<script>
(() => {
const still = matchMedia('(prefers-reduced-motion: reduce)');
const LOOP = 6;
const DEPTH = 3.2;
const SLICES = 150;
const ROLL_SPEED = 52;
function seeded(seed) {
let state = seed >>> 0;
return () => {
state = (state + 0x6d2b79f5) >>> 0;
let t = Math.imul(state ^ (state >>> 15), 1 | state);
t ^= t + Math.imul(t ^ (t >>> 7), 61 | t);
return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
};
}
function noiseField(width, height, cell, random) {
const columns = Math.ceil(width / cell) + 2;
const rows = Math.ceil(height / cell) + 2;
const values = new Float32Array(columns * rows).map(() => random() * 2 - 1);
return (x, y) => {
const gx = x / cell;
const gy = y / cell;
const ix = gx | 0;
const iy = gy | 0;
const fx = gx - ix;
const fy = gy - iy;
const at = (cx, cy) => values[cy * columns + cx];
const top = at(ix, iy) * (1 - fx) + at(ix + 1, iy) * fx;
const bottom = at(ix, iy + 1) * (1 - fx) + at(ix + 1, iy + 1) * fx;
return top * (1 - fy) + bottom * fy;
};
}
function roughen(context, width, height, seed) {
const random = seeded(seed);
const fineX = noiseField(width, height, 2.5, random);
const fineY = noiseField(width, height, 2.5, random);
const broadX = noiseField(width, height, 26, random);
const broadY = noiseField(width, height, 26, random);
const source = context.getImageData(0, 0, width, height);
const result = context.createImageData(width, height);
const from = source.data;
const to = result.data;
for (let y = 0; y < height; y++) {
for (let x = 0; x < width; x++) {
const sx = Math.min(width - 1, Math.max(0, Math.round(x + fineX(x, y) * 1.4 + broadX(x, y) * 4.5)));
const sy = Math.min(height - 1, Math.max(0, Math.round(y + fineY(x, y) * 1.4 + broadY(x, y) * 4.5)));
const index = (y * width + x) * 4;
to[index + 3] = Math.min(255, Math.max(0, (from[(sy * width + sx) * 4 + 3] - 96) * 4));
}
}
context.putImageData(result, 0, 0);
}
function lettering(text, width, height, font, ink, seed) {
const canvas = document.createElement('canvas');
canvas.width = width;
canvas.height = height;
const context = canvas.getContext('2d');
context.font = font;
if ('fontStretch' in context && font.includes('Archivo')) context.fontStretch = 'expanded';
const letters = [...text];
const sizes = letters.map((letter) => context.measureText(letter));
const gap = context.measureText('M').width * 0.06;
const advance = sizes.reduce((sum, size) => sum + size.width, 0) + gap * (letters.length - 1);
const ascent = Math.max(...sizes.map((size) => size.actualBoundingBoxAscent));
const padX = width * 0.02;
const padY = height * 0.035;
const scaleX = (width - padX * 2) / advance;
const scaleY = (height - padY * 2) / ascent;
context.fillStyle = ink;
context.setTransform(scaleX, 0, 0, scaleY, padX, height - padY);
let x = 0;
letters.forEach((letter, index) => {
context.fillText(letter, x, 0);
x += sizes[index].width + gap;
});
context.setTransform(1, 0, 0, 1, 0, 0);
roughen(context, width, height, seed);
return canvas;
}
function perspective(depth) {
const z = 1 + depth * (DEPTH - 1);
return (1 - 1 / z) / (1 - 1 / DEPTH);
}
const lerp = (a, b, t) => a + (b - a) * t;
function backRoom(width, height, seconds) {
const turn = ((seconds % LOOP) / LOOP) * Math.PI * 2;
const roomWidth = width * (0.24 + 0.02 * Math.sin(turn * 2));
const roomHeight = height * (0.26 + 0.02 * Math.sin(turn * 2 + 0.8));
const centreX = width * (0.5 + 0.14 * Math.sin(turn));
const centreY = height * (0.4 + 0.09 * Math.sin(turn * 2 + 1.1));
return {
left: centreX - roomWidth / 2,
right: centreX + roomWidth / 2,
top: centreY - roomHeight / 2,
bottom: centreY + roomHeight / 2,
};
}
function paintRows(context, texture, outerY, backY, outerLeft, outerRight, back, lettersFaceOut) {
const tw = texture.width;
const th = texture.height;
for (let i = 0; i < SLICES; i++) {
const d0 = i / SLICES;
const d1 = (i + 1) / SLICES;
const s0 = perspective(d0);
const s1 = perspective(d1);
const sMid = (s0 + s1) / 2;
const y0 = lerp(outerY, backY, s0);
const y1 = lerp(outerY, backY, s1);
const left = lerp(outerLeft, back.left, sMid);
const right = lerp(outerRight, back.right, sMid);
const sourceY = lettersFaceOut ? d0 * th : (1 - d1) * th;
const top = Math.min(y0, y1);
context.drawImage(texture, 0, sourceY, tw, (d1 - d0) * th, left, top - 0.35, right - left, Math.abs(y1 - y0) + 0.7);
}
}
function paintColumns(context, texture, outerX, backX, outerTop, outerBottom, back, readsInward) {
const tw = texture.width;
const th = texture.height;
for (let i = 0; i < SLICES; i++) {
const d0 = i / SLICES;
const d1 = (i + 1) / SLICES;
const s0 = perspective(d0);
const s1 = perspective(d1);
const sMid = (s0 + s1) / 2;
const x0 = lerp(outerX, backX, s0);
const x1 = lerp(outerX, backX, s1);
const top = lerp(outerTop, back.top, sMid);
const bottom = lerp(outerBottom, back.bottom, sMid);
const sourceX = readsInward ? d0 * tw : (1 - d1) * tw;
const left = Math.min(x0, x1);
context.drawImage(texture, sourceX, 0, (d1 - d0) * tw, th, left - 0.35, top, Math.abs(x1 - x0) + 0.7, bottom - top);
}
}
function paint(context, walls, width, height, seconds) {
context.clearRect(0, 0, width, height);
if (!walls) return;
const tunnelHeight = height * 0.845;
const back = backRoom(width, tunnelHeight, seconds);
paintRows(context, walls.ceiling, 0, back.top, 0, width, back, true);
paintRows(context, walls.floor, tunnelHeight, back.bottom, 0, width, back, false);
paintColumns(context, walls.left, 0, back.left, 0, tunnelHeight, back, true);
paintColumns(context, walls.right, width, back.right, 0, tunnelHeight, back, false);
const baseTop = height * 0.87;
context.drawImage(walls.base, 0, baseTop, width, height - baseTop);
}
function buildWalls(ink) {
const poster = '900 200px "Big Shoulders Display"';
return {
ceiling: lettering('ROLL', 1000, 700, poster, ink, 11),
left: lettering('THE', 1400, 640, poster, ink, 23),
right: lettering('INK', 1400, 640, poster, ink, 37),
floor: lettering('BACKROOM', 1300, 900, poster, ink, 41),
base: lettering('PRESS', 1400, 220, '900 200px Archivo', ink, 53),
};
}
function runTunnel(root) {
const canvas = root.querySelector('.hero__canvas');
const context = canvas.getContext('2d');
let walls = null;
let frame = 0;
let visible = false;
let started = performance.now();
const draw = (now) => paint(context, walls, canvas.clientWidth, canvas.clientHeight, (now - started) / 1000);
const fit = () => {
const density = Math.min(2, devicePixelRatio || 1);
canvas.width = Math.round(canvas.clientWidth * density);
canvas.height = Math.round(canvas.clientHeight * density);
context.setTransform(density, 0, 0, density, 0, 0);
context.imageSmoothingQuality = 'high';
draw(performance.now());
};
const tick = (now) => {
draw(now);
frame = requestAnimationFrame(tick);
};
const play = () => {
cancelAnimationFrame(frame);
if (visible && walls && !still.matches) frame = requestAnimationFrame(tick);
};
Promise.all([
document.fonts.load('900 200px "Big Shoulders Display"'),
document.fonts.load('900 200px Archivo'),
]).catch(() => null).then(() => {
walls = buildWalls(getComputedStyle(canvas).color);
started = performance.now() - 1200;
fit();
play();
});
new ResizeObserver(fit).observe(canvas);
new IntersectionObserver(([entry]) => {
visible = entry.isIntersecting;
root.classList.toggle('is-offscreen', !visible);
play();
}).observe(root);
still.addEventListener('change', play);
}
function runMarquee(root) {
const track = root.querySelector('.hero__track');
const measure = () => {
const distance = track.scrollWidth / 2;
root.style.setProperty('--hero-roll', `${(distance / ROLL_SPEED).toFixed(3)}s`);
};
new ResizeObserver(measure).observe(track);
document.fonts.ready.then(measure);
}
function reveal(root) {
requestAnimationFrame(() => requestAnimationFrame(() => root.classList.add('is-ready')));
}
document.querySelectorAll('.hero').forEach((root) => {
runTunnel(root);
runMarquee(root);
reveal(root);
});
})();
</script>
Pink voice card
A neon pink box with a halftone portrait in an ink frame and a hand-drawn oval Watch button tilted across it, a giant name, a place with a badge, a narrow job line, a story and an underlined link.
Code
React For Figma<section class="voices" aria-label="Voices">
<div class="voices__box">
<h2 class="voices__label">Voices</h2>
<div class="voices__media">
<canvas class="voices__picture" role="img" aria-label="Halftone portrait in pink dots: a printer under two bare bulbs, holding up a fresh sheet, drying prints on a line behind"></canvas>
<a class="voices__watch" href="#">
<svg class="voices__oval" viewBox="0 0 147 51" preserveAspectRatio="none" aria-hidden="true">
<path d="M19 10.2C41 3.4 97.5 0.4 127.6 6.6c17.6 3.6 20 12.6 15.8 20.4-6.2 11.4-38.4 20.6-76.4 20.2C30.4 46.8 3.4 40.4 3 26.8 2.7 15.6 22.8 7.4 52.6 4.1"></path>
</svg>
<span class="voices__watch-word">Watch</span>
</a>
</div>
<div class="voices__story">
<h3 class="voices__name">Margo</h3>
<div class="voices__place">
<p class="voices__venue">Two Rivers Riso</p>
<span class="voices__badge">Lowtown</span>
</div>
<p class="voices__role">Head printer and shop owner, eleven years on the same green drum</p>
<div class="voices__text">
<p>Margo started by folding other people's zines for free at the back of a record fair. Then somebody showed her how to load a master, and she stayed until closing. A stint in hotel laundry taught her how to keep machines alive on no budget; the drum taught her patience.</p>
<p>Today she runs a two-room shop, trains three apprentices a year and still clears the paper jams herself.</p>
<p>Filmed by Odile Marsh<br>Drawn by Saltwater Studio</p>
</div>
<a class="voices__more" href="#">All voices</a>
</div>
</div>
</section>
<style>
.voices {
padding: var(--edge);
background: var(--metal);
}
.voices__box {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 20px;
padding: var(--space-4);
border-radius: var(--radius-main);
background: var(--neon);
color: var(--backstage);
}
@media (min-width: 768px) {
.voices__box {
grid-template-columns: repeat(2, minmax(0, 1fr));
grid-template-rows: auto 1fr;
}
}
.voices__label {
grid-column: 1 / -1;
margin: 0 0 calc(var(--space-8) - 20px);
font: 400 var(--t-c1)/1.1 var(--font-label);
font-stretch: calc(var(--label-width) * 1%);
text-transform: uppercase;
}
.voices__media {
position: relative;
align-self: start;
aspect-ratio: 1;
overflow: hidden;
border: var(--outline) solid var(--backstage);
border-radius: var(--radius-main);
background: var(--backstage);
}
.voices__picture {
width: 100%;
height: 100%;
color: var(--neon);
}
.voices__watch {
position: absolute;
left: 31%;
top: 63%;
display: grid;
place-items: center;
min-width: 147px;
min-height: 51px;
padding: 14px 22px 12px;
color: var(--metal);
text-decoration: none;
rotate: -10deg;
transition: color var(--time) var(--ease);
}
.voices__oval {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
overflow: visible;
fill: transparent;
stroke: var(--metal);
stroke-width: var(--outline);
stroke-linecap: round;
vector-effect: non-scaling-stroke;
transition: fill var(--time) var(--ease), stroke var(--time) var(--ease);
}
.voices__oval path { vector-effect: non-scaling-stroke; }
.voices__watch-word {
position: relative;
font: 800 var(--t-h4)/0.9 var(--font-poster);
letter-spacing: -0.025em;
text-transform: uppercase;
}
.voices__watch:hover,
.voices__watch:focus-visible { color: var(--neon); }
.voices__watch:hover .voices__oval,
.voices__watch:focus-visible .voices__oval { fill: var(--backstage); stroke: var(--backstage); }
.voices__watch:focus-visible { outline: none; }
.voices__watch:focus-visible .voices__watch-word { text-decoration: underline 2px; text-underline-offset: 4px; }
.voices__story {
display: flex;
flex-direction: column;
min-width: 0;
}
.voices__name {
margin: -0.06em 0 0;
font: 800 var(--t-display)/0.95 var(--font-poster);
letter-spacing: -0.026em;
text-transform: uppercase;
}
.voices__place {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
gap: var(--space-2);
margin-top: 16px;
}
.voices__venue {
margin: 0;
font: 800 var(--t-h3)/0.95 var(--font-poster);
letter-spacing: -0.039em;
text-transform: uppercase;
}
.voices__badge {
padding: 5px 5px 4px;
border-radius: var(--radius-small);
background: var(--backstage);
color: var(--neon);
font: 400 var(--t-c1)/1.1 var(--font-label);
font-stretch: calc(var(--label-width) * 1%);
text-transform: uppercase;
white-space: nowrap;
}
.voices__role {
max-width: 30ch;
margin: var(--space-7) 0 0;
font: 400 var(--t-large)/0.99 var(--font-label);
font-stretch: calc(var(--label-width) * 1%);
letter-spacing: -0.014em;
text-transform: uppercase;
text-wrap: balance;
}
.voices__text {
max-width: 52ch;
margin: var(--space-7) 0 var(--space-7);
}
.voices__text p { margin: 0 0 1.2em; }
.voices__text p:last-child { margin-bottom: 0; }
.voices__more {
position: relative;
align-self: flex-start;
display: flex;
align-items: flex-end;
min-height: var(--tap);
margin-top: auto;
padding: 1px 0 var(--space-1);
color: var(--backstage);
font: 400 var(--t-c1)/1.1 var(--font-label);
font-stretch: calc(var(--label-width) * 1%);
text-decoration: none;
text-transform: uppercase;
}
.voices__more::after {
content: "";
position: absolute;
right: 0;
bottom: 0;
left: 0;
height: var(--outline);
background: var(--backstage);
transition: background-color var(--time) var(--ease);
}
.voices__more:hover::after,
.voices__more:focus-visible::after { background: var(--metal); }
.voices__more:focus-visible { outline: none; }
@media (max-width: 767.98px) {
.voices__role { max-width: none; }
}
</style>
<script>
(() => {
const clamp = (value) => Math.min(1, Math.max(0, value));
const glow = (x, y, cx, cy, spread) => Math.exp(-((x - cx) ** 2 + (y - cy) ** 2) / spread);
const inEllipse = (x, y, cx, cy, rx, ry) => ((x - cx) / rx) ** 2 + ((y - cy) / ry) ** 2;
const grain = (x, y) => {
const n = Math.sin(x * 12.9898 + y * 78.233) * 43758.5453;
return n - Math.floor(n);
};
function light(x, y) {
let value = 0.05;
value += 0.55 * glow(x, y, 0.27, 0.1, 0.03) + 0.45 * glow(x, y, 0.76, 0.06, 0.025);
value += 0.95 * glow(x, y, 0.27, 0.1, 0.0012) + 0.95 * glow(x, y, 0.76, 0.06, 0.001);
if (Math.abs(x - 0.27) < 0.004 && y < 0.08) value = 0.6;
if (Math.abs(x - 0.76) < 0.004 && y < 0.04) value = 0.6;
if (Math.abs(y - (0.2 + (x - 0.5) ** 2 * 0.2)) < 0.004) value = Math.max(value, 0.55);
for (const [left, right, top] of [[0.04, 0.17, 0.21], [0.2, 0.33, 0.215], [0.62, 0.74, 0.21], [0.78, 0.94, 0.215]]) {
if (x > left && x < right && y > top && y < top + 0.17) {
const stripe = Math.floor((y - top) / 0.03) % 2 ? 0.48 : 0.62;
value = Math.max(value, stripe - (x - left) * 0.6);
}
}
const body = inEllipse(x, y, 0.46, 1.04, 0.37, 0.37);
if (body < 1) value = 0.06 + 0.5 * clamp(0.62 - x) * clamp(1.2 - body) + 0.2 * glow(x, y, 0.3, 0.72, 0.02);
if (body > 0.9 && body < 1 && x < 0.4) value = 0.8;
const neck = Math.abs(x - 0.455) < 0.05 && y > 0.52 && y < 0.7;
if (neck) value = 0.12 + 0.55 * clamp((0.47 - x) * 8);
const hair = inEllipse(x, y, 0.47, 0.47, 0.15, 0.2);
if (hair < 1) value = hair > 0.84 && (x < 0.43 || y < 0.33) ? 0.72 - clamp(x - 0.43) * 3 : 0.05;
const face = inEllipse(x, y, 0.445, 0.47, 0.095, 0.135);
if (face < 1 && y > 0.37) {
const nx = (x - 0.445) / 0.095;
const ny = (y - 0.47) / 0.135;
value = 0.1 + 0.85 * clamp(-nx * 0.8 - ny * 0.25 + Math.sqrt(clamp(1 - face)) * 0.55);
if (Math.abs(ny + 0.05) < 0.1) value *= 0.72;
}
const sheet = x > 0.56 && x < 0.88 && y > 0.6 && y < 0.97 + (x - 0.56) * 0.1;
if (sheet) {
value = 0.96 - (y - 0.6) * 0.3 - (x - 0.56) * 0.4;
if (inEllipse(x, y, 0.72, 0.72, 0.075, 0.075) < 1) value = 0.06;
for (const top of [0.82, 0.86]) {
if (y > top && y < top + 0.018 && x > 0.6 && x < (top > 0.84 ? 0.76 : 0.84)) value = 0.08;
}
}
const hand = inEllipse(x, y, 0.575, 0.8, 0.042, 0.058);
if (hand < 1) value = 0.45 + 0.4 * clamp(1 - hand);
return clamp(value + (grain(x * 997, y * 991) - 0.5) * 0.08);
}
function halftone(canvas) {
const context = canvas.getContext('2d');
const density = Math.min(2, devicePixelRatio || 1);
const size = canvas.clientWidth;
if (!size) return;
canvas.width = Math.round(size * density);
canvas.height = Math.round(canvas.clientHeight * density);
context.setTransform(density, 0, 0, density, 0, 0);
context.clearRect(0, 0, size, canvas.clientHeight);
context.fillStyle = getComputedStyle(canvas).color;
const cell = Math.max(4.2, size / 120);
const reach = size * 1.5;
const cos = Math.SQRT1_2;
for (let u = -reach; u < reach; u += cell) {
for (let v = -reach; v < reach; v += cell) {
const x = (u * cos - v * cos) + size / 2;
const y = (u * cos + v * cos) + canvas.clientHeight / 2;
if (x < -cell || y < -cell || x > size + cell || y > canvas.clientHeight + cell) continue;
const radius = cell * 0.64 * Math.pow(light(x / size, y / canvas.clientHeight), 0.8);
if (radius < 0.35) continue;
context.beginPath();
context.arc(x, y, radius, 0, Math.PI * 2);
context.fill();
}
}
}
document.querySelectorAll('.voices').forEach((root) => {
const canvas = root.querySelector('.voices__picture');
let pending = 0;
let width = 0;
new ResizeObserver(() => {
if (canvas.clientWidth === width) return;
width = canvas.clientWidth;
cancelAnimationFrame(pending);
pending = requestAnimationFrame(() => halftone(canvas));
}).observe(canvas);
});
})();
</script>
Ruled trade list
Giant condensed trade titles on 2px rules, each with a tiny count and black course badges on the right. Hovering a row raises a white fill from its bottom edge and steps the row in.
Code
React For Figma<section class="trades" aria-labelledby="trades-heading">
<h2 class="trades__heading" id="trades-heading">The key trades of the small press</h2>
<ul class="trades__list">
<li class="trades__row">
<span class="trades__count">014</span>
<h3 class="trades__title"><a class="trades__link" href="#">Riso printing</a></h3>
<ul class="trades__badges" aria-label="Ways in">
<li class="trades__badge">Workshop</li><li class="trades__badge">Night class</li><li class="trades__badge">+3</li>
</ul>
</li>
<li class="trades__row">
<span class="trades__count">009</span>
<h3 class="trades__title"><a class="trades__link" href="#">Screen printing</a></h3>
<ul class="trades__badges" aria-label="Ways in">
<li class="trades__badge">Diploma</li><li class="trades__badge">Workshop</li><li class="trades__badge">+2</li>
</ul>
</li>
<li class="trades__row">
<span class="trades__count">006</span>
<h3 class="trades__title"><a class="trades__link" href="#">Bookbinding</a></h3>
<ul class="trades__badges" aria-label="Ways in">
<li class="trades__badge">Apprenticeship</li><li class="trades__badge">+4</li>
</ul>
</li>
<li class="trades__row">
<span class="trades__count">011</span>
<h3 class="trades__title"><a class="trades__link" href="#">Typesetting</a></h3>
<ul class="trades__badges" aria-label="Ways in">
<li class="trades__badge">Certificate</li><li class="trades__badge">Short course</li><li class="trades__badge">+1</li>
</ul>
</li>
<li class="trades__row">
<span class="trades__count">017</span>
<h3 class="trades__title"><a class="trades__link" href="#">Distro / mail order</a></h3>
<ul class="trades__badges" aria-label="Ways in">
<li class="trades__badge">Short course</li><li class="trades__badge">Certificate</li><li class="trades__badge">+3</li>
</ul>
</li>
<li class="trades__row">
<span class="trades__count">003</span>
<h3 class="trades__title"><a class="trades__link" href="#">Paper making</a></h3>
<ul class="trades__badges" aria-label="Ways in">
<li class="trades__badge">Workshop</li><li class="trades__badge">+2</li>
</ul>
</li>
<li class="trades__row">
<span class="trades__count">008</span>
<h3 class="trades__title"><a class="trades__link" href="#">Shop management</a></h3>
<ul class="trades__badges" aria-label="Ways in">
<li class="trades__badge">Night class</li><li class="trades__badge">Diploma</li><li class="trades__badge">+5</li>
</ul>
</li>
</ul>
</section>
<style>
.trades {
overflow: hidden;
padding: var(--edge) var(--edge) var(--space-8);
background: var(--metal);
color: var(--backstage);
}
.trades__heading {
margin: 0 0 var(--space-3);
font: 400 var(--t-c1)/1.1 var(--font-label);
font-stretch: calc(var(--label-width) * 1%);
text-transform: uppercase;
}
.trades__list {
margin: 0;
padding: 0;
list-style: none;
}
.trades__row {
position: relative;
isolation: isolate;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: var(--space-3);
padding: 10px 0 var(--space-3);
border-bottom: var(--outline) solid var(--backstage);
transition: padding var(--time) var(--ease);
}
.trades__row::before {
content: "";
position: absolute;
z-index: -1;
bottom: 0;
left: calc(var(--edge) * -1);
width: calc(100% + var(--edge) * 2);
height: 0;
background: var(--spot);
transition: height var(--time) var(--ease);
}
.trades__count {
flex-shrink: 0;
margin-bottom: -4px;
font: 400 var(--t-c2)/1.1 var(--font-label);
font-stretch: calc(var(--label-width) * 1%);
letter-spacing: -0.014em;
}
.trades__title {
min-width: 0;
margin: 0;
font: 800 var(--t-h1)/0.95 var(--font-poster);
letter-spacing: -0.026em;
text-transform: uppercase;
overflow-wrap: break-word;
}
.trades__link {
color: inherit;
text-decoration: none;
}
.trades__link::after {
content: "";
position: absolute;
z-index: 2;
inset: 0;
border-radius: var(--radius-small);
}
.trades__link:focus-visible { outline: none; }
.trades__link:focus-visible::after { outline: 3px solid var(--neon); outline-offset: -3px; }
.trades__badges {
display: flex;
flex-wrap: wrap;
flex-shrink: 0;
gap: var(--space-1);
margin: 0;
padding: 0;
list-style: none;
}
.trades__badge {
padding: 5px 5px 4px;
border-radius: var(--radius-small);
background: var(--backstage);
color: var(--metal);
font: 400 var(--t-c1)/1.1 var(--font-label);
font-stretch: calc(var(--label-width) * 1%);
text-transform: uppercase;
white-space: nowrap;
}
@media (min-width: 576px) {
.trades__row {
flex-direction: row;
gap: 24px;
padding: 8px 0 6px;
}
.trades__count { margin: 6px 0 0; }
.trades__badges {
align-self: center;
justify-content: flex-end;
max-width: 25%;
margin-left: auto;
}
}
@media (min-width: 768px) {
.trades__row:hover,
.trades__row:focus-within { padding-right: 8px; padding-left: 8px; }
.trades__row:hover::before,
.trades__row:focus-within::before { height: 100%; }
}
</style>
Catchphrase and tickets
A black box with a catchphrase spread across four lines word by word, a tilted oval badge and a halftone picture, with three tilted tickets in blue, pink and black piled over its lower edge. Tickets lift and level out on hover.
Code
React For Figma<section class="encore" aria-label="Find out more">
<div class="encore__box">
<h2 class="encore__label">Find out more</h2>
<div class="encore__media">
<canvas class="encore__picture" role="img" aria-label="Halftone photo of three coils of press cable hanging from hooks on a pegboard"></canvas>
</div>
<div class="encore__phrase-wrap">
<p class="encore__phrase">
<span class="encore__line"><span class="encore__word">Ready</span><span class="encore__word">to pull</span></span>
<span class="encore__line"><span class="encore__word">your</span></span>
<span class="encore__line"><span class="encore__word">first</span><span class="encore__word">real</span></span>
<span class="encore__line"><span class="encore__word">print?</span></span>
</p>
<a class="encore__badge" href="#">
<svg class="encore__oval" viewBox="0 0 181 93" preserveAspectRatio="none" aria-hidden="true">
<path d="M28 18.5C55 4.2 128 1.6 158 16.4c21 10.4 25 32.6 11.4 49.2C152 86.8 96 93 55.6 86.2 21.4 80.4 2.6 64.4 3.4 45.6 4 31.4 16.6 22.2 41.2 13.4"></path>
</svg>
<span class="encore__badge-text">Try a trade for one night</span>
</a>
</div>
</div>
<ul class="encore__tickets">
<li class="encore__ticket encore__ticket--echo">
<a class="encore__ticket-link" href="#">
<span class="encore__ticket-word">Jobs</span>
<span class="encore__stub">
<span class="encore__arrow">
<svg class="encore__ring" viewBox="0 0 58 47" preserveAspectRatio="none" aria-hidden="true"><path d="M29.6 2.4C45.2 2 56 11.6 55.6 24.2 55.2 36.8 43 45 28.4 44.6 13.8 44.2 2.4 35.4 2.6 23.2 2.8 11 14.4 2.8 29.6 2.4z"></path></svg>
<svg class="encore__icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 12h15M13 6l6 6-6 6"></path></svg>
</span>
</span>
</a>
</li>
<li class="encore__ticket encore__ticket--neon">
<a class="encore__ticket-link" href="#">
<span class="encore__ticket-word">Trades</span>
<span class="encore__stub">
<span class="encore__arrow">
<svg class="encore__ring" viewBox="0 0 58 47" preserveAspectRatio="none" aria-hidden="true"><path d="M29.6 2.4C45.2 2 56 11.6 55.6 24.2 55.2 36.8 43 45 28.4 44.6 13.8 44.2 2.4 35.4 2.6 23.2 2.8 11 14.4 2.8 29.6 2.4z"></path></svg>
<svg class="encore__icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 12h15M13 6l6 6-6 6"></path></svg>
</span>
</span>
</a>
</li>
<li class="encore__ticket encore__ticket--noir">
<a class="encore__ticket-link" href="#">
<span class="encore__ticket-word">Voices</span>
<span class="encore__stub">
<span class="encore__arrow">
<svg class="encore__ring" viewBox="0 0 58 47" preserveAspectRatio="none" aria-hidden="true"><path d="M29.6 2.4C45.2 2 56 11.6 55.6 24.2 55.2 36.8 43 45 28.4 44.6 13.8 44.2 2.4 35.4 2.6 23.2 2.8 11 14.4 2.8 29.6 2.4z"></path></svg>
<svg class="encore__icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 12h15M13 6l6 6-6 6"></path></svg>
</span>
</span>
</a>
</li>
</ul>
</section>
<style>
.encore {
overflow-x: clip;
padding: var(--edge) var(--edge) var(--space-6);
background: var(--metal);
}
.encore__box {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 20px;
padding: var(--space-6) var(--space-4) var(--space-4);
border-radius: var(--radius-main);
background: var(--backstage);
color: var(--metal);
}
@media (min-width: 768px) {
.encore__box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.encore__label {
grid-column: 1 / -1;
margin: 0;
font: 400 var(--t-c1)/1.1 var(--font-label);
font-stretch: calc(var(--label-width) * 1%);
text-transform: uppercase;
}
.encore__media {
order: 2;
align-self: end;
width: 82%;
aspect-ratio: 1;
overflow: hidden;
border-radius: var(--radius-main);
}
.encore__picture {
width: 100%;
height: 100%;
color: var(--metal);
}
.encore__phrase-wrap {
position: relative;
order: 1;
margin: 0 0 calc(96px + 8vw) auto;
width: 100%;
max-width: calc(14.2ch * 1);
font: 400 var(--t-h1-alt)/0.99 var(--font-label);
font-stretch: calc(var(--label-width) * 1%);
letter-spacing: -0.0276em;
text-transform: uppercase;
}
@media (min-width: 768px) {
.encore__media { order: 0; }
.encore__phrase-wrap { order: 0; }
}
.encore__phrase {
display: flex;
flex-direction: column;
gap: var(--space-3);
margin: 0;
}
.encore__line {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 0 var(--space-3);
}
.encore__line:nth-child(2) { justify-content: center; }
.encore__line:nth-child(4) { justify-content: flex-end; }
.encore__word { white-space: nowrap; }
.encore__badge {
position: absolute;
top: 30%;
left: -12%;
display: grid;
place-items: center;
width: 181px;
min-height: 93px;
padding: 16px 26px;
color: var(--metal);
text-decoration: none;
rotate: -10deg;
transition: color var(--time) var(--ease);
}
.encore__oval {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
overflow: visible;
fill: var(--backstage);
stroke: var(--metal);
stroke-width: var(--outline);
stroke-linecap: round;
transition: fill var(--time) var(--ease), stroke var(--time) var(--ease);
}
.encore__oval path { vector-effect: non-scaling-stroke; }
.encore__badge-text {
position: relative;
max-width: 10ch;
font: 400 var(--t-c1)/1 var(--font-label);
font-stretch: calc(var(--label-width) * 1%);
letter-spacing: 0;
text-align: center;
}
.encore__badge:hover,
.encore__badge:focus-visible { color: var(--backstage); }
.encore__badge:hover .encore__oval,
.encore__badge:focus-visible .encore__oval { fill: var(--metal); }
.encore__badge:focus-visible { outline: none; }
.encore__badge:focus-visible .encore__oval { stroke: var(--neon); }
.encore__tickets {
position: relative;
z-index: 10;
display: flex;
flex-direction: column;
align-items: center;
width: fit-content;
margin: 0 auto;
padding: 0;
list-style: none;
}
.encore__ticket {
--encore-ty: 0%;
--encore-tx: 0%;
--encore-tilt: 0deg;
margin-top: var(--encore-mt, 0);
transform: translateY(var(--encore-ty)) translateX(var(--encore-tx)) rotate(var(--encore-tilt));
transition: transform var(--time) var(--ease);
}
.encore__ticket:nth-child(1) { --encore-mt: -30%; --encore-tx: 3%; --encore-tilt: 4deg; }
.encore__ticket:nth-child(2) { --encore-mt: -6%; --encore-tx: -8%; --encore-tilt: -7deg; }
.encore__ticket:nth-child(3) { --encore-mt: -5%; --encore-tx: 9%; --encore-tilt: 3deg; }
@media (min-width: 1200px) {
.encore__ticket:nth-child(1) { --encore-tx: 0%; --encore-tilt: 5deg; }
.encore__ticket:nth-child(2) { --encore-mt: -11%; --encore-tx: -18%; --encore-tilt: -10deg; }
.encore__ticket:nth-child(3) { --encore-mt: -15%; --encore-tx: 20%; --encore-tilt: 4.5deg; }
}
@media (hover: hover) {
.encore__ticket:nth-child(1):hover { --encore-ty: -15%; --encore-tilt: 2deg; }
.encore__ticket:nth-child(2):hover { --encore-ty: -15%; --encore-tilt: -5deg; }
.encore__ticket:nth-child(3):hover { --encore-ty: -15%; --encore-tilt: 1.5deg; }
}
.encore__ticket:nth-child(1):focus-within { --encore-ty: -15%; --encore-tilt: 2deg; }
.encore__ticket:nth-child(2):focus-within { --encore-ty: -15%; --encore-tilt: -5deg; }
.encore__ticket:nth-child(3):focus-within { --encore-ty: -15%; --encore-tilt: 1.5deg; }
.encore__ticket--echo { --encore-bg: var(--echo); --encore-ink: var(--backstage); }
.encore__ticket--neon { --encore-bg: var(--neon); --encore-ink: var(--backstage); }
.encore__ticket--noir { --encore-bg: var(--backstage); --encore-ink: var(--metal); }
.encore__ticket-link {
display: flex;
align-items: stretch;
width: clamp(290px, 33vw, 470px);
min-height: clamp(104px, 11vw, 158px);
border-radius: var(--radius-main);
background: var(--encore-bg);
color: var(--encore-ink);
text-decoration: none;
}
.encore__ticket-link:focus-visible { outline: 3px solid var(--neon); outline-offset: 4px; }
.encore__ticket--neon .encore__ticket-link:focus-visible { outline-color: var(--backstage); }
.encore__ticket-word {
display: flex;
flex: 1;
align-items: center;
padding: 0 var(--space-7);
font: 800 var(--t-h3)/0.95 var(--font-poster);
letter-spacing: -0.039em;
text-transform: uppercase;
}
.encore__stub {
display: flex;
align-items: center;
padding: 0 var(--space-7);
background: linear-gradient(var(--encore-ink) 55%, transparent 0) left top / 2px 9px repeat-y;
}
.encore__arrow {
position: relative;
display: grid;
place-items: center;
width: 58px;
height: 47px;
}
.encore__ring {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
overflow: visible;
fill: transparent;
stroke: var(--encore-ink);
stroke-width: var(--outline);
transition: fill var(--time) var(--ease), stroke var(--time) var(--ease);
}
.encore__ring path { vector-effect: non-scaling-stroke; }
.encore__icon {
position: relative;
width: 24px;
height: 24px;
fill: none;
stroke: var(--encore-ink);
stroke-width: 2.4;
stroke-linecap: round;
stroke-linejoin: round;
transition: stroke var(--time) var(--ease);
}
.encore__ticket:hover .encore__ring,
.encore__ticket:focus-within .encore__ring { fill: var(--encore-ink); }
.encore__ticket:hover .encore__icon,
.encore__ticket:focus-within .encore__icon { stroke: var(--encore-bg); }
@media (min-width: 768px) and (max-width: 1199.98px) {
.encore__badge { top: 18%; left: -52%; }
}
@media (max-width: 575.98px) {
.encore__ticket:nth-child(2) { --encore-tx: -5%; }
.encore__ticket:nth-child(3) { --encore-tx: 5%; }
.encore__badge { position: relative; top: auto; left: auto; margin: var(--space-5) 0 0 auto; }
}
</style>
<script>
(() => {
const clamp = (value) => Math.min(1, Math.max(0, value));
const grain = (x, y) => {
const n = Math.sin(x * 12.9898 + y * 78.233) * 43758.5453;
return n - Math.floor(n);
};
function coil(x, y, cx, cy, radius, thickness) {
const dx = x - cx;
const dy = (y - cy) * 1.12;
const distance = Math.hypot(dx, dy);
const inside = (distance - (radius - thickness)) / thickness;
if (inside < 0 || inside > 1) return -1;
const facing = clamp(-(dx / distance) * 0.6 - (dy / distance) * 0.75);
const loops = Math.abs(Math.sin(inside * Math.PI * 6)) ** 0.45;
const roundness = Math.sin(inside * Math.PI);
return clamp((0.3 + 0.75 * facing) * (0.45 + 0.55 * roundness) * (0.2 + 0.8 * loops));
}
function light(x, y) {
let value = 0.04 + 0.22 * clamp(1 - Math.hypot(x - 0.2, y - 0.15) * 1.4);
const peg = ((x * 18) % 1 + 1) % 1;
const row = ((y * 18) % 1 + 1) % 1;
if (Math.hypot(peg - 0.5, row - 0.5) < 0.16) value = 0;
for (const [cx, cy, radius, thickness, hook] of [[0.3, 0.42, 0.22, 0.1, 0.16], [0.74, 0.35, 0.17, 0.08, 0.14], [0.58, 0.8, 0.26, 0.12, 0.5]]) {
if (Math.abs(x - cx) < 0.012 && y > hook && y < cy - radius / 1.12 + 0.02) value = 0.75 - (x - cx) * 20;
if (Math.abs(y - hook) < 0.012 && Math.abs(x - cx) < 0.03) value = 0.85;
const ring = coil(x, y, cx, cy, radius, thickness);
if (ring >= 0) value = ring;
}
return clamp(value + (grain(x * 991, y * 997) - 0.5) * 0.08);
}
function halftone(canvas) {
const width = canvas.clientWidth;
const height = canvas.clientHeight;
if (!width) return;
const context = canvas.getContext('2d');
const density = Math.min(2, devicePixelRatio || 1);
canvas.width = Math.round(width * density);
canvas.height = Math.round(height * density);
context.setTransform(density, 0, 0, density, 0, 0);
context.clearRect(0, 0, width, height);
context.fillStyle = getComputedStyle(canvas).color;
const cell = Math.max(4, width / 110);
const reach = Math.max(width, height) * 1.5;
const cos = Math.SQRT1_2;
for (let u = -reach; u < reach; u += cell) {
for (let v = -reach; v < reach; v += cell) {
const x = (u - v) * cos + width / 2;
const y = (u + v) * cos + height / 2;
if (x < -cell || y < -cell || x > width + cell || y > height + cell) continue;
const radius = cell * 0.64 * Math.pow(light(x / width, y / height), 0.8);
if (radius < 0.35) continue;
context.beginPath();
context.arc(x, y, radius, 0, Math.PI * 2);
context.fill();
}
}
}
document.querySelectorAll('.encore').forEach((root) => {
const canvas = root.querySelector('.encore__picture');
let width = 0;
let pending = 0;
new ResizeObserver(() => {
if (canvas.clientWidth === width) return;
width = canvas.clientWidth;
cancelAnimationFrame(pending);
pending = requestAnimationFrame(() => halftone(canvas));
}).observe(canvas);
});
})();
</script>
Wave footer
A canvas slogan that swells and pinches like a travelling sound wave, credit columns with small narrow labels, a row of vertical contact strips and a copyright line, padded to clear the floating nav.
Code
React For Figma<footer class="footer">
<div class="footer__wave">
<canvas class="footer__canvas" role="img" aria-label="Pull prints after hours, set in rough condensed capitals that swell and pinch like a sound wave"></canvas>
</div>
<div class="footer__inner">
<div class="footer__credits">
<div class="footer__group">
<h3 class="footer__title">Run by</h3>
<ul class="footer__names">
<li><a class="footer__name" href="#">North Shore<br>Small Press Guild</a></li>
</ul>
</div>
<div class="footer__group">
<h3 class="footer__title">With money from</h3>
<ul class="footer__names">
<li><a class="footer__name" href="#">Harbour Arts<br>Council</a></li>
</ul>
</div>
<div class="footer__group">
<h3 class="footer__title">Thanks to our shops and friends</h3>
<ul class="footer__names footer__names--grid">
<li><a class="footer__name" href="#">Two Rivers Riso</a></li>
<li><a class="footer__name" href="#">Saltwater Studio</a></li>
<li><a class="footer__name" href="#">Low Tide Bindery</a></li>
<li><a class="footer__name" href="#">Paper Lung</a></li>
<li><a class="footer__name" href="#">Night Bus Distro</a></li>
<li><a class="footer__name" href="#">Odile Marsh</a></li>
</ul>
</div>
</div>
<ul class="footer__strips" aria-label="Contact">
<li><a class="footer__strip" href="#"><svg class="footer__icon" viewBox="0 0 20 20" aria-hidden="true"><rect x="3" y="3" width="14" height="14" rx="4"></rect><circle cx="10" cy="10" r="3.2"></circle></svg><span class="footer__strip-word">Instagram</span></a></li>
<li><a class="footer__strip" href="#"><svg class="footer__icon" viewBox="0 0 20 20" aria-hidden="true"><path d="M3.5 4.5h13v8.5H9l-4 3v-3H3.5z"></path></svg><span class="footer__strip-word">Mastodon</span></a></li>
<li><a class="footer__strip" href="#"><svg class="footer__icon" viewBox="0 0 20 20" aria-hidden="true"><rect x="2.5" y="4.5" width="15" height="11" rx="1.5"></rect><path d="M3 5.5l7 5.5 7-5.5"></path></svg><span class="footer__strip-word">Newsletter</span></a></li>
<li><a class="footer__strip" href="#"><svg class="footer__icon" viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="3.4"></circle><path d="M13.4 10v1.4a2.3 2.3 0 0 0 4.6 0V10a8 8 0 1 0-3.2 6.4"></path></svg><span class="footer__strip-word">hello@inkrun.org</span></a></li>
<li><a class="footer__strip" href="#"><svg class="footer__icon" viewBox="0 0 20 20" aria-hidden="true"><path d="M5 2.5h3l1.4 4-2 1.3a9 9 0 0 0 4.8 4.8l1.3-2 4 1.4v3a2 2 0 0 1-2 2A14.5 14.5 0 0 1 3 4.5a2 2 0 0 1 2-2z"></path></svg><span class="footer__strip-word">514-555-0199</span></a></li>
</ul>
</div>
<div class="footer__base">
<p class="footer__small">© 2026, all rights reserved</p>
<p class="footer__small">North Shore Small Press Guild</p>
</div>
</footer>
<style>
.footer {
padding: var(--edge) var(--edge) 92px;
background: var(--metal);
color: var(--backstage);
}
.footer__wave { aspect-ratio: 2.18 / 1; }
.footer__canvas {
width: 100%;
height: 100%;
color: var(--backstage);
}
.footer__inner {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: space-between;
gap: var(--space-8) var(--space-5);
margin-top: max(var(--space-8), 5.7vw);
}
.footer__credits {
display: flex;
flex-wrap: wrap;
gap: var(--space-5) max(var(--space-8), 5.7vw);
}
.footer__title {
margin: 0 0 var(--space-5);
font: 400 var(--t-c2)/1.1 var(--font-label);
font-stretch: calc(var(--label-width) * 1%);
letter-spacing: -0.014em;
text-transform: uppercase;
}
.footer__names {
display: flex;
flex-direction: column;
gap: var(--space-2);
margin: 0;
padding: 0;
list-style: none;
}
.footer__names--grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, auto));
gap: var(--space-2) var(--space-5);
}
.footer__name {
display: flex;
align-items: center;
min-height: var(--tap);
border-radius: var(--radius-small);
color: inherit;
font: 600 14px/1.1 var(--font-body);
letter-spacing: 0.06em;
text-decoration: none;
text-transform: uppercase;
transition: opacity var(--time) var(--ease);
}
.footer__strips {
display: flex;
margin: 0;
padding: 0;
list-style: none;
}
.footer__strip {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-2);
width: 46px;
min-height: 168px;
padding: 0 0 var(--space-2);
border-left: var(--outline) solid var(--backstage);
color: inherit;
text-decoration: none;
transition: opacity var(--time) var(--ease);
}
.footer__strips li:last-child .footer__strip { border-right: var(--outline) solid var(--backstage); }
.footer__icon {
flex: none;
width: 20px;
height: 20px;
fill: none;
stroke: currentColor;
stroke-width: 1.8;
stroke-linejoin: round;
stroke-linecap: round;
}
.footer__strip-word {
font: 800 var(--t-c2)/1 var(--font-poster);
letter-spacing: -0.01em;
text-transform: uppercase;
white-space: nowrap;
writing-mode: vertical-rl;
}
@media (hover: hover) {
.footer__name:hover,
.footer__strip:hover { opacity: 0.6; }
}
.footer__name:focus-visible,
.footer__strip:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; }
.footer__base {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: var(--space-3) var(--space-8);
margin-top: var(--space-8);
}
.footer__small {
margin: 0;
font: 400 var(--t-c2)/1.1 var(--font-label);
font-stretch: calc(var(--label-width) * 1%);
text-transform: uppercase;
}
@media (max-width: 649.98px) {
.footer__strips { width: 100%; justify-content: space-between; }
.footer__strip { width: auto; flex: 1; }
.footer__strips li { flex: 1; }
}
</style>
<script>
(() => {
const still = matchMedia('(prefers-reduced-motion: reduce)');
const LOOP = 6;
const COLUMNS = 260;
const SLOGAN = 'PULL PRINTS AFTER HOURS';
function seeded(seed) {
let state = seed >>> 0;
return () => {
state = (state + 0x6d2b79f5) >>> 0;
let t = Math.imul(state ^ (state >>> 15), 1 | state);
t ^= t + Math.imul(t ^ (t >>> 7), 61 | t);
return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
};
}
function noiseField(width, height, cell, random) {
const columns = Math.ceil(width / cell) + 2;
const values = new Float32Array(columns * (Math.ceil(height / cell) + 2)).map(() => random() * 2 - 1);
return (x, y) => {
const gx = x / cell;
const gy = y / cell;
const ix = gx | 0;
const iy = gy | 0;
const fx = gx - ix;
const fy = gy - iy;
const at = (cx, cy) => values[cy * columns + cx];
const top = at(ix, iy) * (1 - fx) + at(ix + 1, iy) * fx;
const bottom = at(ix, iy + 1) * (1 - fx) + at(ix + 1, iy + 1) * fx;
return top * (1 - fy) + bottom * fy;
};
}
function roughen(context, width, height) {
const random = seeded(71);
const fineX = noiseField(width, height, 2.5, random);
const fineY = noiseField(width, height, 2.5, random);
const broadX = noiseField(width, height, 26, random);
const broadY = noiseField(width, height, 26, random);
const source = context.getImageData(0, 0, width, height);
const result = context.createImageData(width, height);
for (let y = 0; y < height; y++) {
for (let x = 0; x < width; x++) {
const sx = Math.min(width - 1, Math.max(0, Math.round(x + fineX(x, y) * 1.4 + broadX(x, y) * 4.5)));
const sy = Math.min(height - 1, Math.max(0, Math.round(y + fineY(x, y) * 1.4 + broadY(x, y) * 4.5)));
result.data[(y * width + x) * 4 + 3] = Math.min(255, Math.max(0, (source.data[(sy * width + sx) * 4 + 3] - 96) * 4));
}
}
context.putImageData(result, 0, 0);
}
function lettering(ink) {
const canvas = document.createElement('canvas');
canvas.width = 2000;
canvas.height = 900;
const context = canvas.getContext('2d');
context.font = '900 200px "Big Shoulders Display"';
const letters = [...SLOGAN];
const sizes = letters.map((letter) => context.measureText(letter));
const gap = context.measureText('M').width * 0.08;
const advance = sizes.reduce((sum, size) => sum + size.width, 0) + gap * (letters.length - 1);
const ascent = context.measureText('H').actualBoundingBoxAscent;
const pad = 10;
context.fillStyle = ink;
context.setTransform((canvas.width - pad * 2) / advance, 0, 0, (canvas.height - pad * 2) / ascent, pad, canvas.height - pad);
let x = 0;
letters.forEach((letter, index) => {
context.fillText(letter, x, 0);
x += sizes[index].width + gap;
});
context.setTransform(1, 0, 0, 1, 0, 0);
roughen(context, canvas.width, canvas.height);
return canvas;
}
function paint(context, texture, width, height, seconds) {
context.clearRect(0, 0, width, height);
if (!texture) return;
const phase = (seconds % LOOP) / LOOP;
for (let i = 0; i < COLUMNS; i++) {
const x0 = (i / COLUMNS) * width;
const x1 = ((i + 1) / COLUMNS) * width;
const across = (i + 0.5) / COLUMNS;
const swell = 0.5 + 0.5 * Math.cos(Math.PI * 2 * (across * 1.15 + phase));
const columnHeight = height * (0.36 + 0.64 * swell);
context.drawImage(texture, (i / COLUMNS) * texture.width, 0, texture.width / COLUMNS, texture.height,
x0 - 0.3, (height - columnHeight) / 2, x1 - x0 + 0.6, columnHeight);
}
}
function run(root) {
const canvas = root.querySelector('.footer__canvas');
const context = canvas.getContext('2d');
let texture = null;
let frame = 0;
let visible = false;
const draw = (now) => paint(context, texture, canvas.clientWidth, canvas.clientHeight, now / 1000);
const fit = () => {
const density = Math.min(2, devicePixelRatio || 1);
canvas.width = Math.round(canvas.clientWidth * density);
canvas.height = Math.round(canvas.clientHeight * density);
context.setTransform(density, 0, 0, density, 0, 0);
context.imageSmoothingQuality = 'high';
draw(performance.now());
};
const tick = (now) => {
draw(now);
frame = requestAnimationFrame(tick);
};
const play = () => {
cancelAnimationFrame(frame);
if (visible && texture && !still.matches) frame = requestAnimationFrame(tick);
};
document.fonts.load('900 200px "Big Shoulders Display"').catch(() => null).then(() => {
texture = lettering(getComputedStyle(canvas).color);
fit();
play();
});
new ResizeObserver(fit).observe(canvas);
new IntersectionObserver(([entry]) => {
visible = entry.isIntersecting;
play();
}).observe(canvas);
still.addEventListener('change', play);
}
document.querySelectorAll('.footer').forEach(run);
})();
</script>
Style
- --metal #e4e4e4
- --backstage #000002
- --neon #ff60dd
- --echo #c6def8
- --spot #ffffff
Type
- Big Shoulders Display 800 to 900 for trade titles, names, nav words, ticket words, the tunnel lettering, stands in for a licensed worn condensed gothic (Early Edition JNL); measured widths match within 5%
- League Gothic at width 86 for box headlines, labels, badges, counts, the spread catchphrase, the footer wave, stands in for a licensed very narrow display grotesque (Harber); width axis set to 86 so line lengths match the source
- Dosis 400 for running text, stands in for the same rounded small sans the source uses, at 16px on a 1.2 line
- Archivo 900 at width 125 for the one flat word under the tunnel, stands in for an extended black display face used once, under the animated heading
Motion
- Everything that changes state uses one timing: 0.4s on the plain CSS ease, for colour, fill, stroke, padding and tilt alike.
- On load the page content fades in from nothing over 0.4s ease while the floating nav is already in place.
- The tunnel heading loops every 6s: the back opening drifts on a figure-eight and breathes in size, and the four walls of rough lettering stretch with it in true perspective; it stops off screen.
- The pink wordmark band scrolls left at a constant 52 px per second, linear, forever, and pauses off screen.
- Nav words fill with neon pink on hover over 0.4s; on phones a pink Menu button slides a metal panel of huge words up from the bottom over 0.3s.
- A trade row on hover fills with white rising from its bottom edge and its contents step in 8px from both sides, both over 0.4s.
- Hand-drawn oval buttons fill their outline with ink and turn their word pink over 0.4s.
- Tilted tickets lift by 15% of their height and ease toward level over 0.4s on hover while their round arrow button fills black.
- The footer slogan swells and pinches like a sound wave travelling left, one cycle every 6s, and stops off screen.
Rules
- The page is flat metal grey (#e4e4e4); everything sits in rounded boxes (16px) that are black, neon pink or pale blue, 20px apart and 20px from the edges.
- Type is uppercase everywhere except running text; two condensed faces carry the whole hierarchy and line height stays at 0.85 to 0.9.
- Labels sit alone in the top-left corner of each box; the real content drops to the bottom of the box, leaving a deliberate empty middle.
- Pictures are two-colour halftone, ink dots on black, inside a 2px ink border with a 16px radius.
- Small black badges with 4px corners hold course types and places; counts are tiny three-digit numbers hung at the top left of a giant title.
- Buttons are wobbly hand-drawn ovals with a 2px stroke, tilted about ten degrees, never perfect pills.
- Big lists are ruled with 2px ink lines and titles run as large as the width allows.
- Calls to action are tickets: tilted cards with a dashed tear line before a round arrow, piled across the edge of the box above.
- Navigation is one small pill floating at the bottom centre, outlined in a 1px ink line, with the wordmark on a black plate.
base.css
/* Fonts: free Google Fonts that stand in for the site's faces. */
@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@800;900&family=League+Gothic:wdth@75..100&family=Dosis:wght@400;600&family=Archivo:wdth,wght@125,900&display=swap");
:root {
--metal: #e4e4e4; /* page ground, nav pill, light text on black */
--backstage: #000002; /* ink: text, outlines, black boxes, badges */
--neon: #ff60dd; /* pink: marquee box, voices card, nav hover, active ticket */
--echo: #c6def8; /* pale blue: one ticket, cool accent */
--spot: #ffffff; /* white: the fill that rises behind a hovered trade row */
--font-poster: "Big Shoulders Display", "Arial Narrow", sans-serif; /* heavy condensed caps: trade titles, names, nav, tickets */
--font-label: "League Gothic", "Arial Narrow", sans-serif; /* very narrow caps: headlines, labels, badges, catchphrase */
--font-body: "Dosis", "Trebuchet MS", sans-serif; /* rounded small running text */
--font-wide: "Archivo", "Arial Black", sans-serif; /* extended black caps, only the flat word under the tunnel */
--label-width: 91.5; /* width axis of the narrow face: with the 0.907 size below, caps and line lengths both match the source */
/* Sizes are the source's own clamps, multiplied so the stand-in faces reach the source's cap heights:
poster face x0.95 (cap 0.80 vs 0.76), narrow face x0.907 (cap 0.735 vs 0.667). Line heights in parts are divided by the same factor. */
--t-display: calc(clamp(90px, calc(11.905vw - 1.43px), 170px) * 0.95); /* a person's name, poster face, 0.95 line */
--t-h1: calc(clamp(50px, calc(13.393vw - 52.86px), 140px) * 0.95); /* trade titles, poster face, 0.95 line */
--t-h1-alt: calc(max(80px, 9.72vw) * 0.907); /* the spread catchphrase, narrow face, 0.99 line */
--t-h2: calc(clamp(50px, calc(4.762vw + 13.43px), 82px) * 0.907); /* box headline, narrow face, 0.94 line */
--t-h3: calc(clamp(30px, calc(3.423vw + 3.71px), 53px) * 0.95); /* place names, ticket words, poster face, 0.95 line */
--t-large: calc(clamp(35px, calc(2.232vw + 17.86px), 50px) * 0.907); /* job line, narrow face, 0.99 line */
--t-h4: calc(clamp(24px, calc(0.595vw + 19.43px), 28px) * 0.95); /* nav and button words, poster face, 0.9 line */
--t-c1: calc(clamp(24px, calc(0.595vw + 19.43px), 28px) * 0.907); /* labels and badges, narrow face, 1.1 line */
--t-c2: calc(clamp(17px, calc(0.595vw + 12.43px), 21px) * 0.907); /* counts and small credits, narrow face, 1.1 line */
--t-text: 16px; /* running text, 1.2 line */
--edge: clamp(12px, 1.39vw, 20px); /* page side padding */
--space-1: 4px; /* badge gap, tight */
--space-2: 8px; /* inside the nav pill */
--space-3: 12px; /* between rows in a list */
--space-4: 16px; /* box padding, gap between boxes */
--space-5: 24px; /* gaps in rows */
--space-6: 28px; /* top of the black box */
--space-7: 36px; /* inside tickets */
--space-8: 40px; /* box header to content */
--tap: 44px; /* smallest tappable size */
--radius-small: 4px; /* badges, logo plate, card links */
--radius-main: 16px; /* boxes, pictures, nav pill, tickets */
--outline: 2px; /* box and picture borders, underline links */
--outline-thin: 1px; /* the nav pill */
--ease: ease; /* every transition on the source uses the plain CSS ease */
--time: 0.4s; /* colour, fill, padding, tilt: one duration for everything */
--time-panel: 0.3s; /* the phone menu sliding up */
--loop: 6s; /* one cycle of the tunnel and the footer wave */
}
@media (min-width: 768px) {
:root {
--space-1: 8px; /* badge gap, tight */
--space-2: 12px; /* inside the nav pill */
--space-3: 16px; /* between rows in a list */
--space-5: 32px; /* gaps in rows */
--space-6: 40px; /* top of the black box */
--space-7: 48px; /* inside tickets */
--space-8: 64px; /* box header to content */
}
}
*, *::before, *::after { box-sizing: border-box; }
body {
margin: 0;
background: var(--metal);
color: var(--backstage);
font: 400 var(--t-text)/1.2 var(--font-body);
-webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
For your agent
Use the kitbash MCP server at https://kitbash.me/mcp. Call get_pack("backroom-tunnel"), 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