Tabbed split panel
Bordered two-column panel, text left and image box right, with three equal tabs along the bottom edge.
snippet.html95 lines
<section class="tsp">
<div class="tsp__wrap">
<span class="tsp__tag" data-block="Badge">The process</span>
<h2 class="tsp__title" data-block="Title">How we clean your records</h2>
<div class="tsp__panel" data-tsp>
<div class="tsp__slide is-on" id="tsp-a" role="tabpanel" aria-labelledby="tsp-ta">
<div class="tsp__copy" data-block="Text">
<small>Name coverage</small>
<h3>Every person is gone before anyone looks.</h3>
<p>Names, emails, phone numbers, account IDs and keys are found by two passes, one automated and one by a person. We check more than sixty kinds of detail, in every file type your team uses.</p>
</div>
<div class="tsp__art" data-block="Image"><div class="tsp__doc"><i></i><i></i><i class="s"></i><i></i><i class="s"></i><i></i><i class="s"></i></div></div>
</div>
<div class="tsp__slide" id="tsp-b" role="tabpanel" aria-labelledby="tsp-tb" hidden>
<div class="tsp__copy" data-block="Text">
<small>Pipeline</small>
<h3>Four checks between your files and a buyer.</h3>
<p>Files arrive in a locked workspace, get scrubbed, get sampled by a reviewer, and only then are packaged. A failed check sends the batch back to the start.</p>
</div>
<div class="tsp__art" data-block="Image"><div class="tsp__doc"><i class="s"></i><i></i><i></i><i class="s"></i><i></i></div></div>
</div>
<div class="tsp__slide" id="tsp-c" role="tabpanel" aria-labelledby="tsp-tc" hidden>
<div class="tsp__copy" data-block="Text">
<small>Policy</small>
<h3>You can pull your records at any time.</h3>
<p>Nothing is shared without a signed license. If you leave, we stop new deliveries and delete what we still hold within thirty days.</p>
</div>
<div class="tsp__art" data-block="Image"><div class="tsp__doc"><i></i><i class="s"></i><i class="s"></i><i></i></div></div>
</div>
<div class="tsp__tabs" data-block="List" role="tablist" aria-label="Process">
<button class="tsp__tab is-on" id="tsp-ta" role="tab" aria-selected="true" aria-controls="tsp-a" type="button">Name coverage</button>
<button class="tsp__tab" id="tsp-tb" role="tab" aria-selected="false" aria-controls="tsp-b" tabindex="-1" type="button">Our pipeline</button>
<button class="tsp__tab" id="tsp-tc" role="tab" aria-selected="false" aria-controls="tsp-c" tabindex="-1" type="button">Data policy</button>
</div>
</div>
</div>
</section>
<style>
.tsp { --tsp-bg: #ffffff; --tsp-ink: #111; --tsp-mute: #666; --tsp-line: #d4d4d4; box-sizing: border-box; padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem); background: var(--tsp-bg); color: var(--tsp-ink); font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
.tsp *, .tsp *::before, .tsp *::after { box-sizing: border-box; }
.tsp__wrap { max-width: 1140px; margin: 0 auto; }
.tsp__tag { display: inline-block; padding: 0.3rem 0.5rem; border: 1px dashed var(--tsp-line); font: 0.625rem/1 ui-monospace, Menlo, monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tsp-mute); }
.tsp__title { margin: 1rem 0 clamp(1.5rem, 4vw, 3rem); font: 400 clamp(2rem, 4vw, 2.75rem)/1 Georgia, "Times New Roman", serif; letter-spacing: -0.04em; }
.tsp__panel { border: 1px solid var(--tsp-line); }
.tsp__slide { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; }
.tsp__slide[hidden] { display: none; }
.tsp__slide.is-on { animation: tsp-in 0.35s ease both; }
@keyframes tsp-in { from { opacity: 0; } to { opacity: 1; } }
.tsp__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.5rem, 6vw, 5rem); background: #f2f2f2; }
.tsp__copy small { font-size: 0.6875rem; letter-spacing: 0.04em; text-transform: uppercase; }
.tsp__copy h3 { margin: 0.5rem 0 1rem; max-width: 22rem; font: 400 clamp(1.5rem, 2.6vw, 2rem)/1.1 Georgia, "Times New Roman", serif; letter-spacing: -0.02em; }
.tsp__copy p { margin: 0; max-width: 26rem; font-size: 0.9375rem; line-height: 1.5; color: var(--tsp-mute); }
.tsp__art { display: grid; place-items: center; padding: 2rem; background: #d4d4d4; }
.tsp__doc { width: min(100%, 24rem); padding: 1.25rem; border: 1px solid #bbb; background: #ffffff; display: grid; gap: 0.7rem; }
.tsp__doc i { height: 8px; width: 90%; background: #bbb; }
.tsp__doc i.s { width: 55%; background: #111; }
.tsp__doc i:nth-child(3n) { width: 70%; }
.tsp__tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--tsp-line); }
.tsp__tab { appearance: none; margin: 0; padding: 1.25rem 0.5rem; border: 0; border-left: 1px solid var(--tsp-line); background: transparent; color: var(--tsp-ink); font: 400 0.9375rem Georgia, "Times New Roman", serif; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.tsp__tab:first-child { border-left: 0; }
.tsp__tab:hover { background: #e8e8e6; }
.tsp__tab.is-on { background: #000; color: #fff; }
.tsp__tab:focus-visible { outline: 2px solid var(--tsp-ink); outline-offset: -4px; }
@media (max-width: 720px) { .tsp__slide { grid-template-columns: 1fr; min-height: 0; } .tsp__art { min-height: 220px; } .tsp__tab { font-size: 0.8125rem; } }
@media (prefers-reduced-motion: reduce) { .tsp__slide.is-on { animation: none; } }
</style>
<script>
(function () {
var root = document.querySelector("[data-tsp]");
if (!root) return;
var tabs = [].slice.call(root.querySelectorAll("[role=tab]"));
function show(i) {
tabs.forEach(function (t, n) {
var on = n === i, p = document.getElementById(t.getAttribute("aria-controls"));
t.classList.toggle("is-on", on);
t.setAttribute("aria-selected", on);
t.tabIndex = on ? 0 : -1;
p.hidden = !on;
p.classList.toggle("is-on", on);
});
}
tabs.forEach(function (t, i) {
t.addEventListener("click", function () { show(i); });
t.addEventListener("keydown", function (e) {
var d = e.key === "ArrowRight" ? 1 : e.key === "ArrowLeft" ? -1 : 0;
if (!d) return;
var n = (i + d + tabs.length) % tabs.length;
show(n); tabs[n].focus();
});
});
})();
</script>




