/* services.css: the Services page (plan.md "Services"). It places and sizes the parts with system.css's tokens; the
   components are components.css's. The break runs on the arsenal's statement piece, restyled here into the site's own
   form (a stack of short lines beside a large split-circle window), never the piece as it stands. */
@import url("../arsenal/statement.css");

/* ================= hero: the phone on the table, drawn large, its own screen playing the search ================= */
.svh {
  --pw: clamp(2300px, 160vw, 2500px);          /* the photo's drawn width: its phone screen is 16.4% of it, so the
                                                   360 px interface shows at 1.05 or more and its text at 13 px or more */
  --cx: 73%;                                     /* where the screen's center sits across the header */
  position: relative; overflow: hidden; display: grid; align-items: center;
  min-height: calc(var(--pw) * 0.3467 + 96px);  /* the screen's whole height (52% of the photo's) and a margin */
  background: var(--c-paper-alt);
}
.svh__media { position: absolute; inset: 0; overflow: hidden; }
.svh__photo {
  position: absolute; margin: 0; width: var(--pw); aspect-ratio: 3 / 2;
  left: calc(var(--cx) - var(--pw) * 0.737);   /* the screen's center is 73.7% across the photo */
  top: calc(50% - var(--pw) * 0.3253);         /* and 48.8% down it (the photo is 2/3 as tall as wide) */
}
.svh__app { position: absolute; inset: 0; background: var(--c-paper-alt); }
.svh__app::before { content: ""; position: absolute; top: 12px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: var(--radius-pill); background: var(--c-ink); }
.svh__status { display: flex; align-items: center; gap: 7px; height: 52px; padding: 0 26px 0 30px; font: 700 var(--fs-ui)/1 var(--font-ui); color: var(--c-ink); }
.svh__status b { margin-right: auto; font-weight: 700; }
.svh__bars { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.svh__bars i { width: 3px; border-radius: 1px; background: var(--c-ink); }
.svh__bars i:nth-child(1) { height: 4px; }
.svh__bars i:nth-child(2) { height: 6px; }
.svh__bars i:nth-child(3) { height: 8.5px; }
.svh__bars i:nth-child(4) { height: 11px; }
.svh__batt { position: relative; width: 25px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--c-ink); }
.svh__batt::after { content: ""; position: absolute; inset: 2.5px 7px 2.5px 2.5px; border-radius: 1.5px; background: var(--c-ink); }
.scene.svh__scene { position: absolute; left: 4px; right: 4px; top: 128px; height: 500px; }

.svh__inner { position: relative; z-index: 2; padding-block: clamp(40px, 5vw, 72px); pointer-events: none; }
.svh__card { position: relative; width: min(560px, 46%); pointer-events: auto; }
.svh__motif { width: 300px; height: auto; right: -116px; top: -104px; }
.svh__box {
  position: relative; z-index: 1; display: grid; gap: 18px; padding: clamp(28px, 3vw, 44px);
  background: var(--c-paper); border-radius: var(--radius-xl); box-shadow: var(--shadow-l);
}
.svh__title { margin: 0; font-size: clamp(2rem, 1.3rem + 1.9vw, 3rem); font-weight: 700; letter-spacing: -0.02em; }
.svh__line { margin: 0; font-size: var(--fs-lead); color: var(--c-ink-soft); }
.svc-go { display: grid; justify-items: start; gap: 10px; margin-top: 6px; }
.svh__stop { left: calc(var(--cx) + var(--pw) * 0.082 + 28px); top: calc(50% - var(--pw) * 0.1733 + 128px); }

@media (max-width: 1100px) {
  .svh { --cx: 76%; }
  .svh__card { width: min(480px, 50%); }
}
@media (max-width: 900px) {
  .svh { --pw: 2270px; --cx: 50%; display: flex; flex-direction: column; align-items: stretch; min-height: 0; background: var(--c-paper); }
  .svh__inner { order: -1; width: calc(100% - 2 * var(--gutter)); padding-block: 28px 0; }
  .svh__card { width: auto; }
  .svh__motif { width: 190px; right: -60px; top: -70px; }
  .svh__media { position: relative; height: 830px; margin-top: -40px; }
  .svh__stop { left: auto; right: 14px; top: calc(100% - 830px + 150px); }
}

/* ================= the bands on footage: found and leads ================= */
.svband { position: relative; overflow: hidden; }
.svband__photo { position: absolute; inset: 0; overflow: hidden; }
.svband__photo img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.svband__inner { position: relative; z-index: 1; display: grid; gap: 28px; align-items: center; min-height: clamp(640px, 50vw, 740px); padding-block: clamp(44px, 5vw, 72px); }
.svband__card { display: grid; gap: 14px; padding: clamp(24px, 2.6vw, 36px); background: var(--c-paper); border-radius: var(--radius-xl); box-shadow: var(--shadow-l); }
.svband__card .head__title { font-size: clamp(1.75rem, 1.25rem + 1.5vw, 2.4rem); }
.svband__card .head__line { font-size: var(--fs-body); }
.svband__stage { position: relative; }
.scene.svband__scene { position: absolute; inset: 0; }
.svband__stop { position: absolute; top: 0; right: -52px; }

.svc-list { display: grid; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; font-size: var(--fs-small); color: var(--c-ink-soft); }
.svc-list li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; align-items: start; }
.svc-list b { color: var(--c-ink); font-weight: 800; }
.svc-list__dot { width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 3px var(--c-brand-light); }

/* found: she sits in the right third; the card and the map stand on the porch and the garden at the left */
.svband--found .svband__photo img { object-position: 100% 32%; }
.svband--found .svband__inner { grid-template-columns: minmax(0, clamp(300px, 27vw, 400px)) clamp(360px, 27vw, 400px); }
.svband__stage--found { height: 560px; }

/* leads: her face in the left half, upper; the words on the counter at the lower left, the call cards on the window */
.svband--leads .svband__photo img { object-position: 50% 16%; }
.svband--leads .svband__inner { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: end; }
.svband__stage--leads { height: 600px; width: min(540px, 100%); justify-self: end; align-self: center; }
.svband--leads .svband__stop { top: -52px; right: 0; }

@media (max-width: 1180px) {
  .svband--found .svband__inner { grid-template-columns: minmax(0, 460px); align-content: center; min-height: 1000px; }
  .svband__stage--found { width: 400px; height: 540px; }
  .svband--found .svband__stop { right: -52px; }
}
@media (max-width: 900px) {
  .svband { padding-top: 40px; }
  .svband__photo { top: auto; height: var(--band-h); }
  .svband__inner { display: block; min-height: 0; padding-block: 0; }
  .svband__card { position: relative; z-index: 2; margin: 0 0 18px; box-shadow: none; padding: 0 0 4px; background: transparent; border-radius: 0; }
  .svband__stage { position: relative; height: var(--band-h); margin: 0 calc(-1 * var(--gutter)); }
  .scene.svband__scene { inset: auto 12px 14px 12px; height: var(--scene-h); }
  .svband__stop { top: calc(var(--band-h) - var(--scene-h) - 66px); right: 14px; left: auto; }
  .svband--found { --band-h: 860px; --scene-h: 500px; }
  .svband--found .svband__photo img { object-position: 82% 18%; }
  .svband--found .svband__inner { min-height: 0; }
  .svband--found .svband__stop { right: 14px; }
  .svband--found .svband__stage--found { width: auto; }
  .svband--leads { --band-h: 640px; --scene-h: 300px; }
  .svband--leads .svband__photo img { object-position: 35% 10%; }
  .svband__stage--leads { width: auto; justify-self: stretch; align-self: auto; }
  .svband--leads .svband__stop { top: calc(var(--band-h) - var(--scene-h) - 66px); right: 14px; }
}

/* ================= break: the sentence in short lines, the split circle as a large window ================= */
.brk { display: grid; align-items: center; min-height: clamp(560px, 46vw, 700px); }
.brk__ground { position: absolute; z-index: 0; width: min(980px, 82vw); height: auto; left: -22vw; bottom: -38%; }
.brk .brk__text {
  position: relative; z-index: 1; width: min(100%, var(--max-w)); margin-inline: auto;
  padding-right: min(46%, 560px); font-size: clamp(40px, 4.4cqi + 14px, 86px);
  line-height: 1.08;   /* each word's mask is its line and 0.38 em: Jost's letters stand 1.45 em tall, so 1.08 or more */
}
.brk__winline { position: absolute; right: 0; top: 50%; transform: translateY(-50%); line-height: 0; }
.brk.statement[data-window="mark"] .brk__win { width: min(34vw, 460px); height: min(34vw, 460px); margin: 0; vertical-align: top; }
.brk__win > img { object-position: 60% 40%; }
@media (max-width: 760px) {
  .brk { min-height: 0; }
  .brk .brk__text { padding-right: 0; }
  .brk__winline { position: relative; top: auto; right: auto; transform: none; display: block; margin-bottom: 22px; }
  .brk.statement[data-window="mark"] .brk__win { width: 210px; height: 210px; }
  .brk__ground { width: 520px; left: auto; right: -200px; bottom: -120px; }
}

/* ================= ads: the head on white, then the band where the ad's lead lands while he works ================= */
.sva { position: relative; padding-top: var(--section-y); }
.sva__top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.sva__head { margin: 0; }
.sva__top .svc-list { font-size: var(--fs-body); }
.sva__band { position: relative; overflow: hidden; min-height: clamp(600px, 46vw, 680px); display: grid; align-items: center; }
.sva__band > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 22%; }
.sva__inner { position: relative; z-index: 1; padding-block: 40px; }
.sva__stage { position: relative; width: clamp(320px, 28vw, 440px); height: 520px; }
.scene.sva__scene { position: absolute; inset: 0; }
.sva__stop { position: absolute; top: 0; right: -52px; }
@media (max-width: 1180px) {
  .sva__band { min-height: 760px; }
  .sva__band > img { object-position: 0% 25%; }
  .sva__stage { width: 340px; }
}
@media (max-width: 900px) {
  .sva__top { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 18px; }
  .sva__band { min-height: 900px; align-items: end; }
  .sva__band > img { object-position: 54% 0%; }
  .sva__inner { padding-block: 0 16px; }
  .sva__stage { width: 100%; height: 470px; }
  .sva__stop { top: -52px; right: auto; left: 0; }
}

/* ================= trust: the words, and the framed photo with the shape over its quiet left ================= */
.svt__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.svt__words .head { margin-bottom: 22px; }
.svt__words .svc-list { font-size: var(--fs-body); gap: 14px; }
.svt__media { position: relative; }
.svt__frame { aspect-ratio: 16 / 11; box-shadow: var(--shadow-l); }
.svt__frame > img { object-position: 70% 30%; }
.svt__motif { width: 46%; height: auto; left: -15%; bottom: -18%; }
.scene.svt__scene { position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: 56%; }
.svt__stop { top: 16px; right: 16px; }
@media (max-width: 900px) {
  .svt__inner { grid-template-columns: minmax(0, 1fr); }
  .svt__frame { aspect-ratio: auto; height: 520px; }
  .svt__frame > img { object-position: 100% 30%; }
  .scene.svt__scene { top: auto; height: 300px; width: auto; right: 0; }
}

/* ================= mix: the signature, on the pale paper with a large pale split circle ================= */
.svm { overflow: hidden; }
.svm__ground { position: absolute; z-index: 0; width: min(1100px, 92vw); height: auto; right: -24vw; top: 50%; transform: translateY(-50%); }
.svm__inner { position: relative; z-index: 1; }
.svm__stage { position: relative; width: min(960px, 100%); height: 540px; margin: 0 auto; }
.scene.svm__scene { position: absolute; inset: 0; }
.svm__stop { top: -52px; right: 0; }
@media (max-width: 760px) {
  .svm__stage { height: 660px; }
}

/* ================= faq ================= */
.svq__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.svq__head { margin: 0; }
@media (max-width: 900px) { .svq__inner { grid-template-columns: minmax(0, 1fr); } }

/* ================= close: the job she booked arrives; its two cards land on the photo ================= */
.svc-close .close__band { z-index: 1; box-shadow: var(--shadow-l); }
.svc-close .close__band > img { object-position: 60% 14%; }
.svc-close__seq { position: absolute; z-index: 2; right: 22px; bottom: 22px; display: grid; gap: 10px; justify-items: end; }
.svc-close__item { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
/* the pair lands card by card and, as the loop ends, goes as one by a fade: the hold keeps only an empty rest on through
   the turn, and the mark (on once both cards are in) holds their slide still, so no card goes back the way it came */
.svc-close__rest, .svc-close__mark { display: none; }
.svc-close__seq:has(> .svc-close__mark[data-kit-on]) .svc-close__item { transform: none; }
.svc-close .close__stop { top: 16px; right: 16px; z-index: 3; }
.svc-go--close { margin-top: 2px; }
@media (max-width: 860px) {
  .svc-close .close__band > img { object-position: 64% 14%; }
  .svc-close__seq { right: auto; bottom: auto; left: 12px; top: 12px; justify-items: start; }
}
