/* Sonke Design — final editorial refinements v13 */

/* Central, consistent case-study hero. */
.case-v11-hero{
  min-height:min(84svh,880px);
  align-items:center;
}

/* =========================================================
   V15 — faster brand intro and a single, readable sales view
   ========================================================= */
.js .home-page .site-loader{
  transition:opacity .40s cubic-bezier(.22,.61,.36,1),visibility .40s step-end;
}
.home-page.loader-play .site-loader__words > span:nth-of-type(1){
  animation:loader-word-v15 .54s cubic-bezier(.2,.72,.2,1) .04s both;
}
.home-page.loader-play .site-loader__words > span:nth-of-type(2){
  animation:loader-word-v15 .54s cubic-bezier(.2,.72,.2,1) .42s both;
}
.home-page.loader-play .site-loader__words > span:nth-of-type(3){
  animation:loader-word-v15 .54s cubic-bezier(.2,.72,.2,1) .80s both;
}
.home-page.loader-play .site-loader__brand{
  animation:loader-brand-v15 .90s cubic-bezier(.16,1,.3,1) 1.18s both;
}
@keyframes loader-word-v15{
  0%{opacity:0;transform:translateY(30px) scale(.965);filter:blur(7px)}
  24%,62%{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}
  100%{opacity:0;transform:translateY(-24px) scale(1.025);filter:blur(5px)}
}
@keyframes loader-brand-v15{
  0%{opacity:0;transform:translateY(18px) scale(.94);filter:blur(8px)}
  55%,100%{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}
}
.sales-system-preview--single{
  grid-template-columns:minmax(0,1fr);
}
.sales-system-preview--single .sales-system-preview__primary{
  width:100%;
  aspect-ratio:2.05;
}

@media(prefers-reduced-motion:reduce){
  .home-page.loader-play .site-loader__brand{animation:none;opacity:1}
}
.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 h1{white-space:normal;text-wrap:balance}
  .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}
}

/* Sonke Design v14 — original visualisation proportions and live sales views. */

/* Architectural and interior visualisations keep their native aspect ratio.
   Framed assets such as branding, plans and documents retain their neutral stage. */
.case-page .case-v11-gallery{align-items:start}
.case-page .case-v11-card--lead{width:100%;max-width:980px;margin-inline:auto}
.case-page .case-v11-stage:not(.case-v11-stage--brand):not(.case-v11-stage--plan):not(.case-v11-stage--document):not(.case-v13-stage--transparent){
  position:relative;
  width:100%;
  max-height:none;
  aspect-ratio:auto;
  overflow:visible;
  background:transparent;
}
.case-page .case-v11-stage:not(.case-v11-stage--brand):not(.case-v11-stage--plan):not(.case-v11-stage--document):not(.case-v13-stage--transparent) img{
  position:static;
  inset:auto;
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
  object-position:center;
}
.case-page .case-v14-stage--portrait{max-width:460px;margin-inline:auto}
.case-page .case-v11-card--lead .case-v14-stage--portrait{max-width:720px}

/* New NOVA LINE homepage presentation: two large, readable live views. */
.service-row__image--system{
  padding:0;
  overflow:visible;
  border:0;
  background:transparent;
}
.sales-system-preview--live{
  display:grid;
  width:100%;
  height:auto;
  gap:18px;
}
.sales-system-preview--live .sales-system-preview__primary,
.sales-system-preview--live .sales-system-preview__secondary{
  position:relative;
  inset:auto;
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:2.05;
  overflow:hidden;
  border:1px solid rgba(36,35,33,.12);
  border-radius:12px;
  background:#f3f0ea;
  box-shadow:0 20px 46px rgba(36,35,33,.14);
}
.sales-system-preview--live .sales-system-preview__secondary{
  width:100%;
  justify-self:end;
  border-width:1px;
}
.v14-live-crop img,
.service-row__image--system .v14-live-crop img{
  position:absolute;
  top:-17%;
  left:0;
  width:102%;
  max-width:none;
  height:auto;
  object-fit:initial;
  object-position:initial;
  transform:none;
}

/* Opaque visual story for the black developer section. */
.developer-visual--v14{
  position:relative;
  min-height:650px;
  isolation:isolate;
}
.developer-visual--v14 .developer-visual__architecture{
  position:absolute;
  inset:0 8% 14% 0;
  display:block;
  width:92%;
  height:78%;
  object-fit:cover;
  object-position:center;
  border-radius:2px;
  background:#2a2926;
}
.developer-visual--v14 .developer-visual__system{
  position:absolute;
  right:0;
  bottom:0;
  width:64%;
  aspect-ratio:2.05;
  overflow:hidden;
  border:8px solid var(--color-dark);
  border-radius:2px;
  background:#f3f0ea;
  box-shadow:0 24px 70px rgba(0,0,0,.34);
}
.developer-visual--v14 .developer-visual__system img{
  position:absolute;
  inset:auto;
  top:-17%;
  left:0;
  width:102%;
  max-width:none;
  height:auto;
  object-fit:initial;
  transform:none;
}

@media(max-width:900px){
  .sales-system-preview--live .sales-system-preview__secondary{width:100%}
  .developer-visual--v14{min-height:560px}
}

@media(max-width:720px){
  .case-page .case-v11-card--lead{max-width:100%}
  .case-page .case-v14-stage--portrait,
  .case-page .case-v11-card--lead .case-v14-stage--portrait{max-width:min(100%,520px)}
  .sales-system-preview--live{gap:12px}
  .sales-system-preview--live .sales-system-preview__primary,
  .sales-system-preview--live .sales-system-preview__secondary{aspect-ratio:1.86;border-radius:8px}
  .sales-system-preview--live .v14-live-crop img{top:-16%;left:-5%;width:110%}
  .developer-visual--v14{min-height:410px}
  .developer-visual--v14 .developer-visual__architecture{inset:0 4% 18% 0;width:96%;height:70%}
  .developer-visual--v14 .developer-visual__system{width:88%;border-width:5px}
  .case-page .case-v11-hero h1{
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
    text-wrap:balance;
  }
  .case-page .case-v11-video-grid--single{
    grid-template-columns:minmax(0,1fr);
    width:calc(100vw - 32px);
    max-width:calc(100vw - 32px);
    min-width:0;
    overflow:hidden;
  }
  .case-page .case-v11-video-grid--single .project-v9-video-card,
  .case-page .case-v11-video-grid--single .project-v9-video-stage,
  .case-page .case-v11-video-grid--single video{
    box-sizing:border-box;
    width:100% !important;
    max-width:100% !important;
    min-width:0;
  }
  .ux-studio-teaser__grid > div{
    width:100%;
    max-width:100%;
    min-width:0;
  }
  .ux-studio-teaser .display{
    max-width:100%;
    font-size:clamp(43px,12vw,58px);
    overflow-wrap:anywhere;
  }
  .cta-band__inner{min-width:0}
  .cta-band h2{
    max-width:100%;
    font-size:clamp(46px,13vw,62px);
    overflow-wrap:anywhere;
  }
  .honeypot{
    position:absolute;
    left:auto;
    width:1px;
    height:1px;
    margin:-1px;
    padding:0;
    overflow:hidden;
    clip:rect(0 0 0 0);
    clip-path:inset(50%);
    white-space:nowrap;
    border:0;
  }
  .contact-page .contact-form,
  .contact-page .form-grid,
  .contact-page .field{
    max-width:100%;
    min-width:0;
  }
  .contact-copy h1{
    max-width:100%;
    font-size:clamp(46px,13vw,62px);
    overflow-wrap:anywhere;
  }
}
