Pebbled portrait hero
Pebbled cream ground with ghosted giant numerals, a cut-out bronze at the centre, a small gold card and a short intro on the left, a violet signature on the right, cut off below by a diagonal plum wedge.
Part of the style
Gold Foil Card Wall
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/gold-foil-card-wall/hero/figma.html?palette=7ef8064dfd89d2ff
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/gold-foil-card-wall/hero/figma.html?palette=7ef8064dfd89d2ff and pass that whole HTML document to the html_to_figma tool, so the part "Pebbled portrait hero" 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 {
--night: #251a1a;
--night-deep: #1a1010;
--cream: #fbf4ee;
--stone: #d6cfc8;
--ink: #251a1a;
--ink-soft: #b6afa8;
--ink-dim: rgba(251, 244, 238, 0.55);
--line: rgba(251, 244, 238, 0.12);
--line-ink: rgba(37, 26, 26, 0.14);
--gold: #a07b75;
--gold-light: #b59893;
--gold-dark: #3c2623;
--violet: #87645e;
--violet-deep: #5a3b36;
--violet-haze: #988c89;
}
</style>
<section class="hero">
<div class="hero__ghost" aria-hidden="true">
<span class="hero__ghost-row">19</span>
<span class="hero__ghost-row">27</span>
</div>
<figure class="hero__portrait">
<img class="hero__photo" src="assets/hero-horse.jpg" alt="A bronze stallion rearing on an oval base" width="979" height="1200" style="object-fit: contain">
</figure>
<div class="hero__left">
<a class="hero__card" href="#">
<span class="hero__foil">
<span class="hero__tint"><img class="hero__card-img" src="assets/card-post.jpg" alt="A groom leading a racehorse and its rider to the post" width="548" height="800" style="object-fit: cover"></span>
</span>
<span class="hero__card-label">Rookie card · 2021</span>
</a>
<p class="hero__intro">From a muddy paddock in Northfield to the front of every big field. Vesper ran forty-one times and finished out of the frame twice.</p>
</div>
<div class="hero__right">
<p class="hero__signature" aria-label="Signed Vesper">Vesper</p>
<p class="hero__aside">Bay colt, foaled 2019. Retired sound, still the fastest thing in the yard.</p>
</div>
<h1 class="hero__title">Vesper Run</h1>
<div class="hero__wedge" aria-hidden="true"></div>
<span class="hero__hint" aria-hidden="true"><span class="hero__hint-dot"></span></span>
</section>
<style>
.hero {
position: relative;
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
align-items: end;
gap: var(--gap);
min-height: clamp(640px, 64vw, 900px);
padding: var(--space-xl) var(--edge) clamp(7rem, 12vw, 11rem);
overflow: hidden;
color: var(--ink);
background: var(--pebble), linear-gradient(180deg, var(--cream), var(--stone));
background-size: 220px, auto;
isolation: isolate;
}
.hero__ghost {
position: absolute;
inset: 0;
z-index: -1;
display: grid;
align-content: center;
justify-items: center;
font: 400 clamp(16rem, 40vw, 36rem)/0.78 var(--font-display);
color: var(--stone);
opacity: 0.7;
letter-spacing: -0.02em;
pointer-events: none;
user-select: none;
}
.hero__ghost-row:first-child { transform: translateX(-12%); }
.hero__ghost-row:last-child { transform: translateX(14%); }
.hero__portrait {
grid-column: 2;
grid-row: 1;
align-self: end;
margin: 0 0 calc(-1 * clamp(7rem, 12vw, 11rem));
mix-blend-mode: multiply;
animation: hero-rise 1.1s var(--ease) both;
}
.hero__photo {
width: 100%;
height: auto;
aspect-ratio: 979 / 1200;
filter: saturate(0.5) brightness(1.32) contrast(1.4);
-webkit-mask-image: radial-gradient(62% 58% at 50% 50%, #000 55%, transparent 80%);
mask-image: radial-gradient(62% 58% at 50% 50%, #000 55%, transparent 80%);
}
.hero__left, .hero__right {
grid-row: 1;
display: grid;
gap: var(--space-m);
align-content: end;
position: relative;
z-index: 2;
}
.hero__left { grid-column: 1; justify-items: start; }
.hero__right { grid-column: 3; justify-items: end; text-align: right; }
.hero__card {
display: grid;
gap: var(--space-s);
width: clamp(92px, 11vw, 132px);
color: inherit;
text-decoration: none;
transform: rotate(-5deg);
transition: transform var(--slow) var(--ease);
animation: hero-float var(--float) ease-in-out infinite;
}
.hero__card:hover, .hero__card:focus-visible { transform: rotate(0deg) scale(1.06); }
.hero__card:focus-visible { outline: 2px solid var(--violet); outline-offset: 6px; }
.hero__foil {
display: block;
padding: var(--foil-width);
border-radius: var(--radius-card);
background: linear-gradient(135deg, var(--gold-light), var(--gold) 28%, var(--gold-dark) 52%, var(--gold) 74%, var(--gold-light));
box-shadow: var(--card-shadow), var(--card-glow);
}
.hero__tint {
display: block;
overflow: hidden;
border-radius: var(--radius-s);
aspect-ratio: 5 / 7;
background: radial-gradient(80% 60% at 70% 10%, var(--gold), transparent 60%), linear-gradient(160deg, var(--violet), var(--violet-deep));
}
.hero__card-img {
width: 100%;
height: 100%;
filter: grayscale(1) contrast(1.3) brightness(1.08);
mix-blend-mode: multiply;
}
.hero__card-label {
font: 500 var(--caption)/1.4 var(--font-mono);
letter-spacing: var(--track-caption);
text-transform: uppercase;
text-align: center;
}
.hero__intro, .hero__aside {
max-width: 22ch;
margin: 0;
font-size: var(--caption);
line-height: 1.55;
color: var(--ink);
}
.hero__intro { max-width: 26ch; }
.hero__signature {
margin: 0;
font: 400 clamp(3.4rem, 7vw, 5.6rem)/0.9 var(--font-script);
color: var(--violet-deep);
transform: rotate(-8deg);
clip-path: inset(0 100% 0 0);
animation: hero-sign 1.6s 0.5s var(--ease-snap) forwards;
}
.hero__title {
position: absolute;
top: var(--space-m);
left: 50%;
transform: translateX(-50%);
margin: 0;
font: 400 var(--caption-l)/1 var(--font-mono);
letter-spacing: 0.4em;
text-transform: uppercase;
color: var(--ink-soft);
white-space: nowrap;
}
.hero__wedge {
position: absolute;
inset: auto 0 0 0;
height: clamp(5rem, 11vw, 10rem);
z-index: 1;
background: var(--night);
clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.hero__hint {
position: absolute;
right: var(--edge);
bottom: var(--space-m);
z-index: 2;
display: grid;
place-items: start center;
width: 24px;
height: 38px;
padding-top: 7px;
border: var(--rule) solid var(--ink-dim);
border-radius: var(--radius-pill);
}
.hero__hint-dot {
width: 4px;
height: 8px;
border-radius: var(--radius-pill);
background: var(--cream);
animation: hero-bob 1.8s var(--ease-fade) infinite;
}
@keyframes hero-rise { from { opacity: 0; transform: translateY(40px); } }
@keyframes hero-sign { to { clip-path: inset(0 0 0 0); } }
@keyframes hero-float { 50% { translate: 0 -8px; } }
@keyframes hero-bob { 50% { transform: translateY(10px); opacity: 0.3; } }
@media (max-width: 44rem) {
.hero {
grid-template-columns: minmax(0, 1fr) auto;
grid-template-rows: auto 1fr;
align-items: start;
padding-top: var(--space-xl);
min-height: 760px;
}
.hero__left { grid-column: 1; grid-row: 1; }
.hero__card { display: none; }
.hero__right { grid-column: 2; grid-row: 1; }
.hero__aside { display: none; }
.hero__signature { font-size: 3.6rem; }
.hero__portrait { grid-column: 1 / -1; grid-row: 2; margin-inline: calc(-1 * var(--edge)); }
.hero__ghost { font-size: 22rem; }
}
@media (prefers-reduced-motion: reduce) {
.hero__portrait, .hero__card, .hero__hint-dot { animation: none; }
.hero__signature { animation: none; clip-path: none; }
}
</style>