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

:root {
  --bg:   #ffffff;
  --ink:  #1a1a1a;
  --mute: #aaaaaa;
  --rule: #ebebeb;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Nav ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 48px;
  max-width: 1240px;
  margin: 0 auto;
}

.logo {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.nav-back {
  font-size: 12px;
  font-weight: 300;
  color: var(--mute);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.nav-back:hover { color: var(--ink); }

/* ── Hero ── */
.project-hero {
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
}

.project-hero img,
.project-hero video {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  display: block;
}

/* ── Meta + text ── */
.project-body {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 48px 80px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  align-items: start;
}

.project-meta-block h1 {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin-bottom: 32px;
}

.project-details {
  display: grid;
  gap: 12px;
}

.project-details dt {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 2px;
}

.project-details dd {
  font-size: 13px;
  font-weight: 300;
}

.project-text p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink);
  max-width: 540px;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

/* ── Images ── */
.project-images {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 48px 120px;
  max-width: 1240px;
  margin: 0 auto;
}

/* Two side by side, natural ratio — used in JJ Salong, Nacka Aula */
.project-images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.project-images-grid img,
.project-images-grid video {
  width: 100%;
  height: auto;
  display: block;
}

/* Full width, natural ratio */
.img-full img,
.img-natural img {
  width: 100%;
  height: auto;
  display: block;
}

/* Two side by side, NO crop — images keep natural ratio */
.img-two-natural {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.img-two-natural img {
  width: 50%;
  height: auto;
  display: block;
}

/* Two side by side, same height, NO crop (contain) */
.img-two-contain {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.img-two-contain img {
  width: 50%;
  height: 520px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  display: block;
}

/* 2×2 grid, same size, no crop */
.img-four {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.img-four img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  display: block;
}

/* Glaze grid + tower side by side */
.img-glaze-tower {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 6px;
}

.img-glaze-tower .img-two-square {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.img-glaze-tower .img-two-square img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.img-glaze-tower > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Wide + narrow side by side, natural ratio */
.img-side-small {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.img-side-small img:first-child {
  width: 65%;
  height: auto;
  display: block;
}

.img-side-small img:last-child {
  width: 35%;
  height: auto;
  display: block;
}

/* Three side by side, square crop */
.img-three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.img-three img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* Two side by side, square crop */
.img-two-square {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.img-two-square img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* Half-width image, left-aligned */
.img-half {
  width: 50%;
}

.img-half img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Footer ── */
.project-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 48px;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 300;
  color: var(--mute);
}

.project-footer a:hover { color: var(--ink); }

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 20px 24px; }

  .project-body {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 24px 60px;
  }

  .project-images { padding: 0 24px 80px; }

  .img-two-natural { flex-direction: column; }
  .img-two-natural img { width: 100%; }
  .img-two-square { grid-template-columns: 1fr; }
  .project-images-grid { grid-template-columns: 1fr; }

  .project-footer { padding: 24px 24px; }
}
