Mixed-type headline
Right-aligned three-line headline mixing a flared contrast face, a swash ampersand, a pixel word, a gyroscope of dashed rings, condensed caps and a sage pill; the second line holds a capsule with two pill buttons that fill with ink blots on hover.
Part of the style
Glass Garden
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/glass-garden/statement/figma.html?palette=5dff494eb1f3289d
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/glass-garden/statement/figma.html?palette=5dff494eb1f3289d and pass that whole HTML document to the html_to_figma tool, so the part "Mixed-type 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 {
--stone: #fbfffe;
--stone-light: #feffff;
--stone-shade: #edf2f1;
--paper: #000000;
--mist: #feffff;
--ink: #001517;
--ink-soft: #293d3e;
--charcoal: #0a1a1b;
--graphite: #607071;
--ash: #adb7b4;
--sage-mid: #65726e;
--sage-pale: #e1e7e5;
--forest: #445557;
--line: rgba(0, 21, 23, 0.1);
--grid-line: rgba(0, 21, 23, 0.045);
--spot: rgba(254, 255, 255, 0.15);
--shadow: rgba(0, 21, 23, 0.1);
--glass: rgba(254, 255, 255, 0.55);
--linen: #feffff;
--sand: #edf2f1;
--pool: #dde3e2;
--stone-deep: #dde4e2;
--glass-light: #feffff;
--glass-shadow: #97a3a0;
--sage: #198088;
--lime: #d6ffff;
--pearl-1: #e9fdff;
--sticker-leaf: #0a99a2;
--mint-card: #65e7f2;
--pearl-4: #6a9598;
--sand-deep: #748788;
--sticker-lemon: #2e9197;
--horn: #61878a;
--pearl-2: #3b99a0;
--sticker-rose: #1e929b;
--rose-light: #019099;
--pearl-3: #6a9598;
--sticker-terracotta: #3b99a0;
--sticker-azul: #6a9598;
}
</style>
<section class="statement" aria-labelledby="statement-title-1">
<p class="statement__tags">#Porto #Douro #Lisbon</p>
<h2 class="statement__title" id="statement-title-1">
<span class="statement__line">
<span class="statement__word">Design,</span>
<span class="statement__word">Plant</span>
<span class="statement__word statement__amp" aria-label="and">&<svg class="statement__amp-spark" viewBox="0 0 60 24" aria-hidden="true"><path d="M2 4c14 16 34 18 48 12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><path d="M52 8c.6 4 1.8 5.4 6 6.6-4.2 1.2-5.4 2.6-6 6.6-.6-4-1.8-5.4-6-6.6 4.2-1.2 5.4-2.6 6-6.6z" fill="currentColor"/></svg></span>
<span class="statement__word">Tend</span>
</span>
<span class="statement__line">
<span class="statement__word statement__capsule">
<a class="statement__button statement__button--sage" href="#">
<span class="statement__blot" aria-hidden="true"></span>
<span class="statement__label">Get in touch</span>
<svg class="statement__arrow" viewBox="0 0 22 10" aria-hidden="true"><path d="M0 5h20M16 1l4 4-4 4" fill="none" stroke="currentColor" stroke-width="1"/></svg>
</a>
<a class="statement__button statement__button--ink" href="#">
<span class="statement__blot" aria-hidden="true"></span>
<span class="statement__label">Learn more</span>
</a>
</span>
<span class="statement__word statement__pixel">with</span>
<span class="statement__word">Patience</span>
<span class="statement__word statement__gyro" aria-hidden="true">
<svg viewBox="0 0 80 80">
<circle class="statement__gyro-dashes" cx="40" cy="40" r="37" fill="none" stroke="currentColor" stroke-width="1.2" stroke-dasharray="3 3.6"/>
<circle cx="40" cy="40" r="29" fill="none" stroke="currentColor" stroke-width="1.2"/>
<ellipse class="statement__gyro-vertical" cx="40" cy="40" rx="29" ry="29" fill="none" stroke="currentColor" stroke-width="1"/>
<ellipse class="statement__gyro-horizontal" cx="40" cy="40" rx="29" ry="29" fill="none" stroke="currentColor" stroke-width="1"/>
<path d="M40 28c1.2 7 3.4 9.4 11 12-7.6 2.6-9.8 5-11 12-1.2-7-3.4-9.4-11-12 7.6-2.6 9.8-5 11-12z" fill="currentColor"/>
</svg>
</span>
<span class="statement__word statement__pixel">The</span>
</span>
<span class="statement__line">
<span class="statement__word statement__caps">Quiet power of</span>
<span class="statement__word statement__caps statement__pill">Living ground</span>
</span>
</h2>
<div class="statement__row">
<a class="statement__case" href="#">
<span class="statement__thumb" aria-hidden="true">
<svg viewBox="0 0 120 120">
<rect width="120" height="120" style="fill: var(--forest)"/>
<g fill="none" stroke-width="1.2" style="stroke: var(--sage-pale)">
<circle cx="60" cy="60" r="34"/><circle cx="60" cy="60" r="22"/><circle cx="60" cy="60" r="10"/>
<path d="M0 60h26M94 60h26M60 0v26M60 94v26"/>
</g>
<g style="fill: var(--sage)"><circle cx="33" cy="33" r="7"/><circle cx="87" cy="33" r="7"/><circle cx="33" cy="87" r="7"/><circle cx="87" cy="87" r="7"/></g>
<circle cx="60" cy="60" r="4" style="fill: var(--lime)"/>
</svg>
</span>
<span class="statement__case-text">
<span class="statement__case-title">Latest case study with Quinta do Rio</span>
<span class="statement__more"><svg viewBox="0 0 30 10" aria-hidden="true"><path d="M0 5h28M24 1l4 4-4 4" fill="none" stroke="currentColor" stroke-width="1"/></svg><span>See more</span></span>
</span>
</a>
<ul class="statement__list">
<li><span class="statement__pearl" aria-hidden="true"></span>We draw gardens where planting, stone and water share one plan.</li>
<li><span class="statement__pearl" aria-hidden="true"></span>We build roof terraces light enough for old Porto houses.</li>
<li><span class="statement__pearl" aria-hidden="true"></span>We plan squares that cool a street by three degrees.</li>
</ul>
<a class="statement__reel" href="#" aria-label="Play the studio reel">
<svg class="statement__reel-art" viewBox="0 0 200 150" preserveAspectRatio="xMidYMid slice" aria-hidden="true">
<defs>
<linearGradient id="statement-sky-1" x1="0" y1="0" x2="0" y2="1"><stop offset="0" style="stop-color: var(--mist)"/><stop offset="1" style="stop-color: var(--stone-light)"/></linearGradient>
</defs>
<rect width="200" height="150" fill="url(#statement-sky-1)"/>
<circle cx="148" cy="44" r="18" style="fill: var(--pearl-4)"/>
<path d="M0 96c34-18 62-22 96-10s70 8 104-8v72H0z" style="fill: var(--sage-pale)"/>
<path d="M0 116c40-14 76-12 112-2s62 6 88-6v42H0z" style="fill: var(--sage)"/>
<g stroke-width="2.4" style="stroke: var(--forest)"><path d="M30 128V70M78 132V70M24 70h62M24 78h62"/></g>
<g stroke-width="1" opacity="0.6" style="stroke: var(--forest)"><path d="M34 70l8-8M46 70l8-8M58 70l8-8M70 70l8-8"/></g>
<g style="fill: var(--sticker-leaf)"><circle cx="128" cy="112" r="10"/><circle cx="142" cy="106" r="13"/><circle cx="158" cy="114" r="9"/></g>
<path d="M0 150h200v-14c-30 6-60 8-100 4S30 134 0 140z" style="fill: var(--forest)"/>
</svg>
<span class="statement__play" aria-hidden="true"><svg viewBox="0 0 20 20"><path d="M7 5l9 5-9 5z"/></svg></span>
</a>
</div>
</section>
<style>
.statement {
position: relative;
padding: var(--space-xl) var(--edge) var(--space-l);
background: var(--stone);
color: var(--ink);
overflow: hidden;
}
.statement__tags {
margin: 0 0 6px;
color: var(--ash);
font: 700 var(--text-m)/1.5 var(--font-body);
text-align: right;
}
.statement__title {
display: grid;
justify-items: end;
margin: 0;
font: 400 var(--hero-line)/1.3 var(--font-display);
letter-spacing: 0;
}
.statement__line {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
align-items: center;
column-gap: 0.32em;
}
.statement__word {
display: inline-flex;
align-items: center;
opacity: 0;
transform: translateY(0.45em);
transition: opacity var(--time-icon) var(--ease-reveal), transform var(--time-icon) var(--ease-reveal);
transition-delay: calc(var(--statement-order, 0) * 0.05s);
}
.statement.is-seen .statement__word { opacity: 1; transform: none; }
.statement__amp {
position: relative;
margin: 0 -0.08em 0 -0.24em;
color: var(--sage);
font-family: var(--font-script);
font-size: 0.86em;
}
.statement__amp-spark {
position: absolute;
left: 0.3em;
bottom: -0.05em;
width: 1.3em;
color: var(--sage);
}
.statement__pixel { font-family: var(--font-pixel); font-size: 0.92em; }
.statement__capsule {
gap: 8px;
padding: 10px;
border-radius: var(--radius-xl);
background: var(--stone-shade);
}
.statement__button {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 30px;
height: 54px;
padding: 0 20px;
overflow: hidden;
border-radius: var(--radius-l);
color: var(--paper);
font: 500 var(--text-xs)/1.3 var(--font-body);
text-decoration: none;
white-space: nowrap;
isolation: isolate;
}
.statement__button--sage { min-width: 174px; background: var(--sage); --statement-fill: var(--ink); }
.statement__button--ink { min-width: 120px; background: var(--charcoal); font-weight: 400; --statement-fill: var(--sage); }
.statement__button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.statement__arrow { width: 22px; }
.statement__blot {
position: absolute;
inset: 0 -1% 0 0;
z-index: -1;
background: var(--statement-fill);
-webkit-mask: var(--statement-blot) 0 0 / 7100% 100% no-repeat;
mask: var(--statement-blot) 0 0 / 7100% 100% no-repeat;
}
.statement__button.is-filled .statement__blot { animation: statement-blot-in var(--time-blot) steps(70) forwards; }
.statement__button.is-draining .statement__blot { animation: statement-blot-out var(--time-blot) steps(70) forwards; }
@keyframes statement-blot-in { from { -webkit-mask-position: 0 0; mask-position: 0 0; } to { -webkit-mask-position: 100% 0; mask-position: 100% 0; } }
@keyframes statement-blot-out { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
.statement__gyro { width: 0.96em; color: var(--sage); }
.statement__gyro svg { width: 100%; overflow: visible; }
.statement__gyro-dashes { transform-origin: 40px 40px; animation: statement-ccw 24s linear infinite; }
.statement__gyro-vertical { transform-origin: 40px 40px; animation: statement-vertical 7s ease-in-out infinite; }
.statement__gyro-horizontal { transform-origin: 40px 40px; animation: statement-horizontal 8.5s ease-in-out infinite; }
.statement:not(.is-live) .statement__gyro * { animation-play-state: paused; }
@keyframes statement-ccw { to { transform: rotate(-1turn); } }
@keyframes statement-vertical { 0%, 100% { transform: scaleX(0.18); } 50% { transform: scaleX(0.92); } }
@keyframes statement-horizontal { 0%, 100% { transform: scaleY(0.86); } 50% { transform: scaleY(0.16); } }
.statement__caps {
font-family: var(--font-condensed);
font-size: 0.94em;
letter-spacing: -0.01em;
text-transform: uppercase;
line-height: 1;
}
.statement__pill {
padding: 0.06em 0.28em 0;
border-radius: var(--radius-pill);
background: var(--sage);
color: var(--paper);
}
.statement__row {
display: grid;
grid-template-columns: minmax(0, 528fr) minmax(0, 290fr) minmax(0, 200fr);
gap: clamp(24px, 5vw, 72px);
align-items: start;
margin-top: var(--space-l);
}
.statement__case {
display: grid;
grid-template-columns: 188px 1fr;
gap: 12px;
min-height: 150px;
padding: 15px;
border-radius: var(--radius-s);
background: rgba(255, 255, 255, 0.82);
color: var(--ink);
text-decoration: none;
transition: transform var(--time) var(--ease);
}
.statement__case:hover { transform: translateY(-4px); }
.statement__case:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.statement__thumb { overflow: hidden; border-radius: 14px; }
.statement__thumb svg { width: 100%; height: 100%; transition: transform var(--time) var(--ease); }
.statement__case:hover .statement__thumb svg { transform: scale(1.06) rotate(-4deg); }
.statement__case-text { display: grid; align-content: start; gap: 10px; }
.statement__case-title { font: 400 var(--head-s)/1.5 var(--font-display); }
.statement__more {
display: inline-flex;
align-items: center;
gap: 10px;
min-height: var(--tap);
color: var(--sage);
font: 400 var(--text-s)/1 var(--font-body);
}
.statement__more svg { width: 30px; transition: transform var(--time) var(--ease); }
.statement__more span { text-decoration: underline; text-underline-offset: 3px; }
.statement__case:hover .statement__more svg { transform: translateX(6px); }
.statement__list {
display: grid;
gap: 14px;
margin: 0;
padding: 0;
list-style: none;
font: 400 var(--text-l)/1.2 var(--font-display);
}
.statement__list li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; }
.statement__reel {
position: relative;
display: block;
aspect-ratio: 4 / 3;
overflow: hidden;
border-radius: 19px;
transition: transform 0.3s var(--ease);
}
.statement__reel:hover { transform: scale(0.98); }
.statement__reel:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.statement__reel-art { width: 100%; height: 100%; }
.statement__play {
position: absolute;
right: 12px;
bottom: 12px;
display: grid;
place-items: center;
width: var(--tap);
height: var(--tap);
border-radius: 50%;
background: var(--lime);
transition: transform 0.3s var(--ease);
}
.statement__play svg { width: 20px; fill: var(--ink); }
.statement__reel:hover .statement__play,
.statement__reel:focus-visible .statement__play { transform: scale(1.14); }
.statement__pearl {
width: 26px;
height: 26px;
border-radius: 50%;
background: conic-gradient(from 200deg, var(--pearl-1), var(--pearl-3), var(--pearl-2), var(--pearl-4), var(--pearl-1));
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}
@media (max-width: 1000px) {
.statement__capsule { order: 10; }
.statement__row { grid-template-columns: 1fr 1fr; }
.statement__case { grid-template-columns: 120px 1fr; }
.statement__row > :last-child { display: none; }
}
@media (max-width: 700px) {
.statement__tags { text-align: left; }
.statement__title { justify-items: start; }
.statement__line { justify-content: flex-start; row-gap: 10px; }
.statement__row { grid-template-columns: 1fr; }
.statement__case { grid-template-columns: 110px 1fr; }
.statement__button--sage { min-width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
.statement__word { opacity: 1; transform: none; transition: none; }
}
</style>
<script>
(() => {
const FRAMES = 71;
function blotSprite(aspect) {
const frameWidth = 200;
const frameHeight = Math.max(24, Math.round(frameWidth / aspect));
const canvas = document.createElement('canvas');
canvas.width = frameWidth * FRAMES;
canvas.height = frameHeight;
const context = canvas.getContext('2d');
context.fillStyle = '#000';
let seed = 7;
const random = () => { seed = (seed * 16807) % 2147483647; return seed / 2147483647; };
const reach = Math.hypot(frameWidth, frameHeight);
const blots = Array.from({ length: 13 }, (_, index) => ({
x: random() * frameWidth,
y: random() * frameHeight,
start: index === 0 ? 0 : random() * 0.5,
size: (0.35 + random() * 0.4) * reach,
wobble: random() * 10,
drops: Array.from({ length: 3 }, () => ({ angle: random() * Math.PI * 2, distance: 0.6 + random() * 0.8, size: 0.06 + random() * 0.08 })),
}));
function blob(cx, cy, radius, wobble) {
context.beginPath();
for (let step = 0; step <= 28; step += 1) {
const angle = (step / 28) * Math.PI * 2;
const edge = radius * (1 + 0.16 * Math.sin(angle * 3 + wobble) + 0.09 * Math.sin(angle * 5 - wobble * 1.7));
const x = cx + Math.cos(angle) * edge;
const y = cy + Math.sin(angle) * edge * 0.62;
if (step === 0) context.moveTo(x, y); else context.lineTo(x, y);
}
context.fill();
}
for (let frame = 0; frame < FRAMES; frame += 1) {
const time = frame / (FRAMES - 1);
context.save();
context.beginPath();
context.rect(frame * frameWidth, 0, frameWidth, frameHeight);
context.clip();
context.translate(frame * frameWidth, 0);
if (frame === FRAMES - 1) {
context.fillRect(0, 0, frameWidth, frameHeight);
} else if (frame > 0) {
for (const spot of blots) {
const grown = Math.max(0, (time - spot.start) / (1 - spot.start));
if (grown <= 0) continue;
const radius = spot.size * grown ** 1.7;
blob(spot.x, spot.y, Math.max(1.2, radius), spot.wobble + time * 2);
for (const drop of spot.drops) {
const distance = Math.max(radius, 4) * drop.distance + 3;
const dropSize = Math.max(0.8, spot.size * drop.size * Math.min(1, grown * 4));
blob(spot.x + Math.cos(drop.angle) * distance, spot.y + Math.sin(drop.angle) * distance, dropSize, drop.angle);
}
}
}
context.restore();
}
return `url("${canvas.toDataURL('image/png')}")`;
}
function wireBlot(button) {
const fill = () => { button.classList.remove('is-draining'); button.classList.add('is-filled'); };
const drain = () => {
if (!button.classList.contains('is-filled')) return;
button.classList.remove('is-filled');
button.classList.add('is-draining');
};
button.addEventListener('pointerenter', fill);
button.addEventListener('focus', fill);
button.addEventListener('pointerleave', drain);
button.addEventListener('blur', drain);
}
function setUp(root) {
const buttons = [...root.querySelectorAll('.statement__button')];
for (const button of buttons) {
const box = button.getBoundingClientRect();
button.style.setProperty('--statement-blot', blotSprite(box.width / Math.max(1, box.height) || 3));
wireBlot(button);
}
root.querySelectorAll('.statement__word').forEach((word, order) => word.style.setProperty('--statement-order', order));
new IntersectionObserver(([entry]) => {
root.classList.toggle('is-live', entry.isIntersecting);
if (entry.isIntersecting) root.classList.add('is-seen');
}, { threshold: 0.1 }).observe(root);
}
document.querySelectorAll('.statement').forEach(setUp);
})();
</script>