.home-team {
  padding: 3rem 0;
  background: var(--surface-base);
}

.home-team__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.home-team__title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.home-team__all-link {
  display: inline-flex;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.home-team__controls {
  display: flex;
  gap: 0.75rem;
}

.home-team__arrow {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
}

.home-team__arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.home-team__track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y pinch-zoom;
}

.home-team__track::-webkit-scrollbar {
  display: none;
}

.home-team__track.is-dragging {
  scroll-behavior: auto;
}

.home-team__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.home-team-feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 600px;
  width: 100%;
  background: var(--surface-base);
}

.home-team-feature__media {
  display: flex;
  align-items: stretch;
  min-height: 0;
}

.home-team-feature__image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: 600px;
  flex: 0 0 auto;
  align-self: start;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 44, 66, 0.16) 0%, rgba(14, 44, 66, 0.08) 100%), #dce6ec;
}

.home-team-feature__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-team-feature__panel {
  min-height: 600px;
  display: grid;
}

.home-team-feature__body {
  display: flex;
  flex-direction: column;
  padding: 3.5rem 3rem 2rem;
}

.home-team-feature__topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.home-team-feature__name {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.home-team-feature__controls {
  display: flex;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.home-team-feature__quote {
  max-width: 34rem;
  margin-bottom: 2rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.45;
  color: var(--text-primary);
}

.home-team-feature__occupation {
  margin-bottom: 2rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.home-team-feature__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.home-team-feature__link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.team-page {
  position: relative;
  padding-top: 0.5rem;
}

.team-page__header {
  max-width: 56rem;
  margin-bottom: 3rem;
}

.team-page__intro {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1080px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.team-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface-base);
  height: 100%;
}

.team-card__media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 44, 66, 0.16) 0%, rgba(14, 44, 66, 0.08) 100%), #dce6ec;
}

.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 240ms ease;
}

.team-card:hover .team-card__photo,
.team-card:focus-within .team-card__photo {
  transform: scale(1.02);
}

.team-card__body {
  display: grid;
  grid-template-rows: auto minmax(calc(1.45em * 3), auto) auto;
  align-content: start;
  gap: 0.85rem;
  padding: 1.25rem;
}

.team-card__name {
  font-size: 1.35rem;
  line-height: 1.08;
}

.team-card__name-link:hover,
.team-card__name-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.team-card__occupation {
  color: var(--text-secondary);
  line-height: 1.45;
  min-height: calc(1.45em * 3);
}

.team-card__actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.team-card__link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.page-shell--profile {
  overflow: hidden;
}

.team-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.92fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.team-profile__content {
  display: grid;
  gap: 1.35rem;
}

.team-profile__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.team-profile h1 {
  font-size: clamp(2.35rem, 4vw, 4rem);
  line-height: 0.98;
}

.team-profile__quote {
  max-width: 32rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.team-profile__section {
  display: grid;
  gap: 0.9rem;
}

.team-profile__section h2 {
  font-size: 1.15rem;
}

.team-profile__section p {
  color: var(--text-secondary);
}

.team-profile__list {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.1rem;
}

.team-profile__list li {
  color: var(--text-secondary);
}

.team-profile__media {
  align-self: start;
}

.team-profile__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-card);
}

@media (max-width: 900px) {
  .team-profile,
  .team-grid,
  .home-team-feature {
    grid-template-columns: 1fr;
  }

  .team-profile__media {
    order: -1;
  }

  .home-team-feature,
  .home-team-feature__panel {
    min-height: auto;
  }

  .home-team-feature__media {
    min-height: 0;
  }

  .home-team-feature__image-frame {
    aspect-ratio: 1 / 1;
    max-height: none;
  }

  .home-team-feature__body {
    padding: 2rem 0 0;
  }

  .team-page__header {
    margin-bottom: 2.25rem;
  }
}

@media (max-width: 720px) {
  .home-team__header {
    align-items: center;
  }

  .home-team-feature__topbar {
    flex-wrap: wrap;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}
