/* Team page — Team map (03) */

@keyframes cw-teams-map-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cw-teams-map {
  background: #141210;
  color: #f3efe7;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  padding: clamp(64px, 8vw, 112px) clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}

.cw-teams-map__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
}

.cw-teams-map__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.cw-teams-map__head-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
}

.cw-teams-map__eyebrow {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #d4f53c;
}

.cw-teams-map__title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 4.6vw, 62px);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.cw-teams-map__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: #cfc4f6;
}

.cw-teams-map__aside {
  margin: 0;
  max-width: 380px;
  font-size: 15px;
  line-height: 1.65;
  color: #a39c90;
}

.cw-teams-map__layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 16px;
}

.cw-teams-map__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cw-teams-map__pick {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(243, 239, 231, 0.14);
  background: transparent;
  color: #f3efe7;
  border-radius: 18px;
  padding: 14px 18px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cw-teams-map__pick:hover,
.cw-teams-map__pick:focus-visible {
  border-color: rgba(243, 239, 231, 0.35);
}

.cw-teams-map__pick.is-active {
  background: #f3efe7;
  color: #141210;
  border-color: #f3efe7;
}

.cw-teams-map__pick-no {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.cw-teams-map__pick-name {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.cw-teams-map__pick-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.cw-teams-map__panel {
  background: #1c1916;
  border: 1px solid rgba(243, 239, 231, 0.1);
  border-radius: 28px;
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.cw-teams-map__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: clamp(12px, 2vw, 24px) 0;
}

.cw-teams-map__dot {
  width: clamp(36px, 4.4vw, 52px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.25, 1.3), background 0.3s ease, border-color 0.3s ease;
}

.cw-teams-map__detail {
  border-top: 1px solid rgba(243, 239, 231, 0.1);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cw-teams-map__detail.is-animating {
  animation: cw-teams-map-in 0.4s both;
}

.cw-teams-map__detail-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.cw-teams-map__detail-name {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 2.8vw, 36px);
  letter-spacing: -0.03em;
}

.cw-teams-map__detail-roles {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: #8e877c;
}

.cw-teams-map__detail-desc {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: #cfc9be;
}

.cw-teams-map__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cw-teams-map__tag {
  border: 1px solid rgba(243, 239, 231, 0.18);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}

.cw-teams-map__careers {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: #d4f53c;
  border-bottom: 1px solid rgba(212, 245, 60, 0.4);
  padding-bottom: 2px;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cw-teams-map__careers:hover,
.cw-teams-map__careers:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .cw-teams-map__detail.is-animating {
    animation: none;
  }

  .cw-teams-map__dot {
    transition: none;
  }
}
