/* ==========================================================================
   Projects page
   Each project is a full block (heading, description, optional video +
   optional live-demo link, "See on GitHub" button) — not a small grid card
   like certs. Deliberately reuses the same page-shell rhythm as certs.css
   (hero/border/wrap) so the two pages feel like one site.
   ========================================================================== */

.projects-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
}

.projects-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 14px 0 12px;
}

.projects-hero p {
  font-family: var(--font-body);
  color: var(--text-muted);
  max-width: 62ch;
  font-size: 16px;
}

.projects-hero-actions {
  margin-top: 28px;
}

/* --- Project list --- */

.project-list {
  padding: 24px 0 64px;
}

.project-block {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.project-block:last-of-type {
  border-bottom: none;
}

.project-name {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--text);
}

.project-desc {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 68ch;
  margin-top: 14px;
  line-height: 1.7;
}

.project-media {
  margin-top: 28px;
  max-width: 720px;
}

.project-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.project-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-live-link {
  margin-top: 16px;
}

.project-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.project-empty {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

/* --- Loading / skeleton state --- */

.project-skeleton {
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}

.project-skeleton .skel-line {
  background: linear-gradient(90deg, var(--bg-elevated) 0%, var(--bg-elevated-2) 50%, var(--bg-elevated) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: var(--radius);
}

.project-skeleton .skel-title {
  height: 28px;
  width: 40%;
  margin-bottom: 14px;
}

.project-skeleton .skel-desc {
  height: 14px;
  width: 80%;
  margin-bottom: 8px;
}

.project-skeleton .skel-desc:last-child {
  width: 60%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .project-skeleton .skel-line { animation: none; }
}

/* --- Project image --- */

.project-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  display: block;
  margin-bottom: 16px;
}
