/* Contractors (plan.md, the niche pages). Layout G: the clip to the window's edges (two builders at work among pines,
   a seamless loop), `everycall` on glass over the trees at the upper left, the words over the clip's lower third on a
   full-width band of paper, below the builders. The outcomes, the tour, the questions and the close are shared
   (design\components.css, "the niche pages"). Tokens only. */

/* ---------- the header ---------- */
.cth { position: relative; isolation: isolate; display: grid; grid-template-rows: 1fr auto; min-height: clamp(680px, calc(100svh - var(--header-h)), 860px); }
.cth__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--c-brand); }
.cth__stop { top: 18px; right: 18px; }
.cth__top { position: relative; padding-block: clamp(1.25rem, .75rem + 2.5vh, 2.75rem) 1.5rem; }
/* the calls, on glass over the trees, above the builders (their heads at 53% of the clip) */
.scene.cth__scene { position: relative; width: 420px; }
.cth__band { position: relative; padding-block: clamp(1.75rem, 1rem + 2vh, 2.6rem); border-radius: var(--radius-l) var(--radius-l) 0 0; background: var(--c-paper); }
.cth__words { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: clamp(1.5rem, 1rem + 3vw, 4rem); }
.cth__words .ph__title { font-size: clamp(2.2rem, 1.5rem + 2.5vw, 3.5rem); }
.cth__words .ph__line { margin-top: 0; font-size: clamp(1.05rem, 1rem + .25vw, 1.18rem); }
.cth__words .ph__cta { margin-top: 1.1rem; }

/* ---------- the close: the phone's photo is square, the card under the faces ---------- */
@media (max-width: 899.98px) {
  .con-close .closer__media, .con-close .closer__over { aspect-ratio: 1; }
}

/* ---------- narrower ---------- */
@media (max-width: 1099.98px) {
  .cth__words { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}
@media (max-width: 759.98px) {
  /* the phone: the clip on the top 520 px with the calls over its trees, the words on the paper under it */
  .cth { display: block; min-height: 0; }
  .cth__media { bottom: auto; height: 520px; }
  .cth__top { height: 520px; padding-top: 14px; }
  .scene.cth__scene { width: auto; }
  .cth__band { border-radius: 0; }
}
