/* Nexi Homepage 5's portrait-led team layout, adapted to Mando Scan. */
.team-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 16% 0, #1d527c70, transparent 55%), #0c2439;
  border-top: 1px solid #3f73964a;
  color: #fff;
  padding-block: 86px 70px;
}
.team-section .container { position: relative; }
.team-heading { margin-bottom: 36px; align-items: end; }
.team-heading h2 { color: #fff; font-size: clamp(34px, 3.4vw, 48px); }
.team-heading > p { color: #b7cfdf; font-size: 18px; line-height: 1.8; max-width: 455px; }
.team-badge { margin: 0 0 27px; }
.team-track {
  --team-gap: 30px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--team-gap)) / 4);
  gap: var(--team-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: 13px;
  max-width: 1170px;
  margin-inline: auto;
}
.team-track::-webkit-scrollbar { display: none; }
.team-track:focus-visible { outline: 2px solid #8bd7ff; outline-offset: 6px; }
.team-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 13px;
  border: 1px solid #649dc12e;
  background: #15344d;
  transition: background .35s, border-color .35s, box-shadow .35s;
}
.team-card:hover, .team-card:focus-within {
  background: #1c4969;
  border-color: #68caff99;
  box-shadow: inset 0 0 35px #2ca2df12;
}
/* Match apparent head size and eye line using individual source-photo framing. */
.team-photo {
  --portrait-size: 100%;
  --portrait-left: 0%;
  --portrait-top: 0%;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
}
.team-photo img {
  position: absolute;
  display: block;
  left: var(--portrait-left);
  top: var(--portrait-top);
  width: var(--portrait-size);
  height: var(--portrait-size);
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.team-photo-jiang { --portrait-size: 168.959%; --portrait-left: -58.036%; --portrait-top: -13.644%; }
.team-photo-hoang { --portrait-size: 125.130%; --portrait-left: -2.222%; --portrait-top: -9.442%; }
.team-photo-george { --portrait-size: 150.938%; --portrait-left: -30.834%; --portrait-top: 4.276%; }
.team-photo-minh { --portrait-size: 85.893%; --portrait-left: 5.642%; --portrait-top: 0.016%; }
.team-photo-nam { --portrait-size: 110.999%; --portrait-left: -0.311%; --portrait-top: 5.394%; }
/* Minh's supplied headshot is tightly cropped. Its white backdrop allows a
   roomier scale; only the bottom collar edge fades into the same white. */
.team-photo-minh img {
  -webkit-mask-image: linear-gradient(to bottom, #000 91%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 91%, transparent 100%);
}
.team-card-info { flex: 1; text-align: center; padding: 21px 16px 23px; min-height: 208px; }
.team-card-info h3 { color: #fff; font-size: 24px; font-weight: 550; line-height: 1.3; letter-spacing: -.035em; margin: 0 0 10px; overflow-wrap: break-word; }
.team-card-info .team-role { color: #8ed7ff; font-size: 16px; font-weight: 550; line-height: 1.6; margin: 0; }
.team-card-info .team-credential { font-size: 16px; line-height: 1.6; color: #c1d5e2; margin: 8px 0 0; }
.team-profile-link { display: inline-flex; align-items: center; justify-content: center; gap: 14px; font-size: 15px; line-height: 1.5; color: #effaff; margin-top: 12px; padding: 4px 0; border-bottom: 1px solid #77b9e16b; }
.team-profile-link:hover { color: #9cdfff; border-color: #9cdfff; }
.team-profile-link:focus-visible { outline: 2px solid #8bd7ff; outline-offset: 5px; }
.team-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin: 26px auto 0; max-width: 1170px; }
.team-toolbar > p { font-size: 16px; line-height: 1.6; color: #b7cfdf; margin: 0; }
.team-toolbar > p > span { color: #5681a0; padding-inline: 10px; }
.team-navigation { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.team-position { font-size: 15px; font-variant-numeric: tabular-nums; margin: 0 13px 0 0; color: #f0f9ff; white-space: nowrap; }
.team-position > span { color: #87a8bf; margin-left: 7px; }
.team-arrow { width: 48px; height: 48px; display: grid; place-items: center; padding: 12px; border: 1px solid #76bce271; border-radius: 50%; background: #173d59; color: #d7f2ff; transition: border-color .2s, background .2s, box-shadow .2s; }
.team-arrow svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.team-arrow:hover:not(:disabled), .team-arrow:focus-visible { background: #245d82; border-color: #8ed7ff; box-shadow: 0 0 19px #2ca2df33; }
.team-arrow:focus-visible { outline: 2px solid #b4e7ff; outline-offset: 4px; }
.team-arrow:disabled { opacity: .35; cursor: default; }
@media (max-width: 1200px) {
  .team-track { grid-auto-columns: calc((100% - 2 * var(--team-gap)) / 3); max-width: 870px; }
  .team-toolbar { max-width: 870px; }
}
@media (max-width: 991px) {
  .team-track { grid-auto-columns: calc((100% - var(--team-gap)) / 2); max-width: 570px; }
  .team-toolbar { max-width: 570px; }
  .team-heading { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 599px) {
  .team-section { padding-block: 62px 54px; }
  .team-heading { gap: 24px; margin-bottom: 32px; }
  .team-heading > p { font-size: 17px; line-height: 1.75; }
  .team-track { --team-gap: 20px; grid-auto-columns: 100%; max-width: 280px; }
  .team-card-info { padding: 21px 16px 23px; }
  .team-toolbar { align-items: start; flex-direction: column; gap: 20px; margin-top: 25px; max-width: 280px; }
  .team-toolbar > p { font-size: 15px; }
  .team-navigation { width: 100%; }
  .team-position { margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .team-card, .team-arrow { transition: none; }
}
@media print {
  .team-section { background: #fff; color: #173c5b; }
  .team-heading h2, .team-heading > p, .team-badge { color: #173c5b; }
  .team-track { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .team-card { break-inside: avoid; }
  .team-toolbar { display: none; }
}

/* Continue only the studio backdrop above Thanh-Nam's unaltered photo. */
.team-photo-nam { background: linear-gradient(90deg, #4d4e50 0%, #575958 25%, #57585a 50%, #606261 75%, #5a5b5d 100%); }
