/* =========================================
   PROJECTS PAGE — UPDATED STYLES (Thumbs on top)
   ========================================= */

/* ---------- Page Header ---------- */

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

.projects-header .eyebrow {
  margin-bottom: 0.25rem;
}

.projects-header h1 {
  margin-top: 0.25rem;
  margin-bottom: 0.4rem;
  font-size: 1.9rem;
  line-height: 1.18;
  font-weight: 600;
  max-width: 46ch;
}

.projects-header .subtitle {
  max-width: none;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* ---------- Projects Grid ---------- */

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

@media (max-width: 800px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ---------- Project Card Shell ---------- */

.project-card {
  background: var(--surface, var(--bg-alt));
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}

/* -----------------------------------------
   THUMB ON TOP — vertical card layout
   ----------------------------------------- */

.project-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* ---------- Thumbnail ---------- */

.project-thumb {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent !important;
  border-radius: 10px;
  -webkit-user-drag: none;
  user-select: none;
}

/* ---------- Meta / Title / Summary ---------- */

.project-header {
  display: flex;
  flex-direction: column;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.project-tag-pill {
  font-size: 0.76rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 500;
}

.project-meta-item {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* override global spacing for card titles */
.case-main .project-title {
  margin-top: 0.3rem;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.project-summary {
  margin: 0.15rem 0 0.6rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-muted);
  max-width: 65ch;
}

/* ---------- Stats ---------- */

.project-stats {
  display: grid;
  gap: 0.6rem;
}

.project-stat dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}

.project-stat dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ---------- Footer Link ---------- */

.project-footer {
  margin-top: 0.25rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-subtle);
}

.project-link {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent);
}

/* Hover – match about.css subtle card lift */
.project-card {
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}


.project-link span {
  margin-left: 0.2rem;
}

/* ---------- Mobile Tweaks ---------- */

@media (max-width: 600px) {
  .projects-header h1 {
    font-size: 1.65rem;
    line-height: 1.22;
    max-width: 100%;
  }
}
