/* ==========================================================================
   Project Template
   ========================================================================== */

.project {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.project-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--padding-x);
}

.project-hero__title {
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.project-hero__subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.project-hero--image .project-hero__subtitle,
.project-hero--video .project-hero__subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.project-hero--plain {
  background-color: var(--bg-color);
}

.project-hero--annotations {
  background-color: var(--bg-color);
}

.project-hero__annotations {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.annotation {
  position: absolute;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.annotation--text {
  opacity: 0.6;
}

.annotation--graphic img {
  max-width: 120px;
  height: auto;
}

.project-hero--image {
  background-color: var(--card-color);
}

.project-hero--image .project-hero__title {
  color: var(--white);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.project-hero__background {
  position: absolute;
  inset: -15%;
  z-index: 0;
  will-change: transform;
}

.project-hero__background img,
.project-hero__background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero--image .project-hero__background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.project-hero--video {
  background-color: var(--text-primary);
}

.project-hero--video .project-hero__title {
  color: var(--white);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.project-hero--video .project-hero__background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.project-content {
  padding: 80px var(--padding-x);
  max-width: var(--max-width);
  margin: 0 auto;
}

.project-body {
  max-width: 800px;
}

.project-body h2 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 20px;
  margin-top: 48px;
  letter-spacing: -0.02em;
}

.project-body h2:first-child {
  margin-top: 0;
}

.project-body p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .project-hero {
    min-height: 60vh;
  }

  .project-body h2 {
    font-size: 24px;
  }
}
