/* Sonke Design — final editorial refinements v13 */

/* Central, consistent case-study hero. */
.case-v11-hero{
  min-height:min(84svh,880px);
  align-items:center;
}
.case-v11-hero__overlay{
  background:
    linear-gradient(90deg,rgba(12,11,10,.30),rgba(12,11,10,.12) 40%,rgba(12,11,10,.28)),
    linear-gradient(180deg,rgba(12,11,10,.28),rgba(12,11,10,.18) 44%,rgba(12,11,10,.58));
}
.case-v11-hero__content{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding-top:clamp(130px,15vh,180px);
  padding-bottom:clamp(70px,10vh,120px);
  text-align:center;
}
.case-v11-hero__eyebrow{max-width:900px;margin:0 auto 18px}
.case-v11-hero h1{
  max-width:min(1180px,94vw);
  margin-inline:auto;
  font-size:clamp(62px,9.2vw,142px);
  line-height:.82;
}
.case-v11-hero__scope{max-width:920px;margin:28px auto 0}

/* Shorter case studies and complete, uncropped image presentation. */
.case-page .section.case-v11-section:not(.case-v12-website){padding-block:clamp(72px,7.5vw,122px)}
.case-v11-gallery{gap:clamp(14px,1.7vw,24px)}
.case-v11-stage{
  position:relative;
  aspect-ratio:16/10;
  max-height:380px;
  overflow:hidden;
  background:#e9e4dd;
}
.case-v11-card--lead .case-v11-stage{
  aspect-ratio:16/9;
  max-height:520px;
  background:#e7e1d9;
}
.case-v11-stage img,
.case-v11-card--lead .case-v11-stage img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}
.case-v11-card:hover .case-v11-stage img{transform:none}
.case-v11-stage--brand,
.case-v11-stage--plan,
.case-v11-stage--document,
.case-v13-stage--transparent{
  aspect-ratio:4/3;
  max-height:460px;
  background:#fff;
}
.case-v13-stage--transparent img{inset:9%;width:82%;height:82%;object-fit:contain}
.case-v11-card figcaption{
  padding-top:9px;
  color:#817970;
  font-size:10px;
  letter-spacing:.04em;
  text-transform:none;
}
.case-v11-gallery--more{margin-top:clamp(14px,1.7vw,24px)}
.case-v11-more{margin-top:24px}

/* Real sales-system views on the homepage. */
.service-row__image--system{
  position:relative;
  isolation:isolate;
  padding:12px;
  overflow:hidden;
  background:#ebe8e1;
  border:1px solid rgba(36,35,33,.10);
}
.sales-system-preview{position:relative;display:block;width:100%;height:100%}
.sales-system-preview__primary{
  display:grid;
  width:100%;
  height:100%;
  place-items:center;
  overflow:hidden;
  border-radius:10px;
  background:#f4f2ed;
}
.service-row__image--system .sales-system-preview__primary img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}
.sales-system-preview__secondary{
  position:absolute;
  z-index:2;
  right:14px;
  bottom:14px;
  display:grid;
  width:48%;
  aspect-ratio:1.85;
  place-items:center;
  overflow:hidden;
  border:6px solid #f7f4ee;
  border-radius:8px;
  background:#f7f4ee;
  box-shadow:0 18px 42px rgba(35,32,28,.22);
}
.service-row__image--system .sales-system-preview__secondary img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center top;
}

/* Actual map and unit table on the developer page. */
.system-showcase__visual--actual{
  display:grid;
  gap:18px;
  padding:0;
}
.system-shot{min-width:0;margin:0}
.system-shot img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
  border:1px solid rgba(36,35,33,.10);
  border-radius:12px;
  background:#f2efe9;
  box-shadow:0 24px 60px rgba(36,35,33,.13);
}
.system-shot--table{width:88%;justify-self:end}
.system-shot figcaption{
  padding-top:9px;
  color:var(--color-text-muted);
  font:500 10px/1.4 Inter,sans-serif;
  letter-spacing:.06em;
  text-transform:uppercase;
}

/* The black website section stays; playback is deliberate and manual. */
.case-v12-website .project-v9-video-stage video{cursor:pointer}
.case-v12-website .project-v10-controls{background:rgba(10,12,14,.86)}
.case-v12-website .project-v10-controls__play{border:1px solid rgba(255,255,255,.18)}
.case-v12-website video:not([data-has-played]){object-fit:cover}

@media(max-width:900px){
  .system-showcase__visual--actual{margin-top:10px}
  .system-shot--table{width:100%}
}

@media(max-width:720px){
  .case-v11-hero{min-height:72svh}
  .case-v11-hero__content{width:100%;padding-top:112px;padding-bottom:54px;padding-inline:20px}
  .case-v11-hero__eyebrow{width:min(340px,100%);font-size:9px;line-height:1.55;text-wrap:balance}
  .case-v11-hero h1{max-width:100%;font-size:clamp(46px,14vw,62px);line-height:.9;white-space:nowrap}
  .case-v11-hero__scope{width:min(380px,100%);margin-top:20px;font-size:9px;line-height:1.55;text-wrap:balance}
  .case-v11-stage,
  .case-v11-card--lead .case-v11-stage{aspect-ratio:4/3;max-height:70svh}
  .case-v11-stage--brand,
  .case-v11-stage--plan,
  .case-v11-stage--document,
  .case-v13-stage--transparent{aspect-ratio:1/1}
  .service-row__image--system{aspect-ratio:4/3;padding:8px}
  .sales-system-preview__secondary{right:8px;bottom:8px;width:57%;border-width:4px}
}

@media(prefers-reduced-motion:reduce){
  .case-v11-stage img{transition:none}
}
