/* Case-study lookbook: equal-ratio spreads, composed portraits, chapter rhythm. */

.project-intro {
  align-items: start;
  padding-bottom: clamp(36px, 5vw, 88px);
}
.project-intro > .eyebrow {
  grid-column: 1 / -1;
  color: var(--muted);
  margin-bottom: clamp(12px, 1.4vw, 24px);
}
.project-intro h1 {
  font-size: clamp(34px, 4.4vw, 76px);
  line-height: 1.05;
  letter-spacing: -.045em;
  max-width: none;
}
.project-intro .project-description {
  font-size: clamp(16px, 1.28vw, 22px);
  line-height: 1.45;
}

.project-page .module-grid {
  align-items: start;
  row-gap: clamp(36px, 4.8vw, 88px);
}

.project-page .module-image {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.project-page .module-image img {
  width: 100%;
  height: auto;
  display: block;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.project-page .module-image.full-bleed img {
  background: color-mix(in srgb, var(--ink) 8%, var(--paper));
}

.plate-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: clamp(10px, .9vw, 16px);
  padding-top: clamp(8px, .7vw, 12px);
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  font-size: clamp(11px, .8vw, 13px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}
.plate-caption .plate-index {
  flex: none;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}

/* Matching-ratio pairs: images share a row, captions share a baseline. */
.project-page .module-supergrid.spread-pair > .module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--gap);
  row-gap: 0;
  align-items: start;
}
.project-page .module-supergrid.spread-pair > .module-grid > .module-image {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: 1 / span 2;
  grid-column: auto;
}
.project-page .module-supergrid.spread-pair > .module-grid > .module-image img {
  grid-row: 1;
  align-self: start;
}
.project-page .module-supergrid.spread-pair > .module-grid > .module-image .plate-caption {
  grid-row: 2;
  align-self: start;
}

/* Portrait plates sit in the middle two-quarters of the page. */
.project-page .module-image.plate-portrait {
  justify-self: stretch;
}

.project-page .module-text.pull-note {
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  font-size: clamp(15px, 1.15vw, 20px);
  line-height: 1.45;
  max-width: 28em;
  padding-top: 2px;
}
.project-page .module-text.pull-note p + p {
  margin-top: 1em;
}

.project-page .module-section {
  scroll-margin-top: 80px;
}
.project-page .module-section .section-module {
  align-items: start;
  padding-top: clamp(28px, 3.2vw, 56px);
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}
.project-page .section-kicker {
  grid-column: 1 / -1;
  color: var(--muted);
  margin: 0 0 clamp(12px, 1.2vw, 20px);
}
.project-page .section-title {
  grid-column: 1 / span 3;
  font-size: clamp(22px, 2.4vw, 42px);
  letter-spacing: -.03em;
  line-height: 1.15;
  padding-top: 2px;
}
.project-page .section-body {
  grid-column: 5 / span 4;
  max-width: none;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  padding-top: 6px;
}

.work-masthead {
  margin: 0 0 clamp(28px, 4vw, 64px);
}
.work-masthead > .eyebrow {
  color: var(--muted);
  margin-bottom: clamp(12px, 1.2vw, 22px);
}
.work-masthead h1 {
  font-size: clamp(36px, 5.2vw, 88px);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1.04;
  max-width: 14em;
}

@media (max-width: 900px) {
  .project-page .section-title {
    grid-column: 1 / span 4;
  }
  .project-page .section-body {
    grid-column: 1 / span 8;
  }
}

@media (max-width: 600px) {
  .project-intro > .eyebrow {
    margin-bottom: 14px;
  }
  .project-intro h1 {
    font-size: 32px;
    margin-bottom: 18px;
  }
  .project-page .module-grid {
    row-gap: 32px;
  }
  .project-page .module-supergrid.spread-pair > .module-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 28px;
  }
  .project-page .module-supergrid.spread-pair > .module-grid > .module-image {
    display: flex;
    grid-row: auto;
  }
  .project-page .module-image.plate-portrait {
    grid-column: 1 / -1 !important;
    max-width: 82%;
    justify-self: center;
  }
  .project-page .module-text.pull-note {
    font-size: 16px;
    max-width: none;
  }
  .project-page .section-module {
    padding-top: 22px;
  }
  .plate-caption {
    font-size: 10px;
    letter-spacing: .1em;
    margin-top: 8px;
    padding-top: 8px;
  }
  .work-masthead {
    margin-bottom: 28px;
  }
  .work-masthead h1 {
    font-size: 34px;
  }
}
