/* V30 — refined team cards: closer to approved rounded portrait reference. */
:root{
  --team30-bg:#fbfaf7;
  --team30-ink:#171713;
  --team30-muted:#858078;
  --team30-gold:#d3a847;
  --team30-gold-2:#e7c66d;
  --team30-line:rgba(29,25,18,.10);
}

.team-showcase-v29{
  padding:clamp(78px,7vw,118px) 0 clamp(76px,7vw,110px)!important;
  background:
    radial-gradient(circle at 50% 44%,rgba(207,168,74,.08),transparent 32%),
    linear-gradient(180deg,#fff 0%,#fbfaf7 100%)!important;
}
.team-v29-shell{max-width:1510px!important}
.team-v29-top{margin-bottom:14px}
.team-v29-pill{
  min-height:42px;padding:0 17px;border:1px solid rgba(29,25,18,.10);
  background:rgba(255,255,255,.90);box-shadow:0 8px 24px rgba(37,31,20,.035);
  color:#22221f;font-size:.74rem;
}
.team-v29-heading{max-width:920px;margin-bottom:clamp(40px,4vw,60px)}
.team-v29-kicker{color:#b8aa8e}
.team-v29-heading h2{margin-top:10px;color:#171713}
.team-v29-heading p{max-width:760px;color:#8a8781;font-size:clamp(.9rem,1vw,1rem)}

.team-v29-grid{
  gap:clamp(16px,1.5vw,24px);
  align-items:stretch;
}
.team-v29-card{
  position:relative;
  aspect-ratio:4 / 5.12;
  min-height:0!important;
  border-radius:34px;
  overflow:hidden;
  background:#ddd8cf;
  border:1px solid rgba(255,255,255,.72);
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    0 16px 36px rgba(32,28,20,.075),
    0 38px 72px rgba(32,28,20,.065);
  transform:translateZ(0);
}
.team-v29-card:hover{
  transform:translateY(-7px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.86) inset,
    0 22px 46px rgba(32,28,20,.10),
    0 46px 90px rgba(32,28,20,.08);
}
.team-v29-card-link{
  position:relative;display:block;width:100%;height:100%;min-height:0!important;
  overflow:hidden;color:#fff;text-decoration:none;
}
.team-v29-photo{
  position:absolute;inset:0;z-index:0;overflow:hidden;
  background:linear-gradient(150deg,#eee9df 0%,#d8d1c4 100%);
}
.team-v29-photo img{
  position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none!important;
  display:block!important;object-fit:cover!important;object-position:center 10%!important;
  opacity:1!important;visibility:visible!important;filter:none!important;
  transform:scale(1.002);transition:transform .65s cubic-bezier(.2,.7,.2,1),filter .35s ease;
}
.team-v29-card:nth-child(2) .team-v29-photo img{object-position:center 8%!important}
.team-v29-card:nth-child(3) .team-v29-photo img{object-position:center 7%!important}
.team-v29-card-document .team-v29-photo img{object-position:center center!important;object-fit:cover!important}
.team-v29-card:hover .team-v29-photo img{transform:scale(1.035)}

/* premium depth: clean top, richer lower fade, subtle warm glow */
.team-v29-photo:before{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.055) 0%,transparent 22%);
}
.team-v29-photo-shade{
  z-index:2;
  background:
    radial-gradient(circle at 34% 94%,rgba(216,174,74,.18),transparent 28%),
    linear-gradient(180deg,rgba(18,18,14,0) 42%,rgba(18,17,13,.10) 54%,rgba(19,18,14,.67) 77%,rgba(16,15,12,.94) 100%)!important;
}
.team-v29-card:before{
  content:"";position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:inherit;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),inset 0 -55px 70px rgba(0,0,0,.06);
}
.team-v29-card:after{
  content:"";position:absolute;z-index:-1;left:9%;right:9%;bottom:-32px;height:64px;
  background:rgba(202,160,63,.22);filter:blur(30px);border-radius:50%;
}

.team-v29-card-body{
  position:relative;z-index:3;height:100%;min-height:0!important;
  padding:0 clamp(18px,1.45vw,24px) clamp(18px,1.45vw,24px);
  display:flex;flex-direction:column;justify-content:flex-end;
}
.team-v29-card-copy{padding-bottom:15px}
.team-v29-card-copy h3{
  margin:0 0 7px;max-width:100%;color:#fff;
  font:700 clamp(1.34rem,1.58vw,1.82rem)/1.05 Georgia,"Times New Roman",serif;
  letter-spacing:-.03em;text-shadow:0 2px 14px rgba(0,0,0,.22);
}
.team-v29-card-copy p{
  margin:0;color:#e5bb58;font-size:clamp(.70rem,.78vw,.80rem);font-weight:850;line-height:1.35;
}
html[dir="rtl"] .team-v29-card-copy h3{
  font-family:Tahoma,"Segoe UI",Arial,sans-serif;font-size:clamp(1.28rem,1.45vw,1.62rem);line-height:1.38;letter-spacing:0;
}
html[dir="rtl"] .team-v29-card-copy p{font-size:.76rem}

.team-v29-card-footer{
  padding-top:14px;border-top:1px solid rgba(255,255,255,.16);
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.team-v29-meta{gap:9px}
.team-v29-mini-mark{
  width:34px;height:34px;flex-basis:34px;border-radius:50%;
  background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.20);
  box-shadow:inset 0 0 18px rgba(255,255,255,.04);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
}
.team-v29-mini-mark img{width:25px!important;height:25px!important;object-fit:contain!important;position:static!important}
.team-v29-meta-copy strong{font-size:.67rem;color:#fff}
.team-v29-meta-copy small{font-size:.53rem;color:rgba(255,255,255,.67)}

.team-v29-view-button{
  min-height:46px;padding:0 15px;border-radius:15px;background:rgba(255,255,255,.96);
  color:#171815;font-size:.65rem;font-weight:900;box-shadow:0 10px 26px rgba(0,0,0,.17);
}
.team-v29-card:hover .team-v29-view-button{transform:translateY(-2px);box-shadow:0 14px 30px rgba(0,0,0,.21)}

.team-v29-resume-link{
  top:15px;inset-inline-end:15px;z-index:8;min-height:35px;padding:0 11px;
  border:1px solid rgba(255,255,255,.28);border-radius:999px;
  background:rgba(24,22,17,.50);color:#fff!important;
  -webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);
  box-shadow:0 8px 22px rgba(0,0,0,.13);
  font-size:.58rem;font-weight:850;
}
.team-v29-resume-link span{background:#e2b954;color:#17140b}
.team-v29-resume-link:hover{background:rgba(17,16,12,.78)}

.team-v29-bottom{margin-top:clamp(38px,4vw,58px)}

@media(max-width:1240px){
  .team-v29-card{aspect-ratio:4/5.2}
  .team-v29-card-link,.team-v29-card-body{min-height:0!important}
}
@media(max-width:1020px){
  .team-v29-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
  .team-v29-card{aspect-ratio:4/5.05}
  .team-v29-card-copy h3{font-size:clamp(1.65rem,3vw,2.15rem)}
  html[dir="rtl"] .team-v29-card-copy h3{font-size:clamp(1.5rem,2.7vw,1.95rem)}
}
@media(max-width:720px){
  .team-showcase-v29{padding:66px 0 72px!important}
  .team-v29-heading{margin-bottom:32px}
  .team-v29-grid{
    display:flex;gap:15px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;
    margin-inline:calc(-1 * (100vw - 100%)/2);padding:0 7vw 24px;scrollbar-width:none;
  }
  .team-v29-grid::-webkit-scrollbar{display:none}
  .team-v29-card{flex:0 0 min(83vw,390px);aspect-ratio:4/5.15;scroll-snap-align:center;border-radius:30px}
  .team-v29-card-link,.team-v29-card-body{height:100%;min-height:0!important}
  .team-v29-card-copy h3{font-size:clamp(1.58rem,6.8vw,2rem)}
  html[dir="rtl"] .team-v29-card-copy h3{font-size:clamp(1.42rem,6.2vw,1.8rem)}
  .team-v29-view-button{min-height:45px;padding:0 14px}
}
@media(max-width:460px){
  .team-v29-card{flex-basis:86vw;aspect-ratio:4/5.2}
  .team-v29-card-body{padding-inline:17px;padding-bottom:17px}
  .team-v29-card-copy{padding-bottom:13px}
  .team-v29-meta-copy small{display:none}
  .team-v29-view-button{min-height:43px;padding:0 12px;font-size:.61rem}
  .team-v29-resume-link{top:13px;inset-inline-end:13px}
}
