.project-work-examples {
  box-sizing: border-box;
  width: min(100% - 2rem, 76rem);
  padding-block: 2.25rem;
  border-top: 1px solid #d9d9d0;
  margin: 2.25rem auto 0;
}

.project-work-examples *,
.project-related-work *,
.project-service-paths * {
  box-sizing: border-box;
}

.project-work-examples .work-example-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}

.project-work-examples .work-example-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.08;
  margin: .25rem 0 0;
}

.project-work-examples .work-example-heading p {
  max-width: 42rem;
  margin: 0;
  color: #59677a;
  font-size: .98rem;
  line-height: 1.55;
}

.project-work-examples .work-example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-work-examples .work-example-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe2e4;
  border-radius: 12px;
  background: #fff;
}

.project-work-examples .work-example-image {
  position: relative;
  display: block;
  flex: none;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  background: #f4f1e9;
}

.project-work-examples .work-example-image img {
  position: static !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.project-work-examples .work-example-copy {
  position: static !important;
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: .4rem;
  padding: 1rem;
  overflow-wrap: anywhere;
}

.project-work-examples .work-example-status {
  color: #7b6228;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-work-examples .work-example-copy a {
  max-width: 100%;
  color: #073764;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #c39b43;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.project-work-examples .work-example-copy p {
  margin: 0;
  color: #4c5b6c;
  font-size: .9rem;
  line-height: 1.45;
}

.project-related-work,
.project-service-more {
  border-top: 1px solid #e2dfd7;
  margin-top: .8rem;
  padding-top: .7rem;
}

.project-related-work summary,
.project-work-examples details.work-example-more summary,
.project-service-more summary {
  width: fit-content;
  max-width: 100%;
  color: #073764;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: #c39b43;
  text-underline-offset: 3px;
}

.project-related-work ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem 1.5rem;
  margin: .8rem 0 0;
  padding: 0;
  list-style: none;
}

.project-related-work li {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .6rem;
}

.project-related-work a,
.project-work-examples .work-example-more a,
.project-service-paths a {
  color: #073764;
  text-decoration: underline;
  text-decoration-color: #c39b43;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.project-related-work li span {
  color: #59677a;
  font-size: .82rem;
  line-height: 1.4;
}

.project-work-examples .work-example-more {
  margin: 1rem 0 0;
  color: #4c5b6c;
  font-size: .92rem;
  line-height: 1.7;
}

.project-work-examples details.work-example-more p {
  margin: .65rem 0 0;
}

.project-service-more .project-service-links {
  margin-top: .55rem;
}

.project-service-paths {
  margin-top: 2rem;
  padding: 1.4rem 0;
  border-top: 1px solid #dedbd2;
}

.project-service-paths p {
  margin: 0 0 .7rem;
  color: #59677a;
  font-size: .92rem;
}

.project-service-paths .project-service-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
}

.project-service-paths .project-service-links a {
  font-size: .93rem;
  font-weight: 600;
}

.terms-contents {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .8rem;
  padding: 1rem 1.2rem;
  margin: 1rem auto 2rem;
  background: #f6f3ec;
  border: 1px solid #e4ddce;
  border-radius: 12px;
}

.terms-contents a {
  color: #073764;
  font-size: .9rem;
  text-decoration: underline;
  text-decoration-color: #c39b43;
  text-underline-offset: 3px;
}

@media (max-width: 850px) {
  .project-work-examples .work-example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .project-work-examples {
    width: min(100% - 1.5rem, 76rem);
    padding-block: 1.5rem;
    margin-top: 1.5rem;
  }

  .project-work-examples .work-example-heading {
    display: block;
  }

  .project-work-examples .work-example-heading h2 {
    margin: .25rem 0 .5rem;
  }

  .project-work-examples .work-example-grid {
    grid-template-columns: 1fr;
    gap: .8rem;
  }

  .project-work-examples .work-example-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .project-work-examples .work-example-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .project-work-examples .work-example-copy {
    padding: .9rem 1rem 1rem;
  }

  .project-work-examples .work-example-copy p {
    font-size: .9rem;
  }

  .project-work-examples .work-example-more {
    font-size: .88rem;
  }

  .project-related-work ul {
    grid-template-columns: 1fr;
    gap: .7rem;
  }

  .project-service-paths {
    margin-top: 1.2rem;
    padding: 1.15rem 0;
  }

  .terms-contents {
    gap: .45rem .7rem;
    padding: .85rem;
    margin: 1rem 0 1.5rem;
  }
}
