*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  font-family: var(--font);
  background: #242423;
  color: #fff;
  min-height: 100vh;
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

.site-name {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

/* ── Projects grid ───────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem;
}

/* ── Individual project card ─────────────────────────────── */
.project {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
  text-decoration: none;
  background: #1a1a1a;
  
}

.project-bg {
  position: absolute;
  inset: 0;
  background: #222;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.project:hover .project-bg {
  transform: scale(1.04);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  transition: opacity 0.35s ease;
}

.project:hover .project-overlay {
  opacity: 0;
}

.project-name {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
  padding: 0.3em 0.65em;
  border-radius: 4px;
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}

.project:hover .project-name {
  background: #fff;
  color: #111;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.5rem 2rem 2.5rem;
}

.site-footer a {
  font-size: 0.9rem;
  color: #888;
  text-decoration: none;
}

.site-footer a:hover { color: #fff; }

/* ── Make site-name work as a link ───────────────────────── */
a.site-name {
  text-decoration: none;
  transition: color 0.2s;
}
a.site-name:hover { color: #aaa; }

/* ── Project detail: two-column layout ───────────────────── */
.project-detail {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}

.project-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.project-text h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.project-text h2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 3.5rem 0 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.project-text p {
  font-size: 1.2rem;
  line-height: 1.75;
  color: #ccc;
  margin-bottom: 1.25rem;
}

.see-project-btn {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  margin-top: 0.75rem;
  padding: 0.7em 1.6em;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 4px;
  transition: filter 0.2s;
}

.see-project-btn:hover { filter: brightness(0.85); }

/* ── Project detail: thumbnail column ────────────────────── */
.project-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thumb {
  aspect-ratio: 1;
  background: #1e1e1d;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
}

.thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-dim);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 700px) {
  .project-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .project-thumbs { flex-direction: row; }
  .thumb { flex: 1; }
}

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