/* ─────────────────────────────────────────────────────────────────────────────
   Comparison pages — /vs/, /vs/snipping-tool/
   Layers on site.css + legal.css. Scoped to .cmp-page so the guides and legal
   pages, which share .doc, are untouched.

   WHY THIS EXISTS. The pages were six <h2> + <p> blocks in a row with the
   comparison table buried in the middle, and they read as one grey wall:
   "everything looks the same and boring, nothing is really outlined, the
   headers dont do enough, tables look weird and dont stand out".

   Three things were actually wrong:

   1. NO TYPE HIERARCHY. .doc h2 is 20px against 15.5px body — a 1.29x jump.
      That is not a heading, it is slightly larger text. Here h2 is 27px/700
      with tighter tracking (1.74x), and the space above it is ~4x the space
      below, so a heading visibly belongs to what follows instead of floating
      between two blocks.

   2. THE TABLE WAS THE WEAKEST THING ON THE PAGE, and it is the entire reason
      someone opens a comparison. It had no container, no fill, and one hairline
      per row. It is now a real spec sheet: its own panel, mono column heads,
      and the Clarus column claimed with a gold wash and a full-height rule so
      the eye knows which side it is reading without going back to the header.

   3. EVERY SECTION LOOKED IDENTICAL, so nothing signalled what was worth
      stopping for. There are now five distinct treatments — verdict split,
      spec table, single-fact callout, trial block, related strip — and a
      section gets the one that matches what it is. The variety carries
      information; it is not decoration.

   The verdict split is the signature. The competitor is named FIRST and given
   exactly equal weight; only a gold edge marks ours. Most comparison pages
   shrink the alternative — this product's whole voice is "we would rather say
   so than pretend otherwise", so the honesty is built into the layout instead
   of being claimed in a sentence.

   ⚠️⚠️ EVERY CLASS HERE IS PREFIXED `v-`, AND THAT IS LOAD-BEARING. The first
   version used plain names and five of them already existed in site.css:
   `.mk`, `.call`, `.ghost`, `.row`, `.y`. `.mk` is the homepage's annotation
   marker and is `display: none` — so the tick and dash in every table cell
   rendered as NOTHING. Load order did not save it: compare.css comes after
   site.css, but a later rule only wins per-PROPERTY, and this file never set
   `display`, so `display: none` survived untouched. The cells looked simply
   empty, with no error anywhere. Do not add an unprefixed class to this file.
   Check with: grep -o '\.[a-z][\w-]*' compare.css | sort -u
   ───────────────────────────────────────────────────────────────────────────── */

/* Wider than .doc's 780px: a three-column table needs the room, and the verdict
   split needs two panels that do not become slivers. */
.cmp-page { max-width: 960px; }

.cmp-page h1 {
  font-size: clamp(36px, 5.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.042em;
}

.cmp-page .v-dek {
  color: var(--text-mut);
  font-size: 16.5px;
  margin: 12px 0 0;
  max-width: 58ch;
}

/* ── Section headings ───────────────────────────────────────────────────────
   The rule sits ABOVE with generous room and the gap below is small. That
   asymmetry is what makes a heading read as the start of something, rather
   than as a divider floating between two paragraphs. */
.cmp-page h2 {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin: 72px 0 18px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.cmp-page h2 + p { margin-top: 0; }
.cmp-page p, .cmp-page li { font-size: 16px; line-height: 1.62; }

/* ⚠️ `.doc a { color: var(--gold) }` is (0,1,1) and `.btn-gold` is (0,1,0), so
   the link rule WON and the download button rendered gold text on a gold fill —
   invisible. Restated at (0,2,0). Same trap as .ft-items on /features. */
.cmp-page .btn-gold { color: oklch(0.15 0.02 84); }
.cmp-page .btn-gold:hover { text-decoration: none; }

/* ── The verdict split — the signature ──────────────────────────────────────
   Two panels, equal weight, competitor first. */
.v-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 36px 0 4px;
  align-items: stretch;
}
.v-panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px 24px;
}
/* Ours: a gold edge and a soft glow around it. Nothing else.
   ⚠️ There was a 2px gold bar pinned across the top of this panel. It read as a
   stray piece of furniture rather than an accent — "some weird bar at the top of
   it" — and a glow says the same thing without adding an object to the layout.
   Do not reintroduce the bar. */
.v-panel.v-ours {
  border-color: var(--gold-soft);
  background:
    linear-gradient(180deg, var(--gold-faint) 0%, transparent 62%),
    var(--panel);
  box-shadow: 0 0 34px -10px oklch(var(--gold-l) var(--gold-c) var(--gold-h) / 0.30);
}
.v-who {
  font-family: "Geist Mono", ui-monospace, Consolas, monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 12px;
}
.v-panel.v-ours .v-who { color: var(--gold); }
.v-verdict {
  font-size: 18.5px; font-weight: 650; letter-spacing: -0.02em;
  line-height: 1.32; color: var(--text); margin: 0;
}
.v-panel ul { list-style: none; padding: 0; margin: 16px 0 0; }
.v-panel li {
  position: relative; padding-left: 18px; margin: 0 0 7px;
  font-size: 14.5px; color: var(--text-mut); line-height: 1.5;
}
.v-panel li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--text-dim);
}
.v-panel.v-ours li::before { background: var(--gold-deep); }
.v-panel li:last-child { margin-bottom: 0; }

/* ── The spec table ─────────────────────────────────────────────────────────
   ⚠️ The scroll container is the WRAPPER, never the <table>. legal.css makes
   its own .cmp `display:block; overflow-x:auto`, and a table forced to
   display:block loses column alignment between thead and tbody — a large part
   of why the old one "looked weird". */
.v-tablewrap {
  margin: 30px 0 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
}
.v-tablescroll { overflow-x: auto; }
.v-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 620px;
}
.v-table thead th {
  font-family: "Geist Mono", ui-monospace, Consolas, monospace;
  font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase;
  font-weight: 500; text-align: left; color: var(--text-dim);
  padding: 16px 20px 13px;
  background: oklch(1 0 0 / 0.022);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.v-table thead th.v-mine { color: var(--gold); }
.v-table td {
  padding: 14px 20px;
  border-bottom: 1px solid oklch(1 0 0 / 0.05);
  vertical-align: top;
  color: var(--text-mut);
}
.v-table tbody tr:last-child td { border-bottom: 0; }
.v-table tbody tr:hover td { background: oklch(1 0 0 / 0.018); }
.v-table .v-feat { color: var(--text-soft); font-weight: 500; width: 40%; }

/* The claimed column: a wash plus a rule down its full height, so which side
   you are reading stays legible without returning to the header. */
.v-table .v-mine {
  background: var(--gold-faint);
  border-left: 1px solid var(--gold-soft);
  color: var(--text);
}
.v-table tbody tr:hover .v-mine {
  background: oklch(var(--gold-l) var(--gold-c) var(--gold-h) / 0.10);
}

/* ⚠️ The mark carries the answer; the word is redundant once it is visible.
   The visually-hidden text keeps the row meaningful to a screen reader, which
   a bare glyph would not. */
.v-mk { font-weight: 700; margin-right: 9px; display: inline; }
.v-mk.v-yes { color: var(--gold); }
.v-mk.v-no  { color: var(--text-dim); }
.v-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── A single striking fact ─────────────────────────────────────────────────
   For the one line on the page that changes the decision. Deliberately unlike
   every other block, so it cannot be skimmed past. */
.v-fact {
  display: flex; gap: 20px; align-items: flex-start;
  margin: 34px 0 4px; padding: 22px 24px;
  background: var(--gold-faint);
  border: 1px solid var(--gold-soft);
  border-radius: 14px;
}
.v-figure {
  font-family: "Geist Mono", ui-monospace, Consolas, monospace;
  font-size: 26px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--gold); line-height: 1.1; white-space: nowrap; padding-top: 2px;
}
.v-fact p { margin: 0; color: var(--text-soft); font-size: 15.5px; }

/* ── Trial block — the page ends on an action, not another paragraph ────────*/
.v-try {
  margin: 44px 0 0; padding: 32px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
}
.v-try h3 {
  font-size: 21px; font-weight: 650; letter-spacing: -0.025em;
  color: var(--text); margin: 0 0 8px;
}
.v-try p { margin: 0 auto; max-width: 48ch; color: var(--text-mut); font-size: 15px; }
.v-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* ── Related comparisons — a strip, not a section ───────────────────────────
   It used to be a full <h2> plus a paragraph, which gave a navigation aid the
   same weight as the comparison itself. */


/* ── Hub index cards ────────────────────────────────────────────────────────
   The hub was three headings, each followed by a paragraph and a "Read this if"
   line — scaffolding that told you how to read instead of letting you read. The
   heading is the link now and the summary carries itself. */
.v-index { display: grid; gap: 16px; margin: 38px 0 0; }
/* ⚠️ ON HOVER, ONLY THE OUTLINE CHANGES. The whole card is one <a>, and
   `.doc a:hover { text-decoration: underline }` propagates to every descendant,
   so hovering underlined the heading AND the whole summary paragraph — the card
   lit up like a wall of links. The background swap and the lift piled on top of
   that. A border that brightens with a glow behind it is the entire affordance;
   the text is left alone. */
.v-card {
  display: block; padding: 28px 28px 26px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.cmp-page a.v-card:hover,
.cmp-page a.v-card:focus-visible {
  border-color: var(--gold-soft);
  box-shadow: 0 0 34px -10px oklch(var(--gold-l) var(--gold-c) var(--gold-h) / 0.34);
  text-decoration: none;
}
/* Belt and braces: kill the inherited underline on the children too, since
   text-decoration on an ancestor is not overridable from the descendant in
   every engine unless it is restated here. */
.cmp-page a.v-card:hover h2,
.cmp-page a.v-card:hover p,
.cmp-page a.v-card:hover .v-go { text-decoration: none; }
.cmp-page .v-card h2 {
  font-size: 24px; font-weight: 650; letter-spacing: -0.028em;
  color: var(--text); margin: 0 0 10px; padding: 0; border: 0;
}
.v-card p { margin: 0; color: var(--text-mut); font-size: 15.5px; }
.v-go {
  display: inline-block; margin-top: 16px; color: var(--gold);
  font-size: 14px; font-weight: 550;
}

@media (max-width: 720px) {
  .v-split { grid-template-columns: 1fr; }
  .cmp-page h2 { font-size: 23px; margin-top: 54px; padding-top: 24px; }
  .v-fact { flex-direction: column; gap: 10px; }
  .v-figure { font-size: 22px; }
  .v-try { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .v-card { transition: none; }
  .v-card:hover { transform: none; }
}

/* ── the "Other paid tools" column ───────────────────────────────────────── */
/* ⚠️ Deliberately quieter than either named column. It is a generalisation, not
   a measurement, so it must not carry the same visual authority as the two
   columns that name a specific product and can be checked. */
.v-table td.v-oth { color: var(--text-dim); white-space: nowrap; }
.v-table thead th:nth-child(3) { color: var(--text-dim); }
.v-hedge {
  font-family: "Geist Mono", ui-monospace, Consolas, monospace;
  font-size: 12px; letter-spacing: .02em;
}
.v-tnote {
  margin: 14px 0 0; font-size: 13px; line-height: 1.65;
  color: var(--text-dim); max-width: 74ch;
}
.cmp-page .v-tnote strong { color: var(--text-mut); font-weight: 600; }

/* A fourth column is real width pressure. .v-tablescroll already scrolls, but
   the feature name is the row's identity — losing it while scrolling sideways
   leaves you reading marks with nothing to attach them to. */
@media (max-width: 760px) {
  .v-table td.v-oth, .v-table thead th:nth-child(3) { font-size: 11.5px; }
  .v-table td.v-feat { position: sticky; left: 0; background: var(--bg); z-index: 1; }
}

/* ── the same arrow the guides index uses ────────────────────────────────── */
/* Duplicated rather than shared: guides.css is not loaded here, and a stylesheet
   loaded only for four rules costs a request. The two must stay in step — if the
   arrow changes in guides.css, change it here too. */
.v-index .g-arrow { position: relative; width: 34px; height: 14px; flex: 0 0 auto; }
.v-index .g-chev {
  position: absolute; top: 1px; left: 6.5px; width: 7px; height: 12px; display: block;
  transition: left .3s cubic-bezier(.2, .65, .3, 1);
}
.v-index .g-line {
  position: absolute; top: 6px; left: 11px; width: 2px; height: 2px;
  background: currentColor; border-radius: 1px;
  transition: left .3s cubic-bezier(.2, .65, .3, 1), width .3s cubic-bezier(.2, .65, .3, 1);
}
.v-index a:hover .g-chev, .v-index a:focus-visible .g-chev { left: 26.5px; }
.v-index a:hover .g-line, .v-index a:focus-visible .g-line { left: 12px; width: 20px; }
@media (prefers-reduced-motion: reduce) {
  .v-index .g-chev, .v-index .g-line { transition: none; }
}

/* ── the way back ───────────────────────────────────────────────────────── */
/* ⚠️ Points at /features#compare and says "How Clarus compares", not the
   design's "All comparisons" — that index folded into the features page, and a
   link naming a destination that no longer exists is worse than no link. */
.v-back {
  /* ⚠️ flex + max-content, NOT inline-flex. site.css gives .eyebrow
     display:inline-block, so an inline-level back link sat on the same line as
     it and the page opened with "How Clarus compares COMPARISON". Block-level
     puts it on its own line; max-content keeps the hit area to the text rather
     than the full column width. Same trap as the EMAIL label on /contact. */
  display: flex; width: max-content; align-items: center; gap: 8px;
  margin-bottom: 30px;
  font-size: 13px; font-weight: 500; color: var(--text-mut);
  transition: color .15s var(--ease);
}
.v-back svg { width: 11px; height: 11px; display: block; }
.cmp-page .v-back:hover { color: var(--gold); text-decoration: none; }
.v-back:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ── "where it runs out" ────────────────────────────────────────────────── */
/* Gold diamonds rather than list bullets: these are the reasons to switch, so
   they get the same marker the Clarus column uses in the panel above rather
   than the neutral dot the other tool's list gets. */
.cmp-page .v-out { list-style: none; padding: 0; margin: 26px 0 0; }
.cmp-page .v-out li {
  position: relative; padding-left: 20px; margin: 0 0 13px;
  font-size: 15px; line-height: 1.7; color: var(--text-mut);
  max-width: 70ch; text-wrap: pretty;
}
.cmp-page .v-out li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; background: var(--gold); rotate: 45deg;
}
.cmp-page .v-out strong { color: var(--text); font-weight: 600; }

/* ── the Pro marker ─────────────────────────────────────────────────────── */
/* ⚠️ This exists because the page was quietly misleading. Scrolling capture,
   OCR, stacking and grouping are all gated on Pro — verified in the code, in
   Rust for the first two — and they were shown as bare ticks in a table whose
   price row says "free core". Someone arriving from a FREE tool would
   reasonably conclude those came free. Marking them costs a little persuasion
   and buys the page back its credibility, which is the only thing a comparison
   has. */
/* the price row's words, so they do not inherit the tick styling */
.v-table td.v-txt { color: var(--text-soft); }
.v-table td.v-mine.v-txt { color: var(--text); }

/* ⚠️ THE THIRD STATE IS DRAWN, NOT A GLYPH. ◖ and friends render at wildly
   different sizes across fonts and sat far smaller than the ✓ beside them, which
   made "partly" look like a rendering fault rather than a deliberate mark. A
   half-filled disc is the same 11px whatever the font does.
   ⚠️ `.v-mk.v-part` is two classes so it beats `.v-mk`'s `display: inline`. */
.v-mk.v-part {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid var(--text-mut);
  background: linear-gradient(90deg, var(--text-mut) 0 50%, transparent 50% 100%);
  vertical-align: -1px;
}
/* the key under the table */
/* its own line: run straight into the explanation and the key stops reading as a key */
.v-key { display: block; margin-bottom: 7px; color: var(--text-mut); white-space: nowrap; }
.v-key .v-mk { margin: 0 5px 0 0; }
.v-key .v-mk.v-part { margin-left: 12px; }
.v-key .v-mk.v-no { margin-left: 12px; }

.v-pro {
  display: inline-block; vertical-align: 1px; margin-left: 6px;
  padding: 1px 5px; border-radius: 4px;
  font-family: "Geist Mono", ui-monospace, Consolas, monospace;
  font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-faint);
  border: 1px solid var(--gold-soft);
}
.cmp-page .v-tnote {
  margin: 14px 0 0; font-size: 13px; line-height: 1.65; color: var(--text-dim);
}
.cmp-page .v-tnote a { color: var(--gold); }

/* ── "Where Snipping Tool runs out" — six cards with working mockups ─────── */
/* Built from CSS boxes in the homepage's own idiom (grey bars standing in for
   text, small chrome, gold reserved for the thing being demonstrated) rather
   than drawn as illustrations. It follows the homepage's rule too: if the
   picture asserts something it has to be true — so the share link is a real
   getclarus.dev/s/ slug shape and the expiry is one of the four the app
   actually offers. */
.gap-lede { margin: 0 0 30px; }
.gap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }

.gap-card {
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel);
  overflow: hidden;
}
.cmp-page .gap-card h3 {
  margin: 0; padding: 18px 22px 0;
  font-size: 16px; font-weight: 600; letter-spacing: -0.015em; color: var(--text);
}
.cmp-page .gap-card p {
  margin: 8px 0 0; padding: 0 22px 22px;
  font-size: 14px; line-height: 1.65; color: var(--text-mut);
}

/* The stage. Fixed height so all six line up whatever they contain. */
.gap-art {
  height: 148px; display: flex; align-items: center; justify-content: center;
  gap: 14px; padding: 0 22px; position: relative;
  /* ⚠️ CLIPS THE STAGE. The first card dims everything outside its viewport
     frame with a 400px spread shadow; without this it escapes the stage and
     greys out the card's own title and paragraph, which read as disabled next
     to the other five. */
  overflow: hidden;
  background: var(--bg-chrome); border-bottom: 1px solid var(--line);
}

@media (max-width: 760px) {
  .gap-grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .gap-card { transition: none; } }

/* the demo stage
   ⚠️ These are drawn AT CARD SIZE, not shrunk into it. The first attempt lifted
   the homepage's full-width demos and scaled them with zoom; at roughly 200x110
   the editor became a grey smudge and the OCR dialog overlapped its own card. A
   demo that cannot be read is worse than no demo, so each one below shows ONE
   idea with the fewest shapes that carry it. */
.gap-art { display: grid; place-items: center; padding: 0; }
.gap-scale { display: grid; place-items: center; }
.d { display: flex; align-items: center; justify-content: center; gap: 14px; }
/* -- "finding a capture again" ------------------------------------------- */
/* The one concept with no homepage demo to borrow, so it is built in the same
   idiom: real chrome, placeholder bars, gold only on the thing being shown, one
   shared timeline, paused until the card is on screen.

   WARNING: the four results used to be EMPTY boxes, and the match was shown by
   outlining one of them. That says "one of these four rectangles is selected" -
   it does not say what was searched, what was found, or why. The card's claim is
   that Clarus indexes the words INSIDE a capture, so the thumbnails have to BE
   captures and the hit has to land on a LINE OF TEXT inside one. The gold line
   in the second thumbnail is the whole card: that is the phrase you typed, found
   inside a picture. */
.gf { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.gf-bar {
  display: flex; align-items: center; gap: 9px; width: 208px;
  padding: 9px 12px; border-radius: 9px;
  background: oklch(1 0 0 / 0.05); border: 1px solid var(--line-hi);
}
.gf-mag {
  width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto;
  border: 1.5px solid var(--text-dim); position: relative;
}
.gf-mag::after {
  content: ""; position: absolute; right: -4px; bottom: -3px;
  width: 5px; height: 1.5px; background: var(--text-dim); rotate: 45deg;
}
/* WARNING: the query is GOLD. It used to be the same washed white as every other
   placeholder bar on the page, so the one thing the user is imagined to have
   typed looked like more furniture. Gold is this page's "the thing being shown"
   colour, and it is what ties the typed phrase to the line found inside the
   capture - same colour, so the eye makes the link without a caption. */
.gf-q { height: 6px; border-radius: 3px; background: var(--gold); width: 0; }
.gf-caret { width: 1.5px; height: 12px; background: var(--gold); }

.gf-hits { display: flex; gap: 9px; }
/* a capture, not a rectangle: a light page with lines of text on it */
.gf-hit {
  width: 44px; height: 32px; border-radius: 5px;
  padding: 5px; display: flex; flex-direction: column; gap: 3.5px;
  background: oklch(0.87 0.004 250); border: 1px solid var(--line);
}
.gf-hit i, .gf-hit em {
  display: block; height: 3.5px; border-radius: 1.5px;
  background: oklch(0.62 0.008 250);
}
.gf-hit i:nth-child(1) { width: 100%; }
.gf-hit i:nth-child(2) { width: 74%; }
.gf-hit i:nth-child(3) { width: 88%; }
/* the words that matched */
.gf-hit em { width: 74%; background: oklch(0.62 0.008 250); }

/* ⚠️ ONE TIMELINE — identical duration on every part, so the query finishes
   typing exactly as the matches resolve, the way the homepage syncs its beats.

   ⚠️ SMOOTH, NOT STEPPED. This was steps(14) and it stuttered. The homepage
   does step its typing, but it types REAL CHARACTERS in `ch` units, where a
   step IS a keystroke. This is a plain bar, so stepping it just chops one
   rectangle into fourteen jumps — the motion of typing without any of the
   thing that makes typing look stepped. A bar should grow. */
.loop-gate .gf-q     { animation: gfType 6s cubic-bezier(.2,.85,.3,1) infinite; animation-play-state: paused; }
.loop-gate .gf-caret { animation: gfCaret 6s linear infinite; animation-play-state: paused; }
.loop-gate .gf-hit   { animation: gfDim 6s linear infinite; animation-play-state: paused; }
.loop-gate .gf-hit.h2 { animation-name: gfHit; }
.loop-gate .gf-hit.h2 em { animation: gfFound 6s linear infinite; animation-play-state: paused; }
.loop-gate.play .gf-q, .loop-gate.play .gf-caret,
.loop-gate.play .gf-hit, .loop-gate.play .gf-hit.h2 em { animation-play-state: running; }
@keyframes gfType  { 0%, 4% { width: 0 } 30%, 100% { width: 104px } }
@keyframes gfCaret { 0%, 44% { opacity: 1 } 45%, 100% { opacity: 0 } }
@keyframes gfDim   { 0%, 44% { opacity: 1 } 56%, 100% { opacity: .3 } }
@keyframes gfHit {
  0%, 44%   { opacity: 1; border-color: var(--line); box-shadow: none; }
  56%, 100% { opacity: 1; border-color: var(--gold); box-shadow: 0 0 14px -3px var(--gold-soft); }
}
/* the found phrase lights up inside the picture, in the colour of the query */
@keyframes gfFound {
  0%, 44%   { background: oklch(0.62 0.008 250); }
  56%, 100% { background: var(--gold); }
}
@media (prefers-reduced-motion: reduce) {
  .loop-gate .gf-q, .loop-gate .gf-caret, .loop-gate .gf-hit,
  .loop-gate .gf-hit.h2 em { animation: none; }
  .gf-q { width: 104px; }
  .gf-hit { opacity: .3; }
  .gf-hit.h2 { opacity: 1; border-color: var(--gold); }
  .gf-hit.h2 em { background: var(--gold); }
}

/* ── card 6: the link it hands back ─────────────────────────────────────── */
.gsend { display: flex; flex-direction: column; align-items: center; gap: 11px; }
.gsend-card {
  position: relative; width: 92px; padding: 7px; border-radius: 7px;
  background: oklch(0.22 0.004 80); border: 1px solid var(--line);
}
.gsend-thumb { display: flex; flex-direction: column; gap: 4px; }
.gsend-thumb i { height: 4px; border-radius: 2px; background: oklch(1 0 0 / 0.16); }
.gsend-thumb i:nth-child(2) { width: 72%; } .gsend-thumb i:nth-child(3) { width: 55%; }
.gsend-up {
  position: absolute; inset: 0; border-radius: 7px;
  background: linear-gradient(0deg, var(--gold-soft), transparent 70%);
}
.gsend-link {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 999px;
  background: oklch(1 0 0 / 0.05); border: 1px solid var(--line-hi);
  font-family: "Geist Mono", ui-monospace, Consolas, monospace;
  font-size: 9.5px; color: var(--text);
}
.gsend-ico { width: 8px; height: 8px; border-radius: 2px; border: 1.5px solid var(--gold); rotate: -45deg; }
.gsend-opts { display: flex; gap: 6px; }
.gsend-chip {
  padding: 3px 8px; border-radius: 5px; font-size: 9px;
  color: var(--text-mut); background: oklch(1 0 0 / 0.05); border: 1px solid var(--line);
}
.gsend-chip.on { color: var(--gold); background: var(--gold-faint); border-color: var(--gold-soft); }
.loop-gate .gsend-up   { animation: gsUp 6s ease-in-out infinite; animation-play-state: paused; }
.loop-gate .gsend-link { animation: gsLink 6s ease-in-out infinite; animation-play-state: paused; }
.loop-gate .gsend-opts { animation: gsOpts 6s ease-in-out infinite; animation-play-state: paused; }
.loop-gate.play .gsend-up, .loop-gate.play .gsend-link,
.loop-gate.play .gsend-opts { animation-play-state: running; }
@keyframes gsUp   { 0% { opacity: 0; transform: translateY(6px) } 26%, 74% { opacity: 1; transform: none } 100% { opacity: 0 } }
@keyframes gsLink { 0%, 16% { opacity: 0; transform: translateY(5px) } 30%, 100% { opacity: 1; transform: none } }
@keyframes gsOpts { 0%, 30% { opacity: 0 } 42%, 100% { opacity: 1 } }

@media (prefers-reduced-motion: reduce) {
  .loop-gate .gs-page, .loop-gate .gs-bar::after, .loop-gate .gs-dot,
  .loop-gate .gsend-up, .loop-gate .gsend-link, .loop-gate .gsend-opts { animation: none; }
  .gsend-link, .gsend-opts { opacity: 1; }
}

/* ══ the four card-sized demos ═══════════════════════════════════════════ */
/* Shared: pale bars stand in for content, gold is only ever the thing Clarus
   does, and each card runs ONE timeline so its parts stay in step. All paused
   until the card is on screen. */
.d i, .d b { display: block; }

/* 2 - the words are stuck IN a picture
   WARNING: this box must read as an IMAGE THAT CONTAINS TEXT, not a text box.
   It was a flat dark panel with three grey bars - which is simply a text box, so
   the card's whole point never landed. The fix is to make the text sit ON a
   photo rather than in a panel: sky gradient, a sun, a mountain, and the words
   over the top of them. Two other readings were built and rendered at real card
   size before this one was picked - a corner "image file" badge (reads as a text
   box wearing a label) and a photo strip above the text (reads as an article
   card, where the text is beside the picture rather than in it). Only this one
   says trapped.
   The blur is the second half of the message: they are pixels, not glyphs. */
.d-img, .d-txt { width: 74px; display: flex; flex-direction: column; gap: 6px; }
.d-img {
  position: relative; overflow: hidden;
  padding: 18px 10px 10px; border-radius: 5px;
  background: linear-gradient(168deg, oklch(0.56 0.10 240) 0%, oklch(0.40 0.055 244) 58%, oklch(0.32 0.03 246) 100%);
  border: 1px solid var(--line-hi);
}
.d-img::before {                        /* sun */
  content: ""; position: absolute; right: 9px; top: 5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: oklch(0.84 0.15 76); box-shadow: 0 0 8px -1px oklch(0.84 0.15 76 / 0.7);
}
.d-img::after {                         /* mountain */
  content: ""; position: absolute; left: 4px; bottom: -1px;
  border-left: 28px solid transparent; border-right: 28px solid transparent;
  border-bottom: 26px solid oklch(0.28 0.035 250);
}
/* the words, sitting on the picture */
.d-img i {
  position: relative; z-index: 2;
  height: 5px; border-radius: 2px;
  background: oklch(1 0 0 / 0.62); filter: blur(0.7px);
}
.d-img i:nth-child(2) { width: 76%; }
.d-img i:nth-child(3) { width: 58%; }

.d-to { width: 20px; height: 1.5px; background: var(--text-dim); position: relative; flex: 0 0 auto; }
.d-to::after {
  content: ""; position: absolute; right: -1px; top: -3px;
  border-left: 6px solid var(--text-dim);
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
.d-txt i { height: 5px; border-radius: 2px; background: var(--gold); opacity: 1; box-shadow: 0 0 10px -2px var(--gold-soft); }
.d-txt i:nth-child(2) { width: 76%; }
.d-txt i:nth-child(3) { width: 58%; }
.loop-gate .d-txt i { animation: dTxt 5s ease-in-out infinite; animation-play-state: paused; }
.loop-gate .d-txt i:nth-child(2) { animation-delay: .18s; }
.loop-gate .d-txt i:nth-child(3) { animation-delay: .36s; }
.loop-gate.play .d-txt i { animation-play-state: running; }
@keyframes dTxt { 0%, 22% { opacity: 0; transform: translateX(-4px) } 44%, 88% { opacity: 1; transform: none } 100% { opacity: 0 } }

/* 3 - marking up a screenshot
   WARNING WARNING: A BLUR NEEDS SOMETHING TO DESTROY. The blur was invisible and
   the reason was not its radius - it was sitting on a FLAT GREY BAR, and blurring
   a flat rectangle returns a very slightly softer flat rectangle. Nothing is lost,
   so nothing reads as lost. The name is now five short ticks of different widths,
   like characters, and the blur smears them into one smudge - which is the whole
   point of the mark. If this ever looks weak again, add detail underneath before
   touching the radius.

   WARNING: the markers sit in a GUTTER, not straddling the corners of what they
   mark. An 18px circle half-on and half-off a control looks, at this size, like a
   badge that has fallen off rather than one that was placed - which is exactly
   how it was read. Down the left they are unambiguous, they line up, and 1 above
   2 reads as an order.

   The highlight is exactly as wide as the line under it, which IS the "snaps to
   the text" claim. */
.d-canvas {
  position: relative; width: 208px; border-radius: 7px;
  /* the left gutter is where the markers live */
  padding: 16px 16px 16px 36px;
  display: flex; flex-direction: column; gap: 14px;
  background: oklch(0.91 0.004 250); border: 1px solid var(--line-hi);
}
.dm-head { display: flex; align-items: center; justify-content: space-between; height: 12px; }
.dm-title { display: block; width: 82px; height: 7px; border-radius: 2px; background: oklch(0.42 0.010 250); }
/* the name: real detail, so the blur has something to take away.
   ⚠️ ONE element with hard gradient stops, not five children in a flex row.
   The children version laid out VERTICALLY and I could not see why from the
   rules — a gradient has no layout to get wrong, and this needs to be five
   dark marks with gaps, nothing more. */
.dm-name {
  display: block; width: 50px; height: 8px; border-radius: 1.5px;
  background: linear-gradient(90deg,
    oklch(0.38 0.012 250) 0 7px,  transparent 7px 10px,
    oklch(0.38 0.012 250) 10px 21px, transparent 21px 24px,
    oklch(0.38 0.012 250) 24px 29px, transparent 29px 32px,
    oklch(0.38 0.012 250) 32px 41px, transparent 41px 44px,
    oklch(0.38 0.012 250) 44px 50px);
}
/* the line the highlighter lands on — 70% of the 156px content box = 109px */
.dm-l { height: 5px; width: 70%; border-radius: 2px; background: oklch(0.62 0.010 250); }
.dm-field {
  display: flex; align-items: center; height: 18px; border-radius: 4px;
  background: oklch(0.97 0.002 250); box-shadow: inset 0 0 0 1px oklch(0.55 0.01 250 / 0.45);
}
.dm-field i { display: block; margin-left: 9px; width: 54px; height: 4px; border-radius: 2px; background: oklch(0.70 0.010 250); }
/* left-aligned so its marker sits beside it in the same gutter as the field's */
.dm-btn { display: block; width: 66px; height: 18px; border-radius: 5px; background: oklch(0.44 0.012 250); }

.dm-hi {
  position: absolute; left: 36px; top: 40px; width: 109px; height: 9px;
  border-radius: 2px; background: var(--gold);
  mix-blend-mode: multiply; transform-origin: left center;
}
.dm-blur {
  position: absolute; right: 12px; top: 13px; width: 58px; height: 17px;
  border-radius: 3px; backdrop-filter: blur(4px);
  /* a touch of tint so it reads as a deliberate mark, not a rendering artefact */
  background: oklch(0.91 0.004 250 / 0.28);
}
/* ⚠️⚠️ `.d .dm-step`, NOT `.dm-step`. `.d i, .d b { display: block }` sits above
   in this same file at specificity (0,1,1), which BEATS a lone class (0,1,0) —
   so `display: grid` silently never applied, the <b> stayed a block, and the
   number rendered at its content-box origin: the top-left corner, outside the
   circle. The same rule is why an earlier attempt at the name laid its children
   out VERTICALLY — `display: flex` was being overridden the same way, and I
   could not see it because I was looking for a competing `.dm-name` rule rather
   than a bare-element one. Any <b> or <i> inside .d that needs flex or grid must
   out-specify that rule. */
.d .dm-step {
  position: absolute; left: 9px; width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center; scale: 1;
  background: var(--gold); color: oklch(0.16 0.02 84);
  font-size: 10.5px; font-weight: 700; line-height: 1;
  box-shadow: 0 2px 7px -1px oklch(0 0 0 / 0.45);
}
/* centred on their row: field y61-79 -> 60, button y93-111 -> 92 */
.dm-step.s1 { top: 60px; }
.dm-step.s2 { top: 92px; }

/* ONE TIMELINE, in the order you would draw them: marker 1, marker 2, the
   highlighter sweeps a line, the blur goes over the name. */
.loop-gate .dm-step.s1 { animation: dmStep 5.5s cubic-bezier(.34,1.56,.64,1) infinite; animation-play-state: paused; }
.loop-gate .dm-step.s2 { animation: dmStep2 5.5s cubic-bezier(.34,1.56,.64,1) infinite; animation-play-state: paused; }
.loop-gate .dm-hi      { animation: dmHi 5.5s cubic-bezier(.3,.7,.3,1) infinite; animation-play-state: paused; }
.loop-gate .dm-blur    { animation: dmBlur 5.5s ease-in-out infinite; animation-play-state: paused; }
.loop-gate.play .dm-step.s1, .loop-gate.play .dm-step.s2,
.loop-gate.play .dm-hi, .loop-gate.play .dm-blur { animation-play-state: running; }
@keyframes dmStep  { 0% { scale: 0 } 12%, 94% { scale: 1 } 100% { scale: 0 } }
@keyframes dmStep2 { 0%, 12% { scale: 0 } 24%, 94% { scale: 1 } 100% { scale: 0 } }
@keyframes dmHi    { 0%, 26% { scale: 0 1 } 44%, 94% { scale: 1 1 } 100% { scale: 0 1 } }
@keyframes dmBlur  { 0%, 44% { opacity: 0 } 58%, 94% { opacity: 1 } 100% { opacity: 0 } }

@media (prefers-reduced-motion: reduce) {
  /* Nothing to restore: the resting state is already the finished one. */
  .loop-gate .sc-page, .loop-gate .sc-bar::after,
  .loop-gate .d-txt i, .loop-gate .dm-hi, .loop-gate .dm-step,
  .loop-gate .dm-blur, .loop-gate .tl-head { animation: none; }
}

/* 4 - the recording editor: the HOMEPAGE'S OWN demo, scaled down.
   Its CSS and keyframes already load here (site.css is index.html's <style>),
   so this is the real animation rather than an imitation of it.

   ⚠️ `zoom`, not `transform: scale()` - a transform shrinks the paint and
   leaves the original ~540px layout box behind, which then spills out of a
   200px card.
   ⚠️ The three narration captions are stripped in the MARKUP: on the homepage
   they explain a demo that has a column of copy beside it; in a card that
   already carries its own caption they are a second voice saying something
   different. */
/* ⚠️ GIVE IT ITS REAL WIDTH FIRST, THEN FIT. The demo's widths are percentages,
   so inside a card it collapsed to 205px and measuring THAT told me to shrink it
   further — the result was a postage stamp in a wide box. Laid out at the
   homepage's width the timeline is wide and short, which is the shape of the
   stage, so it fills it. */
.gap-vtl .vtl-film { width: 560px; }
.gap-vtl { zoom: .66; }
.gap-vtl .vtl-film { box-shadow: none; padding: 0; border: 0; background: none; }
.gap-vtl .vtl { margin: 0 auto; }
/* The output chip is positioned against the film wrapper; with the captions
   gone it sits under the timeline instead of over it. */
.gap-vtl .vx-out { display: none; }/* ⚠️⚠️ THREE AUDIO CLIPS, NOT ONE — the video lane above splits into three and
   the audio lane did not, so a demo about SPLITTING a recording showed the audio
   surviving the cut untouched.
   The homepage does have three: `.aseg.a1/.a2/.a3` are styled in site.css at
   exactly the video segments' left/width, and its own script builds them inside
   #audclip (its comment: "three clips matching the video segments"). That script
   lives in index.html and does not run here, so lifting the markup alone got the
   empty wrapper and none of the clips. They are written out statically now, at
   the geometry site.css already defines for them.
   ⚠️ Keep the .aud-clip wrapper: `.aseg` is top:0/bottom:0 and takes its 6px
   inset from that parent. Dropping it makes the blocks full-lane height.
   ⚠️ The BARS are static markup generated from the homepage's own bars()
   function — same sines, same offsets — because its script keys off #audclip
   and does not run here. They replaced a repeating-linear-gradient stand-in
   that rendered every bar the same height, i.e. a barcode rather than a wave. */

/* 1 - scrolling capture, as the user actually performs it: draw the region,
   then Clarus scrolls it and stitches the result.

   COLOUR CARRIES THE MEANING, so no caption is needed inside the picture:
     gold outline   = the region you drew
     gold wash      = the part already captured, sweeping down as it scrolls
     gold frame     = the finished image, and the only gold thing on the right
   Everything not yet touched stays the page's own pale grey.

   ⚠️ Built for the card, not lifted: the homepage's version is a 19-second
   narrative whose result flies into a chat panel at 71.5% and whose browser sits
   dimmed from 52% to 94%. In a card that is a fifth of every loop showing
   nothing. */
.sc { gap: 15px; align-items: center; zoom: 1.06; }

/* -- the page being captured is an ARTICLE ------------------------------- */
/* WARNING: it is a NARROW, TALL column of prose with two figures in it, not a
   wide marketing page. That is not decoration - the SHAPE is the argument.
   Scrolling capture exists because some pages are several screens tall, so the
   sketch has to be visibly taller than the window it sits in; a wide page with
   a nav, a hero and a footer fits on one screen in real life and quietly
   undermines the whole card. The figures are flat colour blocks because they
   are the only colour on a near-white page, which is what makes them read as
   pictures at 26px rather than as more furniture. */
.sc-win {
  width: 160px; border-radius: 6px; overflow: hidden; position: relative;
  background: #eef1f5; box-shadow: 0 10px 24px -12px oklch(0 0 0 / 0.75);
}
.sc-top { height: 14px; display: flex; align-items: center; gap: 3px; padding: 0 5px; background: #e3e7ef; }
.sc-top i { width: 3px; height: 3px; border-radius: 50%; background: #c3c9d5; }
.sc-top em {
  margin-left: 4px; font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 5px; font-style: normal; color: #7c8494; white-space: nowrap;
}
.sc-view { display: block; height: 92px; overflow: hidden; position: relative; }
.sc-page { display: flex; flex-direction: column; gap: 3px; padding: 5px 22px; }

/* the article's furniture - the SAME markup is emitted into the result, so the
   two sketches cannot drift apart */
.a-h   { height: 8px; border-radius: 1px; background: #c5cdda; }
.a-by  { height: 3px; width: 38%; border-radius: 1px; background: #dfe4ed; }
.a-t   { height: 3px; border-radius: 1px; background: #d9dee8; }
.a-t.w8 { width: 86% } .a-t.w7 { width: 73% } .a-t.w6 { width: 62% } .a-t.w5 { width: 47% }
.a-fig { display: flex; gap: 5px; align-items: flex-start; margin: 2px 0; }
.a-img { width: 34px; height: 26px; border-radius: 2px; background: #8fb2e6; flex: none; }
.a-img.alt { background: #8dbfad; }
.a-fig em { flex: 1; display: flex; flex-direction: column; gap: 3px; padding-top: 2px; }
.a-fig em i { height: 3px; border-radius: 1px; background: #d9dee8; }
.a-fig em i.w8 { width: 86% } .a-fig em i.w7 { width: 73% }
.a-fig em i.w6 { width: 62% } .a-fig em i.w5 { width: 47% }
.a-end { height: 5px; width: 32%; border-radius: 1px; background: #d2d8e4; }

/* the region you drag */
.sc-sel {
  position: absolute; left: 6px; top: 6px; width: 0; height: 0;
  border: 1.5px solid var(--gold); border-radius: 2px;
  box-shadow: 0 0 0 999px oklch(0.10 0.006 80 / 0.42);
  overflow: hidden;
}
/* WARNING: a SWEEPING LINE, NOT A WASH. Filling the captured area with gold
   looked right in theory and wrong on screen: the page beneath is near-white,
   so a translucent gold overlay reads as a stain on the page rather than as
   progress over it, and it dulled the very sketch it was meant to be
   capturing. */
.sc-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 22px;
  background: linear-gradient(180deg, transparent, oklch(0.80 0.105 84 / 0.16) 78%, var(--gold) 100%);
}
.sc-cur {
  position: absolute; width: 0; height: 0; left: 6px; top: 6px;
  border-left: 6px solid var(--text); border-top: 4px solid transparent;
  border-bottom: 4px solid transparent; rotate: 38deg; opacity: 0;
}

.sc-pill {
  position: absolute; left: 50%; bottom: 5px; translate: -50% 0;
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 3px 7px; border-radius: 999px;
  background: oklch(0.12 0.006 80 / 0.94); border: 1px solid var(--gold-soft);
  font-size: 7.5px; font-weight: 600; color: var(--gold); opacity: 1;
}
.sc-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.sc-bar { width: 24px; height: 2px; border-radius: 1px; background: var(--gold-soft); overflow: hidden; }
.sc-bar::after { content: ""; display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; }

/* -- the stitched result ------------------------------------------------- */
/* WARNING: `zoom`, not `transform: scale()`. The result holds the WHOLE article,
   which is nearly twice the window's viewport, so it has to be drawn smaller -
   and a scaled element keeps its original layout box, which would push the
   window off the stage. zoom reflows. Same reason .gap-vtl uses it. */
.sc-out { position: relative; display: block; }
.sc-shot {
  zoom: .68;
  width: 106px; display: flex; flex-direction: column; gap: 3px; padding: 5px 15px;
  border-radius: 5px; background: #eef1f5;
  border: 2px solid var(--gold); box-shadow: 0 0 30px -6px var(--gold-soft);
}
.sc-size {
  display: block; margin-top: 5px; text-align: center;
  font-family: "Geist Mono", ui-monospace, monospace; font-size: 7px; color: var(--gold);
}

/* WARNING WARNING: ONE TIMELINE, AND THE RESULT IS NOT THERE FROM THE START.
   Everything below runs 8s on the same percentages, and the image is clipped to
   nothing until the capture actually begins, then GROWS downward exactly as the
   page travels upward. That is the causal link the card exists to show, and
   having the finished screenshot sitting there before anything had been
   captured was output before cause - it read as two unrelated pictures. */
.loop-gate .sc-sel  { animation: scSel 8s cubic-bezier(.3,.7,.3,1) infinite; animation-play-state: paused; }
.loop-gate .sc-cur  { animation: scCur 8s cubic-bezier(.3,.7,.3,1) infinite; animation-play-state: paused; }
.loop-gate .sc-scan { animation: scScan 8s cubic-bezier(.4,0,.2,1) infinite; animation-play-state: paused; }
.loop-gate .sc-page { animation: scPage 8s cubic-bezier(.4,0,.2,1) infinite; animation-play-state: paused; }
.loop-gate .sc-bar::after { animation: scBar 8s cubic-bezier(.4,0,.2,1) infinite; animation-play-state: paused; }
.loop-gate .sc-pill { animation: scPill 8s ease-out infinite; animation-play-state: paused; }
.loop-gate .sc-shot { animation: scGrow 8s cubic-bezier(.4,0,.2,1) infinite; animation-play-state: paused; }
.loop-gate .sc-size { animation: scSize 8s ease-out infinite; animation-play-state: paused; }
.loop-gate.play .sc-sel, .loop-gate.play .sc-cur, .loop-gate.play .sc-scan,
.loop-gate.play .sc-page, .loop-gate.play .sc-bar::after, .loop-gate.play .sc-pill,
.loop-gate.play .sc-shot, .loop-gate.play .sc-size { animation-play-state: running; }

/* 0-8% the article sits at its top | 8-26% you drag the region | 26-32% it locks
   and the pill arrives | 32-78% the page scrolls, the line sweeps, the bar fills
   and the image grows | 78-100% the finished size is stated */
@keyframes scSel {
  0%, 8% { width: 0; height: 0 }
  26%    { width: 146px; height: 78px }
  100%   { width: 146px; height: 78px }
}
@keyframes scCur  { 0% { opacity: 0; translate: 0 0 } 8% { opacity: 1; translate: 0 0 }
                    26% { opacity: 1; translate: 146px 78px } 34%, 100% { opacity: 0; translate: 146px 78px } }
@keyframes scScan { 0%, 30% { transform: translateY(-24px); opacity: 0 }
                    34% { opacity: 1 }
                    74% { transform: translateY(78px); opacity: 1 }
                    80%, 100% { transform: translateY(78px); opacity: 0 } }
@keyframes scPage {
  0%, 32% { transform: translateY(0) }
  78%     { transform: translateY(-78px) }
  100%    { transform: translateY(-78px) }
}
@keyframes scBar {
  0%, 32% { transform: scaleX(0) }
  78%     { transform: scaleX(1) }
  100%    { transform: scaleX(1) }
}
@keyframes scPill {
  0%, 26% { opacity: 0 }
  32%     { opacity: 1 }
  100%    { opacity: 1 }
}
/* WARNING: a PAUSED ANIMATION HOLDS ITS FIRST KEYFRAME, so before the gate fires
   the result is correctly absent rather than briefly complete. The clip is inset
   from the BOTTOM, so it fills top-down, matching the sweep. */
@keyframes scGrow {
  0%, 32% { clip-path: inset(0 0 100% 0); opacity: 0 }
  35%     { clip-path: inset(0 0 92% 0);  opacity: 1 }
  78%     { clip-path: inset(0 0 0 0);    opacity: 1 }
  100%    { clip-path: inset(0 0 0 0);    opacity: 1 }
}
@keyframes scSize { 0%, 74% { opacity: 0 } 82%, 100% { opacity: 1 } }
