/* Amnalith papers.css · seat C · DAYLIGHT.md §4: example documents, the paperwork of a small business seen
   from above. Every class starts with "pap". Only the tokens of site.css :root (with --ice-100, --ice-200).
   A sheet is white paper (one dark sheet: the developer's), square corners, a soft shadow, set at 2 to 4
   degrees; a letterhead with a ruled monogram square, a dated line in mono, a double rule; typed text in
   Geist, numbers and dates in mono; a stamp with worn ink, a marker stroke over one key line, a signature.
   Sizes: large sheets fill their slot up to 460px (the sheet about 410 by 530), down to 330px (sheet 300)
   without breaking; small sheets up to 240px (sheet about 220 by 150). Never scaled with a transform: the
   type follows the slot with container units, never under 12px. Rotation is the only transform at rest.
   Motion (ALIVE.md §2): roots carry data-reveal="none" data-live; start states only under .motion on a root
   with data-reveal; without .motion every sheet is complete and still.
   Order: root and tokens · sheet · letterhead · text · rows · stamp · marker · ticks · signature · large
   sheets one by one · small sheets · motion. */

/* Text that sits in a p carries one more class of weight (:is(.pap, .pap-mini)), so a page rule such as
   ".tile p" cannot restyle a sheet. */

/* ===== Root ============================================================================= */
.pap, .pap-mini {
  --pap-ease: var(--ease-out, cubic-bezier(.16, 1, .3, 1));
  --pap-soft: var(--ease, cubic-bezier(.2, .7, .2, 1));
  --pap-shadow: 0 1px 1px rgba(42, 12, 24, .07), 0 12px 26px -8px rgba(42, 12, 24, .20), 0 36px 64px -26px rgba(42, 12, 24, .26);
  --pap-shadow-under: 0 1px 1px rgba(42, 12, 24, .05), 0 10px 24px -10px rgba(42, 12, 24, .16);
  display: block; width: 100%; min-width: 0; margin: 0; text-align: left;
  font-family: var(--font); font-variant-numeric: tabular-nums; color: var(--ink-700);
}
.pap { container: pap / inline-size; max-width: 460px; padding: 6% 6.5% 8%; }
:where(.pap, .pap-mini) :where(p, dl, dt, dd, ul, ol, li, figcaption) { margin: 0; padding: 0; }
:where(.pap, .pap-mini) :where(ul, ol) { list-style: none; }
:where(.pap, .pap-mini) svg { display: block; overflow: visible; }

/* ===== Sheet ============================================================================ */
.pap__stack { position: relative; }
.pap__sheet { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; aspect-ratio: 7 / 9;
  padding: clamp(20px, 8cqi, 38px) clamp(20px, 8cqi, 38px) clamp(18px, 6cqi, 28px);
  background: var(--white); box-shadow: var(--pap-shadow); transform: rotate(var(--rot, -2.5deg)); }
/* two soft folds, as a letter folded in three */
.pap__sheet::before, .pap__sheet::after { content: ""; position: absolute; left: 0; right: 0; height: 22px; margin-top: -11px; pointer-events: none;
  background: linear-gradient(to bottom, transparent 20%, rgba(42, 12, 24, .022) 49%, rgba(255, 255, 255, .55) 51%, transparent 80%); }
.pap__sheet::before { top: 33.3%; }
.pap__sheet::after { top: 66.6%; }
/* the sheet under it, a little turned the other way */
.pap__under { position: absolute; inset: 0; z-index: 0; background: var(--white); box-shadow: var(--pap-shadow-under);
  transform: translate(3%, 2%) rotate(var(--rot2, 2deg)); }

/* ===== Letterhead: ruled monogram square, the name in the serif, the date in mono, a double rule ===== */
.pap__head { position: relative; display: flex; align-items: center; gap: clamp(8px, 2.6cqi, 12px);
  padding-bottom: clamp(10px, 3cqi, 14px); border-bottom: 1.5px solid var(--ink-900); }
.pap__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--line-strong); }
.pap__mono { flex: none; display: grid; place-items: center; width: clamp(26px, 7.4cqi, 32px); aspect-ratio: 1;
  border: 1px solid var(--ink-900); box-shadow: inset 0 0 0 2px var(--white), inset 0 0 0 3px var(--ink-900);
  font-family: var(--serif-text); font-size: clamp(13px, 3.6cqi, 16px); font-weight: 400; font-synthesis: none; line-height: 1; color: var(--ink-900); }
.pap__org { flex: 1 1 auto; min-width: 0; font-family: var(--serif-text); font-size: clamp(15px, 4.9cqi, 21px); font-weight: 400;
  font-synthesis: none; letter-spacing: .01em; line-height: 1.2; color: var(--ink-900); }
.pap__date { flex: none; font-family: var(--mono); font-size: 12px; font-weight: 450; letter-spacing: .02em; color: var(--ink-600); white-space: nowrap; }

/* ===== Typed text ========================================================================= */
:is(.pap, .pap-mini) .pap__title { margin-top: clamp(20px, 8cqi, 38px); font-family: var(--serif-text); font-size: clamp(22px, 7.8cqi, 35px); font-weight: 400;
  font-synthesis: none; letter-spacing: -0.01em; line-height: 1.12; color: var(--ink-900); text-wrap: balance; }
:is(.pap, .pap-mini) .pap__ref { margin-top: 8px; font-family: var(--mono); font-size: clamp(12px, 3.1cqi, 14px); letter-spacing: .04em; color: var(--ink-600); }
:is(.pap, .pap-mini) .pap__body { margin-top: clamp(14px, 5cqi, 22px); font-size: clamp(13px, 3.75cqi, 16.5px); line-height: 1.62; color: var(--ink-700); text-wrap: pretty; }
.pap .mono { font-family: var(--mono); font-size: .92em; font-weight: 450; letter-spacing: 0; }
/* grey text bars: lines of typed text seen from a distance */
.pap__bars { display: grid; gap: clamp(7px, 2.2cqi, 10px); margin-top: 12px; }
.pap__bars > span { display: block; height: clamp(6px, 1.7cqi, 8px); background: var(--line); }
.pap__bars > span:nth-child(2) { width: 72%; }

/* ===== Rows: a label in small capitals, a value ========================================= */
.pap__rows { margin-top: clamp(16px, 5.4cqi, 26px); border-top: 1px solid var(--line); }
.pap__rows > div { display: grid; grid-template-columns: clamp(84px, 28cqi, 124px) minmax(0, 1fr); column-gap: 12px; align-items: baseline;
  padding: clamp(8px, 2.9cqi, 13px) 0; border-bottom: 1px solid var(--line); }
.pap__rows dt { font-size: clamp(12px, 2.8cqi, 13px); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; color: var(--ink-600); }
.pap__rows dd { min-width: 0; font-size: clamp(13px, 3.75cqi, 16.5px); font-weight: 500; line-height: 1.4; color: var(--ink-900); }
.pap__rows dd.mono { font-size: clamp(12px, 3.45cqi, 15.5px); font-weight: 450; white-space: nowrap; }

/* ===== Foot: the signature on its line at the left, the Example tag at the right ========= */
.pap__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: clamp(14px, 4cqi, 20px); }
.pap__signline { flex: 0 1 auto; width: clamp(110px, 40cqi, 176px); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.pap__sign { width: 100%; height: auto; fill: none; stroke: var(--ink-900); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; opacity: .86; }
.pap__tag { flex: none; display: inline-flex; align-items: center; padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: 4px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; color: var(--ink-600); background: var(--white); }

/* ===== Stamp: an outlined rectangle in ink, turned, the ink a little worn ================= */
.pap__stamp { position: relative; z-index: 3; align-self: flex-end; margin: auto 3% auto 0; display: inline-flex; align-items: center; gap: .45em; padding: .55em .9em .5em;
  color: color-mix(in srgb, var(--ok-600) 72%, var(--ox-950)); border: 2px solid currentColor; /* a deeper ink: 4.5 to 1 also on a tinted sheet */ box-shadow: inset 0 0 0 2px var(--white), inset 0 0 0 3px currentColor;
  font-family: var(--font); font-size: clamp(14px, 4.8cqi, 22px); font-weight: 700; letter-spacing: .16em; line-height: 1; text-transform: uppercase; white-space: nowrap;
  opacity: 1; mix-blend-mode: multiply; transform: rotate(var(--srot, -9deg));
  /* worn ink: three grids of tiny holes at unlike spacings, intersected, so the gaps never line up */
  -webkit-mask-image: radial-gradient(circle, transparent 0 .7px, var(--white) 1.1px), radial-gradient(circle, transparent 0 .6px, var(--white) 1px), radial-gradient(circle, transparent 0 .8px, var(--white) 1.2px);
  -webkit-mask-size: 7px 9px, 11px 5px, 17px 13px; -webkit-mask-position: 0 0, 3px 2px, 5px 7px; -webkit-mask-composite: source-in;
  mask-image: radial-gradient(circle, transparent 0 .7px, var(--white) 1.1px), radial-gradient(circle, transparent 0 .6px, var(--white) 1px), radial-gradient(circle, transparent 0 .8px, var(--white) 1.2px);
  mask-size: 7px 9px, 11px 5px, 17px 13px; mask-position: 0 0, 3px 2px, 5px 7px; mask-composite: intersect; }
.pap__stamp--ice { color: var(--ice-700); }
/* the stamp stands in the flow, between the text and the foot, so it never covers a word at any width */
.pap__stamp ~ .pap__foot { margin-top: 0; }
.pap__stamp .pap__tick { width: 1.05em; height: 1.05em; stroke-width: 2.6; margin-left: -.15em; }

/* ===== Marker: a translucent ice stroke over one key line ================================ */
.pap__mark { position: relative; z-index: 0; background: none; color: inherit; white-space: nowrap; }
.pap__mark::before { content: ""; position: absolute; z-index: -1; left: -.22em; right: -.28em; top: .1em; bottom: -.02em;
  background: var(--ice-500); opacity: .4; clip-path: polygon(1% 20%, 99% 3%, 100% 84%, 0 100%); }

/* ===== Ticks (drawn strokes) and tick boxes ============================================== */
.pap__tick { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pap__box { flex: none; position: relative; display: grid; place-items: center; width: clamp(16px, 4.6cqi, 20px); aspect-ratio: 1;
  border: 1.5px solid var(--ink-900); color: var(--ok-600); }
.pap__box .pap__tick { width: 120%; height: 120%; margin: -10% 0 0 10%; stroke-width: 2.4; }

/* ===== pap-club =========================================================================== */
.pap-club .pap__stamp { --srot: -9deg; }
.pap-club .pap__rows dd { letter-spacing: .01em; }

/* ===== pap-freelancer ===================================================================== */
.pap-freelancer .pap__stamp { --srot: 7deg; margin-right: 6%; }

/* ===== pap-agency: a report with three small bars ======================================= */
.pap__chart { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 14px; margin-top: clamp(12px, 4cqi, 18px); }
.pap__chart-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 18%; align-items: end; height: clamp(52px, 19cqi, 86px);
  padding-inline: 6%; border-bottom: 1px solid var(--ink-600); }
.pap__chart-bars > span { display: block; height: calc(var(--h) * 100%); background: var(--ice-700); border-radius: 4px 4px 0 0; transform-origin: 50% 100%; }
:is(.pap, .pap-mini) .pap__ex { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--ink-700); white-space: nowrap; }
.pap__sec { margin-top: clamp(14px, 4.8cqi, 22px); }
:is(.pap, .pap-mini) .pap__sec-name { font-size: clamp(12px, 2.8cqi, 13px); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-900); }
.pap__sec .pap__bars { margin-top: 8px; }

/* ===== pap-developer: the one dark sheet, four lines of code ============================= */
.pap__sheet--dark { background: var(--ox-950); color: var(--on-dark-body); box-shadow: 0 1px 1px rgba(42, 12, 24, .2), 0 14px 30px -8px rgba(42, 12, 24, .38), 0 40px 70px -26px rgba(42, 12, 24, .42); }
.pap__sheet--dark::before, .pap__sheet--dark::after { background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .18) 48%, rgba(255, 255, 255, .03) 52%, transparent); }
.pap__code { margin-block: auto; display: grid; gap: clamp(12px, 5cqi, 24px); padding-block: 12px;
  font-family: var(--mono); font-size: clamp(12px, 3.9cqi, 17.5px); font-weight: 450; line-height: 1.4; }
.pap__code { position: relative; }
.pap__code::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 1.45em; width: 1px; background: var(--line-on-dark); }
/* three columns, as a listing set in mono: line number, the step, and "done" aligned in its own column */
.pap__code li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; white-space: nowrap; color: var(--white); }
.pap__code { width: fit-content; max-width: 100%; grid-template-columns: 1.9em max-content auto; column-gap: clamp(9px, 4.2cqi, 24px); }
.pap__code .pap__ln { color: var(--on-dark-muted); user-select: none; } /* a muted colour, never reduced opacity */
.pap__code .pap__done { color: var(--ice-300); }
:is(.pap, .pap-mini) .pap__caption { padding-top: 16px; border-top: 1px solid var(--line-on-dark); font-family: var(--mono); font-size: clamp(12px, 3.5cqi, 15.5px); color: var(--on-dark-muted); }
.pap__sheet--dark .pap__foot { padding-top: 14px; justify-content: flex-end; }
.pap__sheet--dark .pap__tag { background: transparent; border-color: var(--ox-700); color: var(--on-dark-muted); }
.pap__rule-ice { display: block; width: 28px; height: 0; border-top: 1.5px solid var(--ice-500); }

/* ===== pap-maker ========================================================================== */
.pap__items { margin-top: clamp(14px, 5cqi, 22px); display: grid; gap: clamp(6px, 2.2cqi, 10px); }
.pap__items li { display: flex; align-items: baseline; gap: 10px; font-size: clamp(13px, 3.75cqi, 16.5px); line-height: 1.45; color: var(--ink-900); }
.pap__items li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--ice-700); transform: translateY(-2px); }
.pap-maker .pap__stamp { --srot: -6deg; }

/* ===== pap-bookkeeper: a checklist ======================================================= */
.pap__check { margin-top: clamp(16px, 5.4cqi, 26px); display: grid; border-top: 1px solid var(--line); }
.pap__check li { display: flex; align-items: center; gap: 12px; padding: clamp(9px, 3.2cqi, 15px) 0; border-bottom: 1px solid var(--line);
  font-size: clamp(13px, 3.75cqi, 16.5px); line-height: 1.4; color: var(--ink-900); }
.pap__check .pap__open .pap__box { border-color: var(--ink-600); }
.pap__missing { margin-left: auto; padding: 2px 6px; border: 1.5px solid var(--ice-700); color: var(--ice-700);
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-3deg); }

/* ===== pap-shop: an announcement ========================================================= */
:is(.pap, .pap-mini) .pap__headline { margin-top: clamp(10px, 3.4cqi, 16px); font-family: var(--serif-text); font-size: clamp(21px, 8cqi, 36px); font-weight: 400;
  font-synthesis: none; line-height: 1.2; color: var(--ink-900); text-wrap: balance; }
.pap-shop .pap__bars { margin-top: clamp(14px, 4.6cqi, 22px); }
.pap-shop .pap__rows { margin-top: auto; }
.pap-shop .pap__foot { margin-top: 0; }
:is(.pap, .pap-mini) .pap__kicker { margin-top: clamp(20px, 7cqi, 34px); font-size: clamp(12px, 2.8cqi, 13px); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ice-700); }

/* ===== Small sheets (pap-mini-*) ========================================================= */
.pap-mini { container: papmini / inline-size; max-width: 240px; padding: 5% 6% 8%; }
.pap-mini .pap__sheet { aspect-ratio: 22 / 15; padding: clamp(11px, 6.4cqi, 16px) clamp(12px, 7cqi, 18px); transform: rotate(var(--rot, -2deg)); }
.pap-mini .pap__sheet::before, .pap-mini .pap__sheet::after { display: none; }
.pap-mini .pap__tag { position: absolute; right: clamp(9px, 5.4cqi, 13px); top: clamp(9px, 5.4cqi, 13px); padding: 2px 5px; font-size: 12px; letter-spacing: .08em; }
.pap-mini__top { display: flex; align-items: center; gap: 8px; padding-bottom: 7px; border-bottom: 1.5px solid var(--ink-900); }
.pap-mini__top .pap__mono { width: 18px; font-size: 12px; box-shadow: inset 0 0 0 1.5px var(--white), inset 0 0 0 2.5px var(--ink-900); }
.pap-mini__top > span:last-child { display: block; height: 5px; width: 30%; background: var(--line-strong); }
:is(.pap, .pap-mini) .pap-mini__title { font-family: var(--serif-text); font-size: clamp(15px, 9cqi, 19px); font-weight: 400; font-synthesis: none; line-height: 1.1; color: var(--ink-900); }

/* the form: three field lines and one ticked box */
.pap-mini__fields { display: grid; gap: clamp(7px, 4cqi, 10px); margin-top: clamp(9px, 5cqi, 12px); }
.pap-mini__fields > span { display: grid; grid-template-columns: 30% minmax(0, 1fr); column-gap: 8px; align-items: end; }
.pap-mini__fields > span::before { content: ""; height: 4px; background: var(--line-strong); }
.pap-mini__fields > span::after { content: ""; height: 0; border-bottom: 1px solid var(--line-strong); }
.pap-mini__ticked { display: flex; align-items: center; gap: 8px; margin-top: clamp(8px, 4.4cqi, 11px); }
.pap-mini__ticked .pap__box { width: 15px; border-width: 1.5px; }
.pap-mini__ticked > span:last-child { display: block; height: 4px; width: 38%; background: var(--line-strong); }

/* the report: five rising bars */
.pap-mini__bars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 12%; align-items: end; height: 46%; margin-top: auto;
  padding-inline: 4px; border-bottom: 1px solid var(--ink-600); }
.pap-mini__bars > span { display: block; height: calc(var(--h) * 100%); background: var(--ice-700); border-radius: 4px 4px 0 0; transform-origin: 50% 100%; }
.pap-mini-report .pap__ex { margin-top: 2px; }
.pap-mini-report .pap__sheet { padding-bottom: clamp(30px, 17cqi, 40px); }

/* the reminder: a note with the bell */
.pap-mini-reminder .pap__sheet { border-left: 3px solid var(--ice-700); }
.pap-mini__note { display: flex; align-items: flex-start; gap: 12px; margin-top: clamp(24px, 15cqi, 34px); padding-right: 4px; }
.pap-mini__note .ico { --ico: 30; flex: none; color: var(--ice-700); margin-top: 1px; }
:is(.pap, .pap-mini) .pap-mini__note p { font-family: var(--serif-text); font-size: clamp(16px, 9.6cqi, 21px); font-weight: 400; font-synthesis: none; line-height: 1.25; color: var(--ink-900); text-wrap: balance; }

/* the order slip: a torn top edge, the number, the paid stamp */
.pap-mini-order .pap__stack { filter: drop-shadow(0 1px 1px rgba(42, 12, 24, .08)) drop-shadow(0 12px 14px rgba(42, 12, 24, .16)); }
.pap-mini-order .pap__sheet { box-shadow: none;
  -webkit-mask: radial-gradient(circle at 50% 0, transparent 0 3px, var(--white) 3.5px) 0 0 / 10px 100% repeat-x;
  mask: radial-gradient(circle at 50% 0, transparent 0 3px, var(--white) 3.5px) 0 0 / 10px 100% repeat-x; }
:is(.pap, .pap-mini) .pap-mini__order { margin-top: 8px; font-family: var(--mono); font-size: clamp(14px, 8cqi, 17px); font-weight: 500; letter-spacing: .02em; color: var(--ink-900); }
.pap-mini-order .pap__stamp { align-self: flex-start; margin: auto 0 2px; font-size: 13px; --srot: -6deg; }

/* the scope: three ticked lines, one struck through */
.pap-mini__scope { display: grid; gap: clamp(7px, 4cqi, 10px); margin-top: clamp(9px, 5cqi, 13px); }
.pap-mini__scope li { display: flex; align-items: center; gap: 8px; }
.pap-mini__scope .pap__tick { flex: none; width: 13px; height: 13px; color: var(--ok-600); stroke-width: 2.4; }
.pap-mini__scope li > span { display: block; height: 4px; width: var(--w, 60%); background: var(--line-strong); }
.pap-mini__scope .pap-mini__cut { margin-left: 21px; position: relative; }
.pap-mini__scope .pap-mini__cut::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 1.25px; margin-top: -.6px; background: var(--ink-900); transform-origin: 0 50%; }

/* ===== Motion: the sheet slides onto its stage and settles at its angle; the marker sweeps,
   ticks and the signature draw, the stamp presses in. While live: the stamp's ink deepens once every 10s. ===== */
.motion :is(.pap, .pap-mini)[data-reveal] .pap__sheet { transition: transform 1100ms var(--pap-ease) 80ms, opacity 500ms var(--pap-soft) 80ms; }
.motion :is(.pap, .pap-mini)[data-reveal]:not(.is-in) .pap__sheet { opacity: 0; transform: translate(10%, 12%) rotate(calc(var(--rot, -2.5deg) + 7deg)); }
.motion .pap[data-reveal] .pap__under { transition: transform 1100ms var(--pap-ease), opacity 500ms var(--pap-soft); }
.motion .pap[data-reveal]:not(.is-in) .pap__under { opacity: 0; transform: translate(-6%, 14%) rotate(calc(var(--rot2, 2deg) - 6deg)); }

.motion :is(.pap, .pap-mini)[data-reveal] .pap__mark::before { transition: clip-path 650ms cubic-bezier(.5, .1, .3, 1) 1000ms; }
.motion :is(.pap, .pap-mini)[data-reveal]:not(.is-in) .pap__mark::before { clip-path: polygon(1% 20%, 1% 3%, 1% 84%, 0 100%); }

.motion :is(.pap, .pap-mini)[data-reveal] .pap__stamp { transition: opacity 180ms var(--pap-soft) var(--stamp-at, 1500ms), transform 420ms var(--pap-ease) var(--stamp-at, 1500ms); }
.motion :is(.pap, .pap-mini)[data-reveal]:not(.is-in) .pap__stamp { opacity: 0; transform: rotate(var(--srot, -9deg)) scale(1.7); }
.motion :is(.pap, .pap-mini)[data-live].is-in.is-live .pap__stamp { animation: pap-ink 10s ease-in-out 4s infinite; }
@keyframes pap-ink { 0%, 80%, 100% { filter: saturate(1); } 88% { filter: saturate(1.35); } }

.motion :is(.pap, .pap-mini)[data-reveal] .pap__tick path { stroke-dasharray: 1 2; stroke-dashoffset: 0;
  transition: stroke-dashoffset 520ms var(--pap-soft) calc(var(--tick-at, 1100ms) + var(--k, 0) * 180ms); }
.motion :is(.pap, .pap-mini)[data-reveal]:not(.is-in) .pap__tick path { stroke-dashoffset: 1; }
.motion :is(.pap, .pap-mini)[data-reveal] .pap__stamp .pap__tick path { transition-delay: calc(var(--stamp-at, 1500ms) + 300ms); }

.motion .pap[data-reveal] .pap__sign path { stroke-dasharray: 1 2; stroke-dashoffset: 0; transition: stroke-dashoffset 800ms var(--pap-soft) 1250ms; }
.motion .pap[data-reveal] .pap__sign path + path { transition-delay: 1850ms; transition-duration: 450ms; }
.motion .pap[data-reveal]:not(.is-in) .pap__sign path { stroke-dashoffset: 1; }

/* bars grow from their baseline */
.motion :is(.pap, .pap-mini)[data-reveal] :is(.pap__chart-bars, .pap-mini__bars) > span { transition: transform 700ms var(--pap-ease) calc(900ms + var(--k, 0) * 90ms); }
.motion :is(.pap, .pap-mini)[data-reveal]:not(.is-in) :is(.pap__chart-bars, .pap-mini__bars) > span { transform: scaleY(0); }

/* the developer's lines type themselves, one after another, and each "done" lights after its line */
.motion .pap[data-reveal] .pap__code li { clip-path: inset(0 0 0 0); transition: clip-path 520ms steps(18, end) calc(800ms + var(--k, 0) * 420ms); }
.motion .pap[data-reveal]:not(.is-in) .pap__code li { clip-path: inset(0 100% 0 0); }
.motion .pap[data-reveal] .pap__code .pap__done { transition: opacity 300ms var(--pap-soft) calc(500ms + var(--k, 0) * 200ms); } /* all four by 1.4 s */
.motion .pap[data-reveal]:not(.is-in) .pap__code .pap__done { opacity: 0; }
.motion .pap[data-reveal] .pap__caption { transition: opacity 400ms var(--pap-soft) 1200ms; }
.motion .pap[data-reveal]:not(.is-in) .pap__caption { opacity: 0; }

/* the struck line of the scope is struck through after the ticks */
.motion .pap-mini[data-reveal] .pap-mini__cut::after { transition: transform 400ms var(--pap-soft) 1700ms; }
.motion .pap-mini[data-reveal]:not(.is-in) .pap-mini__cut::after { transform: scaleX(0); }
