Capitals over a portrait
A grayscale portrait matted in black on the left, with orange condensed capital lines laid across it and the putty page; the middle line blinks through phrases.
Part of the style
Orange Caps on Putty
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/orange-caps-on-putty/hero/figma.html?palette=050bd00a57bfe0ab
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/orange-caps-on-putty/hero/figma.html?palette=050bd00a57bfe0ab and pass that whole HTML document to the html_to_figma tool, so the part "Capitals over a portrait" 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 {
--ink: #1c0d06;
--putty: #91816b;
--sheet: #877761;
--ink-soft: #493d2a;
--mat-soft: #422f25;
--on-ink: #382b17;
--flare: #978068;
--screen-rust: #020000;
--screen-green: #8a745c;
}
</style>
<section class="hero">
<figure class="hero__mat">
<img class="hero__photo" src="assets/hero-bust.jpg" alt="A bronze bust in profile, turned to the right, in hard studio light" width="958" height="1200" />
</figure>
<h1 class="hero__caps">
<span class="hero__line">Ostler, design & build</span>
<span class="hero__line hero__cycle" aria-live="off">
<span class="hero__phrase is-current">Websites for small brands</span>
<span class="hero__phrase">Identity, type & print</span>
<span class="hero__phrase">Motion, sound & film</span>
</span>
<span class="hero__line hero__line--last">Port Calder, on the coast</span>
</h1>
<p class="hero__caption">Studio of two. Est. 2016</p>
</section>
<style>
.hero {
position: relative;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--gap);
padding: var(--edge);
}
.hero__mat {
margin: 0;
height: clamp(460px, 50vw, 760px);
background: var(--ink);
overflow: hidden;
}
.hero__photo {
width: 100%;
height: 100%;
object-fit: cover;
object-position: 50% 30%;
filter: grayscale(1) contrast(1.25) brightness(0.95);
}
.hero__caps {
position: absolute;
left: var(--edge);
right: var(--edge);
top: 50%;
translate: 0 -50%;
margin: 0;
display: grid;
justify-items: center;
color: var(--flare);
font-family: var(--font-display);
font-size: var(--display-s);
font-weight: 700;
line-height: var(--display-leading);
letter-spacing: -0.005em;
text-align: center;
text-transform: uppercase;
pointer-events: none;
}
.hero__line {
display: block;
}
.hero__line--last {
margin-top: 0.9em;
}
.hero__cycle {
display: grid;
}
.hero__phrase {
grid-area: 1 / 1;
visibility: hidden;
}
.hero__phrase.is-current {
visibility: visible;
}
.hero__cycle.is-blank .hero__phrase {
visibility: hidden;
}
.hero__caption {
position: absolute;
right: var(--edge);
bottom: var(--edge);
margin: 0;
padding: 0 var(--edge) var(--edge) 0;
font-size: var(--text-m);
font-weight: 500;
text-transform: uppercase;
}
@media (max-width: 40rem) {
.hero {
grid-template-columns: 1fr;
}
.hero__mat {
height: clamp(440px, 125vw, 620px);
}
.hero__caps {
top: auto;
bottom: calc(var(--edge) * 4);
translate: none;
font-size: clamp(28px, 8.6vw, 44px);
line-height: 0.92;
}
.hero__caption {
position: static;
padding: 0;
}
}
</style>
<script>
(() => {
const still = window.matchMedia('(prefers-reduced-motion: reduce)');
for (const root of document.querySelectorAll('.hero')) {
const cycle = root.querySelector('.hero__cycle');
const phrases = [...root.querySelectorAll('.hero__phrase')];
if (!cycle || phrases.length < 2) continue;
let index = 0;
let timer = 0;
let visible = false;
const step = () => {
cycle.classList.add('is-blank');
window.setTimeout(() => {
phrases[index].classList.remove('is-current');
index = (index + 1) % phrases.length;
phrases[index].classList.add('is-current');
cycle.classList.remove('is-blank');
}, 160);
};
const run = () => {
window.clearInterval(timer);
timer = 0;
if (visible && !still.matches) timer = window.setInterval(step, 2200);
};
new IntersectionObserver((entries) => {
visible = entries[0].isIntersecting;
run();
}).observe(root);
still.addEventListener('change', run);
}
})();
</script>