/* The article "Every missed call is a job for someone else" (src\pages\blog-calls.mjs): the articles' layout
   (article.css), its hero's call turning into a booking, and everycall over the tile setter's bathroom. */
@import url("article.css");

/* hero: the roofer's hands on the shingles (no face; his crew up the slope); the call's card turning into its booking at
   the lower right, under his boot, and the title over the shingles at the lower left; under 1000 px the card hangs on
   the shingles at the band's foot */
.art-hero--calls { --hero-pos: 50% 100%; }
.art-hero--calls .art-hero__seq { display: grid; }
.art-hero--calls .art-hero__card { grid-area: 1 / 1; }
.art-hero--calls .art-hero__card--first { transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.art-hero--calls .art-hero__seq:has(> .art-hero__card--then[data-kit-on]) > .art-hero__card--first { opacity: 0; transform: translateY(-12px) scale(.96); }
.art-hero__tile--call { background: var(--c-paper); color: var(--c-ink); }
@media (min-width: 1000px) {
  .art-hero--calls .art-hero__seq { right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); bottom: clamp(40px, 4.4vw, 64px); }
  .art-hero--calls .art-hero__stop { top: 20px; bottom: auto; }
}
@media (max-width: 999px) {
  .art-hero--calls { --hero-pos: 55% 100%; }
}

/* point: every call answered, in glass on the free left half of the tile setter's bathroom (his face at x 66-77%,
   y 5-28%); under 761 px the photo stands as a band and the card hangs half on its foot */
.art-calls__frame { aspect-ratio: 16 / 9; }
.art-calls__frame img { object-position: 60% 50%; }
.art-calls__box { position: absolute; z-index: 1; left: 4.5%; top: 12%; width: min(440px, 44%); }
@media (max-width: 760px) {
  .art-calls__stage { --ph: 300px; padding-top: calc(var(--ph) - 150px); }
  .art-calls__frame { position: absolute; inset: 0 0 auto; aspect-ratio: auto; height: var(--ph); }
  .art-calls__frame img { object-position: 72% 50%; }
  .art-calls__box { position: relative; left: auto; top: auto; width: auto; min-height: 281px; padding-inline: 12px; }
}
