@import url("../arsenal/motif-window.css");
@import url("../arsenal/bento-live.css");
@import url("../arsenal/word-window.css");
/* services.css: the Services page (plan.md, Services, "Everything, then each"). Tokens only (design\system.css).
   The arsenal's pieces are imported above and restyled below into the site's own form ("Live system, in daylight"):
   the paper's faint grid, the mark's silhouette as the window, Tomorrow headlines, leaf green where something locks. */

/* ================= hero: the phone lighting up, seen through the mark ================= */
.svc-hero .motif-window__stage {
  background-color: var(--c-paper);
  background-image:
    linear-gradient(color-mix(in srgb, var(--c-line) 60%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--c-line) 60%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}
.svc-hero .motif-window__copy { padding-top: 76px; }
.svc-hero .motif-window__h { font-weight: 700; letter-spacing: -0.02em; word-spacing: 0; line-height: 1.04; }
/* the action box: the main button and its line in a paper box locked in its corners, readable on the paper and on the shade */
.svc-hero .motif-window__act {
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-3);
  border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-m);
}
.svc-hero .motif-window__act .cta-row { margin-top: 0; }
.svc-hero__m1 { --mw-focus: 56% 52%; --mw-focus-narrow: 57% 52%; }
.svc-hero__m2 { --mw-focus: 62% 72%; --mw-focus-narrow: 63% 70%; }
.svc-hero__m3 { --mw-focus: 57% 71%; --mw-focus-narrow: 57% 70%; }
.svc-hero .stop--hero { top: calc(76px + var(--space-3)); right: var(--space-4); }
@media (max-width: 1120px) { .svc-hero .motif-window__copy { padding-top: 66px; } .svc-hero .stop--hero { top: calc(66px + var(--space-2)); right: var(--space-2); } }
@container motif-window (width < 760px) {
  .svc-hero .motif-window__copy { padding-top: 0; }
  .svc-hero .motif-window__act { padding: var(--space-2) var(--space-3) var(--space-2) var(--space-2); }
  .svc-hero .motif-window__act .cta-row { gap: var(--space-1) var(--space-3); }
}

/* ================= all: every service at once (bento-live, as it stands) ================= */
.svc-all .head { margin-bottom: var(--space-4); }
.svc-all .bento-live__tools .stop { position: relative; }
.svc-all__p1 { object-position: 30% 40%; }
/* the sources tile names its sources whole in the site's text face: a wider column, and room for the letters' tails
   (the piece's line-height of 1 inside a clipping box cut the foot of the "g" and "p") */
.svc-all .bm-bars li { grid-template-columns: 116px minmax(0, 1fr) 26px 34px; }
.svc-all .bm-bars li > span:first-child { line-height: 1.35; }
/* the calendar tile: once the new visit has landed whole on its open slot, the slot's own words under it are hidden
   (the piece leaves "8:30 Open" beneath the landed visit) */
.svc-all .bm-slot:has(> :nth-child(3)[style*="opacity: 1;"]) > .bm-open > * { visibility: hidden; }
.svc-all__p5 { object-position: 72% 30%; }

/* ================= found: the couple searching, the map climbing beside them ================= */
.svc-found { position: relative; background: var(--c-paper); }
.svc-found__media { position: relative; height: clamp(600px, 76svh, 740px); overflow: hidden; background: var(--c-ink); }
.svc-found__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 60% 42%; }
/* a soft navy shade under the map's card on the left, gone before the couple */
.svc-found__media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c-shade) 58%, transparent) 0%, color-mix(in srgb, var(--c-shade) 26%, transparent) 30%, transparent 46%); }
.scene.svc-found__scene { position: absolute; z-index: 2; left: max(var(--gutter), (100% - var(--max-w)) / 2); top: 50%; width: 460px; height: 560px; translate: 0 -50%; }
.svc-found .stop--frame { top: var(--space-3); right: var(--space-3); }
.svc-found__words { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-5); align-items: start; padding-block: var(--space-6) var(--section-y); }
.svc-found__head { margin-bottom: 0; }
@media (max-width: 1000px) { .svc-found__words { grid-template-columns: 1fr; gap: var(--space-4); } }
/* on a tablet the photo keeps its left edge, so the couple stays right of the map */
@media (min-width: 761px) and (max-width: 1000px) { .svc-found__photo { object-position: 0% 42%; } .scene.svc-found__scene { width: 420px; } }
/* on the phone the photo stands tall and the map's card rises over its foot, below the couple's faces */
@media (max-width: 760px) {
  .svc-found__media { height: auto; overflow: visible; background: var(--c-paper); }
  .svc-found__photo { position: relative; inset: auto; display: block; width: 100%; height: 660px; object-position: 68% 50%; }
  .svc-found__media::after { display: none; }
  .scene.svc-found__scene { position: relative; left: auto; top: auto; translate: none; width: auto; height: 500px; margin: -265px 0 0; }
  .svc-found .stop--frame { top: 340px; right: var(--space-2); }
  .svc-found__words { padding-top: var(--space-5); }
}

/* ================= break: "Booked." with the trades at work in its letters ================= */
.word-window.svc-break {
  --ww-edge: var(--c-leaf-light);
  --ww-edge-w: 1.6px;
  --ww-stop: var(--c-leaf-light);
  background-color: var(--c-ink);
  background-image:
    linear-gradient(color-mix(in srgb, var(--c-brand-on-ink) 9%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--c-brand-on-ink) 9%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}
.svc-break .word-window__word { font-weight: 700; }
.svc-break .word-window__line { color: color-mix(in srgb, var(--c-on-ink) 86%, transparent); }
.svc-break__m1 { --ww-focus: 50% 30%; }
.svc-break__m2 { --ww-focus: 50% 52%; }
.svc-break__m3 { --ww-focus: 50% 30%; }
.svc-break .stop--break { right: var(--space-4); bottom: var(--space-4); }

/* ================= groups: each group over its own framed photo, its scene in glass ================= */
.groups__list { display: grid; gap: var(--space-6); }
.group { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: var(--space-5); align-items: center; }
.group--picked { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
.group--picked .group__frame { order: 2; }
.group__frame { position: relative; height: clamp(600px, 48vw, 640px); overflow: hidden; border-radius: var(--radius-l); background: var(--c-ink); box-shadow: var(--shadow-m); }
.group__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.group--click .group__photo { object-position: 85% 40%; }
.group--picked .group__photo { object-position: 60% 40%; }
.group--never .group__photo { object-position: 40% 50%; }
.scene.group__scene { position: absolute; z-index: 2; top: 0; bottom: 0; }
.group--click .scene.group__scene { right: 8px; width: 392px; }
.group--picked .scene.group__scene { left: var(--space-2); width: 380px; }
.group--never .scene.group__scene { left: 0; width: 500px; }
.group__frame .stop--frame { top: var(--space-2); right: var(--space-2); }
.group__words { display: grid; gap: var(--space-3); align-content: center; }
.group__title { font-size: var(--fs-h3); }
.group__line { color: var(--c-ink-soft); }
.svcs { display: grid; gap: var(--space-3); margin: var(--space-1) 0 0; padding: 0; list-style: none; }
.svcs li { display: grid; gap: 2px; padding: var(--space-2) 0 0 var(--space-4); border-top: 1px solid var(--c-line); position: relative; }
.svcs li::before { content: ""; position: absolute; left: 0; top: calc(var(--space-2) + 0.45em); width: 10px; height: 10px; border-radius: 2px; background: var(--c-leaf); }
.svcs b { font-size: var(--fs-ui); font-weight: 800; }
.svcs span { color: var(--c-ink-soft); font-size: var(--fs-small); line-height: 1.5; }
@media (max-width: 1100px) {
  .group, .group--picked { grid-template-columns: 1fr; gap: var(--space-4); }
  .group--picked .group__frame { order: 0; }
}
/* on the phone each photo stands tall, the faces in its upper part, and its scene rises over its foot, most of it on
   the photo (the site check keeps every card on its photo at every width) */
@media (max-width: 760px) {
  .group__frame { height: auto; margin-inline: calc(-1 * var(--gutter)); overflow: visible; background: none; box-shadow: none; border-radius: 0; }
  .group__photo { position: relative; inset: auto; display: block; width: 100%; }
  .group--click .group__photo { height: 560px; object-position: 33% 50%; }
  .group--picked .group__photo { height: 700px; object-position: 88% 50%; }
  .group--never .group__photo { height: 520px; object-position: 76% 50%; }
  .scene.group__scene, .group--click .scene.group__scene, .group--picked .scene.group__scene, .group--never .scene.group__scene { position: relative; inset: auto; width: auto; margin: 0; }
  .group--click .scene.group__scene { height: 440px; margin-top: -360px; }
  .group--picked .scene.group__scene { height: 600px; margin-top: -370px; }
  .group--never .scene.group__scene { height: 340px; margin-top: -340px; }
}

/* ================= mix: the signature, the plan locking onto your goal ================= */
.mix__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--space-5); align-items: center; }
.mix__head { margin-bottom: 0; }
.mix__pick { display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.mix__ask { font-weight: 800; font-size: var(--fs-ui); }
.mix__chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); max-width: 26rem; }
.mix__chip {
  --lock: 0;
  position: relative; min-height: 52px; padding: 0; border: 1px solid color-mix(in srgb, var(--c-on-ink) 26%, transparent); border-radius: var(--radius-s);
  background: color-mix(in srgb, var(--c-on-ink) calc(6% + 8% * var(--lock)), transparent); color: var(--c-on-ink);
  font: 600 1.25rem/1 var(--font-display); cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.mix__chip:hover { border-color: var(--c-leaf-light); }
.mix__chip[aria-pressed="true"] { border-color: var(--c-leaf-light); background: var(--c-leaf-light); color: var(--c-ink); }
.mix__chip .reticle--chip { --ret-gap: calc(12px - 8px * var(--lock)); --ret-len: 10px; color: var(--c-leaf-light); opacity: var(--lock); }
.mix__chip[aria-pressed="true"] .reticle--chip { --ret-gap: 4px; opacity: 1; }
.mix__cta { margin-top: var(--space-4); }
.mix__cta .cta-row__note { color: color-mix(in srgb, var(--c-on-ink) 84%, transparent); }
.mix__frame { position: relative; container-type: inline-size; }
.scene.mix__scene { position: relative; width: 100%; aspect-ratio: 720 / 420; }
@container (max-width: 559.98px) { .scene.mix__scene { aspect-ratio: 360 / 576; } }
.mix__frame .reticle--panel { --ret-gap: 10px; --ret-len: 20px; color: var(--c-leaf-light); }
.mix__frame .stop--ink { top: -56px; right: 0; }
@media (max-width: 1000px) { .mix__grid { grid-template-columns: 1fr; gap: var(--space-6); } }

/* ================= close: the roofer's day ending with tomorrow's job booked ================= */
@media (max-width: 760px) { .page-services .pclose__photo { object-position: 24% 50%; } }
