/* About Us page — Team section (tbt-about-team) */

.tbt-about-team {
  padding: 84px 0;
  background: #ffffff;
  border-top: 1px solid var(--tbt-border);
  border-bottom: 1px solid var(--tbt-border);
}

.tbt-about-team__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 2.5fr);
  gap: 52px;
  align-items: start;
}

.tbt-about-team__copy {
  padding-top: 14px;
}

.tbt-about-team__copy h2 {
  margin: 0 0 22px;
  max-width: 360px;
  font-family: var(--tbt-serif);
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.1;
  font-weight: 300;
  color: var(--tbt-ink);
}

.tbt-about-team__copy p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--tbt-muted);
}

.tbt-about-team__carousel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.tbt-about-team__carousel-head {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.tbt-about-team__nav {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tbt-border);
  background: #ffffff;
  color: var(--tbt-ink);
  transition: border-color 0.2s ease, color 0.2s ease;
}

@media (hover: hover) {
  .tbt-about-team__nav:hover {
    border-color: var(--tbt-primary);
    color: var(--tbt-primary);
  }
}

.tbt-about-team__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tbt-about-team__nav .tbt-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.75;
}

/* Fixed-width track: cards keep a constant size regardless of how many
   members exist, so a single seeded member never stretches into empty
   space the way a percentage-based column would. */
.tbt-about-team__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 280px);
  gap: 20px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: 0;
  padding-bottom: 8px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.tbt-about-team__track::-webkit-scrollbar {
  display: none;
}

/* Every card resolves to the same total height on its own: the media
   block is fixed via aspect-ratio and the body via a fixed height, so
   name/role/bio length and neighbouring cards never affect it. */
.tbt-about-team__card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--tbt-border);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) {
  .tbt-about-team__card:hover {
    border-color: rgba(20, 121, 184, 0.28);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
  }
}

.tbt-about-team__media {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #f4f1eb;
  overflow: hidden;
}

.tbt-about-team__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

@media (hover: hover) {
  .tbt-about-team__card:hover .tbt-about-team__media img {
    transform: scale(1.045);
  }
}

.tbt-about-team__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tbt-serif);
  font-size: 56px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--tbt-primary);
}

.tbt-about-team__body {
  display: flex;
  flex-direction: column;
  height: 220px;
  padding: 24px 22px 20px;
  overflow: hidden;
}

.tbt-about-team__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tbt-about-team__body-rule {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--tbt-primary);
}

.tbt-about-team__index {
  font-family: var(--tbt-serif);
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--tbt-muted);
}

.tbt-about-team__body strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  margin-bottom: 6px;
  font-family: var(--tbt-serif);
  font-size: 23px;
  line-height: 1.2;
  font-weight: 400;
  font-style: italic;
  color: var(--tbt-ink);
}

.tbt-about-team__body span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-bottom: 14px;
  min-height: 2.4em;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tbt-primary);
}

.tbt-about-team__body p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 300;
  color: var(--tbt-muted);
}

.tbt-about-team__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.tbt-about-team__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--tbt-border);
  background: #ffffff;
  color: var(--tbt-primary);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) {
  .tbt-about-team__socials a:hover {
    background: var(--tbt-primary);
    border-color: var(--tbt-primary);
    color: #ffffff;
    transform: translateY(-1px);
  }
}

.tbt-about-team__social-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  display: block;
}

@media (max-width: 1023px) {
  .tbt-about-team__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tbt-about-team__carousel-head {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .tbt-about-team__track {
    grid-auto-columns: minmax(78vw, 82vw);
  }
}


/* Mobile legibility: raise 9-11px text to 12px. */
@media (max-width: 767px) {
  .tbt-about-team__body span {
    font-size: 12px;
  }
}
