/* ===================================================
   TEAM PAGE - template-team.php
   =================================================== */

.team-page {
  background: var(--surface-container-lowest);
  color: var(--on-surface);
}

.team-page .container {
  max-width: var(--max-width);
}

.team-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.team-empty-state {
  font-size: 16px;
  color: rgba(0, 0, 0, 0.6);
}

/* ===== HERO ===== */
.team-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 132px 0 0;
  overflow: hidden;
  text-align: center;
}

.team-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.team-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
}

.team-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(7, 9, 13, 0) 0%,
    rgba(7, 9, 13, 0) 52%,
    rgba(7, 9, 13, 0.72) 74%,
    rgba(7, 9, 13, 1) 100%
  );
}

.team-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-bottom: clamp(40px, 9vh, 108px);
}

.team-hero-title {
  font-size: clamp(44px, 7vw, 80px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--color-white);
  margin: 0;
}

.team-hero-subtitle {
  max-width: 840px;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.team-hero-divider {
  width: 1px;
  height: 112px;
  background: linear-gradient(180deg, rgba(166, 142, 94, 0.95) 0%, rgba(166, 142, 94, 0) 100%);
  margin-top: 18px;
}

/* ===== FOUNDER ===== */
.team-founder {
  background: #f1f1f5;
  color: #0f1218;
  padding: 120px 0;
}

.team-section-head {
  margin-bottom: 52px;
}

.team-section-head h2 {
  margin: 18px 0 0;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: #0f1218;
}

.team-founder-card {
  /* max-width: 980px;
  margin: 0 auto; */
  display: grid;
  grid-template-columns: 46% 54%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f8f8fa;
}

.team-founder-media {
  min-height: 680px;
  background: #0f1218;
}

.team-founder-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: grayscale(1) contrast(1.08); */
}

.team-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d6d6db;
  color: #1b1d25;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.team-founder-content {
  padding: clamp(30px, 3.2vw, 42px);
  display: flex;
  flex-direction: column;
}

.team-founder-content h3 {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  color: #0f1218;
}

.team-founder-role {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: #a68e5e;
}

.team-founder-bio {
  margin-top: 26px;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: rgba(15, 18, 24, 0.64);
}

.team-founder-bio p {
  margin: 0 0 16px;
}

.team-founder-bio p:last-child {
  margin-bottom: 0;
}

.team-founder-line {
  width: 76px;
  height: 1px;
  background: rgba(166, 142, 94, 0.9);
  margin-top: 28px;
}

/* ===== ASSOCIATES ===== */
.team-associates {
  background: #0d1017;
  padding: 120px 0;
}

.team-associates-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: end;
  gap: 28px;
  margin-bottom: 54px;
}

.team-associates-head h2 {
  margin: 14px 0 0;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--color-white);
}

.team-associates-head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-align: right;
  color: rgba(227, 226, 231, 0.6);
}

.team-associates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.team-associate-card {
  display: flex;
  flex-direction: column;
  min-height: 730px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  overflow: hidden;
}

.team-associate-media {
  height: 322px;
  flex-shrink: 0;
  background: #10131b;
}

.team-associate-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: grayscale(1) contrast(1.08); */
  transition: transform 0.6s ease, filter 0.6s ease;
}

.team-associate-card:hover .team-associate-media img {
  transform: scale(1.03);
  filter: grayscale(0.15) contrast(1.02);
}

.team-associate-content {
  display: flex;
  flex-direction: column;
  padding: 30px 28px 26px;
  min-height: 0;
  flex: 1;
}

.team-associate-content h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-white);
}

.team-associate-role {
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #a68e5e;
}

.team-associate-bio {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: rgba(227, 226, 231, 0.72);
  overflow-y: auto;
  padding-right: 8px;
  min-height: 0;
}

.team-associate-bio p {
  margin: 0 0 14px;
}

.team-associate-bio p:last-child {
  margin-bottom: 0;
}

.team-associate-bio::-webkit-scrollbar {
  width: 4px;
}

.team-associate-bio::-webkit-scrollbar-track {
  background: transparent;
}

.team-associate-bio::-webkit-scrollbar-thumb {
  background: rgba(166, 142, 94, 0.4);
  border-radius: 9999px;
}

/* ===== COLLABORATORS ===== */
.team-collaborators {
  background: #f1f1f2;
  color: #10131a;
  padding: 120px 0;
}

.team-collaborators-head {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 52px;
}

.team-collaborators-head h2 {
  margin: 16px 0 0;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: #10131a;
}

.team-collaborators-head p {
  margin: 22px auto 0;
  max-width: 820px;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: rgba(16, 19, 26, 0.56);
}

.team-collaborators-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.team-collaborator-card {
  border: 1px solid rgba(16, 19, 26, 0.07);
  padding: 40px 24px 34px;
  text-align: center;
  background: transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.team-collaborator-card:hover {
  background: #f4f3f1;
  border-color: rgba(166, 142, 94, 0.2);
}

.team-collaborator-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 22px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 19, 26, 0.05);
}

.team-collaborator-icon .material-symbols-outlined {
  font-size: 24px;
  color: #a68e5e;
  font-variation-settings: "FILL" 0, "wght" 220, "GRAD" 0, "opsz" 24;
}

.team-collaborator-card h3 {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 20px);
  line-height: 1.3;
  letter-spacing: 0;
  font-weight: 500;
  color: #10131a;
}

.team-collaborator-card p {
  margin: 12px 0 0;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(166, 142, 94, 0.95);
}

/* ===== METHOD ===== */
.team-method {
  background: #090c13;
  padding: 120px 0;
}

.team-method-head {
  text-align: center;
  margin-bottom: 56px;
}

.team-method-head h2 {
  margin: 16px 0 0;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--color-white);
}

.team-method-line {
  width: 106px;
  height: 4px;
  margin: 26px auto 0;
  background: rgba(166, 142, 94, 0.9);
}

.team-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.team-method-card {
  text-align: center;
  padding: 8px 16px;
}

.team-method-card .material-symbols-outlined {
  font-size: 48px;
  color: #a68e5e;
  font-variation-settings: "FILL" 0, "wght" 220, "GRAD" 0, "opsz" 24;
}

.team-method-card h3 {
  margin: 20px 0 0;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-white);
}

.team-method-card p {
  margin: 16px auto 0;
  max-width: 380px;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: rgba(227, 226, 231, 0.68);
}

/* ===== CTA ===== */
.team-page-cta {
  position: relative;
  overflow: hidden;
  background: #f1f1f5;
  color: #0f1218;
  padding: 124px 0 118px;
}

.team-page-cta-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.team-page-cta-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.team-page-cta-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(241, 241, 245, 0.46) 0%,
    rgba(241, 241, 245, 0.62) 55%,
    rgba(241, 241, 245, 0.78) 100%
  );
}

.team-page-cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1040px;
}

.team-page-cta-inner h2 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: #0f1218;
}

.team-page-cta-inner p {
  margin: 22px auto 0;
  max-width: 840px;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: rgba(15, 18, 24, 0.62);
}

.team-page-cta-button {
  margin-top: 40px;
  min-width: 328px;
  min-height: 64px;
  padding: 0 34px;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.team-page-cta-button:hover {
  transform: translateY(-1px);
}

/* ===== SHARED ANCHOR OFFSET ===== */
[id^="team-member-"] {
  scroll-margin-top: 90px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
  .team-associate-card {
    min-height: 660px;
  }

  .team-associate-media {
    height: 290px;
  }
}

@media (max-width: 1024px) {
  .team-hero {
    min-height: 86vh;
    padding-top: 118px;
  }

  .team-hero-divider {
    height: 88px;
  }

  .team-founder,
  .team-associates,
  .team-collaborators,
  .team-method,
  .team-page-cta {
    padding: 92px 0;
  }

  .team-founder-card {
    grid-template-columns: 1fr;
  }

  .team-founder-media {
    min-height: 520px;
  }

  .team-associates-head {
    grid-template-columns: 1fr;
  }

  .team-associates-head p {
    text-align: left;
    max-width: 620px;
  }

  .team-associates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .team-collaborators-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-method-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .team-hero {
    min-height: 80vh;
    padding: 108px 0 0;
  }

  .team-hero-title {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.05;
  }

  .team-hero-subtitle {
    max-width: 95%;
    font-size: 16px;
  }

  .team-hero-inner {
    padding-bottom: clamp(28px, 7vh, 70px);
  }

  .team-founder,
  .team-associates,
  .team-collaborators,
  .team-method,
  .team-page-cta {
    padding: 76px 0;
  }

  .team-section-head {
    margin-bottom: 34px;
  }

  .team-founder-media {
    min-height: 420px;
  }

  .team-section-head h2,
  .team-associates-head h2,
  .team-collaborators-head h2,
  .team-method-head h2,
  .team-page-cta-inner h2 {
    font-size: 34px;
  }

  .team-associates-head p,
  .team-collaborators-head p,
  .team-method-card p,
  .team-page-cta-inner p,
  .team-founder-bio {
    font-size: 15px;
  }

  .team-associates-grid {
    grid-template-columns: 1fr;
  }

  .team-associate-card {
    min-height: 0;
  }

  .team-associate-media {
    height: 300px;
  }

  .team-collaborators-grid {
    grid-template-columns: 1fr;
  }

  .team-page-cta-button {
    min-width: 0;
    width: 90%;
    max-width: 380px;
    min-height: 42px;
  }

  [id^="team-member-"] {
    scroll-margin-top: 74px;
  }
}

@media (max-width: 480px) {
  .team-hero {
    min-height: 74vh;
    padding: 94px 0 0;
  }

  .team-eyebrow {
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .team-hero-title {
    font-size: 30px;
  }

  .team-section-head h2,
  .team-associates-head h2,
  .team-collaborators-head h2,
  .team-method-head h2,
  .team-page-cta-inner h2 {
    font-size: 28px;
  }

  .team-hero-subtitle,
  .team-associates-head p,
  .team-collaborators-head p,
  .team-method-card p,
  .team-page-cta-inner p,
  .team-founder-bio,
  .team-associate-bio {
    font-size: 14px;
  }

  .team-hero-divider {
    height: 66px;
  }

  .team-founder-media {
    min-height: 340px;
  }

  .team-associate-media {
    height: 250px;
  }

  .team-founder-content h3 {
    font-size: 24px;
  }

  .team-associate-content h3,
  .team-collaborator-card h3,
  .team-method-card h3 {
    font-size: 20px;
  }

  .team-founder-content,
  .team-associate-content,
  .team-collaborator-card {
    padding-left: 20px;
    padding-right: 20px;
  }
}
