/* =========================================================
   Projects list page and each project's own page.
   Shared pieces live in style.css.
   ========================================================= */

/* ---------- Projects list ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 56px 0 96px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
/* only real links react to hover */
a.project-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.project-card .shot {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1b2029;
  border-bottom: 1px solid var(--line);
}
.project-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }

.project-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-card h2 { margin: 0; font-size: 24px; }
.project-card .tagline { margin: 0; color: var(--muted); }
.more { margin-top: auto; padding-top: 6px; color: var(--accent); font-weight: 600; font-size: 15px; }

.tags { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 3px;
}

/* The "more on the way" card: dashed, like the future rotation on Career */
.project-card.upcoming { background: transparent; border-style: dashed; justify-content: center; }

/* ---------- A single project's page ---------- */
.back { display: inline-block; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 14px; }
.back:hover { color: var(--accent); }

.links { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  background: var(--accent);
  color: #0b0c0f;
  border: 1px solid var(--accent);
}
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); }

.detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  padding-top: 56px;
  align-items: start;
}
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shots figure { margin: 0; }
.shots img { width: 100%; display: block; border-radius: 6px; border: 1px solid var(--line); }
.shots figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }

.story .label { margin: 0 0 8px; }
.story p { color: var(--muted); margin: 0 0 14px; }
.story p + .label { margin-top: 28px; }

/* Outcome tiles: big number + small label, same style as Career */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 48px 0 96px;
}
.tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 4px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tile .big { font-size: 36px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.tile .small { color: var(--muted); font-size: 14px; }

/* ---------- Phones ---------- */
@media (max-width: 800px) {
  .project-grid { grid-template-columns: 1fr; padding: 32px 0 64px; gap: 16px; }
  .detail { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .tiles { grid-template-columns: 1fr; padding: 32px 0 64px; }
}
