/* call-answering.css: the Call answering page's own placing and sizing. Components and tokens come from design\.
   Scenes keep their words at full size (Lessons 1-3): voice-captions and channels-merge always get a box under 600 px
   wide, so they take their tall layouts at scale 1; their glass stays on the photo's calm side, never on a face. */

/* ---------- 1. the header: the words and the box on night at the left, the plumber's kitchen framed at the right ---------- */
.callhead { background: radial-gradient(80% 70% at 0% 0%, rgba(241, 128, 46, 0.1), rgba(241, 128, 46, 0) 60%), var(--c-night); }
.callhead__in { display: grid; grid-template-columns: minmax(0, 1fr); }
.callhead__copy { display: grid; gap: 18px; align-content: center; padding: 28px var(--gutter) 32px; }
.callhead .phead__line { margin-top: 0; }
.callhead .book { margin-top: 4px; }
.callhead .phead__note { margin-top: -4px; }
/* the phone and a narrow tablet: the kitchen only (his face stays out of the frame, never under the call) */
.callhead__panel { position: relative; overflow: hidden; height: 724px; margin: 0 var(--gutter) 24px; border-radius: var(--radius-xl); background: var(--c-night-3); box-shadow: var(--shadow-night); }
.callhead__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 4% 50%; }
.callhead__stage { position: absolute; left: 0; top: 0; bottom: 56px; width: min(100%, 420px); }
.callhead__scene { position: absolute; inset: 0; }
.callhead__panel .stop { top: auto; bottom: 12px; right: 14px; }
@media (max-width: 479px) { .callhead__panel { margin-inline: 0; border-radius: 0; } }
@media (min-width: 480px) and (max-width: 759px) { .callhead__stage { left: 10px; } }
/* from 760 px: the plumber at the right, the call over the kitchen at the left */
@media (min-width: 760px) {
  .callhead__panel { height: 680px; }
  .callhead__photo { object-position: 60% 50%; }
  .callhead__stage { left: 12px; top: 10px; bottom: 10px; width: 400px; }
  .callhead__panel .stop { top: 14px; bottom: auto; }
}
@media (min-width: 1100px) {
  .callhead__in { --side: max(var(--gutter), calc((100% - var(--max-w)) / 2)); grid-template-columns: var(--side) minmax(0, 560px) minmax(0, 1fr) var(--side); min-height: calc(100svh - var(--header-h)); }
  .callhead__copy { grid-column: 2; gap: 16px; padding: clamp(16px, 3vh, 44px) 48px clamp(16px, 3vh, 44px) 0; }
  .callhead .phead__title { font-size: min(clamp(2.5rem, 1.6rem + 3.4vw, 4.75rem), 7.6vh); }
  .callhead__panel { grid-column: 3; align-self: center; height: 680px; margin: 28px 0; }
}

/* ---------- 2. day and night, the signature ---------- */
.daynight { --ground-x: 50%; --ground-y: 0%; }
.daynight .head { margin-bottom: 28px; }
.daynight__stage { position: relative; max-width: 980px; margin: 0 auto; padding-top: 8px; }
.daynight__scene { position: relative; }
.daynight__stage .stop { top: 0; right: 0; bottom: auto; }

/* ---------- 3. missed or answered: two framed photos, their cards facing each other in the middle ---------- */
.missans .head { margin-bottom: 32px; }
.missans__pair { position: relative; display: grid; gap: 20px; }
@media (min-width: 900px) { .missans__pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; } }
.missans__side { position: relative; overflow: hidden; height: 480px; margin: 0; border-radius: var(--radius-xl); background: var(--c-night-3); box-shadow: var(--shadow-l); }
@media (min-width: 900px) { .missans__side { height: 560px; } }
.missans__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.missans__side--missed .missans__photo { object-position: 38% 50%; filter: grayscale(0.75) brightness(0.92) contrast(0.96); }
.missans__side--answered .missans__photo { object-position: 73% 50%; }
@media (min-width: 900px) { .missans__side--missed .missans__photo { object-position: 70% 50%; } .missans__side--answered .missans__photo { object-position: 60% 50%; } }
.missans__scene { position: absolute; inset: 0; }
.missans__tag { position: absolute; z-index: 2; left: 16px; top: 16px; padding: 7px 14px; border-radius: 99px; background: rgba(13, 13, 15, 0.72); color: #fff; font: 700 var(--fs-small)/1 var(--font-ui); letter-spacing: 0.02em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.missans__tag--on { background: var(--grad-brand); color: var(--c-on-brand); box-shadow: none; }
/* side by side, the missed side's cards stand over the water heater, at its right */
@media (min-width: 900px) { .missans__side--missed .missans__scene .ma-col { left: auto; right: 18px; } }
.missans__pair .stop { top: 14px; right: 14px; bottom: auto; }

/* ---------- 4. every way in ---------- */
.waysin { --ground-x: 8%; --ground-y: 100%; }
.waysin .head { margin-bottom: 28px; }
.waysin__stage { position: relative; padding-top: 48px; }
.waysin__scene { position: relative; }
.waysin__stage .stop { top: 0; right: 0; bottom: auto; }

/* ---------- 5. how you see it: the plumber in his van, every lead landing in one inbox over the windshield ---------- */
.seeit__in { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1000px) { .seeit__in { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; } }
.seeit__copy { display: grid; gap: 20px; }
.seeit__copy .head__line { margin: 0; }
.seeit__media { position: relative; overflow: hidden; height: 716px; border-radius: var(--radius-xl); background: var(--c-night-3); box-shadow: var(--shadow-l); }
.seeit__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 100% 50%; }
.seeit__stage { position: absolute; left: 0; right: 0; top: 0; bottom: 56px; }
.seeit__scene { position: absolute; inset: 0; }
.seeit__media .stop { top: auto; bottom: 12px; right: 14px; }
@media (max-width: 479px) { .seeit__media { margin-inline: calc(var(--gutter) * -1); border-radius: 0; } }
@media (min-width: 640px) {
  .seeit__media { height: 660px; }
  .seeit__photo { object-position: 85% 50%; }
  .seeit__stage { left: auto; right: 12px; top: 10px; bottom: 10px; width: 360px; }
  .seeit__media .stop { top: 14px; left: 14px; right: auto; bottom: auto; }
}
@media (min-width: 1000px) { .seeit__photo { object-position: 100% 50%; } }

/* ---------- 6. the close: the two at the door at the top, the words and the box over a lower wash ---------- */
.callclose { padding-top: clamp(280px, 22vw, 320px); padding-bottom: clamp(64px, 7vw, 104px); }
.callclose::before { background: linear-gradient(180deg, rgba(13, 13, 15, 0) 0%, rgba(13, 13, 15, 0.1) 22%, rgba(13, 13, 15, 0.8) 42%, rgba(13, 13, 15, 0.95) 100%); }
.callclose__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 12%; }
.callclose__in { display: grid; gap: 30px; align-items: end; }
@media (min-width: 1000px) { .callclose__in { grid-template-columns: minmax(0, 560px) minmax(0, 400px); justify-content: space-between; gap: 56px; } }
.callclose__words { display: grid; gap: 16px; }
.callclose__card { position: absolute; z-index: 1; left: max(var(--gutter), 4%); top: 16%; }
@media (max-width: 899px) { .callclose::before { background: linear-gradient(180deg, rgba(13, 13, 15, 0) 0%, rgba(13, 13, 15, 0.2) 18%, rgba(13, 13, 15, 0.9) 36%, rgba(13, 13, 15, 0.97) 100%); } }
@media (max-width: 759px) {
  .callclose { padding-top: 0; }
  .callclose .close__media { position: relative; inset: auto; z-index: 0; height: 340px; margin-bottom: 28px; }
  .callclose .close__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 13, 15, 0) 62%, var(--c-night) 100%); }
  .callclose::before { display: none; }
  .callclose__photo { object-position: 50% 20%; }
  .callclose__card { left: auto; right: 16px; top: auto; bottom: 30px; }
}
