/* Shared alignment for the eight individual service pages. */
.sd-page .sd-section-heading{align-items:start}
.sd-page .sd-section-heading>div{align-self:start}
.sd-page .sd-section-intro{display:grid;gap:18px;align-self:start;max-width:50ch}
.sd-page .sd-section-intro>p{max-width:none}
.sd-page .pk-band,.sd-page .pk-capabilities,.sd-page .sd-process{padding-block:var(--sd-space)}
.sd-page .pk-capabilities .sd-section-heading{margin-bottom:40px}
.sd-page .sd-local-nav a{flex:0 0 auto}
.sd-page section[id]{scroll-margin-top:var(--sd-anchor-offset,80px)}

/* Match each project's frame and top edge while preserving the artwork's proportions. */
.sd-page .sd-project-image{aspect-ratio:3/2;background:transparent;align-self:start;align-items:flex-start}
.sd-page .sd-project-image img{width:100%;height:100%;object-fit:contain;object-position:center top}
.sd-page .sd-project-grid:has(img[src="/assets/cases/product-modelling-amazon-a-cockatoo-treadmill-1.webp"]) .sd-project-image,
.sd-page .sd-project-grid:has(img[src="/assets/roshar/catalogue-cover.webp"]) .sd-project-image{aspect-ratio:1800/1266}
.sd-page .sd-project-grid:has(img[src="/assets/pogou/range.webp"]) .sd-project-image{aspect-ratio:1440/889}
.sd-page .sd-project-grid:has(img[src="/assets/noor/identity-enhanced.webp"]) .sd-project-image{aspect-ratio:1}
.sd-page .sd-project-grid:has(img[src="/assets/services/signage-0.webp"]) .sd-project-image{aspect-ratio:1133/1600}
/* These inspected crops remove only empty white or orange background.
   Bournvita keeps its complete pack in all three landscape frames;
   Roshar loses about 38px of orange background on either side. */
.sd-page .sd-project-image img[src="/assets/campaigns/bournvita-hero-hires-delivery.webp"],
.sd-page .sd-project-image img[src="/assets/roshar/catalogue-cover.webp"]{object-fit:cover;object-position:center}
.sd-page .other-applications{column-gap:var(--sd-gap);row-gap:40px;margin-top:40px;align-items:start}
.sd-page .other-applications img{width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;object-position:center top;background:transparent}
.sd-page .other-applications:has(img[src="/assets/noor/wordmark.webp"]) img{aspect-ratio:1}
.sd-page .other-applications:has(img[src="/assets/loanstate/services-clean.webp"]) img{aspect-ratio:1333/666}
.sd-page .other-applications figcaption{margin-top:20px}
.sd-page .pk-cap-top{align-items:flex-start}

/* Share text rows so a wrapped heading cannot stagger neighbouring copy. */
@supports(grid-template-rows:subgrid){
 @media(min-width:721px){
  .sd-page .pk-capability{display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:0;align-items:start}
  .sd-page .pk-cap-top{align-self:start}
  .sd-page .pk-capability details{margin-top:0;align-self:start}
 }
 .sd-page .sd-steps article{display:grid;grid-row:span 3;grid-template-rows:subgrid;row-gap:0;align-items:start}
 .sd-page .sd-steps article>span{justify-self:start;align-self:start}
}

@media(max-width:720px){
 .sd-page section[id]{scroll-margin-top:var(--sd-anchor-offset,0px)}
 .sd-page .sd-section-intro{gap:16px;max-width:none}
 .sd-page .pk-capabilities .sd-section-heading{margin-bottom:28px}
 .sd-page .other-applications{gap:40px;margin-top:40px}
 .sd-page .sd-one-project .sd-project{gap:20px}
}
