/* KFF Team Grid — pixel match Our Team_v7 .team-grid / .profile-card */
.kff-team-grid{
  --kff-teal:#10605A;
  --kff-teal-dark:#0A4842;
  --kff-sage:#9FB7A7;
  --kff-sage-wash:#EDF2ED;
  --kff-sage-wash-2:#E3ECE4;
  --kff-gold:#C2A36B;
  --kff-serif:'Playfair Display', Georgia, serif;
  --kff-sans:'Alegreya Sans', 'Helvetica Neue', Arial, sans-serif;
  --kff-card-radius:0;
  --kff-card-shadow:0 14px 32px rgba(58,58,58,0.10);
  --kff-card-shadow-hover:0 22px 44px rgba(58,58,58,0.16);

  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:1.5rem;
  width:100%;
  box-sizing:border-box;
  font-family:var(--kff-sans);
}
.kff-team-grid *,
.kff-team-grid *::before,
.kff-team-grid *::after{box-sizing:border-box;}

/* Ops layout: center 3 cards on a 5-col track (cols 2–4) */
.kff-team-grid.ops-grid > .profile-card:nth-child(1){grid-column:2;}
.kff-team-grid.ops-grid > .profile-card:nth-child(2){grid-column:3;}
.kff-team-grid.ops-grid > .profile-card:nth-child(3){grid-column:4;}

.kff-team-grid .profile-card{
  width:100%;
  background:#fff;
  border-radius:var(--kff-card-radius);
  overflow:hidden;
  box-shadow:var(--kff-card-shadow);
  transition:transform .5s cubic-bezier(.2,.7,.3,1), box-shadow .5s ease;
}
.kff-team-grid .profile-card:hover{
  transform:translateY(-8px);
  box-shadow:var(--kff-card-shadow-hover);
}

.kff-team-grid .profile-portrait{
  position:relative;
  height:220px;
  overflow:hidden;
  background:var(--kff-sage);
}

/* Beat Elementor img { height:auto; max-width:100% } */
.kff-team-grid .profile-portrait img,
.elementor-widget-kff_team_grid .profile-portrait img{
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:cover !important;
  display:block;
  transition:transform 1s cubic-bezier(.2,.7,.3,1);
  filter:grayscale(8%) saturate(1.05) contrast(1.03) brightness(0.94);
}
.kff-team-grid .profile-card:hover .profile-portrait img{
  transform:scale(1.07);
}

.kff-team-grid .profile-portrait.pending{
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(155deg, var(--kff-sage-wash-2) 0%, var(--kff-sage-wash) 100%);
}
.kff-team-grid .profile-portrait.pending::after{
  display:none;
}

.kff-team-grid .portrait-monogram{
  width:82px;
  height:82px;
  border-radius:50%;
  border:1px solid var(--kff-gold);
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,0.5);
  transition:transform .5s cubic-bezier(.2,.7,.3,1), box-shadow .5s ease;
}
.kff-team-grid .portrait-monogram span{
  font-family:var(--kff-serif);
  font-style:italic;
  font-weight:400;
  font-size:1.35rem;
  color:var(--kff-teal-dark);
  line-height:1;
}
.kff-team-grid .profile-card:hover .portrait-monogram{
  transform:scale(1.06);
  box-shadow:0 6px 18px rgba(58,58,58,0.12);
}

.kff-team-grid .profile-portrait::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(8,57,53,0.02) 0%, rgba(8,57,53,0.28) 100%);
  pointer-events:none;
}

.kff-team-grid .profile-body{
  padding:1.15rem 1.3rem 1.3rem;
  position:relative;
}
.kff-team-grid .profile-body .gold-line{
  width:0;
  height:1px;
  background:var(--kff-gold);
  margin-bottom:0.75rem;
  transition:width .5s ease;
}
.kff-team-grid .profile-card:hover .profile-body .gold-line{
  width:36px;
}

.kff-team-grid .profile-name{
  font-family:var(--kff-sans);
  font-weight:400;
  font-size:1.02rem;
  color:var(--kff-teal-dark);
  margin:0 0 0.3rem;
  line-height:1.3;
}
.kff-team-grid .profile-title{
  font-family:var(--kff-sans);
  font-size:0.74rem;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:#6b6b6b;
  margin:0;
  line-height:1.4;
}

@media(max-width:1100px){
  .kff-team-grid{
    grid-template-columns:repeat(3, 1fr);
    row-gap:2.4rem;
  }
  .kff-team-grid.ops-grid > .profile-card:nth-child(1),
  .kff-team-grid.ops-grid > .profile-card:nth-child(2),
  .kff-team-grid.ops-grid > .profile-card:nth-child(3){
    grid-column:auto;
  }
}

@media(max-width:640px){
  .kff-team-grid{
    grid-template-columns:repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce){
  .kff-team-grid .profile-card,
  .kff-team-grid .profile-portrait img,
  .kff-team-grid .portrait-monogram,
  .kff-team-grid .profile-body .gold-line{
    transition-duration:0.001ms !important;
  }
}
