Amber Swash Darkroom
A pitch-black page lit by one amber serif, where pictures slip into the letters of the headline and drifting project cards float over a blurred glow of their own colours. Suits photographers, directors, film studios and anyone whose work is shown one frame at a time.
Parts
Thumbnail ring loader
A tilted ellipse of small pictures orbiting a counting italic 'Loading' line that turns into an enter button at 100%.
Code
React For Figma<section class="loader" aria-label="Loading">
<div class="loader__ring">
<img class="loader__thumb" src="assets/half-door.jpg" alt="" width="64" height="76">
<img class="loader__thumb" src="assets/yellow-dancers.jpg" alt="" width="64" height="76">
<img class="loader__thumb" src="assets/moulin.jpg" alt="" width="64" height="76">
<img class="loader__thumb" src="assets/acrobats.jpg" alt="" width="64" height="76">
<img class="loader__thumb" src="assets/nocturne.jpg" alt="" width="64" height="76">
<img class="loader__thumb" src="assets/self-portrait.jpg" alt="" width="64" height="76">
<img class="loader__thumb" src="assets/ballet.jpg" alt="" width="64" height="76">
<img class="loader__thumb" src="assets/laundress.jpg" alt="" width="64" height="76">
<img class="loader__thumb" src="assets/poster-dancer.jpg" alt="" width="64" height="76">
<img class="loader__thumb" src="assets/half-door.jpg" alt="" width="64" height="76">
<img class="loader__thumb" src="assets/moulin.jpg" alt="" width="64" height="76">
<img class="loader__thumb" src="assets/yellow-dancers.jpg" alt="" width="64" height="76">
<img class="loader__thumb" src="assets/nocturne.jpg" alt="" width="64" height="76">
<img class="loader__thumb" src="assets/acrobats.jpg" alt="" width="64" height="76">
</div>
<p class="loader__count" aria-live="polite"><em class="loader__word">Loading</em> <span class="loader__num">0</span>%</p>
<a class="loader__enter" href="#">Enter the reel</a>
</section>
<style>
.loader {
position: relative;
display: grid;
place-items: center;
height: clamp(30rem, 52vw, 44rem);
overflow: hidden;
background: var(--paper);
color: var(--amber);
}
.loader__ring {
position: absolute;
inset: 0;
}
.loader__thumb {
position: absolute;
left: 50%;
top: 50%;
width: clamp(1.8rem, 3.4vw, 3.2rem);
aspect-ratio: 5 / 6;
height: auto;
object-fit: cover;
filter: sepia(0.2) saturate(1.15) contrast(1.05);
opacity: 0;
transition: opacity var(--fade) var(--ease);
will-change: transform;
}
.loader__thumb.is-in {
opacity: 1;
}
.loader__count {
position: relative;
margin: 0;
font-family: var(--font-display);
font-size: var(--text-l);
font-weight: 300;
letter-spacing: 0.01em;
transition: opacity var(--fade) var(--ease);
}
.loader__word {
font-style: italic;
}
.loader__enter {
position: absolute;
left: 50%;
top: 50%;
display: inline-grid;
place-items: center;
min-width: 9rem;
min-height: var(--tap);
padding: 0 var(--space-l);
border: var(--rule) solid var(--amber);
border-radius: var(--radius-pill);
color: var(--amber);
font-size: var(--text-s);
letter-spacing: var(--label-track);
text-decoration: none;
text-transform: uppercase;
opacity: 0;
pointer-events: none;
translate: -50% -50%;
transition: opacity var(--fade) var(--ease), background-color var(--quick) var(--ease), color var(--quick) var(--ease);
}
.loader.is-done .loader__count {
opacity: 0;
}
.loader.is-done .loader__enter {
opacity: 1;
pointer-events: auto;
}
.loader__enter:hover,
.loader__enter:focus-visible {
background: var(--amber);
color: var(--paper);
outline: none;
}
</style>
<script>
(() => {
const reduce = matchMedia('(prefers-reduced-motion: reduce)').matches;
for (const root of document.querySelectorAll('.loader')) {
const thumbs = [...root.querySelectorAll('.loader__thumb')];
const num = root.querySelector('.loader__num');
const n = thumbs.length;
const start = performance.now();
const fill = 3000; // ms to reach 100%
let visible = true;
let frame = 0;
const place = (t) => {
const w = root.clientWidth;
const h = root.clientHeight;
const rx = Math.min(w * 0.3, 300);
const ry = Math.min(h * 0.12, 70);
const spin = reduce ? 0 : t * 0.00012;
thumbs.forEach((img, i) => {
const a = (i / n) * Math.PI * 2 + spin;
const x = Math.cos(a) * rx;
const y = Math.sin(a) * ry;
const depth = (Math.sin(a) + 1) / 2; // 0 back, 1 front
const s = 0.7 + depth * 0.45;
img.style.transform = `translate(-50%, -50%) translate(${x.toFixed(1)}px, ${y.toFixed(1)}px) rotate(${(-8 + Math.cos(a) * 6).toFixed(1)}deg) scale(${s.toFixed(3)})`;
img.style.zIndex = String(Math.round(depth * 10));
});
};
const tick = (now) => {
const p = Math.min(1, (now - start) / fill);
const eased = 1 - Math.pow(1 - p, 3);
num.textContent = String(Math.round(eased * 100));
const shown = Math.ceil(eased * n);
thumbs.forEach((img, i) => img.classList.toggle('is-in', i < Math.max(shown, 1)));
if (p >= 1) root.classList.add('is-done');
place(now);
if (visible && !reduce) frame = requestAnimationFrame(tick);
};
if (reduce) {
num.textContent = '100';
thumbs.forEach((img) => img.classList.add('is-in'));
root.classList.add('is-done');
place(0);
addEventListener('resize', () => place(0));
continue;
}
new IntersectionObserver(([entry]) => {
visible = entry.isIntersecting;
cancelAnimationFrame(frame);
if (visible) frame = requestAnimationFrame(tick);
}).observe(root);
root.querySelector('.loader__enter').addEventListener('click', (e) => e.preventDefault());
}
})();
</script>
Corner menu bar
Small uppercase links in the corners with the italic wordmark centred; 'Works +' opens a ruled panel of projects with a hover preview.
Code
React For Figma<header class="nav">
<div class="nav__bar">
<div class="nav__side">
<button class="nav__works" type="button" aria-expanded="false" aria-controls="nav-panel">
<span class="nav__works-label">Works</span>
<span class="nav__plus" aria-hidden="true"></span>
</button>
<a class="nav__link nav__link--wide" href="#">Reel</a>
</div>
<a class="nav__wordmark" href="#" aria-label="Marrow & Moth, home">marrow&moth</a>
<nav class="nav__side nav__side--end" aria-label="Main">
<a class="nav__link" href="#">About</a>
<a class="nav__link" href="#">Contact</a>
</nav>
</div>
<div class="nav__panel" id="nav-panel">
<ol class="nav__list">
<li class="nav__item">
<a class="nav__entry" href="#">
<span class="nav__no">01</span>
<span class="nav__title"><em>Half-Door</em> Sessions</span>
<span class="nav__client">Lantern Quarterly</span>
<img class="nav__peek" src="assets/half-door.jpg" alt="" width="200" height="240" loading="lazy">
</a>
</li>
<li class="nav__item">
<a class="nav__entry" href="#">
<span class="nav__no">02</span>
<span class="nav__title"><em>Saffron</em> Wings</span>
<span class="nav__client">Opal Theatre</span>
<img class="nav__peek" src="assets/yellow-dancers.jpg" alt="" width="200" height="240" loading="lazy">
</a>
</li>
<li class="nav__item">
<a class="nav__entry" href="#">
<span class="nav__no">03</span>
<span class="nav__title"><em>Blue Hour</em> Regatta</span>
<span class="nav__client">Harbour Line</span>
<img class="nav__peek" src="assets/nocturne.jpg" alt="" width="200" height="240" loading="lazy">
</a>
</li>
<li class="nav__item">
<a class="nav__entry" href="#">
<span class="nav__no">04</span>
<span class="nav__title"><em>Last</em> Orders</span>
<span class="nav__client">Velvet Room Records</span>
<img class="nav__peek" src="assets/moulin.jpg" alt="" width="200" height="240" loading="lazy">
</a>
</li>
</ol>
</div>
</header>
<style>
.nav {
position: relative;
z-index: 5;
background: var(--paper);
color: var(--amber);
font-family: var(--font-body);
}
.nav__bar {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
padding: var(--space-s) var(--edge);
}
.nav__side {
display: flex;
align-items: center;
gap: clamp(0.5rem, 2vw, 1.5rem);
}
.nav__side--end {
justify-content: flex-end;
}
.nav__link,
.nav__works {
display: inline-flex;
align-items: center;
gap: 0.6rem;
min-height: var(--tap);
padding: 0;
border: 0;
background: none;
color: inherit;
font: 400 var(--text-s)/1 var(--font-body);
letter-spacing: var(--label-track);
text-decoration: none;
text-transform: uppercase;
cursor: pointer;
transition: opacity var(--fade) var(--ease);
}
.nav__link {
justify-content: center;
min-width: var(--tap);
}
.nav__link:hover,
.nav__works:hover {
opacity: 0.6;
}
.nav__link:focus-visible,
.nav__works:focus-visible,
.nav__wordmark:focus-visible,
.nav__entry:focus-visible {
outline: var(--rule) solid var(--amber);
outline-offset: 4px;
}
.nav__plus {
position: relative;
width: 0.8rem;
height: 0.8rem;
}
.nav__plus::before,
.nav__plus::after {
content: "";
position: absolute;
left: 0;
top: 50%;
width: 100%;
height: var(--rule);
background: currentColor;
transition: transform var(--fade) var(--ease);
}
.nav__plus::after {
transform: rotate(90deg);
}
.nav.is-open .nav__plus::before {
transform: rotate(45deg);
}
.nav.is-open .nav__plus::after {
transform: rotate(135deg);
}
.nav__wordmark {
display: inline-flex;
align-items: baseline;
min-height: var(--tap);
padding-top: 0.2rem;
color: inherit;
font: italic 500 clamp(1.8rem, 3vw, 2.4rem)/1 var(--font-display);
letter-spacing: -0.03em;
text-decoration: none;
}
.nav__panel {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows var(--slow) var(--ease);
}
.nav.is-open .nav__panel {
grid-template-rows: 1fr;
}
.nav__list {
min-height: 0;
margin: 0;
padding: 0 var(--edge);
overflow: hidden;
list-style: none;
}
.nav__item {
border-top: var(--rule) solid var(--amber-dim);
}
.nav__item:last-child {
margin-bottom: var(--space-l);
border-bottom: var(--rule) solid var(--amber-dim);
}
.nav__entry {
position: relative;
display: grid;
grid-template-columns: 3rem 1fr auto;
align-items: baseline;
gap: var(--gap);
min-height: var(--tap);
padding: var(--space-m) 0;
color: inherit;
text-decoration: none;
}
.nav__no,
.nav__client {
font-size: var(--text-s);
letter-spacing: var(--label-track);
text-transform: uppercase;
}
.nav__client {
color: var(--cream-dim);
}
.nav__title {
font-family: var(--font-display);
font-size: var(--text-l);
font-weight: 300;
text-transform: uppercase;
}
.nav__title em {
font-weight: 400;
text-transform: none;
}
.nav__peek {
position: absolute;
right: 22%;
top: 50%;
width: 7rem;
aspect-ratio: 5 / 6;
height: auto;
object-fit: cover;
filter: sepia(0.2) saturate(1.15);
opacity: 0;
pointer-events: none;
translate: 0 -50%;
scale: 0.9;
transition: opacity var(--fade) var(--ease), scale var(--fade) var(--ease);
}
.nav__entry:hover .nav__peek,
.nav__entry:focus-visible .nav__peek {
opacity: 1;
scale: 1;
}
@media (max-width: 40rem) {
.nav__link--wide,
.nav__works-label {
display: none;
}
.nav__works {
width: var(--tap);
justify-content: center;
}
.nav__plus {
width: 1.6rem;
height: 1.6rem;
}
.nav__side--end {
gap: 0.25rem;
}
.nav__link {
font-size: 0.7rem;
}
.nav__wordmark {
font-size: 1.45rem;
}
.nav__entry {
grid-template-columns: 2rem 1fr;
}
.nav__client {
grid-column: 2;
}
.nav__peek {
display: none;
}
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.nav')) {
const toggle = root.querySelector('.nav__works');
toggle.addEventListener('click', () => {
const open = root.classList.toggle('is-open');
toggle.setAttribute('aria-expanded', String(open));
});
root.addEventListener('keydown', (e) => {
if (e.key === 'Escape' && root.classList.contains('is-open')) {
root.classList.remove('is-open');
toggle.setAttribute('aria-expanded', 'false');
toggle.focus();
}
});
}
})();
</script>
Picture-letter headline
Centred uppercase serif lines where photographs take the place of an O, a D and a gap between words, opening from a line on load.
Code
React For Figma<section class="hero">
<h1 class="hero__title">
<span class="hero__line">
<span class="hero__word">M<span class="hero__pic hero__pic--round"><img class="hero__img" src="assets/poster-dancer.jpg" alt="A dancer in an orange skirt kicking high" width="90" height="90"></span>ving</span>
<span class="hero__pic hero__pic--frame"><img class="hero__img" src="assets/yellow-dancers.jpg" alt="Dancers in yellow waiting in the wings" width="120" height="90"></span>
<span class="hero__word hero__word--swash"><em>pictures</em></span>
</span>
<span class="hero__line">
<span class="hero__word">Made after</span>
<span class="hero__word"><span class="hero__pic hero__pic--arch"><img class="hero__img" src="assets/half-door.jpg" alt="A young woman leaning on a half-open door" width="70" height="90"></span>ark</span>
<span class="hero__word">by hand</span>
</span>
</h1>
<p class="hero__sub">Stills & film for theatres, labels and quiet brands</p>
</section>
<style>
.hero {
display: grid;
place-content: center;
gap: var(--space-l);
min-height: clamp(30rem, 56vw, 50rem);
padding: var(--section-space) var(--edge);
background: var(--paper);
color: var(--amber);
text-align: center;
}
.hero__title {
margin: 0;
font-family: var(--font-display);
font-size: var(--display-xl);
font-weight: 400;
line-height: 1.08;
letter-spacing: -0.01em;
text-transform: uppercase;
}
.hero__line {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
column-gap: 0.28em;
}
.hero__word {
display: inline-flex;
align-items: center;
opacity: 0;
translate: 0 0.25em;
transition: opacity var(--slow) var(--ease), translate var(--slow) var(--ease);
transition-delay: calc(var(--order, 0) * 120ms);
}
.hero__word--swash {
font-weight: 300;
text-transform: none;
}
.hero__word--swash em {
letter-spacing: -0.02em;
}
.hero__pic {
display: inline-block;
overflow: hidden;
vertical-align: middle;
clip-path: inset(48% 0 48% 0);
transition: clip-path var(--slow) var(--ease);
transition-delay: calc(300ms + var(--order, 0) * 150ms);
}
.hero__pic--frame {
width: 1.35em;
height: 0.92em;
border-radius: var(--radius-none);
opacity: 0;
translate: 0 0.25em;
transition: clip-path var(--slow) var(--ease), opacity var(--slow) var(--ease), translate var(--slow) var(--ease);
}
.hero__pic--round {
width: 0.74em;
height: 0.74em;
margin: 0 0.02em;
border-radius: var(--radius-round);
}
.hero__pic--arch {
width: 0.62em;
height: 0.74em;
margin-left: 0.04em;
border-radius: var(--radius-arch);
}
.hero__img {
width: 100%;
height: 100%;
object-fit: cover;
filter: sepia(0.25) saturate(1.2) contrast(1.05);
scale: 1.25;
transition: scale 1600ms var(--ease);
}
.hero__sub {
margin: 0;
color: var(--cream-dim);
font-size: var(--text-s);
letter-spacing: var(--label-track);
text-transform: uppercase;
opacity: 0;
transition: opacity var(--slow) var(--ease) 900ms;
}
.hero.is-seen .hero__word,
.hero.is-seen .hero__pic--frame {
opacity: 1;
translate: 0 0;
}
.hero.is-seen .hero__pic {
clip-path: inset(0 0 0 0);
}
.hero.is-seen .hero__img {
scale: 1;
}
.hero.is-seen .hero__sub {
opacity: 1;
}
@media (max-width: 40rem) {
.hero__title {
font-size: clamp(2.1rem, 10.5vw, 3rem);
}
}
@media (prefers-reduced-motion: reduce) {
.hero__word,
.hero__pic,
.hero__pic--frame,
.hero__sub {
opacity: 1;
translate: none;
clip-path: none;
transition: none;
}
.hero__img {
scale: 1;
transition: none;
}
}
</style>
<script>
(() => {
const seen = new IntersectionObserver((entries) => {
for (const entry of entries) {
if (!entry.isIntersecting) continue;
entry.target.classList.add('is-seen');
seen.unobserve(entry.target);
}
}, { threshold: 0.1 });
for (const root of document.querySelectorAll('.hero')) {
root.querySelectorAll('.hero__word, .hero__pic--frame').forEach((el, i) => el.style.setProperty('--order', i));
root.querySelectorAll('.hero__pic').forEach((el, i) => el.style.setProperty('--order', i));
seen.observe(root);
}
})();
</script>
Drifting statement
A large cream sentence with small photographs scattered around it that drift against the pointer.
Code
React For Figma<section class="statement">
<div class="statement__field" aria-hidden="true">
<img class="statement__thumb statement__thumb--wide" style="--x: 6%; --y: 4%; --w: 7.5rem; --depth: 0.6" src="assets/poster-dancer.jpg" alt="" width="120" height="90">
<img class="statement__thumb" style="--x: 68%; --y: 9%; --w: 3.4rem; --depth: 1.4" src="assets/self-portrait.jpg" alt="" width="54" height="64">
<img class="statement__thumb" style="--x: 6%; --y: 74%; --w: 3.8rem; --depth: 1.1" src="assets/acrobats.jpg" alt="" width="60" height="72">
<img class="statement__thumb statement__thumb--wide" style="--x: 80%; --y: 58%; --w: 6rem; --depth: 0.8" src="assets/moulin.jpg" alt="" width="96" height="72">
<img class="statement__thumb" style="--x: 50%; --y: 80%; --w: 2.8rem; --depth: 1.8" src="assets/laundress.jpg" alt="" width="45" height="54">
<img class="statement__thumb" style="--x: 90%; --y: 22%; --w: 2.6rem; --depth: 2" src="assets/ballet.jpg" alt="" width="42" height="50">
</div>
<p class="statement__text">We don’t light a room so it can be seen. We light it so you <em>remember</em> being in it.</p>
<p class="statement__sign">— the studio, since the first roll</p>
</section>
<style>
.statement {
position: relative;
display: grid;
align-content: center;
gap: var(--space-l);
min-height: clamp(32rem, 50vw, 44rem);
padding: var(--section-space) var(--edge);
overflow: hidden;
background: var(--paper);
color: var(--cream);
}
.statement__field {
position: absolute;
inset: 0;
pointer-events: none;
}
.statement__thumb {
position: absolute;
left: var(--x);
top: var(--y);
width: var(--w);
height: auto;
aspect-ratio: 5 / 6;
object-fit: cover;
filter: sepia(0.25) saturate(1.2) contrast(1.05);
translate: var(--dx, 0px) var(--dy, 0px);
opacity: 0;
transition: opacity var(--slow) var(--ease);
transition-delay: calc(var(--order, 0) * 140ms);
}
.statement__thumb--wide {
aspect-ratio: 4 / 3;
}
.statement.is-seen .statement__thumb {
opacity: 1;
}
.statement__text {
position: relative;
max-width: 15em;
margin: 0 0 0 clamp(0rem, 18vw, 18rem);
font-family: var(--font-display);
font-size: var(--display-l);
font-weight: 300;
line-height: 1.05;
letter-spacing: -0.01em;
text-wrap: balance;
}
.statement__text em {
color: var(--amber);
font-weight: 400;
}
.statement__sign {
position: relative;
margin: 0 0 0 clamp(0rem, 18vw, 18rem);
color: var(--amber);
font-size: var(--text-s);
letter-spacing: var(--label-track);
text-transform: uppercase;
}
@media (max-width: 40rem) {
.statement__thumb {
width: calc(var(--w) * 0.7);
}
}
@media (prefers-reduced-motion: reduce) {
.statement__thumb {
opacity: 1;
translate: none;
transition: none;
}
}
</style>
<script>
(() => {
const reduce = matchMedia('(prefers-reduced-motion: reduce)').matches;
for (const root of document.querySelectorAll('.statement')) {
const thumbs = [...root.querySelectorAll('.statement__thumb')];
thumbs.forEach((el, i) => el.style.setProperty('--order', i));
let tx = 0, ty = 0, cx = 0, cy = 0, frame = 0, visible = false;
const step = () => {
cx += (tx - cx) * 0.06;
cy += (ty - cy) * 0.06;
for (const el of thumbs) {
const d = parseFloat(el.style.getPropertyValue('--depth')) || 1;
el.style.setProperty('--dx', `${(-cx * 28 * d).toFixed(2)}px`);
el.style.setProperty('--dy', `${(-cy * 22 * d).toFixed(2)}px`);
}
if (visible && (Math.abs(tx - cx) > 0.001 || Math.abs(ty - cy) > 0.001)) frame = requestAnimationFrame(step);
else frame = 0;
};
new IntersectionObserver(([entry]) => {
visible = entry.isIntersecting;
if (visible) root.classList.add('is-seen');
}, { threshold: 0.1 }).observe(root);
if (reduce) continue;
root.addEventListener('pointermove', (e) => {
const r = root.getBoundingClientRect();
tx = (e.clientX - r.left) / r.width - 0.5;
ty = (e.clientY - r.top) / r.height - 0.5;
if (!frame && visible) frame = requestAnimationFrame(step);
});
root.addEventListener('pointerleave', () => {
tx = 0; ty = 0;
if (!frame && visible) frame = requestAnimationFrame(step);
});
}
})();
</script>
Colour wash showcase
The signature: one project card floats over a blurred, veiled glow of its own picture, with the next card waiting small beside it; cross-fades on pick and every 5 seconds.
Code
React For Figma<section class="showcase" aria-roledescription="carousel" aria-label="Selected work">
<div class="showcase__wash" aria-hidden="true">
<img class="showcase__wash-img" src="assets/half-door.jpg" alt="" width="100" height="120">
<img class="showcase__wash-img" src="assets/nocturne.jpg" alt="" width="100" height="120">
<img class="showcase__wash-img" src="assets/moulin.jpg" alt="" width="100" height="120">
<img class="showcase__wash-img" src="assets/yellow-dancers.jpg" alt="" width="100" height="120">
<img class="showcase__wash-img" src="assets/acrobats.jpg" alt="" width="100" height="120">
</div>
<div class="showcase__veil" aria-hidden="true"></div>
<div class="showcase__stage">
<figure class="showcase__slide">
<figcaption class="showcase__caption"><span class="showcase__title"><em>Half-Door</em> Sessions</span><span class="showcase__client">Lantern Quarterly</span></figcaption>
<img class="showcase__img" src="assets/half-door.jpg" alt="A young woman leaning on a half-open door in low light" width="1002" height="1200">
</figure>
<figure class="showcase__slide">
<figcaption class="showcase__caption"><span class="showcase__title"><em>Blue Hour</em> Regatta</span><span class="showcase__client">Harbour Line</span></figcaption>
<img class="showcase__img" src="assets/nocturne.jpg" alt="Ships on blue water at dusk with gold lights" width="800" height="530">
</figure>
<figure class="showcase__slide">
<figcaption class="showcase__caption"><span class="showcase__title"><em>Last</em> Orders</span><span class="showcase__client">Velvet Room Records</span></figcaption>
<img class="showcase__img" src="assets/moulin.jpg" alt="A crowded night club under green light" width="1200" height="1050">
</figure>
<figure class="showcase__slide">
<figcaption class="showcase__caption"><span class="showcase__title"><em>Saffron</em> Wings</span><span class="showcase__client">Opal Theatre</span></figcaption>
<img class="showcase__img" src="assets/yellow-dancers.jpg" alt="Dancers in yellow tulle waiting in the wings" width="968" height="1200">
</figure>
<figure class="showcase__slide">
<figcaption class="showcase__caption"><span class="showcase__title"><em>Orange</em> Tricks</span><span class="showcase__client">Fernhill Circus</span></figcaption>
<img class="showcase__img" src="assets/acrobats.jpg" alt="Two young acrobats holding oranges in a ring" width="898" height="1200">
</figure>
</div>
<div class="showcase__bar">
<p class="showcase__count"><span class="showcase__now">01</span> / <span class="showcase__total">05</span></p>
<div class="showcase__controls">
<button class="showcase__btn" type="button" data-step="-1">Prev</button>
<button class="showcase__btn" type="button" data-step="1">Next</button>
</div>
</div>
</section>
<style>
.showcase {
position: relative;
height: clamp(36rem, 52vw, 50rem);
overflow: hidden;
isolation: isolate;
background: var(--paper);
color: var(--cream);
}
.showcase__wash {
position: absolute;
inset: -15%;
z-index: -2;
background: radial-gradient(60% 60% at 30% 70%, var(--wash-rust), transparent 70%), radial-gradient(50% 60% at 85% 20%, var(--wash-teal), transparent 70%), var(--paper);
}
.showcase__wash-img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
filter: blur(var(--wash-blur)) saturate(1.4);
opacity: 0;
transition: opacity var(--slow) var(--ease);
}
.showcase__wash-img.is-current {
opacity: 0.85;
}
.showcase__veil {
position: absolute;
inset: 0;
z-index: -1;
background: radial-gradient(80% 90% at 50% 50%, transparent 20%, var(--veil) 75%), var(--veil);
}
.showcase__stage {
position: absolute;
inset: 0;
}
.showcase__slide {
position: absolute;
left: 40%;
top: 50%;
width: clamp(6rem, 11vw, 10rem);
margin: 0;
opacity: 0;
pointer-events: none;
translate: 0 -46%;
transition: left var(--slow) var(--ease), width var(--slow) var(--ease), opacity var(--slow) var(--ease), translate var(--slow) var(--ease);
}
.showcase__slide.is-next {
left: 30%;
opacity: 0.6;
pointer-events: auto;
cursor: pointer;
}
.showcase__slide.is-next:hover {
opacity: 0.9;
}
.showcase__slide.is-current {
left: 52%;
width: clamp(15rem, 32vw, 30rem);
opacity: 1;
pointer-events: auto;
}
.showcase__slide.is-gone {
left: 92%;
opacity: 0;
}
.showcase__caption {
display: grid;
justify-items: center;
gap: var(--space-xs);
margin-bottom: var(--space-m);
text-align: center;
}
.showcase__title {
font-family: var(--font-display);
font-size: var(--text-xs);
font-weight: 400;
line-height: 1;
white-space: nowrap;
transition: font-size var(--slow) var(--ease);
}
.showcase__slide.is-current .showcase__title {
font-size: var(--text-l);
}
.showcase__client {
color: var(--cream-dim);
font-size: 0.6rem;
letter-spacing: var(--label-track);
text-transform: uppercase;
transition: font-size var(--slow) var(--ease);
}
.showcase__slide.is-current .showcase__client {
font-size: var(--text-s);
}
.showcase__img {
width: 100%;
height: auto;
max-height: clamp(18rem, 32vw, 30rem);
aspect-ratio: 5 / 6;
object-fit: cover;
border-radius: var(--radius-none);
filter: sepia(0.15) saturate(1.15) contrast(1.05);
}
.showcase__bar {
position: absolute;
left: 0;
right: 0;
bottom: 0;
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--space-s) var(--edge);
font-size: var(--text-s);
letter-spacing: var(--label-track);
text-transform: uppercase;
}
.showcase__count {
margin: 0;
color: var(--cream-dim);
}
.showcase__now {
color: var(--cream);
}
.showcase__controls {
display: flex;
gap: var(--space-l);
}
.showcase__btn {
min-width: var(--tap);
min-height: var(--tap);
padding: 0;
border: 0;
background: none;
color: var(--cream);
font: inherit;
letter-spacing: inherit;
text-transform: inherit;
cursor: pointer;
transition: opacity var(--fade) var(--ease);
}
.showcase__btn:hover {
opacity: 0.55;
}
.showcase__btn:focus-visible,
.showcase__slide:focus-visible {
outline: var(--rule) solid var(--cream);
outline-offset: 4px;
}
@media (max-width: 40rem) {
.showcase {
height: 40rem;
}
.showcase__slide.is-current {
left: 50%;
width: min(72vw, 18rem);
translate: -50% -46%;
}
.showcase__slide.is-next {
left: 4%;
top: 16%;
width: 5rem;
opacity: 0.45;
}
.showcase__slide.is-next .showcase__caption {
display: none;
}
}
@media (prefers-reduced-motion: reduce) {
.showcase__slide,
.showcase__wash-img,
.showcase__title,
.showcase__client {
transition: none;
}
}
</style>
<script>
(() => {
const reduce = matchMedia('(prefers-reduced-motion: reduce)').matches;
for (const root of document.querySelectorAll('.showcase')) {
const slides = [...root.querySelectorAll('.showcase__slide')];
const washes = [...root.querySelectorAll('.showcase__wash-img')];
const now = root.querySelector('.showcase__now');
const n = slides.length;
const pad = (v) => String(v).padStart(2, '0');
root.querySelector('.showcase__total').textContent = pad(n);
let index = 0, timer = 0, visible = false;
const show = (i) => {
index = (i + n) % n;
slides.forEach((slide, k) => {
const rel = (k - index + n) % n;
slide.classList.toggle('is-current', rel === 0);
slide.classList.toggle('is-next', rel === 1);
slide.classList.toggle('is-gone', rel === n - 1);
slide.tabIndex = rel === 1 ? 0 : -1;
slide.setAttribute('aria-hidden', String(rel > 1 && rel < n - 1));
});
washes.forEach((w, k) => w.classList.toggle('is-current', k === index));
now.textContent = pad(index + 1);
};
const restart = () => {
clearInterval(timer);
if (visible && !reduce) timer = setInterval(() => show(index + 1), 5000);
};
root.querySelectorAll('.showcase__btn').forEach((btn) => btn.addEventListener('click', () => {
show(index + Number(btn.dataset.step));
restart();
}));
slides.forEach((slide) => {
const pick = () => {
if (!slide.classList.contains('is-next')) return;
show(index + 1);
restart();
};
slide.addEventListener('click', pick);
slide.addEventListener('keydown', (e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); pick(); } });
});
new IntersectionObserver(([entry]) => {
visible = entry.isIntersecting;
restart();
}, { threshold: 0.3 }).observe(root);
show(0);
}
})();
</script>
Hover preview index
Hairline-ruled list of projects with year, swash title, client and craft; a preview picture follows the pointer.
Code
React For Figma<section class="index">
<div class="index__head">
<h2 class="index__heading">Index <em>of</em> work</h2>
<p class="index__note">Six commissions, newest first</p>
</div>
<ol class="index__list">
<li class="index__row">
<a class="index__link" href="#">
<span class="index__year">2026</span>
<span class="index__title"><em>Orange</em> Tricks</span>
<span class="index__client">Fernhill Circus</span>
<span class="index__craft">Campaign</span>
<img class="index__peek" src="assets/acrobats.jpg" alt="" width="180" height="216" loading="lazy">
</a>
</li>
<li class="index__row">
<a class="index__link" href="#">
<span class="index__year">2026</span>
<span class="index__title"><em>Saffron</em> Wings</span>
<span class="index__client">Opal Theatre</span>
<span class="index__craft">Season film</span>
<img class="index__peek" src="assets/yellow-dancers.jpg" alt="" width="180" height="216" loading="lazy">
</a>
</li>
<li class="index__row">
<a class="index__link" href="#">
<span class="index__year">2025</span>
<span class="index__title"><em>Last</em> Orders</span>
<span class="index__client">Velvet Room Records</span>
<span class="index__craft">Sleeve & video</span>
<img class="index__peek" src="assets/moulin.jpg" alt="" width="180" height="216" loading="lazy">
</a>
</li>
<li class="index__row">
<a class="index__link" href="#">
<span class="index__year">2025</span>
<span class="index__title"><em>Blue Hour</em> Regatta</span>
<span class="index__client">Harbour Line</span>
<span class="index__craft">Editorial</span>
<img class="index__peek" src="assets/nocturne.jpg" alt="" width="180" height="216" loading="lazy">
</a>
</li>
<li class="index__row">
<a class="index__link" href="#">
<span class="index__year">2024</span>
<span class="index__title"><em>Wash</em> Day</span>
<span class="index__client">Linen & Lye</span>
<span class="index__craft">Portraits</span>
<img class="index__peek" src="assets/laundress.jpg" alt="" width="180" height="216" loading="lazy">
</a>
</li>
<li class="index__row">
<a class="index__link" href="#">
<span class="index__year">2024</span>
<span class="index__title"><em>Half-Door</em> Sessions</span>
<span class="index__client">Lantern Quarterly</span>
<span class="index__craft">Cover story</span>
<img class="index__peek" src="assets/half-door.jpg" alt="" width="180" height="216" loading="lazy">
</a>
</li>
</ol>
</section>
<style>
.index {
position: relative;
padding: var(--space-xl) var(--edge) var(--section-space);
overflow: clip;
background: var(--paper);
color: var(--amber);
}
.index__head {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: baseline;
gap: var(--space-m);
margin-bottom: var(--space-l);
}
.index__heading {
margin: 0;
font-family: var(--font-display);
font-size: var(--display-l);
font-weight: 400;
line-height: 1;
text-transform: uppercase;
}
.index__heading em {
font-weight: 300;
text-transform: none;
}
.index__note {
margin: 0;
color: var(--cream-dim);
font-size: var(--text-s);
letter-spacing: var(--label-track);
text-transform: uppercase;
}
.index__list {
margin: 0;
padding: 0;
list-style: none;
border-bottom: var(--rule) solid var(--amber-dim);
}
.index__row {
border-top: var(--rule) solid var(--amber-dim);
}
.index__link {
display: grid;
grid-template-columns: 5rem minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
align-items: baseline;
gap: var(--gap);
min-height: var(--tap);
padding: var(--space-m) 0;
color: inherit;
text-decoration: none;
transition: color var(--fade) var(--ease);
}
.index__year,
.index__client,
.index__craft {
font-size: var(--text-s);
letter-spacing: var(--label-track);
text-transform: uppercase;
}
.index__craft {
color: var(--cream-dim);
text-align: right;
}
.index__title {
font-family: var(--font-display);
font-size: var(--text-l);
font-weight: 300;
line-height: 1.1;
text-transform: uppercase;
}
.index__title em {
font-weight: 400;
text-transform: none;
}
.index__list:hover .index__link {
color: var(--amber-dim);
}
.index__list:hover .index__link:hover,
.index__link:focus-visible {
color: var(--cream);
}
.index__link:focus-visible {
outline: var(--rule) solid var(--cream);
outline-offset: 2px;
}
.index__peek {
position: absolute;
left: 0;
top: 0;
z-index: 2;
width: clamp(8rem, 13vw, 11rem);
height: auto;
aspect-ratio: 5 / 6;
object-fit: cover;
filter: sepia(0.15) saturate(1.15) contrast(1.05);
opacity: 0;
pointer-events: none;
translate: var(--px, 60vw) var(--py, 0px);
scale: 0.85;
rotate: -3deg;
transition: opacity var(--fade) var(--ease), scale var(--fade) var(--ease);
}
.index__link:hover .index__peek {
opacity: 1;
scale: 1;
}
@media (max-width: 48rem) {
.index__link {
grid-template-columns: 3.5rem minmax(0, 1fr);
row-gap: var(--space-xs);
}
.index__client,
.index__craft {
grid-column: 2;
text-align: left;
}
.index__craft {
display: none;
}
.index__peek {
display: none;
}
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.index')) {
root.addEventListener('pointermove', (e) => {
const r = root.getBoundingClientRect();
root.style.setProperty('--px', `${Math.round(e.clientX - r.left + 24)}px`);
root.style.setProperty('--py', `${Math.round(e.clientY - r.top - 90)}px`);
});
}
})();
</script>
Contact sign-off
A huge amber line with one italic word, a cream e-mail link, social links and the corner fine print with a back-to-top.
Code
React For Figma<footer class="footer">
<div class="footer__main">
<p class="footer__kicker">Booking the next season now</p>
<h2 class="footer__line">Let’s make it <em>feel</em> like something</h2>
<a class="footer__mail" href="mailto:hello@marrowandmoth.studio">hello@marrowandmoth.studio</a>
<ul class="footer__social">
<li><a class="footer__link" href="#">Instagram</a></li>
<li><a class="footer__link" href="#">Vimeo</a></li>
<li><a class="footer__link" href="#">Agent</a></li>
</ul>
</div>
<div class="footer__bar">
<p class="footer__fine">© Marrow & Moth. All rights reserved.</p>
<a class="footer__top" href="#">Back to top <span class="footer__pct">100%</span></a>
</div>
</footer>
<style>
.footer {
display: grid;
grid-template-rows: 1fr auto;
min-height: clamp(30rem, 48vw, 42rem);
background: var(--paper);
color: var(--amber);
}
.footer__main {
display: grid;
align-content: center;
justify-items: center;
gap: var(--space-l);
padding: var(--section-space) var(--edge) var(--space-xl);
text-align: center;
}
.footer__kicker {
margin: 0;
color: var(--cream-dim);
font-size: var(--text-s);
letter-spacing: var(--label-track);
text-transform: uppercase;
}
.footer__line {
max-width: 14em;
margin: 0;
font-family: var(--font-display);
font-size: var(--display-xl);
font-weight: 400;
line-height: 1.02;
text-transform: uppercase;
text-wrap: balance;
}
.footer__line em {
font-weight: 300;
text-transform: none;
}
.footer__mail {
display: inline-flex;
align-items: center;
min-height: var(--tap);
border-bottom: var(--rule) solid var(--cream-dim);
color: var(--cream);
font-family: var(--font-display);
font-size: var(--text-l);
font-style: italic;
font-weight: 300;
text-decoration: none;
overflow-wrap: anywhere;
transition: border-color var(--fade) var(--ease), color var(--fade) var(--ease);
}
.footer__mail:hover,
.footer__mail:focus-visible {
border-color: var(--amber);
color: var(--amber);
outline: none;
}
.footer__social {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: var(--space-l);
margin: 0;
padding: 0;
list-style: none;
}
.footer__link,
.footer__top {
display: inline-flex;
align-items: center;
gap: var(--space-m);
min-height: var(--tap);
color: inherit;
font-size: var(--text-s);
letter-spacing: var(--label-track);
text-decoration: none;
text-transform: uppercase;
transition: opacity var(--fade) var(--ease);
}
.footer__link:hover,
.footer__top:hover {
opacity: 0.55;
}
.footer__link:focus-visible,
.footer__top:focus-visible {
outline: var(--rule) solid var(--amber);
outline-offset: 4px;
}
.footer__bar {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: var(--space-s) var(--space-l);
padding: var(--space-s) var(--edge);
}
.footer__fine {
margin: 0;
font-size: var(--text-s);
letter-spacing: var(--label-track);
text-transform: uppercase;
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.footer')) {
const pct = root.querySelector('.footer__pct');
const update = () => {
const max = document.documentElement.scrollHeight - innerHeight;
pct.textContent = `${max > 0 ? Math.round((scrollY / max) * 100) : 100}%`;
};
addEventListener('scroll', update, { passive: true });
update();
root.querySelector('.footer__top').addEventListener('click', (e) => {
e.preventDefault();
scrollTo({ top: 0, behavior: matchMedia('(prefers-reduced-motion: reduce)').matches ? 'auto' : 'smooth' });
});
}
})();
</script>
Style
- --paper #000000
- --amber #b5650e
- --cream #dcceb3
- --cream-dim rgba(220, 206, 179, 0.45)
- --amber-dim rgba(181, 101, 14, 0.4)
- --wash-rust #4a2210
- --wash-teal #10313b
- --veil rgba(0, 0, 0, 0.55)
Type
- Cormorant for everything: headlines, statements, labels, running text, stands in for the site's single quirky high-contrast display serif with swash alternates and odd ligatures, used at one weight for every role
Motion
- Opacity fades run 500 ms on the source's cubic-bezier(0.165, 0.84, 0.44, 1) ease-out.
- The loader spins a tilted ellipse of small thumbnails around a counting 'Loading n%' line, about 3 seconds to 100, then keeps drifting slowly.
- Hero pictures open from a thin line to their full shape (clip-path, 1100 ms, staggered 150 ms) while the letters fade up.
- Scattered thumbnails around the statement drift against the pointer with a lerped parallax, each at its own depth.
- The showcase cross-fades its blurred colour wash and the featured card over 1100 ms when the next project is picked, and advances itself every 5 s while on screen.
- List rows show a floating preview picture that follows the pointer.
Rules
- Black ground, amber type, cream only for the second voice (statements and captions over the colour wash).
- One serif at one weight does everything; hierarchy comes from size and case only, never from bold.
- Display lines are uppercase, centred and tight; one word per line may switch to italic as a swash.
- A photograph may stand in for a letter: a circle for an O, an arch for a D, a small rectangle between two words.
- Photographs are cut square, warmed slightly, and float freely on the black with lots of empty space around them.
- Behind featured work the page is a huge blurred copy of the picture itself, veiled in black.
- Captions above a picture: first word italic, rest roman, client in small uppercase beneath.
- The chrome sits in the four corners in small uppercase: menu left, wordmark centre, links right, fine print and progress at the bottom.
base.css
/* Fonts: free Google Fonts that stand in for the site's faces. */
@import url("https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap");
:root {
/* One token per line, with its role in a comment. Every color, font, radius, spacing step and timing a part uses lives here. */
--paper: #000000; /* page background, pure black */
--amber: #b5650e; /* main text: display lines, nav words, wordmark */
--cream: #dcceb3; /* second text: statements, captions over the wash */
--cream-dim: rgba(220, 206, 179, 0.45); /* muted captions, inactive toggles */
--amber-dim: rgba(181, 101, 14, 0.4); /* hairlines and quiet amber labels */
--wash-rust: #4a2210; /* warm glow in the blurred colour wash */
--wash-teal: #10313b; /* cold glow in the blurred colour wash */
--veil: rgba(0, 0, 0, 0.55); /* black film over the wash so text keeps contrast */
--font-display: "Cormorant", "Times New Roman", serif; /* headlines, wordmark, statements */
--font-body: "Cormorant", "Times New Roman", serif; /* running text and uppercase labels */
--display-xl: clamp(2.6rem, 6vw, 5.4rem); /* hero lines, 86px at 1440 */
--display-l: clamp(2.2rem, 4vw, 3.6rem); /* statements and big captions, 58px at 1440 */
--text-l: clamp(1.5rem, 2.2vw, 2.1rem); /* project titles */
--text-m: 1.5rem; /* uppercase sub lines, 24px */
--text-s: 1rem; /* nav words and labels, 16px */
--text-xs: 0.8rem; /* client lines under captions */
--text: 1.125rem; /* running text */
--label-track: 0.02em; /* tracking for uppercase labels */
--edge: clamp(1.25rem, 3vw, 2.75rem); /* side padding of every part */
--gap: clamp(1rem, 2vw, 2rem); /* between columns and cards */
--section-space: clamp(4rem, 9vw, 8rem); /* air above and below a part */
--space-xs: 0.25rem; /* tight stacks */
--space-s: 0.5rem; /* label to caption */
--space-m: 1rem; /* caption to picture */
--space-l: 2rem; /* between blocks */
--space-xl: 4rem; /* big pauses */
--radius-none: 0; /* photographs are cut square */
--radius-round: 50%; /* the picture that stands in for an O */
--radius-arch: 10% 48% 50% 10%; /* the picture that stands in for a D */
--radius-pill: 999px; /* the round enter button */
--rule: 1px; /* hairlines in lists and toggles */
--shadow: none; /* nothing casts a shadow; depth comes from the wash */
--wash-blur: 90px; /* how far the colour wash is blurred */
--ease: cubic-bezier(0.165, 0.84, 0.44, 1); /* the source's ease-out quart */
--quick: 250ms; /* hover and press */
--fade: 500ms; /* opacity fades */
--slow: 1100ms; /* wash cross-fades and picture reveals */
--tap: 44px; /* smallest tap target */
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--amber); font: 400 var(--text)/1.3 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("amber-swash-darkroom"), 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