/* Tamiyouz V4 immersive page-turning.
 * Scoped to company-profile only; engine remains unmodified.
 * Desktop: thick page edges, fold highlights, physical spine.
 * Mobile: broader reading stage, accessible controls, shorter intro. */
.tyz-profile-root .flip-stage{
  background:
    radial-gradient(ellipse 60% 37% at 50% 69%,rgba(205,152,71,.15),transparent 90%),
    radial-gradient(ellipse 53% 35% at 51% 19%,rgba(55,112,165,.25),transparent 91%),
    linear-gradient(145deg,#061525,#0d2b45 50%,#061525);
}
.tyz-profile-root .flip-stage::after{
  left:12%;right:12%;bottom:72px;height:27px;
  background:rgba(0,0,0,.52);filter:blur(19px);
}
.tyz-profile-root .profile-flipbook{
  perspective:2100px;
}
.tyz-profile-root .profile-flipbook .stf__parent{
  filter:drop-shadow(1px 15px 12px rgba(0,0,0,.42))
         drop-shadow(0 26px 35px rgba(0,0,0,.22));
  isolation:isolate;
}
.tyz-profile-root .profile-flipbook .stf__parent::after{
  content:"";position:absolute;bottom:-7px;left:2px;right:2px;
  pointer-events:none;z-index:-1;height:8px;border-radius:0 0 5px 5px;
  background:repeating-linear-gradient(to bottom,
    rgba(250,243,224,.95) 0,rgba(250,243,224,.95) 1px,
    rgba(150,122,90,.67) 2px,rgba(237,220,198,.92) 3px);
  box-shadow:0 8px 12px rgba(0,0,0,.17),0 2px 0 rgba(0,0,0,.3);
}
.tyz-profile-root .profile-flipbook.is-open-spread .stf__block::after{
  content:"";pointer-events:none;position:absolute;z-index:30;
  width:20px;top:0;bottom:0;left:calc(50% - 10px);
  background:linear-gradient(90deg,
     transparent 0,rgba(28,24,20,.13) 28%,
     rgba(26,22,21,.24) 50%,rgba(250,246,236,.15) 74%,transparent 100%);
  mix-blend-mode:multiply;
}
.tyz-profile-root .profile-flipbook .flip-leaf-inner{
  background:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.08) 0,rgba(255,255,255,.08) .5px,
      rgba(230,222,209,.08) 1px,rgba(230,222,209,.08) 3px),
    #f5f0e6;
}
.tyz-profile-root .profile-flipbook .flip-leaf-inner::after{
  z-index:4;
  box-shadow:
    inset 0 0 15px rgba(42,32,24,.16),
    inset 0 3px 5px rgba(255,255,255,.14),
    inset 0 -3px 9px rgba(42,32,24,.07);
  background:linear-gradient(105deg,
    rgba(0,0,0,.045) 0%,
    rgba(255,255,255,.06) 28%,
    transparent 55%,
    rgba(0,0,0,.025) 100%);
}
.tyz-profile-root .profile-flipbook .stf__outerShadow,
.tyz-profile-root .profile-flipbook .stf__innerShadow{
  pointer-events:none;
}
.tyz-profile-root .flip-reader{
  box-shadow:0 24px 75px rgba(0,6,18,.35),
             0 0 0 1px rgba(253,222,155,.07) inset;
}
.tyz-profile-root .flip-reader-hint{
  font-weight:850;
  color:#f2d593;
  text-shadow:0 0 24px rgba(236,193,106,.13);
}
.tyz-profile-root .flip-mobile-action{
  display:none;
  position:relative;z-index:4;
  margin:12px auto 0;
  padding:10px 20px;
  min-height:44px;
  border-radius:13px;
  border:1px solid rgba(241,207,138,.48);
  background:rgba(241,201,122,.11);
  color:#f4d89b;
  font:800 12px/1.7 "Cairo",Arial,sans-serif;
  cursor:pointer;
  align-items:center;justify-content:center;gap:9px;
}
.tyz-profile-root .flip-mobile-action:hover,
.tyz-profile-root .flip-mobile-action:focus-visible{
  border-color:#f2d495;background:rgba(241,201,122,.2);
}
.tyz-profile-root .reader-controls .progress-col input::-webkit-slider-thumb{
  width:19px;height:19px;
  box-shadow:0 0 0 5px rgba(233,182,69,.15);
}
.tyz-profile-root .reader-controls .page-nav-button:not(:disabled){
  box-shadow:inset 0 1px 0 rgba(255,255,255,.11);
}
.tyz-profile-root .reader-toolbar .icon-button{
  min-width:40px;min-height:40px;
}
@media(max-width:580px){
  .tyz-profile-root .hero{
    padding:90px 0 36px!important;
  }
  .tyz-profile-root .hero-grid{gap:18px}
  .tyz-profile-root .hero-copy h1{
    font-size:clamp(28px,8vw,39px);
    line-height:1.34;margin:12px 0;
  }
  .tyz-profile-root .hero-copy>p{font-size:12px;line-height:1.85}
  .tyz-profile-root .hero-actions{margin-top:17px;gap:8px}
  .tyz-profile-root .hero-actions .btn{
    min-height:46px;padding:10px 12px;
  }
  .tyz-profile-root .hero-facts{margin-top:15px;gap:12px}
  .tyz-profile-root .hero-preview{padding:8px}
  .tyz-profile-root .hero-preview-top{margin-bottom:7px}
  .tyz-profile-root .hero-preview-bottom{padding-top:7px}
  .tyz-profile-root .reader-section{padding:34px 0 50px}
  .tyz-profile-root .section-heading{margin-bottom:13px}
  .tyz-profile-root .section-heading h2{font-size:clamp(23px,6.8vw,28px);margin:9px 0}
  .tyz-profile-root .section-heading p{font-size:11.5px;line-height:1.8}
  .tyz-profile-root .inline-download{min-height:43px;margin-top:12px}
  .tyz-profile-root .chapter-nav{margin-bottom:12px}
  .tyz-profile-root .chapter-shortcut{min-height:40px}
  .tyz-profile-root .flip-reader{
    width:calc(100% + 18px);
    max-width:calc(100vw - 8px);
    margin-inline:-9px;
    border-radius:16px;
  }
  .tyz-profile-root .flip-stage{
    min-height:0;
    padding:23px 5px 18px;
    overflow:hidden;
  }
  .tyz-profile-root .profile-flipbook{
    min-height:0;
    max-width:100%;
    width:100%;
  }
  .tyz-profile-root .flip-reader-hint{margin-top:17px;font-size:10px}
  .tyz-profile-root .flip-mobile-action{display:inline-flex}
  .tyz-profile-root .reader-toolbar{min-height:54px;padding:8px 12px}
  .tyz-profile-root .reader-toolbar .icon-button{width:42px;height:42px}
  .tyz-profile-root .reader-controls{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    padding:12px 11px 14px;
    gap:14px;
  }
  .tyz-profile-root .reader-pagers{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    min-width:0;
    order:1;
    width:100%;
  }
  .tyz-profile-root .reader-pagers .page-nav-button{
    width:100%;
    min-width:0;
    min-height:46px;height:46px;
    border-radius:11px;
    font-size:12px;
  }
  .tyz-profile-root .reader-controls .progress-col{
    order:2;
    width:100%;
    min-width:0;
    padding:4px 3px 0;
  }
  .tyz-profile-root .reader-controls .jump-form{
    order:3;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:9px;
  }
  .tyz-profile-root .jump-form input{
    width:72px;height:44px;min-width:0;
    font-size:15px;
  }
  .tyz-profile-root .jump-form button{
    height:44px;min-width:44px;border-radius:10px;
  }
  .tyz-profile-root .reader-controls .scroll-help{margin-top:15px}
  .tyz-profile-root .reader-footnote{padding:0 8px;font-size:10px}
  .tyz-profile-root .profile-flipbook .stf__parent{
    filter:drop-shadow(0 10px 12px rgba(0,0,0,.4));
  }
  .tyz-profile-root .profile-flipbook .stf__parent::after{height:5px;bottom:-5px}
}
@media(max-width:340px){
  .tyz-profile-root .flip-reader{width:calc(100% + 18px);margin-inline:-9px}
  .tyz-profile-root .flip-stage{padding:20px 3px 16px}
  .tyz-profile-root .reader-brand{font-size:9px}
  .tyz-profile-root .reader-pagers .page-nav-button{font-size:11px}
}
@media (orientation:landscape) and (max-height:530px) and (max-width:960px){
  .tyz-profile-root .flip-stage{min-height:0;padding:13px 7px 10px}
  .tyz-profile-root .flip-reader-hint{margin-top:6px}
  .tyz-profile-root .flip-mobile-action{margin-top:6px}
}
@media(prefers-reduced-motion:reduce){
  .tyz-profile-root .flip-mobile-action{transition:none!important}
}

/* Compact English headline on narrow portrait screens. */
@media(max-width:580px){
 html[lang=en] .tyz-profile-root .hero-copy h1{
   font-size:clamp(28px,7.6vw,36px)!important;
   line-height:1.21!important;
   overflow-wrap:break-word;
 }
 html[lang=en] .tyz-profile-root .hero-copy>p{font-size:12px;line-height:1.73}
 html[lang=en] .tyz-profile-root .hero-facts{gap:11px}
}
