Sweep_AI / index.html
JP-AI-2026's picture
Update index.html
055f2d3 verified
Raw History Blame Contribute Delete
55 kB
<!doctype html>
<html lang="en-AU">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Sweep AI is a student-built project exploring how AI models can analyse spreadsheets and write clear reports." />
<meta name="theme-color" content="#efece2" />
<title>Sweep AI — Helping big data make more sense</title>
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='16' fill='%23b8f12a'/%3E%3Cg transform='rotate(40 32 32)' fill='%2314150f'%3E%3Crect x='30.5' y='8' width='3' height='27' rx='1.5'/%3E%3Crect x='25.5' y='34' width='13' height='6' rx='2'/%3E%3Cpath d='M25.5 40h13l4 16h-21z'/%3E%3C/g%3E%3Cpath fill='%2314150f' d='M16 9q0 7 7 7-7 0-7 7 0-7-7-7 7 0 7-7z'/%3E%3C/svg%3E" />
<style>
:root {
--paper: #efece2;
--paper-dark: #e4e0d3;
--ink: #14150f;
--body-ink: #34362b;
--soft: #5d5f52;
--lime: #b8f12a;
--lime-deep: #9ad414;
--white: #fbfaf5;
--grid: rgba(20, 21, 15, .07);
--rule: rgba(20, 21, 15, .23);
--sans: "Bricolage Grotesque", system-ui, sans-serif;
--mono: "IBM Plex Mono", ui-monospace, monospace;
}
/* Page shell, type and buttons */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 86px; }
body { display: flex; min-height: 100vh; flex-direction: column; margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
main { flex: 1; min-width: 0; overflow-x: clip; }
h1, h2, h3, p, ol, ul, figure, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.mono { font: 400 .74rem/1.45 var(--mono); letter-spacing: .02em; }
.label { display: inline-block; margin-bottom: 17px; padding-bottom: 4px; border-bottom: 2px solid currentColor; text-transform: uppercase; }
.page-title, .story-heading { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 800; line-height: 1; letter-spacing: -.037em; text-wrap: balance; }
.page-title:focus, #main-content:focus { outline: none; }
.mark { margin-inline: -3px; padding-inline: 3px; background: linear-gradient(transparent 59%, var(--lime) 59% 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 8px 19px; border: 2px solid var(--ink); border-radius: 10px; background: transparent; font-size: .95rem; font-weight: 700; line-height: 1.2; text-align: center; transition: transform .14s, box-shadow .14s, background .14s; }
.btn-lime { background: var(--lime); box-shadow: 3px 3px 0 var(--ink); }
.btn-lime:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-lime:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-plain:hover { background: var(--paper-dark); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2b2d22; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 50; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 8px; background: var(--lime); font-weight: 700; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
/* Broom branding and navigation */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 2px solid var(--ink); background: var(--paper); }
.header-inner { display: flex; min-height: 68px; align-items: center; gap: 26px; justify-content: space-between; }
.brand { display: inline-flex; width: fit-content; flex-shrink: 0; align-items: center; gap: 11px; font-size: 1.28rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.logo { flex-shrink: 0; }
.primary-nav { display: flex; align-items: center; gap: 23px; font-size: .95rem; font-weight: 500; }
.primary-nav a { padding-block: 5px; background: linear-gradient(var(--ink), var(--ink)) no-repeat left bottom / 0 2px; white-space: nowrap; transition: background-size .17s ease; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background-size: 100% 2px; }
.primary-nav a[aria-current="page"] { font-weight: 800; }
.menu-btn { display: none; width: 42px; height: 42px; place-items: center; padding: 0; border: 2px solid var(--ink); border-radius: 9px; background: transparent; }
.menu-btn[aria-expanded="true"] { background: var(--lime); }
/* Each page has its own hash URL. Without JavaScript they stack in order. */
.page-view { padding-block: clamp(54px, 7.2vw, 100px) clamp(42px, 6.2vw, 76px); }
.page-view[data-enter="forward"] { --enter-offset: 20px; animation: page-enter .36s cubic-bezier(.21, .75, .28, 1) both; }
.page-view[data-enter="back"] { --enter-offset: -20px; animation: page-enter .36s cubic-bezier(.21, .75, .28, 1) both; }
@keyframes page-enter {
from { opacity: 0; transform: translate3d(var(--enter-offset), 3px, 0); }
to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.page-heading { margin-bottom: clamp(29px, 4vw, 56px); }
.page-heading .page-title { max-width: 14em; }
.split-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px 45px; }
.heading-aside { max-width: 24em; margin-bottom: 1px; color: var(--soft); }
/* Home: paper grid, marker headline and a fictional spreadsheet */
.page-home { padding-top: 0; padding-bottom: 40px; }
.hero-bg { border-bottom: 2px solid var(--ink); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 36px 36px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-block: 84px 89px; }
.tag { display: inline-block; margin-bottom: 25px; padding: 5px 10px; border: 1.5px solid var(--ink); border-radius: 100px; background: var(--white); }
.hero .page-title { max-width: 11ch; font-size: clamp(2.95rem, 6.2vw, 5.4rem); line-height: .96; letter-spacing: -.043em; }
.hero-lede { max-width: 33em; margin-top: 24px; color: var(--body-ink); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: start; gap: 13px; margin-top: 28px; }
.hero-note { max-width: 39em; margin-top: 22px; color: var(--soft); font-size: .86rem; }
.demo { min-width: 0; padding-left: 36px; }
.sheet { position: relative; min-width: 0; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); box-shadow: 8px 8px 0 var(--ink); }
.sheet-bar { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 2px solid var(--ink); border-radius: 10px 10px 0 0; background: var(--paper-dark); }
.sheet-bar i { width: 10px; height: 10px; flex-shrink: 0; border: 1.5px solid var(--ink); border-radius: 50%; }
.sheet-bar .mono { margin-left: 5px; overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.sheet-body { position: relative; min-height: 268px; }
.sheet-rows { overflow: hidden; padding-block: 8px; }
.sheet-row { display: grid; height: 36px; grid-template-columns: 1fr 1fr .85fr; align-items: center; gap: 8px; padding-inline: 18px; font: 400 .8rem/1.3 var(--mono); transform: translateX(var(--x, 0px)) rotate(var(--r, 0deg)); transition: transform .42s cubic-bezier(.35, .05, .2, 1), opacity .34s ease; }
.sheet-row > :last-child { text-align: right; }
.sheet-row.head { border-bottom: 1.5px dashed var(--rule); color: var(--soft); font-size: .67rem; text-transform: uppercase; }
.sheet-row[data-issue] { background: #f6d9a0; }
.sheet-row.swept { opacity: 0; transform: translateX(110%) rotate(6deg); }
.sheet[data-state="clean"] .sheet-row { transform: none; }
.sheet[data-state="raw"] .sheet-row { transition: none; }
.cleanup-log { margin: 4px 18px 12px; padding: 10px 0 0; border-top: 1.5px dashed var(--rule); color: var(--soft); font-size: .68rem; }
.cleanup-log strong { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 500; text-transform: uppercase; }
.cleanup-log p + p { margin-top: 3px; }
.broom { position: absolute; top: 0; left: -36px; z-index: 2; width: 92px; height: 32px; pointer-events: none; transition: top .23s ease; }
.broom.push { animation: broom-push .36s ease-in-out; }
@keyframes broom-push { 48% { transform: translateX(39px); } }
.sheet-summary { min-height: 120px; margin: 6px 14px 14px; padding: 13px 15px; border: 2px solid var(--ink); border-radius: 8px; background: #eaf4cb; transition: background .32s ease; }
.sheet[data-state="clean"] .sheet-summary { background: var(--lime); }
.sheet-summary .mono { display: block; margin-bottom: 5px; font-size: .67rem; font-weight: 500; text-transform: uppercase; }
.sheet-summary p { font-size: .93rem; font-weight: 500; line-height: 1.44; }
.demo-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px 14px; margin-top: 19px; color: var(--soft); }
.demo-caption .mono { font-size: .68rem; }
.demo-control { display: inline-flex; min-height: 34px; align-items: center; gap: 7px; padding: 5px 7px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--paper); color: var(--ink); font: 500 .68rem/1.3 var(--mono); }
.demo-control:not([aria-disabled="true"]):hover { background: var(--lime); }
.demo-control[aria-disabled="true"] { color: var(--soft); cursor: default; }
.proof-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 2px solid var(--ink); }
.proof-strip li { display: flex; min-height: 57px; align-items: center; gap: 10px; padding: 10px 15px; font-size: .9rem; font-weight: 700; line-height: 1.3; }
.proof-strip li:first-child { padding-left: 0; }
.proof-strip li + li { border-left: 1px solid var(--rule); }
.proof-strip .mono { color: var(--soft); }
/* The project goals and three-step workflow */
.why-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(25px, 6vw, 75px); align-items: start; }
.large-copy { max-width: 27em; color: var(--body-ink); font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 500; line-height: 1.3; letter-spacing: -.02em; }
.why-grid .btn { margin-top: 25px; }
.features { border-top: 2px solid var(--ink); }
.feature { display: grid; grid-template-columns: 42px 1fr; gap: 13px; padding-block: 17px; border-bottom: 2px solid var(--ink); }
.feature .mono { padding-top: 4px; color: var(--soft); }
.feature h3 { margin-bottom: 4px; font-size: 1.27rem; font-weight: 800; letter-spacing: -.025em; }
.feature p { color: var(--body-ink); }
.jobs { border-top: 2px solid var(--ink); }
.job { display: grid; grid-template-columns: 68px minmax(0, .8fr) minmax(0, 1.2fr); align-items: baseline; gap: 24px; padding-block: 28px; border-bottom: 2px solid var(--ink); }
.job-num { color: var(--soft); }
.job h3 { font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.job p { max-width: 34em; color: var(--body-ink); }
.jobs-end { max-width: 41em; margin-top: 23px; color: var(--body-ink); font-weight: 500; }
/* Sample report: the cleaned data and what it means */
.report-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 27px; align-items: start; }
.report-chart-pad, .report-notes { padding: clamp(16px, 2.4vw, 27px); }
.report-notes { background: var(--lime); }
.report-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.report-card-heading h3, .report-notes h3 { margin-top: 5px; font-size: clamp(1.5rem, 3vw, 2.23rem); font-weight: 800; line-height: 1.08; letter-spacing: -.032em; }
.report-metric { flex-shrink: 0; padding: 4px 8px; border: 1.5px solid var(--ink); border-radius: 7px; background: var(--lime); font-weight: 500; }
.chart { display: grid; grid-template-columns: 29px minmax(0, 1fr); grid-template-rows: clamp(148px, 16vw, 174px) auto; gap: 8px; margin-top: 24px; }
.chart-scale { display: flex; flex-direction: column; justify-content: space-between; margin-block: -6px; color: var(--soft); font: 400 .66rem/1.1 var(--mono); text-align: right; }
.plot { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; justify-items: center; border-block: 1px solid var(--rule); background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), var(--rule) calc(25% - 1px) 25%); }
.bar { width: min(68%, 78px); height: var(--bar-height); padding-top: 7px; border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 5px 5px 0 0; background: #dfdac8; color: var(--ink); font: 500 .7rem/1.4 var(--mono); text-align: center; }
.bar:nth-child(2) { background: #d1cead; }
.bar:nth-child(3) { background: var(--lime); }
.chart-labels { display: grid; grid-column: 2; grid-template-columns: repeat(3, 1fr); color: var(--soft); font-size: .68rem; text-align: center; }
.sample-data { margin-top: 20px; padding-top: 11px; border-top: 1.5px dashed var(--rule); }
.sample-data summary { width: fit-content; padding-block: 4px; font-size: .89rem; font-weight: 700; cursor: pointer; }
.sample-data table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: .9rem; }
.sample-data th, .sample-data td { padding: 6px 10px; border-bottom: 1px solid var(--rule); text-align: left; }
.sample-data :is(th,td):last-child { text-align: right; }
.report-insights { margin-top: 20px; }
.report-insights > div { padding-block: 12px; border-top: 1px solid var(--ink); }
.report-insights > div:last-child { padding-bottom: 0; }
.report-insights dt { margin-bottom: 3px; font-size: .67rem; font-weight: 500; text-transform: uppercase; }
.report-insights dd { color: #252916; font-size: .99rem; }
/* Dark model ledger with the active preview highlighted */
.models { --turn-rule: rgba(239, 236, 226, .42); --turn-muted: #d0cdbf; background: var(--ink); color: var(--paper); }
.models :focus-visible { outline-color: var(--lime); }
.ledger { border-top: 1.5px solid rgba(239, 236, 226, .5); }
.ledger-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; }
.ledger-head { padding: 14px 20px; color: #bfbdb0; font-size: .68rem; text-transform: uppercase; }
.model { padding: 25px 20px; border-top: 1.5px solid rgba(239, 236, 226, .25); }
.model-name { font-size: clamp(1.48rem, 2.5vw, 1.9rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.model-description, .model-format { color: #d0cdbf; }
.model-format { font-size: .78rem; }
.model-target { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; font-size: .83rem; }
.model.now { border-top-color: transparent; border-radius: 12px; background: var(--lime); color: var(--ink); }
.model.now .model-description, .model.now .model-format { color: #292e1b; }
.pill { padding: 3px 8px; border: 1px solid var(--ink); border-radius: 100px; background: var(--ink); color: var(--lime); font-size: .63rem; text-transform: uppercase; white-space: nowrap; }
.mobile-label { display: none; }
.models-note { max-width: 43em; margin-top: 30px; color: #d0cdbf; }
.models-note strong { color: var(--lime); font-weight: 700; }
/* Roadmap: the year on one line and all four release milestones */
.year { margin: 43px 0 53px; }
.year-title { margin-bottom: 13px; color: var(--soft); }
.year-line { position: relative; height: 22px; border: 2px solid var(--ink); border-radius: 100px; background: var(--white); }
.stop { position: absolute; top: 50%; left: var(--at); display: grid; width: 40px; height: 40px; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--white); font-size: .84rem; font-weight: 500; transform: translate(-50%, -50%); }
.stop.next { background: var(--lime); box-shadow: 0 0 0 5px rgba(184, 241, 42, .44); }
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: 21px; color: var(--soft); font-size: .68rem; text-align: center; }
.milestones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.milestone { padding: 25px 23px 7px 0; }
.milestone + .milestone { padding-left: 23px; border-left: 2px solid var(--ink); }
.milestone-date { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--body-ink); font-size: .83rem; }
.milestone-number { display: grid; width: 28px; height: 28px; flex-shrink: 0; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--ink); color: var(--paper); font-size: .71rem; font-weight: 500; }
.milestone.next .milestone-number { background: var(--lime); color: var(--ink); }
.milestone h3 { margin-bottom: 9px; font-size: 1.38rem; font-weight: 800; line-height: 1.12; letter-spacing: -.027em; }
.milestone p:not(.milestone-date) { color: var(--body-ink); font-size: .97rem; }
/* About: the reference's full-width lime panel */
.about { background: var(--lime); }
.about-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 6vw, 70px); align-items: start; }
.about-grid .page-title { max-width: 11em; }
.about-text p { max-width: 32em; margin-bottom: 17px; font-size: 1.12rem; }
.about-text .fine { margin-top: 24px; padding: 15px 16px; border: 2px dashed var(--ink); border-radius: 10px; font-size: .94rem; }
.about-text .btn { margin-top: 4px; }
/* Previous / next and the footer */
.page-turn { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; margin-top: clamp(32px, 5vw, 58px); padding-top: 17px; border-top: 2px solid var(--turn-rule, var(--ink)); }
.proof-strip + .page-turn { margin-top: 0; border-top: 0; }
.turn-link { display: inline-flex; width: fit-content; min-height: 44px; align-items: center; gap: 9px; border-radius: 7px; }
.turn-link small, .turn-link strong { display: block; }
.turn-link small { color: var(--turn-muted, var(--soft)); font-size: .61rem; text-transform: uppercase; }
.turn-link strong { margin-top: 1px; font-size: .94rem; line-height: 1.18; }
.turn-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.turn-next { justify-self: end; text-align: right; }
.turn-arrow { display: grid; width: 34px; height: 34px; flex-shrink: 0; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; font-size: 1rem; line-height: 1; transition: transform .14s ease, background .14s ease; }
.turn-next .turn-arrow { border-color: var(--ink); background: var(--lime); color: var(--ink); }
.models .turn-next .turn-arrow { border-color: var(--lime); }
.about .turn-next .turn-arrow { background: var(--ink); color: var(--paper); }
.turn-link:hover .turn-arrow { transform: translateX(-2px); }
.turn-next:hover .turn-arrow { transform: translateX(2px); }
.page-meter { display: grid; grid-column: 2; justify-items: center; gap: 5px; color: var(--turn-muted, var(--soft)); font-size: .65rem; white-space: nowrap; }
.page-track { width: 44px; height: 3px; overflow: hidden; border-radius: 2px; background: var(--turn-rule, var(--rule)); }
.page-track::before { display: block; width: var(--progress); height: 100%; background: var(--ink); content: ""; }
.models .page-track::before { background: var(--lime); }
.site-footer { border-top: 2px solid var(--ink); background: var(--paper); }
.footer-inner { display: flex; min-height: 83px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 13px 24px; padding-block: 19px; color: var(--soft); }
.footer-inner .brand { color: var(--ink); font-size: 1.08rem; }
.back-top { padding-block: 6px; }
.back-top:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 980px) {
.hero { grid-template-columns: 1fr; gap: 45px; padding-block: 60px 68px; }
.hero .page-title { max-width: 15ch; }
.demo { width: min(100% - 8px, 550px); }
.split-heading { flex-wrap: wrap; }
.heading-aside { max-width: 32em; }
.ledger-row { gap: 15px; }
.milestones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.milestone { padding-right: 18px; }
.milestone + .milestone { padding-left: 18px; }
.milestone:nth-child(3) { padding-left: 0; border-left: 0; }
.milestone:nth-child(n+3) { margin-top: 19px; border-top: 2px solid var(--ink); }
}
@media (max-width: 840px) {
.site-header:not(.menu-ready) { position: relative; }
.header-inner { min-height: 63px; flex-wrap: wrap; gap: 9px 18px; padding-block: 8px; }
.primary-nav { width: 100%; flex-wrap: wrap; gap: 4px 17px; }
.menu-ready .menu-btn { display: grid; }
.menu-ready .primary-nav { position: absolute; top: 100%; left: 0; display: grid; max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; gap: 0; padding: 8px 24px 14px; border-block: 2px solid var(--ink); background: var(--paper); box-shadow: 0 5px 0 rgba(20, 21, 15, .16); }
.menu-ready .primary-nav a { min-height: 41px; padding: 9px 5px; border-bottom: 1px solid var(--rule); background: none; }
.menu-ready .primary-nav a[aria-current="page"] { background: var(--paper-dark); }
.menu-ready .menu-btn[aria-expanded="false"] + .primary-nav { display: none; }
}
@media (max-width: 760px) {
body { font-size: 16px; }
.wrap { width: calc(100% - 32px); }
.hero { gap: 35px; padding-block: 53px 58px; }
.hero .page-title { max-width: 12ch; }
.hero-lede { font-size: 1.06rem; }
.demo { padding-left: 26px; }
.broom { left: -26px; width: 73px; }
.sheet-row { padding-inline: 12px; font-size: .74rem; }
.sheet-summary { margin-inline: 11px; }
.why-grid, .report-grid, .about-grid { grid-template-columns: 1fr; }
.about-text p { font-size: 1.05rem; }
.ledger-row { grid-template-columns: 1fr 1fr; gap: 10px 13px; }
.ledger-head { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.model { padding: 22px 15px; }
.model-name, .model-description { grid-column: 1 / -1; }
.model-target { align-self: start; }
.mobile-label { display: block; width: 100%; opacity: .85; font-size: .65rem; text-transform: uppercase; }
.model-format .mobile-label { margin-bottom: 5px; }
.model-target .mobile-label { margin-bottom: -2px; }
}
@media (max-width: 540px) {
.hero .page-title { font-size: clamp(2.65rem, 10.5vw, 3.6rem); }
.hero .tag { margin-bottom: 19px; }
.sheet-bar { gap: 7px; padding-inline: 10px; }
.sheet-bar .mono { font-size: .62rem; }
.sheet-summary { min-height: 0; padding: 10px 11px; }
.sheet-summary p { font-size: .86rem; }
.proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.proof-strip li, .proof-strip li:first-child { min-height: 47px; padding-inline: 7px; font-size: .81rem; }
.proof-strip li:nth-child(3) { border-left: 0; }
.proof-strip li:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
.job { grid-template-columns: 31px minmax(0, 1fr); gap: 8px 11px; padding-block: 20px; }
.job p { grid-column: 2; }
.year { margin: 36px 0 39px; padding-inline: 4px; }
.months span:nth-child(even):not(:nth-child(10)) { visibility: hidden; }
.months span:nth-child(9) { visibility: hidden; }
.stop { width: 32px; height: 32px; font-size: .75rem; }
.milestones { grid-template-columns: 1fr; }
.milestone, .milestone + .milestone { padding: 18px 0; border-left: 0; }
.milestone:nth-child(n+2) { margin-top: 0; border-top: 1.5px solid var(--ink); }
.milestone-date { margin-bottom: 8px; }
.page-turn, .turn-link { gap: 5px; }
.turn-link small, .page-meter { font-size: .57rem; }
.turn-link strong { font-size: .78rem; }
.turn-arrow { width: 28px; height: 28px; }
.page-track { width: 32px; }
.footer-inner p { width: 100%; order: 1; }
}
@media (max-width: 360px) {
.hero-actions { display: grid; grid-template-columns: 1fr; }
.demo { padding-left: 18px; }
.broom { left: -18px; width: 61px; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
</style>
<!-- EMBEDDED_FONTS -->
</head>
<body>
<!-- Shared broom mark, used in the header and footer. -->
<svg width="0" height="0" style="position:absolute" aria-hidden="true" focusable="false">
<symbol id="sweep-logo" viewBox="0 0 64 64">
<rect width="64" height="64" rx="16" fill="#b8f12a" />
<g transform="rotate(40 32 32)" fill="#14150f">
<rect x="30.5" y="8" width="3" height="27" rx="1.5" />
<rect x="25.5" y="34" width="13" height="6" rx="2" />
<path d="M25.5 40h13l4 16h-21z" />
<path d="M29 45v9M32 45v10M35 45v9" fill="none" stroke="#b8f12a" stroke-width="1.2" stroke-linecap="round" />
</g>
<path fill="#14150f" d="M16 9q0 7 7 7-7 0-7 7 0-7-7-7 7 0 7-7zM28 8q0 3.5 3.5 3.5-3.5 0-3.5 3.5 0-3.5-3.5-3.5 3.5 0 3.5-3.5z" />
</symbol>
</svg>
<a class="skip-link" href="#main-content">Skip to content</a>
<header class="site-header" id="top">
<div class="wrap header-inner">
<a class="brand" href="#home" aria-label="Sweep AI home">
<svg class="logo" width="38" height="38" aria-hidden="true" focusable="false"><use href="#sweep-logo" /></svg>
Sweep AI
</a>
<button class="menu-btn" id="menu-button" type="button" aria-label="Menu" aria-expanded="false" aria-controls="primary-nav" hidden>
<svg width="19" height="17" viewBox="0 0 19 17" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M0 2.5h19M0 8.5h19M0 14.5h19" /></svg>
</button>
<nav class="primary-nav" id="primary-nav" aria-label="Main navigation">
<a href="#home">Home</a>
<a href="#why-sweep">Why Sweep</a>
<a href="#how-it-works">How it works</a>
<a href="#sample-report">Sample report</a>
<a href="#models">Models</a>
<a href="#roadmap">Roadmap</a>
<a href="#about">About</a>
</nav>
</div>
</header>
<main id="main-content" tabindex="-1">
<!-- Page 1: Home -->
<section class="page-view page-home" id="home" aria-labelledby="home-title" data-title="Helping big data make more sense">
<div class="hero-bg">
<div class="hero wrap">
<div class="hero-copy">
<p class="tag mono">Year 7 project · not released yet</p>
<h1 class="page-title" id="home-title" tabindex="-1">Helping big data make <span class="mark">more sense.</span></h1>
<p class="hero-lede">Sweep AI is a growing family of models designed to read big spreadsheets and databases, analyse patterns and turn the findings into clear reports.</p>
<div class="hero-actions">
<a class="btn btn-lime" href="#roadmap">See the plan <span aria-hidden="true">↗</span></a>
<a class="btn btn-plain" href="#how-it-works">How it works <span aria-hidden="true">→</span></a>
</div>
<p class="hero-note">Built by a Year 7 student curious about what computers can help people understand.</p>
</div>
<figure class="demo" id="sweep-demo">
<div class="sheet" data-state="raw">
<div class="sheet-bar">
<i aria-hidden="true"></i><i aria-hidden="true"></i><i aria-hidden="true"></i>
<span class="mono">library_loans_FINAL_v3 (2).csv</span>
</div>
<div class="sheet-body">
<div class="sheet-rows" role="table" aria-label="Fictional spreadsheet of school library loans">
<div class="sheet-row head" role="row"><span role="columnheader">Month</span><span role="columnheader">Year level</span><span role="columnheader">Loans</span></div>
<div class="sheet-row" role="row" style="--x: 6px; --r: -.6deg"><span role="cell">apr</span><span role="cell">all</span><span role="cell">120</span></div>
<div class="sheet-row" role="row" data-issue="duplicate" style="--x: -5px; --r: .8deg"><span role="cell">Apr</span><span role="cell">all</span><span role="cell">120<span class="sr-only">, duplicate row</span></span></div>
<div class="sheet-row" role="row" data-issue="missing" style="--x: 7px; --r: -.5deg"><span role="cell">may</span><span role="cell">all</span><span role="cell">N/A</span></div>
<div class="sheet-row" role="row" style="--x: -4px; --r: .7deg"><span role="cell">may</span><span role="cell">all</span><span role="cell">150</span></div>
<div class="sheet-row" role="row" data-issue="invalid" style="--x: 5px; --r: -.7deg"><span role="cell">jun</span><span role="cell"><span class="sr-only">Missing year level</span></span><span role="cell">18O<span class="sr-only">, invalid number</span></span></div>
<div class="sheet-row" role="row" style="--x: -3px; --r: .5deg"><span role="cell">jun</span><span role="cell">all</span><span role="cell">180</span></div>
</div>
<div class="cleanup-log mono" hidden>
<strong>3 rows kept</strong>
<p>✓ 1 duplicate removed</p>
<p>✓ 2 incomplete or invalid rows removed</p>
</div>
<svg class="broom" viewBox="0 0 92 32" aria-hidden="true" hidden>
<rect x="0" y="14" width="50" height="4" rx="2" fill="#14150f" />
<rect x="50" y="9" width="9" height="14" rx="2" fill="#14150f" />
<path d="M59 9L88 3v26L59 23z" fill="#14150f" />
<path d="M64 12L84 8M64 16h22M64 20l20 4" fill="none" stroke="#b8f12a" stroke-width="1.4" stroke-linecap="round" />
</svg>
</div>
<div class="sheet-summary">
<span class="mono">Example summary</span>
<p>After excluding the highlighted rows, library loans went from 120 in April to 180 in June. That’s a 50% increase, though the numbers don’t tell us why.</p>
</div>
</div>
<figcaption class="demo-caption">
<span class="mono">Fictional data · example only</span>
<button class="demo-control" id="sweep-button" type="button" hidden><span class="demo-button-label">Sweep rows</span><span aria-hidden="true">↻</span></button>
</figcaption>
<p class="sr-only" id="sweep-status" role="status"></p>
</figure>
</div>
</div>
<div class="wrap">
<ul class="proof-strip" aria-label="Sweep AI goals">
<li><span class="mono">01</span>Look at data</li>
<li><span class="mono">02</span>Analyse patterns</li>
<li><span class="mono">03</span>Report clearly</li>
<li><span class="mono">04</span>Improve over time</li>
</ul>
<nav class="page-turn" aria-label="Continue from Home">
<p class="page-meter mono"><span class="sr-only">Page 1 of 7</span><span aria-hidden="true">01 / 07</span><span class="page-track" style="--progress: 14.3%" aria-hidden="true"></span></p>
<a class="turn-link turn-next" href="#why-sweep"><span><small class="mono">Next page</small><strong>Why Sweep</strong></span><span class="turn-arrow" aria-hidden="true">→</span></a>
</nav>
</div>
</section>
<!-- Page 2: Why Sweep -->
<section class="page-view" id="why-sweep" aria-labelledby="why-title" data-title="Why Sweep">
<div class="wrap">
<div class="page-heading">
<p class="label mono">02 · Why Sweep</p>
<h2 class="page-title" id="why-title" tabindex="-1">Not just another chatbot. A direction for useful models.</h2>
</div>
<div class="why-grid">
<div>
<p class="large-copy">The idea behind Sweep is simple: help people work through large databases without making the information feel impossible to use.</p>
<a class="btn btn-plain" href="#how-it-works">Explore the workflow <span aria-hidden="true">→</span></a>
</div>
<div class="features">
<article class="feature"><span class="mono" aria-hidden="true">01</span><div><h3>See the signal</h3><p>Find useful information inside large, messy collections of data.</p></div></article>
<article class="feature"><span class="mono" aria-hidden="true">02</span><div><h3>Explain the result</h3><p>Turn analysis into reports that are easier for people to read and act on.</p></div></article>
<article class="feature"><span class="mono" aria-hidden="true">03</span><div><h3>Keep getting better</h3><p>Each new model should do the work better than the one before it.</p></div></article>
</div>
</div>
<nav class="page-turn" aria-label="Browse from Why Sweep">
<a class="turn-link" href="#home"><span class="turn-arrow" aria-hidden="true">←</span><span><small class="mono">Previous</small><strong>Home</strong></span></a>
<p class="page-meter mono"><span class="sr-only">Page 2 of 7</span><span aria-hidden="true">02 / 07</span><span class="page-track" style="--progress: 28.6%" aria-hidden="true"></span></p>
<a class="turn-link turn-next" href="#how-it-works"><span><small class="mono">Next page</small><strong>How it works</strong></span><span class="turn-arrow" aria-hidden="true">→</span></a>
</nav>
</div>
</section>
<!-- Page 3: How it works -->
<section class="page-view" id="how-it-works" aria-labelledby="workflow-title" data-title="How it works">
<div class="wrap" id="what">
<div class="page-heading split-heading">
<div><p class="label mono">03 · How it works</p><h2 class="page-title" id="workflow-title" tabindex="-1">Three jobs, in this order.</h2></div>
<p class="heading-aside">The planned workflow: understand the source, look for patterns, and explain the findings.</p>
</div>
<ol class="jobs">
<li class="job"><span class="job-num mono" aria-hidden="true">01</span><h3>Look</h3><p>Check what each column measures, how much data is present and where information is missing.</p></li>
<li class="job"><span class="job-num mono" aria-hidden="true">02</span><h3>Analyse</h3><p>Compare groups or time periods, look for changes, and flag unusual values worth checking.</p></li>
<li class="job"><span class="job-num mono" aria-hidden="true">03</span><h3>Report</h3><p>Summarise the main finding in plain language and explain what the data cannot tell us.</p></li>
</ol>
<p class="jobs-end">The next page shows what a report might look like using made-up school library data.</p>
<nav class="page-turn" aria-label="Browse from How it works">
<a class="turn-link" href="#why-sweep"><span class="turn-arrow" aria-hidden="true">←</span><span><small class="mono">Previous</small><strong>Why Sweep</strong></span></a>
<p class="page-meter mono"><span class="sr-only">Page 3 of 7</span><span aria-hidden="true">03 / 07</span><span class="page-track" style="--progress: 42.9%" aria-hidden="true"></span></p>
<a class="turn-link turn-next" href="#sample-report"><span><small class="mono">Next page</small><strong>Sample report</strong></span><span class="turn-arrow" aria-hidden="true">→</span></a>
</nav>
</div>
</section>
<!-- Page 4: Sample report -->
<section class="page-view" id="sample-report" aria-labelledby="report-title" data-title="Sample report">
<div class="wrap">
<div class="page-heading split-heading">
<div><p class="label mono">04 · Sample report</p><h2 class="page-title" id="report-title" tabindex="-1">What could a Sweep report look like?</h2></div>
<p class="heading-aside">Using the fictional library data from the home page. This example isn’t generated by a live model.</p>
</div>
<div class="report-grid">
<article class="sheet">
<div class="sheet-bar"><i aria-hidden="true"></i><i aria-hidden="true"></i><i aria-hidden="true"></i><span class="mono">library_loans_clean.csv</span></div>
<div class="report-chart-pad">
<div class="report-card-heading">
<div><p class="mono">Example data · April to June</p><h3>School library loans</h3></div>
<span class="report-metric mono" title="Increase from April to June">+50%</span>
</div>
<div class="chart" role="img" aria-label="Bar chart showing 120 loans in April, 150 in May and 180 in June.">
<div class="chart-scale" aria-hidden="true"><span>200</span><span>150</span><span>100</span><span>50</span><span>0</span></div>
<div class="plot" aria-hidden="true"><div class="bar" style="--bar-height: 60%">120</div><div class="bar" style="--bar-height: 75%">150</div><div class="bar" style="--bar-height: 90%">180</div></div>
<div class="chart-labels mono" aria-hidden="true"><span>Apr</span><span>May</span><span>Jun</span></div>
</div>
<details class="sample-data">
<summary>View sample data</summary>
<table aria-label="Fictional number of school library loans by month">
<thead><tr><th scope="col">Month</th><th scope="col">Loans</th></tr></thead>
<tbody><tr><td>April</td><td>120</td></tr><tr><td>May</td><td>150</td></tr><tr><td>June</td><td>180</td></tr></tbody>
</table>
</details>
</div>
</article>
<article class="sheet report-notes">
<p class="mono">Explanation · In plain language</p>
<h3>Loans rose each month.</h3>
<dl class="report-insights">
<div><dt class="mono">Main finding</dt><dd>June had 60 more loans than April, a 50% increase. The total went up by 30 loans each month.</dd></div>
<div><dt class="mono">What we don’t know</dt><dd>These totals show an increase, but don’t tell us what caused it.</dd></div>
<div><dt class="mono">Next question</dt><dd>Did borrowing rise across all year levels, or was most of the increase in one group?</dd></div>
</dl>
</article>
</div>
<nav class="page-turn" aria-label="Browse from Sample report">
<a class="turn-link" href="#how-it-works"><span class="turn-arrow" aria-hidden="true">←</span><span><small class="mono">Previous</small><strong>How it works</strong></span></a>
<p class="page-meter mono"><span class="sr-only">Page 4 of 7</span><span aria-hidden="true">04 / 07</span><span class="page-track" style="--progress: 57.1%" aria-hidden="true"></span></p>
<a class="turn-link turn-next" href="#models"><span><small class="mono">Next page</small><strong>Models</strong></span><span class="turn-arrow" aria-hidden="true">→</span></a>
</nav>
</div>
</section>
<!-- Page 5: Models -->
<section class="page-view models" id="models" aria-labelledby="models-title" data-title="The model family">
<div class="wrap">
<div class="page-heading"><p class="label mono">05 · The models</p><h2 class="page-title" id="models-title" tabindex="-1">Four models, from small to big.</h2></div>
<div class="ledger" role="table" aria-label="Sweep AI model comparison and release targets">
<div class="ledger-row ledger-head mono" role="row"><span role="columnheader">Name</span><span role="columnheader">What it’s for</span><span role="columnheader">Format</span><span role="columnheader">Aiming for</span></div>
<div class="ledger-row model now" role="row">
<span class="model-name" role="rowheader">sweep-1</span>
<span class="model-description" role="cell">The first preview: a starting point for looking at data and explaining what it finds.</span>
<span class="model-format mono" role="cell"><span class="mobile-label" aria-hidden="true">Format</span>Preview</span>
<span class="model-target mono" role="cell"><span class="mobile-label" aria-hidden="true">Aiming for</span><time datetime="2027-01">Jan 2027</time><span class="pill mono">Building now</span></span>
</div>
<div class="ledger-row model" role="row">
<span class="model-name" role="rowheader">Sweep Lite</span>
<span class="model-description" role="cell">A smaller, quicker version for straightforward analysis and useful summaries.</span>
<span class="model-format mono" role="cell"><span class="mobile-label" aria-hidden="true">Format</span>Lightweight</span>
<span class="model-target mono" role="cell"><span class="mobile-label" aria-hidden="true">Aiming for</span><time datetime="2027-03">Mar 2027</time></span>
</div>
<div class="ledger-row model" role="row">
<span class="model-name" role="rowheader">Sweep Latest</span>
<span class="model-description" role="cell">A more capable model built for deeper analysis and longer reports.</span>
<span class="model-format mono" role="cell"><span class="mobile-label" aria-hidden="true">Format</span>Your computer (desktop SaaS)</span>
<span class="model-target mono" role="cell"><span class="mobile-label" aria-hidden="true">Aiming for</span><time datetime="2027-06">Late Jun 2027</time></span>
</div>
<div class="ledger-row model" role="row">
<span class="model-name" role="rowheader">Sweep Ultra</span>
<span class="model-description" role="cell">The long-term goal: the best-quality results Sweep can deliver.</span>
<span class="model-format mono" role="cell"><span class="mobile-label" aria-hidden="true">Format</span>Your computer (desktop SaaS)</span>
<span class="model-target mono" role="cell"><span class="mobile-label" aria-hidden="true">Aiming for</span><time datetime="2027-10">Late Oct 2027</time></span>
</div>
</div>
<p class="models-note"><strong>Our rule:</strong> aim for better-quality results as the models advance, with clear limits, careful testing and people still in control.</p>
<nav class="page-turn" aria-label="Browse from Models">
<a class="turn-link" href="#sample-report"><span class="turn-arrow" aria-hidden="true">←</span><span><small class="mono">Previous</small><strong>Sample report</strong></span></a>
<p class="page-meter mono"><span class="sr-only">Page 5 of 7</span><span aria-hidden="true">05 / 07</span><span class="page-track" style="--progress: 71.4%" aria-hidden="true"></span></p>
<a class="turn-link turn-next" href="#roadmap"><span><small class="mono">Next page</small><strong>Roadmap</strong></span><span class="turn-arrow" aria-hidden="true">→</span></a>
</nav>
</div>
</section>
<!-- Page 6: Roadmap -->
<section class="page-view" id="roadmap" aria-labelledby="roadmap-title" data-title="Roadmap">
<div class="wrap">
<div class="split-heading">
<div><p class="label mono">06 · Roadmap</p><h2 class="page-title" id="roadmap-title" tabindex="-1">One year, four steps.</h2></div>
<p class="heading-aside">These dates are targets. If something needs more testing, the date moves.</p>
</div>
<div class="year" aria-hidden="true">
<p class="year-title mono">2027</p>
<div class="year-line">
<span class="stop next mono" style="--at: 4.2%">1</span><span class="stop mono" style="--at: 20.8%">2</span><span class="stop mono" style="--at: 48.3%">3</span><span class="stop mono" style="--at: 81.7%">4</span>
</div>
<div class="months mono"><span>Jan</span><span>Feb</span><span>Mar</span><span>Apr</span><span>May</span><span>Jun</span><span>Jul</span><span>Aug</span><span>Sep</span><span>Oct</span><span>Nov</span><span>Dec</span></div>
</div>
<ol class="milestones">
<li class="milestone next"><p class="milestone-date mono"><span class="milestone-number mono" aria-hidden="true">1</span><time datetime="2027-01">January</time> · next up</p><h3>Finish the sweep-1 preview</h3><p>A first version that looks at data, spots patterns and writes a simple explanation.</p></li>
<li class="milestone"><p class="milestone-date mono"><span class="milestone-number mono" aria-hidden="true">2</span><time datetime="2027-03">March</time></p><h3>Release Sweep Lite</h3><p>A faster, lighter model for everyday data questions and quick summaries.</p></li>
<li class="milestone"><p class="milestone-date mono"><span class="milestone-number mono" aria-hidden="true">3</span><time datetime="2027-06">Late June</time></p><h3>Launch Sweep Latest</h3><p>A desktop model that runs on your own computer, with stronger analysis and reporting.</p></li>
<li class="milestone"><p class="milestone-date mono"><span class="milestone-number mono" aria-hidden="true">4</span><time datetime="2027-10">Late October</time></p><h3>Build Sweep Ultra</h3><p>The most advanced planned model, aiming for Sweep’s highest-quality analysis and reports.</p></li>
</ol>
<nav class="page-turn" aria-label="Browse from Roadmap">
<a class="turn-link" href="#models"><span class="turn-arrow" aria-hidden="true">←</span><span><small class="mono">Previous</small><strong>Models</strong></span></a>
<p class="page-meter mono"><span class="sr-only">Page 6 of 7</span><span aria-hidden="true">06 / 07</span><span class="page-track" style="--progress: 85.7%" aria-hidden="true"></span></p>
<a class="turn-link turn-next" href="#about"><span><small class="mono">Next page</small><strong>About</strong></span><span class="turn-arrow" aria-hidden="true">→</span></a>
</nav>
</div>
</section>
<!-- Page 7: About -->
<section class="page-view about" id="about" aria-labelledby="about-title" data-title="About Sweep">
<div class="wrap">
<div class="about-grid">
<div><p class="label mono">07 · Who’s making this</p><h2 class="page-title" id="about-title" tabindex="-1">I’m a Year 7 student building something useful.</h2></div>
<div class="about-text">
<p>I’m trying to make models that can help with big databases by looking at data, analysing it and reporting what matters.</p>
<p>Sweep is still being built. This website is a place to share the idea, the roadmap and the progress.</p>
<p class="fine">Sweep is an independent learning project. The release dates and features are goals, not currently available products.</p>
<a class="btn btn-dark" href="#roadmap">See the roadmap <span aria-hidden="true">↗</span></a>
</div>
</div>
<nav class="page-turn" aria-label="Browse from About">
<a class="turn-link" href="#roadmap"><span class="turn-arrow" aria-hidden="true">←</span><span><small class="mono">Previous</small><strong>Roadmap</strong></span></a>
<p class="page-meter mono"><span class="sr-only">Page 7 of 7</span><span aria-hidden="true">07 / 07</span><span class="page-track" style="--progress: 100%" aria-hidden="true"></span></p>
<a class="turn-link turn-next" href="#home"><span><small class="mono">Start again</small><strong>Home</strong></span><span class="turn-arrow" aria-hidden="true">→</span></a>
</nav>
</div>
</section>
</main>
<footer class="site-footer">
<div class="wrap footer-inner">
<a class="brand" href="#home" aria-label="Sweep AI home">
<svg class="logo" width="30" height="30" aria-hidden="true" focusable="false"><use href="#sweep-logo" /></svg>
Sweep AI
</a>
<p class="mono">© 2026 Sweep AI · An educational prototype</p>
<a class="back-top mono" href="#top">Back to top ↑</a>
</div>
</footer>
<!-- PAGE_NAVIGATION_SCRIPT -->
<script>
/* This animation only rearranges the fictional rows already in the HTML. */
(() => {
const demo = document.querySelector('#sweep-demo');
const sheet = demo.querySelector('.sheet');
const sheetBody = demo.querySelector('.sheet-body');
const badRows = [...demo.querySelectorAll('[data-issue]')];
const log = demo.querySelector('.cleanup-log');
const broom = demo.querySelector('.broom');
const button = document.querySelector('#sweep-button');
const label = button.querySelector('.demo-button-label');
const status = document.querySelector('#sweep-status');
const motion = window.matchMedia('(prefers-reduced-motion: reduce)');
let observer;
let timers = [];
function clearTimers() {
timers.forEach(clearTimeout);
timers = [];
}
function later(fn, delay) {
timers.push(window.setTimeout(fn, delay));
}
function resetRows() {
clearTimers();
sheet.dataset.state = 'raw';
for (const row of badRows) {
row.hidden = false;
row.classList.remove('swept');
row.removeAttribute('aria-hidden');
}
broom.hidden = true;
broom.classList.remove('push');
log.hidden = true;
button.removeAttribute('aria-disabled');
label.textContent = 'Sweep rows';
status.textContent = 'Original rows restored.';
}
function finish(announce) {
clearTimers();
badRows.forEach(row => { row.hidden = true; });
broom.hidden = true;
broom.classList.remove('push');
sheet.dataset.state = 'clean';
log.hidden = false;
button.removeAttribute('aria-disabled');
label.textContent = 'Reset rows';
if (announce) status.textContent = 'Sweep complete. One duplicate and two incomplete or invalid rows removed.';
}
function aim(row) {
const rect = row.getBoundingClientRect();
broom.style.top = `${rect.top - sheetBody.getBoundingClientRect().top + (rect.height - 32) / 2}px`;
}
function sweep(announce) {
if (sheet.dataset.state !== 'raw') return;
if (motion.matches) { finish(announce); return; }
sheet.dataset.state = 'sweeping';
button.setAttribute('aria-disabled', 'true');
label.textContent = 'Sweeping…';
status.textContent = '';
aim(badRows[0]);
broom.hidden = false;
badRows.forEach((row, index) => {
const start = 85 + 525 * index;
later(() => aim(row), start);
later(() => {
broom.classList.remove('push');
void broom.getBoundingClientRect();
broom.classList.add('push');
}, start + 215);
later(() => {
row.classList.add('swept');
row.setAttribute('aria-hidden', 'true');
}, start + 365);
});
later(() => finish(announce), 1950);
}
button.hidden = false;
button.addEventListener('click', () => {
observer?.disconnect();
if (sheet.dataset.state === 'clean') resetRows();
else sweep(true);
});
// Sweep once when the example enters view, never in a loop.
if (!motion.matches && 'IntersectionObserver' in window) {
observer = new IntersectionObserver(entries => {
if (entries.some(entry => entry.intersectionRatio >= .42)) {
observer.disconnect();
sweep(false);
}
}, { threshold: .42 });
observer.observe(demo);
}
const onMotionChange = () => {
if (motion.matches) {
observer?.disconnect();
if (sheet.dataset.state === 'sweeping') finish(false);
}
};
if (motion.addEventListener) motion.addEventListener('change', onMotionChange);
else motion.addListener(onMotionChange);
})();
</script>
<!-- FONT_LICENSES -->
</body>
</html>