/* ---------- Projects page ---------- */
.projects-hero {
  padding: 40px 0 56px;
}

.projects-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 18px;
  margin-bottom: 16px;
}

.projects-lead {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 54ch;
}

/* Filter bar */
.filter-bar {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
  position: sticky;
  top: 72px;
  z-index: 10;
}

.filter-inner {
  display: flex;
  gap: 8px;
  padding-block: 14px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Grid */
.projects-grid-section {
  padding: 56px 0 100px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.proj-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.proj-card .work-link {
  margin-top: auto;
  padding-top: 16px;
}

.proj-card .work-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.proj-card:hover {
  transform: translateY(-4px);
  border-color: #d6dcf0;
}

.proj-card.hidden {
  display: none;
}

.proj-thumb {
  aspect-ratio: 16 / 10;
  background: var(--accent-soft);
  overflow: hidden;
}

.proj-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proj-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-band);
}

.proj-thumb-empty span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.proj-body {
  padding: 26px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.proj-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.proj-desc {
  font-size: 0.97rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* proj-tech global styles moved to styles.css */

.no-results {
  text-align: center;
  padding: 80px 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
