/* execution.css: Execution (its own architecture: one customer's path, chapter by chapter, each system on its own
   footage or photo, ending on the tracking where the customers are counted). Tokens only. */

/* ---------- each chapter's services: one glass card in its picture, each service with what it gives ---------- */
.ex-svc { list-style: none; margin: 8px 0 0; padding: 4px 18px; border-radius: 18px; color: var(--c-on-brand);
  background: var(--glass-bg); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%); backdrop-filter: blur(var(--glass-blur)) saturate(150%); border: 1px solid var(--glass-line); box-shadow: var(--shadow-glass); }
.ex-svc li { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 14px; row-gap: 3px; padding: 13px 0; }
.ex-svc li + li { border-top: 1px solid color-mix(in srgb, var(--c-on-brand) 12%, transparent); }
.ex-svc__mark { grid-row: 1 / span 2; align-self: start; display: inline-flex; align-items: flex-end; gap: 2px; width: 16px; height: 15px; margin-top: 2px; }
.ex-svc__mark i { flex: 1; border-radius: 1px; background: var(--c-accent); }
.ex-svc__mark i:nth-child(1) { height: 35%; }
.ex-svc__mark i:nth-child(2) { height: 65%; }
.ex-svc__mark i:nth-child(3) { height: 100%; }
.ex-svc b { font: 650 15.5px/1.3 var(--font-ui); }
.ex-svc li > span:last-child { font: 400 14.5px/1.45 var(--font-text); color: var(--c-on-brand-soft); }

/* ---------- hero: its own composition (no other page opens so), split in two: the technician's day at full height on
   the left, the words and the picker on the right on the navy ground with the site's motif; the card in the footage's
   lower left, under the faces ---------- */
.ex-hero { --ex-split: 56%; position: relative; isolation: isolate; overflow: hidden; min-height: max(720px, min(100svh, 920px)); display: grid; grid-template-columns: minmax(0, var(--ex-split)) minmax(0, 1fr); color: var(--c-on-brand); background:
    radial-gradient(560px 420px at 100% 0%, var(--c-navy-raise), transparent 72%),
    radial-gradient(620px 380px at 70% 100%, color-mix(in srgb, var(--c-accent) 9%, transparent), transparent 70%),
    var(--c-brand); }
.ex-hero__slides { right: calc(100% - var(--ex-split)); }
.ex-hero__slide video { object-position: var(--pos, 50% 30%); }
/* the footage's shade: its top for the logo, its foot for the card, never over the faces */
.ex-hero__grade { position: absolute; inset: 0 calc(100% - var(--ex-split)) 0 0; z-index: 3; pointer-events: none; background:
    linear-gradient(180deg, color-mix(in srgb, var(--c-brand) 58%, transparent) 0%, transparent 20%, transparent 56%, color-mix(in srgb, var(--c-brand) 46%, transparent) 100%); }
/* the site's blueprint layer on the ground: two hairline guide lines at the words' column edges, full height */
.ex-hero__motif { position: absolute; z-index: 1; top: 0; bottom: 0; left: calc(var(--ex-split) + clamp(40px, 4vw, 64px) - 22px); right: calc(clamp(32px, 5vw, 80px) - 22px); border-inline: 1px solid var(--c-navy-line); opacity: 0.75; pointer-events: none; }
/* the card: in the footage's lower left; the stage is wider and taller than the card, so its shadow fits in the host */
.ex-hero__stage { position: absolute; z-index: 4; left: calc(max(var(--gutter), (100% - var(--max-w)) / 2) - 20px); bottom: clamp(28px, 5vh, 56px); width: 400px; height: 300px; }
.ex-hero__in { position: relative; z-index: 5; grid-column: 2; align-self: center; padding: calc(var(--header-top) + var(--header-h) + 36px) clamp(32px, 5vw, 80px) 72px clamp(40px, 4vw, 64px); }
.ex-hero__words { display: grid; gap: 22px; max-width: 540px; }
.ex-hero__words h1 { font-size: clamp(2.5rem, 3.6vw, 3.4rem); line-height: 1.03; letter-spacing: var(--track-display); font-weight: var(--w-display); }
.ex-hero__l2 { display: block; }
.ex-hero .lead { color: var(--c-on-brand-soft); max-width: 30em; }
.ex-hero__words .picker { justify-self: start; margin-top: 4px; }
.ex-hero > .stop { z-index: 6; right: calc(100% - var(--ex-split) + 16px); bottom: 16px; }
@media (min-width: 901px) and (max-width: 1240px) {
  .ex-hero { --ex-split: 50%; }
  .ex-hero__stage { left: 8px; width: 380px; height: 290px; }
}

/* ---------- found: a hot day at home, her AC out; the words on the left, the map card beside them, she on the right ---------- */
.ex-found, .ex-answered { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(80px, 8vw, 112px); background: var(--c-brand); color: var(--c-on-brand); }
.ex-found > .panel__media, .ex-answered > .panel__media { z-index: -2; }
/* drawn wider and anchored left, so her face sits right of the map card */
.ex-found > .panel__media video { left: -1px; right: auto; width: 110%; max-width: none; object-position: 0% 40%; }
.ex-found__grade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c-brand) 90%, transparent) 0%, color-mix(in srgb, var(--c-brand) 74%, transparent) 26%, color-mix(in srgb, var(--c-brand) 34%, transparent) 50%, color-mix(in srgb, var(--c-brand) 8%, transparent) 64%, transparent 76%, color-mix(in srgb, var(--c-brand) 24%, transparent) 100%); }
.ex-found__in { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 430px) minmax(0, 1fr); grid-template-areas: "words map ."; align-items: center; gap: 32px; }
.ex-found__stagewrap { grid-area: map; position: relative; }
.ex-found__stage { position: relative; height: 540px; }
/* the stop icon by the map card's lower right corner, on the footage beside it */
.ex-found__stagewrap > .stop { top: auto; right: -56px; bottom: 26px; }
.ex-found__words, .ex-answered__words { display: grid; gap: 16px; }
.ex-found__words { grid-area: words; }
/* set to its column: three even lines */
.ex-found__words .h2 { font-size: min(var(--fs-h2), 2.6rem); text-wrap: balance; }
.ex-found .section__line, .ex-answered .section__line { color: var(--c-on-brand-soft); }
.ex-answered > .stop { right: 16px; bottom: 16px; }

/* ---------- ads: the owner in his truck, framed; the ads panel on the truck's door side ---------- */
.ex-ads__in { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 56px; align-items: center; }
.ex-ads__words { display: grid; gap: 16px; }
.ex-frame { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-l); background: var(--c-brand); box-shadow: var(--shadow-l); }
.ex-frame__img { position: absolute; inset: -1px; z-index: -1; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.ex-ads__frame { aspect-ratio: 16 / 11; min-height: 580px; }
.ex-ads__frame .ex-frame__img { object-position: 100% 40%; } /* his face near the left edge, the truck door and the house for the panel */
.ex-ads__frame::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(270deg, color-mix(in srgb, var(--c-brand) 66%, transparent) 0%, color-mix(in srgb, var(--c-brand) 26%, transparent) 46%, transparent 64%); }
.ex-ads__frame .ex-ads__stage { position: absolute; right: 1%; top: 50%; width: min(64%, 460px); height: 540px; transform: translateY(-50%); } /* two classes: the scene's own host rule sets position too */
.ex-frame .stop { right: 14px; top: 14px; bottom: auto; }
.ex-ads__frame > .stop { left: auto; right: calc(1% + min(64%, 460px) + 12px); top: auto; bottom: 14px; } /* by the panel's lower left corner */
/* on the light grounds the services card is slate (the brand's dark card) */
.ex-ads__words .ex-svc, .ex-convert__words .ex-svc { margin-top: 14px; background: var(--c-slate); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- convert: her phone, close, its screen showing the page; the words and the services beside ---------- */
.ex-convert__in { position: relative; display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 80px; align-items: center; }
/* the photo is drawn at one size (0.33 of the file, 1320 x 1980) with its phone at the frame's center, so the screen
   keeps one scale and the page's words show at 13 px or more at every width */
.ex-convert__frame { position: relative; margin: 0; height: 720px; overflow: hidden; border-radius: var(--radius-l); background: var(--c-brand); box-shadow: var(--shadow-l); }
.ex-convert__frame img { position: absolute; width: 1320px; height: 1980px; max-width: none; left: calc(50% - 686px); top: calc(50% - 1063px); object-fit: cover; }
.ex-convert__frame [data-scene="ex-convert"] { position: absolute; inset: 0; } /* the page fills the whole screen */
.ex-convert__words { display: grid; gap: 16px; }
.ex-convert > .wrap > .stop, .ex-convert__in > .stop { left: 14px; top: 14px; right: auto; bottom: auto; }

/* ---------- answered: the technician's hands at work, the call card and the week on the wall beside them ---------- */
.ex-answered > .panel__media video { object-position: 24% 50%; }
.ex-answered__grade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c-brand) 92%, transparent) 0%, color-mix(in srgb, var(--c-brand) 76%, transparent) 34%, color-mix(in srgb, var(--c-brand) 14%, transparent) 58%, color-mix(in srgb, var(--c-brand) 22%, transparent) 100%); }
.ex-answered__in { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr) minmax(0, 520px); grid-template-areas: "words . cards"; align-items: center; }
.ex-answered__words { grid-area: words; }
.ex-answered__stage { grid-area: cards; position: relative; height: 560px; }
/* the cards sit 18 px inside the scene host, which clips: a shadow that stays inside that inset */
.ex-answered__stage[data-scene="callbook"] .cb-call, .ex-answered__stage[data-scene="callbook"] .cb-week { box-shadow: 0 10px 18px -10px color-mix(in srgb, var(--c-ink) 55%, transparent); }

/* ---------- tracked (the signature): the month's chart as the rising steps, on the navy ground and its gold light ---------- */
.ex-tracked { background: radial-gradient(820px 560px at 32% 72%, color-mix(in srgb, var(--c-accent) 13%, transparent), transparent 68%), radial-gradient(900px 600px at 90% -10%, var(--c-navy-raise), transparent 70%), var(--c-brand); }
.ex-tracked .section__line { color: var(--c-on-brand-soft); }
.ex-tracked__head { margin-inline: auto; text-align: center; max-width: 760px; }
.ex-tracked__stage { position: relative; height: 500px; margin-top: 56px; }
.ex-tracked > .stop { right: 16px; bottom: 16px; }

/* ---------- FAQ and close ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.45fr); gap: 24px 64px; align-items: start; }
.faq-wrap .section__head { margin-bottom: 0; position: sticky; top: calc(var(--header-h, 64px) + 40px); }
/* the close, full bleed and centered (its own ending): the finished job across the top, the words and the picker
   centered under it on the navy, rising into the footage's shade */
.ex-close { --ex-band: clamp(380px, 40vw, 560px); position: relative; isolation: isolate; overflow: hidden; padding-bottom: clamp(72px, 8vw, 104px); background: radial-gradient(760px 420px at 50% 100%, color-mix(in srgb, var(--c-accent) 9%, transparent), transparent 70%), var(--c-brand); color: var(--c-on-brand); text-align: center; }
.ex-close > .panel__media { position: relative; inset: auto; z-index: -2; height: var(--ex-band); overflow: hidden; }
.ex-close > .panel__media video { object-position: 62% 18%; }
.ex-close__grade { position: absolute; left: 0; right: 0; top: 0; z-index: -1; height: var(--ex-band); pointer-events: none; background: linear-gradient(180deg, color-mix(in srgb, var(--c-brand) 34%, transparent) 0%, transparent 26%, transparent 50%, color-mix(in srgb, var(--c-brand) 70%, transparent) 78%, var(--c-brand) 100%); }
.ex-close__in { position: relative; display: grid; justify-items: center; gap: 20px; max-width: 760px; margin-top: -88px; }
.ex-close__in .lead { color: var(--c-on-brand-soft); max-width: 34em; }
.ex-close__in .picker { width: min(100%, 500px); text-align: left; }
.ex-close > .stop { top: calc(var(--ex-band) - 52px); right: 16px; bottom: auto; } /* the footage's lower corner, clear of the page header */

@media (max-width: 1180px) and (min-width: 901px) {
  .ex-found__in { grid-template-columns: minmax(0, 330px) minmax(0, 400px) minmax(0, 1fr); grid-template-areas: "words map ."; gap: 28px; }
  .ex-found > .panel__media video { width: 130%; }
  .ex-answered__in { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); grid-template-areas: "words cards"; gap: 40px; }
  .ex-ads__in { grid-template-columns: minmax(0, 1fr); }
  .ex-convert__in { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 48px; }
}

@media (max-width: 900px) {
  /* hero: the footage as a band under the header, the card over its lower half, the words under it */
  .ex-hero { display: block; min-height: 0; }
  .ex-hero__slides { position: relative; right: auto; height: 280px; margin-top: calc(var(--header-top) + var(--header-h)); }
  .ex-hero__grade { inset: 0 0 auto 0; height: calc(var(--header-top) + var(--header-h) + 280px); background: linear-gradient(180deg, color-mix(in srgb, var(--c-brand) 30%, transparent) 0%, transparent 40%, color-mix(in srgb, var(--c-brand) 70%, transparent) 100%); }
  .ex-hero__motif { display: none; }
  .ex-hero__stage { left: 0; right: 0; margin-inline: auto; top: calc(var(--header-top) + var(--header-h) + 138px); bottom: auto; width: min(372px, 100%); height: 140px; }
  .ex-hero__in { padding: 22px var(--gutter) 48px; }
  .ex-hero__words { gap: 18px; }
  .ex-hero__l2 { display: inline; }
  .ex-hero__words h1 { font-size: 2.15rem; }
  .ex-hero > .stop { top: calc(var(--header-top) + var(--header-h) + 12px); bottom: auto; right: 12px; }

  /* found and answered: the words on the navy, then the footage band with the cards over its lower part */
  .ex-found, .ex-answered { padding: 64px 0 0; }
  .ex-found__in, .ex-answered__in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "words" "map"; gap: 0; }
  .ex-answered__in { grid-template-areas: "words" "cards"; }
  .ex-found > .panel__media { top: auto; bottom: 0; height: 880px; }
  /* drawn at 700 px and set high, so her face and the sheet she fans herself with sit in the band's top, above the
     map card; the navy takes over again under the card's lower part */
  .ex-found > .panel__media video { top: auto; bottom: 162px; left: -1px; right: auto; width: calc(100% + 2px); height: 700px; object-position: 90% 50%; }
  .ex-found__grade { background: linear-gradient(180deg, var(--c-brand) 0%, var(--c-brand) calc(100% - 850px), color-mix(in srgb, var(--c-brand) 30%, transparent) calc(100% - 780px), transparent calc(100% - 720px), transparent calc(100% - 420px), color-mix(in srgb, var(--c-brand) 70%, transparent) calc(100% - 250px), var(--c-brand) calc(100% - 160px)); }
  .ex-found__stage { margin: 300px 0 16px; height: 500px; }
  .ex-found__stagewrap > .stop { top: 252px; right: 0; bottom: auto; }
  .ex-answered > .panel__media { top: auto; bottom: 0; height: 640px; }
  .ex-answered > .panel__media video { object-position: 30% 50%; }
  .ex-answered__grade { background: linear-gradient(180deg, var(--c-brand) 0%, var(--c-brand) calc(100% - 640px), color-mix(in srgb, var(--c-brand) 30%, transparent) calc(100% - 520px), transparent 100%); }
  .ex-answered__stage { margin: 300px 0 16px; height: 320px; }
  /* the stop icons in the parts' top corner, on the navy, clear of the cards and of the words' links */
  .ex-answered > .stop { top: 14px; right: 14px; bottom: auto; }
  .ex-close { --ex-band: 320px; }
  .ex-close__in { margin-top: -64px; }
  .ex-close > .stop { top: calc(var(--ex-band) - 114px); right: 14px; } /* on the footage, above the headline */

  /* ads: the words, then the frame with the panel over the truck's door and the services under it */
  .ex-ads__in { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  /* the photo drawn larger, his face in the frame's top band, the panel over the truck under it */
  .ex-ads__frame { aspect-ratio: auto; min-height: 0; height: 800px; }
  .ex-ads__frame .ex-frame__img { inset: auto; left: -532px; top: -300px; width: 1971px; height: 1100px; }
  .ex-ads__frame::after { background: linear-gradient(180deg, transparent 0%, transparent 36%, color-mix(in srgb, var(--c-brand) 60%, transparent) 62%); }
  .ex-ads__frame .ex-ads__stage { left: 0; right: 0; top: auto; bottom: 6px; width: auto; height: 460px; transform: none; }
  .ex-ads__frame > .stop { left: auto; right: 14px; top: auto; bottom: 474px; } /* just above the panel's top right corner */

  /* convert: the phone close, then the words and the services */
  .ex-convert__in { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .ex-convert__frame { height: 660px; }

  .ex-tracked__stage { height: 700px; margin-top: 36px; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap .section__head { position: static; margin-bottom: 8px; }
}
