/* The Services page (plan.md "Services"): its parts placed and sized with the tokens. The chapters' photos bleed off
   one side of the page, each scene in glass over the photo's clear part; the words and the group's services stand on
   the ground beside it. */
@import url("../arsenal/word-window.css");

/* ---------- hero: the words at the left; at the right a tall framed photo of a phone that lights up with a new
   booking (a kit sequence on its recorded screen), the searches in glass half over the frame's left edge, the
   ribbon behind the frame's foot ---------- */
.svh { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(4rem, 8vw, 7rem); }
.svh__in { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: var(--space-5); align-items: center; }
.svh__words h1 { max-width: 11.5em; }
.svh__words .lede { margin-bottom: var(--space-4); }
.svh__stage { position: relative; height: clamp(560px, 44vw, 640px); }
.svh__frame { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 64%; margin: 0; overflow: hidden; border-radius: var(--radius-l); background: var(--c-paper-alt); box-shadow: var(--shadow-l); }
.svh__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 76% 50%; }
.svh__search.scene { position: absolute; z-index: 2; left: 0; bottom: 3%; width: 61.6%; }
.svh__ribbon { position: absolute; z-index: 0; left: -40%; bottom: -12%; width: 160%; height: clamp(90px, 10vw, 150px); }
.svh__stop { z-index: 3; }

/* The phone's lock screen, laid on its recorded screen (designed at 110 x 240): the time, then "New booking" lands. */
.lock { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 14px; background: radial-gradient(130% 75% at 50% 0%, color-mix(in srgb, var(--c-brand-dark) 70%, var(--c-ink)), var(--c-ink) 72%); color: var(--c-on-ink); font-family: var(--font-ui); }
.lock__face { display: grid; justify-items: center; gap: 2px; padding-top: 28px; }
.lock__day { font-size: 11px; font-weight: 500; line-height: 1.2; color: color-mix(in srgb, var(--c-on-ink) 86%, transparent); }
.lock__time { font: 500 38px/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lock__note { position: absolute; left: 6px; right: 6px; top: 94px; display: grid; grid-template-columns: 18px minmax(0, 1fr); grid-template-areas: "app now" "title title" "when when"; gap: 2px 6px; align-items: center; padding: 7px 8px 8px; border-radius: 12px; background: color-mix(in srgb, var(--c-paper) 95%, transparent); color: var(--c-ink); box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--c-ink) 60%, transparent); opacity: var(--kit-in, 0); transform: translateY(calc((1 - var(--kit-in, 0)) * -12px)) scale(calc(0.94 + 0.06 * var(--kit-in, 0))); }
.lock__app { grid-area: app; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--c-brand); }
.lock__app svg { width: 12px; height: 12px; fill: var(--c-ink); }
.lock__now { grid-area: now; justify-self: end; font-size: 11px; line-height: 1; color: var(--c-ink-soft); }
.lock__note b { grid-area: title; margin-top: 3px; font-size: 12.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.lock__when { grid-area: when; font-size: 11px; line-height: 1.2; color: var(--c-ink-soft); white-space: nowrap; }

/* ---------- the chapters (found, ads, leads): the words and the group's services at one side, the photo bleeding
   off the other side of the page with the part's scene in glass over its clear part ---------- */
.chap { position: relative; display: grid; grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, 420px) var(--space-5) minmax(0, 692px) minmax(var(--gutter), 1fr); grid-template-rows: 1fr auto auto 1fr; grid-template-areas: ". . . media media" ". words . media media" ". list . media media" ". . . media media"; min-height: clamp(680px, 54vw, 780px); }
.chap--left { grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, 692px) var(--space-5) minmax(0, 420px) minmax(var(--gutter), 1fr); grid-template-areas: "media media . . ." "media media . words ." "media media . list ." "media media . . ."; }
.chap__words { grid-area: words; padding-top: var(--space-5); }
.chap__words h2 { max-width: 12em; }
.chap__words .lede { margin-bottom: var(--space-4); }
.chap__list { grid-area: list; padding-bottom: var(--space-5); }
.chap__media { grid-area: media; position: relative; min-height: 100%; }
.chap__photo { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius-l) 0 0 var(--radius-l); background: var(--c-ink); }
.chap--left .chap__photo { border-radius: 0 var(--radius-l) var(--radius-l) 0; }
.chap__photo img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.chap__scene.scene { position: absolute; z-index: 2; top: 0; bottom: 0; margin-block: auto; }
.chap--left .chap__stop { left: 16px; right: auto; }

#found .chap__photo img { object-position: 15% 50%; }
#found .chap__scene { left: clamp(20px, 3vw, 40px); width: clamp(360px, 50%, 430px); height: 540px; }
#ads .chap__photo img { object-position: 100% 50%; }
#ads .chap__scene { right: clamp(20px, 3vw, 40px); width: clamp(340px, 48%, 420px); height: 470px; }
#leads .chap__photo img { object-position: 42% 50%; }
#leads .chap__scene { left: clamp(12px, 2vw, 28px); width: 500px; height: 580px; }

/* A group's services, benefit first: an icon in a white disc, what it changes, then what it is. */
.svc-list { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.svc-item { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--space-2); align-items: start; }
.svc-item__icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--c-paper); color: var(--c-brand-text); font-size: 1.25rem; box-shadow: var(--shadow-s); }
.svc-item h3 { margin: 0.15rem 0 0.2rem; font-size: var(--fs-body); line-height: 1.3; }
.svc-item p { margin: 0; color: var(--c-ink-soft); font-size: var(--fs-small); line-height: 1.45; }

/* ---------- break: "Booked." (word-window, as it stands) ---------- */
.svc-break .word-window__line { color: var(--c-ink-soft); }

/* ---------- picked: the framed photo at the left, the words and the island at the right, the services under both ---------- */
.picked__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-5); align-items: center; }
.picked__media { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
.picked__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.picked__stage { position: relative; margin-top: var(--space-3); }
.picked__island.scene { position: relative; display: block; width: 100%; height: 270px; }
.picked__stop { top: 0; right: 0; }
.picked__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--edge); }

/* ---------- mix: the signature on the designed ground, the main button under it ---------- */
.mix .ground__echo--a { display: none; }
.mix .ground__echo--b { bottom: -8%; }
.mix__head { max-width: 44rem; margin: 0 auto var(--space-5); text-align: center; }
.mix__head .lede { margin-inline: auto; }
.mix__stage { position: relative; }
.mix__scene.scene { position: relative; display: block; width: 100%; height: 520px; }
.mix__stop { top: -52px; right: 0; }
.mix__act { justify-content: center; margin-top: var(--space-4); }
.mix__act .act-note { flex: 0 1 auto; }

/* ---------- close: the roofer at the right, the panel at the left over the sky ---------- */
.svc-close .endband__panel { width: min(100%, 470px); }
.svc-close .endband__media video { object-position: 60% 40%; }

/* ---------- under 1180 px: the hero's stage under its words; each chapter's words above, its photo across the
   page with the scene over its clear side (as on the computer), its services under it ---------- */
@media (max-width: 1179px) {
  .svh__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .svh__words h1 { max-width: 14em; }
  .svh__stage { height: clamp(520px, 62vw, 600px); }
  .svh__frame { width: 58%; }
  .svh__frame > img { object-position: 84% 50%; }
  .svh__search.scene { width: min(420px, 52%); }

  .chap, .chap--left { grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, var(--max-w)) minmax(var(--gutter), 1fr); grid-template-rows: auto; grid-template-areas: ". words ." "media media media" ". list ."; min-height: 0; padding-block: var(--section-y); }
  .chap__words { padding-top: 0; }
  .chap__media { min-height: 0; height: clamp(600px, 66vw, 700px); margin-top: var(--space-2); }
  .chap__photo, .chap--left .chap__photo { border-radius: 0; }
  #found .chap__scene { left: clamp(20px, 3vw, 32px); width: clamp(360px, 46%, 430px); }
  #ads .chap__scene { right: clamp(20px, 3vw, 32px); width: clamp(340px, 42%, 400px); }
  #leads .chap__scene { left: clamp(16px, 3vw, 32px); }
  #leads .chap__photo img { object-position: 40% 50%; }
  .chap__list { padding: var(--space-4) 0 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-4); }
  .picked__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* the phone: each photo taller, its faces in its upper part, the scene over its lower part and past its foot (more
   than half of the scene on the photo) */
@media (max-width: 700px) {
  .chap__media { height: auto; container-type: inline-size; }
  .chap__photo, .chap--left .chap__photo { position: relative; inset: auto; }
  .chap__scene.scene, #found .chap__scene, #ads .chap__scene, #leads .chap__scene { position: relative; inset: auto; margin: 0 auto; width: 100%; }
  #found .chap__photo { aspect-ratio: 58 / 100; }
  #found .chap__photo img { object-position: 67% 50%; }
  #found .chap__scene { height: 490px; margin-top: calc(12px - 74.1cqi); }
  #found .chap__stop { top: calc(98.3cqi - 36px); }
  #ads .chap__photo { aspect-ratio: 82 / 100; }
  #ads .chap__photo img { object-position: 41% 50%; }
  #ads .chap__scene { height: 460px; margin-top: calc(10px - 75.6cqi); }
  #leads .chap__photo { aspect-ratio: 90 / 100; }
  #leads .chap__photo img { object-position: 88% 50%; }
  #leads .chap__scene { height: 340px; margin-top: calc(10px - 70cqi); }
}
@media (max-width: 860px) {
  .picked__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
}
@media (max-width: 719px) {
  .mix__stage { padding-top: 52px; }
  .mix__stop { top: 0; }
  .mix__scene.scene { height: 660px; }
}
@media (max-width: 700px) {
  .svh__stage { height: auto; }
  .svh__frame { position: relative; inset: auto; width: 100%; height: 480px; }
  .svh__frame > img { object-position: 88% 50%; }
  .svh__search.scene { position: relative; left: auto; bottom: auto; width: 100%; margin-top: -40px; }
  .svh__ribbon { bottom: auto; top: 360px; }
  .chap__list, .picked__list { grid-template-columns: minmax(0, 1fr); }
}
