/* Compact Selected Work — equal scan rows, no oversized featured card. */
.ajhive-site .portfolio.section { padding-block: 48px; }
.ajhive-site .portfolio .section-heading { gap: 24px; }
.ajhive-site .portfolio .section-heading h2 { font-size: clamp(26px, 3.4vw, 40px); margin-top: 8px; }
.ajhive-site .portfolio-heading { padding-bottom: 14px; }
.ajhive-site .project-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.ajhive-site .project-card,
.ajhive-site .project-card:first-child {
  display: grid;
  grid-column: auto;
  grid-template-columns: 148px minmax(0, 1fr);
  grid-template-rows: none;
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.ajhive-site .project-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(6, 35, 71, 0.1); }
.ajhive-site .project-art,
.ajhive-site .project-art.has-photo,
.ajhive-site .project-art.has-photo img,
.ajhive-site .project-card:first-child .project-art,
.ajhive-site .project-card:first-child .project-art.has-photo,
.ajhive-site .project-card:first-child .project-art.has-photo img {
  height: 112px;
  min-height: 112px;
  padding: 0;
  border-radius: 12px;
  box-shadow: none;
}
.ajhive-site .art-brand { top: 10px; left: 10px; font-size: 9px; }
.ajhive-site .art-code { font-size: 42px; right: 6px; bottom: -6px; }
.ajhive-site .art-metrics,
.ajhive-site .art-chart { display: none; }
.ajhive-site .project-info,
.ajhive-site .project-card:first-child .project-info {
  min-width: 0;
  max-width: none;
  padding: 2px 4px 2px 0;
}
.ajhive-site .project-meta { padding-bottom: 6px; font-size: 11px; }
.ajhive-site .project-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ajhive-site .project-info h3,
.ajhive-site .project-card:first-child .project-info h3 {
  margin: 8px 0 4px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.ajhive-site .project-info > p {
  max-width: none;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.ajhive-site .project-info ul { margin: 8px 0 0; gap: 5px; }
.ajhive-site .project-info li { padding: 4px 8px; font-size: 10px; }
.ajhive-site .project-info li:nth-child(n+4) { display: none; }

@media (max-width: 900px) {
  .ajhive-site .project-list { grid-template-columns: 1fr; }
  .ajhive-site .project-card,
  .ajhive-site .project-card:first-child {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px;
  }
  .ajhive-site .project-art,
  .ajhive-site .project-art.has-photo,
  .ajhive-site .project-art.has-photo img,
  .ajhive-site .project-card:first-child .project-art,
  .ajhive-site .project-card:first-child .project-art.has-photo,
  .ajhive-site .project-card:first-child .project-art.has-photo img {
    height: 96px;
    min-height: 96px;
  }
}

@media (max-width: 767px) {
  .ajhive-site .portfolio.section { padding-block: 2rem; }
  .ajhive-site .project-list { gap: 8px; margin-top: 1rem; overflow: visible; }
  .ajhive-site .project-card,
  .ajhive-site .project-card:first-child {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    padding: 8px;
  }
  .ajhive-site .project-card:hover { transform: none; }
  .ajhive-site .project-art,
  .ajhive-site .project-art.has-photo,
  .ajhive-site .project-art.has-photo img,
  .ajhive-site .project-card:first-child .project-art,
  .ajhive-site .project-card:first-child .project-art.has-photo,
  .ajhive-site .project-card:first-child .project-art.has-photo img {
    height: 80px;
    min-height: 80px;
  }
  .ajhive-site .art-code { display: none; }
  .ajhive-site .project-info h3,
  .ajhive-site .project-card:first-child .project-info h3 { font-size: 0.95rem; margin: 4px 0; }
  .ajhive-site .project-info > p { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .ajhive-site .project-card:hover { transform: none; }
}
