.projects-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 18px 42px;
}

.projects-page .page-header {
  align-items: flex-end;
  margin-bottom: 14px;
}

.projects-page .page-header h1 {
  margin-bottom: 4px;
}

.projects-page .page-header p {
  max-width: 620px;
}

.projects-tabs-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-height: 39px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.projects-tabs {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  height: 39px;
}

.project-tab {
  position: relative;
  height: 39px;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 11px;
}

.project-tab.active {
  font-weight: 700;
}

.project-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #111;
}

.projects-add-link {
  margin-bottom: 7px;
}

.projects-filter-shell {
  margin-bottom: 13px;
}

.projects-filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.55fr) repeat(5, minmax(108px, .72fr)) minmax(145px, .9fr);
  gap: 8px;
  align-items: center;
}

.project-search-field,
.project-filter-select {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: var(--shadow);
}

.project-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}

.project-search-field svg {
  width: 15px;
  height: 15px;
  color: #555;
}

.project-search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 10px;
}

.project-filter-select {
  width: 100%;
  padding: 0 28px 0 10px;
  outline: 0;
  font-size: 10px;
  cursor: pointer;
}

.projects-results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 25px;
  margin: 2px 0 8px;
  color: var(--muted);
  font-size: 9px;
}

.projects-clear {
  border: 0;
  background: transparent;
  color: #075fab;
  padding: 0;
  font-size: 9px;
  font-weight: 700;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.project-card {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow);
}

.project-card-media {
  position: relative;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #d7d2c8;
}

.project-card-media::before,
.project-card-media::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(55,55,55,.18);
}

.project-card-media::before {
  left: 10%;
  right: 14%;
  top: 17%;
  bottom: 15%;
  transform: skewX(-9deg);
}

.project-card-media::after {
  width: 38%;
  height: 42%;
  right: 9%;
  bottom: 13%;
  border-top-width: 2px;
  border-left-width: 2px;
}

.project-tone-2 { background: #d9cbbd; }
.project-tone-3 { background: #c7d0ca; }
.project-tone-4 { background: #cbc8c1; }
.project-tone-5 { background: #d5d0c5; }
.project-tone-6 { background: #c6cfce; }

.project-status-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(23,23,23,.78);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
}

.project-media-label {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 2;
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(255,255,255,.82);
  color: #555;
  font-size: 7px;
  letter-spacing: .03em;
}

.project-card-copy {
  padding: 10px 11px 8px;
}

.project-card-copy h2 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.project-card-meta {
  margin: 0 0 3px;
  color: #2f2f2f;
  font-size: 9px;
}

.project-card-area {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.project-card-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-top: 1px solid #eeeae2;
}

.project-author {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.project-author-avatar {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eeeae3;
  border: 1px solid rgba(0,0,0,.05);
  font-size: 9px;
  font-weight: 800;
}

.project-author strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}

.project-team-stack {
  display: flex;
  align-items: center;
  padding-left: 5px;
}

.project-team-dot {
  width: 22px;
  height: 22px;
  margin-left: -5px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #c7c0b7;
  font-size: 6px;
  font-weight: 800;
}

.project-team-dot:nth-child(2) { background: #b8c5a8; }
.project-team-dot:nth-child(3) { background: #abb3ae; }

.project-card-stats,
.project-card-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 7px 11px;
  border-top: 1px solid #eeeae2;
}

.project-card-stats span,
.project-card-actions a,
.project-card-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
}

.project-card-stats svg,
.project-card-actions svg {
  width: 14px;
  height: 14px;
}

.project-card-actions {
  gap: 13px;
}

.project-card-actions a,
.project-card-actions button {
  border: 0;
  background: transparent;
  padding: 0;
  font-weight: 700;
}

.project-card-actions button.active {
  color: #075fab;
}

.project-card-actions .project-more-button {
  margin-left: auto;
}

.projects-empty {
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  border: 1px dashed var(--line-dark);
  border-radius: 9px;
  background: rgba(255,255,255,.55);
}

.projects-empty h2 {
  margin-bottom: 5px;
  font-size: 15px;
}

.projects-empty p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 9px;
}

@media (max-width: 1260px) {
  .projects-filter-row {
    grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(105px, .8fr));
  }

  .projects-filter-row > :nth-child(5),
  .projects-filter-row > :nth-child(6),
  .projects-filter-row > :nth-child(7) {
    margin-top: 0;
  }
}
