/* ══════════════════════════════════════
   PROJECT DETAIL PAGES — project.css
   Extends landing.css (tokens, nav, contact footer)
══════════════════════════════════════ */

/* ── Hero ── */
.proj-hero {
  position: relative;
  min-height: 78vh;
  background: var(--ink);
  color: var(--beige);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px var(--gutter) 0;
}

.proj-back {
  position: absolute;
  top: 104px;
  left: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, 0.5);
  transition: color 0.2s;
  z-index: 21;
}

.proj-back::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
}

.proj-back:hover { color: var(--beige); }

.proj-hero-inner {
  padding-bottom: 44px;
}

.proj-eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.proj-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--amber);
}

.proj-title {
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.proj-sub {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 400;
  color: var(--amber);
  margin-top: 16px;
}

.proj-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 64px);
  border-top: 1px solid var(--line-light);
  padding: 28px 0 36px;
  margin-top: 40px;
}

.proj-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}

.proj-meta-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, 0.35);
}

.proj-meta-value {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(242, 237, 228, 0.8);
}

/* ── Hero image ── */
.proj-hero-image {
  padding: clamp(40px, 6vw, 72px) var(--gutter);
}

.proj-hero-img-wrap {
  border-radius: 24px;
  overflow: hidden;
  background: #171310;
}

.proj-hero-img-wrap img {
  width: 100%;
  height: clamp(320px, 52vw, 680px);
  object-fit: cover;
  display: block;
}

/* ── Chapter blocks ── */
.proj-block {
  padding: clamp(64px, 8vw, 120px) var(--gutter);
}

.proj-block--dark {
  background: var(--ink);
  color: var(--beige);
}

.chapter-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: clamp(20px, 3vw, 48px);
}

.chapter-num {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(20, 13, 7, 0.35);
  padding-top: 14px;
}

.proj-block--dark .chapter-num {
  color: rgba(242, 237, 228, 0.35);
}

.chapter-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 780px;
}

.chapter-body h2 {
  font-size: clamp(1.875rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.chapter-body .lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.5;
}

.chapter-body p:not(.lead) {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(20, 13, 7, 0.6);
}

.proj-block--dark .chapter-body p:not(.lead) {
  color: rgba(242, 237, 228, 0.55);
}

/* ── Galleries ── */
.proj-gallery {
  padding: 0 var(--gutter) clamp(64px, 8vw, 120px);
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}

.proj-gallery--trio {
  grid-template-columns: repeat(3, 1fr);
}

.proj-gallery--duo {
  grid-template-columns: 3fr 2fr;
}

.proj-gallery img {
  width: 100%;
  height: clamp(220px, 26vw, 380px);
  object-fit: cover;
  border-radius: 18px;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.proj-gallery a:hover img,
.proj-gallery img:hover { transform: scale(1.03); }

/* ── Next project ── */
.proj-next {
  padding: clamp(56px, 8vw, 100px) var(--gutter);
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.proj-next-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(20, 13, 7, 0.4);
}

.proj-next-name {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 24px;
  align-self: flex-start;
  transition: opacity 0.2s, color 0.2s;
}

.proj-next-name:hover { color: #8a7a4a; }

.proj-next-name .arrow {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--amber);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .proj-meta-row { gap: 24px 40px; }
  .proj-gallery--trio,
  .proj-gallery--duo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .proj-hero { padding-top: 130px; min-height: auto; }
  .proj-hero-inner { padding-bottom: 32px; }
  .proj-back { top: 78px; }
  .chapter-row { grid-template-columns: 1fr; gap: 12px; }
  .chapter-num { padding-top: 0; }
}
