.projects-page-main {
  min-height: calc(100vh - 180px);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.projects-intro {
  display: grid;
  max-width: 820px;
  gap: .85rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.projects-intro h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: .88;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.projects-intro h1 span {
  color: var(--accent);
}

.projects-lead {
  max-width: 55ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

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

.project-preview {
  position: relative;
  display: grid;
  min-width: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: #0d0f10;
}

.project-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-preview-sovereigncast img {
  width: min(46%, 230px);
  height: auto;
  object-fit: contain;
}

.project-preview::after {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 2.8rem;
  height: .45rem;
  background: var(--accent);
  content: "";
  transform: rotate(-3deg);
}

.project-content {
  display: grid;
  min-width: 0;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
}

.project-status,
.project-version {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .06em;
  line-height: 1.15;
  text-transform: uppercase;
}

.project-status::before {
  width: .52rem;
  height: .52rem;
  margin-right: .42rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.project-status-ready {
  background: #183e22;
  color: #bce9c4;
}

.project-status-prototype {
  background: #3f2b09;
  color: #ffd788;
}

.project-version {
  border: 1px solid var(--line);
  color: var(--muted);
}

.project-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: .95;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.project-description {
  max-width: 55ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-self: end;
  padding-top: .4rem;
}

.project-actions .button {
  min-height: 46px;
}

@media (max-width: 850px) {
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .projects-intro h1 {
    max-width: 11ch;
  }
}

@media (max-width: 480px) {
  .projects-page-main {
    padding-block: 2.5rem 4rem;
  }

  .projects-intro h1 {
    font-size: clamp(3rem, 15vw, 4rem);
  }

  .project-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .project-actions .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
