/* The home (src/app/home/): the promise over the street, on one screen, then one section per way in (the makes and
   the six kinds, the budget, two cars to compare, what the site does for a buyer, the guide). Built on public/app/app.css and
   src/app/DESIGN.md: it adds no token and writes no colour. Phone first; every control 44 px under a finger. */

/* ── The head: the promise on one line, its figures ───────────────────────────────────────────────────── */

/* The promise never wraps (the owner, 24 November 2026): its size is the width divided by its length (`--len`, its
   characters, from the server; 0.49 em a character: the promise has no figure in it since 25 November 2026 and
   its characters run 0.44 em on average in French and English, 0.38 in Darija, measured; at 0.52 the English one was
   set at 16.2 px on a phone of 360 px), up to the size a phone's heading takes. */
.hm-hero { flex: none; display: grid; justify-items: center; gap: 4px; padding: 10px var(--pad) 0; text-align: center; }
.hm-h1 { max-width: 100%; margin: 0; white-space: nowrap; font: 400 min(1.5rem, calc((100vw - 2 * var(--pad)) / (var(--len, 36) * 0.49)))/1.1 var(--voice); letter-spacing: -0.012em; }
.hm-h1 em { font-style: normal; font-weight: 650; }
.hm-figs { margin: 0; font: 500 0.78125rem/1.3 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.hm-figs b { font-weight: 650; color: var(--ink); }
@media (min-width: 900px) {
  .hm-hero { gap: 8px; padding-top: 22px; }
  .hm-h1 { font-size: clamp(2.25rem, 3.2vw, 3rem); }
  .hm-figs { font-size: 0.875rem; }
}

/* On the home the street shares its screen with the promise: its name a little smaller than on a street alone. */
.st.is-home { --wall-max: min(88px, 10.5svh); }
@media (min-width: 900px) { .st.is-home { --wall-max: clamp(72px, 12vh, 132px); } }

/* ── A section ────────────────────────────────────────────────────────────────────────────────────────── */

.hm { display: grid; grid-template-columns: minmax(0, 1fr); }
/* One rhythm down the page: 56 px between two sections on a phone (72 with room), 20 under a section's heading, so
   that each way in reads as its own screen after the street's (the owner, 24 November 2026: "crowded"). */
.hm-sec { width: 100%; max-width: 1240px; margin: 0 auto; padding: 56px var(--pad) 0; }
.hm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 44px; margin-bottom: 20px; }
/* A section's way to its own page (the budget, the comparison), as the makes' "Toutes les marques". */
.hm-full { flex: none; min-height: 44px; gap: 6px; }
.hm-full .ic { width: 18px; height: 18px; }
.hm-h { margin: 0; font: 750 1.5rem/1.1 var(--display); letter-spacing: -0.022em; }
.hm-h small { margin-inline-start: 4px; font: 600 0.9375rem/1 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.hm-h3 { margin: 32px 0 14px; font: 700 1.0625rem/1.2 var(--display); letter-spacing: -0.012em; }
@media (min-width: 900px) {
  .hm-sec { padding-top: 72px; }
  .hm-h { font-size: 2rem; }
}

/* ── The makes: a row that drifts and that a hand moves, ten in view with room, four and a half on a phone ── */

.hm-all { flex: none; min-height: 44px; gap: 8px; }
.hm-all .ic { width: 18px; height: 18px; }
/* A strip that scrolls sideways under a finger, a trackpad or a mouse that drags it (alive.ts), with no bar drawn; its
   two edges fade. Its drift is a `translate` of its runs, written by the script: without scripts it is a still strip
   that scrolls by hand. */
.hm-marq {
  --tile: calc((100vw - 2 * var(--pad)) / 4.5);
  display: flex; margin: 0 calc(var(--pad) * -1); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  /* Its 53 logos are fetched once the row nears the screen, not with the first screen (the audit of 25 November 2026:
     53 of the home's 102 cold requests). The row keeps its height meanwhile: nothing moves when it is drawn. */
  content-visibility: auto; contain-intrinsic-block-size: auto 104px;
}
.hm-marq::-webkit-scrollbar { display: none; }
/* With a mouse: an arrow at each end, always there (what can be moved shows it at rest), a step of most of the strip. */
.hm-marq-wrap { position: relative; }
.hm-marq-step { position: absolute; z-index: 2; top: 50%; display: none; place-items: center; width: 36px; height: 36px; padding: 0; translate: 0 -50%; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); box-shadow: var(--lift-1); cursor: pointer; transition: border-color var(--quick); }
.hm-marq-step::before { content: ""; position: absolute; inset: -4px; }
.hm-marq-step.is-prev { inset-inline-start: -6px; }
.hm-marq-step.is-next { inset-inline-end: -6px; }
.hm-marq-step .ic { width: 18px; height: 18px; }
/* Each points outwards; right to left the sheet's own rule mirrors both (app.css, `svg.ic:dir(rtl)`). */
.hm-marq-step.is-prev .ic { rotate: 180deg; }
.hm-marq-step:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .hm-marq-step { display: grid; } .hm-marq-step:hover { border-color: var(--ink); } }
@media (prefers-reduced-motion: reduce) { .hm-marq-step { display: none; } }
@media (hover: hover) and (pointer: fine) { .hm-marq { cursor: grab; } .hm-marq.is-dragged { cursor: grabbing; } }
.hm-marq.is-dragged { user-select: none; -webkit-user-select: none; }
.hm-marq.is-dragged .hm-mk { pointer-events: none; }
@media (min-width: 900px) { .hm-marq { --tile: calc((min(100vw, 1240px) - 2 * var(--pad)) / 10); margin: 0; } }
.hm-marq-run { flex: none; display: flex; margin: 0; padding: 0; list-style: none; }
.hm-marq-run > li { flex: none; width: var(--tile); }

.hm-mk { --logo-w: 58px; --logo-h: 30px; -webkit-user-drag: none; display: grid; justify-items: center; align-content: center; gap: 10px; height: 104px; margin: 0 4px; padding: 10px 6px; border-radius: var(--r-m); color: var(--ink); text-decoration: none; transition: background-color var(--quick); }
/* A make's name is never cut: a long one ("Mercedes-Benz", "Volkswagen") is set smaller and may take two lines, in the
   room of two lines kept under every logo, so that the logos stand on one line. */
.hm-mk-n { display: grid; align-content: start; justify-items: center; max-width: 100%; height: 2.3em; overflow: hidden; text-align: center; overflow-wrap: anywhere; font: 600 0.75rem/1.15 var(--body); color: var(--soft); }
.hm-mk .mk-word + .hm-mk-n { visibility: hidden; }
.hm-mk:focus-visible { outline: 2.5px solid var(--ink); outline-offset: -2px; }
@media (hover: hover) { .hm-mk:hover { background: var(--road); } }
@media (min-width: 900px) { .hm-mk { --logo-w: 68px; --logo-h: 34px; } }
/* Less motion: a still grid of every make, and no twin. */
@media (prefers-reduced-motion: reduce) {
  .hm-marq { margin: 0; overflow: visible; cursor: auto; -webkit-mask-image: none; mask-image: none; }
  .hm-marq-run { flex: 1 1 auto; flex-wrap: wrap; }
  .hm-marq-run.is-twin { display: none; }
}

/* The six kinds, each on its stage ("En scène", docs/decisions/2026-11-25-kinds-on-stage.md): the maker's picture of the
   model that stands for it (src/app/home/flagships.ts), named in its corner; all six at one scale, the longest of them
   (`--longest`, millimetres, set by the list) across 92 % of a stage; a floor of the kind's own hue. Under a pointer, a
   focus or a finger the car rolls forward a little, on `translate` only; the card's size never changes. A kind with no
   pictured car keeps its drawing (src/app/ui/bodies.ts) on the same stage. A few models of the kind stand there in turn
   (`castOf`), all at the list's one scale: the one that leaves and the one that comes share the place for the time of a
   cross-fade, on `opacity` only (alive.ts). */
.hm-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .hm-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .hm-kinds { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; } }
.hm-kind { display: grid; grid-template-rows: auto auto 1fr; gap: 4px; height: 100%; padding: 0 0 14px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); color: var(--ink); text-decoration: none; transition: border-color var(--quick), box-shadow var(--quick); }
.hm-kind[data-kind="suv"] { --stage: var(--kind-suv); }
.hm-kind[data-kind="citadines"] { --stage: var(--kind-citadines); }
.hm-kind[data-kind="berlines"] { --stage: var(--kind-berlines); }
.hm-kind[data-kind="monospaces"] { --stage: var(--kind-monospaces); }
.hm-kind[data-kind="pick-up"] { --stage: var(--kind-pick-up); }
.hm-kind[data-kind="coupes"] { --stage: var(--kind-coupes); }
.hm-kind-stage { position: relative; display: block; aspect-ratio: 16 / 10.4; margin-bottom: 6px; overflow: hidden; container-type: inline-size; background: radial-gradient(90% 80% at 50% 36%, var(--kind-lit), transparent 80%), var(--stage, var(--road)); }
.hm-kind-stage::before { content: ""; position: absolute; inset-inline-start: -12%; inset-inline-end: -12%; bottom: -36%; height: 62%; border-radius: 50%; background: var(--kind-floor); }
.hm-kind-model { position: absolute; z-index: 2; top: 9px; inset-inline: 10px; overflow: hidden; font: 600 var(--fs-label)/1.2 var(--label); color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }
.hm-kind-stage > :is(.carfig, .body) { position: absolute; z-index: 1; left: 50%; bottom: 13%; translate: -50% 0; transition: translate var(--calm) var(--ease); }
.hm-kind-stage > .carfig { --mm: calc(92cqi / var(--longest)); }
.hm-kind-stage > .body { display: block; width: 86%; height: auto; aspect-ratio: 160 / 56; }
.hm-kind b { padding: 0 12px; font: 700 0.9375rem/1.2 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.hm-kind-n { display: grid; align-content: start; padding: 0 12px; font: 500 0.75rem/1.3 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.hm-kind:is(:hover, :focus-visible, :active) { border-color: var(--ink); }
.hm-kind:is(:hover, :focus-visible, :active) .hm-kind-stage > :is(.carfig, .body) { translate: calc(-50% + 5px) 0; }
@media (hover: none) { .hm-kind:hover:not(:active, :focus-visible) { border-color: var(--line); } .hm-kind:hover:not(:active, :focus-visible) .hm-kind-stage > :is(.carfig, .body) { translate: -50% 0; } }
.hm-kind:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .hm-kind-stage > :is(.carfig, .body) { transition: none; } .hm-kind:is(:hover, :focus-visible, :active) .hm-kind-stage > :is(.carfig, .body) { translate: -50% 0; } }
.hm-kinds-note { margin: 10px 0 0; }

/* Every make, searched: a sheet of one height on a phone (typing never moves its search), a dialog with room; a grid of
   tiles, each the make's logo in one box, its name and how many names it sells. */
dialog.hm-dlg { display: flex; flex-direction: column; width: min(880px, 100vw); max-width: none; height: 86dvh; overflow: hidden; }
dialog.hm-dlg:not([open]) { display: none; }
@media (min-width: 760px) { dialog.hm-dlg { height: min(84vh, 760px); } }
.hm-dlg-head { flex: none; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px 12px; padding: 20px var(--pad) 16px; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .hm-dlg-head { padding: 28px 32px 20px; } }
.hm-dlg-h { margin: 0; font: 750 1.375rem/1.1 var(--display); letter-spacing: -0.02em; }
.hm-dlg-h small { margin-inline-start: 4px; font: 600 0.9375rem/1 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.hm-dlg-x { width: 44px; height: 44px; }
.hm-dlg-find { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border: 1.5px solid var(--edge); border-radius: var(--r-pill); background: var(--paper); cursor: text; }
.hm-dlg-find:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--line); }
.hm-dlg-find .ic { flex: none; width: 22px; height: 22px; color: var(--ink); }
.hm-dlg-find input::-webkit-search-cancel-button { display: none; }
.hm-dlg-find input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font: 500 1rem/1 var(--body); color: var(--ink); }
.hm-dlg-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px var(--pad) 32px; }
@media (min-width: 760px) { .hm-dlg-body { padding: 24px 32px 40px; } }
.hm-dlg-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .hm-dlg-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hm-dlg-list .mk-tile { --logo-w: 72px; --logo-h: 32px; padding: 16px 6px 12px; }
@media (min-width: 760px) { .hm-dlg-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; } .hm-dlg-list .mk-tile { --logo-w: 92px; --logo-h: 36px; } }
.hm-dlg-none { margin: 8px 0; color: var(--soft); text-align: center; }

/* ── The budget: cash or credit, counted by the engine, ending on the list ───────────────────────────── */


/* ── Two cars to compare, and four pairs ready ────────────────────────────────────────────────────────── */

.hm-slots { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.hm-slot { --mm: 0.019px; position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 120px; padding: 14px 10px; border: 1.5px dashed var(--edge); border-radius: var(--r-m); color: var(--ink); text-decoration: none; text-align: center; transition: border-color var(--quick); }
.hm-slot.is-set { border-style: solid; border-color: var(--line); background: var(--card); }
.hm-slot-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 0.75rem/1 var(--label); }
.hm-slot-car:empty { display: none; }
.hm-slot b { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 0.9375rem/1.2 var(--display); }
.hm-slot small { font: 600 0.8125rem/1.2 var(--body); color: var(--soft); font-variant-numeric: tabular-nums; }
.hm-slot:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .hm-slot:hover { border-color: var(--ink); } }
.hm-vs .ic { width: 24px; height: 24px; color: var(--soft); }
.hm-slots-go { grid-column: 1 / -1; min-height: 48px; }
.hm-slots-go[aria-disabled="true"] { opacity: 0.55; }
@media (min-width: 900px) {
  .hm-slots { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; }
  .hm-slots-go { grid-column: auto; }
}
.hm-pairs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .hm-pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hm-pairs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hm-pair { container: pair / inline-size; display: grid; justify-items: center; gap: 6px; height: 100%; padding: 14px 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); color: var(--ink); text-decoration: none; text-align: center; transition: border-color var(--quick); }
.hm-pair-cars { --mm: calc((50cqi - 12px) / 5600); display: flex; align-items: flex-end; justify-content: center; gap: 8px; height: calc(2000 * var(--mm)); }
.hm-pair-names { font: 500 0.875rem/1.3 var(--body); color: var(--soft); text-wrap: balance; }
.hm-pair-names b { font: 700 0.9375rem/1.25 var(--display); color: var(--ink); }
.hm-pair-prices { font: 600 0.8125rem/1.2 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.hm-pair:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .hm-pair:hover { border-color: var(--ink); } }

/* ── What the site does for a buyer: four cards, each led by a figure of the catalogue and its drawing ────── */

.hm-feats-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
/* On a phone the four cards are one row that slides sideways, each four fifths of the screen so that the next one
   shows its edge (four stacked took two screens of presentation: the phone audit of 24 November 2026, F22). The row
   bleeds to the screen's edges and stops on a card; no bar is drawn (the page's own is the only one). */
@media (max-width: 639px) {
  .hm-feats-list { display: flex; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); overscroll-behavior-x: contain; scrollbar-width: none; }
  .hm-feats-list::-webkit-scrollbar { display: none; }
  .hm-feats-list > li { flex: none; width: min(80vw, 340px); scroll-snap-align: start; }
}
@media (min-width: 640px) { .hm-feats-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1100px) { .hm-feats-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hm-feat { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 6px; height: 100%; padding: 14px 14px 18px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); color: var(--ink); text-decoration: none; transition: border-color var(--quick); }
@media (max-width: 639px) { .hm-feat { padding: 12px 14px 14px; } .hm-feat h3 { margin-top: 4px; } }

/* Each card shows the thing it leads to, small and true: one band of one height on every card (nothing moves while
   the cars' pictures arrive), drawn from the site's own parts and the car's own data (src/app/home/sections.ts). */
.hm-feat-art { container: art / inline-size; display: block; height: 92px; margin-bottom: 8px; padding: 10px 12px; border-radius: var(--r-m); background: var(--road); overflow: hidden; }
.hm-art { display: grid; height: 100%; }
.hm-art-say { font: 600 0.75rem/1 var(--label); color: var(--soft); }
/* The cost: its lines over the years kept, each its colour of the cost's stack. */
.hm-art-cost { grid-template-rows: auto repeat(4, 1fr); align-items: center; }
.hm-cost-l { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 8px; font: 600 0.75rem/1 var(--label); color: var(--soft); }
.hm-cost-l i { width: max(3px, calc(var(--w) * 100%)); height: 7px; border-radius: 4px; background: var(--s-price); }
.hm-cost-l i.is-financing { background: var(--s-financing); }
.hm-cost-l i.is-duties { background: var(--s-duties); }
.hm-cost-l i.is-fuel { background: var(--s-fuel); }
.hm-cost-l b { min-width: 7ch; text-align: end; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
/* The sheet: what the car lists, drawn as its page draws it, and how many more. */
.hm-art-sheet { grid-template-columns: repeat(4, 32px); grid-auto-rows: 32px; align-content: center; justify-content: center; gap: 6px; }
@container art (min-width: 300px) { .hm-art-sheet { grid-template-columns: repeat(8, 32px); } }
.hm-eq { display: grid; place-items: center; border-radius: 10px; background: var(--card); color: var(--ink); }
.hm-eq .pi { overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hm-eq.is-more { font: 700 0.75rem/1 var(--label); }
/* The month: the street's ruler in small, its flag at the amount counted under; what is beyond it steps back. */
.hm-art-month { position: relative; direction: ltr; }
.hm-bars { position: absolute; inset: auto 0 0; height: 40px; display: flex; align-items: flex-end; gap: 2px; }
.hm-bars i { flex: 1 1 0; min-width: 0; height: max(2px, calc(var(--h) * 100%)); border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--ink) 30%, transparent); }
.hm-bars i.is-over { background: color-mix(in srgb, var(--ink) 11%, transparent); }
.hm-flag { position: absolute; left: var(--bx); bottom: 0; width: 0; height: 100%; }
.hm-flag::before { content: ""; position: absolute; inset-inline-start: -1.25px; bottom: 0; width: 2.5px; height: 100%; border-radius: 1px; background: var(--paint); box-shadow: 0 0 0 1.5px var(--paint-edge); }
.hm-flag b { position: absolute; inset-inline-start: 0; top: 0; padding: 5px 8px; border-start-start-radius: 10px; border-start-end-radius: 10px; border-end-end-radius: 10px; border-end-start-radius: 2px; background: var(--paint); color: var(--on-paint); box-shadow: 0 0 0 1.5px var(--paint-edge); white-space: nowrap; font: 700 0.6875rem/1 var(--body); font-variant-numeric: tabular-nums; }
.hm-art-month.is-dear .hm-flag b { inset-inline-start: auto; inset-inline-end: 0; border-start-start-radius: 10px; border-start-end-radius: 10px; border-end-end-radius: 2px; border-end-start-radius: 10px; }
/* The comparator: two cars at one scale, face to face, the lower price ticked. */
.hm-art-cmp { grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 4px; }
.hm-cmp-cars { --mm: calc((50cqi - 8px) / 5600); display: flex; align-items: flex-end; justify-content: center; gap: 8px; height: 100%; }
.hm-cmp-ps { display: grid; grid-template-columns: repeat(2, calc(50cqi - 4px)); gap: 8px; }
.hm-cmp-p { display: inline-flex; align-items: center; justify-content: center; gap: 3px; font: 600 0.75rem/1 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.hm-cmp-p.is-best { color: var(--ink); font-weight: 800; }
.hm-cmp-p .ic { width: 14px; height: 14px; color: var(--good); }
.hm-feat-fig { display: grid; gap: 2px; }
.hm-feat-fig b { font: 800 2.25rem/1 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.hm-feat-fig small { font: 600 0.8125rem/1.3 var(--label); color: var(--soft); }
.hm-feat h3 { margin: 10px 0 0; font: 700 1.0625rem/1.2 var(--display); letter-spacing: -0.012em; }
.hm-feat p { margin: 0; font: 400 0.9375rem/1.4 var(--body); color: var(--soft); }
.hm-feat-go { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-top: 4px; font: 650 0.9375rem/1 var(--body); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.hm-feat-go .ic { width: 16px; height: 16px; transition: translate var(--quick) var(--ease); }
.hm-feat:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .hm-feat:hover { border-color: var(--ink); } .hm-feat:hover .hm-feat-go .ic { translate: calc(3px * var(--line-dir)) 0; } }

/* ── The guide, the last way in before the foot: a poster in the brand's paint ────────────────────────── */

/* The paint and what is drawn on it are the same in both themes (app.css: `--paint`, `--on-paint`, the bird's own
   colours), so the poster is one poster, light or dark. The canary on its wheel, thinking, stands on a road that comes
   from the poster's edge; the question, what the guide does, what its six questions are about, and one button in ink:
   the whole poster is its target (the button's `::after`). On a phone the canary and the words share the first row;
   with room the canary stands at the start, the button at the end. */
.hm-guide { margin-bottom: 56px; }
.hm-guide-card { position: relative; display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: center; gap: 16px 14px; padding: 20px 18px 18px; overflow: hidden; border-radius: var(--r-l); background: var(--paint); color: var(--on-paint); box-shadow: 0 0 0 1.5px var(--paint-edge); }
.hm-guide-art { position: relative; display: block; align-self: end; }
.hm-guide-bird { position: relative; z-index: 1; display: block; width: 100%; height: auto; margin-bottom: -6px; overflow: visible; }
/* Right to left it rolls the other way, towards the words. */
[dir="rtl"] .hm-guide-bird { scale: -1 1; }
/* Its road: from the poster's edge to a little past the wheel. */
.hm-guide-art::after { content: ""; position: absolute; inset-inline: -18px -10px; bottom: 3px; height: 3px; border-radius: 2px; background: var(--on-paint); }
.hm-guide-words { display: grid; gap: 4px; min-width: 0; }
.hm-guide-h { margin: 0; font: 800 1.625rem/1.05 var(--display); letter-spacing: -0.028em; text-wrap: balance; }
.hm-guide-say { margin: 0; font: 500 1rem/1.3 var(--voice); text-wrap: balance; }
.hm-guide-topics { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hm-guide-topics li { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding-inline: 8px 10px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--glint) 46%, transparent); font: 650 0.8125rem/1 var(--label); white-space: nowrap; }
.hm-guide-topics .ic { flex: none; width: 16px; height: 16px; }
.hm-guide-go { grid-column: 1 / -1; position: static; min-height: 52px; padding: 0 22px; border-color: var(--on-paint); background: var(--on-paint); color: var(--paint); font-size: 1.0625rem; font-weight: 750; }
.hm-guide-go::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hm-guide-go .ic { width: 20px; height: 20px; transition: translate var(--quick) var(--ease); }
.hm-guide-go:focus-visible { outline: 2.5px solid var(--on-paint); outline-offset: 3px; }
@media (hover: hover) { .hm-guide-card:hover .hm-guide-go .ic { translate: calc(4px * var(--line-dir)) 0; } }
/* Pointed at, the canary thinks on the move: its wheel turns, its head nods. */
@media (prefers-reduced-motion: no-preference) {
  .hm-guide-card:is(:hover, :focus-within) .m-spin { animation: hm-wheel 1.4s linear infinite; }
  .hm-guide-card:is(:hover, :focus-within) .m-head { animation: hm-nod 1.4s var(--ease) infinite; }
}
@keyframes hm-wheel { to { transform: rotate(360deg); } }
@keyframes hm-nod { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-5deg); } }
@media (min-width: 560px) {
  .hm-guide-card { grid-template-columns: 120px minmax(0, 1fr); padding: 24px 24px 22px; }
  .hm-guide-h { font-size: 2rem; }
  .hm-guide-say { font-size: 1.125rem; }
  .hm-guide-go { justify-self: start; }
}
@media (min-width: 900px) {
  .hm-guide { margin-bottom: 72px; }
  .hm-guide-card { grid-template-columns: 168px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 28px; row-gap: 14px; padding-block: 28px 26px; padding-inline: 28px 36px; }
  .hm-guide-art { grid-row: 1 / -1; }
  .hm-guide-art::after { inset-inline: -28px -14px; bottom: 5px; height: 4px; }
  .hm-guide-words { align-self: end; gap: 6px; }
  .hm-guide-h { font-size: 2.5rem; }
  .hm-guide-say { font-size: 1.25rem; }
  .hm-guide-topics { grid-column: 2; align-self: start; }
  .hm-guide-topics li { min-height: 34px; padding-inline: 10px 12px; font-size: 0.875rem; }
  .hm-guide-go { grid-column: 3; grid-row: 1 / -1; align-self: center; justify-self: end; min-height: 56px; padding: 0 28px; }
}
/* The guide's poster as the owner's pending decision `guidePoster` shows it (src/app/options.ts; yellow says "this
   one" elsewhere). b: an ink poster in both themes, its one yellow the canary's disc. c: a pictured car on its stage
   leads, the canary small beside it, the poster a card like the home's others and its button ink. */
.hm-guide.is-ink .hm-guide-card { background: var(--on-paint); color: var(--glint); box-shadow: 0 0 0 1.5px var(--line); }
.hm-guide.is-ink .hm-guide-art { align-self: center; aspect-ratio: 1; padding: 10% 8% 4%; border-radius: 50%; background: var(--paint); }
.hm-guide.is-ink .hm-guide-art::after { inset-inline: 14%; bottom: 17%; height: 2px; }
.hm-guide.is-ink .hm-guide-bird { margin-bottom: 0; }
.hm-guide.is-ink .hm-guide-topics li { background: color-mix(in srgb, var(--glint) 13%, transparent); }
.hm-guide.is-ink .hm-guide-go { border-color: var(--glint); background: var(--glint); color: var(--on-paint); }
.hm-guide.is-ink .hm-guide-go:focus-visible { outline-color: var(--glint); }
.hm-guide.is-photo .hm-guide-card { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-inline: 0; background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.hm-guide.is-photo .hm-guide-art { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: center; padding: 26px 18px 16px; overflow: hidden; container-type: inline-size; background: radial-gradient(80% 70% at 50% 40%, var(--card), transparent 80%), var(--road); }
.hm-guide.is-photo .hm-guide-art::after { inset-inline: 0; bottom: 14px; height: 2px; background: var(--line); }
.hm-guide.is-photo :is(.hm-guide-words, .hm-guide-topics, .hm-guide-go) { margin-inline: 18px; }
.hm-guide.is-photo .hm-guide-car { position: relative; z-index: 1; display: block; }
.hm-guide.is-photo .hm-guide-car .carfig { --mm: calc(66cqi / 4600); }
.hm-guide.is-photo .hm-guide-bird { flex: none; width: 58px; margin-inline-start: -2px; margin-bottom: -4px; }
.hm-guide.is-photo .hm-guide-topics li { background: var(--sunk); }
.hm-guide.is-photo .hm-guide-go { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.hm-guide.is-photo .hm-guide-go:focus-visible { outline-color: var(--ink); }
@media (min-width: 560px) {
  .hm-guide.is-photo .hm-guide-card { grid-template-columns: minmax(0, 1fr); }
  .hm-guide.is-photo :is(.hm-guide-words, .hm-guide-topics, .hm-guide-go) { margin-inline: 24px; }
}
@media (min-width: 900px) {
  .hm-guide.is-photo .hm-guide-card { grid-template-columns: minmax(0, 360px) minmax(0, 1fr) auto; padding-block: 0; padding-inline: 0 36px; }
  .hm-guide.is-photo :is(.hm-guide-words, .hm-guide-topics, .hm-guide-go) { margin-inline: 0; }
  .hm-guide.is-photo .hm-guide-art { grid-column: 1; grid-row: 1 / -1; align-self: stretch; align-items: center; margin: 0; padding: 24px 20px; }
  .hm-guide.is-photo .hm-guide-art::after { display: none; }
  .hm-guide.is-photo .hm-guide-car .carfig { --mm: calc(70cqi / 4600); }
  .hm-guide.is-photo .hm-guide-words { padding-block-start: 28px; }
  .hm-guide.is-photo .hm-guide-topics { padding-block-end: 26px; }
  .hm-guide.is-ink .hm-guide-art { padding: 12% 10% 5%; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-mk, .hm-kind, .hm-feat, .hm-feat-go .ic, .hm-slot, .hm-pair { transition: none; }
}

/* The sections' place while they are fetched: room kept below the fold, so that their arrival moves nothing in view. */
.hm.is-waiting { min-height: 100vh; }
