/* ============================================================
   TEAM SECTION: same glass card style as the rest of the site
   (journey cards, product cards). Remove the <link> to css/team.css to undo.
   ============================================================ */

.team-section .team-grid{ gap:24px; }

/* ---------- Card: glass, rounded, orange top line + lift on hover ---------- */
.team-section .team-card{
  position:relative;
  overflow:hidden;
  padding:14px 14px 20px;
  border-radius:var(--radius-lg);
  background:var(--mirror-shine) 100% 0 / 300% 100% no-repeat, var(--glass-bg);
  -webkit-backdrop-filter:var(--glass-blur);
  backdrop-filter:var(--glass-blur);
  border:1px solid var(--border-color);
  box-shadow:var(--glass-shadow);
  transition:
    transform .3s ease, box-shadow .3s ease, border-color .3s ease, background-position .9s ease,
    opacity .6s ease calc(var(--i, 0) * .08s), translate .6s ease calc(var(--i, 0) * .08s);
}
.team-section .team-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:4px;
  z-index:2;
  background:var(--cta);
  opacity:0;
  transition:opacity .3s ease;
}
.team-section .team-card:hover{
  transform:translateY(-6px);
  background-position:0% 0, 0 0;
  border-color:var(--brand-orange);
  box-shadow:0 16px 44px color-mix(in srgb, var(--color-action-primary) 16%, transparent);
}
.team-section .team-card:hover::before{ opacity:1; }

/* ---------- Photo ---------- */
.team-section .team-image-wrapper{
  height:auto;
  aspect-ratio:4 / 5.2;   /* tall portrait box, like the original cards */
  border-radius:var(--radius-lg);
  background:var(--bg-tertiary);
}
.team-section .team-image-wrapper img{
  object-position:center 20%;
  transition:filter .5s ease, transform .6s ease;
}
.team-section .team-card:hover .team-image-wrapper img{
  filter:grayscale(0%);
  transform:scale(1.04);
}

/* ---------- Name + role pill (same as the journey-card tags) ---------- */
.team-section .team-info{
  margin-top:16px;
  padding:0 4px;
  align-items:center;
}
.team-section .team-info h4{
  font-size:1.05rem;
  font-weight:800;
  color:var(--text-primary);
}
.team-section .team-info span{
  margin-top:8px;
  padding:5px 12px;
  border-radius:var(--radius-btn);
  background:rgba(255,255,255,.62);
  border:1px solid var(--border-color);
  box-shadow:inset 0 1px 0 #fff, 0 2px 6px rgba(20,19,20,0.05);
  color:var(--brand-dark);
  font-size:.74rem;
  font-weight:700;
}

/* ---------- LinkedIn: dark teal circle → orange on hover (like the site's arrow buttons) ---------- */
.team-section .linkedin-btn{
  width:38px;
  height:38px;
  min-width:38px;
  background:var(--brand-dark);
  color:#fff;
  font-size:15px;
  box-shadow:0 6px 14px rgba(20,19,20,0.2);
  transition:background .25s ease, transform .25s ease;
}
.team-section .team-card:hover .linkedin-btn{ background:var(--cta); }
.team-section .linkedin-btn:hover{ transform:translateY(-2px); }
.team-section .linkedin-btn:focus-visible{ outline:3px solid var(--border-focus); outline-offset:2px; }

/* ---------- Soft fade-in on scroll, one after another ---------- */
.team-section .team-card{ opacity:0; translate:0 20px; }
.team-section .team-card.is-in{ opacity:1; translate:0 0; }

@media (max-width:768px){
  .team-section .team-grid{ gap:16px; }
  .team-section .team-card{ padding:10px 10px 16px; border-radius:var(--radius-lg); }
  .team-section .team-image-wrapper{ border-radius:14px; }
  .team-section .team-info{ flex-wrap:wrap; }
  .team-section .linkedin-btn{ width:34px; height:34px; min-width:34px; }
}

/* ---------- Same face size in every photo ----------
   Each <img> has --w/--h/--l/--t set so the face is the same size and position in every card */
.team-section .team-image-wrapper{ position:relative; }
.team-section .team-image-wrapper img.team-photo{
  position:absolute;
  left:var(--l, 0%);
  top:var(--t, 0%);
  width:var(--w, 100%);
  height:var(--h, 100%);
  max-width:none;
  object-fit:fill;
  transform-origin:50% 40%;
}
