.project-container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.project-feature {
  padding-block: 72px;
  background: #151817;
  color: #f1f2ef;
}

.project-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 40px;
  align-items: center;
}

.project-feature .project-kicker { color: #ffaaa6; }
.project-feature h2 {
  margin: 12px 0;
  color: inherit;
  font: 650 54px/1 "Bricolage Grotesque", system-ui, sans-serif;
  letter-spacing: 0;
}

.project-feature p:not(.project-kicker) { max-width: 435px; margin: 0; color: #d7dad5; line-height: 1.65; }
.project-feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 22px; }
.project-feature-actions a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 14px; font-weight: 750; }
.project-feature-primary { padding-inline: 12px; border-radius: 6px; background: #f1f2ef; color: #151817; text-decoration: none; }
.project-feature-primary:hover { background: #ffaaa6; color: #151817; }
.project-feature-secondary { color: #f1f2ef; text-decoration: underline; text-underline-offset: 4px; }
.project-feature-secondary:hover { color: #ffaaa6; }
.project-feature-preview {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #6c7270;
  border-radius: 7px;
}

.project-feature-preview img { display: block; width: 100%; height: auto; }
.project-feature a:focus-visible { outline: 2px solid #ffaaa6; outline-offset: 4px; }

.project-grid.project-grid-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.project-band {
  padding-block: 76px;
  scroll-margin-top: 95px;
  background: #f1f2ef;
  color: #171a1d;
}

.project-band-compact { padding-block: 42px; }
.project-section-head { max-width: 670px; margin-bottom: 28px; }
.project-band h2, .project-case h2, .project-case h1 {
  margin: 8px 0 14px;
  color: inherit;
  font: 650 46px/1.05 "Bricolage Grotesque", system-ui, sans-serif;
  letter-spacing: 0;
}

.project-band p, .project-case p { line-height: 1.65; }
.project-section-head > p:last-of-type { margin: 0 0 12px; }
.project-kicker {
  margin: 0;
  color: #a52a2d;
  font: 600 13px/1.4 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0;
}

.project-grid, .project-case-tools, .project-socials, .project-social-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-grid > li { display: flex; min-width: 0; }
.project-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d1d4ce;
  border-radius: 7px;
  background: #fcfcfb;
  color: #171a1d;
  text-decoration: none;
}

.project-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: contain;
  background: #e8ebe7;
}

.project-card-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 19px; }
.project-card-body h3, .project-case h3 { margin: 0; color: inherit; font: 650 23px/1.14 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: 0; }
.project-card-body p { margin: 0; }
.project-card-body > span { margin-top: auto; padding-top: 8px; color: #962a2d; font-weight: 700; }
.project-card:hover { border-color: #962a2d; }
.project-card:hover .project-card-body > span { text-decoration: underline; }
.project-text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #962a2d; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.project-band a:focus-visible, .project-case a:focus-visible { outline: 2px solid #962a2d; outline-offset: 4px; }

.project-case { margin: 0; background: #f1f2ef; color: #171a1d; font: 500 16px/1.6 "Manrope", system-ui, sans-serif; }
.project-case *, .project-band * { box-sizing: border-box; }
.project-case a { color: inherit; }
.project-case-nav { border-bottom: 1px solid #d1d4ce; }
.project-case-nav .project-container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 22px; padding-block: 8px; }
.project-case-nav a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 700; text-decoration: none; }
.project-case-nav a:hover, .project-case-footer a:hover { text-decoration: underline; }
.project-case-intro { padding-block: 56px 40px; }
.project-case h1 { font-size: 68px; }
.project-case-intro p { max-width: 690px; margin-bottom: 16px; }
.project-case-hero { display: block; width: 100%; height: auto; margin-top: 26px; border: 1px solid #b9c1bd; border-radius: 7px; }
.project-case-section { padding-block: 52px; border-top: 1px solid #d1d4ce; }
.project-case-section > p { max-width: 700px; }
.project-case-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }
.project-case-tools img { display: block; width: 100%; height: auto; aspect-ratio: 39 / 67; object-fit: cover; object-position: center top; border-bottom: 1px solid #d1d4ce; }
.project-case-tools .project-card { height: 100%; }
.project-social-posts { margin-block: 24px 34px; }
.project-social-post {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #d1d4ce;
  border-radius: 7px;
  background: #fcfcfb;
}

.project-case .project-social-cover {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  border-radius: 6px 6px 0 0;
  background: #171a1d;
  color: #fff;
  text-decoration: none;
}

.project-social-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 410px;
  object-fit: contain;
  border-radius: inherit;
}

.project-social-cover span { padding: 10px 14px; border-top: 1px solid #4d514f; font-size: 14px; font-weight: 750; }
.project-social-cover b { margin-inline-start: 5px; }
.project-social-cover:hover span { text-decoration: underline; text-underline-offset: 4px; }
.project-social-copy { display: flex; flex: 1; flex-direction: column; gap: 9px; padding: 18px; }
.project-social-copy p { margin: 0; }
.project-social-next { margin: auto 0 0; padding: 5px 0 0; list-style: none; }
.project-social-next li + li { border-top: 1px solid #d1d4ce; }
.project-case .project-social-next a { display: flex; align-items: center; min-height: 44px; color: #962a2d; font-size: 14px; font-weight: 750; text-underline-offset: 3px; }
.project-socials { margin-top: 14px; }
.project-socials a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; font-weight: 700; border: 1px solid #b9c1bd; border-radius: 6px; text-decoration: none; }
.project-socials a:hover { border-color: #962a2d; color: #962a2d; }
.project-case-footer { border-top: 1px solid #d1d4ce; padding-block: 22px; }
.project-case-footer .project-container { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.project-case-footer a { font-size: 14px; }

@media (max-width: 850px) {
  .project-feature { padding-block: 48px; }
  .project-feature-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-case-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .project-social-posts { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .project-feature h2 { font-size: 41px; }
  .project-container { width: calc(100% - 32px); }
  .project-band, .project-case-section { padding-block: 38px; }
  .project-case-intro { padding-block: 32px; }
  .project-band h2, .project-case h2 { font-size: 33px; }
  .project-case h1 { font-size: 43px; }
  .project-grid, .project-case-tools { grid-template-columns: minmax(0, 1fr); }
  .project-grid.project-grid-pair { grid-template-columns: minmax(0, 1fr); }
  .project-case-tools img { aspect-ratio: 4 / 5; }
  .project-socials { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
