.project-detail {
  display: grid;
  grid-template-columns: minmax(13rem, 0.32fr) minmax(0, 1.45fr);
  gap: clamp(4rem, 6.7vw, 6rem);
  width: 100%;
  margin-inline: auto;
  padding: clamp(6rem, 8vw, 7rem) clamp(3rem, 3.75vw, 4rem) 5rem clamp(3rem, 7.5vw, 6.75rem);
}

.project-sidebar { min-width: 0; padding-top: clamp(9rem, 13vw, 12rem); }
.project-sidebar__inner { position: sticky; top: clamp(8.5rem, 20vh, 12.5rem); }
.project-sidebar__nav { display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; }
.project-sidebar__link {
  color: rgba(255, 255, 255, 0.58);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  transition: color 180ms ease, font-weight 180ms ease;
}
.project-sidebar__link:hover,
.project-sidebar__link:focus-visible { color: rgba(255, 255, 255, 0.82); }
.project-sidebar__link.is-active { color: #fff; font-weight: 700; }
.project-sidebar__back {
  display: inline-block;
  margin-top: 3.25rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-underline-offset: 0.28em;
}
.project-sidebar__back:hover,
.project-sidebar__back:focus-visible { text-decoration: underline; }

.project-content { min-width: 0; }
.project-detail .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.project-intro { margin-bottom: clamp(2rem, 3vw, 2.75rem); }
.project-intro h1 {
  margin: -0.14em 0 1rem;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
}
.project-intro p {
  max-width: 66rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  line-height: 1.25;
}

.project-section { scroll-margin-top: 7rem; }
.project-section + .project-section { margin-top: clamp(5.5rem, 9vw, 9rem); }
.project-section h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.65rem, 2.25vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
}
.project-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.65rem;
  background: #d4d4d2;
}
.project-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.project-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(3rem, 9vw, 8rem);
  margin: 0;
}
.project-info-grid div { min-width: 0; }
.project-info-grid dt { margin: 0 0 1rem; font-size: 1rem; line-height: 1.3; }
.project-info-grid dd { margin: 0; color: rgba(255, 255, 255, 0.58); font-size: 1rem; line-height: 1.45; }

.project-involvement {
  max-width: 54rem;
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
}
.project-involvement h3,
.project-credit h3 {
  margin: 0 0 0.9rem;
  color: rgba(255, 255, 255, 0.62);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
}
.project-involvement__lead {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 1.75vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
}
.project-involvement__description {
  max-width: 50rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 1rem;
  line-height: 1.45;
}

.project-considerations { display: grid; gap: 3rem; }
.project-consideration h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
}
.project-consideration p {
  max-width: 54rem;
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.55;
}
.project-consideration strong { color: #fff; font-weight: 600; }
.project-credits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(3rem, 9vw, 8rem);
}
.project-credit p {
  margin: 0;
  font-size: clamp(1.2rem, 1.75vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
}
.project-section--empty { min-height: clamp(18rem, 42vh, 30rem); }
.project-section--credits { min-height: clamp(12rem, 28vh, 20rem); }

@media (max-width: 860px) {
  .project-detail { grid-template-columns: 1fr; gap: 3rem; padding: 7rem 3rem 5rem; }
  .project-sidebar { padding-top: 0; }
  .project-sidebar__inner { position: static; }
  .project-sidebar__nav { flex-flow: row wrap; gap: 1rem 1.5rem; }
  .project-sidebar__back { margin-top: 1.75rem; }
}

@media (max-width: 720px) {
  .project-detail { padding: 7rem 1.5rem 3rem; }
  .project-intro h1 { font-size: clamp(2.75rem, 13vw, 4rem); }
  .project-intro p { font-size: 0.9rem; line-height: 1.4; }
  .project-sidebar__link,
  .project-sidebar__back { font-size: 0.9rem; }
  .project-info-grid { grid-template-columns: 1fr; gap: 2rem; }
  .project-credits { grid-template-columns: 1fr; gap: 2.5rem; }
  .project-section + .project-section { margin-top: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .project-sidebar__link { transition: none; }
}
