@import url("../arsenal/word-window.css");
/* The Ads page (plan.md, "Ads"). #hero: the arch at the left (the kit's rotate: the bare yard, then its pool), funnel in
   glass over its right edge, the words at the right. #google: the hands with the phone over the patio table, full
   bleed, the ad tapped and the visit booked in glass at its left. #break: word-window "Booked." (the site's one big
   piece). #lsa: the crew plastering a pool, the Google Verified card in glass over the sky. #social: the mother and
   child by a finished pool, framed, the feed's ad in glass at its right. #signature: clicks-clients in its panel on the
   designed ground. #faq. #close: the owner at the new customer's door, the panel at the left. Tokens only. */

/* ---------- #hero: the arch, the funnel over its right edge, the words ---------- */
.adh { padding-block: 0; }
.adh__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); min-height: clamp(640px, calc(100svh - 84px), 800px); padding-block: clamp(2.5rem, 4.5vw, 3.75rem); }
.adh__words { max-width: 30rem; }
.adh__title { margin: 0 0 1rem; font-size: clamp(2.4rem, 1.4rem + 2.5vw, 3.6rem); line-height: 1.06; }
.adh__line { margin: 0 0 1.75rem; }
.adh__cta { display: grid; justify-items: start; }
.adh__art { position: relative; height: 620px; }
/* the organic curve: an arch, its top a half circle */
.adh__arch { position: absolute; top: 0; bottom: 0; left: 0; z-index: 0; isolation: isolate; width: 440px; overflow: hidden; border-radius: 220px 220px var(--radius-l) var(--radius-l); background: var(--c-ink); box-shadow: var(--shadow-l); }
.scene.adh__funnel { position: absolute; top: 50%; right: 0; z-index: 2; width: min(460px, 70%); height: 460px; translate: 0 -50%; }
.adh__stop { top: auto; bottom: 1rem; left: 1rem; }

/* the kit's rotate, as kit.md gives it */
[data-kit-scene="rotate"] [data-kit-slide] { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; }
[data-kit-scene="rotate"] [data-kit-slide][data-kit-on] { visibility: visible; z-index: 2; opacity: var(--kit-move, 1); transform: translateX(var(--kit-glide, calc((1 - var(--kit-move, 1)) * 4%))); }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-prev])) [data-kit-slide][data-kit-on] { transform: none; opacity: 1; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { visibility: visible; z-index: 1; }
[data-kit-scene="rotate"] [data-kit-slide] video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-kit-on])) [data-kit-slide]:not([data-kit-slide] ~ [data-kit-slide]) { visibility: visible; }
[data-kit-scene="rotate"] [data-kit-slide] video { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; clip-path: inset(2px); }
[data-kit-scene="rotate"] [data-kit-slide] video[data-kit-shown] { clip-path: none; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { opacity: clamp(0, (1 - var(--kit-move, 0)) * 1000, 1); }
@media (scripting: none) { [data-kit-scene="rotate"] [data-kit-slide] video { display: none; } }
.adh__slide--1 { --pos: 42% 50%; }   /* the bare lawn and the patio, where the pool will go */
.adh__slide--2 { --pos: 30% 50%; }   /* the finished pool, the potted plant at its corner */

@media (max-width: 1199px) {
  .adh__in { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 2.5rem; min-height: 0; padding-block: 2.5rem 3.5rem; }
  .adh__words { order: -1; max-width: 40rem; text-align: center; }
  .adh__cta { justify-items: center; }
  .adh__art { width: min(720px, 100%); height: 600px; }
}
/* on the phone: the arch on top, the funnel over its foot */
@media (max-width: 759px) {
  .adh__in { justify-items: stretch; gap: 2rem; padding-block: 1.75rem 2.5rem; }
  .adh__words { text-align: left; }
  .adh__cta { justify-items: start; }
  .adh__title { font-size: clamp(2.15rem, 1.5rem + 3vw, 2.6rem); }
  .adh__art { display: grid; width: 100%; height: auto; }
  .adh__arch { position: relative; width: 100%; height: 520px; border-radius: calc(50vw - var(--gutter)) calc(50vw - var(--gutter)) var(--radius-l) var(--radius-l); }
  .scene.adh__funnel { position: relative; top: auto; right: auto; width: 100%; height: 450px; translate: none; margin-top: -232px; }
  .adh__stop { top: 13rem; bottom: auto; left: .75rem; }
}

/* ---------- #google and #lsa: a full-bleed photo with its stack in glass ---------- */
.adg, .adl { padding-bottom: 0; }
.adg__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: clamp(1.5rem, 4vw, 4rem); margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.adg__head h2, .adg__head .lede { margin: 0; }
.adl__head { max-width: 40rem; margin: 0 0 clamp(1.75rem, 3.5vw, 2.75rem) auto; text-align: right; }
.adl__head .lede { margin: 0 0 0 auto; }
.adg__frame, .adl__frame { position: relative; isolation: isolate; height: clamp(520px, 46vw, 720px); overflow: hidden; background: var(--c-ink); }
.adg__frame > img, .adl__frame > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.adg__frame > img { object-position: 50% 40%; }
.adl__frame > img { object-position: 50% 35%; }
.adg__seq { left: max(var(--gutter), calc((100% - var(--max-w)) / 2)); top: 50%; translate: 0 -50%; width: min(21rem, 30%); }
.adl__seq { left: max(var(--gutter), calc((100% - var(--max-w)) / 2)); top: 1.75rem; width: min(21rem, 30%); }
.adg__stop, .adl__stop { top: 1.25rem; right: var(--gutter); }
/* the search ad: its call button pressed as the call comes in */
.adg__btn { justify-self: start; display: inline-flex; align-items: center; gap: .35rem; margin-top: .3rem; padding: .4rem .85rem; border-radius: 999px; background: var(--c-brand-dark); color: var(--c-paper); font-family: var(--font-ui); font-size: .8125rem; font-weight: 800; transition: scale var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.adg__btn .icon { width: 1em; height: 1em; }
.adg__seq:has(> :nth-child(2)[data-kit-on]) .adg__btn { scale: .93; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-brand) 30%, transparent); }
.adl__badge { display: inline-flex; align-items: center; gap: .3rem; color: var(--c-brand-dark); font-weight: 800; }
.adl__badge .icon { width: 1.05em; height: 1.05em; }
@media (max-width: 1023px) {
  .adg__head { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .adg__seq, .adl__seq { width: min(21rem, 46%); }
}
/* on the phone: the photo, its stack over the photo's foot */
@media (max-width: 759px) {
  .adl__head { text-align: left; margin-left: 0; }
  .adl__head .lede { margin-left: 0; }
  .adg__frame, .adl__frame { height: auto; padding-top: 500px; overflow: visible; background: none; }
  .adg__frame > img, .adl__frame > img { bottom: auto; left: 0; width: 100%; height: 500px; }   /* no 1 px bleed past the screen's sides */
  .adg__frame > img { object-position: 50% 40%; }
  .adl__frame > img { object-position: 95% 40%; }
  .adg__seq, .adl__seq { position: relative; inset: auto; translate: none; width: auto; margin: -9.75rem .75rem 0; }
  .adg__stop, .adl__stop { top: .75rem; right: .75rem; }
}

/* ---------- #break: word-window, the site's one big piece ---------- */
.adw__stop { top: auto; right: var(--gutter); bottom: 1.5rem; }

/* ---------- #social: the framed clip, the feed's ad in glass at its right ---------- */
.ado__in { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: center; gap: clamp(1.75rem, 4vw, 3.5rem); }
.ado__words { max-width: 26rem; }
.ado__frame { position: relative; height: clamp(500px, 40vw, 580px); margin: 0; }
.ado__pic { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius-l); background: var(--c-ink); box-shadow: var(--shadow-l); }
.ado__pic video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 40% 50%; }
.ado__seq { top: 1.25rem; right: 1.25rem; width: min(19rem, 44%); }
.ado__stop { top: auto; right: 1rem; bottom: 1rem; }
.ado__post { display: grid; gap: .5rem; padding: .85rem 1rem; }
.ado__who { display: flex; align-items: center; gap: .55rem; }
.ado__who i { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--c-brand-dark); color: var(--c-paper); font: 800 .875rem/1 var(--font-ui); font-style: normal; }
.ado__who b { display: block; font-size: .9375rem; }
.ado__who small { margin: 0; }
.ado__text { color: var(--c-ink); font: 600 1.0625rem/1.3 var(--font-display); }
.ado__btn { padding: .5rem .75rem; border-radius: var(--radius-s); background: color-mix(in srgb, var(--c-brand) 14%, var(--c-paper)); color: var(--c-brand-dark); font-family: var(--font-ui); font-size: .8125rem; font-weight: 800; text-align: center; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.ado__seq:has(> :nth-child(2)[data-kit-on]) .ado__btn { background: var(--c-brand-dark); color: var(--c-paper); }
@media (max-width: 1023px) {
  .ado__in { grid-template-columns: minmax(0, 1fr); }
  .ado__words { max-width: 40rem; }
}
/* on the phone: the feed's ad and the booking over the clip's foot, clear of the child */
@media (max-width: 759px) {
  .ado__frame { height: auto; padding-top: 500px; }
  .ado__pic { bottom: auto; height: 500px; }
  .ado__pic video { object-position: 50% 50%; }
  .ado__seq { position: relative; inset: auto; width: auto; margin: -7.25rem .75rem 0; }
  .ado__seq > :nth-child(2) { display: none; }
  .ado__stop { top: .75rem; bottom: auto; right: .75rem; }
}

/* ---------- #signature: the scene in its panel on the designed ground ---------- */
.adsig__panel { height: 520px; }
.scene.adsig__scene { position: absolute; inset: 0; border-radius: inherit; }
.adsig__stop { top: 1rem; right: 1rem; }
@media (max-width: 1023px) { .adsig__panel { height: 640px; } }
@media (max-width: 759px) { .adsig__panel { height: 660px; } }

/* ---------- #close: a lawyer shaking hands with new clients, the panel at the left ---------- */
.adclose { --close-pos: 70% 40%; --close-pos-m: 84% 20%; }
.adclose__seq { top: 1.5rem; left: 45%; width: min(17rem, 26%); }
@media (max-width: 1199px) {
  .adclose { min-height: 0; align-items: end; justify-items: center; padding: 22rem 1.5rem 1.5rem; }
  .adclose::after { background: linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 50%, transparent), transparent 60%); }
  .adclose .close__media :is(video, img) { object-position: 78% 25%; }
  .adclose__seq { top: 1.25rem; left: 1.25rem; width: min(17rem, 40%); }
}
@media (max-width: 759px) {
  .adclose { padding: 22rem .75rem .75rem; justify-items: stretch; }
  .adclose .close__media :is(video, img) { object-position: var(--close-pos-m); }
  .adclose__seq { top: .75rem; left: .75rem; right: 3.75rem; width: auto; }
}
