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.
Part of the style
Amber Swash Darkroom
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/amber-swash-darkroom/hero/figma.html?palette=7ef8064dfd89d2ff
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/amber-swash-darkroom/hero/figma.html?palette=7ef8064dfd89d2ff and pass that whole HTML document to the html_to_figma tool, so the part "Picture-letter headline" lands as editable layers in my open Figma file. Fonts come from Google Fonts: if a face is missing in Figma, pick the closest one.
Code
<style>
/* Goes after the pack's base.css */
:root {
--paper: #251a1a;
--amber: #fbf4ee;
--amber-dim: rgba(251, 244, 238, 0.4);
--veil: rgba(37, 26, 26, 0.55);
--cream: #a07b75;
--cream-dim: rgba(135, 100, 94, 0.45);
--wash-rust: #87645e;
--wash-teal: #87645e;
}
</style>
<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>