.projects-container {
  margin-bottom: 2.5rem;
}

.projects-header {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.5rem;
}

.projects-title {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 700;
}

.project-item {
  display: flex;
  width: 100%;
  align-items: center;
  border-top: 1px solid var(--whiteish);
  border-bottom: 1px solid var(--whiteish);
  padding: 2rem 0.5rem;
  text-decoration: none;
  color: var(--whiteish);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.project-item:hover {
  background-color: oklch(from var(--whiteish) l c h / 0.05);
}

.project-item:last-child {
  border-bottom: 1px solid var(--whiteish);
}

.project-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
}

.project-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: transform 0.5s ease;
}

.project-item:hover .project-title {
  transform: translateX(0.5rem);
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.5s ease;
}

.project-item:hover .project-meta {
  transform: translateX(0.5rem);
}

.project-roles {
  font-size: 0.75rem;
  color: var(--greyish);
}

.project-year {
  font-size: 0.75rem;
  color: var(--greyish);
}

.project-arrow {
  display: block;
  width: 1rem;
  height: 1rem;
  stroke: var(--whiteish);
  stroke-width: 2;
}

.project-arrow.external {
  transform: rotate(-45deg);
}

@media (min-width: 640px) {
  .project-item {
    justify-content: space-between;
    gap: 1.25rem;
    padding: 5rem 2.5rem;
    font-size: 1rem;
  }

  .project-content {
    flex-direction: row;
  }

  .project-title {
    margin-bottom: 0;
  }

  .project-item:hover .project-title {
    transform: translateX(-1rem);
  }

  .project-meta {
    justify-content: center;
    gap: 2.5rem;
  }

  .project-item:hover .project-meta {
    transform: translateX(1rem);
  }

  .project-roles {
    font-size: 1rem;
    color: var(--whiteish);
  }

  .project-year {
    font-size: 1rem;
    color: var(--whiteish);
  }

  .project-arrow {
    display: none;
  }
}

.project-detail {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-header {
  border-bottom: 1px solid var(--whiteish);
  padding-bottom: 1.25rem;
}

.project-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-external-link {
  margin-left: 0.5rem;
  display: inline-flex;
  transition: transform 0.3s ease;
}

.project-external-link:hover {
  transform: translate(0.125rem, -0.125rem);
}

.project-external-arrow {
  width: 1.5rem;
  height: 1.5rem;
  transform: translateY(0.25rem) rotate(-45deg);
  stroke: var(--whiteish);
  stroke-width: 2;
}

.project-subtitle {
  font-size: 0.875rem;
  color: var(--greyish);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-description {
  line-height: 1.6;
  font-size: 0.875rem;
}

.project-description p {
  margin-bottom: 1.5rem;
}

.project-internal-title {
  font-size: 1.5rem;
  line-height: 2rem;
  margin-bottom: 0.2rem;
}

.inline-link {
  color: var(--greyish);
  text-decoration: underline;
  transition: all 0.3s ease;
}

.inline-link:hover {
  color: var(--whiteish);
}

@media (min-width: 640px) {
  .project-title {
    font-size: 1rem;
  }

  .project-external-arrow {
    width: 2rem;
    height: 2rem;
  }

  .project-description {
    font-size: 1rem;
  }

  .project-internal-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}

.project-links {
  margin-top: 2rem;
}

.project-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--whiteish);
  color: var(--blackish);
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.project-link:hover {
  background-color: oklch(from var(--whiteish) 0.9 c h);
}