/*
 * KRENEXIS / TEAM CARDS — targeted visual correction, 13 Nov 2026
 * Both authentic portraits have different native aspect ratios:
 *   Muneeb: 413x413 circular portrait inside a square image
 *   Shafqat: 1376x1824 vertical studio portrait
 * Show both in exactly matching circular crops, rather than using
 * object-fit:contain, which exposed white edges / empty navy bars.
 *
 * This stylesheet affects ONLY the About page team section.
 */
.kp2-team{
  background:radial-gradient(ellipse at 88% 9%,rgba(0,193,217,.11),transparent 42%),#091923;
  color:#f4fbfd;
}
.kp2-team .kp2-section-line{border-top-color:rgba(180,226,237,.45);color:#b9d6df;opacity:1}
.kp2-team .kp2-heading h2{color:#f3faff}
.kp2-team .kp2-heading h2 em{color:#00c9d9}
.kp2-team .kp2-heading p{color:#abc6d0}
.kp2-team .kp2-team-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(16px,2.5vw,36px);
}
.kp2-team .kp2-team-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:0;
  min-width:0;
  min-height:610px;
  box-sizing:border-box;
  padding:clamp(27px,3.3vw,58px) clamp(20px,3vw,48px) 37px;
  border:1px solid rgba(119,187,205,.38);
  border-radius:14px;
  background:linear-gradient(155deg,rgba(24,63,78,.65),rgba(8,27,41,.97) 60%);
  box-shadow:0 25px 60px rgba(0,0,0,.16);
}
.kp2-team .kp2-team-card::before{
  content:"TEAM / 01";
  display:block;
  width:100%;
  text-align:left;
  margin-bottom:clamp(25px,3.4vw,55px);
  color:#69dce9;
  font-size:10px;
  font-weight:900;
  letter-spacing:.17em;
}
.kp2-team .kp2-team-card:nth-child(2)::before{content:"TEAM / 02"}
.kp2-team .kp2-team-photo{
  box-sizing:border-box;
  display:block;
  position:relative;
  width:min(100%,330px);
  height:auto;
  aspect-ratio:1 / 1;
  flex:0 0 auto;
  border-radius:50%;
  overflow:hidden;
  margin:0 auto;
  padding:0;
  background:#889496;
  border:6px solid rgba(80,187,210,.52);
  outline:1px solid rgba(158,222,236,.31);
  outline-offset:7px;
  box-shadow:0 20px 55px rgba(0,0,0,.34);
}
.kp2-team .kp2-team-photo img,
.kp2-team .kp2-team-card .kp2-team-photo img{
  display:block;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  max-width:none;
  object-fit:cover!important;
  object-position:center center;
  border-radius:50%;
  padding:0;
  margin:0;
  filter:none;
  transform:none;
}
.kp2-team .kp2-team-card:nth-child(2) .kp2-team-photo img{
  object-position:center 27%;
}
.kp2-team .kp2-team-meta{
  flex:1;
  width:100%;
  text-align:center;
  padding:clamp(27px,3vw,43px) 0 0;
}
.kp2-team .kp2-team-meta h3{
  color:#f2faff;
  font-weight:900;
  font-size:clamp(30px,3.1vw,50px);
  letter-spacing:-.065em;
  line-height:1.13;
  margin:0 0 14px;
  overflow-wrap:break-word;
}
.kp2-team .kp2-team-meta p{
  color:#78e4ee;
  font-size:16px;
  font-weight:600;
  line-height:1.5;
  margin:0 0 13px;
}
.kp2-team .kp2-team-meta a{
  color:#d6f8fd;
  font-size:15px;
  text-decoration:underline;
  text-underline-offset:4px;
}
@media(max-width:850px){
  .kp2-team .kp2-team-card{min-height:0;padding:30px 20px 35px}
  .kp2-team .kp2-team-photo{width:min(100%,265px)}
  .kp2-team .kp2-team-meta h3{font-size:clamp(28px,3.8vw,40px)}
}
@media(max-width:650px){
  .kp2-team .kp2-team-grid{grid-template-columns:1fr;gap:22px}
  .kp2-team .kp2-team-card{padding:28px 22px 35px}
  .kp2-team .kp2-team-photo{width:min(77vw,310px);height:auto;aspect-ratio:1/1}
  .kp2-team .kp2-team-meta h3{font-size:clamp(31px,8vw,42px)}
}
@media(prefers-reduced-motion:reduce){
  .kp2-team .kp2-team-card,.kp2-team .kp2-team-photo{transition:none!important}
}
