/* The story under the street in one column, "la plongée" on a phone, a tablet held upright, a narrow window
   (src/app/street/strip.ts, story.ts; docs/decisions/2026-11-19-app-bar-home-list.md). A laptop reads the same story
   beside its stage (public/app/street-stage.css).

   Named by the street's page for every screen that is not a laptop's (`media`: COLUMN in src/app/ui/laptop.ts, said
   again below): there it is the one stylesheet the story adds before the first paint, and a laptop never waits for it.
   Built on public/app/app.css, public/app/street.css and public/app/answers.css (which the script puts to use when the
   story starts); it adds no token and writes no colour.

   The street is the first screen, whole; the page goes on into the story of the car in the middle: the car docked in
   a slim strip under the top bar (its picture, its name, what it asks, the steps to the cars on each side, the five
   questions as five segments), its head, its five answers one after the other, each with its picture under its words,
   then the way on. Nothing floats over what is read, nothing scrolls inside another thing.

   Where the browser can tie a movement to the scroll and motion is welcome, the way down holds the first screen once
   it has been seen whole, lets it go, then carries the car into the strip (the second block below). Elsewhere, under
   reduced motion, and on a screen too low for the strip, the story is plain sections: the strip simply comes in once
   the first screen has gone (none on a low screen). */

@media not all and (min-width: 1024px) and (min-height: 540px) and (hover: hover) and (pointer: fine) {
  /* The way in under the car is the way down into the story ("Tout savoir sur …"), the same link. */
  :root[data-story] .st-go > :is(.st-go-in, .ic:nth-last-child(2)) { display: none; }
  :root[data-story] .st-go > :is(.st-go-dive, .ic:last-child) { display: block; }

  /* The strip's measures, known to the whole street: the way down counts with its height (below). */
  :root[data-story] .st { --ps-row: 56px; --ps-segs: 26px; --ps-h: calc(var(--ps-row) + var(--ps-segs)); }
  /* The room: the strip at its top, then one column at a reading measure, on its own paper (it rises over the first
     screen, which holds while it lets go). The strip's place is kept from the first paint, before the script writes it. */
  :root[data-story] .pl {
    /* A chapter as the answers usually make it, for the room kept while they are on their way. */
    --ps-ch: calc(290px + 24vw);
    position: relative; z-index: 1; display: block; padding-top: var(--ps-h); padding-bottom: var(--sp-7);
    background: linear-gradient(transparent var(--ps-h), var(--paper) var(--ps-h));
    overflow-anchor: none; scroll-margin-top: -12px;
  }
  :root[data-story] .pl:has(> .ps) { padding-top: 0; }
  :root[data-story] :is(.pl-stage, .pl-index) { display: none; }
  /* The story ends with its last line: the strip, held under the bar within the story, lets go as that line comes up
     to it, and goes up with it, before what follows the story (the page's foot) reaches it. */
  .pl-chapters { max-width: var(--measure); margin: 0 auto; padding: 0 var(--pad); }

  /* ── The strip, under the top bar once the car has landed ── */
  .ps { --ps-mm: 0.0165px; position: sticky; top: var(--bar-h); z-index: 3; pointer-events: none; }
  .st[data-landed] .ps { pointer-events: auto; }
  /* Its paper, and under it a short fade of paper: what passes under the strip dissolves. Both come once it holds. */
  .ps::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper); opacity: 0; transition: opacity var(--calm) var(--ease); }
  .ps::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 22px; background: linear-gradient(var(--paper), color-mix(in srgb, var(--paper) 0%, transparent)); opacity: 0; pointer-events: none; }
  .st[data-landed] .ps::before { opacity: 1; }
  .st[data-landed] .ps::after { opacity: 1; transition: opacity var(--calm) var(--ease); }
  .ps-row { display: flex; align-items: center; gap: 4px; max-width: var(--measure); height: var(--ps-row); margin: 0 auto; padding: 0 calc(var(--pad) - 6px) 0 calc(var(--pad) - 4px); }
  /* The car and its name: a way back up to the street. */
  .ps-car { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; min-width: 0; height: 48px; padding: 0 6px 0 4px; border-radius: var(--r-m); color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .ps-car:focus-visible { outline-offset: -2px; }
  /* The picture's place, one width whatever the car: the car stands in its middle, on its foot. The car itself is drawn
     at the street's scale and made smaller (`--ps-s`, strip.ts): on its way down it is the street's very car. */
  .ps-pic { position: relative; flex: none; width: 78px; height: 40px; }
  .ps-big { position: absolute; left: 50%; bottom: 0; display: flex; align-items: flex-end; translate: -50% 0; transform: scale(var(--ps-s, 0.33)); transform-origin: 50% 100%; }
  /* A car with nothing to show (neither a picture nor measures to draw it from: ui/car.ts) leaves no hole: its name
     starts the strip, on the page's gutter. */
  .ps-pic:has(.is-nothing) { display: none; }
  .ps-who { display: grid; gap: 2px; min-width: 0; }
  .ps-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 750 1.0625rem/1.15 var(--display); letter-spacing: -0.017em; }
  .ps-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 0.75rem/1.2 var(--body); color: var(--soft); font-variant-numeric: tabular-nums; }
  /* The steps to the cars on each side, 44 px each; at an end the step is faint and leads nowhere. */
  .ps-steps { flex: none; display: flex; }
  .ps-step { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); -webkit-tap-highlight-color: transparent; }
  .ps-step > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1.5px var(--line), var(--lift-1); transition: scale var(--quick); }
  .ps-step .ic { width: 18px; height: 18px; }
  .ps-step:active > span { scale: 0.9; }
  .ps-step:focus-visible { border-radius: 50%; outline-offset: -2px; }
  .ps-step.is-end { color: var(--faint); }
  .ps-step.is-end > span { background: none; box-shadow: 0 0 0 1.5px var(--line); }
  /* The five questions, five segments across the width: the one being read in ink, the others soft; each a way to its
     chapter, as tall as a finger needs. Not yellow: yellow is the car held. */
  .ps-segs { display: flex; gap: 6px; max-width: var(--measure); height: var(--ps-segs); margin: 0 auto; padding: 0 var(--pad); }
  .ps-seg { flex: 1 1 0; display: grid; align-items: center; min-width: 0; -webkit-tap-highlight-color: transparent; }
  .ps-seg::before { content: ""; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 16%, transparent); transition: background-color var(--quick); }
  .ps-seg[aria-current]::before { background: var(--ink); }
  .ps-seg:focus-visible { outline-offset: -1px; }
  /* What stays in view is in view: the keyboard coming to the strip leaves the page where it is (app.css says why, of the
     bar); a control of the chapters is brought into view under the strip, never under it. */
  .ps :is(a, button) { scroll-margin: -16px 0 16px; }
  /* What the frame says briefly (a car held, a car kept) is said under the strip once the car has landed, never over it. */
  .app:has(#st[data-landed]) > .toast { top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 96px); }
  #pl-chapters :is(a, button, summary, [tabindex]) { scroll-margin-top: calc(var(--ps-h) + 12px); }

  /* Until the car has landed the strip says nothing (its place rises with the story): it comes in as the first screen
     goes, at once under reduced motion (below). Where the way down is tied to the scroll, the scroll brings it (below). */
  .ps :is(.ps-big, .ps-who, .ps-steps, .ps-segs) { opacity: 0; transition: opacity var(--calm) var(--ease); }
  .st[data-landed] .ps :is(.ps-big, .ps-who, .ps-steps, .ps-segs) { opacity: 1; }

  /* ── The car's head: what the strip does not say (its facts, a promotion, against the car held its signed chips; the
     sentence that repeats them is a screen reader's, strip.ts), then its acts ── */
  .pl .pk { display: flex; flex-direction: column; align-items: flex-start; padding-top: 24px; }
  .pl .pk-name { font: 600 0.78125rem/1.3 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); text-wrap: balance; font-variant-numeric: tabular-nums; }
  .pl .pk-name:focus { outline: none; }
  .pl .pk-go { color: inherit; text-decoration: none; }
  .pl .pk-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 8px; }
  .pl .pk-price .price b { font: 800 2.25rem/1 var(--display); letter-spacing: -0.034em; }
  .pl .pk-list { font: 500 0.84375rem/1.2 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
  .pl .pk-facts { font: 500 1rem/1.4 var(--body); color: var(--ink); }
  .pl .pk-more { margin-top: 2px; font-size: 0.875rem; line-height: 1.4; color: var(--soft); text-wrap: balance; }
  .pl .pk-more s { font: 500 0.78125rem/1 var(--label); font-variant-numeric: tabular-nums; }
  .pl .pk-gaps { order: 4; margin-top: 14px; }
  .pl .pk-acts { order: 5; display: flex; gap: 8px; width: 100%; margin-top: 18px; }
  .pl .pk-acts .btn { min-height: 48px; padding: 8px 16px; white-space: nowrap; }
  .pl .pk-acts > .btn:first-child:not(.pk-pin) { flex: 1 1 auto; min-width: 0; }
  .pl .pk-pin { flex: none; width: 48px; padding: 0; border-radius: 50%; }
  .pl .pk-acts [data-keep][aria-pressed="true"] .ic { --ic-in: var(--paint); color: var(--ink); }
  .pl .pk-acts .btn-line[aria-pressed="true"] { background: none; color: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

  /* ── The answers, one after the other, numbers first: its number, its question in the voice, its figure (against
     the car held, what changes as signed chips: they are the statement), what it is made of as figures (the card's own
     facts row, label over number), then its picture under them. Its sentence stays for a screen reader, as on a car
     page's card; one short line shows only where no figure can say it (a verdict, a fact the source does not give), its
     figures set apart (strip.ts). Calm, not empty: the next chapter follows. ── */
  .pl .dp { display: block; }
  .pl .dp-aside { margin-top: 24px; max-width: 36.5em; font: 400 0.9375rem/1.3 var(--voice); text-wrap: pretty; letter-spacing: -0.005em; }
  .pl .dp-answers, .pl .dp-answers > .answers { display: block; counter-reset: ps-chapter; }
  .pl .answer.is-compact { padding: 44px 0 0; border-radius: 0; background: none; box-shadow: none; counter-increment: ps-chapter; }
  .pl .answer.is-compact::before { content: counter(ps-chapter, decimal-leading-zero); display: block; margin-bottom: 12px; font: 600 0.78125rem/1 var(--label); letter-spacing: 0.06em; color: var(--soft); font-variant-numeric: tabular-nums; }
  .pl .answer.is-compact .answer-q { font: 500 1.25rem/1.12 var(--voice); color: var(--soft); letter-spacing: -0.01em; }
  .pl .answer.is-compact .answer-q:focus { outline: none; }
  .pl .answer.is-compact .a-figline { margin-top: 10px; }
  .pl .answer.is-compact .answer-fig { margin: 0; font: 800 clamp(2.25rem, 11.5vw, 3.25rem)/0.98 var(--display); letter-spacing: -0.038em; }
  .pl .answer.is-compact .answer-fig small { font: 600 0.9375rem/1.2 var(--body); letter-spacing: 0; color: var(--soft); }
  .pl .answer.is-compact .answer-fig :is(.a-fig-words, .a-fig-end) { font-size: inherit; }
  .pl .answer.is-compact .answer-fig.is-unknown { font-size: clamp(1.5rem, 7.5vw, 2rem); }
  .pl .answer.is-compact [data-slot="face"] .gap { min-height: 30px; padding: 3px 12px; font-size: 0.875rem; }
  /* What it is made of, as figures: the app's facts row, its figures a size up. Not twice: what its picture says again
     steps aside (the plan's down payment and length, the addition's lines: `is-again`), and the steps around a version
     are the versions' row itself. */
  .pl .answer.is-compact .a-facts { margin-top: 16px; }
  .pl .answer.is-compact .a-facts .fact-f { font-size: 1.0625rem; }
  .pl .answer.is-compact .fact.is-again { display: none; }
  .pl .answer.is-compact .a-facts:not(:has(.fact:not(.is-again))) { display: none; }
  .pl .answer.is-compact[data-answer="versions"]:has(> .a-pic) .a-facts { display: none; }
  /* One short line, only where no figure can say it; a fact the source does not give says why the figure is unknown. */
  .pl .answer.is-compact :is(.a-line, .answer-say) { max-width: 36.5em; margin-top: 14px; font: 400 0.9375rem/1.3 var(--voice); color: var(--ink); text-wrap: pretty; letter-spacing: -0.005em; }
  .pl .answer.is-compact.is-unknown:not(:has(.a-line)) .answer-say.vh { position: static; width: auto; height: auto; margin: 14px 0 0; overflow: visible; clip-path: none; white-space: normal; }
  .pl :is(.a-line, .answer-say, .dp-aside, .a-aside) .ps-fig { font: 750 1em/1 var(--display); letter-spacing: -0.017em; }
  .pl .answer.is-compact .a-aside { margin-top: 14px; }
  .pl .answer.is-compact > .a-pic { margin-top: 18px; }

  /* Each answer's own picture, as a laptop's stage shows it: only illustrating (the words above say it all), so
     nothing in it opens or leads elsewhere. The steps around this version: the one below, this one, the one above,
     this one marked in ink (yellow stays the car held's). */
  .pl .a-pic .a-plan { padding: 16px 16px 14px; }
  .pl .a-pic .a-plan-stop b { font-size: 1.0625rem; }
  .pl .a-pic :is(.a-engine-more, .a-rise > p, .a-step-card .ic, .a-step-here) { display: none; }
  .pl .a-pic .a-rise > summary::after { content: none; }
  .pl .a-pic .a-step.is-here .a-step-card { box-shadow: inset 0 -4px 0 var(--ink); }
  .pl .a-pic .a-steps > .a-step { display: none; }
  .pl .a-pic .a-steps > :is(.a-step.is-here, .a-step:has(+ .a-step.is-here), .a-step.is-here + .a-step) { display: block; }

  /* ── The way on: the car's own page, its versions side by side, where the figures come from ── */
  .pl .dp-acts { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding-top: 48px; }
  .pl .dp-acts .btn { min-height: 52px; justify-content: center; }
  .pl .dp > .whence { margin-top: 10px; }

  /* ── The answers on their way: a quiet skeleton, as tall as what comes; could not be fetched: said, the room kept ── */
  .pl #st-depth { position: relative; }
  .pl .st-wait { display: grid; align-content: start; gap: 14px; padding-top: 56px; }
  .pl #st-depth > .st-wait { min-height: calc(var(--ps-ch) * 5 + 200px); }
  .pl .dp-answers > .st-wait { min-height: calc(var(--ps-ch) * 5); }
  .pl .st-wait i { display: block; height: 14px; border-radius: 7px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
  .pl .st-wait i:nth-of-type(1) { width: 30%; }
  .pl .st-wait i:nth-of-type(2) { width: 68%; height: 40px; border-radius: 10px; }
  .pl .st-wait i:nth-of-type(3) { width: 84%; }
  .pl .dp-answers > .st-fail { display: grid; align-content: start; justify-items: start; gap: 16px; min-height: calc(var(--ps-ch) * 5); padding-top: 44px; }
  .pl .st-fail p { max-width: 31em; font: 400 1.0625rem/1.26 var(--voice); text-wrap: pretty; letter-spacing: -0.005em; }
  .pl .st-fail b { font-weight: inherit; }
  .pl .st-fail .btn { min-height: 48px; padding: 8px 22px; }
  /* Where each answer will stand, by its address (story.ts, `storyMarks`: the marks the laptop's story uses too): an
     address that names one opens there, under the strip. Where the answers are on their way again (another car's),
     the marks stand in their skeleton. */
  .pl .dp-answers { position: relative; }
  .pl-mark { position: absolute; left: 0; top: calc(var(--ps-ch) * var(--k)); width: 1px; height: 1px; visibility: hidden; pointer-events: none; scroll-margin-top: calc(var(--ps-h) - 12px); }

  /* A screen too low for the strip (a phone on its side): plain sections, nothing sticks but the bar; the car's head
     says its name and its price itself. */
  @media (max-height: 479.98px) {
    :root[data-story] .pl { padding-top: 0; background: none; }
    .ps { display: none; }
    #pl-chapters :is(a, button, summary, [tabindex]) { scroll-margin-top: 0; }
    .pl-mark { scroll-margin-top: 0; }
  }
}

/* The way down, where the browser can tie a movement to the scroll, motion is welcome and the strip has room. Once the
   first screen has been seen whole (`--ps-a`: what of it stands under the fold at rest, strip.ts), it HOLDS: pinned under
   the top bar while its words fade where they stand (its first two thirds) and the cars on each side give way sideways,
   whole (the whole hold, about a third of a screen of scroll: on a phone the cars on each side are slivers, and a longer
   hold was a screen left empty). The car does not move then. Then it travels up into the strip, at the pace of the
   scroll, smaller as it goes, while the story's head rises under it, and lands as the strip's picture; the strip's
   name and steps come as it lands. The head's first words come into view as the last of the first screen's go
   (`--ps-rise`): never over them, and never a screen that holds the car alone. The travel is then what the head needs
   to cross the screen, whatever the pace. The owner's pace (`--pl-pace`: 1.4, 1, 0.7) scales the hold, and the time of
   the way down by its button. The story keeps the room the way takes from the first paint, so that nothing
   moves when the script has measured it. Back up, the same in reverse. */
@supports (animation-timeline: scroll()) {
  @media not all and (min-width: 1024px) and (min-height: 540px) and (hover: hover) and (pointer: fine) {
    @media (min-height: 480px) and (prefers-reduced-motion: no-preference) {
      :root[data-story] .st {
        /* The hold; the room between the first screen and the story (the story's first words, under the place kept
           for the strip, come into view as the first screen's words have gone: two thirds of the hold); and the
           travel, which ends as the story lands. */
        --ps-hold: calc(36svh * var(--pl-pace, 1));
        --ps-vis: calc(100svh - var(--bar-h) - env(safe-area-inset-top, 0px) - var(--held-h));
        --ps-rise: max(0px, calc(var(--ps-hold) * 0.66 - var(--ps-h)));
        --ps-go: calc(var(--ps-vis) - var(--ps-hold) + var(--ps-rise));
        --ps-off: calc(var(--ps-a, 0px) + var(--ps-hold));
        --ps-in: calc(var(--ps-off) + var(--ps-go));
      }
      /* The room the way takes: the story lands when the car does. */
      :root[data-story] .pl { margin-top: var(--ps-rise); }
      /* The first screen holds where it stands, from the moment it has been seen whole until the car has landed. */
      :root[data-story] .st-first { animation: ps-hold linear both; animation-timeline: scroll(root block); animation-range: var(--ps-a, 0px) var(--ps-in); }
      /* Its words go where they stand: the make, the name, the price, the figures or the chips, the acts, the
         neighbours' names, the top row, the road; the light and the ground line under the car. Whole layers. What a
         first visit's welcome brings in is the layers themselves: what goes here is what they hold. */
      :root[data-story] :is(.st-top, .st-wall, .st-price, .st-nears, .st-info, .st-road) > * { animation: ps-fade linear both; animation-timeline: scroll(root block); animation-range: var(--ps-a, 0px) calc(var(--ps-a, 0px) + var(--ps-hold) * 0.66); }
      :root[data-story] .st-view::before, :root[data-story] .st-view::after { animation: ps-dim linear both; animation-timeline: scroll(root block); animation-range: var(--ps-a, 0px) calc(var(--ps-a, 0px) + var(--ps-hold) * 0.66); }
      /* The cars on each side give way sideways, whole, faster and faster, through the street's soft edges: those before
         the car to the left, those after it to the right (the car in the middle's siblings that follow it say which). */
      :root[data-story] .st-slot:not(.is-here, .is-here ~ .st-slot) > * { animation: ps-part-start cubic-bezier(0.5, 0, 0.9, 0.6) both; animation-timeline: scroll(root block); animation-range: var(--ps-a, 0px) var(--ps-off); }
      :root[data-story] .st-slot.is-here ~ .st-slot > * { animation: ps-part-end cubic-bezier(0.5, 0, 0.9, 0.6) both; animation-timeline: scroll(root block); animation-range: var(--ps-a, 0px) var(--ps-off); }
      :root[data-story] .st-slot.is-held:not(.is-here, .is-here ~ .st-slot)::after { animation: ps-paint-start cubic-bezier(0.5, 0, 0.9, 0.6) both; animation-timeline: scroll(root block); animation-range: var(--ps-a, 0px) var(--ps-off); }
      :root[data-story] .st-slot.is-here ~ .st-slot.is-held::after { animation: ps-paint-end cubic-bezier(0.5, 0, 0.9, 0.6) both; animation-timeline: scroll(root block); animation-range: var(--ps-a, 0px) var(--ps-off); }
      /* Once the car has set off the street takes no finger: a stroke sideways there moves the page, not the cars. */
      :root[data-story] .st-street { animation: ps-still step-end both; animation-timeline: scroll(root block); animation-range: var(--ps-off) calc(var(--ps-off) + 1px); }
      /* The car travels (measured: `data-strip`, strip.ts): at the end of the hold the strip's car takes over from the
         street's, in one frame and where it stands (the two are the same picture at the same size), then goes up into
         the strip at the pace of the scroll, smaller as it goes. */
      .st[data-strip] .ps-big { animation: ps-go linear both, ps-take step-end both; animation-timeline: scroll(root block), scroll(root block); animation-range: var(--ps-off) var(--ps-in), var(--ps-off) calc(var(--ps-off) + 1px); }
      .st[data-strip] .st-slot.is-here .carfig, .st[data-strip] .st-slot.is-here.is-held::after { animation: ps-give step-end both; animation-timeline: scroll(root block); animation-range: var(--ps-off) calc(var(--ps-off) + 1px); }
      /* The strip's paper, its name and steps, its five questions, come as the car lands. */
      .st[data-strip] .ps :is(.ps-who, .ps-steps, .ps-segs), .st[data-strip] .ps::before { animation: ps-appear linear both; animation-timeline: scroll(root block); animation-range: calc(var(--ps-in) - var(--ps-go) * 0.14) var(--ps-in); }
      /* Until it has landed, what cannot be seen yet cannot be taken. */
      .st[data-strip]:not([data-landed]) .ps { pointer-events: none; }
      /* The story's head rises under the car as it travels; each answer rises as it comes into view, early, so that what
         is read is in full ink. What the keyboard is on is in full view. */
      :root[data-story] .pl .pk { animation: ps-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
      :root[data-story] .pl :is(.answer.is-compact, .dp-acts) { animation: ps-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
      :root[data-story] .pl :is(.pk, .answer.is-compact, .dp-acts):focus-within { animation: none; }
    }
  }
}
@keyframes ps-hold { to { transform: translateY(calc(var(--ps-hold) + var(--ps-go))); } }
/* What has faded half way stops taking the pointer: a tap never lands on something no longer seen. */
@keyframes ps-fade { to { opacity: 0; pointer-events: none; } }
@keyframes ps-dim { to { filter: opacity(0); } }
@keyframes ps-part-start { to { transform: translateX(-52vw); pointer-events: none; } }
@keyframes ps-part-end { to { transform: translateX(52vw); pointer-events: none; } }
@keyframes ps-paint-start { to { translate: -52vw 0; } }
@keyframes ps-paint-end { to { translate: 52vw 0; } }
@keyframes ps-still { to { pointer-events: none; } }
@keyframes ps-go {
  from { transform: translate(var(--ps-x, 0px), calc(var(--ps-y, 0px) + var(--ps-hold))) scale(1); }
  to { transform: translate(0px, 0px) scale(var(--ps-s, 0.33)); }
}
@keyframes ps-take { from { opacity: 0; } to { opacity: 1; } }
@keyframes ps-give { from { opacity: 1; } to { opacity: 0; } }
/* From nothing to full ink: what comes as the car lands is hidden at rest (the plain story shows it once landed). */
@keyframes ps-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes ps-rise { from { opacity: 0; translate: 0 18px; } }

@media not all and (min-width: 1024px) and (min-height: 540px) and (hover: hover) and (pointer: fine) {
  @media (prefers-reduced-motion: reduce) {
    .ps :is(.ps-big, .ps-who, .ps-steps, .ps-segs), .ps::before, .ps::after, .ps-step > span, .ps-seg::before { transition: none; }
    .ps-step:active > span { scale: 1; }
  }

  /* Another car while the story is read, by the strip's steps or a key: one change of the strip and of the chapters in
     view (src/app/street/dock.ts). What changes goes, then comes, never both at once: the old words in 70 ms, the new
     in ink by 300 ms; the strip's name and car quicker, readable within a sixth of a second, the car leaving toward the
     side the street moves; the figures count from the old car's to the new one's; the chapter being read keeps its
     place. Only the strip and what is in view take part: the page itself is not captured, and the chapters' parts are
     drawn under the strip, never over it. */
  @media (prefers-reduced-motion: no-preference) {
    .st[data-landed][data-switching] .ps { view-transition-name: ps-strip; view-transition-class: dock dock-still; }
    .st[data-landed][data-switching][data-car-change] .ps-who { view-transition-name: ps-who; view-transition-class: dock ps-words; }
    .st[data-landed][data-switching][data-car-change] .ps-pic { view-transition-name: ps-pic; view-transition-class: dock ps-move; }
    .st[data-landed][data-switching] .pl[data-chapter="intro"] .pk-facts { view-transition-name: dock-facts; }
    .st[data-landed][data-switching] .pl[data-chapter="intro"] .pk-more { view-transition-name: dock-more; }
    .st[data-landed][data-switching] .pl[data-chapter="intro"] .pk-gaps { view-transition-name: dock-voice; }
    .st[data-landed][data-switching] .pl[data-chapter="intro"] .pk-acts { view-transition-name: dock-acts; }
    .st[data-landed][data-switching] .pl[data-chapter="intro"] .dp-aside { view-transition-name: dock-aside; }
    .st[data-landed][data-switching] .pl[data-chapter="intro"] :is(.pk-facts, .pk-more, .pk-gaps, .dp-aside) { view-transition-class: dock dock-words; }
    .st[data-landed][data-switching] .pl[data-chapter="intro"] .pk-acts { view-transition-class: dock dock-still; }
    /* The answer being read and those on each side of it (the first two under the car's head while the head is read):
       the card stays and its figure counts; its chips, its facts, its line and its picture change. Under the head they
       glide to their place when the other car's head is taller or shorter, as one with the change. */
    .st[data-landed][data-switching] .answer[data-answer="month"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) { view-transition-name: dock-month; }
    .st[data-landed][data-switching] .answer[data-answer="month"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) [data-slot="face"] { view-transition-name: dock-month-face; }
    .st[data-landed][data-switching] .answer[data-answer="month"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) [data-slot="facts"] { view-transition-name: dock-month-facts; }
    .st[data-landed][data-switching] .answer[data-answer="month"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) > :is([data-slot="line"], [data-slot="say"]:not([data-slot="line"] ~ *)) { view-transition-name: dock-month-say; }
    .st[data-landed][data-switching] .answer[data-answer="month"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) > .a-pic { view-transition-name: dock-month-pic; }
    .st[data-landed][data-switching] .answer[data-answer="drive-away"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) { view-transition-name: dock-away; }
    .st[data-landed][data-switching] .answer[data-answer="drive-away"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) [data-slot="face"] { view-transition-name: dock-away-face; }
    .st[data-landed][data-switching] .answer[data-answer="drive-away"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) [data-slot="facts"] { view-transition-name: dock-away-facts; }
    .st[data-landed][data-switching] .answer[data-answer="drive-away"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) > :is([data-slot="line"], [data-slot="say"]:not([data-slot="line"] ~ *)) { view-transition-name: dock-away-say; }
    .st[data-landed][data-switching] .answer[data-answer="drive-away"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) > .a-pic { view-transition-name: dock-away-pic; }
    .st[data-landed][data-switching] .answer[data-answer="fits"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) { view-transition-name: dock-fits; }
    .st[data-landed][data-switching] .answer[data-answer="fits"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) [data-slot="face"] { view-transition-name: dock-fits-face; }
    .st[data-landed][data-switching] .answer[data-answer="fits"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) [data-slot="facts"] { view-transition-name: dock-fits-facts; }
    .st[data-landed][data-switching] .answer[data-answer="fits"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) > :is([data-slot="line"], [data-slot="say"]:not([data-slot="line"] ~ *)) { view-transition-name: dock-fits-say; }
    .st[data-landed][data-switching] .answer[data-answer="fits"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) > .a-pic { view-transition-name: dock-fits-pic; }
    .st[data-landed][data-switching] .answer[data-answer="has"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) { view-transition-name: dock-has; }
    .st[data-landed][data-switching] .answer[data-answer="has"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) [data-slot="face"] { view-transition-name: dock-has-face; }
    .st[data-landed][data-switching] .answer[data-answer="has"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) [data-slot="facts"] { view-transition-name: dock-has-facts; }
    .st[data-landed][data-switching] .answer[data-answer="has"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) > :is([data-slot="line"], [data-slot="say"]:not([data-slot="line"] ~ *)) { view-transition-name: dock-has-say; }
    .st[data-landed][data-switching] .answer[data-answer="has"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) > .a-pic { view-transition-name: dock-has-pic; }
    .st[data-landed][data-switching] .answer[data-answer="versions"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) { view-transition-name: dock-versions; }
    .st[data-landed][data-switching] .answer[data-answer="versions"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) [data-slot="face"] { view-transition-name: dock-versions-face; }
    .st[data-landed][data-switching] .answer[data-answer="versions"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) [data-slot="facts"] { view-transition-name: dock-versions-facts; }
    .st[data-landed][data-switching] .answer[data-answer="versions"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) > :is([data-slot="line"], [data-slot="say"]:not([data-slot="line"] ~ *)) { view-transition-name: dock-versions-say; }
    .st[data-landed][data-switching] .answer[data-answer="versions"]:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) > .a-pic { view-transition-name: dock-versions-pic; }
    .st[data-landed][data-switching] .answer:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) { view-transition-class: dock dock-still; }
    .st[data-landed][data-switching] .answer:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) :is([data-slot="face"], [data-slot="facts"]),
    .st[data-landed][data-switching] .answer:is([data-reading], :has(+ [data-reading]), [data-reading] + *, .pl[data-chapter="intro"] .answer:nth-child(-n+2)) > :is([data-slot="line"], [data-slot="say"]:not([data-slot="line"] ~ *), .a-pic) { view-transition-class: dock dock-words; }
    .st[data-landed][data-switching] :is(.st-wait, .st-fail) { view-transition-name: dock-wait; view-transition-class: dock dock-words; }
    .st[data-landed][data-switching] .pl:is([data-chapter="versions"], [data-chapter="end"]) .dp-acts { view-transition-name: dock-links; view-transition-class: dock dock-words; }
    .st[data-landed][data-switching] .pl:is([data-chapter="versions"], [data-chapter="end"]) .dp > .whence { view-transition-name: dock-whence; view-transition-class: dock dock-still; }
    :root.is-docking, :root.is-docking .app > :is(.bar, .held) { view-transition-name: none; }
    /* What the frame says briefly while a change runs (a car held from the head) stays over the chapters' change. */
    :root.is-docking .app > .toast.is-on { view-transition-name: ps-toast; view-transition-class: dock dock-still; }
    /* What takes part is drawn under the top bar, as the page itself is, never over it. */
    :root.is-docking::view-transition { pointer-events: none; clip-path: inset(var(--bar-h) 0 0 0); }
    :root.is-docking::view-transition-group(*.dock) { animation-duration: var(--calm); animation-timing-function: var(--ease); }
    :root.is-docking::view-transition-old(*.dock-words) { animation: dock-out 70ms linear both; }
    :root.is-docking::view-transition-new(*.dock-words) { animation: dock-in 230ms var(--ease) 70ms both; }
    :root.is-docking::view-transition-old(*.dock-still) { animation: none; opacity: 0; }
    :root.is-docking::view-transition-new(*.dock-still) { animation: none; }
    :root.is-docking::view-transition-group(*.ps-words) { animation-duration: 250ms; }
    :root.is-docking::view-transition-old(*.ps-words) { animation: dock-out 70ms linear both; }
    :root.is-docking::view-transition-new(*.ps-words) { animation: dock-in 180ms var(--ease) 70ms both; }
    /* The strip's car: no morph; each drawn where it stands, on its foot, the old leaving toward the side the street
       moves, the new coming from the other (`data-stepping`, app.ts). */
    :root.is-docking::view-transition-group(*.ps-move) { animation: none; }
    :root.is-docking::view-transition-old(*.ps-move), :root.is-docking::view-transition-new(*.ps-move) { inline-size: auto; block-size: auto; inset-block-start: auto; inset-block-end: 0; }
    :root.is-docking::view-transition-old(*.ps-move) { animation: dock-out 70ms linear both; }
    :root.is-docking::view-transition-new(*.ps-move) { animation: dock-in 180ms var(--ease) 70ms both; }
    :root.is-docking[data-stepping="next"]::view-transition-old(*.ps-move) { animation-name: ps-out-start; }
    :root.is-docking[data-stepping="next"]::view-transition-new(*.ps-move) { animation-name: ps-in-end; }
    :root.is-docking[data-stepping="prev"]::view-transition-old(*.ps-move) { animation-name: ps-out-end; }
    :root.is-docking[data-stepping="prev"]::view-transition-new(*.ps-move) { animation-name: ps-in-start; }
  }
}
@keyframes dock-out { to { opacity: 0; } }
@keyframes dock-in { from { opacity: 0; } }
@keyframes ps-out-start { to { opacity: 0; translate: -12px 0; } }
@keyframes ps-out-end { to { opacity: 0; translate: 12px 0; } }
@keyframes ps-in-start { from { opacity: 0; translate: -12px 0; } }
@keyframes ps-in-end { from { opacity: 0; translate: 12px 0; } }
