/* Version 1, 19 Nov 2026 (the Cardinal round, plan-v12.md). Loaded after variant-hw.css; the three stylesheets of
   round 2 (variant-hi.css, -hq.css, -hg.css) come after it in the STACK. Four parts: the option switches
   of the review bar, the motion tokens, the kit of card pieces the options are built from (x-), and the card of the
   home hero's last beat (h-pop). */

/* ---------- option switches ----------
   A block that belongs to one option carries data-o="<group>-<letter>". Option A is the default: without an attribute
   on <html> (every build without the review bar) only the A blocks show. The review bar sets data-o-<group> on <html>,
   and ?o=home-b,icons-c in the address does the same. A difference that needs no second block can hang on
   html[data-o-<group>="b"] directly; such a group announces its letters with data-o-set="<group>:abc" on any element.
   Groups: home (the block after the hero), and for round 2 icons (app icons in the element blocks, variant-hi.css),
   wait (the waitlist block on Platform, variant-hq.css) and img (a layer over every picture, variant-hg.css).
   A new group needs its two lines here and its label in the review bar (build.py, REVIEW_BAR, L).
   Picked on 19 Nov and now simply the page, without switches: hero card C, plat B, rows B, data C. */
html:not([data-o-home="b"]) [data-o="home-b"], html:not([data-o-home="c"]) [data-o="home-c"], html:not([data-o-home="d"]) [data-o="home-d"],
html:is([data-o-home="b"], [data-o-home="c"], [data-o-home="d"]) [data-o="home-a"],
html:not([data-o-icons="b"]) [data-o="icons-b"], html:not([data-o-icons="c"]) [data-o="icons-c"], html:not([data-o-icons="d"]) [data-o="icons-d"],
html:is([data-o-icons="b"], [data-o-icons="c"], [data-o-icons="d"]) [data-o="icons-a"],
html:not([data-o-wait="b"]) [data-o="wait-b"], html:not([data-o-wait="c"]) [data-o="wait-c"], html:not([data-o-wait="d"]) [data-o="wait-d"],
html:is([data-o-wait="b"], [data-o-wait="c"], [data-o-wait="d"]) [data-o="wait-a"],
html:not([data-o-img="b"]) [data-o="img-b"], html:not([data-o-img="c"]) [data-o="img-c"], html:not([data-o-img="d"]) [data-o="img-d"],
html:is([data-o-img="b"], [data-o-img="c"], [data-o-img="d"]) [data-o="img-a"] { display: none !important; }

/* ---------- motion tokens ----------
   Measured on the reference site (research/v12/cardinal/motion.md): one ease-out for fades, a spring without bounce
   for things that land, 300 ms colour changes, rows that arrive in 450 ms and leave in 200 ms, 80 ms between siblings.
   Hidden or shifted start states only ever apply under html.x-ok (set by variant-hx.js once it runs), so a page
   without script, or with reduced motion (html.x-still), shows every block finished. */
:root {
  --x-ease: cubic-bezier(.23, 1, .32, 1);       /* fades, blur, most state changes */
  --x-spring: cubic-bezier(.28, .5, .06, 1);    /* things that land: a rise, a chip, the deck */
  --x-ui: cubic-bezier(.4, 0, .2, 1);           /* colour changes */
  --x-draw: cubic-bezier(.215, .61, .355, 1);   /* a line being drawn */
  --x-fast: .2s;    /* leaving */
  --x-base: .3s;    /* colour and small state changes */
  --x-in: .45s;     /* a row arriving */
  --x-slow: .9s;    /* landing */
  --x-gap: 80ms;    /* stagger between siblings: transition-delay: calc(var(--i, 0) * var(--x-gap)) */
  --x-lift: 0 30px 60px -28px rgba(20, 18, 14, .5), 0 0 0 1px rgba(36, 35, 32, .06);   /* the one shadow: a white card on a painting */
  --x-stone: #f3f1ec;   /* chips and quiet panels inside a white card */
  --x-paper: #fbfaf8;   /* the foot of a card */
  --x-mute: #8d8981;
}
@media (prefers-reduced-motion: reduce) {
  [data-xin], [data-xin] *, [data-xseq], [data-xseq] *, .h-pop, .h-pop *, .x-deck::before { transition: none !important; animation: none !important; }
}

/* ---------- the kit ----------
   Card pieces after the reference cards, in brand 2.0: Geist, white cards with a hairline on paper, 12 px corners,
   4 px chips, lime only as a fill (at most one per card: x-act or x-chip--lime), forest for done marks and checks,
   no red, no dots, no logos (icons come from the site's sprite: <svg><use href="#i-..."/></svg>), no faces: "Talk to"
   names a role. A shadow only where a card sits on a painting (x-surf--paint, or the hero panel). Text in a card is
   interface text and stays Geist; a headline next to a card gets class v1-h so the review bar's font switch reaches it.

   HOW A PIECE MOVES (variant-hx.js)
   data-xin on a block: it gets class is-in once it is in view. x-rise on the block, or on children with --i, is the
     standard reveal (fade, 24 px rise, a short blur).
   data-xseq="ms,ms,..." on a card: data-beat steps 1, 2, 3 ..., each beat stays its ms, and the last beat also sets
     data-done. data-xloop makes it go round (data-xrest="0" skips the empty beat in between). Write the finished state
     in the HTML (data-beat="<last>" data-done), that is what a page without script shows. Inside such a card:
       .x-steps > *   arrive one per beat, child 1 on beat 1 (rows, timeline steps, chips; up to 6)
       .x-end         arrives on the last beat (a status, a foot)
       .x-now         is there until the last beat (what the card is busy with)
   Rows, receipts and feet open in height, so a moving card changes size. Put it on a surface (x-surf keeps a fixed
   minimum height and centres the card) or add class x-fixed to the card: then every piece keeps its room and only fades.
   One sequence per card, never one inside another.

   SURFACES
   <figure class="x-surf">                        paper (#efede9). --x-h sets the minimum height (440 px; --x-h-s under
     ...one card, deck or feed...                 721 px wide, 340 px), --x-w the widest the piece gets (400 px)
   </figure>
   <figure class="x-surf x-surf--paint">          a painting; cards on it lose the hairline and get the shadow
     <img class="x-surf-bg" src="/assets/img/paint/river.webp" alt="" width="3072" height="2048" loading="lazy">
     ...
   </figure>

   SMALL PARTS (inside any card)
   <span class="x-chip">Job ad</span>              quiet chip; x-chip--line = a source (hairline), x-chip--lime = lime fill;
                                                   may start with an <svg>
   <span class="x-act">Call before the role is filled<svg><use href="#i-arrow-right"/></svg></span>   the next step, on lime
   <p class="x-who"><small>Talk to</small>Operations director</p>                                     a role, never a person
   <span class="x-status"><svg><use href="#i-check"/></svg>Worth a call this week</span>              a result
   <p class="x-head"><svg>...</svg><b>Title</b><small>Note</small></p>                                the head of a list card

   THE RECORD (x-rec): a title, one line, label and value rows
   <div class="x-card x-rec">
     <p class="x-rec-t"><b>Title</b>One line of why.</p>
     <dl class="x-kv"><div><dt>Talk to</dt><dd>...</dd></div><div><dt>Next step</dt><dd>...</dd></div></dl>
   </div>

   THE NOTIFICATION (x-note) and its deck (x-deck): a signal, who to talk to, the next step
   <div class="x-deck" data-xseq="2800,2800,2800,1" data-xloop data-xrest="0" data-beat="4" data-done>   three notes, no more, no fewer
     <div class="x-card x-note">
       <p class="x-note-h"><svg><use href="#i-briefcase"/></svg><b>Company: <span>the signal</span></b><span>6 Nov</span></p>
       <p class="x-note-f"><span class="x-who"><small>Talk to</small>Role</span><span class="x-act">Next step<svg>...</svg></span></p>
     </div>
     ... two more ...
   </div>
   Beats: 0 one card, the edges still tucked in; 1 the first note in front; 2 the second; 3 the third; 4 the first
   again (the rest state). A note on its own (no deck) is just the inner div.

   THE SIGNAL CARD (x-sig): what happened, in order, and the result
   <div class="x-card x-sig" data-xseq="1000,1000,1100,2800" data-xloop data-beat="4" data-done>
     <p class="x-sig-h"><span><b>Company</b><small>optional second line</small></span>
       <span class="x-status x-end"><svg><use href="#i-check"/></svg>Result</span></p>
     <ol class="x-tl x-steps">
       <li><small>28 Oct</small><i></i><p>What happened <span>source</span></p></li>
       <li><small>Now</small><i></i><p>The step</p>
         <div class="x-more"><div><p class="x-who"><small>Talk to</small>Role</p></div></div></li>   a receipt, optional per step
     </ol>
   </div>
   One beat per step, then one for the result. --x-tl on the card sets the width of the date column (44 px). The done
   mark is a white tick on forest; x-tl--lime on the list makes it a forest tick on lime.

   THE BRIEFING (x-brief): facts with their source, then who to talk to
   <div class="x-card x-brief" data-xseq="700,700,700,3000" data-xloop data-beat="4" data-done>
     <p class="x-head"><svg><use href="#i-file-text"/></svg><b>Company, briefing</b><small>Note</small></p>
     <ul class="x-steps">
       <li class="x-row"><div><span>A fact</span><span class="x-chip">Its source</span></div></li>
       ...
     </ul>
     <div class="x-foot x-end"><div><div><p class="x-who"><small>Talk to</small>Role</p></div></div></div>
   </div>
   The list card (x-list) is the same without a foot. A row may start with a rank and hold two lines; its last
   child goes to the right:
   <li class="x-row"><div><span class="x-n">1</span><span class="x-two"><b>Company</b><small>The signal</small></span><span class="x-chip">Job ad</span></div></li>
   x-foot--tint puts the foot on the lime tint instead of paper.

   THE ACCOUNT CARD (x-acct): chips land one by one, then the verdict
   <div class="x-card x-acct" data-xseq="650,650,650,900,2600" data-xloop data-xrest="600" data-beat="5" data-done>
     <p class="x-head"><b>Company</b><span class="x-chip">Sector, staff</span></p>
     <ul class="x-chips x-steps"><li class="x-chip"><svg>...</svg>A signal</li> ... </ul>
     <p class="x-acct-f"><span class="x-now"><svg><use href="#i-refresh-cw"/></svg>Reading 4 sources</span>
       <span class="x-status x-end"><svg><use href="#i-check"/></svg>Worth a call this week</span></p>
   </div>
   One beat per chip, then one for the verdict. --x-chips-h keeps the chip area at one height (62 px is two rows of
   chips, 96 px three), so the card never changes size.

   SOURCES INTO A LIST (x-feed): tiles light up, three lines are drawn, the rows arrive. Plays once, no sequence needed
   <div class="x-feed" data-xin style="--n:8">                      --n = the number of tiles (default 12)
     <ul class="x-srcs"><li><svg>...</svg><span>Job ads</span></li> ... </ul>      up to 12 tiles, 4 across: at 480 px wide that
                                                                                   holds labels up to 12 letters; --x-cols:3 on
                                                                                   the feed holds 18. A feed under 430 px goes
                                                                                   3 across by itself, under 340 px 2 across
     <div class="x-lines" aria-hidden="true"><i></i><i></i><i></i></div>
     <div class="x-card x-list">
       <p class="x-head"><svg>...</svg><b>Title</b><small>Note</small></p>
       <ul class="x-steps"><li class="x-row"><div>...</div></li> ... </ul>         up to 4 rows
     </div>
   </div> */

/* ----- the standard reveal ----- */
.x-rise { transition: opacity .6s var(--x-ease), filter .7s var(--x-ease), transform var(--x-slow) var(--x-spring); transition-delay: calc(var(--i, 0) * var(--x-gap)); }
html.x-ok [data-xin].x-rise:not(.is-in), html.x-ok [data-xin]:not(.is-in) .x-rise { opacity: 0; filter: blur(6px); transform: translateY(24px); }

/* ----- what a sequence has not reached yet: --x-on 0, heights closed, and a quick way out ----- */
html.x-ok :is([data-xseq], [data-hseq])[data-beat="0"] .x-steps > *,
html.x-ok :is([data-xseq], [data-hseq])[data-beat="1"] .x-steps > :nth-child(n+2),
html.x-ok :is([data-xseq], [data-hseq])[data-beat="2"] .x-steps > :nth-child(n+3),
html.x-ok :is([data-xseq], [data-hseq])[data-beat="3"] .x-steps > :nth-child(n+4),
html.x-ok :is([data-xseq], [data-hseq])[data-beat="4"] .x-steps > :nth-child(n+5),
html.x-ok :is([data-xseq], [data-hseq])[data-beat="5"] .x-steps > :nth-child(n+6),
html.x-ok :is([data-xseq], [data-hseq]):not([data-done]) .x-end,
html.x-ok .x-feed:not(.is-in) .x-steps > * { --x-on: 0; --x-rows: 0fr; --x-d: var(--x-fast); --x-wait: 0s; --x-lag: 0s; }
.x-fixed :is(.x-row, .x-more, .x-foot) { grid-template-rows: 1fr; }

/* ----- surfaces ----- */
.x-surf { position: relative; display: grid; place-items: center; min-height: var(--x-h, 440px); margin: 0; padding: 40px; overflow: hidden; border-radius: 12px; background: var(--a-soft, #efede9); isolation: isolate; }
.x-surf > :is(.x-card, .x-deck, .x-feed) { width: 100%; max-width: var(--x-w, 400px); }
.x-surf--paint { background: #d9c3a3; }
.x-surf-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .x-surf { min-height: var(--x-h-s, 340px); padding: 28px 16px; } }

/* ----- the card and its small parts ----- */
.x-card { min-width: 0; background: #fff; border: 1px solid var(--a-line2); border-radius: 12px; color: var(--a-ink); font-size: 13px; line-height: 18px; text-align: left; }
:is(.x-surf--paint, .h-panel) .x-card { border-color: transparent; box-shadow: var(--x-lift); }
.x-chip { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 4px; background: var(--x-stone); color: var(--a-ink2); font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.x-chip svg { flex: none; width: 13px; height: 13px; }
.x-chip--line { background: #fff; box-shadow: inset 0 0 0 1px var(--a-line2); color: var(--a-ink); font-weight: 400; }
.x-chip--lime { background: var(--lime, #e4ffc2); color: var(--forest, #003d20); }
.x-act { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 4px 8px 4px 10px; border-radius: 4px; background: var(--lime, #e4ffc2); color: var(--forest, #003d20); font-size: 12.5px; line-height: 16px; font-weight: 500; }
.x-act svg { flex: none; width: 12px; height: 12px; }
.x-who { display: flex; flex-direction: column; min-width: 0; margin: 0; font-size: 13px; line-height: 17px; color: var(--a-ink); }
.x-who small { font-size: 12px; line-height: 15px; color: var(--a-ink2); }
.x-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; line-height: 16px; font-weight: 500; color: var(--a-ink); white-space: nowrap; }
.x-status svg { flex: none; width: 13px; height: 13px; color: var(--forest, #003d20); }
html.x-ok .x-status.x-end { opacity: var(--x-on, 1); transform: translateY(calc((1 - var(--x-on, 1)) * 6px)); transition: opacity var(--x-d, .5s) var(--x-spring), transform var(--x-d, .5s) var(--x-spring); }
.x-head { display: flex; align-items: center; gap: 4px 9px; min-height: 46px; margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--a-line); font-size: 14.5px; line-height: 20px; }
.x-head > svg { flex: none; width: 15px; height: 15px; color: var(--a-ink2); }
.x-head b { min-width: 0; margin-right: auto; font-weight: 500; }
.x-head small { font-size: 12px; line-height: 16px; color: var(--a-ink2); white-space: nowrap; }

/* ----- rows that arrive (briefing, list) and the foot ----- */
.x-steps { margin: 0; padding: 0; list-style: none; }
.x-row { display: grid; grid-template-rows: var(--x-rows, 1fr); transition: grid-template-rows var(--x-d, var(--x-in)) var(--x-ease) var(--x-wait, 0s); }
.x-row > * { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 0; overflow: hidden; padding: 0 16px; box-shadow: inset 0 -1px 0 var(--a-line); font-size: 13.5px; line-height: 19px; }
.x-row > * > * { min-width: 0; margin-block: 13px; }
.x-row > * > :last-child:not(:first-child) { margin-left: auto; }   /* the chip or status goes to the right */
.x-n { flex: none; min-width: 14px; font-size: 15px; line-height: 19px; color: var(--forest, #003d20); font-variant-numeric: tabular-nums; }   /* a rank, in forest */
.x-steps:last-child > .x-row:last-child > * { box-shadow: none; }
html.x-ok .x-row > *, html.x-ok .x-foot > * { opacity: var(--x-on, 1); transform: translateY(calc((1 - var(--x-on, 1)) * 8px)); filter: blur(calc((1 - var(--x-on, 1)) * 3px));
  transition: opacity var(--x-d, var(--x-in)) var(--x-ease), transform var(--x-d, var(--x-in)) var(--x-ease), filter var(--x-d, var(--x-in)) var(--x-ease); transition-delay: calc(var(--x-wait, 0s) + var(--x-lag, .12s)); }
.x-two { display: flex; flex-direction: column; }
.x-two b { font-weight: 500; }
.x-two small { font-size: 12.5px; line-height: 17px; color: var(--a-ink2); }
.x-foot { display: grid; grid-template-rows: var(--x-rows, 1fr); border-radius: 0 0 11px 11px; background: var(--x-paper); transition: grid-template-rows var(--x-d, var(--x-in)) var(--x-ease); }
.x-foot--tint { background: var(--lime-tint, #eff8e2); }
.x-foot > * { min-height: 0; overflow: hidden; }
.x-foot > * > * { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 12px 16px; }

/* ----- the record ----- */
.x-rec { padding: 14px 16px; }
.x-rec-t { margin: 0; color: var(--a-ink2); text-wrap: pretty; }
.x-rec-t b { display: block; margin-bottom: 2px; font-size: 14.5px; line-height: 20px; font-weight: 500; color: var(--a-ink); }
.x-kv { display: grid; gap: 4px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--a-line); font-size: 12.5px; line-height: 17px; }
.x-kv > div { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 12px; }
.x-kv dt { color: var(--a-ink2); }
.x-kv dd { margin: 0; }

/* ----- the notification and its deck ----- */
.x-note { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 14px; container-type: inline-size; }
.x-note-h { display: flex; align-items: flex-start; gap: 9px; margin: 0; }
.x-note-h svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--a-ink2); }
.x-note-h b { flex: 1; min-width: 0; font-size: 14px; line-height: 18px; font-weight: 500; text-wrap: balance; }
.x-note-h > span { flex: none; font-size: 12px; line-height: 18px; color: var(--a-ink2); font-variant-numeric: tabular-nums; }
.x-note-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0; }
@container (max-width: 364px) {   /* a note narrower than 394 px: the signal under the company, the role beside its label, so three notes in a deck stay one height */
  .x-note-h b span { display: block; }
  .x-note-f .x-who { flex-direction: row; align-items: baseline; gap: 6px; }
}
.x-deck { display: grid; padding-top: 24px; }
.x-deck::before, .x-deck > * { grid-area: 1 / 1; min-width: 0; transform-origin: 50% 0; transition: transform var(--x-slow) var(--x-spring), opacity var(--x-slow) var(--x-spring); }
.x-deck::before { content: ""; border: 1px solid var(--a-line2); border-radius: 12px; background: #f4f2ee; transform: translateY(-24px) scale(.9); }   /* the edge of the ones still to come: a shade down, not see-through */
:is(.x-surf--paint, .h-panel) .x-deck::before { border-color: transparent; box-shadow: 0 0 0 1px rgba(36, 35, 32, .06); }
.x-deck > * { z-index: 1; opacity: 0; transform: translateY(-30px) scale(.86); }   /* out: behind that edge */
.x-deck > :nth-child(1), .x-deck[data-beat="2"] > :nth-child(2), .x-deck[data-beat="3"] > :nth-child(3) { z-index: 3; opacity: 1; transform: none; }   /* in front */
.x-deck > :nth-child(2), .x-deck[data-beat="2"] > :nth-child(3), .x-deck[data-beat="3"] > :nth-child(1) { z-index: 2; opacity: 1; transform: translateY(-12px) scale(.95); }   /* second */
.x-deck[data-beat="2"] > :nth-child(1), .x-deck[data-beat="3"] > :nth-child(2) { z-index: 1; opacity: 0; transform: translateY(-30px) scale(.86); }
html.x-ok .x-deck[data-beat="0"]::before, html.x-ok .x-deck[data-beat="0"] > :nth-child(2) { opacity: 0; transform: none; }   /* not dealt yet */

/* ----- the signal card: a timeline ----- */
.x-sig { padding: 13px 16px 8px; }
.x-sig-h { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 2px 12px; margin: 0; padding-bottom: 11px; border-bottom: 1px solid var(--a-line); font-size: 14.5px; line-height: 20px; }
.x-sig-h b { display: block; font-weight: 500; }
.x-sig-h small { display: block; margin-top: 1px; font-size: 12.5px; line-height: 17px; color: var(--a-ink2); }
.x-sig-h .x-status { margin-top: 2px; }
.x-tl { padding: 5px 0 0; }
.x-tl > li { position: relative; display: grid; grid-template-columns: var(--x-tl, 44px) 16px minmax(0, 1fr); column-gap: 10px; padding: 7px 0; }
.x-tl > li > small { font-size: 12px; line-height: 18px; text-align: right; color: var(--a-ink2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.x-tl > li > i { position: relative; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--a-line2); }
.x-tl > li > i::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--forest, #003d20); }
.x-tl > li > i::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 7px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.x-tl--lime > li > i::before { background: var(--lime, #e4ffc2); }   /* the other mark: a forest tick on lime */
.x-tl--lime > li > i::after { border-color: var(--forest, #003d20); }
.x-tl > li > p { margin: 0; font-weight: 500; }
.x-tl > li > p span { margin-left: 7px; font-size: 12px; font-weight: 400; color: var(--a-ink2); }
.x-tl > li > .x-more { grid-column: 3; }
.x-tl > li:not(:last-child)::after { content: ""; position: absolute; left: calc(var(--x-tl, 44px) + 17.25px); top: 24px; bottom: -8px; width: 1.5px;
  background: linear-gradient(var(--forest, #003d20), var(--forest, #003d20)) no-repeat var(--a-line2); background-size: 100% calc(var(--x-line, 1) * 100%); }
.x-more { display: grid; grid-template-rows: var(--x-rows, 1fr); transition: grid-template-rows var(--x-d, .35s) var(--x-ease); }
.x-more > * { min-height: 0; overflow: hidden; }
.x-more > * > * { margin-top: 8px; padding: 8px 10px; border-radius: 4px; background: var(--x-stone); }
/* the line from a step to the next one is drawn when the next one is done */
html.x-ok :is([data-xseq], [data-hseq]):is([data-beat="0"], [data-beat="1"]) .x-tl > li,
html.x-ok :is([data-xseq], [data-hseq])[data-beat="2"] .x-tl > li:nth-child(n+2),
html.x-ok :is([data-xseq], [data-hseq])[data-beat="3"] .x-tl > li:nth-child(n+3),
html.x-ok :is([data-xseq], [data-hseq])[data-beat="4"] .x-tl > li:nth-child(n+4),
html.x-ok :is([data-xseq], [data-hseq])[data-beat="5"] .x-tl > li:nth-child(n+5) { --x-line: 0; }
html.x-ok .x-tl > li::after { transition: background-size var(--x-d, .35s) var(--x-draw); }
html.x-ok .x-tl > li > small { opacity: calc(.5 + .5 * var(--x-on, 1)); transition: opacity var(--x-base) var(--x-ui); }
html.x-ok .x-tl > li > p { opacity: calc(.42 + .58 * var(--x-on, 1)); transition: opacity var(--x-base) var(--x-ui); }
html.x-ok .x-tl > li > i::before { opacity: var(--x-on, 1); transition: opacity var(--x-d, var(--x-base)) var(--x-ui) calc(.15s * var(--x-on, 1)); }
html.x-ok .x-tl > li > i::after { transform: rotate(45deg) scale(var(--x-on, 1)); transition: transform var(--x-d, .35s) var(--x-ease) calc(.15s * var(--x-on, 1)); }
html.x-ok .x-more > * { opacity: var(--x-on, 1); transition: opacity var(--x-d, .35s) var(--x-ease); }

/* ----- the account card: chips, then the verdict ----- */
.x-chips { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; min-height: calc(var(--x-chips-h, 62px) + 24px); padding: 12px 16px; }
.x-chips .x-chip { height: 28px; padding: 0 10px 0 8px; color: var(--a-ink); font-size: 12.5px; font-weight: 400; }
.x-chips .x-chip svg { color: var(--a-ink2); }
html.x-ok .x-chips > * { opacity: var(--x-on, 1); transform: translateX(calc((1 - var(--x-on, 1)) * 28px)) scale(calc(.9 + .1 * var(--x-on, 1))); transition: opacity var(--x-d, .55s) var(--x-spring), transform var(--x-d, .55s) var(--x-spring); }
.x-acct-f { display: grid; align-items: center; margin: 0; padding: 10px 16px 12px; border-top: 1px solid var(--a-line); }
.x-acct-f > * { grid-area: 1 / 1; justify-self: start; }
.x-now { display: inline-flex; align-items: center; gap: 7px; color: var(--a-ink2); opacity: 0; transition: opacity var(--x-base) var(--x-ease); }
.x-now svg { flex: none; width: 13px; height: 13px; }
html.x-ok :is([data-xseq], [data-hseq]):not([data-done]) .x-now { opacity: 1; }
html.x-ok :is([data-xseq], [data-hseq]):not([data-done]) .x-now svg { animation: x-spin 1.2s linear infinite; }
@keyframes x-spin { to { transform: rotate(360deg); } }

/* ----- sources into a list ----- */
.x-feed { container-type: inline-size; }
.x-srcs { display: grid; grid-template-columns: repeat(var(--x-cols, 4), minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
@container (max-width: 430px) { .x-srcs { grid-template-columns: repeat(var(--x-cols-m, 3), minmax(0, 1fr)); } }
@container (max-width: 340px) { .x-srcs { grid-template-columns: repeat(var(--x-cols-s, 2), minmax(0, 1fr)); } }
.x-srcs > * { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 30px; padding: 0 7px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px var(--a-line2); color: var(--a-ink); font-size: 12.5px; line-height: 16px; white-space: nowrap; }
.x-surf--paint .x-srcs > * { box-shadow: 0 1px 2px rgba(20, 18, 14, .16), 0 0 0 1px rgba(36, 35, 32, .06); }
.x-srcs svg { flex: none; width: 13px; height: 13px; color: var(--a-ink2); }
.x-srcs span { overflow: hidden; text-overflow: ellipsis; }
.x-srcs > :nth-child(2) { --i: 1; } .x-srcs > :nth-child(3) { --i: 2; } .x-srcs > :nth-child(4) { --i: 3; } .x-srcs > :nth-child(5) { --i: 4; } .x-srcs > :nth-child(6) { --i: 5; }
.x-srcs > :nth-child(7) { --i: 6; } .x-srcs > :nth-child(8) { --i: 7; } .x-srcs > :nth-child(9) { --i: 8; } .x-srcs > :nth-child(10) { --i: 9; } .x-srcs > :nth-child(11) { --i: 10; } .x-srcs > :nth-child(12) { --i: 11; }
html.x-ok .x-srcs > * { transition: background-color var(--x-base) ease, color var(--x-base) ease; transition-delay: calc(var(--i, 0) * 175ms); }
html.x-ok .x-feed:not(.is-in) .x-srcs > * { background-color: rgba(255, 255, 255, .3); color: var(--x-mute); }
.x-lines { display: flex; justify-content: center; gap: 22px; height: 30px; }
.x-lines i { width: 1.5px; background: linear-gradient(rgba(36, 35, 32, .3), rgba(36, 35, 32, .3)) no-repeat; background-size: 100% 100%; }
.x-lines i:nth-child(2) { --i: 1; } .x-lines i:nth-child(3) { --i: 2; }
html.x-ok .x-lines i { transition: background-size .5s var(--x-draw); transition-delay: calc(var(--n, 12) * 175ms + var(--i, 0) * 80ms); }
html.x-ok .x-feed:not(.is-in) .x-lines i { background-size: 100% 0; }
.x-feed .x-steps > * { --x-wait: calc(var(--n, 12) * 175ms + 1.2s); }
.x-feed .x-steps > :nth-child(2) { --x-wait: calc(var(--n, 12) * 175ms + 1.8s); }
.x-feed .x-steps > :nth-child(3) { --x-wait: calc(var(--n, 12) * 175ms + 2.4s); }
.x-feed .x-steps > :nth-child(4) { --x-wait: calc(var(--n, 12) * 175ms + 3s); }

/* ---------- home hero: the card of the tour's last beat ----------
   Michiel, 19 Nov: "i dont like the size of the green block and the like next to hallmeer". Of the three cards built
   that day he picked C, the account's timeline (a kit signal card, x-sig), and that is the card now. It sits bottom
   right, its top edge 144 px above the window's bottom edge, so the receipt opens downwards and the card stays inside
   the painting (the old record ran 13 px over the edge on a 700 px high screen). The tour (variant-h.js) runs the
   card's own beats from data-hseq. */
.h-pop { position: absolute; right: 0; top: calc(100% - 144px); z-index: 2; width: min(86%, 404px); opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .6s var(--a-ease); }   /* right edge on the window's right edge: the old card hung 3% out, 12 px from the painting's edge */
.h-tour[data-beat="3"] .h-pop { opacity: 1; transform: none; transition-delay: .25s; }
@media (max-width: 900px) {   /* under the window, in the flow: there from the start (dimmed), and never changing height */
  .h-pop { position: relative; right: auto; top: auto; width: auto; max-width: 480px; margin: 10px 0 0 auto; opacity: 1; transform: none; }
  .h-tour:is([data-beat="0"], [data-beat="1"], [data-beat="2"]) .h-pop { opacity: .35; }
  .h-pop :is(.x-row, .x-more, .x-foot) { grid-template-rows: 1fr; }
}
/* Michiel, 21 Nov evening: "with the hallmeer block, please zoom in to the block in step 3 with slight fading of the
   rest". On the last beat the card comes in larger (scaled around its centre and moved in from the painting's edge)
   and the window's content behind it fades. Zooming the whole window instead pushed its top under the step buttons.
   On phones and tablets the card sits under the window at full width, so there it only gets the fade (a 4% zoom put
   it 4 to 7 px from the painting's edge). A picked step 3, a tour at rest, reduced motion and a page without script
   show it still. */
.h-main > * { transition: opacity .6s ease; }
.h-tour[data-beat="3"] .h-pop { transform: translate(-24px, -36px) scale(1.12); }
.h-tour[data-beat="3"] .h-main > * { opacity: .5; transition-delay: .25s; }
@media (max-width: 900px) { .h-tour[data-beat="3"] .h-pop { transform: none; } }
@media (prefers-reduced-motion: reduce) { .h-main > * { transition: none; } }
/* the table's names were cut at 390 px ("Brakmoor Packag...") and from 901 to about 960 px, with room to spare in the signal column */
@media (max-width: 480px) { .h-tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); } }
@media (max-width: 380px) { .h-tr { gap: 8px; font-size: 13px; } .h-chip { padding: 0 8px; font-size: 11.5px; } }
@media (min-width: 901px) and (max-width: 1023px) { .h-tr { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.08fr); gap: 8px; } }
