/* The Services page (plan.md "Services"): one customer's path, ring by ring. Its own parts only; the FAQ and the close
   are the shared ones (components.css). Tokens only. A scene sits in a box of the page's (its position and size), the
   scene's own element filling it (.svc-fill). */

.svc-fill { display: block; width: 100%; height: 100%; }

/* ---------- The service cards: solid cream, inside each chapter's picture ---------- */
.svc-cards { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.svc-card { display: grid; gap: .3rem; align-content: start; padding: 1rem 1.15rem 1.05rem; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-card); box-shadow: var(--shadow-m); color: var(--c-ink); }
.svc-card b { display: flex; align-items: center; gap: .6rem; font: 700 1.0625rem/1.25 var(--font-ui); letter-spacing: -0.005em; }
.svc-card b::before { content: ""; flex: none; width: 13px; height: 13px; border: 2px solid var(--c-brand); border-radius: 50%; box-shadow: 0 0 0 3px var(--c-card), 0 0 0 4.5px color-mix(in srgb, var(--c-brand) 40%, transparent); }
.svc-card span { font-size: .96875rem; line-height: 1.45; color: var(--c-ink-soft); text-wrap: pretty; }

/* ---------- hero: an owner busy with his crew at dawn, the call and the booking landing beside him ---------- */
.svc-hero { position: relative; display: grid; align-items: center; min-height: clamp(620px, 86svh, min(800px, 64vw)); overflow: hidden; background: var(--c-paper); isolation: isolate; }
.svc-hero__in { position: relative; z-index: 2; }
.svc-hero__words { max-width: 500px; padding-block: clamp(3rem, 7vw, 5.5rem); }
.svc-hero__title { margin: 0; font-family: var(--font-display); font-weight: var(--w-display); font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-display); color: var(--c-ink); text-wrap: balance; }
.svc-hero__lead { max-width: 33em; margin: 1.25rem 0 1.6rem; font-size: clamp(1.0625rem, .95rem + .42vw, 1.25rem); line-height: 1.5; color: var(--c-ink-soft); text-wrap: pretty; }
.svc-hero__media { position: absolute; inset: 0; z-index: 0; }
.svc-hero__photo { position: absolute; inset: 0; margin: 0; transform-origin: 68% 30%; animation: svc-drift 26s var(--ease-in-out) infinite alternate; }
.svc-hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.svc-hero__shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--c-paper) 0%, color-mix(in srgb, var(--c-paper) 94%, transparent) 32%, color-mix(in srgb, var(--c-paper) 45%, transparent) 44%, transparent 54%); }
/* a box over 480 px, where the scene lands all four notifications in turn (the call answered, the booking, the search,
   the review), stacked up from its foot: low at the right, over the owner's coat, under his face */
.svc-hero__feed { position: absolute; z-index: 3; right: max(var(--gutter), (100% - var(--max-w)) / 2); top: 52%; bottom: 46px; width: 500px; }
.svc-hero__stop { position: absolute; z-index: 4; right: 1.25rem; bottom: 1.25rem; }
@keyframes svc-drift { from { transform: scale(1); } to { transform: scale(1.06); } }
.svc-hero:has(.svc-hero__stop[aria-pressed="true"]) .svc-hero__photo { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .svc-hero__photo { animation: none; } }

@media (max-width: 1299px) {
  .svc-hero { display: block; min-height: 0; }
  .svc-hero__words { max-width: 640px; padding-block: clamp(2.25rem, 6vw, 3.5rem) 2rem; }
  .svc-hero__shade { display: none; }
  .svc-hero__media { position: relative; inset: auto; aspect-ratio: 16 / 9; overflow: hidden; }
  .svc-hero__feed { right: 4%; top: 50%; bottom: 30px; width: min(420px, 46%); }
}
@media (max-width: 640px) {
  .svc-hero__words { padding-block: 1.75rem 1.5rem; }
  .svc-hero__media { aspect-ratio: 1; }
  .svc-hero__photo img { object-position: 70% 30%; }
  .svc-hero__feed { left: 1rem; right: 1rem; top: 45%; bottom: 30px; width: auto; }
  .svc-hero__stop { top: 1rem; right: 1rem; bottom: auto; }
}

/* ---------- path: the signature, on the designed ground ---------- */
.svc-path__head { margin-inline: auto; text-align: center; }
.svc-path__head .head__line { margin-inline: auto; }
.svc-path__frame { position: relative; container-type: inline-size; overflow: hidden; padding: clamp(1rem, 2.5vw, 2rem); border: 1px solid var(--c-line); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-s); }
.svc-path__stage { position: relative; width: 100%; aspect-ratio: 1120 / 600; }
.svc-path__ground { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--c-line); stroke-width: 1.25; pointer-events: none; }
.svc-path__ground circle { opacity: calc(1 - var(--k) * .13); }
.svc-path__ground--tall { display: none; }
.svc-path__scene { position: absolute; inset: 0; }
.svc-path__stop { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; }
@container (width < 900px) {
  .svc-path__stage { aspect-ratio: 360 / 740; max-width: 440px; margin-inline: auto; }
  .svc-path__ground--wide { display: none; }
  .svc-path__ground--tall { display: block; }
}
@media (max-width: 999px) { .svc-path__frame { padding-bottom: 4.25rem; } }

/* ---------- found: a customer searching at home, the map turning her way ---------- */
.svc-found { overflow: hidden; isolation: isolate; }
.svc-found__top, .svc-found__low { position: relative; z-index: 2; }
.svc-found__main { max-width: 620px; }
.svc-found__head { margin-bottom: var(--space-4); }
.svc-found__scene { position: relative; height: 460px; }
.svc-found__media { position: absolute; inset: 0; z-index: 0; background: var(--c-night); }
.svc-found__clip { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 20% 35%; }
.svc-found__shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--c-paper) 0%, var(--c-paper) 41%, color-mix(in srgb, var(--c-paper) 55%, transparent) 50%, transparent 59%); }
/* the part's stop on the map card's corner: in sight whenever the map is */
.svc-found__stop { position: absolute; z-index: 3; top: -14px; right: -14px; }
.svc-found__low { margin-top: clamp(2rem, 4vw, 3rem); }
.svc-found__low .svc-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc-guide { margin: 1rem 0 0; }
.svc-guide a { display: inline-flex; align-items: center; gap: .6em; min-height: 48px; padding: 0 1.2em 0 .85em; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-card); box-shadow: var(--shadow-m); font: 700 1rem/1.2 var(--font-ui); color: var(--c-ink); text-decoration: none; }
.svc-guide a:hover { color: var(--c-brand-text); }
.svc-guide a:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; }
.svc-guide__icon { flex: none; color: var(--c-brand); }

/* ---------- clicked: a customer with a problem, your ad on top; the frame runs off the right edge ---------- */
.svc-clicked__in { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.55fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; padding-left: max(var(--gutter), calc((100% - var(--max-w)) / 2)); }
.svc-clicked__stage { position: relative; aspect-ratio: 3 / 2; min-height: 540px; margin-bottom: 64px; }
.svc-clicked__frame { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius-l) 0 0 var(--radius-l); background: var(--c-night); box-shadow: var(--shadow-l); }
.svc-clicked__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.svc-clicked__scene { position: absolute; z-index: 2; left: 3%; top: 4%; bottom: 15%; width: min(480px, 50%); }
.svc-clicked__cards { position: absolute; z-index: 3; left: 3%; right: 5%; bottom: -56px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-clicked__stop { position: absolute; z-index: 4; top: 1rem; right: 1rem; }

/* ---------- picked: a customer smiling at your reviews; the night panel at the right ---------- */
.svc-picked { overflow: hidden; isolation: isolate; }
.svc-picked__top, .svc-picked__low { position: relative; z-index: 2; }
.svc-picked__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
.svc-picked__main { grid-column: 2; }
.svc-picked__head { margin-bottom: var(--space-3); }
.svc-picked__scene { position: relative; height: 600px; }
.svc-picked__media { position: absolute; inset: 0; z-index: 0; }
.svc-picked__clip { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 70% 30%; }
/* the kitchen runs on under the night panel, dimmed, so the phone stands on the footage */
.svc-picked__shade { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, transparent calc(100% - 900px), color-mix(in srgb, var(--c-night) 62%, transparent) calc(100% - 740px), color-mix(in srgb, var(--c-night) 74%, transparent) 100%); }
/* the part's stop beside the phone: in sight whenever the phone is */
.svc-picked__stop { position: absolute; z-index: 3; top: 0; right: 0; }
.svc-picked__low { margin-top: clamp(2rem, 4vw, 3rem); }
.svc-picked__low .svc-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- booked: the call that comes with both hands up ---------- */
.svc-booked__stage { position: relative; aspect-ratio: 16 / 9; min-height: 660px; }
.svc-booked__frame { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius-l); background: var(--c-night); box-shadow: var(--shadow-l); }
.svc-booked__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
/* wider than 480 px, so the scene shows the call card and the week card, both at its left, over the dining table;
   the rest of its box is clear over the man */
.svc-booked__scene { position: absolute; z-index: 2; left: 1.5%; top: 3%; bottom: 3%; width: clamp(481px, 50%, 620px); }
.svc-booked__cards { position: absolute; z-index: 2; right: 2.5%; top: 50%; width: min(31%, 380px); translate: 0 -50%; grid-template-columns: 1fr; gap: .6rem; }
.svc-booked__cards .svc-card { padding: .85rem 1.05rem .9rem; }
/* the part's stop on the call card's top right corner, in sight whenever the call plays */
.svc-booked__stop { position: absolute; z-index: 3; top: -2px; left: calc(min(324px, 100% - 36px) - 4px); }

/* ---------- mix: the plan weighing each part; the frame runs off the left edge ---------- */
.svc-mix__in { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; padding-right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); }
.svc-mix__stage { position: relative; aspect-ratio: 16 / 10; min-height: 520px; }
.svc-mix__frame { position: absolute; inset: 0; overflow: hidden; border-radius: 0 var(--radius-l) var(--radius-l) 0; background: var(--c-night); box-shadow: var(--shadow-l); }
.svc-mix__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 40% 45%; }
.svc-mix__scene { position: absolute; z-index: 2; top: 5%; bottom: 5%; left: max(var(--gutter), calc((100vw - var(--max-w)) / 2 - 8px)); width: min(470px, 48%); }
.svc-mix__stop { position: absolute; z-index: 3; top: 1rem; right: 1rem; }
.svc-mix__cta { margin-top: var(--space-4); }

/* ---------- the computer below 1000 px and the phone: the words, then the picture, its scene and cards over its foot ---------- */
@media (max-width: 999px) {
  .svc-found__media { position: relative; inset: auto; height: clamp(360px, 88vw, 560px); margin-top: var(--space-4); }
  .svc-found__clip { object-position: 62% 30%; }
  .svc-found__shade { background: linear-gradient(180deg, var(--c-paper) 0%, transparent 22%); }
  .svc-found__scene { height: 540px; }
  .svc-found__low { margin-top: calc(-1 * clamp(130px, 28vw, 210px)); }
  .svc-found__low .svc-cards, .svc-picked__low .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* the words, then the clip, then the phone standing on the clip's lower half, under her face (20 to 45% down) */
  .svc-picked { display: flex; flex-direction: column; }
  .svc-picked__top, .svc-picked__main { display: contents; }
  .svc-picked__head { order: 1; position: relative; z-index: 2; width: min(100% - 2 * var(--gutter), var(--max-w)); margin-inline: auto; }
  .svc-picked__media { order: 2; position: relative; inset: auto; height: clamp(560px, 170vw, 720px); margin-top: var(--space-4); }
  .svc-picked__clip { object-position: 32% 30%; }
  .svc-picked__shade { background: linear-gradient(180deg, var(--c-night) 0%, transparent 18%, transparent 70%, var(--c-night) 100%); }
  .svc-picked__scene { order: 3; z-index: 2; width: min(100% - 2 * var(--gutter), 460px); margin: calc(-.5 * clamp(560px, 170vw, 720px)) auto 0; }
  .svc-picked__low { order: 4; margin-top: var(--space-5); }

  .svc-clicked__in, .svc-mix__in { grid-template-columns: 1fr; padding-inline: var(--gutter); }
  .svc-clicked__stage, .svc-booked__stage, .svc-mix__stage { aspect-ratio: auto; min-height: 0; margin-bottom: 0; }
  .svc-clicked__frame, .svc-booked__frame, .svc-mix__frame { position: relative; inset: auto; border-radius: var(--radius-l); }
  .svc-clicked__frame { aspect-ratio: 4 / 3; }
  .svc-clicked__img { object-position: 68% 30%; }
  .svc-clicked__scene { position: relative; inset: auto; width: min(480px, 100%); height: 470px; margin: -48px auto 0; }
  .svc-clicked__cards, .svc-booked__cards { position: relative; inset: auto; translate: none; width: auto; margin-top: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .svc-booked__frame { aspect-ratio: 4 / 3; }
  /* 480 px or narrower: the call card alone, over the photo's lower part, under his face */
  .svc-booked__scene { position: relative; inset: auto; width: min(440px, 100% - 1.5rem); height: 340px; margin: -352px auto 0; }
  .svc-booked__stop { top: 8px; right: 8px; left: auto; }

  .svc-mix__words { order: -1; }
  .svc-mix__frame { aspect-ratio: 16 / 10; }
  .svc-mix__img { object-position: 60% 45%; }
  .svc-mix__scene { position: relative; inset: auto; width: min(480px, 100%); height: auto; margin: -48px auto 0; }
}
@media (max-width: 600px) {
  .svc-found__low .svc-cards, .svc-picked__low .svc-cards, .svc-clicked__cards, .svc-booked__cards { grid-template-columns: 1fr; }
  .svc-found__scene { height: 560px; }
  .svc-booked__frame { aspect-ratio: auto; height: clamp(480px, 140vw, 600px); }
  .svc-booked__img { object-position: 37% 50%; }
  .svc-booked__scene { height: 316px; margin-top: -328px; }
  .svc-mix__frame { aspect-ratio: 4 / 3; }
}
