@import url("../arsenal/motif-window.css");
/* The Services page's own CSS: the vault's round window in the header (the arsenal's motif-window, the default circle),
   the journey's four chapters, BizVault's own four services, the close. Tokens of design\system.css only. */

/* the island's chat icon carries the class "chat", which the home page's chat rule (components.css .chat: absolute,
   over its whole box) also reaches: here it stays an icon in its row, before its words */
.page-services [data-scene="island"] .is-ic.chat { position: static; inset: auto; flex-direction: row; font: inherit; }
/* on a phone the pill is 300 wide: its lines keep whole (a title wraps rather than ending in "...") */
.page-services [data-scene="island"] .is-t b { white-space: normal; }
@media (max-width: 759px) { .page-services [data-scene="island"] .is-state { padding: 0 14px; gap: 10px; } }

/* the header: the picker in the window's action box, as wide as the headline column allows */
.page-services .motif-window__act .picker { max-width: 520px; }
.page-services .motif-window__h { max-width: 12ch; }

/* the journey: four chapters, each its picture with its scene on the side with no face, then its words */
.chapters { margin: 0; padding: 0; list-style: none; gap: clamp(44px, 5vw, 64px); }
.chapter__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px clamp(24px, 4vw, 56px); align-items: start; padding-top: 22px; }
.chapter__n { grid-column: 1; display: flex; align-items: center; gap: 12px; margin: 0; font: var(--fw-black) clamp(26px, 2.4vw, 32px)/1.1 var(--font-display); color: var(--c-ink); }
.chapter__n span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); font: var(--fw-black) 18px/1 var(--font-ui); }
.chapter__line { grid-column: 1; margin: 6px 0 0; color: var(--c-ink-soft); }
.chapter__services { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
.chapter__link { grid-column: 1; justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font: var(--fw-bold) 16px/1.2 var(--font-ui); color: var(--c-brand-text); text-decoration: none; }
.chapter__link svg { width: 18px; height: 18px; }
.chapter__link:hover { text-decoration: underline; }
@media (max-width: 759px) {
  .chapter__body { grid-template-columns: minmax(0, 1fr); }
  .chapter__services { grid-column: 1; grid-row: auto; margin-top: 8px; }
}

/* each chapter's scene, on the side of its picture with no face */
.feature__media > .feature__scene--corner { left: auto; top: auto; width: 44%; height: 64%; padding: 0 20px 20px 0; box-sizing: border-box; }
.page-services .feature__media--found { --pos: 60%; }
.page-services .feature__media--found > .feature__scene--side { left: 0; right: auto; width: 66%; }
.page-services .feature__media--picked { --pos: 50%; }
.page-services .feature__media--picked > .feature__scene--side { left: 0; right: auto; width: 40%; }
.page-services .feature__media--answered { --pos: 50%; }
.page-services .feature__media--answered > .feature__scene--side { left: 0; right: auto; width: 46%; display: grid; align-content: center; padding: 24px; box-sizing: border-box; }
.page-services .feature__media--counted { --pos: 45%; }
@media (max-width: 759px) {
  .page-services .feature__media--found { --media-h-m: 760px; --scene-h-m: 560px; --pos-m: 80%; }
  .page-services .feature__media--found > .feature__scene--side { width: 100%; }
  .page-services .feature__media--picked { --media-h-m: 600px; --scene-h-m: 340px; --pos-m: 55%; }
  .page-services .feature__media--picked > .feature__scene--side { width: 100%; }
  .page-services .feature__media--answered { --media-h-m: 640px; --scene-h-m: 400px; --pos-m: 72%; }
  .page-services .feature__media--answered > .feature__scene--side { width: 100%; padding: 12px; }
  .page-services .feature__media--counted { --media-h-m: 720px; --pos-m: 40%; }
  .feature__media > .feature__scene--corner { left: 0; width: 100%; height: 400px; padding: 12px; }
}

/* more from BizVault: four cards, two by two, each a framed photo with its one card rising, then its words */
.more__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 36px); }
.more__card { display: grid; align-content: start; border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-m); overflow: hidden; }
.more__media { position: relative; aspect-ratio: 16 / 10; background: var(--c-ink-2); }
.more__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50%) 40%; }
.more__chip { position: absolute; left: var(--chip-x, 16px); bottom: 16px; z-index: 1; width: min(300px, calc(100% - 32px)); }
.more__chipscene { position: relative; width: 100%; }
.more__body { padding: clamp(20px, 2.4vw, 30px); }
.more__tag { margin: 0; font: var(--fw-bold) 13px/1.2 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent-text, var(--c-brand-text)); }
.more__name { margin: 6px 0 0; font: var(--fw-black) clamp(22px, 2vw, 26px)/1.15 var(--font-display); color: var(--c-ink); }
.more__line { margin: 8px 0 0; color: var(--c-ink-soft); }
.more__points { margin: 14px 0 0; }
.more__card--support { --pos: 60%; }
.more__card--digital { --pos: 40%; }
.more__card--digital .more__chip { left: auto; right: 16px; }
.more__card--campaign { --pos: 35%; }
.more__card--campaign .more__chip { left: auto; right: 16px; }
.more__card--reputation { --pos: 60%; }
@media (max-width: 899px) { .more__grid { grid-template-columns: minmax(0, 1fr); } }

/* the close: the owner at the photo's right (his face x 78-86%), the words on its calm left, the card over the desk */
.page-services .close { --pos: 70%; --pos-m: 80%; --chip-x: 56%; --chip-y: 10%; }
