body:has(.team-page) {
  background: #f8f6f2;
  color: #44403c;
}

body:has(.team-page) > .fixed.inset-0 {
  display: none;
}

.team-page {
  --tp-cream: #fdfbf7;
  --tp-sand: #f5f0e8;
  --tp-bg: #f8f6f2;
  --tp-espresso: #2b241d;
  --tp-muted: #78716c;
  --tp-gold: #c15a34;
  --tp-border: rgba(28, 25, 23, 0.08);
  --tp-radius: 16px;
  --tp-radius-lg: 24px;
  background: var(--tp-bg);
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

.team-page .tp-wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding-inline: 1.25rem;
}

@media (min-width: 1024px) {
  .team-page .tp-wrap {
    padding-inline: 2rem;
  }
}

.team-page .tp-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tp-muted);
  margin-bottom: 0.65rem;
}

.team-page .tp-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  background: linear-gradient(120deg, #2b241d 0%, #7d371f 55%, #c15a34 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.team-page .tp-title--light {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #fff;
}

.team-page .tp-lead {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--tp-muted);
  max-width: 38rem;
}

.team-page .tp-section {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .team-page .tp-section {
    padding: 5.5rem 0;
  }
}

.team-page .tp-hero {
  padding: 6.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(193, 90, 52, 0.09), transparent 58%),
    linear-gradient(180deg, #fdfbf7 0%, #faf7f2 35%, #f7f3eb 68%, #f8f6f2 100%);
  position: relative;
  overflow: hidden;
}

.team-page .tp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--tp-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--tp-border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.55;
}

.team-page .tp-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .team-page .tp-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.team-page .tp-hero__visual {
  border-radius: var(--tp-radius-lg);
  overflow: hidden;
  border: 1px solid var(--tp-border);
  box-shadow: 0 24px 64px rgba(28, 25, 23, 0.12);
  aspect-ratio: 4 / 3;
}

.team-page .tp-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-page .tp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.team-page .tp-hero__actions .tp-btn {
  width: auto;
}

.team-page .tp-trust-grid--4 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .team-page .tp-trust-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-page .tp-story-card__panel {
  padding: 1.5rem;
  border-radius: var(--tp-radius);
  background: linear-gradient(145deg, rgba(245, 240, 232, 0.95), rgba(253, 251, 247, 0.98));
  border: 1px solid rgba(193, 90, 52, 0.12);
}

.team-page .tp-story-card__quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tp-espresso);
  font-style: italic;
}

.team-page .tp-story-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(193, 90, 52, 0.12);
}

.team-page .tp-story-card__meta strong {
  display: block;
  font-size: 0.875rem;
  color: var(--tp-espresso);
}

.team-page .tp-story-card__meta span {
  display: block;
  font-size: 0.75rem;
  color: var(--tp-muted);
  margin-top: 0.15rem;
}

.team-page .tp-story-card__dot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #d97a50, #c15a34);
  box-shadow: 0 8px 20px rgba(193, 90, 52, 0.25);
  flex-shrink: 0;
}

.team-page .tp-agents {
  background: var(--tp-cream);
}

.team-page .tp-agent-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .team-page .tp-agent-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-page .tp-agent-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .team-page .tp-agent-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-page .tp-agent-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--tp-radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--tp-border);
  box-shadow: 0 10px 32px rgba(28, 25, 23, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  animation: tp-card-in 0.55s ease both;
  animation-delay: var(--tp-delay, 0ms);
}

@keyframes tp-card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.team-page .tp-agent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(28, 25, 23, 0.1);
}

.team-page .tp-agent-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--tp-sand);
}

.team-page .tp-agent-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.team-page .tp-agent-card:hover .tp-agent-card__media img {
  transform: scale(1.04);
}

.team-page .tp-agent-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43, 36, 29, 0.88) 0%, rgba(43, 36, 29, 0.2) 42%, transparent 100%);
}

.team-page .tp-agent-card__langs {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.team-page .tp-agent-card__langs span {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.team-page .tp-agent-card__identity {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.15rem;
}

.team-page .tp-agent-card__identity h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.team-page .tp-agent-card__identity p {
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8b79c;
}

.team-page .tp-agent-card__body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.team-page .tp-agent-card__expertise {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--tp-muted);
}

.team-page .tp-agent-card__stat {
  font-size: 0.75rem;
  color: var(--tp-muted);
}

.team-page .tp-agent-card__stat strong {
  color: var(--tp-gold);
  font-weight: 700;
}

.team-page .tp-agent-card__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.team-page .tp-empty {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2.5rem 1.75rem;
  text-align: center;
  border-radius: var(--tp-radius-lg);
  background: #fff;
  border: 1px dashed rgba(193, 90, 52, 0.22);
  box-shadow: 0 12px 36px rgba(28, 25, 23, 0.05);
}

.team-page .tp-empty__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tp-gold);
  background: rgba(193, 90, 52, 0.1);
  border: 1px solid rgba(193, 90, 52, 0.14);
}

.team-page .tp-empty h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.375rem;
  color: var(--tp-espresso);
  margin-bottom: 0.5rem;
}

.team-page .tp-empty p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--tp-muted);
}

.team-page .tp-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.team-page .tp-btn--wa {
  color: #fff;
  background: linear-gradient(135deg, #3ddc84 0%, #25d366 52%, #128c7e 100%);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.22);
}

.team-page .tp-btn--light {
  color: var(--tp-espresso);
  background: linear-gradient(135deg, #fff9f4 0%, #f5e6dc 42%, #e8b79c 100%);
  box-shadow: 0 10px 28px rgba(232, 183, 156, 0.28);
}

.team-page .tp-btn--soft {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--tp-espresso);
  background: linear-gradient(135deg, rgba(255, 249, 244, 0.98), rgba(245, 230, 220, 0.92));
  border: 1px solid rgba(193, 90, 52, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-page .tp-btn--soft:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(193, 90, 52, 0.12);
}

.team-page .tp-btn--icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tp-espresso);
  background: #fff;
  border: 1px solid var(--tp-border);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.team-page .tp-btn--icon:hover {
  transform: translateY(-1px);
  border-color: rgba(193, 90, 52, 0.3);
}

.team-page .tp-btn--icon-wa {
  color: #fff;
  background: #25d366;
  border-color: transparent;
}

.team-page .tp-btn--dark {
  color: var(--tp-espresso);
}

.team-page .tp-section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.team-page .tp-pillar-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .team-page .tp-pillar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .team-page .tp-pillar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-page .tp-pillar {
  padding: 1.5rem;
  border-radius: var(--tp-radius);
  background: #fff;
  border: 1px solid var(--tp-border);
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-page .tp-pillar:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.08);
}

.team-page .tp-pillar__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--tp-gold);
  background: rgba(193, 90, 52, 0.1);
  border: 1px solid rgba(193, 90, 52, 0.16);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
}

.team-page .tp-pillar h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--tp-espresso);
  margin-bottom: 0.45rem;
}

.team-page .tp-pillar p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--tp-muted);
}

.team-page .tp-trust {
  background: linear-gradient(90deg, rgba(245, 240, 232, 0.95), rgba(253, 251, 247, 0.98), rgba(245, 240, 232, 0.95));
  border-block: 1px solid rgba(193, 90, 52, 0.1);
}

.team-page .tp-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.team-page .tp-trust-stat {
  text-align: center;
  padding: 1.25rem 0.75rem;
  border-radius: var(--tp-radius);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(193, 90, 52, 0.1);
}

.team-page .tp-trust-stat__value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  background: linear-gradient(120deg, #2b241d 0%, #7d371f 55%, #c15a34 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.team-page .tp-trust-stat__label {
  margin-top: 0.35rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tp-muted);
}

.team-page .tp-story {
  background: var(--tp-cream);
}

.team-page .tp-story-card {
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem;
  border-radius: var(--tp-radius-lg);
  background: #fff;
  border: 1px solid var(--tp-border);
  box-shadow: 0 16px 48px rgba(28, 25, 23, 0.06);
}

@media (min-width: 768px) {
  .team-page .tp-story-card {
    grid-template-columns: 1fr 1fr;
    padding: 2.25rem;
    gap: 2rem;
    align-items: center;
  }
}

.team-page .tp-story-card p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--tp-muted);
}

.team-page .tp-story-card p + p {
  margin-top: 1rem;
}

.team-page .tp-lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.team-page .tp-lang-badge {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--tp-espresso);
  background: linear-gradient(135deg, rgba(245, 240, 232, 0.95), rgba(253, 251, 247, 0.98));
  border: 1px solid rgba(193, 90, 52, 0.14);
}

.team-page .tp-cta {
  padding: 4.5rem 0;
  background: var(--tp-bg);
}

.team-page .tp-cta__panel {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 2rem 1.5rem;
  border-radius: var(--tp-radius-lg);
}

.team-page .tp-cta__panel--light {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fffdfa 0%, #f7efe6 52%, #efe3d6 100%);
  border: 1px solid rgba(28, 25, 23, 0.07);
  box-shadow:
    0 24px 64px rgba(28, 25, 23, 0.1),
    0 2px 6px rgba(28, 25, 23, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.team-page .tp-cta__panel--light::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 140% at 100% 0%, rgba(232, 183, 156, 0.26) 0%, rgba(232, 183, 156, 0) 60%);
}

.team-page .tp-cta__copy,
.team-page .tp-cta__actions {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .team-page .tp-cta__panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 2.75rem;
  }
}

.team-page .tp-cta__panel--light .tp-eyebrow {
  color: rgba(28, 25, 23, 0.58);
}

.team-page .tp-cta__panel--light .tp-lead {
  color: rgba(28, 25, 23, 0.66);
  margin-top: 0.75rem;
  max-width: 32rem;
}

.team-page .tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.team-page .tp-btn--primary {
  color: var(--tp-espresso);
  background: linear-gradient(135deg, #fff9f4 0%, #f5e6dc 42%, #e8b79c 100%);
  box-shadow: 0 8px 22px rgba(232, 183, 156, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.team-page .tp-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(232, 183, 156, 0.4);
}

.team-page .tp-btn--phone {
  color: var(--tp-espresso);
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(184, 140, 110, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.team-page .tp-btn--phone:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(184, 140, 110, 0.62);
  box-shadow: 0 10px 24px rgba(28, 25, 23, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.team-page .tp-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

.team-page .tp-cta__actions .tp-btn {
  width: auto;
}

@media (max-width: 639px) {
  .team-page .tp-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .team-page .tp-cta__actions .tp-btn {
    width: 100%;
  }
}

/* Shared team block on about/contact pages */
.team-premium-block .tp-pillar-grid,
.team-premium-block .tp-trust-grid {
  display: grid;
  gap: 1rem;
}

.team-premium-block .tp-pillar-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .team-premium-block .tp-pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-premium-block .tp-pillar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-premium-block .tp-trust-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
}

.team-premium-block .tp-pillar,
.team-premium-block .tp-trust-stat {
  padding: 1.35rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(28, 25, 23, 0.08);
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.05);
}

.team-premium-block .tp-pillar__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  color: #c15a34;
  background: rgba(193, 90, 52, 0.1);
  border: 1px solid rgba(193, 90, 52, 0.16);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
}

.team-premium-block .tp-pillar h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: #2b241d;
  margin-bottom: 0.35rem;
}

.team-premium-block .tp-pillar p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #78716c;
}

.team-premium-block .tp-trust-stat {
  text-align: center;
}

.team-premium-block .tp-trust-stat__value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  background: linear-gradient(120deg, #2b241d 0%, #7d371f 55%, #c15a34 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.team-premium-block .tp-trust-stat__label {
  margin-top: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #78716c;
}
