/* EDRAK — sharp light-mode contrast, cohesive reading typography + LCP image.
   2026-11-08. Entirely EDRAK-scoped. Dark scene keeps approved framing.
   No layout/markup, timing or animation reset. */

/* Main reading rhythm: keep Arabic letterforms naturally spaced and crisp.
   Do not change project/EDRAK Latin wordmark, photo labels, or code. */
html body.tyz-site-v1:has(#edrak-project) :is(
  .tyz5-inner-hero,.tyz-edrak-case,.tyz6-footer-cta
) :is(h1,h2,h3,p,figcaption){
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
html[lang^="ar"] body.tyz-site-v1:has(#edrak-project)
 :is(.tyz5-inner-hero,.tyz-edrak-case,.tyz6-footer-cta) :is(p,figcaption){
  font-family:"Cairo","Tajawal","Noto Sans Arabic",system-ui,sans-serif;
  letter-spacing:normal;
}
html body.tyz-site-v1:has(#edrak-project) #edrak-project :is(
 .tyz-edrak-case__chapter p,.tyz-edrak-case__intro-copy p,
 .tyz-edrak-proof__copy p,.tyz-edrak-designs__feature-copy p,
 .tyz-edrak-designs__reference-head>p,
 .tyz-edrak-designs__grid figcaption small,
 .tyz-edrak-case__bottom p
){
  font-weight:500;
  line-height:1.9;
  text-wrap:pretty;
}
html body.tyz-site-v1:has(#edrak-project) #edrak-project :is(
 .tyz-edrak-proof__copy h3,.tyz-edrak-designs__feature-copy h3,
 .tyz-edrak-designs__grid figcaption strong
){
  font-weight:850;
  line-height:1.55;
}
html[lang^="ar"] body.tyz-site-v1:has(#edrak-project) #edrak-project :is(
 .tyz-edrak-case__intro-copy h2,
 .tyz-edrak-case__chapter h2,.tyz-edrak-designs__reference-head h2
){
  letter-spacing:normal!important;
}

/* DARK: exact existing night-office gradient; only swap source to smaller WebP. */
html[data-tyz-theme="dark"] body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz-site-hero.tyz5-inner-hero{
  background-image:
    linear-gradient(270deg,#06172a 0%,rgba(5,19,36,.985) 18%,
      rgba(7,23,41,.92) 39%,rgba(6,23,40,.66) 67%,rgba(5,18,34,.26) 100%),
    url("../tamiyouz-cinematic-site-v1/studio-scene-edrak-optimized.webp")!important;
}
/* LIGHT: restore the actual city/office photo on the left while keeping text
   over an opaque, readable warm-ivory field on the right. */
html[data-tyz-theme="light"] body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz-site-hero.tyz5-inner-hero{
  background:
    linear-gradient(270deg,
      rgba(255,251,244,.975) 0%,
      rgba(255,251,245,.958) 26%,
      rgba(253,247,236,.82) 47%,
      rgba(241,224,199,.40) 73%,
      rgba(224,208,188,.06) 100%),
    url("../tamiyouz-cinematic-site-v1/studio-scene-edrak-optimized.webp") left center/cover no-repeat!important;
  color:#16384b!important;
}
html[data-tyz-theme="light"] body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero__content{
  text-shadow:none!important;
}
html[data-tyz-theme="light"] body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero h1,
html[data-tyz-theme="light"] body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero h1 .tyz-edrak-hero__latin,
html[data-tyz-theme="light"] body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero h1 .tyz-edrak-hero__arabic{
  color:#0e3046!important;
  -webkit-text-fill-color:#0e3046!important;
  filter:none!important;
  text-shadow:0 2px 11px rgba(255,250,238,.13)!important;
}
html[data-tyz-theme="light"] body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero h1 em{
  color:#9a6226!important;-webkit-text-fill-color:#9a6226!important;
}
html[data-tyz-theme="light"] body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero p{
  color:#24475b!important;
  font-weight:550!important;
  text-shadow:none!important;
}
html[data-tyz-theme="light"] body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero__identity,
html[data-tyz-theme="light"] body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero__bottom span{
  color:#8c5923!important;
}

/* LIGHT: creamy champagne rather than flat white/gray. */
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-project.tyz-edrak-case{
 background:
   radial-gradient(ellipse 43% 20% at 92% 14%,rgba(229,181,117,.14),transparent 79%),
   linear-gradient(165deg,#fffaf3 0%,#faf4e9 52%,#f4ecdf 100%)!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-project .tyz-edrak-case__intro-copy h2,
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-project .tyz-edrak-case__chapter h2,
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-web-pages .tyz-edrak-proof__heading h2,
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__reference-head h2{
 color:#102f42!important;text-shadow:none!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-project :is(
 .tyz-edrak-case__intro-copy>p,.tyz-edrak-case__chapter p,.tyz-edrak-case__bottom p,
 .tyz-edrak-designs__reference-head>p,.tyz-edrak-designs__feature-copy p,
 .tyz-edrak-designs__grid figcaption small
),html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-web-pages :is(
 .tyz-edrak-proof__heading p,.tyz-edrak-proof__copy p
){
 color:#345364!important;
 opacity:1!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-project .tyz-edrak-designs__grid figcaption strong,
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-project .tyz-edrak-designs__feature-copy h3,
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-web-pages .tyz-edrak-proof__copy h3{
 color:#86531e!important;
}

/* Replace dark-only glass silhouette in light CTA with a subtle gold version.
   Keep the real particle animation in exactly the same location and speed. */
html[data-tyz-theme="light"] body.tyz-site-v1:has(#edrak-project) .tyz6-footer-cta{
 background:linear-gradient(180deg,#f7f0e4 0%,#f5efe5 100%)!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1:has(#edrak-project)
 .tyz6-footer-cta__card{
  background:
    radial-gradient(ellipse 71% 80% at 94% -10%,rgba(225,194,143,.21),transparent 74%),
    linear-gradient(122deg,#fffcf6 0%,#fbf3e7 57%,#f3e8d7 100%)!important;
  border-color:#be8f4e!important;
  box-shadow:0 22px 58px rgba(65,66,61,.12),inset 0 1px 0 rgba(255,255,255,.95)!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1:has(#edrak-project)
 .tyz6-footer-cta__texture::before{
  background-image:url("./edrak-next-chapter-gold-sand-light-v6.svg")!important;
  opacity:1!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1:has(#edrak-project)
 .tyz6-footer-cta__texture::after,
html[data-tyz-theme="light"] body.tyz-site-v1:has(#edrak-project)
 .tyz-edrak-sand-canvas-v5{
  mix-blend-mode:multiply!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1:has(#edrak-project)
 .tyz6-footer-cta__copy>p{
  color:#2d4b5b!important;
  text-shadow:none!important;
  font-weight:550!important;
  opacity:1!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1:has(#edrak-project)
 .tyz6-footer-cta h2,
html[data-tyz-theme="light"] body.tyz-site-v1:has(#edrak-project)
 .tyz6-footer-cta .tyz6-footer-title__first{
  color:#13374c!important;-webkit-text-fill-color:#13374c!important;
  text-shadow:none!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1:has(#edrak-project)
 .tyz6-footer-cta h2 em{
  color:#946021!important;-webkit-text-fill-color:#946021!important;
  text-shadow:0 1px 8px rgba(185,129,61,.10)!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1:has(#edrak-project)
 .tyz6-footer-kicker{
  color:#8e5a27!important;
}

/* At narrower widths keep the hero copy over an ivory gradient.
   Photo remains richer but never interferes with the words. */
@media(max-width:760px){
 html[data-tyz-theme="light"] body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz-site-hero.tyz5-inner-hero{
  background:
   linear-gradient(180deg,rgba(252,247,239,.96) 0%,rgba(252,247,239,.89) 51%,rgba(249,237,218,.68) 100%),
   url("../tamiyouz-cinematic-site-v1/studio-scene-edrak-optimized.webp") center/cover no-repeat!important;
 }
}
