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

:root {
  --fg:   #111111;
  --mono: 'Courier Prime', 'Courier New', Courier, monospace;
}

html, body {
  background: #F0EEE9;
  color: var(--fg);
  font-family: var(--mono);
}


/* ── Nav ───────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 40px;
  z-index: 50;
}

.brand {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.brand:hover { opacity: 1; }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.nav-link:hover        { opacity: 1; }
.nav-link--active      { opacity: 1; }


/* ── Work grid ─────────────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 100px 48px 48px;
  min-height: 100vh;
}

.work-cell {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  aspect-ratio: 3 / 4;
}

.work-cell__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}

.work-cell:hover .work-cell__bg {
  transform: scale(1.04);
}

/* Dark overlay for label readability — keeps photo at original color */
.work-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  transition: background 0.7s ease;
  pointer-events: none;
}

.work-cell:hover::after {
  background: rgba(0, 0, 0, 0.18);
}

/* Label */
.work-cell__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Times New Roman', 'Georgia', serif;
  font-weight: 200;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.3s;
  z-index: 2;
}

.work-cell:hover .work-cell__label {
  opacity: 1;
}


/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  html, body { overflow: auto; }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 80px 24px 32px;
    gap: 12px;
  }

  nav { padding: 24px; }
}


/* ── Site credit ───────────────────────────────────────────── */
.site-credit {
  text-align: left;
  padding: 40px 20px 40px 40px;
  font-family: 'Times New Roman', 'Georgia', serif;
  font-weight: 200;
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--fg);
  opacity: 0.45;
}
.site-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ── Page transition overlay ───────────────────────────────── */
#page-transition {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
