Spiral intro
A red golden rectangle where white division lines rule in, a spiral draws through every square and the brand fades up, with a replay button.
Part of the style
Red Spiral Grid
6 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/red-spiral-grid/intro/figma.html?palette=d12d427770eca2b3
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/red-spiral-grid/intro/figma.html?palette=d12d427770eca2b3 and pass that whole HTML document to the html_to_figma tool, so the part "Spiral intro" 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: #ffffff;
--ink-soft: #848484;
--paper: #131313;
--paper-tint: #1a1a1a;
--night: #161616;
--key: #141414;
--key-ink: #1c1c1c;
--red: #997d73;
--red-deep: #977e75;
}
</style>
<section class="intro is-playing" aria-label="Opening">
<div class="intro__frame">
<div class="intro__stage">
<svg class="intro__drawing" viewBox="0 0 1618 1000" aria-hidden="true">
<g class="intro__grid">
<path class="intro__line" style="--i: 0" pathLength="1" d="M1000 0 V1000" />
<path class="intro__line" style="--i: 1" pathLength="1" d="M1000 618 H1618" />
<path class="intro__line" style="--i: 2" pathLength="1" d="M1236 618 V1000" />
<path class="intro__line" style="--i: 3" pathLength="1" d="M1000 764 H1236" />
<path class="intro__line" style="--i: 4" pathLength="1" d="M1146 618 V764" />
<path class="intro__line" style="--i: 5" pathLength="1" d="M1146 708 H1236" />
<path class="intro__line" style="--i: 6" pathLength="1" d="M1180 708 V764" />
<path class="intro__line" style="--i: 7" pathLength="1" d="M1146 730 H1180" />
</g>
<path class="intro__spiral" pathLength="1"
d="M0 1000 A1000 1000 0 0 1 1000 0 A618 618 0 0 1 1618 618 A382 382 0 0 1 1236 1000 A236 236 0 0 1 1000 764 A146 146 0 0 1 1146 618 A90 90 0 0 1 1236 708 A56 56 0 0 1 1180 764 A34 34 0 0 1 1146 730" />
</svg>
</div>
<div class="intro__copy">
<p class="intro__brand">Tidewright</p>
<p class="intro__line-of-work">Instruments, rooms and screens for small museums.</p>
<button class="intro__replay" type="button">
<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M16 10a6 6 0 1 1-2-4.5M14.5 2v4h-4" /></svg>
Draw again
</button>
</div>
</div>
</section>
<style>
.intro {
background: var(--red);
color: var(--paper);
}
.intro__frame {
position: relative;
container-type: inline-size;
aspect-ratio: 1.618034 / 1;
overflow: hidden;
}
.intro__stage {
position: absolute;
inset: 0;
}
.intro__drawing {
width: 100%;
height: 100%;
overflow: visible;
}
.intro__line,
.intro__spiral {
fill: none;
stroke: var(--paper);
stroke-width: 5;
stroke-linecap: square;
stroke-dasharray: 1 1;
stroke-dashoffset: 0;
}
.intro__copy {
position: absolute;
left: 0;
bottom: 0;
width: var(--phi-major);
height: 100%;
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: flex-start;
gap: var(--space-s);
padding: var(--space-xl);
}
.intro__brand {
margin: 0;
font-family: var(--font-display);
font-size: var(--display-l);
font-weight: 800;
line-height: 0.95;
letter-spacing: -0.02em;
}
.intro__line-of-work {
max-width: 22em;
margin: 0;
font-size: var(--text-l);
font-weight: 500;
line-height: 1.4;
}
.intro__replay {
display: inline-flex;
align-items: center;
gap: var(--space-xs);
min-height: var(--tap);
margin-top: var(--space-s);
padding: 0 var(--space-m) 0 var(--space-s);
border: var(--rule-thin) solid var(--paper);
border-radius: var(--radius);
background: transparent;
color: var(--paper);
font: 700 var(--text-s) / 1 var(--font-body);
cursor: pointer;
transition: background var(--quick) var(--ease-out), color var(--quick) var(--ease-out), border-radius var(--medium) var(--ease-out);
}
.intro__replay svg {
width: 18px;
height: 18px;
fill: none;
stroke: currentColor;
stroke-width: 2;
}
.intro__replay:hover,
.intro__replay:focus-visible {
background: var(--paper);
color: var(--red);
border-top-left-radius: 22px;
}
.intro__replay:focus-visible {
outline: var(--rule-thin) solid var(--paper);
outline-offset: 3px;
}
/* Playing: lines rule in one after another, then the spiral draws, then the words fade in. */
.intro.is-playing .intro__line {
animation: intro-rule var(--medium) var(--ease-out) both;
animation-delay: calc(var(--i) * 50ms);
}
.intro.is-playing .intro__spiral {
animation: intro-spiral var(--draw) var(--ease-in) both;
animation-delay: 450ms;
}
.intro.is-playing .intro__copy > * {
animation: intro-fade var(--slow) var(--ease-in) both;
animation-delay: 1500ms;
}
.intro.is-playing .intro__copy > :nth-child(2) { animation-delay: 1600ms; }
.intro.is-playing .intro__copy > :nth-child(3) { animation-delay: 1700ms; }
@keyframes intro-rule {
from { stroke-dashoffset: 1; }
}
@keyframes intro-spiral {
from { stroke-dashoffset: 1; }
}
@keyframes intro-fade {
from { opacity: 0; transform: translateY(12px); }
}
/* Phones: the field stands up, the big square on top. */
@media (max-width: 640px) {
.intro__frame {
aspect-ratio: 1 / 1.618034;
}
.intro__stage {
inset: auto;
top: 0;
left: 0;
width: calc(100cqw * 1.618034);
height: 100cqw;
transform-origin: 0 0;
transform: translateX(100cqw) rotate(90deg);
}
.intro__copy {
top: 0;
bottom: auto;
width: 100%;
height: var(--phi-major);
padding: var(--space-l) var(--space-m) var(--space-m) var(--space-l);
}
.intro__brand {
font-size: clamp(30px, 10cqw, 44px);
}
.intro__line-of-work {
font-size: var(--text-s);
}
}
@media (prefers-reduced-motion: reduce) {
.intro.is-playing .intro__line,
.intro.is-playing .intro__spiral,
.intro.is-playing .intro__copy > * {
animation: none;
}
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.intro')) {
const replay = root.querySelector('.intro__replay');
const play = () => {
root.classList.remove('is-playing');
void root.offsetWidth;
root.classList.add('is-playing');
};
replay.addEventListener('click', play);
}
})();
</script>