:root {
  --nav-h: 68px;
  --max-w: 860px;
  --pad:   clamp(1.25rem, 5vw, 3rem);
}

/* Nav uses full 1200px width while content uses 860px */
.nav .container {
  max-width: 1200px;
  padding: 0 clamp(1rem, 5vw, 5rem);
  width: 100%;
}

.state {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  padding-top: var(--nav-h);
}
.state__inner { max-width: 400px; }
.state__title {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.state__text { color: var(--grey); line-height: 1.7; }
.state__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 0.1rem;
}

.project-page {
  padding-top: calc(var(--nav-h) + 3.5rem);
  padding-bottom: 6rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.project-page.visible {
  opacity: 1;
  transform: none;
}

/* Back link */
.project-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  transition: color var(--t);
}
.project-back:hover { color: var(--dark); }
.project-back svg { width: 14px; height: 14px; }

/* Header */
.project-header { margin-bottom: 3rem; }
.project-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1rem;
}
.project-name {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 1.25rem;
}
.project-tagline {
  font-size: 1.1rem;
  color: var(--grey);
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

/* Meta row */
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--butter);
  color: var(--dark);
  padding: 0.35rem 0.9rem;
  border-radius: 3rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.meta-chip .meta-label {
  color: var(--grey);
  font-weight: 500;
}

/* Cover image */
.project-cover {
  margin-bottom: 3.5rem;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #ede8e0;
}
.project-cover img {
  width: 100%;
  height: auto;
}

.project-content { margin-bottom: 3.5rem; }
.project-content h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--dark);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.project-content h2:first-child { margin-top: 0; }
.project-content h3 {
  font-size: 1.2rem;
  color: var(--dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.project-content p {
  font-size: 1rem;
  color: var(--grey);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.project-content p:last-child { margin-bottom: 0; }
.project-content strong { color: var(--dark); font-weight: 600; }
.project-content ul,
.project-content ol { margin: 0.75rem 0 1.25rem 1.5rem; }
.project-content ul { list-style: disc; }
.project-content ol { list-style: decimal; }
.project-content li {
  font-size: 1rem;
  color: var(--grey);
  line-height: 1.8;
  margin-bottom: 0.35rem;
}
.project-content img {
  max-width: 100%;
  border-radius: 0.75rem;
}

/* Long / scroll image */
.project-long-image {
  margin-bottom: 3.5rem;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #ede8e0;
}
.project-long-image img { width: 100%; height: auto; }

/* Live link */
.project-live { margin-top: 2rem; }
.live-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--yellow);
  color: var(--dark);
  padding: 0.875rem 2rem;
  border-radius: 3rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}
.live-btn:hover {
  background: var(--butter);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,210,61,0.35);
}
.live-btn svg { width: 16px; height: 16px; }

/* Divider */
.divider {
  border: none;
  border-top: 1px solid rgba(26,26,26,0.1);
  margin: 4rem 0;
}

.next-project { text-align: center; }
.next-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1rem;
}
.next-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--t);
}
.next-link:hover { gap: 0.85rem; }
.next-name {
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  color: var(--dark);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.next-arrow {
  font-size: 1.5rem;
  color: var(--grey);
  transition: transform var(--t);
}
.next-link:hover .next-arrow { transform: translateX(6px); }

.project-cta { background: var(--dark); color: var(--cream); padding: clamp(80px, 10vw, 120px) 0; }
.project-cta .contact__body { text-align: center; max-width: 600px; margin: 0 auto; }
.contact__headline {
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  color: var(--cream);
  line-height: 1.0;
  margin-bottom: 20px;
}
.contact__headline em {
  font-size: clamp(2rem, 4vw, 4rem);
  font-style: normal;
  color: var(--yellow);
}
.contact__sub { font-size: 1rem; color: rgba(251,244,235,0.5); line-height: 1.75; margin-bottom: 36px; }
.contact__email {
  display: inline-block;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 2px solid rgba(251,244,235,0.25);
  padding-bottom: 4px;
  transition: color var(--t), border-color var(--t);
  margin-bottom: 36px;
}
.contact__email:hover { color: var(--yellow); border-color: var(--yellow); }
.contact__socials { display: flex; justify-content: center; gap: 32px; }
.social-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  text-decoration: none;
  color: rgba(251,244,235,0.4);
  transition: color var(--t);
}
.social-link:hover { color: var(--cream); }
.social-link svg { width: 17px; height: 17px; flex-shrink: 0; }

@media (max-width: 768px) {
  .project-page { padding-top: calc(var(--nav-h) + 2.5rem); }
  .project-meta { gap: 0.4rem; }
}
