.projects {
  color: var(--white);
  background: var(--ink);
}

.projects .section-number,
.projects .heading-note,
.project-meta {
  color: rgba(255, 255, 255, 0.5);
}

.projects-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.projects-heading .section-number {
  margin: 0 0 24px;
}

.heading-note {
  margin: 0 0 7px;
  font-size: 14px;
  line-height: 1.6;
}

.project-list {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.project-card {
  position: relative;
  display: grid;
  min-height: 390px;
  padding: 52px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  grid-template-columns: 0.35fr 1.5fr 0.2fr;
  gap: 35px;
  transition: padding 250ms ease;
}

.project-card::before {
  position: absolute;
  inset: 0 -40px;
  content: "";
  background: rgba(255, 255, 255, 0.035);
  opacity: 0;
  transition: opacity 250ms ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-index {
  position: relative;
  z-index: 1;
  padding-top: 7px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}

.project-main {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.project-meta {
  margin: 0 0 21px;
}

.project-main h3 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(32px, 4vw, 57px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.project-main > p:not(.project-meta) {
  max-width: 690px;
  margin: 27px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 16px;
}

.project-tags {
  margin-top: 31px;
}

.project-tags li {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
}

.project-link {
  position: relative;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  align-self: start;
  justify-self: end;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 21px;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.project-card:hover .project-link {
  transform: rotate(8deg);
  color: var(--ink);
  background: var(--accent-light);
}

.project-card-accent .project-main h3 {
  color: #baff6b;
}

@media (max-width: 980px) {
  .project-card {
    grid-template-columns: 0.2fr 1fr 0.12fr;
  }
}

@media (max-width: 760px) {
  .projects-heading {
    display: block;
  }

  .heading-note {
    margin-top: 25px;
  }

  .project-card {
    min-height: 0;
    padding: 40px 0 44px;
    grid-template-columns: 35px 1fr;
    gap: 15px;
  }

  .project-link {
    position: absolute;
    right: 0;
    bottom: 42px;
    width: 48px;
    height: 48px;
  }

  .project-main h3 {
    padding-right: 8px;
    font-size: 34px;
  }

  .project-main > p:not(.project-meta) {
    font-size: 15px;
  }

  .project-tags {
    padding-right: 52px;
  }
}

@media (max-width: 420px) {
  .project-card {
    display: block;
  }

  .project-index {
    margin-bottom: 18px;
  }

  .project-link {
    bottom: 43px;
  }
}
