/* Google Advertising (/google-advertising/): the framed header, the break and the page's own sizes for its scenes;
   every shared look is in components.css. */

/* the header: the words centered, a wide rounded frame under them, the search card hanging off its top edge on the
   lawn's calm side, the photo drifting under it (adv-adtop) */
.gh { padding-block: clamp(40px, 5vw, 72px) clamp(56px, 6vw, 96px); }
.gh__copy { display: grid; justify-items: center; gap: var(--space-3); max-width: 860px; margin-inline: auto; text-align: center; }
.gh__copy h1 { margin: 0; font-size: clamp(2.3rem, 1.3rem + 2.7vw, 3.8rem); text-wrap: balance; }
.gh__copy .lead { margin: 0; max-width: 640px; }
.gh__frame { position: relative; margin-top: clamp(64px, 6vw, 84px); }
.gh__media { position: relative; margin: 0; height: clamp(400px, 38vw, 540px); border-radius: 28px; overflow: hidden; background: var(--c-ink-2); box-shadow: var(--shadow-l); }
.gh__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--focus, 50% 50%); transform-origin: 60% 45%; }
.gh__card { position: absolute; z-index: 2; left: clamp(20px, 4vw, 56px); top: -48px; width: min(420px, 46%); }
.gh__stop { position: absolute; z-index: 3; right: 16px; top: 16px; }
@media (max-width: 760px) {
  .gh__frame { margin-top: var(--space-4); }
  .gh__media { height: auto; aspect-ratio: 1; }
  .gh__media img { object-position: var(--focus-phone, var(--focus, 50% 50%)); }
  /* on the phone the card hangs under the photo's foot, clear of her face, its search in the first screen; its box
     keeps its tallest state */
  .gh__card { position: relative; left: auto; top: auto; width: auto; min-height: 310px; margin: -128px 10px 0; }
  .gh__stop { top: 12px; right: 12px; }
}

/* written for buyers: the budget card in glass on the calm left of the couple's photo */
.gads__cost { max-width: 540px; }
@media (max-width: 900px) { .gads-buyers { --chapter-media-h: 125vw; --chapter-overlap: 220px; } }

/* the break: the ring draws around "Booked jobs" and closes in orange as it comes into view, "Clicks" stepping back */
/* (overflow clip, as .ground's: "hidden" would make the part a scroll container and hold the ring's view timeline) */
.brk { position: relative; overflow: clip; padding-block: clamp(110px, 13vw, 190px); }
.brk__in { position: relative; z-index: 1; }
.brk__line { margin: 0; text-align: center; font-size: clamp(2.5rem, 1.25rem + 4.3vw, 5.4rem); line-height: 1.1; color: var(--c-paper); }
.brk__a, .brk__b { display: block; }
.brk__a { color: var(--c-on-ink); }
.brk__b { margin-top: 0.18em; }
.brk__w { position: relative; display: inline-block; margin-inline: 0.12em 0.22em; white-space: nowrap; }
.brk__ring { position: absolute; left: -5%; top: -36%; width: 110%; max-width: none; height: 168%; overflow: visible; pointer-events: none; }
.brk__ring path { fill: none; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.brk__arc--1 { stroke: var(--c-found); }
.brk__arc--2 { stroke: var(--c-answered); }
.brk__arc--3 { stroke: var(--c-chosen); }
.brk__close { stroke: var(--c-accent); stroke-width: 3.5; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .brk__ring path { stroke-dashoffset: 1; animation: brk-draw linear both; animation-timeline: view(); }
    .brk__arc--1 { animation-range: entry 70% cover 34%; }
    .brk__arc--2 { animation-range: entry 85% cover 38%; }
    .brk__arc--3 { animation-range: entry 100% cover 42%; }
    .brk__close { animation-range: cover 40% cover 52%; }
    .brk__a { animation: brk-dim linear both; animation-timeline: view(); animation-range: cover 30% cover 46%; }
  }
}
@supports not (animation-timeline: view()) { .brk__a { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .brk__a { opacity: 0.45; } }
@keyframes brk-draw { to { stroke-dashoffset: 0; } }
@keyframes brk-dim { to { opacity: 0.45; } }

/* your first months: the chart in glass over the office's calm left */
.gads-months .grp__h { margin: 0; font-size: clamp(1.9rem, 1.2rem + 1.9vw, 2.8rem); text-wrap: balance; }
@media (min-width: 761px) { .gads-months .grp__scene { width: min(420px, 62%); } }
/* on the phone the photo runs taller so her face stays above the chart */
@media (max-width: 760px) { .gads-months .grp__media { aspect-ratio: 3 / 5; } }

/* the signature: the ring of ads and the month's list */
.gads__arcs { max-width: 1000px; margin-inline: auto; }
.gads__arcs .scene { height: 560px; }
@container (width < 700px) { .gads__arcs .scene { height: auto; } }
/* on the phone the stop icon sits in the ring's free top corner, so it and the whole picture fit one view */
@media (max-width: 760px) { .sig__stage.gads__arcs { margin-top: var(--space-4); } .gads__arcs > .sig__stop { top: 0; right: 0; z-index: 2; } }
