.site-header nav .is-current::after { right: 0; }

.team-page {
  --team-gutter: 4.4vw;
  background: #fff;
}

.team-hero {
  min-height: clamp(520px, 72svh, 620px);
  display: grid;
  grid-template-columns: minmax(0, 760px) 1fr;
  grid-template-rows: auto auto 1fr;
  align-items: start;
  position: relative;
  overflow: hidden;
  padding: clamp(50px, 7vh, 82px) var(--team-gutter) 30px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.95) 36%, rgba(255,255,255,.62) 58%, rgba(255,255,255,.1) 84%),
    url("../assets/images/team-hero-building.png") center / cover no-repeat;
}
.team-hero > div:first-child {
  grid-column: 1;
  grid-row: 1;
}
.team-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.05) 55%, rgba(255,255,255,.46) 100%);
}
.team-eyebrow,
.team-section-head > p,
.profile-role {
  margin: 0;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}
.team-hero h1 {
  max-width: 950px;
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  font: 500 clamp(38px, 4.1vw, 62px)/1 var(--serif);
  letter-spacing: -.035em;
}
.team-hero h1 em { display: block; color: var(--red); font-style: normal; }
.team-hero-copy {
  max-width: 590px;
  grid-column: 1;
  grid-row: 2;
  position: relative;
  z-index: 1;
  margin: 22px 0 0;
  padding: 16px 18px;
  color: #55565a;
  background: rgba(255,255,255,.76);
  border-left: 2px solid var(--red);
  backdrop-filter: blur(8px);
  font-size: 15px;
  line-height: 1.75;
}
.team-scroll {
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  margin-top: 30px;
  padding-top: 14px;
  font-size: 10px;
  font-weight: 700;
}
.team-scroll b { color: var(--red); font-size: 18px; }

.leadership,
.lawyers { padding: 56px var(--team-gutter) 64px; }
.leadership { background: #f7f5f1; }
.lawyers { padding-top: 0; background: #f7f5f1; }
.team-section-head {
  display: grid;
  grid-template-columns: 22% 1fr;
  align-items: start;
  margin-bottom: 28px;
}
.team-section-head h2 {
  margin: 0;
  font: 500 clamp(28px, 2.35vw, 36px)/1.08 var(--serif);
  letter-spacing: -.025em;
}

.leadership-list {
  display: grid;
  grid-template-columns: 1fr;
}
.leadership-list > article { grid-column: auto; }
.leader-profile {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: clamp(290px, 26vw, 420px) auto;
  padding: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.leader-profile-reverse { grid-template-columns: 1fr; }
.leader-profile-reverse .profile-media { grid-column: 1; grid-row: 1; }
.leader-profile-reverse .leader-copy { grid-column: 1; grid-row: 2; }
.profile-media {
  min-height: 0;
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #e9e6df;
}
.profile-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.profile-media-huong { box-sizing: border-box; border: 1px solid #11111128; }
.profile-media-huong img { object-position: center 12%; }
.profile-media figcaption {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: auto;
  padding: 0;
  color: #fff;
  background: var(--red);
}
.profile-media figcaption span { font: 500 16px var(--serif); }
.profile-placeholder {
  background:
    linear-gradient(145deg, rgba(178, 13, 27, .14), transparent 48%),
    linear-gradient(135deg, #f1efeb, #dcd8d1);
}
.profile-placeholder::before,
.profile-placeholder::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(178, 13, 27, .12);
  border-radius: 50%;
}
.profile-placeholder::before { width: 420px; height: 420px; top: -190px; right: -120px; }
.profile-placeholder::after { width: 300px; height: 300px; bottom: -180px; left: -90px; }
.placeholder-mark {
  position: absolute;
  right: 7%;
  bottom: 10%;
  color: rgba(178, 13, 27, .14);
  font: 500 clamp(60px, 8vw, 120px) var(--serif);
  letter-spacing: .1em;
}
.leader-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  max-width: none;
  min-height: 270px;
  padding: 24px;
}
.leader-copy h3 {
  margin: 11px 0 14px;
  font: 500 clamp(26px, 2.2vw, 28px)/1.06 var(--serif);
  letter-spacing: 0;
}
.profile-bio { display: grid; gap: 12px; }
.profile-bio p { margin: 0; color: #55565a; }
.leader-copy .profile-bio p {
  max-width: none;
  font-size: 13px;
  line-height: 1.75;
  text-align: justify;
  font-weight: 500;
}
.practice-label {
  margin: 21px 0 0;
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .11em;
}
.profile-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.profile-tags span {
  padding: 7px 10px;
  color: var(--red-dark);
  background: #fff7f7;
  border: 1px solid #e7bcc0;
  font-size: 11px;
  font-weight: 600;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}
.lawyer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 0;
  border-left: 1px solid var(--line);
}
.lawyer-profile {
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.lawyer-media {
  height: clamp(290px, 26vw, 420px);
  position: relative;
  overflow: hidden;
  margin: 0;
}
.lawyer-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.lawyer-media-qui img { object-position: center 16%; }
.lawyer-media-hang img { object-position: center 18%; }
.lawyer-media > span:last-child:not(.placeholder-mark) {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: #fff;
  background: var(--red);
  font: 500 16px var(--serif);
}
.lawyer-copy {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  padding: 24px;
}
.lawyer-copy h3 { margin: 11px 0 14px; font: 500 clamp(26px, 2.2vw, 35px)/1.06 var(--serif); }
.lawyer-copy .profile-bio p { font-size: 13px; line-height: 1.75; font-weight: 500; text-align: justify; }

html {
  scroll-snap-type: y proximity;
  scroll-padding-top: 94px;
}
.team-hero,
.leadership-list > article,
.contact { scroll-snap-align: start; }
.leadership-list > article {
  min-height: calc(100svh - 94px);
  display: grid;
  grid-template-columns: minmax(300px, 38%) minmax(0, 1fr);
  grid-template-rows: 1fr;
  scroll-snap-stop: normal;
}
.leadership-list > article .profile-media,
.leadership-list > article .lawyer-media {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: calc(100% - 40px);
  height: clamp(460px, calc(100svh - 170px), 620px);
  min-height: 0;
  margin: 20px;
}
.leadership-list > article .leader-copy,
.leadership-list > article .lawyer-copy {
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
  align-self: stretch;
  padding: clamp(34px, 42px, 72px);
}
.leadership-list > article:nth-child(even) .profile-media,
.leadership-list > article:nth-child(even) .lawyer-media { grid-column: 2; }
.leadership-list > article:nth-child(even) .leader-copy,
.leadership-list > article:nth-child(even) .lawyer-copy { grid-column: 1; }
.leadership-list > article:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 38%);
}

@media (hover: hover) and (pointer: fine) {
  .leader-profile,
  .lawyer-profile { transition: background .35s ease; }
  .leader-profile:hover,
  .lawyer-profile:hover { background: #fff7f7; }
  .leader-profile:hover img,
  .lawyer-profile:hover img { transform: scale(1.025); }
  .profile-tags span:hover { color: #fff; background-color: var(--red); border-color: var(--red); }
}

@media (max-width: 1100px) {
  html { scroll-snap-type: none; }
  .team-hero { min-height: 520px; grid-template-columns: 1fr; }
  .team-hero-copy { margin-top: 24px; }
  .team-section-head { grid-template-columns: 1fr; gap: 16px; }
  .leadership-list { grid-template-columns: 1fr; }
  .leadership-list > article,
  .leadership-list > article:nth-child(even) {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: clamp(320px, 52vw, 520px) auto;
  }
  .leadership-list > article .profile-media,
  .leadership-list > article .lawyer-media,
  .leadership-list > article:nth-child(even) .profile-media,
  .leadership-list > article:nth-child(even) .lawyer-media {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
  }
  .leadership-list > article .leader-copy,
  .leadership-list > article .lawyer-copy,
  .leadership-list > article:nth-child(even) .leader-copy,
  .leadership-list > article:nth-child(even) .lawyer-copy {
    grid-column: 1;
    grid-row: 2;
    padding: clamp(26px, 4vw, 42px);
  }
}

@media (max-width: 760px) {
  .team-hero {
    min-height: 0;
    padding: 38px 5vw 24px;
    background:
      linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.88) 58%, rgba(255,255,255,.36) 100%),
      url("../assets/images/team-hero-building.png") 68% center / cover no-repeat;
  }
  .team-hero h1 { font-size: clamp(35px, 9.5vw, 46px); }
  .team-hero-copy { margin-top: 18px; padding: 14px 16px; }
  .team-scroll { margin-top: 28px; }
  .leadership,
  .lawyers { padding: 36px 5vw 42px; }
  .lawyers { padding-top: 0; }
  .team-section-head { margin-bottom: 22px; }
  .leadership-list > article,
  .leadership-list > article:nth-child(even) { grid-template-rows: clamp(290px, 92vw, 420px) auto; }
  .leadership-list > article .leader-copy,
  .leadership-list > article .lawyer-copy,
  .leadership-list > article:nth-child(even) .leader-copy,
  .leadership-list > article:nth-child(even) .lawyer-copy { min-height: 0; padding: 22px; }
  .profile-bio { gap: 10px; }
  .practice-label { margin-top: 18px; }
  .profile-tags { gap: 6px; margin-top: 9px; }
  .profile-tags span { padding: 6px 8px; }
}

@media (max-width: 480px) {
  .team-hero h1 { font-size: clamp(33px, 9.5vw, 42px); }
  .team-hero-copy { font-size: 12px; }
  .team-section-head h2 { font-size: 28px; }
  .leader-copy h3,
  .lawyer-copy h3 { font-size: 28px; }
  .profile-tags span { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
