/* Homepage members: one dedicated lawyer and a paged two-column roster. */
.team-section {
  padding-block: var(--home-section-space, 144px);
  background: linear-gradient(110deg, #201719, #181114 65%);
  color: #fff;
}
.team-section > .container { max-width: 1332px; }
.home-team-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: var(--home-heading-space, 48px);
}
.home-team-eyebrow { margin: 0 0 16px; font-size: 11px; line-height: 1.5; letter-spacing: .3em; color: #b6a9ac; }
.home-team-heading h2 { margin: 0; color: #fff; }
.home-team-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 42px; align-items: start; }
.home-team-feature {
  position: relative;
  display: block;
  min-width: 0;
  height: 650px;
  overflow: hidden;
  background: radial-gradient(ellipse at 65% 25%, #5a535666, transparent 70%), linear-gradient(130deg, #261e21, #30282b 50%, #181114);
  color: #fff;
}
.home-team-feature-photo { position: absolute; inset: 0; overflow: hidden; }
.home-team-feature-photo img { position: absolute; top: -5%; left: -15%; display: block; width: 130%; max-width: none; height: auto; }
.home-team-feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, #18111440 60%, #181114ef 95%); pointer-events: none; }
.home-team-badge { position: absolute; z-index: 1; top: 28px; left: 28px; padding: 7px 13px; border: 1px solid #ffffff80; color: #fff; background: #1811142e; font-size: 13px; line-height: 1.5; }
.home-team-feature-copy { position: absolute; z-index: 1; right: 34px; bottom: 32px; left: 34px; }
.home-team-feature h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; margin: 0 0 10px; color: #fff; font-size: clamp(36px, 3.6vw, 48px); font-weight: 500; line-height: 1.3; letter-spacing: -.03em; }
.home-team-feature h3 span { color: #d8ced1; font-size: 17px; font-weight: 400; letter-spacing: -.02em; }
.home-team-feature-copy p { margin: 0 0 16px; color: #d5ccce; font-size: 15px; line-height: 1.7; }
.home-team-profile { display: inline-flex; justify-content: space-between; align-items: center; gap: 42px; padding-block: 4px; border-bottom: 1px solid #ffffff80; font-size: 14px; line-height: 1.8; }
.home-team-profile > span { font-size: 24px; line-height: 1; transition: transform .2s; }
.home-team-feature:hover { color: #fff; }
.home-team-feature:hover .home-team-profile > span { transform: translateX(5px); }
.home-team-roster { min-width: 0; }
.home-team-page { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; min-height: 650px; align-content: start; }
.home-team-page[hidden], .home-team-controls[hidden] { display: none; }
.home-team-card { display: block; min-width: 0; color: #fff; }
.home-team-photo { position: relative; height: 249px; overflow: hidden; background: radial-gradient(ellipse at 65% 30%, #5a535666, transparent 75%), linear-gradient(130deg, #261e21, #30282b); }
.home-team-photo img { position: absolute; top: -10%; left: -15%; display: block; width: 130%; max-width: none; height: auto; transition: transform .35s ease; }
.home-team-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 64px; padding: 12px 15px; border: 1px solid #ffffff10; border-top: 0; background: #ffffff02; }
.home-team-meta h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0; color: #fff; font-size: 19px; font-weight: 500; line-height: 1.5; letter-spacing: -.02em; }
.home-team-meta h3 span { color: #c2b6ba; font-size: 12px; font-weight: 400; }
.home-team-arrow { font-size: 23px; line-height: 1; transition: transform .2s; }
.home-team-card:hover { color: #fff; }
.home-team-card:hover .home-team-photo img { transform: scale(1.035); }
.home-team-card:hover .home-team-meta { background: #ffffff09; border-color: #ffffff35; }
.home-team-card:hover .home-team-arrow { transform: translateX(3px); }
.home-team-controls { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #ffffff33; }
.home-team-count { display: inline-flex; gap: 14px; color: #c2b6ba; font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums; }
.home-team-count [data-team-current] { color: #fff; }
.home-team-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #fff; font-size: 28px; line-height: 1; }
.home-team-controls button:hover { background: #ffffff0d; }
.home-team-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.team-section :is(a, button):focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
/* Without scripting every profile remains available. */
.home-team-pages:not([data-paginated]) .home-team-page[hidden] { display: grid; margin-top: 24px; }
@media (min-width: 768px) and (max-width: 1535px) {
  .team-section > .container { padding-right: 112px; }
  .home-team-layout { gap: 30px; }
  .home-team-feature { height: 570px; }
  .home-team-page { gap: 20px; min-height: 570px; }
  .home-team-photo { height: 211px; }
  .home-team-meta { padding-inline: 12px; }
  .home-team-meta h3 { column-gap: 6px; font-size: 18px; }
}
@media (max-width: 900px) {
  .home-team-layout { gap: 24px; }
  .home-team-feature { height: 530px; }
  .home-team-feature-photo img { top: 0; left: -30%; width: 160%; }
  .home-team-feature-copy { right: 22px; bottom: 24px; left: 22px; }
  .home-team-badge { top: 22px; left: 22px; font-size: 12px; }
  .home-team-page { gap: 16px; min-height: 530px; }
  .home-team-photo { height: 185px; }
  .home-team-meta { min-height: 72px; padding-inline: 10px; }
  .home-team-meta h3 { display: block; font-size: 17px; }
  .home-team-meta h3 span { display: block; font-size: 11px; }
}
@media (max-width: 767px) {
  .home-team-heading { gap: 12px; align-items: flex-end; }
  .home-team-eyebrow { margin-bottom: 10px; font-size: 9px; letter-spacing: .2em; }
  .home-team-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .home-team-feature { height: clamp(450px, 115vw, 620px); }
  .home-team-feature-photo img { top: -5%; left: -15%; width: 130%; }
  .home-team-feature-copy { right: 24px; bottom: 26px; left: 24px; }
  .home-team-feature h3 { gap: 10px; font-size: 38px; }
  .home-team-feature h3 span { font-size: 14px; }
  .home-team-feature-copy p { font-size: 13px; }
  .home-team-page { gap: 16px; min-height: 0; }
  .home-team-photo { height: clamp(148px, 47vw, 310px); }
  .home-team-photo img { top: clamp(4px, 1vw, 8px); transform-origin: center top; }
  .home-team-meta { min-height: 70px; }
  .home-team-controls { margin-top: 20px; padding-top: 12px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .team-section *, .team-section *::after { transition: none; }
}

/* Stacked pages keep the roster height stable while the viewport clips the slide. */
.home-team-pages[data-paginated] { display: grid; overflow: hidden; padding: 6px; margin: -6px; }
.home-team-pages[data-paginated] .home-team-page { grid-area: 1 / 1; }
.home-team-pages[data-paginated] .home-team-page[hidden] { display: grid; visibility: hidden; pointer-events: none; }

.home-team-feature-copy .home-team-keywords { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.home-team-keywords span { white-space: nowrap; }
