/* Project pages (one per project, linked from the home page).
   Layout: label and title, a hero, about two paragraphs, role and
   responsibilities, then the rest of the media with captions.
   Sits on the Work page background (html.fx-page in styles.css). */

.project {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 120px;
}

.project .label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.project h1 {
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: normal;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.project .dek {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.25;
  max-width: 22em;
  margin: 0 0 48px;
  text-wrap: pretty;
}

/* Media: images and video fill the column, with a small caption under them. */
.project figure { margin: 0 0 56px; }
.project figure img,
.project figure video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
}
.project figcaption {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 56em;
}
.project .embed { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: rgba(0, 0, 0, 0.2); }
.project .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.project figure.narrow { max-width: 640px; }
.project .dio-box { position: relative; aspect-ratio: 720 / 398; border-radius: 12px; overflow: hidden; background: #000; }
.project .dio-box.wide { aspect-ratio: 16 / 9; }
.project .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project .ph {
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 0 24px;
}

/* Text and role sit side by side on wide screens. */
.project .about {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 56px;
  margin: 0 0 72px;
}
.project .body p {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.5;
  margin: 0 0 1em;
  text-wrap: pretty;
}
.project .role h2 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.project .role h2 + p { font-size: 1.25rem; margin: 0 0 28px; }
.project .role p.resp { font-size: 1.05rem; line-height: 1.45; margin: 0; border-top: 1px solid var(--line); padding-top: 10px; }
.project .role ul { list-style: none; padding: 0; margin: 0; }
.project .role li {
  font-size: 1.05rem;
  line-height: 1.4;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.project .todo { opacity: 0.6; }

.project .next {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.project .next a { text-decoration: none; }

@media (max-width: 760px) {
  .project .about { grid-template-columns: 1fr; gap: 32px; }
  .project .pair { grid-template-columns: 1fr; }
}
