/* ============================================================
   HOME — the page's own blocks on bir.ch/ (site/src/pages/index.astro): the clients card, the
   quote cards and the numbers. The hero, the Stage scene and the product slides have their own files
   (home-hero.css, home-stage.css, home-slides.css). Values from tokens; live sizes snapped to the nearest step.
   ============================================================ */

/* Partners and clients: two bento cards one grid gap apart, as the live bento (16) */
.home-trust__stack { display: grid; gap: var(--grid-gap); }

/* Quote cards (block map home-06): the card in the case colour, under it the author's photo and Read side by side,
   a speech-bubble tail from the card to the photo */
.home-case { display: grid; grid-template-rows: 1fr auto; gap: var(--grid-gap); --case-ink: var(--color-text); }
.home-case--dark { --case-ink: var(--color-text-inverted); }
.home-case__card {
  position: relative;
  display: grid; grid-template-rows: auto auto auto 1fr; gap: var(--space);
  --card-fill: var(--case-fill); color: var(--case-ink);
}
.home-case__card::after { /* the tail, over the photo's centre */
  content: ''; position: absolute; top: 100%; left: calc(var(--btn-h-cta) / 2 - var(--space-xs));
  border: var(--space-xs) solid transparent; border-top-color: var(--case-fill); border-bottom: 0;
}
.home-case__logo { height: var(--space-xl); width: auto; max-width: 100%; justify-self: start; object-fit: contain; }
.home-case__pic { width: 100%; height: auto; aspect-ratio: 365 / 339; object-fit: cover; border-radius: var(--radius-md); }
.home-case__quote { margin: 0; display: grid; gap: var(--space); align-content: end; }
.home-case__author span { display: block; }
.home-case__foot { display: grid; grid-template-columns: var(--btn-h-cta) minmax(0, 1fr); gap: var(--grid-gap); }
.home-case__avatar { width: 100%; height: var(--btn-h-cta); object-fit: cover; border-radius: var(--radius-lg); background: var(--case-fill); }
/* Read: the case colour at rest, yellow under the mouse — the live hover */
.home-case__read { width: 100%; background: var(--case-fill); color: var(--case-ink); }
@media (hover: hover) {
  .home-case__read:hover { opacity: 1; background: var(--color-primary); color: var(--color-text-inverted); }
}

/* The numbers: three square tiles, the figure in the display style, its label under it */
.home-stats__tile { margin: 0; aspect-ratio: 1; justify-content: center; gap: var(--space-xs); }
.home-stats__tile .t-h3 { max-width: 10em; text-wrap: balance; }
/* phones: no square — one column of squares was a screen each (Liliya's review mx4tu2ke); the tile hugs its figure with 48 above and below */
@media (max-width: 47.9375rem) { .home-stats__tile { aspect-ratio: auto; padding-block: var(--space-lg); } }
@media (max-width: 47.9375rem) { .home-case__logo { height: var(--space-lg); } }
