@import url("../arsenal/statement.css");
/* services.css: the Services page's own placements and sizes (plan.md, "Services"), with the tokens of system.css only. */

/* ---------- #hero: the owner's laptop at dusk in a window at the right, its week filling with bookings ---------- */
.svh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 84px); align-items: center; }
.svh__words { max-width: 560px; }
.svh__win { position: relative; }
.svh__photo { position: relative; margin: 0; aspect-ratio: 8 / 7; --deep-shade: linear-gradient(180deg, rgb(2 8 16 / 0.18) 0%, rgb(2 8 16 / 0) 30%, rgb(2 8 16 / 0) 70%, rgb(2 8 16 / 0.45) 100%); }
.svh__photo > img { object-position: 28% 50%; }
.svh__photo .screen { z-index: 2; }
.svh__notice { position: absolute; z-index: 3; left: -44px; bottom: 40px; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 14px)); }

/* The week on the laptop's screen, drawn at 520 x 325 and laid on the screen by core.js at about half its size on a
   computer, so its words are drawn at 24 px and up; on a phone the screen is too small for words, and the marks show. */
.wk { position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%); font-family: var(--font-ui); }
.wk__head { position: absolute; left: 24px; right: 24px; top: 16px; }
.wk__head b { font: 600 38px/1 var(--font-display); letter-spacing: -0.02em; color: var(--text-bright); }
.wk__days { position: absolute; left: 22px; right: 22px; top: 64px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.wk__days span { font: 600 24px/1 var(--font-ui); color: var(--text-muted); text-align: center; }
.wk__grid { position: absolute; left: 22px; right: 22px; top: 100px; bottom: 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wk__grid i { border-radius: 10px; background: rgb(232 244 255 / 0.035); box-shadow: inset 0 0 0 1px var(--border-strong); }
.wk__chip {
  position: absolute; display: grid; place-items: center; border-radius: 10px;
  left: calc(22px + (var(--c) - 1) * 96.8px); top: calc(100px + (var(--r) - 1) * 71.67px); width: 88.8px; height: 63.67px;
  background: linear-gradient(160deg, var(--accent-bright) 0%, var(--accent) 100%);
  box-shadow: inset 0 1px 0 rgb(232 244 255 / 0.5), 0 10px 24px -10px var(--glow);
  opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)) scale(calc(0.92 + var(--kit-in, 1) * 0.08));
}
.wk__chip b { font: 700 26px/1 var(--font-display); letter-spacing: -0.02em; color: var(--bg-0); white-space: nowrap; }
.wk__chip svg { display: none; width: 34px; height: 34px; fill: none; stroke: var(--bg-0); stroke-width: 1.8; stroke-linecap: round; }
.wk__chip svg circle { fill: var(--bg-0); stroke: none; }
/* the week's earlier bookings: there from the start and through every turn, quieter than the new ones */
.wk__chip--was { background: color-mix(in srgb, var(--accent) 22%, var(--bg-3)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.wk__chip--was b { color: var(--text-bright); }
.wk__chip--was svg { stroke: var(--text-bright); }
.wk__chip--was svg circle { fill: var(--text-bright); }

@media (max-width: 899px) {
  .svh { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .svh__photo { aspect-ratio: 4 / 3.4; }
  .svh__photo > img { object-position: 33% 50%; }
  .svh__notice { left: 12px; bottom: 12px; }
  .wk__days, .wk__chip b { display: none; }
  .wk__chip svg { display: block; }
}

/* ---------- The chapters on footage (#found, #calls): the clip full-bleed, its scene and words at its sides ---------- */
.svc-ch { min-height: 880px; }
.svc-ch__in { max-width: 1320px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.svc-ch__words { width: min(460px, 44%); }
.svc-ch__words .svc { margin-top: 30px; }
.svc-ch__scene { position: relative; flex: none; }
.svc-ch__stop { position: absolute; z-index: 3; top: 26px; right: var(--gutter); }

/* #found: a client searching late at night; her face just right of the middle, the map at the right edge. */
.svc-ch--found { --deep-shade: linear-gradient(180deg, var(--bg-1) 0%, rgb(5 13 26 / 0) 15%, rgb(5 13 26 / 0) 85%, var(--bg-1) 100%), linear-gradient(90deg, rgb(2 8 16 / 0.88) 0%, rgb(2 8 16 / 0.62) 32%, rgb(2 8 16 / 0.08) 52%, rgb(2 8 16 / 0.2) 70%, rgb(2 8 16 / 0.55) 100%); }
.svc-ch--found > video, .svc-ch--found > img { object-position: 100% 30%; }
.svc-ch--found .svc-ch__scene { width: 400px; height: 540px; }

/* #calls: the client on the phone, her face at the right; the words and the ads panel side by side at the left. */
.svc-ch--calls { --deep-shade: linear-gradient(180deg, var(--bg-1) 0%, rgb(5 13 26 / 0) 15%, rgb(5 13 26 / 0) 85%, var(--bg-1) 100%), linear-gradient(90deg, rgb(2 8 16 / 0.9) 0%, rgb(2 8 16 / 0.72) 40%, rgb(2 8 16 / 0.2) 64%, rgb(2 8 16 / 0.05) 100%); }
.svc-ch--calls > video, .svc-ch--calls > img { object-position: 70% 30%; filter: saturate(0.62) contrast(1.08) brightness(0.62); }
.svc-ch--calls .svc-ch__in { justify-content: flex-start; }
.svc-ch--calls .svc-ch__words { width: min(420px, 40%); }
.svc-ch--calls .svc-ch__scene { width: 440px; height: 470px; }

@media (max-width: 1180px) {
  .svc-ch--calls .svc-ch__words { width: min(380px, 44%); }
  .svc-ch--calls .svc-ch__scene { width: 400px; }
}
@media (max-width: 899px) {
  .svc-ch { display: block; min-height: 0; padding: 0 0 80px; background: var(--bg-1); --deep-shade: linear-gradient(180deg, rgb(5 13 26 / 0) 0, rgb(5 13 26 / 0) 46vw, var(--bg-1) 84vw, var(--bg-1) 100%); }
  .svc-ch > video, .svc-ch > img { position: relative; display: block; inset: auto; width: calc(100% + 2px); max-width: none; height: auto; margin: -1px -1px 0; aspect-ratio: 4 / 3.4; }
  .svc-ch--found > video, .svc-ch--found > img { object-position: 64% 30%; }
  .svc-ch--calls > video, .svc-ch--calls > img { object-position: 76% 30%; }
  .svc-ch__in { display: flex; flex-direction: column; align-items: stretch; gap: 36px; margin-top: -150px; padding: 0 var(--gutter); }
  .svc-ch__scene, .svc-ch--found .svc-ch__scene, .svc-ch--calls .svc-ch__scene { order: -1; width: 100%; max-width: 440px; margin: 0 auto; }
  .svc-ch--found .svc-ch__scene { height: 500px; }
  .svc-ch--calls .svc-ch__scene { height: 450px; }
  .svc-ch__words, .svc-ch--calls .svc-ch__words { width: 100%; }
  .svc-ch__stop { top: 16px; }
}

/* ---------- #statement: the break, one sentence on the designed ground ---------- */
.svc-st { position: relative; isolation: isolate; overflow: hidden; --st-bg: transparent; }
.svc-st .statement__text { font-weight: 700; }
/* each word's mask reaches past Outfit's taller line box, and keeps the piece's own box model (statement.js sets the
   trade word's width for its content; this site's boxes are border-box) */
.svc-st .statement__w { box-sizing: content-box; padding: 0.16em 0.04em 0.24em; margin: -0.16em -0.04em -0.24em; }
.svc-st .statement__win img { filter: saturate(0.78) contrast(1.05) brightness(0.86); }

/* ---------- #picked: the words at the left, the client comparing firms in a frame at the right ---------- */
.svc-pk__in, .svc-an__in { position: relative; max-width: var(--max-w); margin: 0 auto; display: grid; align-items: center; gap: clamp(40px, 6vw, 96px); }
.svc-pk__in { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); }
.svc-pk__words .part__line, .svc-an__words .part__line { margin-left: 0; }
.svc-pk__words .svc, .svc-an__words .svc { margin-top: 30px; }
.svc-pk__pic { position: relative; }
.svc-pk__frame { position: relative; margin: 0; aspect-ratio: 5 / 4; --deep-shade: linear-gradient(180deg, rgb(2 8 16 / 0) 0%, rgb(2 8 16 / 0) 46%, rgb(2 8 16 / 0.62) 100%); }
.svc-pk__frame > img { object-position: 50% 40%; }
.svc-pk__pic > .svc-pk__scene { position: absolute; z-index: 2; left: 22px; bottom: 0; width: min(410px, calc(100% - 44px)); height: 320px; }
/* review stars are the site's one place for gold (design\brief.md) */
.svc-pk__pic > [data-scene="island"] .is-stars { color: var(--gold); }
.svc-pk__stop, .svc-an__stop, .svc-mix__stop { position: absolute; z-index: 3; top: 26px; right: var(--gutter); }

/* ---------- #answered: the lawyer with a client in a frame at the left, the call booking itself over its left side ---------- */
.svc-an__in { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); }
.svc-an__frame { position: relative; margin: 0; min-height: 600px; --deep-shade: linear-gradient(90deg, rgb(2 8 16 / 0.72) 0%, rgb(2 8 16 / 0.32) 42%, rgb(2 8 16 / 0) 64%); }
.svc-an__frame > video, .svc-an__frame > img { object-position: 70% 40%; }
.svc-an__frame > .svc-an__scene { position: absolute; z-index: 2; inset: 0; }

/* a narrower computer: the frame keeps its height, so her face stands above the card at its tallest */
@media (min-width: 900px) and (max-width: 1340px) {
  .svc-pk__frame { width: 100%; min-height: 540px; }
}
@media (max-width: 899px) {
  .svc-pk__in, .svc-an__in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  /* her photo drawn larger from its foot, in a frame that keeps its height, so her face stands above the card at its tallest */
  .svc-pk__frame { width: 100%; aspect-ratio: 4 / 4.6; min-height: 450px; }
  .svc-pk__frame > img { object-position: 46% 30%; transform: scale(1.2); transform-origin: 46% 100%; }
  /* the stage a little wider than the frame (its shape stays inside it), so no line of the shape ends cut short at 360 px */
  .svc-pk__pic > .svc-pk__scene { left: -8px; width: calc(100% + 16px); height: 300px; }
  .svc-an__words { order: -1; }
  /* the clip drawn a little larger from its foot, in a frame that keeps its height, so his face stands above the call card at its tallest */
  .svc-an__frame { width: 100%; min-height: 500px; aspect-ratio: 4 / 4.4; --deep-shade: linear-gradient(180deg, rgb(2 8 16 / 0) 0%, rgb(2 8 16 / 0) 40%, rgb(2 8 16 / 0.66) 100%); }
  .svc-an__frame > video, .svc-an__frame > img { object-position: 72% 30%; transform: scale(1.06); transform-origin: 72% 100%; }
}

/* ---------- #mix: the signature, four tanks on the designed ground ---------- */
.svc-mix__scene { max-width: 1040px; margin: 0 auto; }
.svc-mix__more { margin-top: 44px; text-align: center; }

/* ---------- #close: the owner on the phone at her desk, the call becoming a booking beside her ---------- */
/* the photo drawn larger from its right edge, so her face sits left of the glass box */
.svc-close > img { object-position: 30% 30%; transform: scale(1.2); transform-origin: 100% 30%; }
.svc-close__cards { position: absolute; z-index: 2; left: max(var(--gutter), 6vw); bottom: 16%; display: grid; justify-items: start; gap: 10px; }
.svc-close__cards [data-kit-at] { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
@media (max-width: 899px) {
  .band.svc-close { display: block; padding: 0 var(--gutter) 96px; background: var(--bg-1); --deep-shade: linear-gradient(180deg, rgb(5 13 26 / 0) 0, rgb(5 13 26 / 0) 40vw, var(--bg-1) 76vw, var(--bg-1) 100%); }
  .svc-close > img { position: relative; display: block; inset: auto; width: calc(100% + var(--gutter) * 2); height: auto; margin: 0 calc(var(--gutter) * -1); aspect-ratio: 4 / 3.1; object-position: 26% 30%; transform: none; }
  .svc-close__cards { position: relative; left: auto; bottom: auto; z-index: 2; margin: -84px 0 26px auto; justify-items: end; }
  .band.svc-close .band__box { margin: 0 auto; }
}
