/* Installation cards for the home page only. */
main[data-page="home"] .home-projects {
  padding-block: 88px;
  background: #f6f3ed;
}
main[data-page="home"] .home-projects > .wrap {
  width: 88%;
  max-width: 1320px;
  min-width: 0;
  margin-inline: auto;
}
main[data-page="home"] .home-projects-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
main[data-page="home"] .home-projects-heading > * {
  min-width: 0;
}
main[data-page="home"] .home-projects-heading .eyebrow {
  margin-bottom: 12px;
}
main[data-page="home"] .home-projects-heading h2 {
  margin-bottom: 10px;
  line-height: 1.55;
}
main[data-page="home"] .home-projects-heading p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.8;
}
main[data-page="home"] .home-projects-heading > a {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
  font-size: 14px;
}
main[data-page="home"] .home-projects-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px;
}
main[data-page="home"] .home-project-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e1dbd1;
  border-radius: 8px;
  background: #fffdf9;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
main[data-page="home"] .home-project-card:nth-child(7) {
  grid-column: 2 / span 2;
}
main[data-page="home"] .home-project-card:nth-child(8) {
  grid-column: 4 / span 2;
}
main[data-page="home"] .home-project-card:hover {
  border-color: #bfb1a0;
}
main[data-page="home"] .home-project-image {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #efeae2;
}
main[data-page="home"] .home-project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
/* Match the pamphlet's 1173x745 view at (275,230) in the 1448x1086 photo. */
main[data-page="home"] .home-project-image--pamphlet {
  position: relative;
}
main[data-page="home"] .home-project-image--pamphlet img {
  position: absolute;
  width: 123.44%;
  max-width: none;
  inset-inline-start: -23.44%;
  top: 50%;
  height: auto;
  transform: translateY(-55.48%);
  clip-path: inset(21.18% 0 10.22% 18.99%);
}
/* Keep the storefront and furniture prominent; omit empty ceiling and floor. */
main[data-page="home"] .home-project-image--storefront {
  position: relative;
}
main[data-page="home"] .home-project-image--storefront img {
  position: absolute;
  width: 148%;
  max-width: none;
  height: auto;
  inset-inline-start: -24%;
  top: 50%;
  transform: translateY(-55.8%);
}
main[data-page="home"] .home-project-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 16px 18px 18px;
  background: #fffdf9;
}
main[data-page="home"] .home-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
main[data-page="home"] .home-project-tags span {
  min-width: 0;
  padding: 3px 8px;
  border: 1px solid #e5ded3;
  border-radius: 4px;
  background: #f6f2eb;
  color: #786a58;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
main[data-page="home"] .home-project-card h3 {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}
main[data-page="home"] .home-project-meta {
  color: #786a58;
  font-size: 13px;
  font-weight: 400;
}
@media (max-width: 1000px) {
  main[data-page="home"] .home-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
  main[data-page="home"] .home-project-card,
  main[data-page="home"] .home-project-card:nth-child(7),
  main[data-page="home"] .home-project-card:nth-child(8) {
    grid-column: auto;
  }
}
@media (max-width: 800px) {
  main[data-page="home"] .home-projects {
    padding-block: 52px;
  }
}
@media (max-width: 560px) {
  main[data-page="home"] .home-projects-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 26px;
  }
  main[data-page="home"] .home-projects-heading h2 {
    font-size: 28px;
  }
  main[data-page="home"] .home-projects-heading > a {
    align-self: flex-end;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  main[data-page="home"] .home-projects-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  main[data-page="home"] .home-project-copy {
    padding: 16px;
  }
}
