/* ── Team Page ── */

.team-section {
  padding: 6rem var(--section-h);
}

/* Flat 4×2 grid */
.team-grid-flat {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem 2.5rem;
}

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

.team-photo {
  width: 143px;
  height: 180px;
  border-radius: 0;
  background: var(--c-sand);
  overflow: hidden;
  margin: 0 auto 1.25rem;
  position: relative;
  border: 2px solid var(--c-terracotta);
  flex-shrink: 0;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-name-new {
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--c-black);
  letter-spacing: -0.01em;
  margin-bottom: 0.375rem;
  transition: color 0.25s ease;
}

.team-title-new {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  color: var(--c-silver);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.team-bio-new {
  font-size: 13px;
  line-height: 1.65;
  color: var(--c-graphite);
  margin-top: 1rem;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Hover effects */
.team-card-new {
  transition: transform 0.3s ease;
}
.team-card-new:hover {
  transform: translateY(-3px);
}
.team-card-new .team-photo img {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}
.team-card-new:hover .team-photo img {
  transform: scale(1.04);
  filter: brightness(1.08);
}
.team-card-new:hover .team-photo {
  box-shadow: 0 6px 20px rgba(141, 110, 100, 0.25);
}
.team-card-new:hover .team-name-new {
  color: var(--c-terracotta);
}
.team-card-new:hover .team-title-new {
  color: var(--c-terracotta);
}

/* Stagger animation entry delays */
.team-grid-flat .team-card-new:nth-child(1) { transition-delay: 0s; }
.team-grid-flat .team-card-new:nth-child(2) { transition-delay: 0.06s; }
.team-grid-flat .team-card-new:nth-child(3) { transition-delay: 0.12s; }
.team-grid-flat .team-card-new:nth-child(4) { transition-delay: 0.18s; }
.team-grid-flat .team-card-new:nth-child(5) { transition-delay: 0.24s; }
.team-grid-flat .team-card-new:nth-child(6) { transition-delay: 0.30s; }
.team-grid-flat .team-card-new:nth-child(7) { transition-delay: 0.36s; }
.team-grid-flat .team-card-new:nth-child(8) { transition-delay: 0.42s; }

/* Responsive */
@media (max-width: 900px) {
  .team-section { padding: 4rem var(--section-h); }
  .team-grid-flat { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
  .team-photo { width: 130px; height: 164px; }
}
@media (max-width: 640px) {
  .team-section { padding: 4rem 1.5rem; }
  .team-grid-flat { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .team-photo { width: 120px; height: 150px; }
  .team-bio-new { text-align: left; -webkit-hyphens: manual; hyphens: manual; }
}
@media (max-width: 400px) {
  .team-grid-flat { grid-template-columns: 1fr; }
}

/* ── Bio Toggle ── */
.team-bio-short {
  font-size: 13px;
  line-height: 1.65;
  color: var(--c-graphite);
  margin-top: 1rem;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.team-bio-toggle {
  color: var(--c-terracotta);
  font-weight: var(--fw-bold);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.team-bio-toggle:hover {
  text-decoration: underline;
}
.team-bio-full {
  margin-top: 0.75rem;
}
.team-bio-full .team-bio-new {
  margin-top: 0;
}
@media (max-width: 640px) {
  .team-bio-short { text-align: left; -webkit-hyphens: manual; hyphens: manual; }
}

/* ── Bio Modal ── */
.bio-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9999;
  display: none; align-items: center; justify-content: center;
  padding: 2rem;
}
.bio-modal-overlay.is-open { display: flex; }
.bio-modal {
  background: var(--c-white); width: 100%; max-width: 560px;
  max-height: 85vh; overflow-y: auto; position: relative;
  padding: 2.5rem; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.bio-modal-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: var(--c-terracotta); border: none; font-size: 20px;
  color: var(--c-white); cursor: pointer; line-height: 1;
  width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; border-radius: 50;
  transition: background 0.2s;
}
.bio-modal-close:hover { background: #6d544c; }
.bio-modal-photo {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover; object-position: top center;
  border: 3px solid var(--c-terracotta); margin-bottom: 1.25rem;
}
.bio-modal-name {
  font-size: 20px; font-weight: var(--fw-bold); color: var(--c-black);
  margin-bottom: 0.2rem;
}
.bio-modal-title {
  font-size: 13px; color: var(--c-terracotta); font-weight: var(--fw-bold);
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.bio-modal-text {
  font-size: 14px; line-height: 1.75; color: var(--c-graphite);
  text-align: justify; -webkit-hyphens: auto; hyphens: auto;
}
@media (max-width: 640px) {
  .bio-modal { padding: 2rem 1.5rem; margin: 1rem; }
  .bio-modal-text { text-align: left; }
}
