/* =========================
   TEAM
   ========================= */

.teamSection{
  width: min(var(--container), calc(100% - 48px));
  margin: 22px auto 0;
}

.teamWrap{
  padding: 36px;
  border: 1px solid rgba(216,207,190,.86);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(252,251,248,.98) 100%);
  box-shadow: 0 18px 48px rgba(43,43,43,.08);
}

/* HERO */
.teamHero{
  max-width: 900px;
  margin: 0 auto 30px;
  text-align: center;
}

.teamBadge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(212,175,55,.24);
  border-radius: var(--radius-pill);
  background: rgba(212,175,55,.10);
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.teamMainTitle{
  max-width: 860px;
  margin: 16px auto 0;
  color: var(--text);
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
}

.teamMainIntro{
  max-width: 780px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

/* TEAM PHOTO */
.teamFullPhoto{
  position: relative;
  margin: 0 0 28px;
  overflow: hidden;
  border: 1px solid rgba(216,207,190,.92);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.teamFullPhoto::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 58%, rgba(0,0,0,.10) 100%);
}

.teamFullPhoto img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* FEATURED MEMBER */
.teamViewer{
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(300px, 420px);
  justify-content: center;
  gap: 28px;
  align-items: start;
  margin-bottom: 30px;
}

.teamMedia{
  display: block;
}

.teamPhotoCard{
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(216,207,190,.92);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.teamPhotoCard img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.teamInfo{
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  border: 1px solid rgba(216,207,190,.92);
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-sm);
}

.teamRole{
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(212,175,55,.12);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.teamInfo h2{
  margin: 14px 0 10px;
  color: var(--text);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: 0;
}

.teamPillar{
  margin: 0 0 12px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 850;
}

.teamDescription{
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

/* GROUPS */
.teamGroups{
  display: grid;
  gap: 22px;
}

.teamGroup{
  padding: 22px;
  border: 1px solid rgba(216,207,190,.82);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-sm);
}

.teamGroupHead{
  display: grid;
  grid-template-columns: minmax(220px, .44fr) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(216,207,190,.70);
}

.teamGroupHead h3{
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.12;
  letter-spacing: 0;
}

.teamGroupHead p{
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

/* TEAM LIST */
.teamMembersList{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.teamThumb{
  width: 100%;
  min-height: 112px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(216,207,190,.86);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(43,43,43,.04);
  text-align: center;
  cursor: pointer;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.teamThumb:hover{
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 28px rgba(43,43,43,.08);
}

.teamThumb:focus-visible{
  outline: none;
  border-color: rgba(212,175,55,.42);
  box-shadow:
    0 0 0 4px rgba(212,175,55,.12),
    0 12px 28px rgba(43,43,43,.08);
}

.teamThumb.is-active{
  border-color: rgba(212,175,55,.40);
  background: linear-gradient(180deg, rgba(212,175,55,.08), #fff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(212,175,55,.08),
    0 8px 22px rgba(43,43,43,.05);
}

.teamThumb img{
  width: 76px;
  height: 76px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--accent-soft);
}

.teamThumbText{
  min-width: 0;
  display: grid;
  gap: 4px;
}

.teamThumbText strong,
.teamThumbText span,
.teamThumbText small{
  display: block;
  overflow-wrap: anywhere;
}

.teamThumbText strong{
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 850;
}

.teamThumbText span{
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 750;
}

.teamThumbText small{
  color: var(--muted);
  font-size: 15px;
  line-height: 1.42;
}

/* FINAL CTA */
.teamCarousel{
  margin-top: 30px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid #d9ded7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(18,24,30,.07);
}

.teamCarouselHead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.teamCarouselHead h2{
  margin: 0;
  color: var(--text);
}

.teamCarouselNav{
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.teamCarouselArrow{
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(212,175,55,.42);
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #1f332d;
  cursor: pointer;
  font-size: 30px !important;
  font-weight: 800;
  line-height: 1 !important;
  box-shadow: 0 8px 20px rgba(43,43,43,.10);
  transition: transform .18s ease, box-shadow .18s ease;
}

.teamCarouselArrow:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(43,43,43,.14);
}

.teamCarouselArrow:focus-visible,
.teamCarouselDot:focus-visible,
.teamCarouselViewport:focus-visible{
  outline: 3px solid rgba(212,175,55,.32);
  outline-offset: 3px;
}

.teamCarouselViewport{
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  transition: height .28s ease;
}

.teamCarouselViewport::-webkit-scrollbar{ display: none; }

.teamCarouselTrack{
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.teamMemberCard{
  flex: 0 0 calc((100% - 18px) / 2);
  min-width: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid #d9ded7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(18,24,30,.07);
}

.teamMemberPhoto{
  position: relative;
  aspect-ratio: 4 / 4.5;
  overflow: hidden;
  background: #f2efe7;
}

.teamMemberPhoto::after{
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(180deg, transparent, rgba(18,24,30,.58));
  pointer-events: none;
}

.teamMemberPhoto img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  transition: transform .35s ease;
}

.teamMemberCard--arianna .teamMemberPhoto img{
  object-position: center 12%;
}

.teamMemberCard:hover .teamMemberPhoto img{ transform: scale(1.025); }

.teamMemberCard--group .teamMemberPhoto{
  display: grid;
  place-items: center;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #1f332d;
}

.teamMemberCard--group{
  position: relative;
  flex-basis: 100%;
  height: auto;
  background: #1f332d;
}

.teamMemberCard--group .teamMemberPhoto::before{ display: none; }

.teamMemberCard--group .teamMemberPhoto::after{
  display: block;
  inset: 45% 0 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(18,24,30,.72));
}

.teamMemberCard--group .teamMemberPhoto img{
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
}

.teamMemberCard--group .teamMemberContent{
  position: absolute;
  z-index: 3;
  left: 24px;
  right: 24px;
  bottom: 24px;
  min-height: 0;
  padding: 18px 22px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 12px;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.teamMemberCard--group .teamMemberContent h3{
  margin: 0;
}

.teamMemberGroup{
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.teamMemberContent{
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 22px;
}

.teamMemberRole{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f7f4ec;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.teamMemberContent h3{
  margin: 16px 0 8px;
  color: var(--text);
}

.teamMemberPillar{
  margin: 0;
  color: var(--text-soft);
  font-weight: 700;
}

.teamMemberDescription{
  margin: 14px 0 18px;
  color: var(--muted);
}

.teamMemberContent small{
  display: block;
  margin-top: auto;
  color: var(--brand-dark);
  font-weight: 700;
}

.teamCarouselDots{
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
}

.teamCarouselDot{
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d8d4ca;
  cursor: pointer;
  transition: width .18s ease, background .18s ease;
}

.teamCarouselDot.is-active{
  width: 30px;
  background: var(--brand);
}

.teamFinalCta{
  margin-top: 32px;
  padding: 40px 28px;
  border-radius: 24px;
  background:
    var(--split-gradient);
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.teamFinalCta::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 12%, rgba(255,255,255,.26), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.18), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(92,76,42,.07)),
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.035) 0,
      rgba(255,255,255,.035) 1px,
      transparent 1px,
      transparent 7px
    );
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.teamFinalText{
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0 auto 22px;
  color: var(--text);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.24;
  font-weight: 850;
  letter-spacing: 0;
}

.teamFinalTextLine{
  display: inline-block;
  white-space: nowrap;
}

.teamFinalBtn{
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--brand-dark);
  text-decoration: none;
  text-align: center;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
  transition:
    transform .18s ease,
    opacity .18s ease,
    box-shadow .18s ease;
}

.teamFinalBtn:hover{
  transform: translateY(-2px);
  opacity: .94;
  box-shadow: 0 16px 34px rgba(0,0,0,.16);
}

/* RESPONSIVE */
@media (max-width: 1120px){
  .teamViewer{
    grid-template-columns: minmax(240px, 330px) minmax(280px, 390px);
    gap: 22px;
  }
}

@media (max-width: 980px){
  .teamSection{
    width: min(var(--container), calc(100% - 32px));
  }

  .teamWrap{
    padding: 26px;
    border-radius: 24px;
  }

  .teamFullPhoto img{
    height: auto;
  }

  .teamViewer{
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  }

  .teamPhotoCard{
    aspect-ratio: 4 / 5;
  }

  .teamGroupHead{
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }

  .teamMembersList{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .teamSection{
    width: min(var(--container), calc(100% - 24px));
    margin-top: 14px;
  }

  .teamWrap{
    padding: 16px;
    border-radius: 20px;
  }

  .teamHero{
    margin-bottom: 22px;
  }

  .teamBadge{
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
  }

  .teamMainTitle{
    margin-top: 14px;
    font-size: clamp(32px, 9vw, 40px);
    line-height: 1.08;
  }

  .teamMainIntro{
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.68;
  }

  .teamFullPhoto{
    margin-bottom: 18px;
    border-radius: 18px;
  }

  .teamFullPhoto img{
    height: auto;
  }

  .teamViewer{
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    margin-bottom: 20px;
  }

  .teamPhotoCard{
    width: min(240px, 100%);
    aspect-ratio: 4 / 5;
    border-radius: 18px;
  }

  .teamInfo{
    padding: 18px;
    border-radius: 18px;
  }

  .teamRole{
    max-width: 100%;
    min-height: 28px;
    font-size: 12px;
    line-height: 1.3;
  }

  .teamInfo h2{
    font-size: 29px;
  }

  .teamPillar,
  .teamDescription{
    font-size: 16px;
  }

  .teamGroup{
    padding: 14px;
    border-radius: 18px;
  }

  .teamGroupHead{
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  .teamGroupHead h3{
    font-size: 24px;
  }

  .teamGroupHead p{
    font-size: 16px;
  }

  .teamThumb{
    min-height: 96px;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
  }

  .teamThumb img{
    width: 62px;
    height: 62px;
    border-radius: 14px;
  }

  .teamThumbText strong{
    font-size: 17px;
  }

  .teamThumbText span,
  .teamThumbText small{
    font-size: 14px;
  }

  .teamFinalCta{
    margin-top: 24px;
    padding: 28px 16px;
    border-radius: 20px;
  }

  .teamCarousel{
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
  }

  .teamCarouselHead{
    align-items: center;
    margin-bottom: 16px;
  }

  .teamCarouselArrow{
    width: 42px;
    height: 42px;
    font-size: 26px !important;
  }

  .teamMemberCard{
    flex-basis: 100%;
  }

  .teamMemberCard--group{
    flex-basis: 100%;
    height: auto;
  }

  .teamMemberCard--group .teamMemberPhoto{
    height: auto;
  }

  .teamMemberCard--group .teamMemberContent{
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px;
  }

  .teamMemberContent{
    min-height: 310px;
    padding: 20px 16px;
  }

  .teamMemberPhoto{
    aspect-ratio: 4 / 4.25;
  }

  .teamFinalText{
    margin-bottom: 18px;
    font-size: 25px;
  }

  .teamFinalTextLine{
    font-size: clamp(12px, 3.7vw, 20px);
  }

  .teamFinalBtn{
    width: 100%;
    min-height: 56px;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.45;
  }
}

@media (max-width: 420px){
  .teamSection{
    width: min(var(--container), calc(100% - 16px));
  }

  .teamWrap{
    padding: 12px;
  }

  .teamMainTitle{
    font-size: clamp(29px, 8.5vw, 36px);
  }

  .teamFullPhoto img{
    height: auto;
  }

  .teamPhotoCard{
    width: min(220px, 100%);
  }

  .teamInfo,
  .teamGroup{
    padding: 14px;
  }

  .teamCarousel{
    padding: 12px;
  }

  .teamCarouselHead{
    flex-direction: column;
  }

  .teamThumb{
    min-height: 86px;
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .teamThumb img{
    width: 54px;
    height: 54px;
  }
}

/* =========================
   BOX REFRESH
   ========================= */
.teamFullPhoto,
.teamPhotoCard,
.teamInfo,
.teamGroup,
.teamThumb{
  border: 1px solid #d9ded7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(18,24,30,.07);
}

.teamInfo,
.teamGroup{
  border-left: 6px solid #1f332d;
}

.teamRole{
  border-radius: 6px;
  background: #f7f4ec;
}

.teamThumb{
  border-radius: 8px;
  box-shadow: none;
}

.teamThumb:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(18,24,30,.10);
  border-color: #c4cbbf;
}

.teamThumb.is-active{
  border-color: rgba(212,175,55,.52);
  background: #fffdf7;
  box-shadow: inset 6px 0 0 var(--brand);
}

.teamThumb img{
  border-radius: 6px;
}

@media (max-width: 640px){
  .teamFullPhoto,
  .teamPhotoCard,
  .teamInfo,
  .teamGroup,
  .teamThumb{
    border-radius: 8px;
  }

  .teamThumb img{
    border-radius: 6px;
  }
}
