/* LEADERSHIP V50.2 — APPROVED VISUAL REFERENCE
 * Navy/gold, emerging original portraits, diagonal studio gold, dark glass name
 * panels, grounded social actions. Scope: homepage team section ONLY.
 */
#team.leadership-section.tyz-leadership-v502 {
  --team-v502-ink:#fafcff;
  --team-v502-copy:#c5d2e3;
  --team-v502-gold:#efbe66;
  --team-v502-edge:rgba(181,202,225,.52);
  position:relative!important;
  isolation:isolate;
  overflow:hidden!important;
  box-sizing:border-box!important;
  background:
    radial-gradient(ellipse 540px 300px at -4% -5%,rgba(224,171,94,.12),transparent 76%),
    radial-gradient(ellipse 540px 320px at 107% 100%,rgba(209,147,60,.12),transparent 77%),
    radial-gradient(ellipse 900px 400px at 48% 32%,rgba(13,57,93,.48),transparent 75%),
    linear-gradient(180deg,#06172c 0%,#071c34 62%,#06172c 100%)!important;
  padding:72px 0 88px!important;
  border-block:1px solid rgba(215,172,101,.13)!important;
  color:var(--team-v502-ink)!important;
}
html[data-theme="light"] #team.leadership-section.tyz-leadership-v502,
html[data-theme="dark"] #team.leadership-section.tyz-leadership-v502 {
  background:
    radial-gradient(ellipse 540px 300px at -4% -5%,rgba(224,171,94,.12),transparent 76%),
    radial-gradient(ellipse 540px 320px at 107% 100%,rgba(209,147,60,.12),transparent 77%),
    radial-gradient(ellipse 900px 400px at 48% 32%,rgba(13,57,93,.48),transparent 75%),
    linear-gradient(180deg,#06172c 0%,#071c34 62%,#06172c 100%)!important;
}
#team.tyz-leadership-v502::before,
#team.tyz-leadership-v502::after{
  content:"";position:absolute;z-index:0;pointer-events:none;
  width:540px;height:540px;border-radius:50%;
  border:1px solid rgba(233,179,95,.21);
  box-shadow:0 0 0 44px rgba(203,159,83,.025),0 0 0 92px rgba(203,159,83,.018);
}
#team.tyz-leadership-v502::before {top:-440px;inset-inline-end:-180px}
#team.tyz-leadership-v502::after {bottom:-467px;inset-inline-start:-180px}
#team.tyz-leadership-v502 .container{
  position:relative;z-index:1;
  max-width:1390px!important;width:calc(100% - 50px)!important;
}
#team.tyz-leadership-v502 .section-heading{
  position:relative;
  max-width:940px!important;
  text-align:center!important;
  margin:0 auto 48px!important;
  padding:0!important;
}
#team.tyz-leadership-v502 .tyz-v502-leadership-mark{
  display:flex;align-items:center;justify-content:center;
  width:56px;height:52px;margin:0 auto 12px;
  border:1px solid rgba(239,184,89,.63);
  border-radius:16px;
  background:linear-gradient(145deg,rgba(32,58,82,.96),rgba(11,27,49,.98));
  box-shadow:0 0 16px rgba(246,186,93,.24),0 11px 25px rgba(0,7,21,.28);
  color:#f4c36b;
}
#team.tyz-leadership-v502 .tyz-v502-leadership-mark svg{display:block;width:27px;height:27px;fill:currentColor}
#team.tyz-leadership-v502 .section-heading .kicker{
  display:inline-flex!important;align-items:center;justify-content:center;gap:17px;
  font:800 clamp(12px,1vw,14px)/1.5 Cairo,Tahoma,Arial,sans-serif!important;
  color:#f3c776!important;
  letter-spacing:0!important;margin:0 0 11px!important;padding:0!important;
  border:0!important;background:none!important;
}
#team.tyz-leadership-v502 .section-heading .kicker::before,
#team.tyz-leadership-v502 .section-heading .kicker::after{
  content:"";display:block!important;position:static!important;
  width:70px!important;height:1px!important;flex:0 0 70px;
  background:linear-gradient(90deg,transparent,#eab35b)!important;
  border:0!important;opacity:1!important;
  transform:none!important;
}
#team.tyz-leadership-v502 .section-heading .kicker::after{
  transform:rotate(180deg)!important;
}
#team.tyz-leadership-v502 .section-heading h2{
  color:#f9fbff!important;
  font:900 clamp(35px,4vw,56px)/1.38 Cairo,Tahoma,Arial,sans-serif!important;
  margin:0 0 11px!important;
  letter-spacing:-.9px!important;
  text-wrap:balance;
}
#team.tyz-leadership-v502 .section-heading h2 em{
  color:#efbb60!important;
  font-style:normal!important;
  text-decoration:none!important;
  position:relative;
}
#team.tyz-leadership-v502 .section-heading h2 em::after{
  content:"";position:absolute;bottom:-5px;inset-inline-start:0;
  width:90%;height:5px;border-radius:100%;
  background:linear-gradient(90deg,transparent,#e7ae4c,transparent);
  transform:rotate(-2deg);
}
#team.tyz-leadership-v502 .section-heading p{
  color:#c3d0df!important;
  font:500 clamp(13px,1.15vw,16px)/1.9 Cairo,Tahoma,Arial,sans-serif!important;
  margin:0 auto!important;
  max-width:770px;
}
#team.tyz-leadership-v502 .leadership-grid{
  direction:rtl;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:22px!important;
  max-width:1320px!important;
  margin:0 auto!important;
  padding:25px 0 5px!important;
  align-items:stretch!important;
}
#team.tyz-leadership-v502 .leadership-grid>.leader-card,
html[data-theme="light"] #team.tyz-leadership-v502 .leadership-grid>.leader-card,
html[data-theme="dark"] #team.tyz-leadership-v502 .leadership-grid>.leader-card{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  background:linear-gradient(165deg,#122b48 0%,#0c2340 90%)!important;
  border:1.5px solid rgba(186,201,216,.66)!important;
  border-radius:28px!important;
  overflow:visible!important;
  margin:0!important;
  box-shadow:0 19px 43px rgba(0,8,24,.4)!important;
  transition:transform .29s ease,border-color .29s ease,box-shadow .29s ease!important;
}
#team.tyz-leadership-v502 .leadership-grid>.leader-card:nth-child(1),
#team.tyz-leadership-v502 .leadership-grid>.leader-card:nth-child(4){
  border-color:rgba(241,190,109,.77)!important;
  box-shadow:0 23px 44px rgba(0,8,24,.36),0 13px 20px -18px #eebd62!important;
}
#team.tyz-leadership-v502 .leadership-grid>.leader-card:hover,
#team.tyz-leadership-v502 .leadership-grid>.leader-card:focus-within{
  transform:translateY(-7px)!important;
  border-color:#f0c678!important;
  box-shadow:0 25px 48px rgba(0,5,20,.42),0 9px 27px -13px rgba(244,187,87,.65)!important;
}
#team.tyz-leadership-v502 .leader-photo{
  display:block;
  position:relative;isolation:isolate;
  flex:none;
  height:clamp(205px,20.6vw,276px)!important;
  aspect-ratio:auto!important;
  overflow:visible!important;
  background:
    radial-gradient(ellipse 230px 200px at 55% 58%,rgba(26,53,84,.37),transparent 72%),
    linear-gradient(160deg,#102a47 0%,#17324e 100%)!important;
  border-radius:26px 26px 0 0;
}
#team.tyz-leadership-v502 .leader-photo::before{
  content:"";position:absolute;z-index:0;inset:0;
  background:linear-gradient(133deg,#f5d692 0%,#f0bb64 43%,#9b6c2d 100%);
  clip-path:polygon(0 88%,100% 24%,100% 51%,0 100%);
  opacity:.95;
  border-radius:25px 25px 0 0;
}
#team.tyz-leadership-v502 .leader-photo::after{
  content:"";position:absolute;z-index:2;inset:60% 0 0;
  pointer-events:none;
  background:linear-gradient(180deg,transparent,rgba(7,24,44,.39) 81%,rgba(10,27,48,.68));
}
#team.tyz-leadership-v502 .leader-photo img,
html[data-theme="dark"] #team.tyz-leadership-v502 .leader-photo img,
html[data-theme="light"] #team.tyz-leadership-v502 .leader-photo img{
  position:absolute!important;z-index:1;
  left:50%;bottom:-2px;
  display:block;
  width:125%!important;
  max-width:none!important;height:auto!important;
  object-fit:contain!important;object-position:center bottom!important;
  transform:translateX(-50%)!important;
  border:0!important;
  filter:saturate(1.01) contrast(1.04)!important;
  transition:transform .35s ease,filter .35s ease!important;
}
#team.tyz-leadership-v502 .leader-card:hover .leader-photo img{
  transform:translateX(-50%) scale(1.025)!important;
  filter:saturate(1.06) contrast(1.04)!important;
}
#team.tyz-leadership-v502 .leader-details,
html[data-theme="light"] #team.tyz-leadership-v502 .leader-card .leader-details,
html[data-theme="dark"] #team.tyz-leadership-v502 .leader-card .leader-details{
  position:relative;z-index:3;
  display:flex!important;align-items:center!important;flex-direction:column!important;
  text-align:center!important;
  flex:1;
  margin:-15px -1px -1px!important;
  padding:19px 12px 22px!important;
  min-height:203px!important;
  border:1px solid rgba(166,195,223,.43)!important;
  border-top:2px solid rgba(230,193,124,.72)!important;
  border-radius:24px 24px 27px 27px!important;
  background:
    linear-gradient(155deg,rgba(32,60,91,.95),rgba(9,30,54,.96) 85%)!important;
  box-shadow:inset 0 1px 0 rgba(248,255,255,.11),0 -12px 22px rgba(1,16,31,.2)!important;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  direction:rtl;
}
#team.tyz-leadership-v502 .leader-role,
html[data-theme="light"] #team.tyz-leadership-v502 .leader-role,
html[data-theme="dark"] #team.tyz-leadership-v502 .leader-role{
  display:inline-flex!important;justify-content:center;align-items:center;gap:8px;
  max-width:100%;width:max-content;
  align-self:center!important;
  margin:0 0 11px!important;
  padding:6px 13px!important;
  border-radius:999px!important;
  border:1px solid rgba(236,187,98,.57)!important;
  background:linear-gradient(180deg,#19334d,#071a31)!important;
  color:#f5c66f!important;
  font:900 10.5px/1.35 Cairo,Tahoma,Arial,sans-serif!important;
  letter-spacing:.1px!important;
  text-transform:uppercase;
  white-space:normal;
  direction:ltr;text-align:center!important;
  box-shadow:0 5px 10px rgba(0,9,23,.25)!important;
}
#team.tyz-leadership-v502 .leader-role svg{
  flex:none;display:block;
  width:16px;height:16px;stroke:#f4be61;fill:none;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
#team.tyz-leadership-v502 .leader-details h3,
html[data-theme="light"] #team.tyz-leadership-v502 .leader-details h3,
html[data-theme="dark"] #team.tyz-leadership-v502 .leader-details h3{
  color:#fafcff!important;
  font:900 clamp(17px,1.52vw,21px)/1.42 Cairo,Tahoma,Arial,sans-serif!important;
  margin:0 0 4px!important;
  text-align:center!important;
  direction:ltr;
}
#team.tyz-leadership-v502 .leader-details p,
html[data-theme="light"] #team.tyz-leadership-v502 .leader-details p,
html[data-theme="dark"] #team.tyz-leadership-v502 .leader-details p{
  color:#c6d4e4!important;
  font:600 12px/1.65 Cairo,Tahoma,Arial,sans-serif!important;
  text-align:center!important;margin:0!important;
}
#team.tyz-leadership-v502 .leader-details::after{
  content:"";display:block;width:40px;height:2px;
  border-radius:10px;
  background:#efbe68;
  margin:12px auto 11px;
  flex:0 0 auto;
  order:0;
}
#team.tyz-leadership-v502 .leader-actions{
  display:flex;align-items:center;justify-content:center;gap:12px;
  margin-top:auto;
  padding-top:0;
  order:1;
}
#team.tyz-leadership-v502 .leader-actions a{
  display:grid;place-items:center;
  width:37px;height:37px;
  border-radius:12px;
  border:1px solid rgba(242,187,98,.58);
  background:linear-gradient(155deg,rgba(53,73,91,.9),rgba(13,31,53,.97));
  color:#f6c671!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.085),0 7px 14px rgba(0,7,20,.17);
  text-decoration:none!important;
  transition:transform .2s,border-color .2s,background .2s;
}
#team.tyz-leadership-v502 .leader-actions a:hover{
  transform:translateY(-3px);
  border-color:#ffe1a2;
  background:#254665;
}
#team.tyz-leadership-v502 .leader-actions a:focus-visible,
#team.tyz-leadership-v502 .team-explore:focus-visible {
  outline:3px solid #ffd994;outline-offset:4px;
}
#team.tyz-leadership-v502 .leader-actions svg{
  display:block;width:19px;height:19px;
}
#team.tyz-leadership-v502 .team-explore,
html[data-theme="light"] #team.tyz-leadership-v502 .team-explore{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:max-content!important;
  min-width:270px!important;
  max-width:calc(100% - 20px)!important;
  min-height:55px;
  gap:15px;
  padding:12px 26px!important;
  margin:37px auto 0!important;
  background:linear-gradient(145deg,#ffe5aa,#edc373 65%,#dda84d)!important;
  color:#0b223a!important;
  border:1px solid #fbe0a1!important;
  border-radius:18px!important;
  box-shadow:0 12px 32px rgba(0,6,19,.35),0 7px 20px rgba(229,170,69,.13),inset 0 1px 0 rgba(255,255,255,.5)!important;
  text-decoration:none!important;
  font:900 16px/1.4 Cairo,Tahoma,Arial,sans-serif!important;
  transition:transform .22s,filter .22s,box-shadow .22s!important;
}
#team.tyz-leadership-v502 .team-explore:hover,
html[data-theme="light"] #team.tyz-leadership-v502 .team-explore:hover{
  transform:translateY(-3px)!important;filter:brightness(1.04);
  box-shadow:0 18px 36px rgba(0,6,19,.39),0 0 24px rgba(238,179,80,.2)!important;
}
#team.tyz-leadership-v502 .team-explore svg{width:20px;height:20px;color:#0d253e;stroke:currentColor}
#team.tyz-leadership-v502 .tyz-leadership-mobile-hint{
  display:none;text-align:center;color:#a9bdd3;
  font:600 12px/1.8 Cairo,Tahoma,Arial,sans-serif;
  margin:0;
}
@media(max-width:1140px){
 #team.tyz-leadership-v502 .leadership-grid{
   max-width:755px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
   gap:26px 24px!important;
 }
 #team.tyz-leadership-v502 .leader-photo{height:275px!important}
 #team.tyz-leadership-v502 .leader-photo img{width:120%!important}
}
@media(max-width:680px){
 #team.leadership-section.tyz-leadership-v502{padding:51px 0 57px!important}
 #team.tyz-leadership-v502 .container{width:calc(100% - 28px)!important}
 #team.tyz-leadership-v502 .section-heading{margin:0 auto 21px!important}
 #team.tyz-leadership-v502 .tyz-v502-leadership-mark{width:46px;height:46px;margin-bottom:11px;border-radius:12px}
 #team.tyz-leadership-v502 .tyz-v502-leadership-mark svg{width:23px;height:23px}
 #team.tyz-leadership-v502 .section-heading .kicker{font-size:11px!important;gap:9px}
 #team.tyz-leadership-v502 .section-heading .kicker::before,
 #team.tyz-leadership-v502 .section-heading .kicker::after{width:29px!important;flex-basis:29px}
 #team.tyz-leadership-v502 .section-heading h2{
   font-size:clamp(27px,7vw,37px)!important;
   letter-spacing:-.4px!important;
   line-height:1.5!important;
 }
 #team.tyz-leadership-v502 .section-heading p{font-size:12.5px!important;line-height:1.85!important}
 #team.tyz-leadership-v502 .leadership-grid{
   display:grid!important;grid-template-columns:none!important;
   grid-auto-flow:column!important;grid-auto-columns:minmax(258px,82%)!important;
   max-width:none!important;gap:15px!important;
   overflow-x:auto!important;overflow-y:visible!important;
   margin:0 -14px!important;padding:30px 14px 21px!important;
   scroll-snap-type:x mandatory;overscroll-behavior-x:contain;
   scrollbar-width:thin;scrollbar-color:#d9a656 transparent;
   -webkit-overflow-scrolling:touch;
 }
 #team.tyz-leadership-v502 .leader-card{scroll-snap-align:center}
 #team.tyz-leadership-v502 .leader-photo{height:250px!important}
 #team.tyz-leadership-v502 .leader-photo img{width:125%!important}
 #team.tyz-leadership-v502 .leader-details{min-height:188px!important;padding:16px 12px 19px!important}
 #team.tyz-leadership-v502 .leader-details h3{font-size:18px!important}
 #team.tyz-leadership-v502 .tyz-leadership-mobile-hint{
   display:flex;align-items:center;justify-content:center;gap:8px;
   margin:3px auto 0!important;
 }
 #team.tyz-leadership-v502 .tyz-leadership-mobile-hint::before{content:"⇠";color:#efc577;font-size:19px}
 #team.tyz-leadership-v502 .team-explore{
   min-width:240px!important;min-height:51px;
   margin-top:19px!important;font-size:14px!important;
 }
}
@media(prefers-reduced-motion:reduce){
 #team.tyz-leadership-v502 .leader-card,
 #team.tyz-leadership-v502 .leader-card img,
 #team.tyz-leadership-v502 .team-explore,
 #team.tyz-leadership-v502 .leader-actions a{
   animation:none!important;
   translate:none!important;
   transition:none!important;
 }
}


/* V50.2 visual stability: no inherited infinite floating / photo drift. */
html.motion-enhanced #team.tyz-leadership-v502.tyz-home-team-motion-active .leader-card.reveal.visible {
  animation:none!important;
  will-change:auto!important;
}
#team.tyz-leadership-v502 .leader-photo::before {
  z-index:0!important;
}


/* V50.3 — screenshot-corrected visual polish, preserve approved V50.2 design. */
#team.tyz-leadership-v502{
  scroll-margin-top:112px!important;
  padding-top:84px!important;
}
#team.tyz-leadership-v502 .section-heading{
  margin-bottom:48px!important;
}
#team.tyz-leadership-v502 .leadership-grid{
  gap:20px!important;
  padding-top:18px!important;
}
#team.tyz-leadership-v502 .leader-photo{
  height:clamp(207px,18.8vw,255px)!important;
  overflow:hidden!important;
  border-radius:26px 26px 0 0!important;
}
#team.tyz-leadership-v502 .leader-photo img,
html[data-theme="light"] #team.tyz-leadership-v502 .leader-photo img,
html[data-theme="dark"] #team.tyz-leadership-v502 .leader-photo img{
  width:107%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  bottom:0!important;
  transform:translateX(-50%) scale(1.0)!important;
  image-rendering:auto!important;
}
#team.tyz-leadership-v502 .leader-card:hover .leader-photo img{
  transform:translateX(-50%) scale(1.027)!important;
}
#team.tyz-leadership-v502 .leader-photo::before{
  z-index:0!important;
  clip-path:polygon(0 86%,100% 25%,100% 55%,0 100%)!important;
}
#team.tyz-leadership-v502 .leader-details{
  min-height:197px!important;
}
#team.tyz-leadership-v502 .tyz-v502-leadership-mark{
  flex:none;
}
@media(max-width:1140px){
 #team.tyz-leadership-v502 .leader-photo{height:250px!important}
 #team.tyz-leadership-v502 .leader-photo img{width:104%!important}
}
@media(max-width:680px){
 #team.tyz-leadership-v502{
   padding-top:65px!important;
   scroll-margin-top:95px!important;
 }
 #team.tyz-leadership-v502 .section-heading{margin-bottom:28px!important}
 #team.tyz-leadership-v502 .leadership-grid{padding-top:18px!important}
 #team.tyz-leadership-v502 .leader-photo{height:231px!important}
 #team.tyz-leadership-v502 .leader-photo img{width:109%!important}
 #team.tyz-leadership-v502 .leader-details{min-height:185px!important}
}

/* V50.3 scarf edge finish: gentle navy transition over the low-res source edge. */
#team.tyz-leadership-v502 .leader-card:nth-child(2) .leader-photo::after{
  inset:55% 0 0!important;
  background:linear-gradient(180deg,transparent 0%,rgba(9,28,49,.16) 20%,rgba(9,28,49,.68) 76%,#102740 100%)!important;
}


/* V50.4 — approved clarified portraits of the four real staff members.
   The new portraits have their own complete background (not transparent);
   render them as photographic images instead of oversized cutout silhouettes. */
#team.tyz-leadership-v502.tyz-leadership-v504 .leader-photo {
  height:clamp(228px,19.25vw,265px)!important;
  overflow:hidden!important;
  isolation:isolate;
  border-radius:26px 26px 0 0!important;
  background:#10243a!important;
}
#team.tyz-leadership-v502.tyz-leadership-v504 .leader-photo img,
html[data-theme="light"] #team.tyz-leadership-v502.tyz-leadership-v504 .leader-photo img,
html[data-theme="dark"] #team.tyz-leadership-v502.tyz-leadership-v504 .leader-photo img {
  position:absolute!important;
  inset:0!important;
  left:0!important;
  top:0!important;
  right:0!important;
  bottom:0!important;
  width:100%!important;
  max-width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:50% 34%!important;
  transform:none!important;
  filter:contrast(1.015) saturate(1.01)!important;
  transition:transform .35s ease,filter .35s ease!important;
}
#team.tyz-leadership-v502.tyz-leadership-v504 .leader-card:hover .leader-photo img {
  transform:scale(1.025)!important;
  filter:contrast(1.025) saturate(1.04)!important;
}
#team.tyz-leadership-v502.tyz-leadership-v504 .leader-photo::before{
  z-index:2!important;
  pointer-events:none!important;
  clip-path:polygon(0 93%,100% 80%,100% 100%,0 100%)!important;
  opacity:.56!important;
}
#team.tyz-leadership-v502.tyz-leadership-v504 .leader-photo::after{
  z-index:3!important;
  inset:59% 0 0!important;
  background:linear-gradient(180deg,transparent 0%,rgba(7,25,44,.07) 34%,rgba(7,25,44,.54) 80%,#102740 100%)!important;
}
@media(max-width:1140px){
  #team.tyz-leadership-v502.tyz-leadership-v504 .leader-photo{height:260px!important}
}
@media(max-width:680px){
  #team.tyz-leadership-v502.tyz-leadership-v504 .leader-photo{height:241px!important}
  #team.tyz-leadership-v502.tyz-leadership-v504 .leader-photo img{object-position:50% 33%!important}
}
@media(prefers-reduced-motion:reduce){
 #team.tyz-leadership-v502.tyz-leadership-v504 .leader-photo img{transition:none!important}
}
