/* Reviews & 24/7 Answering (plan.md): header D (the plumber's clip framed at the left with the call written up over its
   open side, the words and the form at the right on the ice band), the same call missed or booked on two photos, the
   night on the designed ground, the review asked over its clip, the chat over the laptop's screen, and the close. */

/* ---------- top: header layout D ---------- */
.ph--d { padding-block: var(--space-4) var(--space-6); background: var(--c-paper-alt); }
.ph--d .ph__in { display: grid; grid-template-columns: minmax(0, 0.64fr) minmax(0, 0.36fr); grid-template-rows: auto auto; column-gap: var(--space-6); align-content: center; max-width: 1440px; min-height: min(780px, calc(100svh - var(--header-h) - 24px)); }
.ph--d .ph__media { grid-row: 1 / 3; align-self: center; aspect-ratio: 1.28 / 1; border-radius: var(--radius-xl); box-shadow: var(--shadow-l); --focus: 30% 50%; --pos: 30% 50%; }
.ph--d .ph__media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c-night-2) 46%, transparent) 0%, color-mix(in srgb, var(--c-night-2) 18%, transparent) 60%, transparent 76%); }
.ph--d .ph__scene { left: 12px; top: 50%; translate: 0 -50%; width: 600px; height: 500px; }
.ph--d .ph__copy { align-self: end; }
.ph--d h1 { max-width: 12ch; }
.ph--d .ph__line { color: var(--c-ink-soft); max-width: 34ch; }
.ph--d .ph__form { align-self: start; }
.ph--d .formbox { margin-top: var(--space-5); max-width: 460px; }
@media (max-width: 1099px) {
  .ph--d { padding-top: 0; }
  .ph--d .ph__in { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; min-height: 0; padding-inline: 0; }
  .ph--d .ph__copy { grid-row: 1; align-self: auto; padding: var(--space-5) var(--gutter) var(--space-5); }
  .ph--d .ph__media { grid-row: 2; border-radius: 0; box-shadow: none; }
  .ph--d .ph__form { grid-row: 3; padding: 0 var(--gutter); }
}
@media (max-width: 699px) {
  .ph--d .ph__media { aspect-ratio: auto; height: 960px; --focus: 84% 0%; --pos: 84% 0%; }
  .ph--d .ph__media::after { top: auto; height: 74%; background: linear-gradient(0deg, color-mix(in srgb, var(--c-night-2) 60%, transparent) 0%, transparent 100%); }
  .ph--d .ph__scene { left: 50%; top: auto; bottom: 14px; translate: -50% 0; width: min(380px, calc(100% - 20px)); height: 660px; }
  .ph--d .ph__media > .stop { top: auto; bottom: 682px; }
}

/* ---------- change: the same call, missed on one photo and booked on the other ---------- */
.change__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); max-width: 1160px; margin: 0 auto; }
.change__shot { margin: 0; aspect-ratio: 4 / 5; }
.change__shot--missed { --focus: 62% 40%; }
.change__shot--answered { --focus: 60% 30%; }
.change__shot::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, color-mix(in srgb, var(--c-night-2) 58%, transparent) 0%, transparent 46%); }
.change__scene { left: 16px; bottom: 16px; width: min(320px, calc(100% - 32px)); height: 260px; }
.change__tag { position: absolute; top: 16px; left: 16px; z-index: 4; padding: 7px 12px; border-radius: var(--radius-pill); font: 700 13px/1 var(--font-ui); letter-spacing: 0.02em; }
.change__tag--missed { background: color-mix(in srgb, var(--c-missed) 78%, #000); color: #fff; }
.change__tag--answered { background: var(--c-accent); color: var(--c-night); }
@media (max-width: 899px) {
  .change__pair { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .change__shot { aspect-ratio: 4 / 5.4; }
  .change__scene { width: min(320px, calc(100% - 24px)); left: 12px; bottom: 12px; }
}

/* ---------- night: tonight's calls into tomorrow's slots, on the designed ground ---------- */
.night .ground__rings { right: -26%; top: 2%; }
.night__stage { position: relative; }
.night__scene { position: relative; width: 100%; height: 460px; }
.night__stage > .stop { top: -46px; right: 0; }
@media (max-width: 819px) { .night__scene { height: 560px; max-width: 460px; margin-inline: auto; } }

/* ---------- reviews: the review asked by text, over the homeowner smiling at her phone ---------- */
.reviews__in { display: grid; grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr); gap: var(--space-6); align-items: center; }
.reviews__copy h2 { font-size: var(--fs-h2); max-width: 15ch; }
.reviews__copy .head__line { margin-top: var(--space-3); max-width: 38ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--c-ink-soft); }
.reviews__shot { height: 660px; --focus: 60% 50%; }
.reviews__shot::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c-night-2) 50%, transparent) 0%, transparent 48%); }
.reviews__scene { left: 20px; top: 20px; bottom: 20px; width: 360px; }
@media (max-width: 999px) {
  .reviews__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .reviews__shot { aspect-ratio: auto; height: 640px; --focus: 66% 40%; }
}
@media (max-width: 599px) {
  .reviews__shot { height: 940px; margin-inline: calc(-1 * var(--gutter)); border-radius: 0; --focus: 64% 0%; }
  .reviews__shot::after { background: linear-gradient(0deg, color-mix(in srgb, var(--c-night-2) 56%, transparent) 0%, transparent 70%); }
  .reviews__scene { left: 50%; top: auto; bottom: 12px; translate: -50% 0; width: min(400px, 100%); height: 700px; }
  .reviews__shot > .stop { top: auto; bottom: 724px; }
}

/* ---------- chat: the site's chat opening from the laptop's lit screen ---------- */
/* the words on the night above the photo; the chat over the laptop's lit screen (x 28 to 77%, y 10 to 66% of the frame) */
.chat { display: grid; background: var(--c-night-2); --focus: 50% 40%; }
.chat > img, .chat > picture > img { position: relative; inset: auto; grid-row: 2; grid-column: 1; width: calc(100% + 2px); max-width: none; height: clamp(600px, 48vw, 720px); margin: 0 -1px -1px; object-fit: cover; }
.chat__in { position: relative; z-index: 4; grid-row: 1; grid-column: 1; padding-block: var(--section-y) var(--space-5); color: var(--c-on-night); text-align: center; }
.chat__in h2 { max-width: 20ch; margin-inline: auto; font-size: var(--fs-h2); color: var(--c-on-night); }
.chat__in .head__line { max-width: 52ch; margin: var(--space-3) auto 0; font-size: var(--fs-lead); line-height: 1.5; color: var(--c-on-night-soft); }
.chat > .chat__scene { position: relative; grid-row: 2; grid-column: 1; align-self: start; justify-self: center; margin: clamp(56px, 5vw, 80px) 0 0 2%; width: min(640px, calc(100% - 28px)); height: 400px; }
.chat > .stop { position: relative; grid-row: 2; grid-column: 1; top: 16px; right: auto; justify-self: end; align-self: start; margin-right: 16px; }
@media (max-width: 1099px) {
  .chat { --focus: 52% 30%; }
  .chat > img, .chat > picture > img { height: 640px; }
  .chat > .chat__scene { align-self: center; margin: 0; width: min(420px, calc(100% - 28px)); height: 420px; }
}

/* ---------- close ---------- */
.page-rev .close-band { --focus: 50% 28%; }
