.project-main {
  padding-top: 80px;
  padding-bottom: 20px;
  max-width: 820px;
  margin: 0 auto;
}

/* --- Back link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
  padding: 18px 28px 0;
  display: block;
  transition: color 0.2s;
}

.back-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Hero --- */
.hero {
  position: relative;
  width: 100%;
  margin-top: 16px;
}

.hero-media {
  width: 100%;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  background: #181420;
}

/* video embed */
.hero-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 */
}

.hero-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.hero-web-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 */
}

.hero-web-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  pointer-events: none;
}

/* Adjust hero title position */
.hero-title-wrap {
  position: static;
  padding: 10px 20px 0px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hero-title {
  font-family: 'Comfortaa', sans-serif;
  font-size: 33px;
  /* Increased by 3px */
  font-weight: 300;
  color: #f0eeff;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-top: 16px;
}

.hero-year {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.32);
  flex-shrink: 0;
  padding-bottom: 6px;
}

/* --- Meta strip --- */
.meta-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}

.meta-cell {
  padding: 16px 28px;
  border-right: 0.5px solid rgba(255, 255, 255, 0.08);
}

.meta-cell:last-child {
  border-right: none;
}

.meta-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  margin-bottom: 7px;
}

.meta-value {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.role-value {
  font-style: italic;
}

/* --- Tags row --- */
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 20px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
}

/* --- Project body --- */
.project-body {
  padding-bottom: 24px;
}

.section-text {
  padding: 36px 28px;
  max-width: 800px;
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.22);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-text p {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  line-height: 2.1;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.03em;
}

.section-img {
  padding: 0 28px;
  margin-bottom: 8px;
}

.img-full {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  background: #181520;
  object-fit: cover;
}

.img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.img-pair img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  background: #141820;
}

.soft-divider {
  height: 0.5px;
  background: rgba(255, 255, 255, 0.06);
  margin: 32px 28px 0;
}

/* --- Collaborators --- */
.collaborators {
  padding: 28px 28px 8px;
}

.collab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.collab-pill {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 5px 13px;
}

/* --- External link --- */
.ext-link-wrap {
  padding: 20px 28px 0;
}

.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.ext-link:hover {
  color: #9d8fd0;
  border-color: #9d8fd0;
}

/* --- Next project --- */
.next-project {
  margin: 48px 28px 0;
  padding-top: 28px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}

.next-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
}

.next-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.22);
  text-transform: uppercase;
}

.next-title {
  font-family: 'Comfortaa', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.next-link:hover .next-title {
  color: rgba(255, 255, 255, 0.9);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-img {
    height: 260px;
  }

  .hero-title {
    font-size: 22px;
  }

  .meta-strip {
    grid-template-columns: 1fr;
  }

  .meta-cell {
    border-right: none;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  }

  .meta-cell:last-child {
    border-bottom: none;
  }

  .img-pair {
    grid-template-columns: 1fr;
  }

  .section-text {
    padding: 24px 18px;
  }

  .section-img {
    padding: 0 18px;
  }

  .hero-web-wrap {
    aspect-ratio: 3/4;
  }
}