/* Supplied team collage, edited to show road freight and warehousing only. */
body.team-page main .team-hero {
  background-image: linear-gradient(90deg, rgba(7, 17, 23, 0.72) 0%, rgba(7, 17, 23, 0.32) 48%, rgba(7, 17, 23, 0.08) 100%), url('../assets/optimized/rkv-team-banner-road.webp?v=20261113-compact-approved');
  background-position: center center !important;
  align-items: flex-end !important;
  padding-bottom: clamp(48px, 8vh, 84px) !important;
}

@media (max-width: 800px) {
  body.team-page main .team-hero {
    background-position: 50% 18% !important;
    background-image: linear-gradient(180deg, rgba(7, 17, 23, 0.25) 0%, rgba(7, 17, 23, 0.45) 50%, rgba(7, 17, 23, 0.88) 100%), url('../assets/optimized/rkv-team-banner-road-mobile.webp?v=20261113-compact-approved');
    align-items: flex-end !important;
    padding-bottom: clamp(36px, 6vh, 52px) !important;
  }
}

/* Reduced, subtle eyebrow effect on the team page only */
body.team-page .eyebrow {
  font-size: 11.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  opacity: 0.72 !important;
}

body.team-page .eyebrow-line {
  width: 20px !important;
  opacity: 0.55 !important;
}

body.team-page [data-hero-index]::after {
  font-size: 11.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  opacity: 0.72 !important;
  padding-left: 28px !important;
  background-size: 18px 1px !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35) !important;
}

/* The founder spotlight matches the footer background (--surface-footer). */
.team-page main > section[data-surface] .founder-spotlight-card {
  background: var(--surface-footer) !important;
  border-color: rgba(17, 18, 20, 0.14);
  box-shadow: none;
}

.team-page main > section[data-surface] .founder-badge-box {
  background: #fff5f6 !important;
  border-color: rgba(17, 18, 20, 0.12);
  box-shadow: none;
}

.team-page main > section[data-surface] .founder-content .founder-role {
  color: #7f101a;
  font-size: 13.5px;
}

.team-page main > section[data-surface] .founder-content p {
  color: #2d2527 !important;
}

/* Compact team directory: a group label beside its profiles. */
.team-page .team-group {
  display: grid;
  grid-template-columns: minmax(170px, 0.65fr) minmax(0, 2.35fr);
  gap: clamp(24px, 3.5vw, 50px);
  align-items: start;
  margin-top: 32px;
  padding: 28px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.team-page .team-tier-header {
  margin: 0;
  padding: 4px 0 0;
  border: 0;
}

.team-page .team-tier-header h3 {
  max-width: 240px;
  margin: 0;
  font: 500 clamp(25px, 2.5vw, 34px)/1.08 'Space Grotesk', sans-serif;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.team-page .team-tier-header p {
  max-width: 260px;
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

.team-page .leadership-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

.team-page .auditor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
}

.team-page .core-team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 22px;
  margin: 0;
}

.team-page .team-group .leader-card {
  position: relative;
  display: block;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 24px;
  border: 1px solid #e0e3e6;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.team-page .team-group .leader-card::before {
  content: '';
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: -1px;
  width: 3px;
  background: var(--brand-gradient);
  border-radius: 0 2px 2px 0;
}

.team-page .team-group .leader-card:hover {
  transform: none;
  border-color: #c4cbd0;
  box-shadow: 0 8px 22px rgba(20, 30, 40, 0.045);
}

.team-page .team-group .leader-mark {
  display: none;
}

.team-page .team-group .leader-card h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font: 600 clamp(21px, 2vw, 25px)/1.2 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

.team-page .team-group .leader-card span {
  display: inline-block;
  max-width: 100%;
  padding-bottom: 6px;
  border-bottom: 1px solid #e3e6e8;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

.team-page .team-group .leader-card p {
  max-width: 760px;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  font-size: 16px;
  line-height: 1.75;
}

.team-page .team-auditor .leader-card {
  padding: 22px 24px;
}

.team-page .core-team-grid .leader-card {
  padding: 19px 0;
  border: 0;
  border-bottom: 1px solid #e3e6e8;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.team-page .core-team-grid .leader-card::before {
  display: none;
}

.team-page .core-team-grid .leader-card h3 {
  margin-bottom: 7px;
  font-size: 19px;
  line-height: 1.25;
}

.team-page .core-team-grid .leader-card span {
  padding-bottom: 0;
  border: 0;
  font-size: 15px;
  font-weight: 500;
}

.team-page .core-team-grid .leader-card:hover {
  transform: none;
  background: transparent;
  border-bottom-color: #c8cfd4;
  box-shadow: none !important;
  cursor: default;
}

@media (max-width: 1100px) {
  .team-page .team-group {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 26px;
  }

  .team-page .core-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .team-page .team-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 28px;
    padding-top: 24px;
  }

  .team-page .team-tier-header h3,
  .team-page .team-tier-header p {
    max-width: none;
  }

  .team-page .team-tier-header p {
    margin-top: 7px;
  }
}

@media (max-width: 600px) {
  .team-page .leadership-grid,
  .team-page .core-team-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-page .team-group .leader-card {
    padding: 20px;
  }

  .team-page .core-team-grid .leader-card {
    padding: 16px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-page .team-group .leader-card {
    transition: none;
  }
}
