/* =========================
assets/team.css
SGS-clean Team Page + Gallery
Brand: #ffb018
========================= */

:root{
  --brand:#ffb018;
  --ink:#0f1419;
  --muted:#5d6772;
  --line:#e6eaee;
  --soft:#f6f8fa;
  --card:#ffffff;
}

/* page base */
.teamBody main{
  background:#fff;
}

.teamMain{
  background:#fff;
}

/* HERO tweaks */
.teamHero .itk-overlay{
  background:linear-gradient(180deg, rgba(11,18,32,.25), rgba(11,18,32,.72));
}

.teamHero__content{ max-width: 760px; }

.teamHero__crumb{
  font-size:.9rem;
  color:rgba(255,255,255,.85);
  letter-spacing:.2px;
  margin-bottom:10px;
}

.teamHero__title{
  color:#fff;
  font-weight:700;
  letter-spacing:-.3px;
  line-height:1.05;
  margin:0;
}

.teamHero__sub{
  color:rgba(255,255,255,.88);
  max-width: 62ch;
  margin-top:10px;
}

/* INTRO */
.tIntro{
  padding:56px 0;
  border-bottom:1px solid var(--line);
}

.tIntro__grid{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap:28px;
  align-items:start;
}

.tIntro__title{
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  letter-spacing:-.3px;
  margin:0;
}

.tIntro__text{
  margin:0;
  color:var(--muted);
  line-height:1.7;
  max-width: 70ch;
}

/* STATS BAND */
.tStats{
  padding:20px 0;
  border-bottom:1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfcfd);
}

.tStats__grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:14px;
}

.tStat{
  border:1px solid var(--line);
  background:#fff;
  padding:14px 14px 12px;
}

.tStat__k{
  font-size:.85rem;
  color:var(--muted);
}

.tStat__v{
  margin-top:6px;
  font-weight:700;
  letter-spacing:-.2px;
  color:var(--ink);
}

/* SECTION HEAD */
.tSection{
  padding:56px 0 62px;
}

.tSection__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:22px;
}

.tSection__title{
  margin:0;
  font-size:1.4rem;
  letter-spacing:-.2px;
}

.tSection__lead{
  margin:0;
  color:var(--muted);
  max-width: 60ch;
  line-height:1.6;
}

/* TEAM GRID */
.tGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:18px;
}

/* CARD */
.tCard{
  background:var(--card);
  border:1px solid var(--line);
  overflow:hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tCard:hover{
  transform: translateY(-2px);
  border-color: rgba(15,20,25,.18);
  box-shadow: 0 10px 26px rgba(15,20,25,.08);
}

/* PHOTO (FIX TOP CROPPING) */
.tPhoto{
  position:relative;
  aspect-ratio: 4 / 5; /* more executive portrait */
  background: var(--soft);
  overflow:hidden;
}

.tPhoto img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position: var(--pos, center 12%); /* key fix */
  display:block;
}

/* subtle brand accent line */
.tPhoto::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:3px;
  background: var(--brand);
  opacity:.95;
}

.tMeta{ padding:16px 16px 18px; }

.tName{
  margin:0;
  font-size:1.05rem;
  letter-spacing:-.2px;
  line-height:1.2;
}

.tRole{
  margin:8px 0 0;
  color:var(--brand);
  font-weight:700;
  font-size:.92rem;
}

.tBio{
  margin:10px 0 0;
  color:var(--muted);
  line-height:1.6;
  font-size:.95rem;
}

/* GALLERY */
.tGallery{
  padding: 10px 0 70px;
  border-top:1px solid var(--line);
}

.tGallery__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  margin: 0 0 18px;
}

.tGallery__title{
  margin:0;
  font-size:1.4rem;
  letter-spacing:-.2px;
}

.tGallery__lead{
  margin:0;
  color:var(--muted);
  max-width:60ch;
  line-height:1.6;
}

.tGalGrid{
  display:grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap:14px;
}

.tGalItem{
  position:relative;
  display:block;
  border:1px solid var(--line);
  background:var(--soft);
  overflow:hidden;
  text-decoration:none;
  min-height: 220px;
}

.tGalItem img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  transform: scale(1.02);
  transition: transform .25s ease;
}

.tGalItem:hover img{
  transform: scale(1.07);
}

/* nice grid spans */
.tGalItem:nth-child(1){ grid-column: span 6; }
.tGalItem:nth-child(2){ grid-column: span 3; }
.tGalItem:nth-child(3){ grid-column: span 3; }
.tGalItem:nth-child(4){ grid-column: span 4; }
.tGalItem:nth-child(5){ grid-column: span 4; }
.tGalItem:nth-child(6){ grid-column: span 4; }

/* LIGHTBOX */
.tLightbox{
  position:fixed;
  inset:0;
  background: rgba(10,14,18,.84);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 22px;
  z-index: 9999;
}
.tLightbox.is-open{ display:flex; }

.tLightbox__img{
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  border:1px solid rgba(255,255,255,.18);
  background:#111;
}

.tLightbox__close{
  position:fixed;
  top:16px;
  right:16px;
  width:44px;
  height:44px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  color:#fff;
  font-size:18px;
  cursor:pointer;
}

/* CTA */
.tCta{
  padding: 0 0 72px;
}

.tCta__box{
  border:1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--soft));
  padding:24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
}

.tCta__title{
  margin:0;
  font-size:1.25rem;
  letter-spacing:-.2px;
}

.tCta__sub{
  margin:8px 0 0;
  color:var(--muted);
  line-height:1.6;
}

.tCta__actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.tCta__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:44px;
  padding:0 16px;
  font-weight:800;
  border:1px solid rgba(0,0,0,.12);
  background: var(--brand);
  color:#111;
  text-decoration:none;
}

.tCta__btn:hover{ filter: brightness(.98); }

.tCta__link{
  color:var(--ink);
  text-decoration:none;
  font-weight:700;
}

.tCta__link:hover{ text-decoration:underline; }

/* Mobile nav links (if needed) */
.itk-mobileNav{
  display:grid;
  gap:10px;
  padding: 10px 0 0;
}
.itk-mobileNav a{
  text-decoration:none;
  color: var(--ink);
  padding:10px 12px;
  border:1px solid var(--line);
  background:#fff;
}
.itk-mobileNav a.is-active{
  border-color: rgba(255,176,24,.65);
  background: rgba(255,176,24,.12);
}

/* RESPONSIVE */
@media (max-width: 980px){
  .tStats__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tSection__head{ flex-direction:column; align-items:flex-start; }
  .tGallery__head{ flex-direction:column; align-items:flex-start; }
  .tGalItem:nth-child(1){ grid-column: span 12; }
  .tGalItem:nth-child(2),
  .tGalItem:nth-child(3){ grid-column: span 6; }
  .tGalItem:nth-child(4),
  .tGalItem:nth-child(5),
  .tGalItem:nth-child(6){ grid-column: span 6; }
}

@media (max-width: 760px){
  .tIntro__grid{ grid-template-columns: 1fr; }
  .tIntro{ padding:44px 0; }
  .tSection{ padding:44px 0 58px; }
  .tGrid{ grid-template-columns: 1fr; }
  .tCta__box{ flex-direction:column; align-items:flex-start; }
}

@media (max-width: 640px){
  .tGalGrid{ grid-template-columns: 1fr; }
  .tGalItem{ min-height: 210px; }
  .tGalItem:nth-child(n){ grid-column: auto; }
}
