.sidebar-intro {
  margin-bottom: 72px;
}

.portfolio-heading {
  align-items: center;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  display: flex;
  margin-bottom: 18px;
  padding-bottom: 14px;
}

.portfolio-label {
  color: #757575;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  align-items: center;
  border: 1px solid rgb(255 255 255 / 14%);
  color: inherit;
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 68px;
  padding: 10px;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.project-card:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
}

.project-mark {
  align-items: center;
  aspect-ratio: 1;
  background: #fff;
  color: #000;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: -0.04em;
  text-align: center;
}

.project-logo {
  display: block;
  height: 76%;
  object-fit: contain;
  width: 76%;
}

.project-logo[src$="autoscience.png"] {
  filter: brightness(0);
}

.project-name {
  font-size: 13px;
  line-height: 1.15;
}

@media (min-width: 640px) {
  .portfolio-grid {
    gap: 10px;
  }

  .project-card {
    gap: 14px;
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 76px;
    padding: 14px;
  }

  .project-mark {
    font-size: 12px;
  }

  .project-name {
    font-size: 15px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .project-card {
    transition: none;
  }

  .project-card:hover {
    transform: none;
  }
}
