:root {
  --green: #09531b;
  --dark: #0a0a0a;
  --off-white: #f4f4f4;
  --warm-gray: #e8e4de;
  --text: #1a1a1a;
}

.team-page {
  background: var(--off-white);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
}

.team-page .hero-top-bar {
  position: relative;
  background: #050505;
}

.team-hero {
  background: var(--off-white);
  padding: clamp(100px, 14vw, 180px) clamp(24px, 6%, 100px)
    clamp(50px, 6vw, 80px);
  position: relative;
}

.team-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.team-hero-label {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 20px;
  opacity: 0;
  transform: translateY(20px);
}

.team-hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(44px, 7.5vw, 96px);
  font-weight: 700;
  line-height: 0.95;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  opacity: 0;
  transform: translateY(36px);
}

.team-hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}

.team-hero-desc {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
  color: #3d3d3d;
  max-width: 560px;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
}

.team-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6%, 100px) clamp(48px, 6vw, 80px);
}

.team-photo-zoom {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.team-photo-zoom-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  will-change: transform;
}

.team-photo-zoom-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.1) 32%,
    transparent 55%
  );
  pointer-events: none;
}

.team-photo-zoom-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(32px, 6vw, 72px);
  margin: 0;
  padding: 0 24px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(32px, 6vw, 72px);
  line-height: 1;
  color: #fff;
  text-align: center;
  opacity: 0;
  will-change: transform, opacity;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.team-card {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  aspect-ratio: 3 / 4;
  cursor: default;
}

.team-card-photo-wrap {
  position: absolute;
  inset: 0;
}

.team-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  will-change: opacity;
  transition: opacity 0.22s linear;
}

.team-card-photo--hover {
  opacity: 0;
}

.team-card:hover .team-card-photo--base {
  opacity: 0;
}

.team-card:hover .team-card-photo--hover {
  opacity: 1;
}

.team-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    transparent 60%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 3vw, 36px);
}

.team-card-name {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.2;
}

.team-card-role {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(10px, 0.82vw, 13px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.03em;
  margin: 0 0 8px;
}

.team-card-email {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 600;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  transition:
    opacity 0.3s ease,
    text-decoration-color 0.3s ease;
}

.team-card-email:hover {
  opacity: 0.85;
  text-decoration-color: rgba(255, 255, 255, 0.9);
}

.team-card--cta {
  aspect-ratio: 3 / 4;
  background: var(--warm-gray);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 3.5vw, 48px);
  cursor: default;
}

.team-cta-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.team-cta-text {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
}

.team-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.team-cta-link:hover {
  color: var(--green);
}

.team-cta-link i {
  font-size: 11px;
  transition: transform 0.3s ease;
}

.team-cta-link:hover i {
  transform: translateX(4px);
}

.team-chauffeure {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.team-chauffeure-inner {
  max-width: 52rem;
  margin: 0;
}

.team-chauffeure-copy {
  padding-left: clamp(1rem, 2vw, 1.75rem);
  border-left: 3px solid var(--green);
}

.team-chauffeure-kicker {
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 14px;
}

.team-chauffeure-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.team-chauffeure-lead {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 400;
  line-height: 1.7;
  color: #5c5c5c;
  margin: 0;
  max-width: 40em;
}

@media (min-width: 900px) {
  .team-chauffeure-inner {
    display: flex;
    align-items: stretch;
    gap: clamp(24px, 3.5vw, 48px);
  }

  .team-chauffeure-inner::before {
    content: "";
    flex: 0 0 3px;
    width: 3px;
    align-self: stretch;
    background: var(--green);
    border-radius: 2px;
  }

  .team-chauffeure-copy {
    flex: 1;
    min-width: 0;
    padding-left: 0;
    border-left: none;
  }
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-card {
    aspect-ratio: 4 / 5;
  }
  .team-card--cta {
    aspect-ratio: auto;
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-photo-zoom-img {
    transform: none;
  }

  .team-photo-zoom-text {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 600px) {
  .team-photo-zoom {
    height: auto;
    background: #050505;
  }

  .team-photo-zoom-img {
    position: static;
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: none;
  }

  .team-photo-zoom-text {
    position: absolute;
  }
}
