.work-page {
  --work-accent: #fc5749;
  --work-ink: #0b0b0b;
  --work-muted: #6f6f6f;
  --work-line: #dedede;
  --work-surface: #f5f5f2;
}

.work-page .section.top-section {
  padding-top: 0;
}

.work-page .section.top-section > .container {
  overflow: visible;
}

.work-page .about-hero-wrapper.about {
  min-height: auto;
  margin-bottom: clamp(30px, 3vw, 44px);
  padding-top: 0;
  padding-bottom: 0;
  align-items: flex-end;
}

.work-page .about-hero-left-col-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  max-width: none;
  gap: 32px;
  align-items: end;
}

.work-page .about-hero-left-col-wrapper > .primary-button-wrappers {
  margin: 0 !important;
  align-self: end;
  justify-self: end;
  transition: background-color 180ms ease, transform 180ms ease;
}

.work-page .about-hero-left-col-wrapper > .primary-button-wrappers:hover,
.work-page .about-hero-left-col-wrapper > .primary-button-wrappers:focus-visible {
  background-color: #e94b3f;
  transform: translateY(-2px);
}

.work-page .about-hero-left-col-wrapper > .primary-button-wrappers .primary-button-black-bg {
  display: none;
}

.work-page .about-main-title.about-page {
  max-width: none;
  margin: 0;
  font-size: clamp(62px, 7.2vw, 112px);
  line-height: .88;
  letter-spacing: -.06em;
}

.work-page .about-hero-right-col-wrapper {
  display: none;
}

.work-controls {
  position: relative;
  z-index: 1;
  top: auto;
  padding: 13px 0;
  border-top: 0;
  border-bottom: 1px solid var(--work-line);
  background: transparent;
}

.work-controls__top,
.work-controls__actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.work-controls__eyebrow {
  margin: 0 0 10px;
  color: var(--work-accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.work-controls__title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 3.3vw, 52px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.work-results {
  flex: 0 0 auto;
  margin: 0 0 6px;
  color: var(--work-muted);
  font-size: 15px;
  white-space: nowrap;
}

.work-controls__actions {
  margin-top: 38px;
  align-items: center;
}

.work-filter-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.work-filter-list::-webkit-scrollbar {
  display: none;
}

.work-filter {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #c9c9c9;
  border-radius: 999px;
  background: transparent;
  color: var(--work-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transform: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.work-filter:hover,
.work-filter:focus-visible {
  border-color: var(--work-accent);
  color: var(--work-accent);
  transform: none;
}

.work-filter:focus-visible,
.work-sort:focus-visible {
  outline: 3px solid rgba(252, 87, 73, .24);
  outline-offset: 2px;
}

.work-filter.is-active {
  border-color: var(--work-accent);
  background: var(--work-accent);
  color: #fff;
}

.work-filter.is-active:hover,
.work-filter.is-active:focus-visible {
  border-color: var(--work-accent);
  background: var(--work-accent);
  color: #fff;
}

.work-sort-label {
  display: flex;
  flex: 0 0 184px;
  flex-direction: column;
  gap: 7px;
  color: var(--work-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.work-sort {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 16px;
  border: 1px solid #c9c9c9;
  border-radius: 12px;
  background-color: #fff;
  color: var(--work-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.work-page .project-content-wrapper.project-page {
  margin-top: 14px;
  padding-bottom: clamp(100px, 12vw, 180px);
}

.work-page .project-content-wrap,
.work-page .collection-list-wrapper-3 {
  width: 100%;
}

.work-page .project-collection-list.w-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: none;
  grid-auto-rows: auto;
  grid-auto-flow: dense;
  gap: 22px;
  margin-right: 0;
  margin-left: 0;
}

.work-page .project-collection-list.w-row::before,
.work-page .project-collection-list.w-row::after {
  display: none;
  content: none;
}

.work-page .collection-item-3.w-col {
  display: block;
  grid-column: span 1;
  width: auto;
  height: auto;
  min-width: 0;
  padding-right: 0;
  padding-left: 0;
  align-self: start;
  float: none;
}

.work-page .collection-item-3:nth-child(8n + 1) {
  grid-column: span 1;
}

.work-page .collection-item-3:nth-child(8n + 2) {
  grid-column: span 1;
}

.work-page .collection-item-3:nth-child(8n + 3) {
  grid-column: span 1;
}

.work-page .collection-item-3:nth-child(8n + 4) {
  grid-column: span 1;
}

.work-page .collection-item-3:nth-child(8n + 7) {
  grid-column: span 1;
}

.work-page .collection-item-3:nth-child(8n + 8) {
  grid-column: span 1;
}

.work-page .project-collection-list.is-filtered .collection-item-3 {
  grid-column: span 1;
}

.work-page .project-collection-list[data-visible-count="1"] .collection-item-3 {
  grid-column: 1 / -1;
}

.work-page .collection-item-3[hidden] {
  display: none !important;
}

.work-page .project-link-block {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin-bottom: 0;
  align-items: start;
  color: var(--work-ink);
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  border-radius: 14px;
  transition: none;
}

.work-page .project-image-wrapper {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: var(--work-surface);
  box-shadow: 0 0 0 1px rgba(11, 11, 11, .045);
  transition: box-shadow 320ms ease;
}

.work-page .collection-item-3:nth-child(8n + 2) .project-image-wrapper,
.work-page .collection-item-3:nth-child(8n + 3) .project-image-wrapper,
.work-page .collection-item-3:nth-child(8n + 8) .project-image-wrapper {
  aspect-ratio: 16 / 10;
}

.work-page .collection-item-3:nth-child(8n + 4) .project-image-wrapper,
.work-page .collection-item-3:nth-child(8n + 7) .project-image-wrapper {
  aspect-ratio: 16 / 10;
}

.work-page .project-collection-list.is-filtered .project-image-wrapper {
  aspect-ratio: 16 / 10;
}

.work-page .project-image,
.work-page .project-image._02 {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2, .7, .2, 1);
}

.work-page .project-link-block:hover .project-image,
.work-page .project-link-block:focus-visible .project-image {
  transform: scale(1.028);
}

.work-page .project-link-block:hover .project-image-wrapper,
.work-page .project-link-block:focus-visible .project-image-wrapper {
  box-shadow: 0 10px 24px rgba(0, 0, 0, .07);
}

.work-page .project-link-block:focus-visible {
  outline: none;
}

.work-page .project-link-block:focus-visible .project-image-wrapper {
  box-shadow: 0 0 0 3px rgba(252, 87, 73, .38), 0 10px 24px rgba(0, 0, 0, .07);
}

.work-page .project-title-wrapper {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  min-height: 58%;
  margin: 0 !important;
  padding: 88px clamp(20px, 2vw, 28px) clamp(20px, 2vw, 28px);
  border: 0;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, .22) 32%, rgba(5, 5, 5, .88) 100%);
  box-shadow: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0s linear, transform 0s linear;
}

.work-page .project-link-block:hover .project-title-wrapper,
.work-page .project-link-block:focus-visible .project-title-wrapper {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 240ms ease, transform 280ms cubic-bezier(.2, .7, .2, 1);
}

.work-page .project-title {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  justify-self: start;
  margin: 0;
  padding: 0;
  color: #fff !important;
  font-size: clamp(21px, 1.65vw, 27px);
  line-height: 1;
  letter-spacing: -.045em;
}

.work-page .project-category.show-tab {
  display: block;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  width: auto;
  max-width: 280px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ff786d;
  justify-self: end;
  text-align: right;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.work-page .secondary-button-wrapper {
  grid-column: 2;
  grid-row: 3;
  height: 42px;
  margin-top: 12px;
  padding-right: 12px;
  padding-left: 16px;
  gap: 4px;
  justify-self: end;
}

.work-page .secondary-button-text-wrapper {
  height: 19px;
}

.work-page .secondary-button-text {
  font-size: 14px;
  line-height: 19px;
}

.work-page .secondary-button-icon-wrapper {
  width: 20px;
}

.work-page .secondary-button-icon {
  width: 20px;
  height: 20px;
}

@media screen and (max-width: 991px) {
  .work-page .about-hero-wrapper.about {
    margin-bottom: 42px;
  }

  .work-page .about-hero-left-col-wrapper {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .work-page .about-hero-left-col-wrapper > .primary-button-wrappers {
    justify-self: start;
  }

  .work-filter-list {
    width: 100%;
  }

  .work-page .project-collection-list.w-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .work-page .collection-item-3.w-col,
  .work-page .collection-item-3:nth-child(n) {
    grid-column: span 1;
  }

  .work-page .collection-item-3:nth-child(4n + 1) {
    grid-column: span 1;
  }

  .work-page .project-collection-list.is-filtered .collection-item-3 {
    grid-column: span 1;
  }

  .work-page .project-collection-list[data-visible-count="1"] .collection-item-3 {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 767px) {
  .work-page .about-hero-wrapper.about {
    margin-bottom: 34px;
  }

  .work-page .about-hero-left-col-wrapper {
    gap: 26px;
    overflow: visible;
  }

  .work-page .about-main-title.about-page {
    max-width: 100%;
    font-size: clamp(48px, 14vw, 58px);
    line-height: .9;
    letter-spacing: -.055em;
  }

  .work-page .about-main-title.about-page .text-span-4 {
    white-space: nowrap;
  }

  .work-filter-list {
    width: calc(100vw - 20px);
    margin-right: -20px;
    padding-right: 20px;
    scroll-snap-type: x proximity;
  }

  .work-filter-list::-webkit-scrollbar {
    display: none;
  }

  .work-filter {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .work-page .project-content-wrapper.project-page {
    margin-top: 10px;
    padding-bottom: 100px;
  }

  .work-page .project-collection-list.w-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .work-page .collection-item-3.w-col,
  .work-page .collection-item-3:nth-child(n),
  .work-page .project-collection-list.is-filtered .collection-item-3,
  .work-page .project-collection-list[data-visible-count="1"] .collection-item-3 {
    grid-column: 1;
  }

  .work-page .project-image-wrapper {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
  }

  .work-page .collection-item-3:nth-child(n) .project-image-wrapper,
  .work-page .project-collection-list.is-filtered .project-image-wrapper {
    aspect-ratio: 16 / 10;
  }

  .work-page .project-title-wrapper {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    min-height: 60%;
    margin: 0 !important;
    padding: 68px 18px 18px;
    border-radius: 0 0 12px 12px;
    gap: 14px;
    opacity: 1;
    transform: none;
  }

  .work-page .project-title {
    padding: 0;
    font-size: 21px;
  }

  .work-page .project-category.show-tab {
    max-width: 280px;
    margin: 0;
    padding: 0;
    font-size: 9px;
  }

  .work-page .project-link-block {
    display: block;
    border-radius: 12px;
  }
}

@media (hover: none), (pointer: coarse) {
  .work-page .project-title-wrapper {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-page .project-image,
  .work-filter,
  .work-page .project-title-wrapper {
    transition: none;
  }
}
