.main-nav a[aria-current="page"] {
  color: #fff;
}

.main-nav a[aria-current="page"]::after {
  width: 100%;
}

.projects-main {
  min-height: calc(100vh - 117px);
  padding-top: 74px;
}

.projects-intro {
  position: relative;
  overflow: hidden;
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 20%, rgba(48, 213, 255, 0.16), transparent 32%),
    radial-gradient(circle at 20% 100%, rgba(155, 140, 255, 0.12), transparent 36%),
    linear-gradient(180deg, #07070a, #0b0d14);
}

.projects-intro::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent 49.9%, rgba(255, 255, 255, 0.04) 50%, transparent 50.1%);
  background-size: 86px 100%;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}

.projects-intro .wrap {
  position: relative;
  z-index: 1;
}

.projects-eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.projects-intro h1 {
  display: none;
}

.projects-lead {
  max-width: 1040px;
  margin: 0;
  color: rgba(216, 219, 230, 0.88);
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.8;
}

.projects-list {
  padding: 88px 0 112px;
}

.projects-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 36px;
}

.projects-section-head h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.12;
}

.projects-section-head > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  text-align: right;
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--panel-strong), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, transform 180ms ease;
}

.project-card:hover {
  border-color: rgba(48, 213, 255, 0.42);
  transform: translateY(-4px);
}

.project-preview {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #06101d;
}

.project-preview::after {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(3, 8, 15, 0.72));
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.project-card:hover .project-preview img {
  transform: scale(1.025);
}

.project-index {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 1;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.project-card-body {
  padding: 28px 30px 30px;
}

.project-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.project-title-row p {
  margin: 0 0 5px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-title-row h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
}

.project-status {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid rgba(66, 211, 155, 0.42);
  border-radius: 999px;
  color: #bfffe4;
  background: rgba(66, 211, 155, 0.1);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.project-status:hover {
  color: #fff;
  border-color: rgba(66, 211, 155, 0.78);
  background: rgba(66, 211, 155, 0.18);
  transform: translateY(-1px);
}

.project-status:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.project-description {
  margin: 20px 0 0;
  color: var(--muted);
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.project-features li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--soft-ink);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: #fff;
  font-weight: 900;
}

.project-link span {
  color: var(--cyan);
  font-size: 20px;
  transition: transform 160ms ease;
}

.project-link:hover span,
.project-link:focus-visible span {
  transform: translateX(4px);
}

@media (max-width: 860px) {
  .projects-main {
    padding-top: 68px;
  }

  .projects-intro {
    padding: 68px 0 60px;
  }

  .projects-section-head {
    align-items: start;
    flex-direction: column;
  }

  .projects-section-head > p {
    text-align: left;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .projects-lead {
    font-size: 16px;
    line-height: 1.75;
  }

  .projects-list {
    padding: 64px 0 82px;
  }

  .project-card-body {
    padding: 24px 22px 26px;
  }

  .project-title-row h3 {
    font-size: 24px;
  }
}
