/* DNM v6 — 2026-11-01: approved-photo viewport fit & text-side contrast.
   Keep all approved image bytes unchanged. True cover: no letterboxing,
   stretching, artificial blur or global low-resolution filters.
   Photograph fill is prioritized; some crop is unavoidable on portrait screens. */
:root{--dnm-photo-ink:rgba(3,13,31,.87)}
.dnm-cinema-scroll .dnm-cinema-backdrop__frame,
#servicesGrid.dnm-story-rail .dnm-showcase-backdrop__frame {
  inset:0!important;overflow:hidden!important;
  transform:translate3d(0,var(--bg-shift,0px),0) scale(1.035)!important;
  transform-origin:center center!important;
}
#servicesGrid.dnm-story-rail .dnm-showcase-backdrop__frame {
  transform:translate3d(0,var(--dnm-drift,0px),0) scale(1.035)!important;
}
/* Preserve the real photos: not pixel-stretched, not artificially blurred. */
.dnm-cinema-scroll .dnm-cinema-backdrop__frame img,
.dnm-cinema-stage .dnm-cinema-visual img,
#servicesGrid.dnm-story-rail .dnm-showcase-backdrop__frame img,
.dnm-interior .dnm-content-hero>img {
  width:100%!important;height:100%!important;min-width:100%;min-height:100%;
  object-fit:cover!important;image-rendering:auto!important;
  filter:none!important;transform:none!important;
}
.dnm-cinema-scroll .dnm-cinema-backdrop__frame img {object-position:50% 50%!important}
#servicesGrid.dnm-story-rail .dnm-showcase-backdrop__frame img{object-position:50% 48%!important}
/* Focal points maintain identifiable subjects in an edge-to-edge crop. */
#servicesGrid .dnm-showcase-backdrop__frame:nth-child(1) img{object-position:50% 47%!important}
#servicesGrid .dnm-showcase-backdrop__frame:nth-child(2) img{object-position:50% 44%!important}
#servicesGrid .dnm-showcase-backdrop__frame:nth-child(3) img{object-position:50% 46%!important}
#servicesGrid .dnm-showcase-backdrop__frame:nth-child(4) img{object-position:52% 48%!important}
#servicesGrid .dnm-showcase-backdrop__frame:nth-child(5) img{object-position:50% 48%!important}
#servicesGrid .dnm-showcase-backdrop__frame:nth-child(6) img{object-position:50% 50%!important}
/* Restrict shading to the written side. English: left, Arabic: right. */
.dnm-cinema-scroll .dnm-cinema-backdrop__shade,
#servicesGrid .dnm-showcase-backdrop__scrim {
  background:linear-gradient(90deg,
    rgba(3,13,31,.89) 0%,rgba(3,13,31,.79) 21%,
    rgba(3,13,31,.58) 39%,rgba(3,13,31,.25) 52%,
    rgba(3,13,31,.07) 63%,transparent 74%)!important;
  backdrop-filter:none!important;filter:none!important;
}
html[dir="rtl"] .dnm-cinema-scroll .dnm-cinema-backdrop__shade,
html[dir="rtl"] #servicesGrid .dnm-showcase-backdrop__scrim {
  background:linear-gradient(270deg,
    rgba(3,13,31,.89) 0%,rgba(3,13,31,.79) 21%,
    rgba(3,13,31,.58) 39%,rgba(3,13,31,.25) 52%,
    rgba(3,13,31,.07) 63%,transparent 74%)!important;
}
/* Non-JS & reduced-motion images retain identical directional readability. */
.dnm-cinema-stage .dnm-cinema-light,
.hero .hero-scrim {
  background:linear-gradient(90deg,
    rgba(3,13,31,.89),rgba(3,13,31,.67) 34%,
    rgba(3,13,31,.23) 54%,transparent 76%)!important;
  backdrop-filter:none!important;
}
html[dir="rtl"] .dnm-cinema-stage .dnm-cinema-light,
html[dir="rtl"] .hero .hero-scrim {
  background:linear-gradient(270deg,
    rgba(3,13,31,.89),rgba(3,13,31,.67) 34%,
    rgba(3,13,31,.23) 54%,transparent 76%)!important;
}
.hero .hero-slide{background-size:cover!important;background-position:50% 50%!important;filter:none!important}
/* Logos of approved selected projects are not photos: don't crop their lettering. */
#projects.dnm-story-rail .dnm-showcase-backdrop__frame{inset:0!important;transform:none!important}
#projects.dnm-story-rail .dnm-showcase-backdrop__frame img,
#projects .project-card .project-art img,.case-art img {
  object-fit:contain!important;image-rendering:auto!important;transform:none!important;
}
#projects.dnm-story-rail .dnm-showcase-backdrop__scrim{
  background:linear-gradient(90deg,rgba(3,13,35,.88) 0%,
      rgba(3,13,35,.70) 24%,rgba(3,13,35,.23) 42%,transparent 61%)!important;
  backdrop-filter:none!important;
}
html[dir="rtl"] #projects.dnm-story-rail .dnm-showcase-backdrop__scrim{
  background:linear-gradient(270deg,rgba(3,13,35,.88) 0%,
      rgba(3,13,35,.70) 24%,rgba(3,13,35,.23) 42%,transparent 61%)!important;
}
/* Service detail pages: keep full-bleed hero, prevent full-image darkening. */
.dnm-interior .dnm-content-hero>img{object-position:50% 50%!important}
.dnm-interior .dnm-content-hero::after{
  background:linear-gradient(90deg,rgba(3,13,31,.90),
    rgba(3,13,31,.73) 30%,rgba(3,13,31,.23) 55%,transparent 76%)!important;
  backdrop-filter:none!important;
}
html[dir="rtl"] .dnm-interior .dnm-content-hero::after{
  background:linear-gradient(270deg,rgba(3,13,31,.90),
    rgba(3,13,31,.73) 30%,rgba(3,13,31,.23) 55%,transparent 76%)!important;
}
.dnm-interior .dnm-related-card>img {object-fit:cover!important;filter:none!important}
/* Mobile copy occupies more width: text-side gradient is broader but not blurry. */
@media(max-width:820px){
 .dnm-cinema-scroll .dnm-cinema-backdrop__shade,
 #servicesGrid .dnm-showcase-backdrop__scrim,
 .dnm-cinema-stage .dnm-cinema-light,.hero .hero-scrim{
   background:linear-gradient(90deg,
      rgba(3,13,31,.89) 0%,rgba(3,13,31,.79) 39%,
      rgba(3,13,31,.52) 60%,rgba(3,13,31,.13) 82%,transparent 100%)!important;
 }
 html[dir="rtl"] .dnm-cinema-scroll .dnm-cinema-backdrop__shade,
 html[dir="rtl"] #servicesGrid .dnm-showcase-backdrop__scrim,
 html[dir="rtl"] .dnm-cinema-stage .dnm-cinema-light,
 html[dir="rtl"] .hero .hero-scrim{
   background:linear-gradient(270deg,
      rgba(3,13,31,.89) 0%,rgba(3,13,31,.79) 39%,
      rgba(3,13,31,.52) 60%,rgba(3,13,31,.13) 82%,transparent 100%)!important;
 }
 /* Project marks remain sharp and visually separated from captions. */
 #projects.dnm-story-rail .dnm-showcase-backdrop__frame img{
   top:7%!important;height:47%!important;left:9%!important;right:9%!important;
   width:82%!important;object-fit:contain!important;opacity:1!important;
 }
 #projects.dnm-story-rail .dnm-showcase-backdrop__scrim,
 html[dir="rtl"] #projects.dnm-story-rail .dnm-showcase-backdrop__scrim{
   background:linear-gradient(0deg,rgba(3,13,35,.93) 0%,
     rgba(3,13,35,.75) 27%,rgba(3,13,35,.12) 53%,transparent 70%)!important;
 }
 .dnm-interior .dnm-content-hero::after{
   background:linear-gradient(0deg,rgba(3,13,31,.91),
     rgba(3,13,31,.65) 38%,rgba(3,13,31,.11) 70%,transparent 96%)!important;
 }
}
@media(prefers-reduced-motion:reduce){
 .dnm-cinema-backdrop__frame,#servicesGrid .dnm-showcase-backdrop__frame{
    transform:none!important;
 }
 .dnm-interior .dnm-related-card>img{transform:none!important}
}
