/* Never miss a lead (plan.md). Layout L: the words at the left, two framed photos side by side at the right (by day,
   by night), each with its card; the day of calls as 24 bars on the navy; the call that books itself over a framed
   photo; the questions; the close. Tokens only. */

/* ---------- the header ---------- */
.mlh { padding-block: clamp(2rem, 1rem + 4vh, 3.5rem) clamp(3.5rem, 2rem + 6vh, 6rem); }
.mlh__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(2rem, 1rem + 4vw, 5rem); min-height: clamp(480px, 66vh, 620px); }
.mlh__pair { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.9rem, .5rem + 1vw, 1.4rem); align-items: end; }
.mlh__stop { top: -6px; right: -6px; }
.mlh__frame { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-l); box-shadow: var(--shadow-m); }
/* the day frame the shorter, the night frame the taller: two of the logo's rising bars */
.mlh__frame--day { aspect-ratio: 3 / 4; }
.mlh__frame--night { aspect-ratio: 3 / 4.6; }
.mlh__frame--night::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px var(--c-accent); pointer-events: none; }
.mlh__card { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 10px; display: grid; gap: .1rem; padding: .75rem .9rem; border-radius: var(--radius-m); background: var(--c-card); box-shadow: var(--shadow-l); font-size: .84rem; line-height: 1.3; }
.mlh__time { font: 600 .74rem/1.2 var(--font-ui); letter-spacing: .06em; color: var(--c-accent-text); }
.mlh__card b { font-weight: 600; color: var(--c-brand); }
.mlh__card small { color: var(--c-ink-soft); font-size: .82rem; }

/* ---------- the day of calls (the signature), on the navy ---------- */
.mday .head { margin-inline: auto; }
.mday__stage { position: relative; max-width: 1040px; margin: 0 auto; }
.mday__stop { top: -10px; right: 0; }
.mday__hours { list-style: none; margin: 0; padding: 2.4rem 0 2rem; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: clamp(3px, .4vw, 8px); align-items: end; border-bottom: 2px solid color-mix(in srgb, var(--c-on-ink) 22%, transparent); }
.mday__hour { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 220px; }
/* each hour's bar: a low step for a quiet hour, taller for each call; the day hours on the paper, the night on the navy lifted */
.mday__bar { display: block; height: calc(26px + var(--calls) * 72px); border-radius: 4px 4px 0 0; background: var(--c-paper); }
.mday__hour.is-night .mday__bar { background: var(--c-navy-lifted); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-on-ink) 14%, transparent); }
/* the brass sweep: each hour lights as it passes, and an hour with a call gets its check, answered */
.mday__pass { position: absolute; left: 50%; bottom: calc(26px + var(--calls) * 72px + 8px); translate: -50% 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c-accent); }
.mday__hour[style*="--calls: 0"] .mday__pass { width: 8px; height: 8px; background: color-mix(in srgb, var(--c-accent) 70%, transparent); }
.mday__pass svg { width: 12px; height: 12px; fill: none; stroke: var(--c-on-accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mday__label { position: absolute; left: 0; bottom: -1.9rem; font: 500 var(--fs-ui)/1 var(--font-ui); letter-spacing: .04em; color: var(--c-brand-on-ink); white-space: nowrap; }
.mday__count { margin: 2.6rem 0 0; text-align: center; font: 600 var(--fs-h3)/1.2 var(--font-display); color: var(--c-on-ink); }
.mday__count b { font-weight: 600; }
.mday__count b + b { color: var(--c-accent-on-ink); }
.mday__cards { list-style: none; margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, .5rem + 1.2vw, 1.5rem); }
.mday__cards li { padding: 1.3rem 1.4rem; border-radius: var(--radius-m); background: var(--c-navy-lifted); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-on-ink) 10%, transparent); }
.mday__cards h3 { font-size: var(--fs-h3); color: var(--c-on-ink); }
.mday__cards p { margin-top: .45rem; font-size: var(--fs-small); line-height: 1.5; color: var(--c-brand-on-ink); }

/* ---------- the call that books itself ---------- */
.mcall__frame { position: relative; overflow: hidden; min-height: 560px; border-radius: var(--radius-l); box-shadow: var(--shadow-m); }
.mcall__media { position: absolute; inset: 0; overflow: hidden; background: var(--c-paper-alt); }
.mcall__stop { top: 16px; left: 16px; right: auto; }
.scene.mcall__scene { position: relative; min-height: 560px; }

/* ---------- the phone ---------- */
@media (max-width: 899.98px) {
  .mlh__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .mday__cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 759.98px) {
  .mlh__card { padding: .6rem .7rem; font-size: .78rem; }
  .mlh__card small { font-size: .76rem; }
  .mday__hour { height: 170px; }
  .mday__bar { height: calc(16px + var(--calls) * 52px); }
  .mday__pass { width: 14px; height: 14px; bottom: calc(16px + var(--calls) * 52px + 6px); }
  .mday__pass svg { width: 9px; height: 9px; }
  .mday__hour[style*="--calls: 0"] .mday__pass { width: 6px; height: 6px; }
  .mcall__frame { min-height: 600px; }
  .scene.mcall__scene { min-height: 600px; }
  /* the close's card on the door frame at the right, clear of the technician's face */
  .closer__over .ml__card { left: auto; right: 10px; width: 62%; }
}
