/* Services (plan.md, Services): hero (.svh: the laptop's week and the tickets), found / ads / trust (.svc: chapters on
   footage), words (the statement), leads (.svb), working (.svk), mix (.svm), faq, close (.svx) and the Watch dialog.
   It places and sizes its parts; the components are design\components.css's. Tokens only. */
@import url("../arsenal/statement.css");

/* ---------- hero: the general shot, a schedule filling up on a laptop's screen ---------- */
.svh { position: relative; overflow: hidden; isolation: isolate; background: var(--c-paper); border-bottom: 1px solid var(--c-line); }
.svh__media { position: relative; overflow: hidden; }
.svh__photo { position: absolute; inset: 0; margin: 0; }
.svh__photo > img { position: absolute; top: 0; height: 100%; max-width: none; object-fit: cover; }
.svh__in { position: relative; z-index: 2; }
.svh__words h1 { font-size: clamp(2.1rem, 1.2rem + 1.6vw, 3rem); }
.svh__line { margin: 16px 0 0; font-size: 1.0625rem; line-height: 1.55; color: var(--c-ink-soft); }
.svh__cta { display: grid; justify-items: start; margin-top: 26px; }
.svh__cta .ease { justify-content: flex-start; }
/* the tickets stand on the photo at every width: beside the laptop's screen on a computer, piled at the photo's lower
   right on a tablet or a phone (each lands on the one before) */
.svh__tickets { position: absolute; z-index: 2; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.svh__ticket { min-width: 0; max-width: none; opacity: var(--kit-in, 1); transform: translateX(calc((1 - var(--kit-in, 1)) * 26px)); }
.svh__ticket .ticket__when { min-width: 66px; }
.svh__stop { position: absolute; right: 16px; bottom: 16px; z-index: 6; }

/* the week on the screen (designed at 480 x 300; 250 x 156 on a phone) */
.cal { position: absolute; inset: 0; display: grid; grid-template-rows: 38px minmax(0, 1fr); background: var(--c-paper); color: var(--c-ink); font-family: var(--font-ui); }
.cal__bar { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 12px; border-bottom: 1px solid var(--c-line); }
.cal__mark { display: grid; place-items: center; flex: none; width: 21px; height: 21px; border-radius: 6px; background: var(--c-brand-light); }
.cal__mark svg { width: 14px; height: 14px; fill: var(--c-brand); }
.cal__bar b { font: 600 13px/1 var(--font-ui); letter-spacing: -0.01em; white-space: nowrap; }
.cal__keys { display: flex; gap: 9px; margin-left: auto; }
.cal__key { display: inline-flex; align-items: center; gap: 4px; font: 500 11px/1 var(--font-ui); font-style: normal; color: var(--c-ink-soft); white-space: nowrap; }
.cal__key::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--k); }
.cal__body { display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: 22px minmax(0, 1fr); padding: 6px 10px 10px 4px; min-height: 0; }
.cal__times { grid-column: 1; grid-row: 2; display: grid; grid-template-rows: repeat(5, minmax(0, 1fr)); padding: 4px 6px 4px 0; text-align: right; font: 500 11px/1 var(--font-ui); color: var(--c-ink-soft); white-space: nowrap; }
.cal__times span { padding-top: 5px; }
.cal__days { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; padding: 0 4px; text-align: center; font: 600 11px/1 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-ink-soft); }
.cal__grid { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(0, 1fr)); gap: 4px; min-height: 0; padding: 4px; border: 1px solid var(--c-line); border-radius: 8px; background-color: var(--c-paper-alt); background-image: linear-gradient(var(--grid-line-fine) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line-fine) 1px, transparent 1px); background-size: 20% 20%; background-position: 4px 4px; }
.cal__job { display: grid; align-content: center; gap: 3px; min-width: 0; padding: 3px 6px; border-radius: 5px; border-left: 3px solid var(--k); background: color-mix(in srgb, var(--k) 15%, var(--c-paper)); box-shadow: var(--shadow-s); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * -10px)) scale(calc(0.92 + var(--kit-in, 1) * 0.08)); }
.cal__job b { font: 600 11px/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.cal__job small { overflow: hidden; font: 500 11px/1.1 var(--font-ui); color: var(--c-ink-soft); white-space: nowrap; text-overflow: ellipsis; }
.cal__key--maps, .cal__job--maps { --k: var(--c-brand); }
.cal__key--call, .cal__job--call { --k: var(--c-coral); }
.cal__key--ad, .cal__job--ad { --k: var(--c-ink); }
.cal__key--text, .cal__job--text { --k: var(--c-mint); }
.cal__key--review, .cal__job--review { --k: var(--c-sun); }

/* a computer: the photo across the whole header, the laptop right of the words, the tickets beside its screen */
@media (min-width: 1200px) {
  .svh { height: clamp(600px, min(calc(100svh - 72px), 56.25vw), 880px); }
  .svh__media { position: absolute; inset: 0; z-index: 0; }
  .svh__photo > img { left: -4%; width: 104%; object-position: 50% 45%; }
  .svh__media::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.64) 18%, rgba(255, 255, 255, 0) 28%); }
  .svh__tickets { top: 50%; right: var(--gutter); width: clamp(240px, 18.5vw, 280px); transform: translateY(-50%); }
  .svh__in { display: grid; align-items: center; height: 100%; padding: 0 var(--gutter); pointer-events: none; }
  .svh__words { width: min(390px, calc(28.5vw - var(--gutter) - 14px)); pointer-events: auto; }
}
/* a tablet: the photo on top (the laptop larger, the tickets on its lower right), the words under it */
@media (max-width: 1199px) {
  .svh__media { aspect-ratio: 16 / 10; }
  .svh__photo > img { left: -25%; width: 150%; object-position: 50% 42%; }
  .svh__tickets { right: var(--gutter); bottom: 16px; width: min(300px, calc(100% - 2 * var(--gutter))); }
  .svh__ticket { grid-area: 1 / 1; align-self: end; }
  .svh__in { max-width: 760px; margin: 0 auto; padding: 36px var(--gutter) 52px; }
}
/* a phone: a square photo, the laptop higher and the tickets under its screen; on the screen, three days, larger */
@media (max-width: 760px) {
  .svh__media { aspect-ratio: 1 / 1; }
  .svh__photo > img { left: -30%; width: 160%; object-position: 50% 0%; }
  .svh__tickets { right: 12px; bottom: 12px; width: calc(100% - 24px); }
  .svh__in { padding: 26px var(--gutter) 40px; }
  .svh__words h1 { font-size: clamp(1.95rem, 1.5rem + 2vw, 2.4rem); }
  .svh [data-screen] { width: 250px !important; height: 156px !important; }
  .cal__job small { display: none; }
  .cal { grid-template-rows: 30px minmax(0, 1fr); }
  .cal__keys { display: none; }
  .cal__bar b { font-size: 12px; }
  .cal__body { grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: 18px minmax(0, 1fr); padding: 4px 8px 8px 2px; }
  .cal__times, .cal__grid { grid-template-rows: repeat(3, minmax(0, 1fr)); }
  .cal__days, .cal__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cal__times span:nth-child(n + 4), .cal__days span:nth-child(n + 4), .cal__job[data-d="4"], .cal__job[data-d="5"], .cal__job[data-r="4"], .cal__job[data-r="5"] { display: none; }
  .cal__grid { background-size: 33.33% 33.33%; }
  .svh__ticket { width: 100%; }
}

/* ---------- the chapters on footage: found, ads, trust ---------- */
.svc { padding-bottom: 0; }
.svhead { max-width: 640px; }
.svhead--end { margin-left: auto; }
.svhead__n { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 500 0.8125rem/1.2 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-ink-soft); }
.svhead__n span { display: grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--c-brand-light); color: var(--c-brand-text); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.svc__band { position: relative; overflow: hidden; background: var(--c-night); }
.svc__media { position: absolute; inset: 0; }
.svc__media video, .svc__media img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.svc__media::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.svc--right .svc__media::after { background: linear-gradient(90deg, rgba(11, 13, 18, 0) 38%, rgba(11, 13, 18, 0.42) 100%); }
.svc--left .svc__media::after { background: linear-gradient(270deg, rgba(11, 13, 18, 0) 38%, rgba(11, 13, 18, 0.42) 100%); }
.svc__stop { position: absolute; top: 14px; right: 14px; z-index: 6; }
.svc--left .svc__stop { right: auto; left: 14px; }
.svc__over { --stack: 640px; position: relative; z-index: 2; display: grid; row-gap: 14px; max-width: var(--max-w); margin: 0 auto; padding: clamp(44px, 5vw, 72px) var(--gutter); }
.svc--right .svc__over { grid-template-columns: minmax(0, 1fr) minmax(0, var(--stack)); }
.svc--left .svc__over { grid-template-columns: minmax(0, var(--stack)) minmax(0, 1fr); }
.svc--right .svc__over > * { grid-column: 2; }
.svc--left .svc__over > * { grid-column: 1; }
#trust .svc__over { --stack: 720px; }
.svc__scene--geo { height: 440px; }
.svc__scene--funnel { height: 460px; }
.svc__scene--review { height: 570px; }
/* the homeowner in #trust sits left of the reviews, never under them: her footage drawn a little larger from its right */
@media (min-width: 901px) {
  #trust .svc__media video { transform: scale(1.16); transform-origin: 100% 45%; }
}

/* the services' cards and their Watch buttons */
.svcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.svcards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svcards--list { grid-template-columns: 1fr; }
.svcard { display: grid; align-content: start; gap: 6px; padding: 16px 18px 17px; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); box-shadow: var(--shadow-s); }
.svcards--glass .svcard { border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.86); box-shadow: var(--shadow-m); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.svcard h3 { font-size: 1.0625rem; }
.svcard p { margin: 0; font-size: 0.9375rem; line-height: 1.45; color: var(--c-ink-soft); }
.svcard__watch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.svcards--list .svcard { grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; align-items: center; }
.svcards--list .svcard h3, .svcards--list .svcard p { grid-column: 1; }
.svcards--list .svcard__watch { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: stretch; margin: 0; }
.watch { display: inline-flex; align-items: center; gap: 10px; min-height: 38px; padding: 4px 13px 4px 4px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-paper); color: var(--c-ink); font: 500 0.875rem/1 var(--font-ui); cursor: pointer; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.watch:hover { border-color: #C9CED6; box-shadow: var(--shadow-s); }
.watch:focus-visible { outline: 2px solid var(--c-brand-text); outline-offset: 2px; }
.watch__thumb { position: relative; display: block; flex: none; width: 46px; height: 28px; overflow: hidden; border-radius: 999px; background: var(--c-night); }
.watch__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.watch__thumb i { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11, 13, 18, 0.32); color: #FFFFFF; }
.watch__thumb svg { width: 12px; height: 12px; }
.watch__words { white-space: nowrap; }
.watch__words small { font-size: inherit; color: var(--c-ink-soft); }

/* ---------- words: the statement on the drafting grid ---------- */
.statement.svw { background-color: var(--c-paper); background-image: linear-gradient(var(--grid-line-fine) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line-fine) 1px, transparent 1px); background-size: 56px 56px; background-position: center; border-block: 1px solid var(--c-line); }
.svw .statement__text { font-weight: 600; letter-spacing: -0.035em; }

/* ---------- leads: a framed photo, the call written up beside it ---------- */
.svb__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3.4vw, 48px); align-items: stretch; }
.svb__photo { position: relative; min-height: 520px; margin: 0; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius-l); background: var(--c-paper-alt); box-shadow: var(--shadow-l); }
.svb__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 50%; }
.svb__side { position: relative; display: grid; gap: 14px; align-content: start; }
.svb__scene { height: 410px; }
.svb__stop { position: absolute; top: 0; right: 0; z-index: 6; }

/* ---------- working: the words and two cards, then the van photo with the month's sources over it ---------- */
.svk__in { display: grid; gap: clamp(24px, 3vw, 40px); }
.svk__words { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.svk__words .section__head { margin-bottom: 0; }
.svk__frame { position: relative; min-height: clamp(520px, 42vw, 580px); margin: 0; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius-l); background: var(--c-night); box-shadow: var(--shadow-l); }
.svk__photo { position: absolute; inset: 0; }
.svk__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 30% 50%; }
.svk__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 13, 18, 0) 42%, rgba(11, 13, 18, 0.38) 100%); }
/* 460 px: the scene's two-line lanes (name, then its row of dots) need about 48 px each, or a row of dots runs over the
   next name */
.svk__scene { position: absolute; top: 50%; right: clamp(16px, 3vw, 40px); width: min(580px, 52%); height: 460px; transform: translateY(-50%); }
.svk__stop { position: absolute; top: 14px; right: 14px; z-index: 6; }

/* ---------- mix: the signature, a framed panel on the drafting grid ---------- */
.svm { overflow: hidden; background: var(--c-paper-alt); border-block: 1px solid var(--c-line); }
.svm__grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 56px 56px; background-position: center; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 30%, transparent 90%); mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 30%, transparent 90%); }
.svm__panel { position: relative; max-width: 1040px; margin: 0 auto; padding: clamp(10px, 1.6vw, 20px); border: 1px solid var(--c-line); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-l); }
.svm__scene { height: clamp(470px, 44vw, 520px); }
.svm__stop { position: absolute; top: 10px; right: 10px; z-index: 6; }

/* ---------- close: the booked job at the door ---------- */
.svx { display: grid; align-items: center; min-height: clamp(520px, 44vw, 640px); }
/* the homeowner at her door stays in the right quarter, clear of the words: the footage drawn larger from its left */
.svx .close__media video { object-position: 60% 40%; transform: scale(1.2); transform-origin: 0% 40%; }
.svx .close__media::after { background: linear-gradient(90deg, rgba(11, 13, 18, 0.66) 0%, rgba(11, 13, 18, 0.76) 42%, rgba(11, 13, 18, 0.5) 66%, rgba(11, 13, 18, 0.22) 100%); }
.svx .close__in h2 { max-width: 560px; }
.svx .close__line { max-width: 500px; }
.svx .close__in .ease { margin-top: 14px; }
@media (max-width: 760px) {
  .svx { align-items: end; min-height: 660px; }
  .svx .close__media video { transform: none; object-position: 70% 40%; }
  .svx .close__media::after { background: linear-gradient(180deg, rgba(11, 13, 18, 0.15) 0%, rgba(11, 13, 18, 0.35) 38%, rgba(11, 13, 18, 0.86) 62%, rgba(11, 13, 18, 0.92) 100%); }
}

/* the statement's window: the ticket, drawn larger in its line so its photo reads */
.svw .statement__win { scale: 1.55; margin-inline: 0.3em; }
@media (max-width: 760px) {
  .svw .statement__win { scale: none; margin-inline: 0.03em; }
  /* on a phone the sentence stands as written (no rise with the scroll, which a phone's quick scroll catches half
     done); the trade word and the window still change */
  .svw .statement__w > .statement__i { transform: none !important; }
}

/* ---------- the Watch dialog ---------- */
.watchbox { max-width: none; max-height: none; margin: auto; padding: 0; border: 0; background: transparent; color: #FFFFFF; overflow: visible; }
.watchbox::backdrop { background: rgba(11, 13, 18, 0.8); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.watchbox__in { position: relative; width: min(960px, calc(100vw - 32px)); }
.watchbox__title { margin: 0 56px 12px 2px; font: 500 1.0625rem/1.3 var(--font-ui); color: #FFFFFF; }
.watchbox__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-l); background: var(--c-night); box-shadow: var(--shadow-l); }
.watchbox__poster, .watchbox__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.watchbox__close { position: absolute; top: -8px; right: 0; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.32); border-radius: 50%; background: rgba(11, 13, 18, 0.6); color: #FFFFFF; cursor: pointer; }
.watchbox__close svg { width: 15px; height: 15px; }
.watchbox__close:hover { background: rgba(11, 13, 18, 0.85); }
.watchbox__close:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .svcards--three { grid-template-columns: 1fr; }
}
/* a tablet or a phone: the footage on top, taller, its subject in its upper part; the scene stands over the footage's
   lower part (more than half of it on the footage), the cards under it on the paper */
@media (max-width: 900px) {
  .svhead--end { margin-left: 0; }
  .svc__band { background: var(--c-paper-alt); border-top: 1px solid var(--c-line); }
  .svc__media { position: relative; inset: auto; height: var(--svc-mh, 620px); overflow: hidden; }
  .svc__media video, .svc__media img { object-position: var(--svc-pos, 50% 40%); }
  .svc--right .svc__media::after, .svc--left .svc__media::after { background: linear-gradient(180deg, rgba(11, 13, 18, 0) 40%, rgba(11, 13, 18, 0.32) 100%); }
  .svc__over, .svc--right .svc__over, .svc--left .svc__over { grid-template-columns: minmax(0, 1fr); margin-top: calc(-1 * var(--svc-lap, 300px)); padding-top: 0; }
  .svc--right .svc__over > *, .svc--left .svc__over > * { grid-column: 1; }
  #found { --svc-mh: 640px; --svc-lap: 320px; --svc-pos: 22% 50%; }
  #ads { --svc-mh: 620px; --svc-lap: 300px; --svc-pos: 74% 40%; }
  #trust { --svc-mh: 660px; --svc-lap: 360px; --svc-pos: 30% 40%; }
  .svc__scene--geo { height: 520px; }
  .svc__scene--review { height: 600px; }
  .svb__grid { grid-template-columns: minmax(0, 1fr); }
  .svb__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .svk__words { grid-template-columns: minmax(0, 1fr); }
  .svk__frame { display: grid; min-height: 0; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .svk__photo { position: relative; inset: auto; height: 600px; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius-l); }
  .svk__img { object-position: 31% 40%; }
  .svk__scene { position: relative; top: auto; right: auto; width: calc(100% - 24px); height: 460px; margin: -260px auto 0; transform: none; }
  .svm__scene { height: 600px; }
}
@media (max-width: 760px) {
  .svcards { grid-template-columns: minmax(0, 1fr); }
  .svb__scene { height: 660px; }
  .svk__photo { height: 640px; }
  .svk__scene { width: 100%; height: 640px; margin-top: -340px; }
  .svcards--list .svcard { grid-template-columns: minmax(0, 1fr); }
  .svcards--list .svcard__watch { grid-column: 1; grid-row: auto; flex-direction: row; margin-top: 6px; }
}
