/* EDRAK V1 — REAL LIGHT / DARK THEME PARITY (2026-11-08)
   Diagnosis: global header toggled html[data-tyz-theme] correctly but EDRAK
   custom case/hero/sections/footer hard-coded navy backgrounds for both modes.
   Keep DARK *exactly* as previously approved. In LIGHT use pearl/champagne/navy
   with readable contrast throughout the page, without changing layouts,
   images, RTL, animations, gold cursor, or shared templates.
   All selectors scoped to this single EDRAK case study. */
html[data-tyz-theme="light"] body.tyz-site-v1:has(#edrak-project) {
  --edrak-light-paper:#f8f5ef;
  --edrak-light-card:#fffdf9;
  --edrak-light-ink:#183247;
  --edrak-light-copy:#475c6b;
  --edrak-light-gold:#99662c;
  --edrak-light-line:#dac4a4;
  color-scheme:light;
  background:#f8f5ef!important;
  color:var(--edrak-light-ink)!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1:has(#edrak-project) #tyz-site-v1 {
  background:radial-gradient(ellipse 75% 26% at 91% 10%,rgba(228,183,105,.16),transparent 82%),#f8f5ef!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-project.tyz-edrak-case {
  --edrak-ink:#17374a;
  --edrak-muted:#4b6271;
  --edrak-gold:#96632d;
  --edrak-line:rgba(156,113,67,.30);
  background:
    radial-gradient(ellipse 62% 29% at 95% 6%,rgba(233,199,147,.27),transparent 84%),
    radial-gradient(ellipse 45% 23% at 4% 62%,rgba(180,205,220,.25),transparent 79%),
    linear-gradient(170deg,#fbf9f5 0%,#f7f2e9 52%,#f4eee4 100%)!important;
  color:#1b374a!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-project :is(
  .tyz-edrak-case__crumb,.tyz-edrak-case__crumb>span,.tyz-edrak-case__overline
) {color:#93632f!important;}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-project .tyz-edrak-case__crumb a{
  color:#875827!important;border-color:#b69a71!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-project .tyz-edrak-case__masthead-rule{
  background:linear-gradient(90deg,transparent,#c99c57,transparent)!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-project :is(
 .tyz-edrak-case__intro-copy h2,.tyz-edrak-case__chapter h2,
 .tyz-edrak-case__bottom h2
){
  color:#18384d!important;
  text-shadow:none!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-project :is(
 .tyz-edrak-case__intro-copy h2 em,.tyz-edrak-case__chapter h2 em,
 .tyz-edrak-case__bottom h2 em
){color:#976428!important;-webkit-text-fill-color:#976428!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
){color:#405b6e!important;}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-project .tyz-edrak-case__tags span{
 background:#fffdfa!important;
 border-color:#dfc9a8!important;
 color:#27485b!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-project .tyz-edrak-case__hero-visual{
 background:linear-gradient(145deg,#fffdf9,#e8eff2)!important;
 border-color:#d0aa6c!important;
 box-shadow:0 25px 65px rgba(41,70,84,.15)!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-project .tyz-edrak-case__hero-visual figcaption{
 color:#8f602c!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-project .tyz-edrak-case__action--outline{
  color:#214054!important;
  border-color:#ba996b!important;
  background:rgba(255,255,255,.74)!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-project .tyz-edrak-case__chapter>a{
 color:#1a3c51!important;border-color:#bea078!important;background:#fffcf8!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-project .tyz-edrak-case__screenshot-wrap,
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-website-showcase.tyz-edrak-case__showcase{
 background:linear-gradient(155deg,#fffdf9,#e6eef2)!important;
 border-color:#c8a46b!important;
 box-shadow:0 25px 65px rgba(27,61,83,.16),inset 0 1px 0 rgba(255,255,255,.76)!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-website-showcase .tyz-edrak-case__showcase-footer>span{
 color:#86582d!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-project .tyz-edrak-case__screenshot-bottom{
 color:#81592d!important;
}

/* 02 / actual website screens */
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-web-pages.tyz-edrak-proof--premium{
  --proof-gold:#a37332;
  background:
    radial-gradient(ellipse 59% 35% at 3% 4%,rgba(225,194,149,.21),transparent 82%),
    linear-gradient(143deg,#fffdf9,#f1e9de 77%,#f4f2ed)!important;
  border:1px solid rgba(192,155,105,.35)!important;
  color:#1a394d!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-web-pages :is(
 .tyz-edrak-proof__topline,.tyz-edrak-proof__top-center i,
 .tyz-edrak-proof__top-index,.tyz-edrak-proof__number
){color:#90602b!important;}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-web-pages .tyz-edrak-proof__heading h2{
 color:#16384d!important;text-shadow:none!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-web-pages .tyz-edrak-proof__heading h2 em{
 color:#99662d!important;
 -webkit-text-fill-color:#99662d!important;
 background:none!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-web-pages .tyz-edrak-proof__heading p{
 color:#445d6f!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-web-pages .tyz-edrak-proof__text{
 background:linear-gradient(150deg,#ffffff,#f7f0e5)!important;
 border-color:#d9c3a3!important;
 box-shadow:0 13px 30px rgba(24,59,83,.11)!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-web-pages .tyz-edrak-proof__copy h3{
 color:#8d5e2a!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-web-pages .tyz-edrak-proof__copy p{
 color:#465c6b!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-web-pages .tyz-edrak-proof__cta{
 background:linear-gradient(115deg,#fffdf9,#eaf0f1)!important;
 border-color:#d4ae76!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-web-pages .tyz-edrak-proof__cta strong{
 color:#895829!important;text-shadow:none!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-web-pages .tyz-edrak-proof__cta p{
 color:#465f6d!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-web-pages .tyz-edrak-proof__visual{
 box-shadow:0 13px 32px rgba(29,63,83,.16),0 0 11px rgba(216,172,102,.12)!important;
}

/* 03 / creative designs; retain screenshot fidelity inside image elements. */
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-design-work.tyz-edrak-designs--reference{
 background:
   radial-gradient(ellipse 52% 33% at 55% 5%,rgba(234,198,140,.24),transparent 85%),
   linear-gradient(150deg,#fffdf9,#f4ede2 88%)!important;
 border:1px solid #dcc29b!important;
 color:#19384b!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__ref-index{
 color:#91602b!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__reference-head h2{
 color:#16374c!important;text-shadow:none!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__reference-head h2 em{
 color:#99652d!important;
 -webkit-text-fill-color:#99652d!important;
 background:none!important;
 filter:none!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__reference-head>p{
 color:#475e6e!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__feature,
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__grid > .tyz-edrak-designs__item{
 background:linear-gradient(145deg,#fffdfa,#e9f0f1)!important;
 border-color:#d0aa71!important;
 box-shadow:0 15px 35px rgba(19,56,81,.14)!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__feature-copy{
 color:#24465c!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-design-work :is(
 .tyz-edrak-designs__feature-no,.tyz-edrak-designs__feature-copy h3,
 .tyz-edrak-designs__grid figcaption strong,.tyz-edrak-designs__grid figcaption b
){color:#875726!important;}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-design-work :is(
 .tyz-edrak-designs__feature-copy p,.tyz-edrak-designs__grid figcaption small
){color:#4c6170!important;}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__grid > .tyz-edrak-designs__item figcaption{
 background:#fffdf9!important;border-color:#e4d0b4!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__grid>.tyz-edrak-designs__item>a{
 background:#e9f0f2!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__grid > .tyz-edrak-designs__item figcaption b{
 border-color:#b99760!important;background:rgba(229,193,142,.20)!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-project .tyz-edrak-case__bottom{
 background:linear-gradient(115deg,#fffdf8,#eaf0f2)!important;
 border-color:#d2b58a!important;
 box-shadow:0 22px 47px rgba(21,54,74,.12)!important;
}

/* Gold-studio closing CTA: pale-blue metallic canvas in light,
   deep-dark scenic composition in dark. Existing 3D sand/gold animations intact. */
html[data-tyz-theme="light"] body.tyz-site-v1:has(#edrak-project) .tyz6-footer-cta{
 background:linear-gradient(180deg,#f4eee4,#edf0f1)!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1:has(#edrak-project) .tyz6-footer-cta__card{
 background:
  radial-gradient(ellipse 75% 92% at 4% 0%,rgba(211,228,233,.53),transparent 77%),
  linear-gradient(135deg,#fffdf9,#e7eff1)!important;
 border-color:#c6a26b!important;
 box-shadow:0 22px 67px rgba(22,53,78,.13)!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1:has(#edrak-project) .tyz6-footer-cta .tyz6-footer-kicker,
html[data-tyz-theme="light"] body.tyz-site-v1:has(#edrak-project) .tyz6-footer-cta .tyz6-footer-kicker>span:last-child{
 color:#8e5e2b!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:#18374b!important;-webkit-text-fill-color:#18374b!important;
 text-shadow:none!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1:has(#edrak-project) .tyz6-footer-cta h2 em{
 color:#925d22!important;-webkit-text-fill-color:#925d22!important;
 text-shadow:0 2px 9px rgba(186,135,59,.11)!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1:has(#edrak-project) .tyz6-footer-cta__copy>p{
 color:#425b6b!important;text-shadow:none!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1:has(#edrak-project) .tyz6-footer-button--quiet{
 color:#1d3b50!important;background:#fffdf9!important;
 border-color:#b99562!important;
}

/* Light typography must remain readable during the existing motion effects.
   No animations, text, click handlers, layout or alignment are changed here. */
@media(prefers-reduced-motion:reduce){
  html[data-tyz-theme="light"] body.tyz-site-v1:has(#edrak-project) *{
    scroll-behavior:auto!important;
  }
}

/* Immediate visual parity at the top of the page: bright light-studio hero.
   Preserve the genuine night-office background and the original layout, but
   fade it behind a warm translucent daylight panel for navy typography. */
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,252,246,.982) 0%,
    rgba(253,249,242,.974) 28%,
    rgba(249,244,233,.94) 51%,
    rgba(247,239,227,.83) 71%,
    rgba(240,231,214,.66) 100%),
   url("../tamiyouz-cinematic-site-v1/studio-scene.webp") left center/cover no-repeat!important;
  color:#17364b!important;
  border-bottom:1px solid #d5b88a!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__identity span,
html[data-tyz-theme="light"] body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero__content>span{
  color:#95652c!important;
}
html[data-tyz-theme="light"] body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero h1{
  color:#163447!important;
  -webkit-text-fill-color:#163447!important;
  text-shadow:0 3px 16px rgba(255,255,255,.36)!important;
}
html[data-tyz-theme="light"] body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero h1 .tyz-edrak-hero__arabic,
html[data-tyz-theme="light"] body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero h1 .tyz-edrak-hero__latin{
  color:#173b53!important;-webkit-text-fill-color:#173b53!important;
  filter:none!important;
}
html[data-tyz-theme="light"] body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero h1 em,
html[data-tyz-theme="light"] body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero h1 .tyz-edrak-hero__pipe{
  color:#95602a!important;-webkit-text-fill-color:#95602a!important;
}
html[data-tyz-theme="light"] body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero p{
  color:#304d60!important;
  text-shadow:none!important;
}
html[data-tyz-theme="light"] body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero__bottom{
  border-top-color:#b98a49!important;
}
html[data-tyz-theme="light"] body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero__bottom span{
  color:#895d2c!important;
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-project .tyz-edrak-case__brand{
  display:inline-flex;
  align-items:center;
  border-radius:11px;
  padding:5px 12px;
  background:#15384e!important;
  box-shadow:0 5px 14px rgba(23,63,84,.13);
}
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-design-work .tyz-edrak-designs__ref-brand img{
  border-radius:9px;
  background:#153d55!important;
  padding:5px 8px;
  box-sizing:content-box;
  box-shadow:0 3px 11px rgba(23,63,84,.14);
}
/* All text remains anchored in place throughout animated theme switching. */
html[data-tyz-theme="light"] body.tyz-site-v1 #edrak-project a:focus-visible,
html[data-tyz-theme="light"] body.tyz-site-v1:has(#edrak-project) .tyz6-footer-cta a:focus-visible{
  outline:3px solid #ab7638!important;
  outline-offset:4px;
}
