/* Tracking & Follow-Up (plan.md): header E (a wide photo band on top with the new jobs on its open left side, the words
   under it at the left and the form at the right over the band's foot), the one inbox on the designed ground, one
   lead's thread over the owner at his desk, the source board on the designed ground, the work order over the job it
   saved, and the close. */

/* ---------- top: header layout E ---------- */
.ph--e { padding-bottom: var(--space-6); background: var(--c-paper); }
.ph--e .ph__media { height: clamp(440px, 56vh, 560px); --focus: 40% 0%; }
.ph--e .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) 52%, transparent) 0%, color-mix(in srgb, var(--c-night-2) 18%, transparent) 26%, transparent 40%), linear-gradient(0deg, color-mix(in srgb, var(--c-night-2) 30%, transparent) 0%, transparent 30%); }
.ph--e .ph__scene { left: 24px; top: 28px; width: 430px; height: 400px; }
.ph--e .ph__media > .stop { top: auto; bottom: 16px; left: 24px; right: auto; }
.ph--e .ph__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: var(--space-6); align-items: start; }
.ph--e .ph__copy { padding-top: var(--space-5); }
.ph--e h1 { max-width: 16ch; }
.ph--e .ph__line { color: var(--c-ink-soft); }
.ph--e .ph__form { position: relative; z-index: 5; margin-top: -180px; }
.ph--e .formbox { margin-top: 0; }
@media (max-width: 1199px) {
  .ph--e { display: grid; }
  .ph--e .ph__in { display: contents; }
  .ph--e .ph__copy { grid-row: 1; grid-column: 1; padding: var(--space-5) var(--gutter); }
  .ph--e .ph__media { grid-row: 2; grid-column: 1; height: 640px; }
  .ph--e .ph__scene { top: auto; bottom: 14px; }
  .ph--e .ph__media > .stop { top: auto; bottom: 360px; left: 342px; }
  .ph--e .ph__form { grid-row: 3; grid-column: 1; margin-top: 0; padding: var(--space-5) var(--gutter) 0; }
}
@media (max-width: 699px) {
  .ph--e .ph__media { height: 720px; --focus: 42% 0%; }
  .ph--e .ph__scene { left: 50%; translate: -50% 0; width: min(360px, calc(100% - 24px)); height: 360px; }
  .ph--e .ph__media > .stop { left: auto; right: 12px; bottom: 380px; }
  /* on a phone the source chips are set a size smaller, so "Booked" stays whole beside them */
  .ph--e [data-scene="newclients"] .nc-src { font-size: 13px; padding-inline: 8px; }
}

/* ---------- inbox: every channel into one inbox, on the designed ground ---------- */
.inbox .ground__rings { left: -30%; top: 10%; }
.inbox__in { display: grid; grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.68fr); gap: var(--space-6); align-items: center; }
.inbox__copy h2 { font-size: var(--fs-h2); color: var(--c-on-night); max-width: 13ch; }
.inbox__copy .head__line { margin-top: var(--space-3); max-width: 34ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--c-on-night-soft); }
.inbox__stage { position: relative; }
.inbox__scene { position: relative; width: 100%; height: 520px; }
.inbox__stage > .stop { top: 10px; right: 10px; }
@media (max-width: 999px) {
  .inbox__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .inbox__scene { height: 560px; }
}
@media (max-width: 699px) { .inbox__scene { height: 660px; max-width: 420px; margin-inline: auto; } }

/* ---------- seen: one lead's thread over the owner at his desk at dusk ---------- */
.seen { height: clamp(700px, 54vw, 780px); --focus: 50% 40%; }
.seen::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c-night-2) 78%, transparent) 0%, color-mix(in srgb, var(--c-night-2) 40%, transparent) 26%, transparent 40%), linear-gradient(270deg, color-mix(in srgb, var(--c-night-2) 40%, transparent) 0%, transparent 30%); }
.seen__in { position: relative; z-index: 4; padding-top: clamp(48px, 5vw, 72px); color: var(--c-on-night); }
.seen__in h2 { font-size: var(--fs-h2); max-width: 11ch; color: var(--c-on-night); }
.seen__in .head__line { margin-top: var(--space-3); max-width: 26ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--c-on-night); text-shadow: 0 1px 3px color-mix(in srgb, var(--c-night) 55%, transparent); }
.seen > .seen__scene { right: max(var(--gutter), calc((100% - var(--max-w)) / 2 + var(--gutter))); top: 120px; width: 420px; height: 480px; }
.seen > .stop { top: 72px; right: max(var(--gutter), calc((100% - var(--max-w)) / 2 + var(--gutter))); }
@media (max-width: 899px) {
  .seen { display: grid; height: auto; background: var(--c-night-2); --focus: 46% 30%; }
  .seen::after { display: none; }
  .seen > img, .seen > picture > img { position: relative; inset: auto; grid-row: 2; grid-column: 1; width: calc(100% + 2px); max-width: none; height: 800px; margin: 0 -1px -1px; object-fit: cover; }
  .seen__in { grid-row: 1; grid-column: 1; padding-block: var(--section-y) var(--space-5); }
  .seen__in h2 { max-width: 16ch; }
  .seen__in .head__line { max-width: 40ch; }
  .seen > .seen__scene { position: relative; grid-row: 2; grid-column: 1; align-self: end; justify-self: center; right: auto; top: auto; width: min(360px, calc(100% - 24px)); height: 470px; margin-bottom: 12px; }
  .seen > .stop { position: relative; grid-row: 2; grid-column: 1; top: auto; right: auto; justify-self: end; align-self: end; margin: 0 12px 494px 0; }
}

/* ---------- sources: the month's board, on the designed ground ---------- */
.sources .ground__rings { right: -24%; top: 4%; }
.sources__stage { position: relative; max-width: 1000px; margin: 0 auto; }
.sources__scene { position: relative; width: 100%; height: 500px; }
.sources__stage > .stop { top: -46px; right: 0; }
@media (max-width: 679px) { .sources__scene { height: 680px; max-width: 420px; margin-inline: auto; } }

/* ---------- booked: the work order of a saved lead, over the job it became ---------- */
.booked__in { display: grid; grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr); gap: var(--space-6); align-items: center; }
.booked__copy h2 { font-size: var(--fs-h2); max-width: 12ch; }
.booked__copy .head__line { margin-top: var(--space-3); max-width: 34ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--c-ink-soft); }
.booked__shot { height: 680px; --focus: 45% 40%; }
.booked__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) 48%, transparent) 0%, transparent 52%); }
.booked__scene { left: 20px; top: 20px; width: 360px; height: 640px; }
.booked__shot > .stop { top: 20px; right: 20px; }
@media (max-width: 999px) {
  .booked__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .booked__shot { --focus: 52% 30%; }
}
@media (max-width: 599px) {
  .booked__shot { height: 860px; --focus: 55% 0%; }
  .booked__shot::after { background: linear-gradient(0deg, color-mix(in srgb, var(--c-night-2) 54%, transparent) 0%, transparent 74%); }
  .booked__scene { left: 50%; top: auto; bottom: 12px; translate: -50% 0; width: min(360px, calc(100% - 20px)); }
  .booked__shot > .stop { top: auto; bottom: 662px; right: 12px; }
}

/* ---------- close ---------- */
.page-trk .close-band { --focus: 50% 30%; }
