#real-team-directory-page {
  --team-navy: #253e51;
  --team-navy-deep: #172d3d;
  --team-green: #72b11a;
  --team-ink: #293b49;
  --team-muted: #667785;
  background: #f6f9fa;
  color: var(--team-ink);
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 300;
}

.real-team-hero {
  padding: 80px 24px 88px;
  background:
    radial-gradient(circle at 82% 18%, rgba(114, 177, 26, 0.14), transparent 25%),
    linear-gradient(135deg, var(--team-navy-deep), var(--team-navy));
  color: #fff;
  text-align: center;
}

.real-team-hero-inner {
  width: min(900px, 100%);
  margin: 0 auto;
}

.real-team-eyebrow,
.real-team-section-heading > p {
  margin: 0 0 14px;
  color: var(--team-green);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.real-team-hero h1,
.real-team-section-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.05;
}

.real-team-hero h1 {
  font-size: clamp(48px, 7vw, 76px);
}

.real-team-intro {
  max-width: 700px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
}

.real-team-content {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0 96px;
}

.real-team-section + .real-team-section {
  margin-top: 92px;
}

.real-team-section-heading {
  margin-bottom: 36px;
  text-align: center;
}

.real-team-section-heading h2 {
  color: var(--team-navy);
  font-size: clamp(40px, 5vw, 58px);
}

.real-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 30px;
}

.real-team-grid-advisory {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.real-team-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce4e8;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(30, 54, 70, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.real-team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(30, 54, 70, 0.14);
}

.real-team-photo-frame {
  aspect-ratio: 4 / 4.7;
  overflow: hidden;
  background: #e7ecef;
}

.real-team-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 350ms ease;
}

.real-team-card:hover .real-team-photo {
  transform: scale(1.015);
}

.real-team-card-copy {
  min-height: 112px;
  padding: 25px 20px 23px;
  text-align: center;
}

.real-team-card-copy h3 {
  margin: 0;
  color: var(--team-navy);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-transform: uppercase;
}

.real-team-card-copy p {
  margin: 9px 0 0;
  color: var(--team-muted);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.055em;
  line-height: 1.55;
  text-transform: uppercase;
}

.real-team-advisory {
  padding-top: 74px;
  border-top: 1px solid #d9e2e7;
}

@media (max-width: 980px) {
  .real-team-grid,
  .real-team-grid-advisory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .real-team-hero {
    padding: 58px 20px 64px;
  }

  .real-team-intro {
    font-size: 14px;
  }

  .real-team-content {
    width: min(100% - 32px, 460px);
    padding: 54px 0 70px;
  }

  .real-team-grid,
  .real-team-grid-advisory {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .real-team-section + .real-team-section {
    margin-top: 68px;
  }

  .real-team-advisory {
    padding-top: 54px;
  }
}

/* ---- Flip cards: bio on the back (mirrors the live projades.com/team behaviour) ---- */
.real-team-card-flip {
  position: relative;
  perspective: 1400px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  outline: none;
}

.real-team-card-flip:hover {
  transform: none;
  box-shadow: none;
}

.real-team-flip {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 600ms ease;
}

.real-team-card-flip:hover .real-team-flip,
.real-team-card-flip:focus-visible .real-team-flip,
.real-team-card-flip.is-flipped .real-team-flip {
  transform: rotateY(180deg);
}

.real-team-face {
  overflow: hidden;
  border: 1px solid #dce4e8;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(30, 54, 70, 0.09);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.real-team-face-back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 24px;
  transform: rotateY(180deg);
}

.real-team-face-back p {
  margin: 0;
  overflow-y: auto;
  max-height: 100%;
  color: var(--team-muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  text-align: center;
}

.real-team-card-flip:focus-visible {
  border-radius: 15px;
  box-shadow: 0 0 0 3px rgba(114, 177, 26, 0.55);
}

@media (max-width: 620px) {
  .real-team-face-back {
    padding: 20px 18px;
  }

  .real-team-face-back p {
    font-size: 13px;
    line-height: 1.6;
  }
}
