Single contact profile
Split section: four-line heavy heading, light body and hairline accordion rows on the left, a tall portrait on the right.
Part of the style
Ghosted Portrait Caps
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/ghosted-portrait-caps/profile/figma.html?palette=f044afa9c0ebed69
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/ghosted-portrait-caps/profile/figma.html?palette=f044afa9c0ebed69 and pass that whole HTML document to the html_to_figma tool, so the part "Single contact profile" 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: #010000;
--ink-soft: #362c2a;
--ink-faint: #897f80;
--paper: #eee6e6;
--mist: #d5cccc;
--night: #000000;
--on-night: #e3dbdb;
--rule: #d1c8c8;
--rule-strong: #010000;
--accent: #c36645;
}
</style>
<section class="profile">
<div class="profile__text">
<p class="profile__eyebrow">One engineer</p>
<h2 class="profile__heading">One contact. Nothing lost between hands.</h2>
<p class="profile__body">Large firms split a bridge between a surveyor, a draughtsman and an account manager. Here one person climbs the span, writes the record and signs the review, so the file reads as one line of reasoning from footing to deck.</p>
<div class="profile__rows">
<div class="profile__row is-open">
<h3 class="profile__q">
<button class="profile__toggle" type="button" aria-expanded="true">
<span>Survey</span><span class="profile__sign" aria-hidden="true"></span>
</button>
</h3>
<div class="profile__a"><div class="profile__a-inner"><p>Two days on site with rope access, a hammer and a moisture meter. Every member is photographed and numbered.</p></div></div>
</div>
<div class="profile__row">
<h3 class="profile__q">
<button class="profile__toggle" type="button" aria-expanded="false">
<span>Record</span><span class="profile__sign" aria-hidden="true"></span>
</button>
</h3>
<div class="profile__a"><div class="profile__a-inner"><p>A dated register of every joint, crack and repair, kept in one file you own and can hand to anyone.</p></div></div>
</div>
<div class="profile__row">
<h3 class="profile__q">
<button class="profile__toggle" type="button" aria-expanded="false">
<span>Review</span><span class="profile__sign" aria-hidden="true"></span>
</button>
</h3>
<div class="profile__a"><div class="profile__a-inner"><p>A plain load rating with the reasoning written out, and a short list of what to fix first.</p></div></div>
</div>
</div>
</div>
<figure class="profile__figure">
<img class="profile__img" src="assets/portrait-b.jpg" alt="A seated woman in a pale dress, seen in profile" width="900" height="1083" loading="lazy" />
<figcaption class="profile__caption">Hanna Lorne, inspector</figcaption>
</figure>
</section>
<style>
.profile {
display: grid;
grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
gap: clamp(2rem, 7vw, 7rem);
align-items: start;
padding: var(--section-space) var(--edge);
background: var(--paper);
}
.profile__eyebrow {
margin: 0;
font-size: var(--text-l);
font-weight: 300;
line-height: 1.3;
}
.profile__heading {
max-width: 11ch;
margin: 0 0 var(--space-m);
font-family: var(--font-display);
font-size: var(--display-l);
font-weight: 700;
line-height: 1.02;
letter-spacing: -0.02em;
}
.profile__body {
max-width: var(--measure);
margin: 0 0 var(--space-l);
font-size: var(--text-s);
font-weight: 300;
line-height: 1.7;
}
.profile__rows {
max-width: 28rem;
border-top: var(--hairline) solid var(--rule-strong);
}
.profile__row {
border-bottom: var(--hairline) solid var(--rule-strong);
}
.profile__q {
margin: 0;
}
.profile__toggle {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
min-height: 52px;
padding: 0 var(--space-xs);
border: 0;
background: none;
color: var(--ink);
font: 600 var(--text-l) var(--font-display);
letter-spacing: -0.01em;
text-align: left;
cursor: pointer;
}
.profile__toggle:focus-visible {
outline: 2px solid var(--ink);
outline-offset: -2px;
}
.profile__sign {
position: relative;
width: 12px;
height: 12px;
}
.profile__sign::before,
.profile__sign::after {
content: "";
position: absolute;
inset: 5.5px 0 auto;
height: 1px;
background: var(--ink);
transition: transform var(--fade) var(--ease);
}
.profile__sign::after {
transform: rotate(90deg);
}
.profile__row.is-open .profile__sign::after {
transform: rotate(0deg);
}
.profile__a {
display: grid;
grid-template-rows: 0fr;
opacity: 0;
transition: grid-template-rows var(--fade) var(--ease), opacity var(--fade) var(--ease);
}
.profile__row.is-open .profile__a {
grid-template-rows: 1fr;
opacity: 1;
}
.profile__a-inner {
overflow: hidden;
}
.profile__a p {
margin: 0;
padding: 0 var(--space-xs) var(--space-m);
font-size: var(--text-s);
color: var(--ink-soft);
}
.profile__figure {
margin: 0;
}
.profile__img {
width: 100%;
height: auto;
aspect-ratio: 3 / 4;
object-fit: cover;
object-position: 50% 20%;
border-radius: var(--radius-frame);
background: var(--mist);
}
.profile__caption {
margin-top: var(--space-xs);
font-size: var(--text-xs);
font-weight: 600;
}
@media (max-width: 48rem) {
.profile {
grid-template-columns: 1fr;
}
.profile__figure {
order: -1;
max-width: 22rem;
}
}
@media (prefers-reduced-motion: reduce) {
.profile__a,
.profile__sign::after {
transition: none;
}
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.profile')) {
for (const row of root.querySelectorAll('.profile__row')) {
const toggle = row.querySelector('.profile__toggle');
toggle.addEventListener('click', () => {
const open = row.classList.toggle('is-open');
toggle.setAttribute('aria-expanded', String(open));
});
}
}
})();
</script>