/* Services: the heading on the left and the film of how we work on the right, then the six services on the board itself
   (two traces joined by a wire, no card). The type, the lists, the finale and
   the crossfade between pages are shared with every inner page (assets/pages.css). Loaded only by services/index.html,
   after style.css and pages.css. */
/* ---------- Opening: the heading and the film ---------- */
.svc-hero-copy{max-width:calc(var(--max) + 2 * var(--gutter));margin:0 auto;padding:clamp(28px,6vh,72px) var(--gutter) clamp(24px,5vh,56px);
  display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:center;gap:clamp(32px,5vw,80px)}
body.svc-page .svc-hero h1{font-size:clamp(40px,4.8vw,70px);font-weight:600;letter-spacing:-.04em;line-height:1;text-wrap:balance}
body.svc-page .svc-hero .how-film{margin:0}

/* ---------- The six services on the board ---------- */
/* The details sit on the page beside a second trace. The wire from the chosen service ends on a pad on that trace, and a
   glow slides along it to meet the wire (site.js sets --y). */
body.page .svc-reading{padding-top:clamp(12px,3vh,36px)}
.svc-tab{grid-template-columns:12px auto minmax(0,1fr)}
.svc-name{font-weight:600}
.svc-board{position:relative;border-radius:0;background:none;box-shadow:none;clip-path:inset(0 -24px)}
.svc-board::before,.svc-board::after{content:'';position:absolute;left:-1px;width:2px;border-radius:2px}
.svc-board::before{top:0;bottom:0;background:linear-gradient(rgb(29 29 31/0),rgb(29 29 31/.14) 12%,rgb(29 29 31/.14) 88%,rgb(29 29 31/0))}
.svc-board::after{top:calc(var(--y,0px) - 90px);height:180px;background:linear-gradient(rgb(47 98 224/0),var(--accent) 50%,rgb(47 98 224/0));
  box-shadow:0 0 8px rgb(47 98 224/.35);transition:top .6s var(--expo)}
.svc-board i{position:absolute;left:-6px;top:calc(var(--y,0px) - 6px);width:12px;height:12px;border-radius:3px;background:var(--accent);
  box-shadow:0 0 0 3px rgb(47 98 224/.14),0 0 12px rgb(47 98 224/.55);transition:top .6s var(--expo)}
.svc .service-detail{padding:clamp(8px,2vh,20px) 0 clamp(8px,2vh,20px) clamp(40px,4.4vw,72px)}
.svc .offer-lead + .service-included{margin-top:28px;gap:0}
.svc-proof a{background:none}
.svc .service-detail.is-open>*,.svc .service-detail.is-open .service-included li{animation-duration:.75s;animation-timing-function:var(--expo)}
@keyframes svc-in{from{opacity:0;transform:translateY(14px);filter:blur(6px)}}
body.svc-page .reading-head h2{font-size:clamp(32px,3.6vw,54px);font-weight:600;letter-spacing:-.04em}

/* ---------- The film of how we work, under the heading ---------- */
/* The poster is the player. The orb sits in its empty corner, in line with the poster's own words; its place is set in
   container widths (cqw), so it stays there at any width. */
.how-film{position:relative;container-type:inline-size;margin:clamp(22px,3.6vh,36px) 0 0}
.how-film video{display:block;width:100%;height:auto;aspect-ratio:16/9;border-radius:16px;background:#eef0f6;box-shadow:0 34px 70px -36px rgb(20 30 60/.42)}
.how-film:not(.is-playing) video{cursor:pointer}
.how-film-play{--s:44px;--k:0;--a:#4a6bff;--b:#9ef0ff;position:absolute;left:calc(7.8cqw - 5px);top:38.25cqw;display:inline-flex;align-items:center;gap:10px;
  padding:5px 16px 5px 5px;border:0;border-radius:99px;background:rgb(255 255 255/.6);-webkit-backdrop-filter:blur(14px) saturate(160%);backdrop-filter:blur(14px) saturate(160%);
  box-shadow:inset 0 0 0 1px rgb(255 255 255/.75),0 14px 30px -16px rgb(20 30 60/.35);font:inherit;color:var(--ink);cursor:pointer;
  transition:opacity .45s var(--expo)}
.how-film-play strong{font-family:Geist,Inter,sans-serif;font-size:15px;font-weight:600;letter-spacing:-.015em}
.how-film-play>span:last-child{font-size:13px;font-variant-numeric:tabular-nums;color:var(--muted)}
/* Keep the play orb centred in its control, at rest and on hover. */
.how-film-play .orb,.how-film-play .orb-core::before{animation:none}
.how-film-play .orb-core{clip-path:circle(50%)}
.how-film-play .orb i{opacity:.9;margin:-6px 0 0 -4px;border-left-width:11px;border-top-width:6px;border-bottom-width:6px}
.how-film.is-playing .how-film-play{opacity:0;pointer-events:none}
@media(hover:hover){
  .how-film-play:hover .orb{box-shadow:0 18px 44px -12px var(--a),0 0 100px -14px var(--b)}
}
/* On phones the poster is too small to carry the orb, so it sits just under the film. */
@media(max-width:640px){.how-film-play{position:static;margin-top:12px}}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* ---------- Phones ---------- */
/* The portrait camera: the chip above (its natural 4:5 frame, 125vw tall), the heading and the film below it. */
@media(max-width:760px){
  .svc-hero-copy{display:block}
  body.svc-page .svc-hero .how-film{margin-top:24px}
  body.svc-page .svc-hero h1{font-size:clamp(38px,11vw,52px)}
  .svc-tab{grid-template-columns:12px minmax(0,1fr) 12px}
}
@media(prefers-reduced-motion:reduce){.svc-board::after,.svc-board i{transition:none}}

/* ---------- The industry pages, as one line under the board ---------- */
.svc-industries{max-width:760px;margin:clamp(36px,6vh,64px) 0 0;padding-top:20px;border-top:1px solid var(--line);font-size:16px;line-height:1.65;color:var(--muted);text-wrap:pretty}
.svc-industries a{color:var(--accent);font-weight:500}
.svc-industries a:hover{text-decoration:underline;text-underline-offset:3px}
