/* ─── PROJECT HERO ───────────────────────────────────────────── */
.project-hero {
  padding: calc(var(--nav-height) + 4rem) 2rem 3rem;
  background: var(--bg);
}

.project-hero__inner {
  max-width: 760px;
  margin: 0 auto;
}

.project-back {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.project-back:hover { color: var(--accent); }

.project-hero__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.project-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.project-hero__summary {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 58ch;
  margin-bottom: 2.5rem;
}

.project-hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-tint);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.project-meta-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.project-meta-value {
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* ─── COVER IMAGE ────────────────────────────────────────────── */
.project-cover {
  max-width: 830px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.project-cover img {
  width: 100%;
  object-fit: cover;
}

/* ─── BODY CONTENT ───────────────────────────────────────────── */
.project-body {
  padding: 3rem 2rem 5rem;
}

.project-body__inner {
  max-width: 760px;
  margin: 0 auto;
}

.project-body li{
	color:var(--text-secondary);
}

/* ─── SECTIONS ───────────────────────────────────────────────── */
.project-section {
  margin-bottom: 3rem;
}

.project-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  max-width: 68ch;
}

.project-section p:last-child { margin-bottom: 0; }

/* ─── HEADINGS ───────────────────────────────────────────────── */
.project-h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.project-h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  margin-top: 1.75rem;
}

/* ─── FIGURES ────────────────────────────────────────────────── */
.project-figure {
  margin: 2.5rem 0;
}

.project-figure img,
.project-video video,
.project-video iframe {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: block;
}

.project-figure figcaption {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.625rem;
  text-align: center;
}

.project-figure--full {
  margin-left: calc(-1 * ((1100px - 760px) / 2));
  margin-right: calc(-1 * ((1100px - 760px) / 2));
  max-width: 1100px;
}

.project-figures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2.5rem 0;
}

/* ─── PULL QUOTE ─────────────────────────────────────────────── */
.project-quote {
  border-left: 3px solid var(--accent);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
}

/* ─── BOTTOM NAV ─────────────────────────────────────────────── */
.project-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  border-top: 1px solid var(--border);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .project-figures-grid {
    grid-template-columns: 1fr;
  }

  .project-figure--full {
    margin-left: 0;
    margin-right: 0;
  }

  .project-nav-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ─── STATS BLOCK ────────────────────────────────────────────── */
.project-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  border: 1px solid rgba(95, 93, 152,, 0.2);
}

.project-stat {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.project-stat__number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
}

.project-stat__label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ─── SIDE NAV ───────────────────────────────────────────────── */
.project-sidenav {
  position: fixed;
  left: 2rem;
  top: calc(var(--nav-height) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 50;
}

.project-sidenav a {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  transition: color 0.2s;
  white-space: nowrap;
}

.project-sidenav a::before {
  content: '';
  display: block;
  min-width:20px;
  width: 20px;
  height: 2px;
  background: var(--text-muted);
  transition: width 0.2s, background 0.2s;
  flex-shrink: 0;
}

.project-sidenav a:hover,
.project-sidenav a.active {
  color: var(--accent);
  font-weight:400;
}

.project-sidenav a:hover::before,
.project-sidenav a.active::before {
  width: 32px;
  background: var(--accent);
}

@media (max-width: 1200px) {
  .project-sidenav { display: none; }
}

section[id] {
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.project-sidenav__top {
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  margin-bottom: 0.5rem;
}

.project-sidenav__top::before {
  display: none !important;
}