Audit — sequence gap
Variant: Gap
Evidence of absence. The walk reaches #1044 straight after #1042, and the records below part on a 300ms ease-in-out to open a full record-height slot. A missing record is a hole the size of a record, not a hairline between two rows. The read head rides down with #1044 on the rows’ own curve, so it never lets go of the record it is on. The dashed rust slot fades in only once the rows have finished parting, because the space has to exist before anything can be shown missing from it. Both links that touch the hole turn to dashes on the same beat. Then the walk carries on and verifies the rest. That is the contrast with the tampered variant: a missing record does not poison its neighbours, so the audit finishes and reports "1 record missing" instead of stopping at the hole. Reach for it on invoice and cheque runs, event streams with sequence numbers, and any numbered series where a skipped number is itself the finding.
The source
A complete HTML document. Paste it into an empty .html file and it plays — no stylesheet, script, font, or image to fetch.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Audit — sequence gap</title>
<style>
/* One clock drives the whole walk: how many records are verified (--_c),
how many links are proven (--_l), where the read head sits (--_k), and
the integer the footer prints (--_n). Every row derives its own state
from these, so no row can run ahead of the record before it. */
@property --_c {
syntax: '<number>';
inherits: true;
initial-value: 0;
}
@property --_l {
syntax: '<number>';
inherits: true;
initial-value: 0;
}
@property --_k {
syntax: '<number>';
inherits: true;
initial-value: 0;
}
@property --_n {
syntax: '<integer>';
inherits: true;
initial-value: 0;
}
:root {
/* Neutrals — fixed, never remixed. */
--ivory: #faf9f5;
--paper: #ffffff;
--oat: #e3dacc;
--slate: #141413;
/* Knobs — the remix API. A knob exists iff declared here and used below. */
--hue: 38.8;
--lift: 0;
--chroma: 1;
--round: 1;
--speed: 1;
/* Accents — derived from the knobs with the family's offsets baked in,
so one hue roll moves them together. Defaults reproduce the original hex. */
--clay: oklch(calc(0.6724 + var(--lift)) calc(0.1308 * var(--chroma)) var(--hue));
--clay-d: oklch(calc(0.5797 + var(--lift)) calc(0.127 * var(--chroma)) var(--hue));
--olive: oklch(
calc(0.6118 + var(--lift)) calc(0.0713 * var(--chroma)) calc(var(--hue) + 88.3)
);
--rust: oklch(
calc(0.5408 + var(--lift)) calc(0.1357 * var(--chroma)) calc(var(--hue) - 10.3)
);
--_muted: color-mix(in srgb, var(--slate) 52%, transparent);
--_head: color-mix(in srgb, var(--clay) 13%, var(--paper));
--_clay-wash: color-mix(in srgb, var(--clay) 16%, var(--paper));
--_olive-wash: color-mix(in srgb, var(--olive) 20%, var(--paper));
--_rust-wash: color-mix(in srgb, var(--rust) 9%, var(--paper));
--_rust-pill: color-mix(in srgb, var(--rust) 13%, var(--paper));
/* Clock — 6.4s: 1% is 64ms. Same 8.5%-per-record walk as the intact
chain, with one 300ms interruption where the sequence skips. */
--cycle: 6.4s;
--t: calc(var(--cycle) / var(--speed));
--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
--_m: 1; /* motion multiplier: 0 under reduced motion */
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
min-height: 100vh;
display: grid;
place-items: center;
background: var(--ivory);
font-family:
system-ui,
-apple-system,
'Segoe UI',
Roboto,
sans-serif;
color: var(--slate);
}
.card {
width: min(320px, calc(100vw - 32px));
padding: 13px 14px 12px;
display: grid;
gap: 9px;
border-radius: calc(12px * var(--round));
background: var(--paper);
border: 1px solid var(--oat);
animation: card var(--t) linear infinite;
}
/* The reset hides in a dark window at the wrap. */
@keyframes card {
0% {
opacity: 0;
}
2.5% {
opacity: 1;
}
95.5% {
opacity: 1;
animation-timing-function: var(--ease-out);
}
100% {
opacity: 0;
}
}
.head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.k {
font-size: 11px;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--_muted);
white-space: nowrap;
}
.pill {
display: grid;
font-size: 11px;
font-weight: 600;
flex: none;
}
.pill span {
grid-area: 1 / 1;
padding: 2px 8px;
border-radius: 999px;
text-align: center;
white-space: nowrap;
}
.p-run {
background: var(--_clay-wash);
color: var(--clay-d);
animation: p-out var(--t) linear infinite;
}
.p-ok {
background: var(--_rust-pill);
color: var(--rust);
animation: p-in var(--t) linear infinite;
}
@keyframes p-out {
0%,
46.5% {
opacity: 1;
animation-timing-function: ease;
}
48.5%,
100% {
opacity: 0;
}
}
@keyframes p-in {
0%,
46.5% {
opacity: 0;
animation-timing-function: ease;
}
48.5%,
100% {
opacity: 1;
}
}
.rows {
position: relative;
list-style: none;
animation:
c var(--t) linear infinite,
l var(--t) linear infinite,
k var(--t) linear infinite,
n var(--t) linear infinite;
}
/* A missing record does not poison the ones around it, so unlike a
tampered one the walk carries on past the hole and finishes. */
@keyframes c {
0%,
8% {
--_c: 0;
animation-timing-function: var(--ease-out);
}
10.5%,
16.5% {
--_c: 1;
animation-timing-function: var(--ease-out);
}
19%,
34% {
--_c: 2;
animation-timing-function: var(--ease-out);
}
36.5%,
43% {
--_c: 3;
animation-timing-function: var(--ease-out);
}
45.5%,
100% {
--_c: 4;
}
}
/* #1044's own link is drawn as broken with the slot, so the count
skips past it on the frame the hole opens. */
@keyframes l {
0%,
15.5% {
--_l: 0;
animation-timing-function: var(--ease-out);
}
18%,
27.9% {
--_l: 1;
}
28%,
42% {
--_l: 2;
animation-timing-function: var(--ease-out);
}
44.5%,
100% {
--_l: 3;
}
}
/* 2 → 3 is not a hop: the head rides down with #1044 as the hole opens,
on the rows' own curve, so it never lets go of the record it is on. */
@keyframes k {
0%,
10.5% {
--_k: 0;
animation-timing-function: var(--ease-in-out);
}
12.5%,
19% {
--_k: 1;
animation-timing-function: var(--ease-in-out);
}
21%,
25% {
--_k: 2;
animation-timing-function: var(--ease-in-out);
}
29.7%,
37% {
--_k: 3;
animation-timing-function: var(--ease-in-out);
}
39%,
100% {
--_k: 4;
}
}
@keyframes n {
0%,
8.4% {
--_n: 0;
}
8.5%,
16.9% {
--_n: 1;
}
17%,
34.4% {
--_n: 2;
}
34.5%,
43.4% {
--_n: 3;
}
43.5%,
100% {
--_n: 4;
}
}
.cursor {
position: absolute;
top: 0;
left: -7px;
right: -7px;
height: 26px;
border-radius: calc(6px * var(--round));
background: var(--_head);
box-shadow: inset 2px 0 0 var(--clay);
transform: translateY(calc(var(--_k) * 100%));
animation: cursor var(--t) linear infinite;
}
@keyframes cursor {
0%,
3% {
opacity: 0;
animation-timing-function: var(--ease-out);
}
5%,
46% {
opacity: 1;
animation-timing-function: var(--ease-out);
}
48.5%,
100% {
opacity: 0;
}
}
.rows {
height: 130px; /* five slots for four records: room for the one owed */
}
.row {
--_s: clamp(0, calc(var(--_c) - var(--_i)), 1);
--_ls: clamp(0, calc(var(--_l) - var(--_i) + 1), 1);
position: relative;
height: 26px;
display: grid;
grid-template-columns: 12px 40px minmax(0, 1fr) auto;
align-items: center;
gap: 8px;
font-size: 12.5px;
}
/* The chain: a link from the bottom of the mark above to the top of this
one. Grey until proven, then drawn downward — from the record being
pointed at, to the record doing the pointing. */
.row + .row::before,
.row + .row::after {
content: '';
position: absolute;
left: 5px;
top: -7px;
width: 2px;
height: 14px;
background: var(--oat);
}
.row + .row::after {
background: var(--olive);
transform-origin: top;
transform: scaleY(var(--_ls));
}
.mark {
position: relative;
width: 12px;
height: 12px;
border-radius: 50%;
border: 1.5px solid var(--oat);
}
.ok {
position: absolute;
inset: -1.5px;
border-radius: 50%;
background: var(--olive);
display: grid;
place-items: center;
opacity: var(--_s);
transform: scale(calc(1 - 0.14 * (1 - var(--_s)) * var(--_m)));
}
.ok svg {
width: 8px;
height: 8px;
fill: none;
stroke: var(--paper);
stroke-width: 1.8;
stroke-linecap: round;
stroke-linejoin: round;
}
/* Records after the hole make room for it — a full record's height,
because a missing record is a record-sized absence, not a hairline. */
.after {
animation: shift var(--t) linear infinite;
}
@keyframes shift {
0%,
25% {
transform: translateY(0);
animation-timing-function: var(--ease-in-out);
}
29.7%,
100% {
transform: translateY(100%);
}
}
.slot {
position: absolute;
top: 52px;
left: 0;
right: 0;
height: 26px;
display: grid;
grid-template-columns: 12px 40px minmax(0, 1fr) auto;
align-items: center;
gap: 8px;
font-size: 12.5px;
color: var(--rust);
animation: hole var(--t) linear infinite;
}
.slot::before {
content: '';
position: absolute;
inset: 1px -7px;
border-radius: calc(6px * var(--round));
border: 1px dashed var(--rust);
background: var(--_rust-wash);
z-index: -1;
}
/* It fades in as the rows finish parting, never before — the space
has to exist before anything can be shown missing from it. */
@keyframes hole {
0%,
29.7% {
opacity: 0;
animation-timing-function: ease;
}
32.5%,
100% {
opacity: 1;
}
}
.slot .mark {
border: 1.5px dashed var(--rust);
}
.slot .seq,
.slot .desc,
.slot .amt {
opacity: 1;
color: var(--rust);
}
.slot .desc {
font-weight: 600;
}
.link {
position: absolute;
left: 5px;
top: -7px;
width: 2px;
height: 14px;
background: repeating-linear-gradient(var(--rust) 0 2px, transparent 2px 4px);
}
/* #1044 can't be linked to a record that isn't there: its link turns
to the same dashes as the hole's, on the same beat. */
.after.first::before {
animation: p-out-gap var(--t) linear infinite;
}
.after.first::after {
transform: none;
background: repeating-linear-gradient(var(--rust) 0 2px, transparent 2px 4px);
animation: hole var(--t) linear infinite;
}
@keyframes p-out-gap {
0%,
29.7% {
opacity: 1;
animation-timing-function: ease;
}
32.5%,
100% {
opacity: 0;
}
}
.foot i {
font-style: normal;
color: var(--rust);
animation: hole var(--t) linear infinite;
}
.seq,
.desc,
.amt {
opacity: calc(0.55 + 0.45 * var(--_s));
white-space: nowrap;
}
.seq {
font-size: 11px;
font-weight: 700;
color: var(--_muted);
font-variant-numeric: tabular-nums;
}
.desc {
overflow: hidden;
text-overflow: ellipsis;
}
.amt {
font-weight: 500;
font-variant-numeric: tabular-nums;
text-align: right;
}
.foot {
border-top: 1px solid var(--oat);
padding-top: 8px;
font-size: 12px;
color: var(--_muted);
font-variant-numeric: tabular-nums;
counter-reset: n var(--_n);
animation: n var(--t) linear infinite;
}
.foot b {
font-weight: 600;
color: var(--slate);
}
.foot b::before {
content: counter(n);
}
@media (prefers-reduced-motion: reduce) {
:root {
--_m: 0;
}
/* One shared 1.6x clock keeps every part in phase. */
.card,
.card *,
.card *::before,
.card *::after {
animation-duration: calc(var(--t) * 1.6);
}
/* The order of the walk is the message, so it keeps every beat: the
head jumps between records instead of gliding, and links fade in
whole instead of drawing. */
.cursor {
transform: translateY(calc(round(var(--_k), 1) * 100%));
}
.row + .row:not(.first)::after {
transform: none;
opacity: var(--_ls);
}
/* Rows still part for the hole — the space is the finding — but
they step there in one frame rather than sliding. */
.after {
animation-name: shift-rm;
}
@keyframes shift-rm {
0%,
27.3% {
transform: translateY(0);
}
27.4%,
100% {
transform: translateY(100%);
}
}
}
</style>
</head>
<body>
<div
class="card"
role="img"
aria-label="A ledger audit walking numbered records: after 1042 the next record is 1044, so the records below part to open a dashed slot marked 1043 missing, the walk continues and verifies the rest, and the status reads 1 record missing"
>
<div class="head">
<span class="k">Ledger · Q3</span>
<span class="pill"><span class="p-run">Verifying</span><span class="p-ok">1 record missing</span></span>
</div>
<ol class="rows">
<li class="cursor" aria-hidden="true"></li>
<li class="row" style="--_i: 0">
<span class="mark"><span class="ok"><svg viewBox="0 0 8 8"><path d="M1.6 4.2 3.3 5.8 6.4 2.4" /></svg></span></span>
<span class="seq">#1041</span><span class="desc">Northwind Ltd</span><span class="amt">−1,240.00</span>
</li>
<li class="row" style="--_i: 1">
<span class="mark"><span class="ok"><svg viewBox="0 0 8 8"><path d="M1.6 4.2 3.3 5.8 6.4 2.4" /></svg></span></span>
<span class="seq">#1042</span><span class="desc">Payroll · Oct</span><span class="amt">−18,605.12</span>
</li>
<li class="row after first" style="--_i: 2">
<span class="mark"><span class="ok"><svg viewBox="0 0 8 8"><path d="M1.6 4.2 3.3 5.8 6.4 2.4" /></svg></span></span>
<span class="seq">#1044</span><span class="desc">Office lease</span><span class="amt">−4,200.00</span>
</li>
<li class="row after" style="--_i: 3">
<span class="mark"><span class="ok"><svg viewBox="0 0 8 8"><path d="M1.6 4.2 3.3 5.8 6.4 2.4" /></svg></span></span>
<span class="seq">#1045</span><span class="desc">Refund #88</span><span class="amt">+312.40</span>
</li>
<li class="slot" aria-hidden="true">
<span class="link"></span><span class="mark"></span>
<span class="seq">#1043</span><span class="desc">Missing</span><span class="amt">—</span>
</li>
</ol>
<p class="foot"><b></b> verified <i>· #1043 never arrived</i></p>
</div>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.