.project-split {
  display: flex;
  margin: calc(var(--padding) * -1);
}

/* ── Images column (left, 2/3) ── */
.project-images-col {
  flex: 0 0 67%;
}

.project-image {
  background: var(--color-black);
  overflow: hidden;
}

.project-image a {
  display: block;
}

.project-image img {
  width: 100%;
  display: block;
  opacity: .92;
  transition: opacity .3s ease;
}

.project-image:hover img { opacity: 1; }

.project-image--full img { object-fit: contain; }

/* ── Info panel (right, 1/3, fixed) ── */
.project-info {
  flex: 0 0 33%;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  overflow-y: auto;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  border-left: 1px solid var(--color-light);
  scrollbar-width: none;
}
.project-info::-webkit-scrollbar { display: none; }

.project-info-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
  color: var(--color-grey);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-label {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-grey);
  margin-bottom: .5rem;
}

.project-title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: .4rem;
  letter-spacing: -.02em;
}

.project-section-label {
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-grey);
  margin-bottom: .75rem;
}

.project-divider {
  border: none;
  border-top: 1px solid var(--color-light);
  margin: 2rem 0;
  width: 100%;
  height: auto;
  background: none;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.project-tags li a {
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--color-light);
  padding: .3rem .7rem;
  display: inline-block;
  transition: border-color .2s, color .2s;
}
.project-tags li a:hover {
  border-color: var(--color-black);
}

.project-info-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-light);
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-grey);
}

@media screen and (max-width: 60rem) {
  .project-split {
    flex-direction: column;
  }
  .project-images-col {
    width: 100%;
    order: 1;
  }
  .project-info {
    flex: none;
    position: static;
    align-self: auto;
    height: auto;
    border-left: none;
    border-bottom: 1px solid var(--color-light);
    order: 0;
  }
}

/* ── In-page TOC nav (overview-nav used inside sidebar) ── */
.project-info .overview-nav {
  position: static;
  width: 100%;
  height: auto;
  z-index: auto;
  background: none;
  border-right: none;
  border-left: 1px solid #d0d0d0;
  align-items: flex-start;
}

.project-split--text .project-info-nav {
  margin-bottom: .75rem;
}

/* ── Text layout variant ── */
.project-split--text .project-text-col {
  flex: 0 0 67%;
  padding: 3rem;
  overflow-y: auto;
}

.project-text-body {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 40rem;
}

.project-text-images {
  margin-top: 3rem;
  border-top: 1px solid var(--color-light);
  padding-top: 3rem;
}

.project-text-images .project-image {
  margin-bottom: 1px;
}

@media screen and (max-width: 60rem) {
  .project-split--text {
    flex-direction: column;
  }
  .project-split--text .project-text-col {
    padding: 0;
    order: 1;
  }
}
