.project-page { background: #0d0d0d; }
.project-header { background: linear-gradient(to bottom, rgba(0,0,0,.88), rgba(0,0,0,.15)); }
.project-intro {
  min-height: 82svh;
  padding: clamp(130px, 15vw, 220px) var(--pad) clamp(80px, 9vw, 130px);
  background:
    radial-gradient(circle at 80% 10%, rgba(185,123,79,.13), transparent 32%),
    linear-gradient(135deg, #171411, #0c0c0c 68%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.back-link {
  width: fit-content;
  margin-bottom: clamp(60px, 9vw, 130px);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .05em;
}
.project-kicker {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.project-intro h1 {
  max-width: 1200px;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(46px, 7vw, 108px);
  font-weight: 300;
  letter-spacing: -.055em;
  line-height: .98;
}
.project-summary {
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(280px, .7fr);
  gap: clamp(48px, 8vw, 120px);
  margin-top: clamp(60px, 8vw, 110px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 45px;
  margin: 0;
}
.project-facts div { display: grid; gap: 6px; }
.project-facts dt {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.project-facts dd { margin: 0; color: #e9e4dd; }
.project-description p {
  margin: 0 0 25px;
  color: #d0cbc4;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.65;
}
.project-description a {
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(185,123,79,.7);
  font-size: 12px;
  letter-spacing: .05em;
}
.project-media { padding: clamp(90px, 10vw, 150px) var(--pad); background: #111; }
.media-heading {
  display: grid;
  grid-template-columns: 65px 1fr auto;
  align-items: baseline;
  gap: 24px;
  margin: 0 0 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.media-heading:not(:first-child) { margin-top: clamp(90px, 11vw, 160px); }
.media-heading span,
.media-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.media-heading h2 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 300;
}
.video-frame { margin: 0; background: #050505; border: 1px solid var(--line); }
.video-frame video { display: block; width: 100%; max-height: 88svh; background: #000; }
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 22px);
}
.gallery-item { margin: 0; min-width: 0; }
.gallery-item:nth-child(5n+1) { grid-column: 1 / -1; }
.gallery-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0a0a0a;
  cursor: zoom-in;
  overflow: hidden;
}
.gallery-button img {
  display: block;
  width: 100%;
  height: clamp(310px, 38vw, 660px);
  object-fit: cover;
  transition: transform .55s ease, opacity .3s ease;
}
.gallery-item:nth-child(5n+1) img { height: clamp(420px, 62vw, 930px); }
.gallery-button:hover img { transform: scale(1.015); opacity: .93; }
.gallery-item figcaption {
  padding-top: 8px;
  color: #807a72;
  font-size: 10px;
  letter-spacing: .12em;
}
.project-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #171717;
  border-top: 1px solid var(--line);
}
.project-pagination a { min-height: 230px; padding: clamp(32px, 5vw, 70px); display: flex; flex-direction: column; justify-content: space-between; }
.project-pagination a + a { text-align: right; border-left: 1px solid var(--line); }
.project-pagination span { color: var(--muted); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.project-pagination strong { font-family: "Montserrat", sans-serif; font-size: clamp(20px, 2.5vw, 34px); font-weight: 300; }
.project-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 30px var(--pad);
  align-items: end;
  background: #090909;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 35px;
  border: 0;
  background: rgba(0,0,0,.96);
}
.lightbox::backdrop { background: rgba(0,0,0,.96); }
.lightbox img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.65);
  color: white;
  font-size: 28px;
  cursor: pointer;
}
@media (max-width: 800px) {
  .project-summary { grid-template-columns: 1fr; }
  .project-facts { grid-template-columns: 1fr 1fr; }
  .media-heading { grid-template-columns: 40px 1fr; }
  .media-heading p { grid-column: 2; }
  .project-gallery { grid-template-columns: 1fr; }
  .gallery-item:nth-child(5n+1) { grid-column: auto; }
  .gallery-button img,
  .gallery-item:nth-child(5n+1) img { height: auto; max-height: 78svh; object-fit: contain; }
  .project-pagination { grid-template-columns: 1fr; }
  .project-pagination a { min-height: 170px; }
  .project-pagination a + a { border-left: 0; border-top: 1px solid var(--line); }
  .project-footer { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .project-intro h1 { font-size: clamp(40px, 13vw, 64px); }
  .project-facts { grid-template-columns: 1fr; }
  .lightbox { padding: 12px; }
}
