/* ═══════════════════════════════════════════════
   projects.css — 4-col vertical cards, Google Labs style
   ═══════════════════════════════════════════════ */

.projects-wrap {
  padding: var(--section-pad);
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px; /* more breathing room */
  align-items: stretch; /* ALL cards same height */
}

/* ── Card shell ── */
.proj-card {
  border-radius: 28px;
  border: 2px solid rgba(26, 25, 24, 0.06);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background: white;
  min-height: 580px; /* enforce minimum height */
  transition:
    transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.32s;
}
.proj-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.14);
}

/* ── Art zone ── */
.proj-art {
  width: 100%;
  height: 280px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.proj-art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}
.proj-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  object-fit: contain;
  z-index: 100;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.15));
}

/* ── Arrow ── */
.proj-card-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px solid rgba(26, 25, 24, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  transition:
    background 0.2s,
    transform 0.2s;
  z-index: 3;
}
.proj-card:hover .proj-card-arrow {
  background: var(--dark);
  color: var(--white);
  transform: rotate(45deg);
}

/* ── Body ── */
.proj-body {
  padding: 28px 30px 34px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: white;
}

.proj-type {
  font-family: var(--font-mono);
  font-size: 0.72rem; /* bigger */
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 10px;
}
.proj-name {
  font-family: var(--font-display);
  font-size: 1.75rem; /* bigger */
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.05;
}
.proj-desc {
  font-size: 0.95rem; /* bigger */
  line-height: 1.68;
  opacity: 0.7;
  margin-bottom: 22px;
  flex: 1;
}

/* ── Tags ── */
.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.proj-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem; /* bigger */
  padding: 6px 14px;
  background: rgba(26, 25, 24, 0.08);
  border-radius: 100px;
  letter-spacing: 0.04em;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .proj-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .projects-wrap {
    padding: 56px 24px;
  }
  .proj-grid {
    grid-template-columns: 1fr;
  }
}

.proj-story {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: var(--terra);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.55;
  height: 64px;
  display: flex;
  align-items: center;
}
