/* Standalone team member profile (editorial two-column, white field) */

.team-profile-page {
  background: var(--white);
}

/* Same as inner pages: header always visible (no full-bleed hero sentinel on this layout) */
body.team-profile-page .site-header {
  transform: translateY(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.team-profile-page .site-header__nav a.is-active,
.team-profile-page .site-nav-drawer__nav a.is-active {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.team-profile-page main {
  background: var(--white);
}

.team-profile {
  padding: clamp(4.5rem, 10vh, 6.5rem) var(--section-inline) clamp(3.5rem, 8vh, 5.5rem);
}

.team-profile__inner {
  width: min(1120px, calc(100% - 2 * var(--section-inline)));
  margin-inline: auto;
}

.team-profile__back {
  margin: 0 0 clamp(2rem, 4vh, 2.75rem);
}

.team-profile__back-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
}

.team-profile__back-text {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.team-profile__back-arr {
  font-weight: 600;
  text-decoration: none;
}

.team-profile__back-link:hover .team-profile__back-text,
.team-profile__back-link:focus-visible .team-profile__back-text {
  opacity: 0.65;
}

.team-profile__back-link:hover .team-profile__back-arr,
.team-profile__back-link:focus-visible .team-profile__back-arr {
  opacity: 0.65;
}

.team-profile__grid {
  display: grid;
  grid-template-columns: minmax(0, min(280px, 32vw)) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: clamp(1rem, 2.5vw, 1.75rem) clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  min-height: min(68vh, 40rem);
}

.team-profile__aside {
  grid-column: 1;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: clamp(1rem, 2vh, 1.35rem);
}

.team-profile__avatar {
  width: clamp(200px, 24vw, 260px);
  height: clamp(200px, 24vw, 260px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(100%);
}

.team-profile__name {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--black);
}

.team-profile__role {
  margin: 0;
  max-width: 16rem;
  font-size: clamp(0.68rem, 1.05vw, 0.76rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
}

.team-profile__body {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  padding-top: 0.15rem;
}

.team-profile__copy {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.team-profile__copy p {
  margin: 0;
  font-size: clamp(0.95rem, 1.12vw, 1.05rem);
  line-height: 1.68;
  color: #222;
  text-align: left;
}

.team-profile__meta {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
}

.team-profile__copy a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.team-profile__copy a:hover {
  opacity: 0.65;
}

.team-profile__quote {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  justify-self: end;
  margin: 0;
  padding: clamp(2rem, 5vh, 3.5rem) 0 0;
  border: none;
  max-width: min(38rem, 100%);
  font-size: clamp(0.82rem, 1.2vw, 1.05rem);
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: right;
  color: var(--black);
}

@media (max-width: 768px) {
  .team-profile__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
    gap: clamp(2rem, 4vh, 2.75rem);
  }

  .team-profile__aside {
    grid-column: 1;
    grid-row: auto;
  }

  .team-profile__body {
    grid-column: 1;
    grid-row: auto;
  }

  .team-profile__quote {
    grid-column: 1;
    grid-row: auto;
    align-self: stretch;
    justify-self: stretch;
    max-width: none;
    text-align: left;
    padding-top: clamp(1.5rem, 4vh, 2.5rem);
  }
}

/* —— More team (below profile, beige band) —— */
.team-more {
  width: 100%;
  background: var(--muted);
  padding: clamp(3rem, 8vh, 5rem) var(--section-inline) clamp(3rem, 7vh, 4.75rem);
  box-sizing: border-box;
}

.team-more__inner {
  width: min(1120px, calc(100% - 2 * var(--section-inline)));
  margin-inline: auto;
}

.team-more__title {
  margin: 0 0 clamp(2rem, 4vh, 2.85rem);
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--black);
}

.team-more__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vh, 3.25rem);
}

.team-more__member {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(1.25rem, 3.5vw, 2rem);
  text-align: left;
}

.team-more__avatar {
  flex-shrink: 0;
  width: clamp(112px, 15vw, 160px);
  height: clamp(112px, 15vw, 160px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(100%);
}

.team-more__meta {
  flex: 1;
  min-width: 0;
}

.team-more__name {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 2.1vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--black);
}

.team-more__role {
  margin: 0 0 0.65rem;
  font-size: clamp(0.82rem, 1.08vw, 0.95rem);
  font-weight: 500;
  line-height: 1.45;
  color: #b56f3c;
}

.team-more__read {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #8a7265;
}

.team-more__read:hover,
.team-more__read:focus-visible {
  color: var(--black);
}

.team-more__back {
  margin: clamp(2.5rem, 6vh, 3.75rem) 0 0;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 520px) {
  .team-more__member {
    align-items: flex-start;
  }
}
