.work-hero {
  position: relative;
  height: 832px;
  overflow: hidden;
  background-color: var(--color-forge);
}

.work-hero__bg-layer {
  position: absolute;
  inset: 0;
  background-color: var(--color-forge);
}

.work-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.work-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--color-forge-rgb), 0.48) 0%, rgba(var(--color-forge-rgb), 0) 50%),
    linear-gradient(
      180deg,
      rgba(var(--color-forge-rgb), 0) 50%,
      rgba(var(--color-forge-rgb), 0.48) 100%
    );
}

.work-hero__breadcrumb {
  position: absolute;
  top: 120px;
  left: var(--page-align-x);
  right: var(--page-align-x);
  z-index: 2;
}

.work-hero__content {
  position: absolute;
  bottom: 0;
  left: var(--page-align-x);
  right: var(--page-align-x);
  padding: 0 0 56px;
  z-index: 2;
}

.work-hero__details-col {
  display: flex;
  flex-direction: column;
}

.work-hero__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 38px;
  font-weight: 600;
  line-height: 52px;
  color: var(--color-ash);
}

.work-hero__client {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 32px;
  color: var(--color-ash);
}

.work-hero__details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
  color: var(--color-ash);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-decoration: underline solid transparent;
  text-decoration-thickness: 1.25px;
  text-underline-offset: 5px;
  cursor: pointer;
  transition: text-decoration-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
  .work-hero__details:hover {
    text-decoration-color: var(--color-ash);
  }
}

.work-hero__details:focus-visible {
  text-decoration-color: var(--color-ash);
}

.work-hero__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
}

.work-hero__counter {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--color-ash);
}

.work-filter-bar {
  background: var(--color-forge);
  padding: 40px var(--padding-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.work-filter-bar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.work-filter-btn {
  background: transparent;
}

@media (hover: hover) {
  .work-filter-btn:hover {
    color: var(--color-ash);
    border-color: var(--color-ash);
  }
}

.work-filter-btn:focus-visible {
  color: var(--color-ash);
  border-color: var(--color-ash);
  outline: none;
}

.work-filter-btn-clear {
  background: transparent;
}

@media (hover: hover) {
  .work-filter-btn-clear:hover {
    color: var(--color-ash);
    border-color: var(--color-ash);
  }
}

.work-filter-btn-clear:focus-visible {
  color: var(--color-ash);
  border-color: var(--color-ash);
  outline: none;
}

.work-filter-btn--panel {
  display: none;
  align-self: flex-start;
  margin-bottom: 40px;
}

.work-listing.is-filter-open .work-filter-bar .work-filter-btn-group {
  display: none;
}

.work-listing.is-filter-open .work-filter-panel .work-filter-btn--panel {
  display: flex;
}

.work-listing.is-filter-open .work-filter-bar {
  justify-content: flex-end;
}

.work-filter-form {
  margin: 0;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.work-results-count {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  color: var(--color-ash);
}

.work-grid {
  background: var(--color-forge);
  padding: 0 var(--padding-x) 24px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 741px));
  justify-content: center;
  align-content: start;
  gap: 24px;
  overflow-anchor: none;
}

.work-card {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 741px);
  max-width: 741px;
  margin-inline: auto;
  aspect-ratio: 741 / 415;
  height: auto;
  min-height: 0;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(var(--color-forge-rgb), 0);
  transition: background 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover::after,
.work-card:focus-visible::after {
  background: rgba(var(--color-forge-rgb), 0.52);
}

.work-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card__bg--empty {
  background: var(--color-forge-soft);
}

.work-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(var(--color-forge-rgb), 0.32) 4.2%,
      rgba(var(--color-forge-rgb), 0) 43%
    ),
    linear-gradient(
      180deg,
      rgba(var(--color-forge-rgb), 0) 50%,
      rgba(var(--color-forge-rgb), 0.48) 94.5%
    );
}

.work-card__arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  width: 56px;
  height: 56px;
  border: 1.25px solid var(--color-ash);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ash);
  background-color: transparent;
}

.work-card__info {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work-card__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 28px;
  line-height: 32px;
  font-weight: 600;
  color: var(--color-ash);
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover .work-card__title,
.work-card:focus-visible .work-card__title {
  color: var(--color-flare);
}

.work-card:hover .work-card__arrow,
.work-card:focus-visible .work-card__arrow {
  border-color: var(--color-flare);
  color: var(--color-flare);
}

.work-card__client {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 28px;
  font-weight: 500;
  color: var(--color-ash);
}

@media (prefers-reduced-motion: no-preference) {
  .work-grid.work-grid--gk-reveal-ready .work-card {
    transition:
      opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--gk-reveal-delay, 0ms);
  }

  .work-grid.work-grid--gk-reveal-ready .work-card:not(.is-gk-reveal) {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
  }

  .work-grid.work-grid--gk-reveal-ready .work-card.is-gk-reveal {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.work-show-more {
  grid-column: 1 / -1;
  background: var(--color-forge);
  padding: 40px 0 0;
  display: flex;
  justify-content: flex-start;
  overflow-anchor: none;
}

.work-show-more.is-hidden {
  display: none;
}

.work-listing__main:has(.work-show-more.is-hidden) .work-grid {
  padding-bottom: 0;
}

.work-show-more__btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  height: 56px;
  padding: 8px 16px 8px 24px;
  border: 1.25px solid var(--color-flare);
  border-radius: 56px;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--color-flare);
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.work-show-more__btn:hover,
.work-show-more__btn:focus-visible {
  border-color: var(--color-white);
  color: var(--color-white);
  outline: none;
}

.work-show-more__icon {
  display: flex;
  flex-shrink: 0;
  color: inherit;
}

.work-show-more__icon svg {
  display: block;
  transition: transform 0.2s ease;
}

.work-show-more__btn:hover .work-show-more__icon svg,
.work-show-more__btn:focus-visible .work-show-more__icon svg {
  transform: rotate(180deg);
}

.work-show-more__label {
  color: inherit;
}

.work-filter-panel {
  background: var(--color-forge);
}

.work-filter-overlay {
  background: rgba(var(--color-forge-rgb), 0.5);
}

.work-listing {
  position: relative;
  background: var(--color-forge);
  scroll-margin-top: 96px;
  --work-listing-split-max: var(--max-width);

  padding-bottom: 80px;
}

.work-listing__split {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--work-listing-split-max);
  margin-inline: auto;
  overflow-x: hidden;
  background: var(--color-forge);
}

.work-listing__content {
  position: relative;
  z-index: 1;
  transition: margin-left 0.3s ease;
  max-width: 100%;
  background: var(--color-forge);
}

.work-listing__main {
  position: relative;
  z-index: 0;
  min-width: 0;
  background: var(--color-forge);
}

@media (min-width: 1024px) {
  .work-listing .work-filter-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 480px;
    height: auto;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    z-index: 90;
  }

  .work-listing.is-filter-open .work-listing__content {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding-inline: var(--padding-x);
  }

  .work-listing.is-filter-open .work-listing__main {
    display: grid;
    grid-template-columns: 480px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "wk-panel wk-bar"
      "wk-panel wk-grid";
    column-gap: 24px;
    align-items: stretch;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-height: var(--work-filter-stack-height, none);
    overflow: hidden;
    overscroll-behavior: auto;
  }

  .work-listing.is-filter-open .work-filter-bar {
    grid-area: wk-bar;
    flex-shrink: 0;
    padding: 40px var(--padding-x);
  }

  .work-listing.is-filter-open .work-filter-panel.is-open {
    grid-area: wk-panel;
    position: relative;
    top: auto;
    left: auto;
    width: 480px;
    max-width: 480px;
    max-height: none;
    height: auto;
    overflow: visible;
    overflow-y: visible;
    transform: none;
    align-self: start;
    display: flex;
    flex-direction: column;
    border: none;
    box-shadow: none;
    padding-bottom: 56px;
    box-sizing: border-box;
  }

  .work-listing.is-filter-open .work-listing__split {
    width: 100%;
  }

  .work-listing.is-filter-open .work-grid {
    grid-area: wk-grid;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;
    padding: 72px var(--padding-x) 80px;
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: auto;
    overflow-anchor: none;
  }

  .work-listing.is-filter-open .work-show-more {
    flex-shrink: 0;
    width: 100%;
    padding: 16px 0 0;
  }

  .work-listing.is-filter-open .work-card {
    box-sizing: border-box;
    width: min(100%, 741px);
    max-width: 741px;
    margin-inline: auto;
    flex: 0 0 auto;
    align-self: center;
    aspect-ratio: 741 / 415;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .work-listing.is-filter-open .work-card__arrow {
    top: 40px;
    right: 40px;
  }

  .work-listing.is-filter-open .work-card__info {
    bottom: 40px;
    left: 40px;
    right: 40px;
  }

  .work-listing.is-filter-open .work-card__title {
    font-size: 32px;
    line-height: 40px;
    font-weight: 600;
  }

  .work-listing.is-filter-open .work-card__client {
    font-size: 28px;
    line-height: 32px;
    font-weight: 400;
    font-style: italic;
  }

  .work-filter-overlay {
    position: absolute;
    display: none;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    z-index: 89;
  }
}

.work-filter-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
  margin: 0;
  border: none;
  box-shadow: none;
  border-radius: 16px;
}

.work-filter-section__label {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  color: var(--color-flare);
  text-transform: capitalize;
  padding-bottom: 16px;
  border: none;
}

.work-filter-industry-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.work-filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 0 0;
  cursor: pointer;
  position: relative;
  border: none;
  background: transparent;
}

.work-filter-item__box {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.work-filter-item__input {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.work-filter-item__control {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  color: var(--color-ash);
  pointer-events: none;
}

.work-filter-item__fill {
  position: absolute;
  inset: 0;
  border-radius: 3.375px;
  background-color: var(--color-flare);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-filter-item__frame {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.22s ease;
}

.work-filter-item__tick {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  z-index: 2;
  color: var(--color-ash);
  opacity: 0;
  transform: scale(0.72);
  transform-origin: 50% 50%;
  transition:
    opacity 0.22s ease 0.1s,
    transform 0.22s ease 0.1s;
}

.work-filter-item__input:checked
  + .work-filter-item__control
  .work-filter-item__fill {
  transform: scaleX(1);
}

.work-filter-item__input:checked
  + .work-filter-item__control
  .work-filter-item__frame {
  opacity: 0;
}

.work-filter-item__input:checked
  + .work-filter-item__control
  .work-filter-item__tick {
  opacity: 1;
  transform: scale(0.72);
}

.work-filter-item__input:focus-visible + .work-filter-item__control {
  outline: 2px solid var(--color-ash);
  outline-offset: 3px;
  border-radius: 6px;
}

.work-filter-item__label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  color: var(--color-ash);
  text-transform: capitalize;
}

@media (prefers-reduced-motion: reduce) {
  .work-filter-item__fill,
  .work-filter-item__frame,
  .work-filter-item__tick {
    transition: none;
  }

  .work-filter-item__input:checked
    + .work-filter-item__control
    .work-filter-item__tick {
    transform: scale(0.78);
  }
}

.work-filter-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-filter-pill {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 16px;
  border: 1.25px solid var(--color-ash);
  border-radius: 56px;
  background: transparent;
  color: var(--color-ash);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}

.work-filter-pill:hover,
.work-filter-pill:focus-visible {
  border-color: var(--color-flare);
  color: var(--color-flare);
}

.work-filter-pill.is-active {
  background: var(--color-ash);
  border-color: var(--color-ash);
  color: var(--color-forge);
  font-weight: 400;
}

.work-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 8px;
  padding-top: 0;
}

.work-filter-reset {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--color-ash);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: capitalize;
  padding: 0;
}

.work-filter-reset__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  color: var(--color-ash);
}

.work-filter-reset__icon svg {
  display: block;
}

.work-filter-reset:hover .work-filter-reset__label,
.work-filter-reset:focus-visible .work-filter-reset__label {
  text-decoration: underline;
}

.work-filter-done {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border: 1.25px solid var(--color-flare);
  border-radius: 56px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--color-flare);
  background: transparent;
  cursor: pointer;
}

.work-filter-done:hover,
.work-filter-done:focus-visible {
  border-color: var(--color-ash);
  color: var(--color-ash);
}

@media (max-width: 768px) {
  .work-listing {
    --work-listing-split-max: none;

    padding-bottom: 40px;
  }

  .work-listing__split {
    max-width: none;
    margin-inline: 0;
    overflow-x: visible;
  }

  .work-hero {
    height: 100svh;
  }

  .work-hero__content {
    left: 24px;
    right: 24px;
    padding: 0 0 40px;
  }

  .work-hero__breadcrumb {
    top: 100px;
    left: 24px;
    right: 24px;
  }

  .work-hero__title {
    font-size: 28px;
    line-height: 32px;
  }

  .work-hero__client {
    font-size: 24px;
    line-height: 28px;
  }

  .work-hero__details {
    text-decoration-color: var(--color-ash);
  }

  .work-filter-bar {
    padding: 24px;
  }

  .work-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    justify-items: stretch;
    padding: 0 0 16px;
    gap: 16px;
  }

  .work-card {
    width: 100%;
    max-width: none;
    margin-inline: 0;

    aspect-ratio: 390 / 250;
    height: auto;
  }

  .work-show-more {

    padding: 24px 24px 0;
  }

  .work-filter-panel {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    max-height: none;
    box-sizing: border-box;
    padding: 24px;
    overflow-y: visible;
    transform: none;
    transition: none;
    z-index: auto;
  }

  .work-filter-panel:not(.is-open) {
    display: none;
  }

  .work-filter-panel.is-open {
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    padding-bottom: 40px;
  }

  .work-filter-overlay {
    display: none !important;
    pointer-events: none;
  }
}
