/* services.css: What we do. Places and sizes the page's parts (plan.md, "What we do"); the look comes from
   system.css and components.css. The statement's code is the arsenal's, restyled only by the tokens. */
@import url("../arsenal/statement.css");

/* ---------- the header: the words on the ink, a framed stage under them ---------- */
.svc-hero { position: relative; overflow: hidden; padding: 150px 0 var(--space-6); background: radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--c-brand) 26%, transparent), transparent 70%), var(--c-ink); color: var(--c-on-ink); }
.svc-hero__words { display: grid; justify-items: center; gap: var(--space-3); text-align: center; }
.svc-hero__words h1 { max-width: 980px; font-size: var(--fs-h1); }
.svc-hero__words p { max-width: 640px; font-size: 19px; color: var(--c-on-ink-soft); }
.svc-hero__words .cta-block { margin-top: var(--space-2); }
.svc-hero__stage { position: relative; margin-top: var(--space-5); aspect-ratio: 16 / 7; border-radius: var(--radius-l); box-shadow: var(--shadow-l); isolation: isolate; }
.svc-hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: var(--radius-l); background: var(--c-panel); }
.svc-hero__media > video, .svc-hero__media > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.svc-hero__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 70% at 50% 50%, rgba(7, 11, 28, .5), rgba(7, 11, 28, .2) 70%), linear-gradient(180deg, rgba(7, 11, 28, .1), rgba(7, 11, 28, .35)); }
.svc-hero__ring { position: absolute; left: 50%; top: 50%; z-index: 0; width: min(620px, 74%); height: auto; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(-8deg); color: var(--c-accent); pointer-events: none; }
.svc-hero__scene { position: absolute; left: 50%; top: 50%; z-index: 1; width: min(520px, 92%); transform: translate(-50%, -50%); }
/* the new request card pops up just under the third result, never over its line */
.svc-hero [data-scene="search-demo"] .sd-pop { bottom: -52px; }
.svc-hero__stop { position: absolute; right: 16px; bottom: 16px; z-index: 2; }
.svc-hero__index { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: var(--space-3); }
.svc-hero__index a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 12px; border-radius: 999px; border: 1px solid var(--c-panel-line); background: var(--c-panel); color: var(--c-on-ink); font: 600 16px/1 var(--font-ui); text-decoration: none; }
.svc-hero__index a:hover { border-color: var(--c-accent); }
.svc-hero__chip-ring { width: 24px; height: 24px; color: var(--c-accent); }
@media (max-width: 760px) {
  .svc-hero { padding-top: 116px; }
  .svc-hero__stage { aspect-ratio: auto; height: 470px; }
  .svc-hero__scene { width: calc(100% - 8px); }
  .svc-hero__ring { width: 120%; }
  .svc-hero__index { display: grid; grid-template-columns: 1fr 1fr; }
  .svc-hero__index a { padding-right: 10px; font-size: 15px; }
}

/* ---------- a chapter: its words on the ink, then full-bleed footage with its scene and its services in glass ---------- */
.chapter { position: relative; padding-top: var(--section-y); background: var(--c-ink); color: var(--c-on-ink); }
.chapter__head { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }
.chapter__head h2 { max-width: 760px; font-size: var(--fs-h2); }
.chapter__head p { max-width: 640px; font-size: 19px; color: var(--c-on-ink-soft); }
.chapter__stage { position: relative; height: clamp(620px, 52vw, 780px); overflow: hidden; isolation: isolate; }
.chapter__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.chapter__media > video, .chapter__media > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.chapter__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--c-ink) 0%, rgba(7, 11, 28, 0) 16%, rgba(7, 11, 28, 0) 80%, rgba(7, 11, 28, .7) 100%), rgba(7, 11, 28, .18); }
.chapter__stop { position: absolute; top: 20px; z-index: 3; }
.chapter__scene { position: absolute; z-index: 1; }
.chapter__list { position: absolute; z-index: 2; }
.chapter__list .glass-list { gap: 12px; }

/* found: the footage's face on the left third; the map on the right, the services at the lower left */
.chapter--found .chapter__media > video { object-position: 30% 50%; }
.chapter--found .chapter__stop { left: max(var(--gutter), calc((100% - var(--max-w)) / 2)); }
.chapter__scene--found { right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); top: 50%; width: min(760px, 52%); height: 520px; transform: translateY(-50%); }
.chapter--found .chapter__list { left: max(var(--gutter), calc((100% - var(--max-w)) / 2)); bottom: 6%; width: min(400px, 36%); }

/* ads: the plumber's face at 0.7 across; the ad panel on the left, the services on the clear floor beside it */
.chapter--ads .chapter__media > img { object-position: 50% 40%; }
.chapter--ads .chapter__stop { right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); }
.chapter__scene--ads { left: max(var(--gutter), calc((100% - var(--max-w)) / 2)); top: 50%; width: 460px; height: 470px; transform: translateY(-50%); }
.chapter--ads .chapter__list { left: calc(max(var(--gutter), calc((100% - var(--max-w)) / 2)) + 480px); bottom: 6%; width: min(360px, 26%); }

/* leads: the family's soft faces in the top third from the center right; the phone on the table at the lower center
   right. The services at the upper left (the wall), the call at the lower left (the plate), both clear of the faces */
.chapter--leads .chapter__media > img { object-position: 50% 40%; }
.chapter--leads .chapter__stop { right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); }
.chapter__scene--leads { left: max(var(--gutter), calc((100% - var(--max-w)) / 2)); bottom: 4%; width: min(620px, 43%); height: 420px; }
.chapter--leads .chapter__list { left: max(var(--gutter), calc((100% - var(--max-w)) / 2)); top: 9%; width: min(380px, 30%); }

/* Narrower: the footage on top, the scene rising out of its lower part (over half of it on the footage), the
   services under it */
@media (max-width: 1100px) {
  .chapter { --top: min(60vw, 520px); --scene-h: 520px; }
  .chapter--ads { --scene-h: 470px; }
  .chapter--leads { --scene-h: 470px; }
  .chapter__stage { height: auto; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--top) var(--scene-h) auto; padding-bottom: var(--space-5); }
  .chapter__media { position: relative; inset: auto; z-index: 0; grid-row: 1 / 3; grid-column: 1; align-self: start; height: calc(100% - var(--scene-h) * .4); }
  .chapter__media::after { background: linear-gradient(180deg, var(--c-ink) 0%, rgba(7, 11, 28, 0) 14%, rgba(7, 11, 28, 0) 55%, rgba(7, 11, 28, .55) 85%, var(--c-ink) 100%); }
  .chapter .chapter__scene, .chapter .chapter__list { position: relative; inset: auto; transform: none; width: auto; height: auto; margin-inline: var(--gutter); }
  .chapter .chapter__scene { grid-row: 2; grid-column: 1; height: var(--scene-h); }
  .chapter .chapter__list { grid-row: 3; margin-top: var(--space-3); }
  .chapter--ads .chapter__media > img { object-position: 66% 40%; }
  .chapter--leads .chapter__media > img { object-position: 60% 40%; }
  .chapter--leads .chapter__list .glass-list { grid-template-columns: 1fr; }
  .chapter .chapter__stop { top: calc(var(--top) - 52px); left: auto; right: var(--gutter); }
}
@media (max-width: 600px) {
  .chapter { --scene-h: 540px; }
  .chapter--ads { --scene-h: 470px; }
  .chapter--leads { --scene-h: 660px; }
}

/* ---------- the break: the statement on the ink, the mark as its window ---------- */
.svc-break .statement__text { font-weight: 700; }

/* ---------- trust: a framed photo with the services under it, the review beside it (on the paper) ---------- */
.trust { background: var(--c-paper); color: var(--c-ink); }
.trust .section-head p { color: var(--c-ink-soft); }
.trust__grid { display: grid; grid-template-columns: minmax(0, 1fr) 720px; gap: var(--space-4); align-items: stretch; }
.trust__photo { display: grid; grid-template-rows: minmax(0, 1fr) auto; margin: 0; min-height: 600px; }
.trust__photo > img { position: relative; inset: auto; width: 100%; height: 100%; min-height: 380px; object-fit: cover; object-position: 50% 25%; }
.trust__list { padding: 12px; background: var(--c-panel); }
.trust__list .glass-list { grid-template-columns: 1fr 1fr; box-shadow: none; background: transparent; border: 0; padding: 8px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.trust__scene-box { position: relative; min-height: 600px; }
.trust__scene { position: absolute; inset: 0; }
.trust__stop { position: absolute; top: 0; right: 0; z-index: 2; }
@media (max-width: 1240px) {
  .trust__grid { grid-template-columns: 1fr; }
  .trust__photo { min-height: 0; }
  .trust__photo > img { aspect-ratio: 3 / 2; height: auto; }
  .trust__scene-box { min-height: 600px; max-width: 800px; width: 100%; margin-inline: auto; }
}
@media (max-width: 640px) {
  .trust__list .glass-list { grid-template-columns: 1fr; }
  .trust__scene-box { min-height: 620px; }
}

/* ---------- the signature: the mix around the business, on the designed ground ---------- */
.mix__stage { position: relative; }
.mix__scene { position: relative; width: 100%; height: clamp(600px, 50vw, 680px); }
.mix__stop { position: absolute; top: 0; right: 0; z-index: 2; }
@media (max-width: 640px) { .mix__scene { height: 700px; } }

/* ---------- see it: the owner's evening, the month's sources in glass over its clear side ---------- */
.seeit__frame { aspect-ratio: 16 / 9; }
.seeit__frame > img { object-position: 50% 30%; }
.seeit__scene { position: absolute; right: 3%; top: 50%; width: 52%; height: 470px; transform: translateY(-50%); }
.seeit__stop { position: absolute; top: 14px; left: 14px; z-index: 2; }
.seeit__note { margin-top: var(--space-3); font: 400 17px/1.5 var(--font-ui); color: var(--c-on-ink-soft); }
.seeit__note strong { color: var(--c-on-ink); }
@media (max-width: 900px) {
  .seeit__frame { --top: min(56vw, 420px); aspect-ratio: auto; overflow: visible; background: transparent; box-shadow: none; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--top) 640px; }
  .seeit__frame > img { position: relative; inset: auto; grid-row: 1 / 3; grid-column: 1; align-self: start; width: 100%; height: calc(100% - 256px); border-radius: var(--radius-l); }
  .seeit__scene { position: relative; right: auto; top: auto; grid-row: 2; grid-column: 1; width: auto; height: 640px; margin-inline: 10px; transform: none; }
  .seeit__stop { top: calc(var(--top) - 50px); }
}

/* ---------- the service questions ---------- */
.svc-faq__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-5); align-items: start; }
@media (max-width: 900px) { .svc-faq__in { grid-template-columns: 1fr; gap: 0; } }

/* ---------- the close: the plumber at her door this morning; the words and the booked ticket below the faces ---------- */
.svc-close { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(680px, 58vw, 860px); display: flex; align-items: flex-end; background: var(--c-ink); color: var(--c-on-ink); }
.svc-close__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.svc-close__media > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 12%; }
.svc-close__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 11, 28, .94) 0%, rgba(7, 11, 28, .82) 30%, rgba(7, 11, 28, .2) 58%, rgba(7, 11, 28, 0) 75%); }
.svc-close__stop { position: absolute; top: 20px; right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); z-index: 2; }
.svc-close__in { display: grid; grid-template-columns: minmax(0, 1fr) 600px; gap: var(--space-5); align-items: end; padding-block: var(--space-6); }
.svc-close__words { display: grid; gap: var(--space-3); }
.svc-close__words h2 { max-width: 560px; font-size: var(--fs-h2); }
.svc-close__words p { font-size: 19px; color: var(--c-on-ink-soft); }
.svc-close__scene { position: relative; width: 100%; height: 390px; }
/* Narrower: the photo on top, the booked board rising out of its lower part (over half on it), the words under it */
@media (max-width: 1100px) {
  .svc-close { --top: min(56vw, 480px); --scene-h: 420px; display: block; min-height: 0; }
  .svc-close__media { inset: 0 0 auto 0; height: calc(var(--top) + var(--scene-h) * .6); }
  .svc-close__media > img { object-position: 42% 10%; }
  .svc-close__media::after { background: linear-gradient(0deg, var(--c-ink) 0%, rgba(7, 11, 28, .5) 22%, rgba(7, 11, 28, 0) 50%); }
  .svc-close__in { grid-template-columns: 1fr; padding-top: var(--top); }
  .svc-close__scene { order: -1; height: var(--scene-h); }
  .svc-close__stop { top: calc(var(--top) - 52px); }
}
@media (max-width: 600px) { .svc-close { --scene-h: 640px; } }
