/* =========================================
   TEAM PAGE - SheWhoRests
   ========================================= */

.team-page {
  background: var(--cream);
  padding-top: var(--nav-h);
}


/* =========================================
   HERO
   ========================================= */
.tm-hero {
  position: relative;
  background: var(--cream);
  padding: 5rem 2.5rem 3.5rem;
  text-align: center;
  overflow: hidden;
}

.tm-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.tm-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.08;
  margin: 1rem 0 1.8rem;
}

.tm-hero-title em {
  font-style: italic;
  color: var(--forest);
  display: block;
}

.tm-hero-body {
  font-family: var(--font-sans);
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.95;
  letter-spacing: 0.04em;
  max-width: 520px;
  margin: 0 auto;
}

/* Botanical corner accents */
.tm-corner {
  position: absolute;
  top: 0;
  width: clamp(60px, 9vw, 120px);
  pointer-events: none;
  opacity: 0.7;
}

.tm-corner svg { width: 100%; height: auto; }

.tm-corner-left  { left: 0; }
.tm-corner-right { right: 0; transform: scaleX(-1); }


/* =========================================
   THIN RULE
   ========================================= */
.tm-rule {
  width: clamp(80px, 12vw, 160px);
  height: 1px;
  background: var(--sand-dark);
  opacity: 0.45;
  margin: 0 auto;
}


/* =========================================
   FOUNDER SPOTLIGHT
   ========================================= */
.tm-founder {
  background: var(--cream);
  padding: 5rem 2.5rem 4rem;
}

.tm-founder-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0 5rem;
  align-items: center;
}

/* Arch photo */
.tm-founder-photo-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.tm-arch-wrap {
  width: 280px;
  height: 360px;
  overflow: hidden;
  border-radius: 140px 140px 0 0;
  position: relative;
  z-index: 1;
}

.tm-arch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.tm-photo-ornament {
  width: 80px;
  height: 80px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.tm-photo-ornament svg { width: 100%; height: 100%; }

/* Founder text */
.tm-founder-text-col {
  padding-right: 2rem;
}

.tm-role-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.85rem;
}

.tm-member-name {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 1.2rem;
}

.tm-name-rule {
  width: 44px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
  margin-bottom: 1.6rem;
}

.tm-member-bio {
  font-family: var(--font-sans);
  font-size: clamp(0.88rem, 1.5vw, 0.98rem);
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.9;
  letter-spacing: 0.03em;
  max-width: 560px;
  margin-bottom: 2rem;
}

.tm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
}

.tm-tag {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest);
  border: 1px solid rgba(37,94,97,0.3);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.85rem;
}


/* =========================================
   CO-CREATOR SPOTLIGHT
   ========================================= */
.tm-co-creator {
  background: var(--cream-dark);
  padding: 5rem 2.5rem 4rem;
}

.tm-co-creator .tm-founder-inner {
  /* photo on right: text col first, photo col second */
  grid-template-columns: 1fr 300px;
}

.tm-co-creator .tm-founder-text-col {
  padding-right: 0;
  padding-left: 2rem;
  order: 1;
}

.tm-co-creator .tm-founder-photo-col {
  order: 2;
}


/* =========================================
   ORNAMENTAL DIVIDER
   ========================================= */
.tm-ornament-divider {
  display: flex;
  justify-content: center;
  padding: 3rem 2.5rem 3rem;
}

.tm-ornament-divider svg {
  width: clamp(200px, 40vw, 320px);
  height: auto;
}


/* =========================================
   FACILITATORS GRID LABEL
   ========================================= */
.tm-grid-label {
  text-align: center;
  margin-bottom: 3rem;
}


/* =========================================
   TEAM GRID
   ========================================= */
.tm-grid-section {
  background: var(--cream);
  padding: 5rem 2.5rem 6rem;
  border-top: 1px solid rgba(212,201,176,0.45);
}

.tm-grid-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem 2.5rem;
}

.tm-grid-three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
}

.tm-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Circle photo frame */
.tm-card-photo-wrap {
  margin-bottom: 1.8rem;
}

.tm-circle-frame {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(194,123,90,0.35);
  position: relative;
  background: var(--cream-med);
}

.tm-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  position: relative;
  z-index: 1;
}

/* Placeholder shown when no image loads */
.tm-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.tm-card-placeholder svg {
  width: 70%;
  height: 70%;
}

/* When actual image loads, hide placeholder */
.tm-card-img:not([src=""]) + .tm-card-placeholder {
  display: none;
}

.tm-card-body {
  flex: 1;
}

.tm-card-name {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 1rem;
}

.tm-card-name .tm-name-rule {
  margin: 1rem auto 1.4rem;
}

.tm-card-bio {
  font-family: var(--font-sans);
  font-size: clamp(0.82rem, 1.3vw, 0.9rem);
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.85;
  letter-spacing: 0.03em;
}

.tm-card .tm-role-label {
  margin-bottom: 0.6rem;
}

.tm-card .tm-name-rule {
  margin: 0.8rem auto 1.2rem;
}


/* =========================================
   CLOSING QUOTE
   ========================================= */
.tm-closing {
  background: var(--cream);
  padding: 5rem 2.5rem 6rem;
  text-align: center;
}

.tm-closing-inner {
  max-width: 680px;
  margin: 0 auto;
}

.tm-closing-leaf {
  width: 44px;
  margin: 0 auto 2rem;
  opacity: 0.6;
}

.tm-closing-leaf svg { width: 100%; height: auto; }

.tm-closing-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 300;
  font-style: italic;
  color: var(--forest);
  line-height: 1.7;
  letter-spacing: 0.01em;
  quotes: none;
}


/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1100px) {
  .tm-grid-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 3rem;
  }

  .tm-co-creator .tm-founder-inner {
    grid-template-columns: 1fr 280px;
    gap: 0 3rem;
  }
}

@media (max-width: 900px) {
  .tm-grid-three {
    grid-template-columns: repeat(2, 1fr);
    max-width: 640px;
    gap: 4rem 3rem;
  }
}

@media (max-width: 820px) {
  .tm-founder-inner {
    grid-template-columns: 1fr;
    gap: 3rem 0;
    justify-items: center;
    text-align: center;
  }

  .tm-founder-text-col {
    padding-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tm-co-creator .tm-founder-inner {
    grid-template-columns: 1fr;
  }

  .tm-co-creator .tm-founder-text-col {
    order: 2;
    padding-left: 0;
  }

  .tm-co-creator .tm-founder-photo-col {
    order: 1;
  }

  .tm-member-bio {
    text-align: left;
  }

  .tm-arch-wrap {
    width: 240px;
    height: 310px;
    border-radius: 120px 120px 0 0;
  }
}

@media (max-width: 600px) {
  .tm-hero { padding: 4rem 1.5rem 2.5rem; }

  .tm-grid-inner,
  .tm-grid-three {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .tm-circle-frame {
    width: 160px;
    height: 160px;
  }

  .tm-grid-section { padding: 4rem 1.5rem 5rem; }
  .tm-co-creator { padding: 4rem 1.5rem 3.5rem; }

  .tm-closing { padding: 4rem 1.5rem 5rem; }

  .tm-corner { width: 50px; }
}
