/* Team page — How we work (04) */

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

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

.cw-teams-work__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}

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

.cw-teams-work__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-work__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
}

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

.cw-teams-work__card {
  border: 1px solid rgba(20, 18, 16, 0.2);
  background: transparent;
  color: #141210;
  border-radius: 26px;
  padding: 26px;
  min-height: 260px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font: inherit;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cw-teams-work__card:hover,
.cw-teams-work__card:focus-visible {
  border-color: rgba(20, 18, 16, 0.45);
}

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

.cw-teams-work__card-meta {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

.cw-teams-work__card-title {
  margin-top: auto;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 2.3vw, 30px);
  letter-spacing: -0.03em;
  line-height: 1;
}

.cw-teams-work__card-desc {
  font-size: 14.5px;
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.cw-teams-work__card.is-active .cw-teams-work__card-desc {
  max-height: 140px;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .cw-teams-work__card,
  .cw-teams-work__card-desc {
    transition: none;
  }

  .cw-teams-work__card:not(.is-active) .cw-teams-work__card-desc {
    display: none;
  }

  .cw-teams-work__card.is-active .cw-teams-work__card-desc {
    max-height: none;
    opacity: 0.85;
  }
}
