body[data-page="work"] {
  --header-background: var(--color-brand-yellow);
}
.work-feature {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 50vw, 720px);
  overflow: hidden;
}
.work-feature::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgb(12 33 38 / 92%) 0%, rgb(12 33 38 / 72%) 45%, rgb(12 33 38 / 18%) 78%, rgb(12 33 38 / 28%) 100%);
  content: "";
}
.work-feature__background {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.work-feature__grid {
  position: relative;
  z-index: 2;
  align-items: center;
  gap: 80px;
}
.work-feature__grid > .stack {
  --stack-space: 15px;
}
.work-filters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  background-color: white;
  color: black;
  font-size: 16px;
  text-align: center;
  border-radius: 999px;
}

.work-tags span {
  color: var(--color-brand-yellow);
  font-size: 16px;
  font-weight: 500;
}
.work-feature__button {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 24px;
  background: var(--color-brand-yellow);
  color: var(--color-ink);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border-radius: 999px;
  min-height: 50px;
}
.work-feature__button::after {
  content: "›";
  font-size: 22px;
  line-height: 0.8;
}
.work-feature__button:hover,
.work-feature__button:focus-visible {
  background: var(--color-white);
}

.work-list {
  padding-top: 80px;
}
.work-list h2 {
  max-width: 900px;
  margin-block: 8px 14px;
}
.work-list__intro {
  max-width: 760px;
  margin-bottom: 40px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
}
.work-filters {
  margin-bottom: 30px;
}
.work-filters button {
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}
.work-filters .is-active {
  background: var(--color-ink);
  color: white;
}
.work-list__grid {
  align-content: start;
  gap: 78px 65px;
}
.work-list .project-card {
  transform-origin: center;
  background: rgb(12 33 38 / 4%);
}
.work-list .project-card[hidden] {
  display: none;
}
.work-list .project-card__image {
  aspect-ratio: 1 / 0.92;
}
.work-list .project-card__body {
  position: relative;
}
.work-list .project-card:hover .project-card__button,
.work-list .project-card:focus-visible .project-card__button,
.work-list .project-card:focus-within .project-card__button {
  background: #000;
  color: var(--color-white);
}
.work-list .project-card h3 {
  padding-right: 105px;
}
.work-list .project-card__body > p:first-child {
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;
}
.work-cta__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.work-cta__grid .stack {
  --stack-space: 14px;
  align-items: center;
}
.work-cta {
  min-height: 350px;
  display: flex;
  align-items: center;
}
.work-cta .button:hover,
.work-cta .button:focus-visible {
  background: var(--color-white);
  color: var(--color-ink);
}
@media (max-width: 800px) {
  .work-feature {
    min-height: 580px;
  }
  .work-feature::before {
    background: linear-gradient(90deg, rgb(12 33 38 / 92%) 0%, rgb(12 33 38 / 76%) 72%, rgb(12 33 38 / 48%) 100%);
  }
  .work-feature__background {
    object-position: 60% center;
  }
  .work-feature__grid {
    gap: 40px;
  }
  .work-list__grid {
    gap: 30px;
  }
  .work-cta {
    min-height: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .work-filters button {
    transition: none;
  }
}
