/* Live video clipped inside an angled portfolio board. */
.service-detail { --work-height:clamp(200px,18vw,320px);--work-top:calc(var(--header-h) + 3.7rem);row-gap:2.5rem;column-gap:clamp(3rem,6vw,6rem);padding-block:3rem; }
.service-montage,.service-detail > .service-detail__banner { position:sticky;top:var(--work-top);z-index:15;grid-column:1/-1;margin:0 calc(-1 * var(--pad));height:var(--work-height);background:#171918;overflow:hidden;isolation:isolate; }
.service-detail > .service-detail__banner img { width:100%;height:100%;object-fit:cover; }
.service-detail__summary { top:calc(var(--work-top) + var(--work-height) + 2.5rem); }
.service-detail__capabilities article { min-height:155px;scroll-margin-top:calc(var(--work-top) + var(--work-height) + 3rem); }
.service-montage__board { position:absolute;width:1120px;height:900px;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-26deg) scale(var(--work-scale,1));transform-origin:center; }
.work-device { position:absolute;background:linear-gradient(135deg,#414442,#111412 8%,#020403 80%,#5d625e);padding:7px;border:1px solid #7b817b;border-radius:17px;box-shadow:2px 10px 22px #0008,inset 0 0 0 2px #08090c; }
.work-device__screen { position:relative;width:100%;height:100%;overflow:hidden;border-radius:10px;background:#0c100e; }
.work-device img,.work-device video { display:block;width:100%;height:100%;object-fit:cover;object-position:top; }
.work-device--tablet { padding:10px; }
.work-device--phone { border-radius:26px;padding:6px; }
.work-device--phone .work-device__screen { border-radius:20px; }
.work-device--phone::after { content:"";position:absolute;top:11px;left:50%;transform:translateX(-50%);width:42%;height:10px;background:#050706;border-radius:0 0 8px 8px; }
.work-device--poster { padding:7px;border-radius:12px; }
.work-device--poster .work-device__screen { border-radius:6px; }
.work-device__screen video { position:absolute;inset:0;opacity:0;transition:opacity .25s ease; }
.work-device__screen .work-video-fallback { position:absolute;inset:0; }
.work-device__screen.is-video-ready video { opacity:1; }
.work-device__screen.is-video-ready .work-video-fallback { visibility:hidden; }
.work-cluster { position:absolute;inset:0; }
.work-piece--a { left:0;top:25px;width:250px;height:260px; }
.work-piece--b { left:280px;top:0;width:240px;height:285px; }
.work-piece--c { left:600px;top:320px;width:155px;height:300px; }
.work-piece--d { left:840px;top:0;width:250px;height:280px; }
.work-piece--e { left:30px;top:320px;width:155px;height:300px; }
.work-piece--f { left:280px;top:320px;width:250px;height:280px; }
.work-piece--g { left:560px;top:0;width:240px;height:280px; }
.work-piece--h { left:840px;top:320px;width:250px;height:280px; }
.work-piece--i { left:0;top:655px;width:250px;height:225px; }
.work-piece--j { left:850px;top:650px;width:155px;height:300px; }
.work-stylus { position:absolute;left:1090px;top:35px;width:9px;height:200px;border-radius:6px;background:linear-gradient(90deg,#a5aaa6,#f1f3f0 45%,#818783);box-shadow:4px 6px 7px #0008; }
.service-montage::after { content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(5,9,7,.94) 0%,rgba(5,9,7,.62) 10%,rgba(5,9,7,.18) 24%,transparent 38%,transparent 62%,rgba(5,9,7,.18) 76%,rgba(5,9,7,.62) 90%,rgba(5,9,7,.94) 100%);box-shadow:inset 0 0 36px #0004; }
.service-montage__pause { position:absolute;z-index:2;right:var(--pad);bottom:16px;display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #ffffff70;background:#0b100dcc;color:#fff;border-radius:50%;font-size:13px;cursor:pointer;backdrop-filter:blur(8px); }
.service-montage__pause:hover { background:#203529; }
.service-montage__pause:focus-visible { outline:2px solid #9beecf;outline-offset:3px; }
@media(prefers-reduced-motion:reduce) { .work-device__screen video { transition:none; } }
.service-detail__summary > p { max-width:46ch; }
.service-detail__summary .service-tools { gap:.8rem 1.1rem;margin-top:1.4rem; }
.service-detail__actions { margin-top:1.5rem; }
@media(min-width:901px) and (max-height:850px) { .service-detail { --work-height:180px;row-gap:1.5rem; } .service-detail__summary { top:calc(var(--work-top) + var(--work-height) + 1.5rem); } .service-detail__summary > p { font-size:.9rem; } .service-detail__summary .service-tools { margin-top:1rem; } .service-detail__actions { margin-top:1rem; } }
@media(max-width:900px) { .service-detail { grid-template-columns:minmax(0,1fr);--work-height:300px;gap:2rem; } .service-montage,.service-detail > .service-detail__banner,.service-detail__summary { position:relative;top:auto; } .service-detail__actions { flex-direction:row;align-items:center; } .service-detail__capabilities article { min-height:0; } }
@media(max-width:720px) { .service-detail { padding-block:2rem;--work-height:260px; } .service-montage__board { transform:translate(-50%,-50%) rotate(-26deg) scale(var(--work-scale,.6)); } }

/* Social campaign artwork is shown in full within each screen. */
.work-device img { object-fit:contain;background:#101311; }
.work-device.is-dashboard { width:265px;height:185px;padding:7px; }
.work-device.is-dashboard img { background:#f4f6f9; }

/* Keep the copy fade attached to its banner throughout sticky release. */
.service-banner-clip { position:absolute;inset:0;overflow:hidden; }
.service-banner-edge { display:none; }
@media(min-width:901px) {
  .service-montage,.service-detail > .service-detail__banner { overflow:visible; }
  .service-detail__summary { grid-column:1;grid-row:2; }
  .service-detail__capabilities { grid-column:2;grid-row:2; }
  .service-banner-edge {
    display:block;position:absolute;top:100%;right:var(--pad);
    width:calc((100% - 2 * var(--pad) - clamp(3rem,6vw,6rem)) * .55);
    height:64px;z-index:3;pointer-events:none;
    background:linear-gradient(to bottom,var(--paper) 0%,var(--paper) 12%,rgba(13,14,18,.94) 30%,rgba(13,14,18,.55) 65%,transparent 100%);
  }
}

/* Pure-black letterboxing separates the screens from the surrounding board. */
.work-device__screen,.work-device img,.work-device video,.work-device.is-dashboard img { background:#000; }
.work-device video { object-fit:contain; }

/* Portrait clips fill their device; only static artwork may letterbox. */
.work-device__screen video,.work-device__screen .work-video-fallback { object-fit:cover;object-position:center; }

/* Balance dashboard letterboxing above and below the supplied image. */
.work-device.is-dashboard img { object-position:center center; }

/* Keep each service banner flush with the sticky selector. */
.services-directory__sections > .service-detail { padding-top:0;scroll-margin-top:var(--work-top); }
