@import url("../arsenal/motif-window.css");
/* Services (/services/): the page's own sizes for its scenes and pictures; every look is in components.css. */

/* the header's stop icon, below the page's fixed header, in view while the pictures fill the screen */
.svc-head .motif-window__stage > .stop { position: absolute; z-index: 4; top: 96px; right: var(--gutter); left: auto; }

/* its clip laid 1 px past its box (kit.md, "Video"), so no line of the stage shows at its edge */
.svc-head .motif-window__media { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }

/* the header's pictures, each framed on its faces inside the ring */
.svc-head .motif-window__view > :nth-child(1) { --mw-focus: 52% 34%; }
.svc-head .motif-window__view > :nth-child(2) { --mw-focus: 70% 28%; }
.svc-head .motif-window__view > :nth-child(3) { --mw-focus: 48% 24%; }

/* the three buyers on the designed ground (one column under 760 px, as tall as its tallest story) */
.svc__buyers .scene { width: 100%; min-height: 470px; }
@container (width < 760px) { .svc__buyers .scene { min-height: 800px; } }
/* in one column every card stays open, its finished story showing, so no title or row below it moves as the focus
   walks (step 13: the folding cards made the words under them jump about 140 px on the phone); on the computer the
   scene sets nothing here */
.svc__buyers .tb-pre { grid-template-rows: minmax(0, 1fr) !important; }

/* the living map in glass beside the found services */
.svc__map { container-type: inline-size; align-self: center; }
.svc__map .scene { width: 100%; max-width: 460px; height: 540px; margin-inline: auto 0; }
@media (max-width: 900px) {
  .svc-found { --chapter-media-h: 150vw; --chapter-overlap: 320px; }
  .svc-found .chapter__scene { margin-inline: 10px; }
  .svc__map .scene { height: 520px; margin-inline: auto; }
}

/* the groups' scenes, each sized to its own story over its photo's calm side (the full width of the photo on the phone) */
@media (min-width: 761px) {
  .svc-ads .grp__scene { width: min(340px, 46%); }
  .svc-leads .grp__scene { width: min(340px, 46%); }
  .svc-web .grp__scene { width: min(380px, 52%); }
  .svc-chosen .grp__scene { width: min(400px, 62%); }
}
.svc-leads .grp__scene .scene { min-height: 300px; }
.svc-chosen .grp__scene .scene { height: 300px; }

/* the data route: the words over the records at the top, the route in glass across the foot (top to bottom on the
   phone, over the shelves of binders) */
.svc__route { container-type: inline-size; }
.svc__route .scene { width: 100%; height: 440px; }
@media (min-width: 901px) {
  .svc-data .chapter__in { grid-template-columns: 1fr; align-content: space-between; gap: var(--space-5); }
  .svc-data .chapter__copy { grid-column: 1; grid-row: 1; max-width: 560px; align-self: start; }
  .svc-data .chapter__scene { grid-column: 1; grid-row: 2; }
  .svc-data .chapter__media::after { background: linear-gradient(180deg, color-mix(in srgb, var(--c-ink) 88%, transparent) 0%, color-mix(in srgb, var(--c-ink) 40%, transparent) 46%, color-mix(in srgb, var(--c-ink) 78%, transparent) 100%); }
}
@media (max-width: 900px) {
  .svc-data { --chapter-media-h: 150vw; --chapter-overlap: 340px; }
  .svc__route .scene { height: 640px; }
}

/* the signature: the ring re-cut for each business */
.svc__mix .scene { width: 100%; aspect-ratio: 900 / 520; }
@container (width < 600px) { .svc__mix .scene { aspect-ratio: 360 / 640; } }
.svc__plan-cta { margin-top: var(--space-5); }
