:root{
  --team-accent: #c02a30; /* screenshot style */
}

/* ornaments */
.with-ornaments{ position: relative; overflow:hidden; }
.with-ornaments .container{ position: relative; z-index: 2; }
.with-ornaments::before,
.with-ornaments::after{
  content:"";
  position:absolute;
  pointer-events:none;
  z-index: 1;
  background-repeat:no-repeat;
  background-size:contain;
  filter: drop-shadow(0 14px 26px rgba(2,8,23,.06));
}
.with-ornaments::before{
  width: 320px; height: 320px;
  top: -160px; right: -160px;
  background-image: url("assets/img/decor/ring.svg");
  opacity: .16;
}
.with-ornaments::after{
  width: 260px; height: 260px;
  bottom: -140px; left: -140px;
  background-image: url("assets/img/decor/dots-grid.svg");
  opacity: .12;
}

/* header */
.team-hero-head{
  text-align:center;
  max-width: 860px;
  margin: 0 auto;
}

.team-kicker{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  font-weight: 900;
  color: rgba(11,18,32,.70);
}

.team-kdot{
  width: 18px; height: 18px;
  border-radius: 999px;
  display:grid; place-items:center;
  background: rgb(236 179 181);
  border: 1px solid rgb(192 42 48);
  color: rgb(192 42 48);
  font-size: 12px;
}

.team-h2{
  margin: 10px 0 6px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 950;
  color: rgba(11,18,32,.96);
}
.team-h2 span{
  color: var(--team-accent);
}

/* grid 3/3/3 */
.team-grid{
  margin-top: 26px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* card */
.tcard{
  cursor:pointer;
  border: 1px solid rgba(231,235,241,.95);
  background:#fff;
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(2,8,23,.05);
  padding: 26px 18px 22px;
  text-align:center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tcard:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(2,8,23,.10);
  border-color: rgb(192 42 48);
}

.tcard:focus-visible{
  outline:none;
  border-color: rgba(56,189,248,.45);
  box-shadow: 0 0 0 4px rgba(56,189,248,.14), 0 18px 48px rgba(2,8,23,.10);
}

/* circle avatar */
.tcard-avatar{
  width: 170px;
  height: 170px;
  border-radius: 999px;
  margin: 0 auto 14px;
  overflow:hidden;
  box-shadow: 0 14px 34px rgba(2,8,23,.10);
  background: rgba(231,235,241,.35);
  display:block;
}
.tcard-avatar img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.tcard-name{
  display:block;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.01em;
  color: rgba(11,18,32,.94);
  margin-top: 4px;
}

.tcard-underline{
  display:block;
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: var(--team-accent);
  margin: 10px auto 10px;
}

.tcard-title{
  display:block;
  font-size: 13px;
  font-weight: 850;
  color: rgba(11,18,32,.55);
}

/* footer */
.team-foot{
  margin-top: 16px;
  text-align:center;
}
.team-foot a{
  color: rgb(192 42 48);
  font-weight: 900;
  text-decoration:none;
}
.team-foot a:hover{ text-decoration: underline; }

/* modal */
.modal-lock{ overflow:hidden; }

.tmodal{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 9999;
}
.tmodal.is-open{ display:block; }

.tmodal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(11,18,32,.55);
}

.tmodal-dialog{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 28px));
  background:#fff;
  border-radius: 24px;
  border: 1px solid rgba(231,235,241,.95);
  box-shadow: 0 30px 90px rgba(2,8,23,.35);
  overflow:hidden;
}

.tmodal-close{
  position:absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(231,235,241,.95);
  background: rgba(255,255,255,.92);
  font-weight: 900;
  cursor:pointer;
}

.tmodal-top{
  padding: 22px 20px 14px;
  text-align:center;
  border-bottom: 1px solid rgba(231,235,241,.95);
  background: radial-gradient(circle at 50% 0%, rgba(56,189,248,.12), transparent 55%);
}

.tmodal-avatar{
  width: 140px;
  height: 140px;
  border-radius: 999px;
  margin: 0 auto 12px;
  overflow:hidden;
  border: 4px solid rgb(224 41 41);
  box-shadow: 0 14px 34px rgba(2,8,23,.12);
  background: rgba(231,235,241,.35);
}
.tmodal-avatar img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.tmodal-name{
  font-weight: 950;
  font-size: 22px;
  color: rgba(11,18,32,.94);
}
.tmodal-title{
  margin-top: 6px;
  font-weight: 850;
  color: rgba(11,18,32,.60);
  font-size: 13px;
}

.tmodal-body{
  padding: 18px 20px 22px;
}
.tmodal-bio{
  line-height: 1.8;
}

/* responsive */
@media (max-width: 1100px){
  .team-grid{ grid-template-columns: repeat(2, 1fr); }
  .tcard-avatar{ width: 160px; height: 160px; }
}
@media (max-width: 640px){
  .team-grid{ grid-template-columns: 1fr; }
  .tcard-avatar{ width: 150px; height: 150px; }
  .with-ornaments::before,
  .with-ornaments::after{
    opacity: .12;
    filter:none;
  }
}