/* EDRAK Hero — cinematic reference implementation, 2026-11-05.
   Real editable DOM text, official Tamiyouz SVG, scoped to EDRAK only. */
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz-site-hero.tyz5-inner-hero {
  min-height:clamp(660px,61vw,925px)!important;
  display:flex!important;
  align-items:center!important;
  isolation:isolate;
  padding:clamp(92px,8.5vw,155px) 0 clamp(86px,8vw,135px)!important;
  background:
    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.webp") left center/cover no-repeat!important;
  color:#fff7ee!important;
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero::before{
  content:"";position:absolute;inset:-35% auto auto -20%;
  height:85%;width:52%;aspect-ratio:1;border-radius:50%;
  border:1px solid rgba(250,198,116,.24)!important;
  box-shadow:none!important;pointer-events:none;
  opacity:.75!important;
  transform:rotate(-26deg);
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero::after{
  content:"";position:absolute;
  width:65%;height:28%;left:-18%;top:-8%;
  transform:rotate(-28deg);
  pointer-events:none;z-index:0;
  border-top:2px solid rgba(255,208,140,.54);
  border-radius:50%;
  filter:drop-shadow(0 0 8px rgba(250,180,91,.65));
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero__content {
  position:relative!important;z-index:4!important;
  width:min(calc(100% - clamp(40px,9vw,150px)),1430px)!important;
  max-width:1430px!important;
  display:flex;flex-direction:column;align-items:stretch;
  direction:rtl;text-align:right;
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero__identity {
  display:flex!important;justify-content:flex-start;align-items:center;
  flex-wrap:wrap;gap:clamp(14px,2vw,32px);
  direction:rtl;text-align:right;margin:0 0 clamp(30px,5vw,76px);
  color:#f2b768!important;
  font:850 clamp(11px,1vw,17px)/1.6 "Outfit",Arial,sans-serif!important;
  letter-spacing:.08em!important;
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero__identity span{
  color:#f2b768!important;font-size:inherit!important;font-weight:inherit!important;
  white-space:nowrap;letter-spacing:.055em!important;
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero__identity span:first-child::before{
  content:"";display:inline-block;vertical-align:middle;
  width:11px;height:11px;margin-inline-start:16px;
  border-radius:50%;background:#eab566;
  box-shadow:0 0 13px rgba(249,199,108,.48);
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero__content>span{
  display:block!important;
  color:#eeb56a!important;
  margin:0 0 clamp(24px,2.6vw,43px);
  font-size:clamp(12px,1.15vw,19px)!important;
  line-height:1.8!important;letter-spacing:0!important;font-weight:850!important;
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero h1{
  display:flex!important;position:relative!important;
  flex-direction:row;align-items:baseline;justify-content:flex-start;
  flex-wrap:wrap;gap:clamp(12px,2.5vw,41px);
  direction:rtl!important;text-align:right!important;
  width:100%!important;max-width:none!important;
  padding:0 0 clamp(36px,3.6vw,53px)!important;
  margin:0 0 clamp(15px,1.9vw,30px)!important;
  font-size:clamp(44px,6.5vw,103px)!important;
  font-weight:900!important;line-height:1.35!important;
  color:#fff9ee!important;letter-spacing:-.04em!important;
  text-shadow:0 10px 20px rgba(0,8,20,.3)!important;
  background:none!important;
  -webkit-text-fill-color:initial!important;
  animation:none!important;
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero h1 :is(.tyz-edrak-hero__arabic,.tyz-edrak-hero__pipe,.tyz-edrak-hero__latin){
  display:inline!important;
  font:inherit!important;font-size:inherit!important;
  line-height:inherit!important;letter-spacing:inherit!important;
  color:inherit!important;-webkit-text-fill-color:inherit!important;
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero h1 .tyz-edrak-hero__arabic {
  white-space:nowrap;font-family:inherit!important;font-weight:900!important;
  color:#fff9ee!important;-webkit-text-fill-color:#fff9ee!important;
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero h1 em{
  color:#f1b25d!important;
  font:inherit!important;font-weight:900!important;
  -webkit-text-fill-color:#f1b25d!important;
  background:none!important;font-style:normal!important;
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero h1 .tyz-edrak-hero__pipe{
  color:#f3b363!important;-webkit-text-fill-color:#f3b363!important;
  font-family:Arial,sans-serif!important;font-weight:350!important;
  line-height:1!important;
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero h1 .tyz-edrak-hero__latin{
  font-family:"Outfit","Arial",sans-serif!important;
  font-size:clamp(52px,7.1vw,115px)!important;
  font-weight:950!important;font-style:italic!important;letter-spacing:-.06em!important;
  white-space:nowrap;
  color:#fff!important;-webkit-text-fill-color:#fff!important;
  filter:drop-shadow(0 2px 1px rgba(7,17,28,.37));
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero h1::after{
  content:"";position:absolute;right:0;left:auto;bottom:16px;
  width:clamp(180px,29vw,440px);max-width:50%;
  height:5px;border:0;border-radius:80% 20% 80% 20%;
  background:linear-gradient(90deg,transparent 0%,#b47c3e 18%,#ffcb77 80%,#fff0be 100%);
  transform:skewX(-24deg)!important;
  box-shadow:0 0 12px rgba(232,167,75,.29);
  opacity:1!important;animation:none!important;margin:0!important;
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero p {
  max-width:1050px!important;
  width:100%;text-align:right!important;
  color:#f1f2f5!important;
  font-size:clamp(18px,1.8vw,28px)!important;
  font-weight:500!important;line-height:1.95!important;
  margin:0 0 clamp(28px,3.6vw,55px)!important;
  text-shadow:0 8px 16px rgba(0,8,20,.35);
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero__bottom{
  display:flex!important;justify-content:space-between!important;
  direction:rtl;text-align:right;
  margin-top:clamp(14px,2vw,35px);
  padding-top:clamp(20px,2.6vw,36px)!important;
  width:100%;border-top:1px solid #e7b16b!important;
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero__bottom span{
  color:#edb668!important;font-weight:900!important;
  font-size:clamp(12px,1.25vw,20px)!important;letter-spacing:.06em!important;
}
/* Branded studio photo: the authentic crest, sourced from Tamiyouz site assets.
   The badge visually covers the old artwork printed on the laptop in the photo. */
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero__canvas::after{
  content:"";position:absolute;z-index:2;pointer-events:none;
  left:clamp(190px,22.5vw,390px);
  top:65%;
  width:clamp(70px,6.5vw,104px);height:clamp(54px,5vw,76px);
  border-radius:9px;
  background:
    url("../tamiyouz-homepage-v2-1/assets/tamiyouz-logo.svg") center / auto 68% no-repeat,
    linear-gradient(150deg,rgba(5,17,31,.93),rgba(12,28,44,.89));
  transform:rotate(-6deg) skewX(-7deg);
  box-shadow:0 2px 7px rgba(0,0,0,.18),inset 0 1px 0 rgba(246,196,100,.14);
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero__canvas{
  inset:0!important;z-index:1!important;pointer-events:none;
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero__content{z-index:5!important;}
/* Elegant cinematic typography: whole words/lines, not split into glyphs.
   Triggered automatically by the already present EDRAK editorial class. */
@media(prefers-reduced-motion:no-preference) {
  html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
    .tyz5-inner-hero.tyz-edrak-text-on h1 {
    animation:tyz-edrak-reference-heading 1.15s cubic-bezier(.18,1,.24,1) both!important;
  }
  html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
    .tyz5-inner-hero.tyz-edrak-text-on h1 .tyz-edrak-hero__arabic{
    animation:tyz-edrak-reference-word 1.05s cubic-bezier(.18,1,.24,1) .08s both;
  }
  html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
    .tyz5-inner-hero.tyz-edrak-text-on h1 .tyz-edrak-hero__latin {
    animation:tyz-edrak-reference-word 1.1s cubic-bezier(.18,1,.24,1) .23s both;
  }
  html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
    .tyz5-inner-hero.tyz-edrak-text-on h1::after {
    animation:tyz-edrak-reference-stroke 1.15s cubic-bezier(.19,1,.22,1) .55s both!important;
  }
  html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
    .tyz5-inner-hero.tyz-edrak-text-on >.tyz5-inner-hero__content>p{
    animation:tyz-edrak-reference-paragraph 1.05s cubic-bezier(.19,1,.22,1) .38s both;
  }
  html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
    .tyz5-inner-hero.tyz-edrak-text-on .tyz5-inner-hero__bottom {
    animation:tyz-edrak-reference-paragraph 1.2s cubic-bezier(.19,1,.22,1) .56s both;
  }
  html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
    .tyz5-inner-hero.tyz-edrak-text-on .tyz5-inner-hero__identity{
    animation:tyz-edrak-reference-paragraph .9s cubic-bezier(.19,1,.22,1) both;
  }
}
@keyframes tyz-edrak-reference-heading {
  from{opacity:.55;transform:translate3d(0,24px,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}
@keyframes tyz-edrak-reference-word {
  from{opacity:.5;transform:translate3d(0,18px,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}
@keyframes tyz-edrak-reference-stroke{
  from{opacity:0;transform:scaleX(.05) skewX(-24deg)}
  to{opacity:1;transform:scaleX(1) skewX(-24deg)}
}
@keyframes tyz-edrak-reference-paragraph{
  from{opacity:.4;transform:translate3d(0,15px,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}
@media(max-width:1060px){
 html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero h1{font-size:clamp(40px,6vw,76px)!important;gap:clamp(8px,2vw,26px)}
 html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero h1 .tyz-edrak-hero__latin{font-size:clamp(43px,6.6vw,84px)!important}
}
@media(max-width:700px){
 html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz-site-hero.tyz5-inner-hero{
  min-height:clamp(620px,105vh,820px)!important;
  padding:110px 0 65px!important;
  background:
   linear-gradient(270deg,#06172a 0%,rgba(5,19,36,.96) 28%,rgba(5,19,36,.84) 68%,rgba(5,19,36,.53)),
   url("../tamiyouz-cinematic-site-v1/studio-scene.webp") 35% center/cover no-repeat!important;
 }
 html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero__content{width:calc(100% - 36px)!important;}
 html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero__identity{gap:9px;margin-bottom:38px!important;font-size:10px!important;}
 html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero__content>span{font-size:13px!important;margin-bottom:23px!important;}
 html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero h1{
  font-size:clamp(37px,9vw,60px)!important;gap:10px!important;
  padding-bottom:38px!important;line-height:1.45!important;
 }
 html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero h1 .tyz-edrak-hero__latin{font-size:clamp(38px,10.3vw,67px)!important;}
 html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero h1::after{width:170px;bottom:11px;height:3px}
 html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero p{font-size:16px!important;line-height:2.05!important;}
 html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero__bottom{gap:12px;flex-wrap:wrap;}
 html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero__bottom span{font-size:10px!important;}
 html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero__canvas::after{display:none;}
}
@media(prefers-reduced-motion:reduce){
 html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero :is(h1,h1 span,h1::after,p,.tyz5-inner-hero__identity,.tyz5-inner-hero__bottom){
  animation:none!important;opacity:1!important;transform:none!important;
 }
}


/* EDRAK ORBIT LAYER DEDUP — 2026-11-05
   Hero had native ring + two static arcs + three injected orbit rings.
   Keep ONE animated gold orbit, with low-key moving particle.
   Does not touch the separate below-hero site showcase. */
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
  .tyz-site-hero.tyz5-inner-hero::before,
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
  .tyz-site-hero.tyz5-inner-hero::after{
  content:none!important;
  display:none!important;
  box-shadow:none!important;
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz5-inner-hero__canvas .tyz5-inner-hero__circle{
  display:none!important;
  box-shadow:none!important;
}
/* Hide only extra floating stars. Three concentric rings are now intentional.
   Avoid restoring the two old static hero arcs / original canvas ring. */
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
  .tyz-orbit-scene--city .tyz-orbit-scene__star--two,
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
  .tyz-orbit-scene--city .tyz-orbit-scene__star--three{
  display:none!important;
}
html body.single-tyz_case_study.tyz-site-v1.tyz-edrak-orbital-ready:has(#edrak-project)
  .tyz-orbit-scene--city.is-inview{opacity:.50!important}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
  .tyz-orbit-scene--city .tyz-orbit-scene__ring--outer{
  border:1px solid rgba(242,189,111,.16);
  border-top-color:rgba(250,211,145,.52);
  border-left-color:rgba(251,209,137,.34);
  border-right-color:rgba(242,189,111,.06);
  border-bottom-color:rgba(242,189,111,.06);
  box-shadow:none;
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
  .tyz-orbit-scene--city .tyz-orbit-scene__float{
  top:-22%;
  left:-9%;
  width:min(58vw,775px);
}
@media(max-width:900px){
 html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
  .tyz-orbit-scene--city .tyz-orbit-scene__float{
    top:-12%;left:-24%;width:min(78vw,570px);
 }
 html body.single-tyz_case_study.tyz-site-v1.tyz-edrak-orbital-ready:has(#edrak-project)
  .tyz-orbit-scene--city.is-inview{opacity:.37!important}
}
@media(max-width:600px){
 html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
  .tyz-orbit-scene--city .tyz-orbit-scene__float{
    top:-8%;left:-38%;width:min(85vw,420px);
 }
 html body.single-tyz_case_study.tyz-site-v1.tyz-edrak-orbital-ready:has(#edrak-project)
  .tyz-orbit-scene--city.is-inview{opacity:.28!important}
}


/* EDRAK three refined moving orbits — 2026-11-08
   Three concentric, NON-INTERSECTING paths in the city image zone.
   Different rotation speeds; quiet gold arc contrast; keep type above the scene.
   Shared footer, screenshot board, and other portfolio pages are untouched. */
html body.single-tyz_case_study.tyz-site-v1.tyz-edrak-orbital-ready:has(#edrak-project)
 .tyz-orbit-scene--city.is-inview {
  opacity:.67!important;
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz-orbit-scene--city .tyz-orbit-scene__ring--outer {
  display:block!important;
  --tyz-orbit-duration:51s;
  border:1px solid rgba(249,194,119,.16);
  border-top-color:rgba(255,223,161,.53);
  border-left-color:rgba(251,205,135,.40);
  border-bottom-color:rgba(244,194,116,.05);
  border-right-color:rgba(244,194,116,.05);
  box-shadow:none;
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz-orbit-scene--city .tyz-orbit-scene__ring--middle{
  display:block!important;
  --tyz-orbit-duration:39s;
  animation-direction:reverse;
  border:1px solid rgba(242,194,124,.135);
  border-bottom-color:rgba(255,216,153,.47);
  border-right-color:rgba(250,199,130,.34);
  border-top-color:rgba(244,194,116,.06);
  border-left-color:rgba(244,194,116,.06);
  box-shadow:none;
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz-orbit-scene--city .tyz-orbit-scene__ring--inner{
  display:block!important;
  --tyz-orbit-duration:57s;
  border:1px solid rgba(232,194,142,.13);
  border-top-color:rgba(255,221,168,.42);
  border-left-color:rgba(250,203,143,.31);
  border-right-color:rgba(244,194,116,.05);
  border-bottom-color:rgba(244,194,116,.05);
  box-shadow:none;
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz-orbit-scene--city .tyz-orbit-scene__ring>i{
  opacity:.83;
  box-shadow:0 0 6px 2px rgba(255,210,143,.65),0 0 13px 3px rgba(249,178,88,.17);
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz-orbit-scene--city .tyz-orbit-scene__ring--middle>i{
  opacity:.7;
}
html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
 .tyz-orbit-scene--city .tyz-orbit-scene__ring--inner>i{
  opacity:.65;
}
@media(max-width:900px){
 html body.single-tyz_case_study.tyz-site-v1.tyz-edrak-orbital-ready:has(#edrak-project)
  .tyz-orbit-scene--city.is-inview{opacity:.53!important;}
}
@media(max-width:600px){
 /* Two subtle circles on narrow phones, not three lines over text. */
 html body.single-tyz_case_study.tyz-site-v1:has(#edrak-project)
  .tyz-orbit-scene--city .tyz-orbit-scene__ring--inner{
    display:none!important;
 }
 html body.single-tyz_case_study.tyz-site-v1.tyz-edrak-orbital-ready:has(#edrak-project)
  .tyz-orbit-scene--city.is-inview{opacity:.39!important;}
}
