/* DNM V11 — Seamless image sequence / accessible bilingual portfolio / typography.
 * Consolidated single-purpose override. Maintains existing V10 behavior and assets.
 * Arabic: type on right, artwork on left. English: type on left, artwork on right.
 */
:root{
  --dnm-seam:#0a1d3c;
  --dnm-display-ar:'Alexandria','IBM Plex Sans Arabic',sans-serif;
  --dnm-copy-ar:'IBM Plex Sans Arabic',sans-serif;
  --dnm-font-en:'Manrope',sans-serif;
}
/* Never allow a white or transparent hairline at the join between image chapters. */
html, body{overflow-x:clip}
.dnm-cinema-scroll.dnm-v9-cinema-scenes,
#servicesGrid.dnm-v9-sequential,
#projects.dnm-v9-sequential,
body.dnm-work-page .work-collection{background:var(--dnm-seam)!important}
.dnm-cinema-scroll.dnm-v9-cinema-scenes>.hero,
.dnm-cinema-scroll.dnm-v9-cinema-scenes>.dnm-cinema-stage,
#servicesGrid.dnm-v9-sequential>a.expertise-item,
#projects.dnm-v9-sequential>a.project-card,
body.dnm-work-page .work-feature{
 background:var(--dnm-seam)!important; border:0!important; border-radius:0!important;
 outline:0!important; box-shadow:none!important; margin-block:0!important;
 background-clip:border-box!important;
}
/* Each original photograph fades into the SAME shared base tone at both edges;
   content is not cross-faded with the next unrelated image. */
.dnm-cinema-scroll.dnm-v9-cinema-scenes>.hero .hero-slide,
.dnm-cinema-scroll.dnm-v9-cinema-scenes>.dnm-cinema-stage>.dnm-cinema-visual,
#servicesGrid.dnm-v9-sequential>a.expertise-item>.service-preview{
 -webkit-mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.14) 5%,#000 19%,#000 77%,rgba(0,0,0,.14) 95%,transparent 100%)!important;
 mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.14) 5%,#000 19%,#000 77%,rgba(0,0,0,.14) 95%,transparent 100%)!important;
}
/* Do not double-mask the service photograph or fade a project emblem itself. */
#servicesGrid.dnm-v9-sequential>a.expertise-item .service-preview img,
#projects.dnm-v9-sequential>a.project-card .project-art img,
body.dnm-work-page .work-feature .work-picture img{
 -webkit-mask-image:none!important;mask-image:none!important;
}
/* The hero's own vignette must also dissolve at scene edges. */
.dnm-cinema-scroll.dnm-v9-cinema-scenes>.hero .hero-scrim,
.dnm-cinema-scroll.dnm-v9-cinema-scenes>.hero .hero-mesh{
 -webkit-mask-image:linear-gradient(to bottom,transparent,#000 17%,#000 80%,transparent)!important;
 mask-image:linear-gradient(to bottom,transparent,#000 17%,#000 80%,transparent)!important;
}
#servicesGrid.dnm-v9-sequential>a.expertise-item,
#projects.dnm-v9-sequential>a.project-card{
 min-width:0!important;max-width:100%!important;
}
/* Full-bleed photos still carry a gentle shadow where the copy sits. */
#servicesGrid.dnm-v9-sequential>a.expertise-item::before{
 background:linear-gradient(to bottom,rgba(10,29,60,.3) 0%,rgba(10,29,60,.04) 43%,rgba(5,17,38,.68) 79%,#0a1d3c 100%)!important;
}
/* Portfolio: two intentionally non-overlapping spatial regions.
   In RTL the first logical grid track is RIGHT; in LTR it is LEFT. */
#projects.dnm-v9-sequential>a.project-card,
body.dnm-work-page .work-feature{
 display:grid!important;
 grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
 grid-template-rows:minmax(0,1fr)!important;
 align-items:center!important;
 justify-content:stretch!important;
 column-gap:clamp(22px,4vw,80px)!important;
 min-height:clamp(650px,100svh,1100px)!important;
 padding:clamp(115px,13svh,165px) clamp(24px,7vw,128px) clamp(90px,11svh,132px)!important;
 direction:inherit!important;
}
#projects.dnm-v9-sequential>a.project-card::before,
body.dnm-work-page .work-feature::after{
 background:linear-gradient(to bottom,var(--dnm-seam) 0%,transparent 22%,transparent 75%,var(--dnm-seam) 100%)!important;
}
#projects.dnm-v9-sequential>a.project-card>.project-meta,
body.dnm-work-page .work-feature>div{
 grid-column:1!important;grid-row:1!important;
 align-self:center!important;justify-self:stretch!important;
 position:relative!important;z-index:3!important;
 width:100%!important;max-width:100%!important;
 min-width:0!important;margin:0!important;padding:0!important;
 text-align:start!important;pointer-events:auto!important;
}
/* Avoid headings becoming a translucent overlay across the mark. */
#projects.dnm-v9-sequential>a.project-card .project-meta h3,
body.dnm-work-page .work-feature h2{
 max-width:100%!important;overflow-wrap:break-word!important;text-wrap:balance;
 font-family:var(--dnm-display-ar)!important;
 font-size:clamp(37px,4.5vw,72px)!important;line-height:1.45!important;
}
#projects.dnm-v9-sequential>a.project-card .project-meta :is(span,h3),
body.dnm-work-page .work-feature :is(h2,p){text-align:start!important}
html[lang="en"] #projects.dnm-v9-sequential>a.project-card .project-meta h3,
html[lang="en"] body.dnm-work-page .work-feature h2{font-family:var(--dnm-font-en)!important;line-height:1.16!important}
/* The project mark remains an unmasked, original transparent image. The
   ivory radial light field makes even dark-green typography legible. */
#projects.dnm-v9-sequential>a.project-card>.project-art,
body.dnm-work-page .work-feature .work-picture,
body.dnm-work-page .work-feature:nth-child(even) .work-picture{
 grid-column:2!important;grid-row:1!important;
 position:relative!important;z-index:2!important;
 inset:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
 width:100%!important;height:clamp(390px,58svh,670px)!important;max-height:70svh!important;
 justify-self:stretch!important;align-self:center!important;
 display:grid!important;place-items:center!important;
 min-width:0!important;margin:0!important;padding:0!important;
 overflow:visible!important;isolation:isolate!important;
 background:transparent!important;border:none!important;border-radius:0!important;
 box-shadow:none!important;transform:none!important;order:initial!important;
}
/* Preserve organic edges: no rectangular badge, frame or solid backing. */
#projects.dnm-v9-sequential>a.project-card>.project-art::before,
body.dnm-work-page .work-feature .work-picture::before{
 content:""!important;display:block!important;
 position:absolute!important;inset:-2%!important;z-index:-1!important;
 border:0!important;border-radius:50%!important;
 background:radial-gradient(ellipse at 50% 50%,rgba(244,249,239,.99) 0%,rgba(240,248,240,.89) 30%,rgba(205,227,231,.43) 52%,rgba(25,55,83,.05) 70%,transparent 77%)!important;
 opacity:1!important;pointer-events:none!important;
}
#projects.dnm-v9-sequential>a.project-card>.project-art::after,
body.dnm-work-page .work-feature .work-picture::after{display:none!important;content:none!important}
#projects.dnm-v9-sequential>a.project-card .project-art img,
html[dir="rtl"] #projects.dnm-v9-sequential>a.project-card .project-art img,
html[dir="ltr"] #projects.dnm-v9-sequential>a.project-card .project-art img,
body.dnm-work-page .work-feature .work-picture img,
html[dir="rtl"] body.dnm-work-page .work-feature .work-picture img,
html[dir="ltr"] body.dnm-work-page .work-feature .work-picture img{
 position:relative!important;display:block!important;
 inset:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
 width:100%!important;height:100%!important;max-height:100%!important;max-width:100%!important;
 margin:auto!important;padding:clamp(8px,2.5vw,36px)!important;
 object-fit:contain!important;object-position:center!important;
 opacity:1!important;filter:drop-shadow(0 16px 24px rgba(0,0,0,.10))!important;
 transform:none!important;
}
/* The whole main-project tile is clickable; the index art link stays clickable. */
body.dnm-work-page .work-feature .work-picture{pointer-events:auto!important}
body.dnm-work-page .work-feature>div{pointer-events:auto!important}
body.dnm-work-page .work-feature .work-open{position:relative!important;z-index:4!important}
/* Remove inherited top-level pseudo stripes and make both index and home consistent. */
body.dnm-work-page .work-collection{padding:0!important;margin:0!important}
body.dnm-work-page .work-feature:nth-child(n){background:var(--dnm-seam)!important}
body.dnm-work-page .work-feature{overflow:hidden!important}
/* Typography — no new typefaces: the same established display + body families,
   consistently used on the main navbar, About, and Chairperson's message. */
html[lang="ar"] :is(.site-header,.desktop-nav,.mobile-nav,.nav-right,
 .dnm-about-nav,.dnm-work-page .work-top,.dnm-work-page .work-intro,
 .dnm-chairman-message,.dnm-chairman-signature){font-family:var(--dnm-copy-ar)!important;letter-spacing:0!important}
html[lang="en"] :is(.site-header,.desktop-nav,.mobile-nav,.nav-right,
 .dnm-about-nav,.dnm-work-page .work-top,.dnm-work-page .work-intro,
 .dnm-chairman-message,.dnm-chairman-signature){font-family:var(--dnm-font-en)!important}
html[lang="ar"] :is(.dnm-about-nav a,.site-header nav a,.site-header .language-toggle,
 .dnm-chairman-message p,.dnm-chairman-signature span){font-family:var(--dnm-copy-ar)!important}
html[lang="en"] :is(.dnm-about-nav a,.site-header nav a,.site-header .language-toggle,
 .dnm-chairman-message p,.dnm-chairman-signature span){font-family:var(--dnm-font-en)!important}
html[lang="ar"] :is(.dnm-chairman-heading,.dnm-chairman-heading span,
 .dnm-about-title,.dnm-about-hero h1,.dnm-about-final h2,
 .dnm-work-page .work-intro h1){font-family:var(--dnm-display-ar)!important;letter-spacing:0!important}
html[lang="en"] :is(.dnm-chairman-heading,.dnm-chairman-heading span,
 .dnm-about-title,.dnm-about-hero h1,.dnm-about-final h2,
 .dnm-work-page .work-intro h1){font-family:var(--dnm-font-en)!important}
.dnm-chairman-heading{font-size:clamp(34px,3.55vw,58px)!important;line-height:1.48!important;font-weight:800!important}
.dnm-chairman-message p{font-size:clamp(16px,1.22vw,19px)!important;line-height:2!important}
html[lang="en"] .dnm-chairman-heading{line-height:1.22!important}
/* About page: generous hierarchy, restrained brand accents, purposeful art. */
body.dnm-about-page .dnm-about-nav{font-family:var(--dnm-copy-ar)!important;min-height:86px;height:auto;gap:clamp(12px,2vw,36px)}
html[lang="en"] body.dnm-about-page .dnm-about-nav{font-family:var(--dnm-font-en)!important}
body.dnm-about-page .dnm-about-nav a{font-family:inherit!important;line-height:1.5;white-space:nowrap}
body.dnm-about-page .dnm-about-hero{background:var(--dnm-seam)!important}
body.dnm-about-page .dnm-about-hero::after{
 background:linear-gradient(to bottom,rgba(10,29,60,.15),rgba(10,29,60,.25) 47%,var(--dnm-seam)),
 linear-gradient(270deg,rgba(6,17,47,.94),rgba(6,17,47,.51) 57%,rgba(8,19,45,.12))!important;
}
html[dir="ltr"] body.dnm-about-page .dnm-about-hero::after{
 background:linear-gradient(to bottom,rgba(10,29,60,.15),rgba(10,29,60,.25) 47%,var(--dnm-seam)),
 linear-gradient(90deg,rgba(6,17,47,.94),rgba(6,17,47,.51) 57%,rgba(8,19,45,.12))!important;
}
body.dnm-about-page .dnm-about-hero h1{max-width:880px!important;font-size:clamp(49px,8vw,112px)!important;line-height:1.35!important}
html[lang="en"] body.dnm-about-page .dnm-about-hero h1{line-height:1.12!important}
body.dnm-about-page .dnm-about-chapter{padding-block:clamp(96px,11vw,172px)!important}
body.dnm-about-page .dnm-about-split{align-items:center!important;gap:clamp(40px,7vw,128px)!important}
body.dnm-about-page .dnm-about-title{font-size:clamp(32px,4.2vw,66px)!important;line-height:1.52!important}
html[lang="en"] body.dnm-about-page .dnm-about-title{line-height:1.22!important}
body.dnm-about-page .dnm-about-copy{line-height:2.05!important}
body.dnm-about-page .dnm-about-image{background:#dce5f0!important;overflow:hidden!important;border:0!important;border-radius:0!important}
body.dnm-about-page .dnm-about-image::after{box-shadow:none!important;content:none!important}
body.dnm-about-page .dnm-about-image img{transform:scale(1.002);object-fit:cover!important}
body.dnm-about-page .dnm-v9-route{margin-block-start:clamp(64px,8vw,108px)!important}
body.dnm-about-page .dnm-v9-route-stops{align-items:start!important}
/* Accessibility and smoothness: outlines only on keyboard focus. */
#projects.dnm-v9-sequential>a.project-card:focus-visible,
#servicesGrid.dnm-v9-sequential>a.expertise-item:focus-visible,
body.dnm-work-page .work-feature a:focus-visible,
body.dnm-about-page a:focus-visible{outline:3px solid #ffac61!important;outline-offset:-4px!important}
@media(max-width:850px){
 #projects.dnm-v9-sequential>a.project-card,
 body.dnm-work-page .work-feature{
  grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important;
  align-content:center!important;row-gap:clamp(14px,4vh,35px)!important;
  padding:clamp(82px,12vh,120px) clamp(22px,5vw,54px) clamp(70px,9vh,110px)!important;
  min-height:clamp(640px,100svh,920px)!important;
 }
 #projects.dnm-v9-sequential>a.project-card>.project-art,
 body.dnm-work-page .work-feature .work-picture,
 body.dnm-work-page .work-feature:nth-child(even) .work-picture{
  grid-column:1!important;grid-row:1!important;
  width:100%!important;height:clamp(260px,43svh,450px)!important;max-height:none!important;
 }
 #projects.dnm-v9-sequential>a.project-card>.project-meta,
 body.dnm-work-page .work-feature>div{
  grid-column:1!important;grid-row:2!important;
  width:100%!important;max-width:100%!important;align-self:start!important;
 }
 #projects.dnm-v9-sequential>a.project-card .project-meta h3,
 body.dnm-work-page .work-feature h2{font-size:clamp(28px,6.3vw,46px)!important}
 body.dnm-about-page .dnm-about-title{font-size:clamp(32px,6vw,52px)!important}
}
@media(max-width:600px){
 #projects.dnm-v9-sequential>a.project-card,
 body.dnm-work-page .work-feature{gap:10px!important;padding-inline:20px!important;min-height:clamp(630px,100svh,870px)!important}
 #projects.dnm-v9-sequential>a.project-card>.project-art,
 body.dnm-work-page .work-feature .work-picture,
 body.dnm-work-page .work-feature:nth-child(even) .work-picture{height:clamp(250px,40svh,350px)!important}
 #projects.dnm-v9-sequential>a.project-card>.project-meta,
 body.dnm-work-page .work-feature>div{padding-inline:2px!important}
 body.dnm-about-page .dnm-about-nav{padding:12px 14px!important;min-height:70px;gap:8px!important}
 body.dnm-about-page .dnm-about-nav .dnm-about-cta-nav{padding:9px!important}
 body.dnm-about-page .dnm-about-hero h1{font-size:clamp(42px,10vw,61px)!important}
 body.dnm-about-page .dnm-about-chapter{padding-block:76px!important}
 body.dnm-about-page .dnm-about-image{height:clamp(320px,86vw,500px)!important}
}
@media(prefers-reduced-motion:reduce){
 .dnm-cinema-scroll.dnm-v9-cinema-scenes .hero-slide,
 .dnm-cinema-scroll.dnm-v9-cinema-scenes .dnm-cinema-visual img,
 #servicesGrid.dnm-v9-sequential>a.expertise-item .service-preview img,
 #projects.dnm-v9-sequential>a.project-card .project-art img{animation:none!important;transition:none!important}
}

/* Unconfigured LinkedIn stays out of the public footer. */
a.social[data-social="linkedin"][hidden]{display:none!important}
