@import url("../arsenal/statement.css");
/* The Services page's own layout: it places and sizes its parts with the tokens of system.css. "Chapters on footage":
   the header, four chapters of one customer's path (found and picked full-bleed, ads and booked in a frame), the
   statement between them, the mix on the ink, the FAQ and the close. */

/* ---------- hero: the general shot (a schedule filling up), the headline centered, island low ---------- */
.svc-hero { position: relative; isolation: isolate; display: grid; grid-template-rows: auto 1fr; min-height: clamp(740px, 100svh, 980px); overflow: hidden; background: var(--c-ink); color: var(--c-on-ink); }
.svc-hero__stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* the kit's rotate (its CSS in components.css): this page's framing of each clip, and the first clip's poster under it */
.svc-hero__slide video, .svc-hero__slide .kit-first { object-position: var(--pos, 50% 50%); }
.svc-hero__slide .kit-first { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* one still grade: deep emerald behind the headline at the top, the schedule clear at the sides, deeper at the foot */
.svc-hero__stage::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-ink) 88%, transparent) 0%, color-mix(in srgb, var(--c-ink) 66%, transparent) 36%, color-mix(in srgb, var(--c-ink) 30%, transparent) 64%, color-mix(in srgb, var(--c-ink) 62%, transparent) 100%); }
.svc-hero__body { position: relative; z-index: 5; display: grid; justify-items: center; gap: 22px; padding-top: 148px; text-align: center; }
.svc-hero__title { font-size: clamp(2.4rem, 1rem + 3.5vw, 4.3rem); line-height: 1.03; letter-spacing: -0.03em; max-width: 980px; }
.svc-hero__line { max-width: 600px; font-size: 1.1875rem; line-height: 1.55; color: color-mix(in srgb, var(--c-on-ink) 90%, transparent); }
.svc-hero__cta { justify-content: center; margin-top: 6px; }
.svc-hero__island { position: relative; z-index: 4; justify-self: center; align-self: end; width: min(460px, calc(100% - 2 * var(--gutter))); height: 330px; margin: 28px 0 clamp(26px, 4vh, 52px); }
.svc-hero__island > [data-scene] { position: absolute; inset: 0; }
.svc-hero__stop { position: absolute; right: var(--gutter); top: 96px; }
@media (max-width: 760px) {
  .svc-hero { min-height: 0; }
  .svc-hero__slide video, .svc-hero__slide .kit-first { object-position: var(--pos-m, var(--pos, 50% 50%)); }
  .svc-hero__body { padding-top: 112px; gap: 16px; }
  .svc-hero__title { font-size: clamp(2.05rem, 1.25rem + 3.4vw, 2.6rem); }
  .svc-hero__line { font-size: 1.0625rem; }
  .svc-hero__island { height: 310px; margin-top: 18px; }
  .svc-hero__stop { top: 84px; right: 14px; }
}

/* ---------- chapters on footage: found (panel left, map right) and trust (scene left, panel right) ---------- */
.chapter { min-height: clamp(760px, 92svh, 900px); display: grid; align-items: center; background: var(--c-ink); }
.chapter__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 84%, transparent) 0%, color-mix(in srgb, var(--c-ink) 58%, transparent) 42%, color-mix(in srgb, var(--c-ink) 26%, transparent) 70%, color-mix(in srgb, var(--c-ink) 40%, transparent) 100%); }
.chapter--trust .chapter__shade { background: linear-gradient(270deg, color-mix(in srgb, var(--c-ink) 82%, transparent) 0%, color-mix(in srgb, var(--c-ink) 52%, transparent) 40%, color-mix(in srgb, var(--c-ink) 24%, transparent) 70%, color-mix(in srgb, var(--c-ink) 42%, transparent) 100%); }
.chapter__grid { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; padding-block: clamp(96px, 9vw, 132px); }
.chapter__grid--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 450px); }
.chapter__panel { display: grid; gap: 16px; padding: clamp(26px, 2.6vw, 38px); border-radius: var(--radius-l); }
.chapter__panel h2 { font-size: clamp(1.9rem, 1.2rem + 1.9vw, 2.7rem); }
.chapter__line { font-size: 1.125rem; line-height: 1.5; color: color-mix(in srgb, var(--c-on-ink) 86%, transparent); margin-bottom: 8px; }
.chapter__stage { position: relative; }
.chapter__stage--lmap { height: 580px; }
.chapter__stage--review { height: 600px; }
.chapter__stage > [data-scene] { position: absolute; inset: 0; }
.chapter--found .band__film { object-position: 50% 60%; }
.chapter--trust .band__film { object-position: 50% 62%; }
.chapter__stop { position: absolute; right: var(--gutter); top: 24px; }
/* where the moving picture is the scene alone (the photo under it is still), its stop icon stands just above the scene */
.chapter__stage > .chapter__stop--stage { z-index: 2; right: 0; top: -56px; }
@media (max-width: 980px) {
  .chapter { min-height: 0; }
  .chapter__grid, .chapter__grid--flip { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 88px 64px; }
  .chapter__grid--flip { row-gap: 76px; }
  .chapter__shade, .chapter--trust .chapter__shade { background: color-mix(in srgb, var(--c-ink) 58%, transparent); }
  .chapter__grid--flip .chapter__stage { order: 2; }
  .chapter__stage--lmap { height: 560px; max-width: 520px; width: 100%; justify-self: center; }
  .chapter__stage--review { height: 600px; max-width: 640px; width: 100%; justify-self: center; }
  .chapter__stop { top: 20px; }
}
@media (max-width: 480px) {
  .chapter__stage--lmap { height: 520px; }
  .chapter__panel { padding: 22px 20px; }
}

/* ---------- ads: her clip in a rounded frame right of center, the ads panel over its free side ---------- */
.ads { padding-block: var(--section-y); background: var(--c-paper); }
.ads__grid { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ads__words { display: grid; gap: 30px; }
.ads__frame { position: relative; isolation: isolate; height: 600px; border-radius: var(--radius-l); overflow: hidden; background: var(--c-ink); box-shadow: var(--shadow-l); }
/* her face sits at a third of the clip's width: the clip is held by its right edge, so she stands at the frame's left */
.ads__film { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 100% 50%; }
.ads__frame::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, transparent 0%, transparent 34%, color-mix(in srgb, var(--c-ink) 38%, transparent) 62%, color-mix(in srgb, var(--c-ink) 52%, transparent) 100%); }
.ads__stage { position: absolute; z-index: 1; top: 50%; right: clamp(16px, 2.4vw, 32px); width: 452px; height: 470px; transform: translateY(-50%); }
.ads__stage > [data-scene] { position: absolute; inset: 0; }
.ads__stop { position: absolute; z-index: 2; left: 16px; top: 16px; }
@media (max-width: 1100px) {
  .ads__grid { grid-template-columns: minmax(0, 1fr); }
  .ads__frame { height: 620px; }
}
@media (max-width: 760px) {
  /* on the phone her clip fills the frame, her face in its top third, and the panel stands on the clip below her */
  .ads__frame { height: 940px; }
  .ads__film { object-position: 33% 0%; }
  .ads__frame::after { background: linear-gradient(180deg, transparent 0%, transparent 36%, color-mix(in srgb, var(--c-ink) 42%, transparent) 58%, color-mix(in srgb, var(--c-ink) 58%, transparent) 100%); }
  .ads__stage { top: auto; bottom: 14px; left: 14px; right: 14px; transform: none; width: auto; height: 470px; }
}

/* ---------- statement: the ink tone, its window a drop with its ripple ---------- */
/* its rings in em, so they keep their size against the type at every width, and room beside it, so they never cover a letter;
   the period rides inside each turning word (on a phone the word takes a line of its own, and a period after it would
   fall to the next line alone) */
/* each word's mask a little taller than the composition's (0.2 / 0.18 em), so Outfit's line box (1.27 em) stays inside it
   with room on every phone; the negative margins keep the lines where they were */
.svc-statement .statement__w { padding-block: 0.27em 0.25em; margin-block: -0.27em -0.25em; }
/* the turning word's mask drawn by clip-path, the same box: its overflow clip let the site check catch the word in the
   0.3 s of each roll when it passes the mask by design (sampled every 0.1 s: never cut at rest) */
.svc-statement .statement__rot { overflow: visible; clip-path: inset(0); }
.svc-statement .statement__win { margin-inline: 0.38em 0.3em; box-shadow: 0 0 0 0.1em var(--c-ink), 0 0 0 0.125em color-mix(in srgb, var(--c-brand) 70%, transparent), 0 0 0 0.29em var(--c-ink), 0 0 0 0.31em color-mix(in srgb, var(--c-brand) 38%, transparent); }

/* ---------- leads: her evening photo in a large frame, the call booking itself over its free side ---------- */
.leads { padding-block: var(--section-y); background: var(--c-paper-alt); }
.leads__grid { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.leads__words { display: grid; gap: 30px; }
.leads__frame { position: relative; margin: 0; height: 640px; border-radius: var(--radius-l); overflow: hidden; background: var(--c-ink); box-shadow: var(--shadow-l); }
/* the couple under the stained ceiling in the evening: held by its left edge, so their faces stand right of the call
   (faces at 50-71% of the photo, none in its left 30% or its top 30%); the call sits low on the left, under the stain */
.leads__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 0% 50%; }
.leads__stage { position: absolute; bottom: 24px; left: 24px; width: min(350px, 46%); height: min(440px, calc(100% - 48px)); }
.leads__stage > [data-scene] { position: absolute; inset: 0; }
.leads__stop { position: absolute; right: 16px; top: 16px; }
@media (max-width: 1100px) {
  .leads__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  /* on the phone the photo fills the frame, the face in its top part, and the scene stands on the photo below it */
  .leads__frame { height: 840px; }
  .leads__photo { object-position: 66% 50%; }
  .leads__stage { top: auto; bottom: 14px; left: 14px; right: 14px; width: auto; height: 330px; }
}

/* ---------- mix: the signature, on the ink with the faint rings ---------- */
.mix { --rings-at: 50% 105%; position: relative; padding-block: var(--section-y); }
.mix .section-head p { color: color-mix(in srgb, var(--c-on-ink) 84%, transparent); }
.mix__stage { position: relative; height: 520px; max-width: 1000px; margin: 72px auto 0; }
.mix__stage > [data-scene] { position: absolute; inset: 0; }
.mix__cta { justify-content: center; margin-top: clamp(32px, 4vw, 48px); }
/* its stop icon just above the scene's top right corner, in the room left above the scene */
.mix__stage > .mix__stop { position: absolute; z-index: 2; right: 0; top: -56px; }
@media (max-width: 760px) {
  .mix__stage { height: 640px; }
}

/* ---------- close: a landscaper smiling at his pickup between jobs (a photo; his face at 78% across, 32% down) ---------- */
.svc-close .band__film { object-position: 50% 34%; }
/* on the phone the photo is a band at the top, his face high in it, so the words below stand under his face, never on it */
@media (max-width: 760px) { .svc-close .band__film { height: 440px; bottom: auto; object-position: 100% 30%; } }

/* a shot a media agent is still bringing */
.film-wait { position: absolute; inset: 0; z-index: -2; background: var(--c-ink-2); }
