.cases-page {
  background: #000;
  color: #fdfcfc;
}

.cases-main {
  position: relative;
  z-index: 1;
  background: #000;
}

.cases-hero {
  position: relative;
  display: flex;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding: 0 var(--page-gutter) clamp(72px, 15.82vh, 140px);
  background: #000;
  isolation: isolate;
}

@supports (height: 100svh) {
  .cases-hero {
    height: 100svh;
  }
}

.cases-hero__media {
  position: absolute;
  z-index: 0;
  inset: 0 0 -0.01%;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: url("https://deckdocs.com/wp-content/uploads/kodety/assets/assets/cases/cases-cover-mask-a445bd805518.svg");
  mask-image: url("https://deckdocs.com/wp-content/uploads/kodety/assets/assets/cases/cases-cover-mask-a445bd805518.svg");
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  mask-mode: alpha;
}

.cases-hero__background {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.012);
  transform-origin: 50% 35%;
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.cases-hero__background.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.cases-hero__background img {
  position: absolute;
  top: 0;
  left: -25.03%;
  display: block;
  width: 150.06%;
  max-width: none;
  height: 100%;
}

.cases-hero__background:not(:first-child) img {
  filter: brightness(0.62) saturate(0.86);
  object-fit: cover;
}

.cases-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1216px, calc(100vw - (var(--page-gutter) * 2)));
  height: 225px;
  max-width: 1216px;
  grid-template-columns: minmax(0, 580px) 440px;
  align-items: start;
  justify-content: space-between;
}

.cases-hero__copy {
  display: flex;
  width: 580px;
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 19px;
}

.cases-hero__eyebrow,
.cases-hero__title,
.cases-hero__description,
.cases-hero__projects-title {
  margin: 0;
  color: #fdfcfc;
  font-weight: 400;
}

.cases-hero__eyebrow {
  width: 100%;
  font-family: "Instrument Sans", sans-serif;
  font-size: 24px;
  font-variation-settings: "wdth" 100;
  letter-spacing: -0.48px;
  line-height: 33.6px;
}

.cases-hero__title {
  width: 580px;
  max-width: 100%;
  font-family: "Sora", sans-serif;
  font-size: 56px;
  letter-spacing: -2.24px;
  line-height: 67.2px;
  white-space: nowrap;
}

.cases-hero__description {
  width: 580px;
  max-width: 100%;
  font-family: "Instrument Sans", sans-serif;
  font-size: 20px;
  font-variation-settings: "wdth" 100;
  letter-spacing: -0.4px;
  line-height: 28px;
}

.cases-hero__projects {
  display: flex;
  width: 440px;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.cases-hero__projects-title {
  width: 100%;
  font-family: "Instrument Sans", sans-serif;
  font-size: 20px;
  font-variation-settings: "wdth" 100;
  letter-spacing: -0.4px;
  line-height: 28px;
}

.cases-hero__project-list {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.cases-hero__project-row {
  width: 100%;
  opacity: 0.6;
}

.cases-hero__project {
  display: flex;
  width: 100%;
  height: 39px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgba(250, 243, 236, 0.15);
  border-radius: 0;
  background: transparent;
  color: #fdfcfc;
  cursor: pointer;
  font: inherit;
  opacity: 0.4;
  text-align: left;
  text-decoration: none;
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-appearance: none;
  appearance: none;
}

.cases-hero__project.is-active {
  opacity: 1;
}

.cases-hero__project:focus-visible {
  outline: 0;
}

.cases-hero__project-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  font-family: "Instrument Sans", sans-serif;
  font-size: 14px;
  font-variation-settings: "wdth" 100;
  font-weight: 400;
  letter-spacing: -0.28px;
  line-height: 19.6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cases-hero__tags {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cases-hero__tags > span {
  display: flex;
  height: 23px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.03);
  font-family: "Instrument Sans", sans-serif;
  font-size: 14px;
  font-variation-settings: "wdth" 100;
  font-weight: 400;
  letter-spacing: -0.28px;
  line-height: 22.4px;
  white-space: nowrap;
}

@media (min-width: 1100px) and (max-width: 1249px) {
  .cases-hero__content {
    column-gap: 30px;
    grid-template-columns: minmax(0, 1fr) 440px;
  }

  .cases-hero__title {
    font-size: clamp(48px, 4.48vw, 56px);
    letter-spacing: -0.04em;
    line-height: 1.2;
    white-space: normal;
  }
}

@media (max-width: 1099px) {
  .cases-hero {
    height: auto;
    min-height: max(720px, 100svh);
    align-items: flex-end;
    padding: clamp(144px, 18vh, 190px) var(--page-gutter) clamp(44px, 7vh, 72px);
  }

  .cases-hero__content {
    display: flex;
    width: 100%;
    height: auto;
    max-width: 760px;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(48px, 8vh, 76px);
  }

  .cases-hero__copy,
  .cases-hero__title,
  .cases-hero__description,
  .cases-hero__projects {
    width: 100%;
  }

  .cases-hero__title {
    font-size: clamp(44px, 7vw, 64px);
    letter-spacing: -0.04em;
    line-height: 1.12;
    text-wrap: balance;
    white-space: normal;
  }

  .cases-hero__description {
    max-width: 620px;
    font-size: clamp(18px, 2.6vw, 22px);
    line-height: 1.4;
    text-wrap: balance;
  }

  .cases-hero__desktop-break {
    display: none;
  }

  .cases-hero__background img {
    left: -50%;
    width: 200%;
  }
}

@media (max-width: 700px) {
  .cases-hero {
    height: 100svh;
    min-height: 767px;
    align-items: flex-start;
    padding: 96px 24px 64px;
  }

  .cases-hero__content {
    width: 345px;
    max-width: 100%;
    align-items: center;
    gap: 40px;
  }

  .cases-hero__copy {
    width: 345px;
    align-items: center;
    gap: 24px;
    text-align: center;
  }

  .cases-hero__eyebrow {
    font-size: 18px;
    letter-spacing: -0.54px;
    line-height: normal;
  }

  .cases-hero__title {
    width: 221px;
    font-size: 40px;
    letter-spacing: -2px;
    line-height: 40px;
    text-wrap: balance;
  }

  .cases-hero__description {
    width: 345px;
    font-size: 20px;
    letter-spacing: 0;
    line-height: normal;
    text-wrap: balance;
  }

  .cases-hero__projects {
    width: 345px;
    max-width: 100%;
    gap: 24px;
  }

  .cases-hero__projects-title {
    font-size: 16px;
    letter-spacing: -0.48px;
    line-height: normal;
  }

  .cases-hero__project-list {
    gap: 0;
    border-bottom: 1px solid #4a4a4a;
  }

  .cases-hero__project-row {
    opacity: 1;
  }

  .cases-hero__project {
    height: 40px;
    padding: 10px;
    border-bottom-color: #4a4a4a;
    opacity: 0.25;
  }

  .cases-hero__project-name {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.48px;
    line-height: 0.924;
  }

  .cases-hero__tags {
    gap: 5px;
  }

  .cases-hero__tags > span {
    height: 20px;
    padding: 2px 10px;
    border-color: currentColor;
    font-size: 12px;
    letter-spacing: -0.36px;
    line-height: 1;
  }

  .cases-hero__media {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .cases-hero__media::after {
    position: absolute;
    z-index: 5;
    inset: 0;
    background: linear-gradient(to bottom, transparent 3.25%, #000 73.582%);
    content: "";
  }

  .cases-hero__background img {
    top: -26.11%;
    left: -243.65%;
    width: 475.9%;
    height: 152.45%;
    object-fit: fill;
  }

  .cases-hero__background:not(:first-child) img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cases-hero__background,
  .cases-hero__project {
    transition: none;
  }
}

/* Cases directory */
html.is-centering-case {
  scroll-behavior: auto;
}

.cases-directory {
  --case-row-height: 114px;
  --case-expanded-height: 400px;
  --case-motion-duration: 760ms;

  position: relative;
  width: 100%;
  padding: 120px var(--page-gutter) 150px;
  overflow: clip;
  background: #000;
  color: #fdfcfc;
}

.cases-directory.is-filter-panel-open {
  z-index: 20;
  overflow: visible;
}

.cases-directory__inner {
  width: min(1216px, 100%);
  margin-inline: auto;
}

.cases-directory__title {
  height: 48px;
  margin: 0;
  color: #fdfcfc;
  font-family: "Sora", sans-serif;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -2.4px;
  line-height: 1;
}

.cases-directory__search {
  display: flex;
  width: 100%;
  height: 40px;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  padding: 0 11px;
  border: 1px solid #262423;
  border-radius: 3px;
  background: #000;
  color: #89898e;
}

.cases-directory__search > img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.cases-directory__search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fdfcfc;
  font-family: "Instrument Sans", sans-serif;
  font-size: 14px;
  font-variation-settings: "wdth" 100;
  font-weight: 400;
  letter-spacing: 0;
  line-height: normal;
  -webkit-appearance: none;
  appearance: none;
}

.cases-directory__search input::placeholder {
  color: #89898e;
  opacity: 1;
}

.cases-directory__search input::-webkit-search-cancel-button {
  display: none;
}

.cases-directory__search:focus-within {
  border-color: rgba(253, 252, 252, 0.42);
}

.cases-directory__tools {
  display: flex;
  height: 20px;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 28px;
  color: #89898e;
  font-family: "Instrument Sans", sans-serif;
  font-size: 14px;
  font-variation-settings: "wdth" 100;
  font-weight: 400;
  line-height: 20px;
}

.cases-directory__tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.cases-directory__tool img {
  width: 13px;
  height: 12px;
  flex: 0 0 auto;
}

.cases-directory__list {
  width: 100%;
  margin-top: 29px;
}

.cases-directory .case-card[hidden] {
  display: none;
}

.cases-directory .case-card {
  position: relative;
  isolation: auto;
  display: block;
  width: 100%;
  height: auto;
  padding: 0 0 var(--case-row-height);
  overflow: visible;
  border: 0;
  background: transparent;
  transform: none;
  transition: padding-bottom var(--case-motion-duration) cubic-bezier(0.22, 1, 0.36, 1);
}

.cases-directory .case-card.is-expanded {
  padding: 0;
}

.cases-directory .case-card::before,
.cases-directory .case-card::after {
  display: none;
  content: none;
}

.cases-directory .case-card.is-expanded::after {
  position: absolute;
  z-index: 4;
  inset: auto 0 0;
  display: block;
  width: 100%;
  height: 1px;
  background: #262423;
  box-shadow: none;
  content: "";
  opacity: 1;
  pointer-events: none;
  transform: none;
  transition: none;
}

.case-card__reveal {
  display: block;
  width: 100%;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    height var(--case-motion-duration) cubic-bezier(0.22, 1, 0.36, 1),
    opacity 360ms ease;
}

.case-card__reveal-inner {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.case-card__media {
  position: relative;
  width: 100%;
  height: var(--case-expanded-height);
  overflow: hidden;
  background: #0e295f;
  opacity: 0;
  transform: scale(1.018);
  transform-origin: 50% 50%;
  transition:
    opacity 460ms ease 40ms,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.case-card__media > img {
  position: absolute;
  display: block;
  max-width: none;
}

.case-card__media > picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.case-card__media > picture > img {
  position: absolute;
  display: block;
  max-width: none;
}

.case-card__media--gamma > img,
.case-card__media--gamma > picture > img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.case-card__media--cover > img,
.case-card__media--cover > picture > img {
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  object-fit: cover;
  object-position: center;
}

.cases-directory .case-card.is-expanded .case-card__reveal {
  height: var(--case-expanded-height);
  opacity: 1;
}

.cases-directory .case-card.is-expanded .case-card__media {
  opacity: 1;
  transform: scale(1);
}

.case-card__summary {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  display: grid;
  width: 100%;
  height: 114px;
  grid-template-columns: 532px 190px 120px 170px;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #262423;
  border-radius: 0;
  outline: 0;
  background: #000;
  color: #fdfcfc;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    height var(--case-motion-duration) cubic-bezier(0.22, 1, 0.36, 1),
    grid-template-columns var(--case-motion-duration) cubic-bezier(0.22, 1, 0.36, 1),
    gap var(--case-motion-duration) cubic-bezier(0.22, 1, 0.36, 1),
    padding var(--case-motion-duration) cubic-bezier(0.22, 1, 0.36, 1),
    background-color 420ms ease,
    color 420ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.case-card__summary:hover {
  background: rgba(255, 255, 255, 0.025);
}

.case-card__summary:focus-visible {
  border-bottom-color: rgba(253, 252, 252, 0.6);
  box-shadow: none;
}

.cases-directory .case-card.is-expanded .case-card__summary {
  height: 126px;
  grid-template-columns:
    minmax(0, 2fr)
    minmax(0, 1.25fr)
    minmax(0, 0.9fr)
    minmax(0, 1.15fr);
  justify-content: normal;
  gap: clamp(32px, 3.2vw, 56px);
  padding-inline: 40px;
  border-bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(48px) saturate(1.12);
  backdrop-filter: blur(48px) saturate(1.12);
}

.cases-directory .case-card.is-expanded .case-card__summary:hover {
  background: rgba(0, 0, 0, 0.8);
}

.cases-directory .case-card.is-expanded .case-card__summary:focus-visible {
  border-bottom: 0;
  box-shadow: none;
}

.case-card__company {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: #fdfcfc;
  font-family: "Sora", sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.6px;
  line-height: 1;
  white-space: nowrap;
}

.case-card__company img {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition:
    opacity 320ms ease 130ms,
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1) 80ms;
}

.cases-directory .case-card.is-expanded .case-card__company img {
  opacity: 1;
  transform: translate(0, 0);
}

.cases-directory .case-card.is-expanded .case-card__company {
  overflow: visible;
  line-height: 1.15;
  white-space: normal;
  text-wrap: balance;
}

.case-card__metric {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: #fdfcfc;
  font-family: "Instrument Sans", sans-serif;
  font-size: 18px;
  font-variation-settings: "wdth" 100;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.case-card__metric small {
  display: block;
  color: #b3b3b7;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
}

.case-card__metric > span {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-card__mobile-details {
  display: none;
}

.cases-directory__empty {
  margin: 42px 0 0;
  color: #89898e;
  font-family: "Instrument Sans", sans-serif;
  font-size: 16px;
  text-align: center;
}

.cases-directory__load {
  display: flex;
  width: 134px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin: 29px auto 0;
  padding: 0 20px;
  border: 1px solid #363636;
  border-radius: 999px;
  background: transparent;
  color: #c7c7c7;
  cursor: pointer;
  font-family: "Instrument Sans", sans-serif;
  font-size: 14px;
  font-variation-settings: "wdth" 100;
  font-weight: 400;
  line-height: 1;
  transition:
    border-color 260ms ease,
    color 260ms ease,
    background-color 260ms ease;
}

.cases-directory__load:hover,
.cases-directory__load:focus-visible {
  border-color: rgba(253, 252, 252, 0.65);
  outline: 0;
  background: rgba(255, 255, 255, 0.05);
  color: #fdfcfc;
}

@media (min-width: 1100px) and (max-width: 1249px) {
  .case-card__summary {
    grid-template-columns: minmax(280px, 1fr) 18% 13% 18%;
    gap: 24px;
  }

  .cases-directory .case-card.is-expanded .case-card__summary {
    grid-template-columns:
      minmax(0, 2fr)
      minmax(0, 1.25fr)
      minmax(0, 0.9fr)
      minmax(0, 1.15fr);
    justify-content: normal;
    gap: clamp(24px, 3vw, 40px);
  }
}

@media (max-width: 1099px) {
  .cases-directory {
    padding-top: clamp(88px, 11vw, 120px);
  }

  .cases-directory__title {
    font-size: clamp(40px, 5.4vw, 48px);
    letter-spacing: -0.05em;
  }

  .case-card__summary {
    grid-template-columns: minmax(210px, 1.35fr) minmax(120px, 0.7fr) minmax(90px, 0.55fr) minmax(150px, 0.8fr);
    justify-content: space-between;
    gap: clamp(14px, 2.2vw, 24px);
    padding-inline: 24px;
  }

  .cases-directory .case-card.is-expanded .case-card__summary {
    grid-template-columns:
      minmax(0, 2fr)
      minmax(0, 1.25fr)
      minmax(0, 0.9fr)
      minmax(0, 1.15fr);
    justify-content: normal;
    gap: clamp(18px, 2.4vw, 28px);
    padding-inline: 24px;
  }

}

@media (max-width: 700px) {
  .cases-directory {
    --case-row-height: 112px;
    --case-expanded-height: 640px;

    padding: 64px 24px;
  }

  .cases-directory__inner {
    width: 100%;
  }

  .cases-directory__title {
    height: auto;
    min-height: 32px;
    font-size: 32px;
    letter-spacing: -1.6px;
    line-height: 1.05;
  }

  .cases-directory__search,
  .cases-directory__tools {
    display: none;
  }

  .cases-directory__list {
    margin-top: 32px;
  }

  .cases-directory .case-card {
    padding: 0 0 var(--case-row-height);
  }

  .cases-directory .case-card.is-expanded {
    padding: 0;
  }

  .case-card__summary,
  .cases-directory .case-card.is-expanded .case-card__summary {
    height: 112px;
    grid-template-columns: minmax(0, 1fr) max-content;
    justify-content: space-between;
    gap: 18px;
    padding: 0;
    background: #000;
  }

  .cases-directory .case-card.is-expanded .case-card__summary {
    height: 0;
    padding: 0;
    border: 0;
    opacity: 0;
  }

  .case-card__company {
    font-size: 20px;
    letter-spacing: -0.6px;
  }

  .case-card__company img,
  .cases-directory .case-card.is-expanded .case-card__company img {
    display: none;
  }

  .case-card__metric {
    align-items: flex-end;
    font-size: 16px;
    letter-spacing: 0;
    text-align: right;
  }

  .case-card__metric small {
    color: #89898e;
    font-size: 14px;
  }

  .case-card__summary > .case-card__metric:nth-child(2),
  .case-card__summary > .case-card__metric:nth-child(4) {
    display: none;
  }

  .case-card__media {
    height: var(--case-expanded-height);
    transform: scale(1.01);
  }

  .case-card__media--gamma > picture > img,
  .case-card__media--gamma > img {
    top: -25.8px;
    left: -250.4px;
    width: 757.5px;
    height: 665.7px;
    object-fit: fill;
    object-position: initial;
  }

  .case-card__media--cover > img {
    inset: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    filter: brightness(0.72) saturate(0.9);
  }

  .case-card__mobile-details {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    min-height: 234px;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 24px;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(48px) saturate(1.12);
    backdrop-filter: blur(48px) saturate(1.12);
    color: #fff;
    font-family: "Instrument Sans", sans-serif;
    font-variation-settings: "wdth" 100;
  }

  .case-card__mobile-heading {
    display: flex;
    min-height: 32px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .case-card__mobile-heading > span:first-child {
    min-width: 0;
    overflow: hidden;
    font-family: "Sora", sans-serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.72px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .case-card__mobile-heading > span:last-child {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
  }

  .case-card__mobile-arrow {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
  }

  .case-card__mobile-arrow img {
    display: block;
    width: 10px;
    height: 10px;
  }

  .case-card__mobile-details > p {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    text-wrap: balance;
  }

  .case-card__mobile-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    line-height: 1.2;
  }

  .case-card__mobile-meta > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
    white-space: nowrap;
  }

  .case-card__mobile-meta small {
    color: #89898e;
    font-size: 12px;
  }

  .cases-directory__load {
    width: 134px;
    height: 32px;
    margin-top: 24px;
    color: #4a4a4a;
    font-size: 16px;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-card__reveal,
  .case-card__media,
  .case-card__summary,
  .case-card__company img {
    transition: none;
  }
}

/* DECKDOCS_CASE_DIRECTORY_FILTERS_START */
.cases-directory__tools {
  position: relative;
  /* Keep both popups above the expanded card's full-surface link. */
  z-index: 10;
  height: auto;
  min-height: 20px;
}

.cases-directory__tool {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.cases-directory__tool:hover,
.cases-directory__tool:focus-visible,
.cases-directory__tool[aria-expanded="true"] {
  color: #fdfcfc;
}

.cases-directory__tool:focus-visible,
.cases-directory__filter-clear:focus-visible,
.cases-directory__dropdown-toggle:focus-visible {
  outline: 1px solid rgba(253, 252, 252, 0.72);
  outline-offset: 4px;
}

.cases-directory__tool[data-sort-direction="oldest"] img {
  transform: rotate(180deg);
}

.cases-directory__active-filters {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.cases-directory__active-filters[hidden] {
  display: none;
}

.cases-directory__active-filter {
  display: inline-flex;
  max-width: 220px;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid rgba(253, 252, 252, 0.26);
  border-radius: 999px;
  background: rgba(253, 252, 252, 0.1);
  color: #fdfcfc;
  font: 400 12px/18px "Instrument Sans", sans-serif;
  cursor: pointer;
}

.cases-directory__active-filter-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cases-directory__active-filter-remove {
  flex: 0 0 auto;
  color: #aaa9ad;
  font-size: 16px;
  line-height: 1;
}

.cases-directory__active-filter:hover,
.cases-directory__active-filter:focus-visible {
  border-color: rgba(253, 252, 252, 0.56);
  outline: none;
  background: rgba(253, 252, 252, 0.16);
}

.cases-directory__filter-panel {
  position: absolute;
  z-index: 12;
  top: calc(100% + 14px);
  left: 0;
  display: grid;
  width: min(428px, calc(100vw - 48px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(253, 252, 252, 0.12);
  border-radius: 8px;
  background: #111;
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.52);
}

.cases-directory__filter-panel[hidden] {
  display: none;
}

.cases-directory__filter-panel.is-opening-up {
  top: auto;
  bottom: calc(100% + 14px);
}

.cases-directory__filter-field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.cases-directory__filter-label {
  padding-inline: 2px;
  color: #77777c;
  font: 500 10px/1.2 "Instrument Sans", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cases-directory__dropdown {
  position: relative;
  width: 100%;
  min-width: 0;
}

.cases-directory__dropdown-toggle {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px 0 14px;
  border: 1px solid rgba(253, 252, 252, 0.12);
  border-radius: 6px;
  background: #1a1a1a;
  color: #d8d7da;
  font: 400 13px/1 "Instrument Sans", sans-serif;
  text-align: left;
  cursor: pointer;
}

.cases-directory__dropdown-toggle > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cases-directory__dropdown-toggle:hover,
.cases-directory__dropdown-toggle[aria-expanded="true"] {
  border-color: rgba(253, 252, 252, 0.28);
  background: #1f1f1f;
  color: #fdfcfc;
}

.cases-directory__dropdown-toggle:focus-visible {
  outline: 1px solid rgba(253, 252, 252, 0.72);
  outline-offset: 2px;
}

.cases-directory__dropdown-chevron {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  color: #85858a;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.cases-directory__dropdown-toggle[aria-expanded="true"] .cases-directory__dropdown-chevron {
  transform: translateY(2px) rotate(225deg);
}

.cases-directory__dropdown-menu {
  position: absolute;
  z-index: 3;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  width: 100%;
  max-height: 224px;
  gap: 2px;
  padding: 5px;
  overflow-y: auto;
  border: 1px solid rgba(253, 252, 252, 0.13);
  border-radius: 6px;
  background: #171717;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.cases-directory__dropdown-menu[hidden],
.cases-directory__dropdown-option[hidden] {
  display: none;
}

.cases-directory__dropdown-option {
  position: relative;
  width: 100%;
  min-height: 36px;
  padding: 9px 30px 9px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #aaa9ad;
  font: 400 13px/1.3 "Instrument Sans", sans-serif;
  text-align: left;
  cursor: pointer;
}

.cases-directory__dropdown-option:hover,
.cases-directory__dropdown-option:focus-visible {
  outline: none;
  background: rgba(253, 252, 252, 0.065);
  color: #fdfcfc;
}

.cases-directory__dropdown-option[aria-selected="true"] {
  background: rgba(253, 252, 252, 0.09);
  color: #fdfcfc;
}

.cases-directory__dropdown-option[aria-selected="true"]::after {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 7px;
  height: 4px;
  border-bottom: 1px solid currentColor;
  border-left: 1px solid currentColor;
  content: "";
  transform: translateY(-65%) rotate(-45deg);
}

.cases-directory__filter-clear {
  grid-column: 1 / -1;
  justify-self: end;
  min-height: 28px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: #aaa9ad;
  font: 400 13px/1.4 "Instrument Sans", sans-serif;
  cursor: pointer;
}

.cases-directory__filter-clear:hover {
  color: #fdfcfc;
}

@media (max-width: 700px) {
  .cases-directory__tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 24px;
  }

  .cases-directory__active-filters {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
  }

  .cases-directory__filter-panel {
    width: 100%;
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .cases-directory__filter-clear {
    grid-column: auto;
  }
}
/* DECKDOCS_CASE_DIRECTORY_FILTERS_END */

/* Tracker revisions: consistent metadata, explicit navigation, two filters. */
.cases-hero {
  height: auto;
  min-height: 650px;
  align-items: flex-start;
  padding: 156px var(--page-gutter) 104px;
}
.cases-hero__content { height: auto; align-items: start; }
.cases-hero__projects { margin-top: 10px; }
.cases-hero__project-list { gap: 8px; border-bottom: 0; }
.cases-hero__project-row {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  opacity: 1;
}
.cases-hero__project-row::after {
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: #fff;
  content: "";
  transform: scaleX(var(--case-progress, 0));
  transform-origin: left;
}
.cases-hero__project-row:not(.is-active)::after { transform: scaleX(0); }
.cases-hero__project { height: 44px; min-width: 0; padding: 8px 0; border: 0; color: rgba(255, 255, 255, 0.45); opacity: 1; transition: color 160ms ease; touch-action: manipulation; }
.cases-hero__project.is-active { color: #fff; opacity: 1; }
.cases-hero__project-name { font-size: 16px; line-height: 1.4; font-weight: 400; letter-spacing: 0; }
.cases-hero__project-link {
  display: grid;
  width: 36px;
  height: 44px;
  flex: 0 0 36px;
  place-items: center;
  color: #fff;
  font: 24px/1 "Instrument Sans", sans-serif;
  opacity: 0;
  text-decoration: none;
  transition: opacity 160ms ease;
}
.cases-hero__project-row:hover .cases-hero__project-link,
.cases-hero__project-row:has(:focus-visible) .cases-hero__project-link { opacity: 1; }
.cases-hero__project:focus-visible,
.cases-hero__project-link:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }
.cases-directory { --case-row-height: 126px; --case-motion-duration: 320ms; padding-top: 88px; }
/* Desktop retains the original cover with its information band overlaid below. */
@media (min-width: 701px) {
  .cases-directory .case-card .case-card__summary,
  .cases-directory .case-card.is-expanded .case-card__summary {
    height: var(--case-row-height);
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    justify-content: normal;
    gap: clamp(32px, 3.2vw, 56px);
    padding-inline: 40px;
  }

  .cases-directory .case-card .case-card__company,
  .cases-directory .case-card.is-expanded .case-card__company {
    overflow: visible;
    line-height: 1.15;
    white-space: normal;
    text-wrap: balance;
  }

  .cases-directory .case-card .case-card__metric > span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: break-word;
  }

  /* Only the dedicated action is visible here; the description belongs to mobile. */
  .cases-directory .case-card .case-card__mobile-details,
  .cases-directory .case-card .case-card__mobile-heading {
    display: contents;
  }

  .cases-directory .case-card .case-card__mobile-heading > span,
  .cases-directory .case-card .case-card__mobile-details > p,
  .cases-directory .case-card .case-card__mobile-meta {
    display: none;
  }

  .cases-directory .case-card .deckdocs-content-case-link {
    position: absolute;
    z-index: 1;
    top: 24px;
    right: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font: 400 14px/1.4 "Sora", sans-serif;
    text-decoration: none;
  }

  .cases-directory .case-card .deckdocs-content-case-link:hover { opacity: 0.7; }
  .cases-directory .case-card .deckdocs-content-case-link:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }
}

@media (max-width: 700px) {
  .cases-directory .case-card { display: flex; flex-direction: column; padding: 0; }
  .cases-directory .case-card.is-expanded { padding: 0; }
  .cases-directory .case-card.is-expanded::after { display: none; }
  .cases-directory .case-card .case-card__summary,
  .cases-directory .case-card.is-expanded .case-card__summary {
    position: relative;
    inset: auto;
    order: 0;
    height: var(--case-row-height);
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.25fr) minmax(0, 0.9fr) minmax(0, 1.15fr);
    justify-content: normal;
    gap: clamp(24px, 3.2vw, 56px);
    padding: 0 40px;
    border-bottom: 1px solid #262423;
    background: #000;
    opacity: 1;
    backdrop-filter: none;
    transition: background-color 160ms ease;
  }
  .cases-directory .case-card .case-card__summary:hover { background: #111; }
  .cases-directory .case-card .case-card__summary:focus-visible { outline: 1px solid #aaa; outline-offset: -2px; }
  .cases-directory .case-card .case-card__company { line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
  .cases-directory .case-card .case-card__company img { display: none; }
  .cases-directory .case-card .case-card__metric > span { white-space: normal; overflow-wrap: anywhere; }
  .cases-directory .case-card .case-card__reveal,
  .cases-directory .case-card.is-expanded .case-card__reveal {
    position: relative;
    inset: auto;
    order: 1;
    display: grid;
    grid-template-rows: 0fr;
    height: auto;
    opacity: 1;
    pointer-events: auto;
    transition: grid-template-rows var(--case-motion-duration) ease;
  }
  .cases-directory .case-card.is-expanded .case-card__reveal { grid-template-rows: 1fr; }
  .cases-directory .case-card .case-card__reveal-inner { height: auto; min-height: 0; overflow: hidden; }
  .cases-directory .case-card .case-card__media {
    display: flex;
    height: auto;
    flex-direction: column;
    overflow: hidden;
    background: #090909;
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
  .cases-directory .case-card .case-card__media > img,
  .cases-directory .case-card .case-card__media > picture {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: 400px;
    aspect-ratio: auto;
    object-fit: cover;
  }
  .cases-directory .case-card .case-card__media > picture > img {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .cases-directory .case-card .case-card__mobile-details {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 40px 32px;
    background: #090909;
    color: #fff;
  }
  .cases-directory .case-card .case-card__mobile-heading { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
  .cases-directory .case-card .case-card__mobile-heading > span:first-child { display: none; }
  .cases-directory .case-card .case-card__mobile-details p { max-width: 720px; margin: 0; color: #89898e; font: 16px/1.5 "Instrument Sans", sans-serif; letter-spacing: 0; }
  .cases-directory .case-card .case-card__mobile-meta { display: none; }
  .cases-directory .case-card .deckdocs-content-case-link {
    position: static;
    inset: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: #fff;
    font: 400 14px/1.4 "Sora", sans-serif;
    text-decoration: none;
  }
  .cases-directory .case-card .deckdocs-content-case-link:hover { opacity: 0.7; }
  .cases-directory .case-card .deckdocs-content-case-link:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }
}
.cases-directory__sort { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.cases-directory__sort > span { white-space: nowrap; }
.cases-directory__sort .cases-directory__dropdown { width: auto; }
.cases-directory__sort .cases-directory__dropdown-toggle { width: auto; min-width: 132px; height: 36px; }
.cases-directory__sort .cases-directory__dropdown-menu { left: auto; right: 0; width: max(100%, 196px); }
/* Anchor the shared filter surface to its trigger even with the CMS bridge loaded. */
.cases-directory .cases-directory__filter-panel { left: 0; right: auto; }
.cases-directory.is-filter-panel-open { z-index: 20; overflow: visible; }
.cases-directory__search { display: flex; }
.cases-directory .case-card[hidden], .cases-directory__load[hidden], .cases-directory__empty[hidden] { display: none; }
@media (max-width: 1099px) {
  .cases-hero { min-height: 0; padding-top: 136px; padding-bottom: 72px; }
  .cases-hero__content { gap: 48px; }
  .cases-directory .case-card .case-card__summary,
  .cases-directory .case-card.is-expanded .case-card__summary { gap: 20px; padding-inline: 24px; }
}
@media (max-width: 700px) {
  .cases-hero { height: auto; min-height: 0; padding: 132px 24px 64px; }
  .cases-hero__content { gap: 40px; }
  .cases-hero__projects { margin-top: 0; }
  .cases-hero__description { line-height: 1.4; }
  .cases-hero__project-list { gap: 0; border: 0; }
  .cases-hero__project { padding: 10px 0; }
  .cases-hero__background { transition-duration: 250ms; }
  .cases-hero__project-row:not(.is-active) .cases-hero__project-link { opacity: 0; visibility: hidden; }
  .cases-hero__project-row.is-active .cases-hero__project-link { pointer-events: auto; }
  .cases-hero__project-link { width: 30px; flex-basis: 30px; }
  .cases-hero__project-row.is-active .cases-hero__project-link { opacity: 1; }
  .cases-hero__project-name { font-size: 16px; }
  .cases-directory { --case-row-height: 146px; padding: 56px 24px 64px; }
  .cases-directory__tools { gap: 16px; }
  .cases-directory__sort { flex-wrap: wrap; gap: 2px; }
  .cases-directory__sort .cases-directory__dropdown-toggle { min-width: 0; }
  .cases-directory .case-card .case-card__summary,
  .cases-directory .case-card.is-expanded .case-card__summary {
    order: 2;
    height: auto;
    min-height: var(--case-row-height);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 16px 12px;
    padding: 24px 0;
    border-bottom: 1px solid #262423;
  }
  .cases-directory .case-card .case-card__company { grid-column: 1 / -1; font-size: 20px; }
  .cases-directory .case-card .case-card__metric { display: flex; width: auto; align-items: flex-start; font-size: 14px; text-align: left; }
  .cases-directory .case-card .case-card__metric small { font-size: 11px; }
  .cases-directory .case-card .case-card__metric > span { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
  .cases-directory .case-card .case-card__media > img,
  .cases-directory .case-card .case-card__media > picture { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
  .cases-directory .case-card .case-card__media > picture > img { height: auto; aspect-ratio: auto; object-fit: contain; }
  .cases-directory .case-card .case-card__mobile-details,
  .cases-directory .case-card .case-card__mobile-heading { display: contents; }
  .cases-directory .case-card .case-card__mobile-details > p,
  .cases-directory .case-card .case-card__mobile-heading > span,
  .cases-directory .case-card .case-card__mobile-meta { display: none; }
  .cases-directory .case-card .deckdocs-content-case-link {
    position: absolute;
    z-index: 3;
    inset: 12px 16px auto auto;
    padding: 6px 0;
    text-align: right;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cases-hero__background,
  .cases-hero__project,
  .cases-directory .case-card .case-card__reveal,
  .cases-directory .case-card.is-expanded .case-card__reveal { transition: none; }
}

.cases-hero__project-row.is-active { border-bottom-color: rgba(255, 255, 255, 0.65); }

/* Action arrows use the same SVG geometry as the Built for cards. */
.cases-hero__project-link .deckdocs-action-arrow {
  display: block;
  width: 20px;
  height: 20px;
}

.deckdocs-content-case-link .deckdocs-action-arrow {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

/* Tracker 29/09 — Case list: an open card is again one link to its case
   page (cover, information band and empty space); the first click opens
   the card. Same rules as the extension's frontend.css. */
.cases-directory .case-card > .case-card__expanded-link {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: block;
  cursor: pointer;
}
.cases-directory .case-card > .case-card__expanded-link[hidden] { display: none; }
.cases-directory .case-card > .case-card__expanded-link:focus-visible {
  outline: 1px solid #fff;
  outline-offset: -4px;
}

/* Tracker 29/09 — Hero background fade. The linear mask ended at 75% of the
   hero and left a visible edge on lighter covers (The Grid). An eased ramp
   that runs to the bottom keeps the same top coverage without the seam. */
@media (min-width: 1100px) {
  .cases-hero__media {
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 26%,
      rgba(0, 0, 0, 0.96) 32%,
      rgba(0, 0, 0, 0.89) 38%,
      rgba(0, 0, 0, 0.79) 44%,
      rgba(0, 0, 0, 0.66) 50%,
      rgba(0, 0, 0, 0.52) 56%,
      rgba(0, 0, 0, 0.38) 62%,
      rgba(0, 0, 0, 0.26) 68%,
      rgba(0, 0, 0, 0.16) 74%,
      rgba(0, 0, 0, 0.09) 80%,
      rgba(0, 0, 0, 0.04) 86%,
      rgba(0, 0, 0, 0.01) 92%,
      transparent 98%
    );
    mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 26%,
      rgba(0, 0, 0, 0.96) 32%,
      rgba(0, 0, 0, 0.89) 38%,
      rgba(0, 0, 0, 0.79) 44%,
      rgba(0, 0, 0, 0.66) 50%,
      rgba(0, 0, 0, 0.52) 56%,
      rgba(0, 0, 0, 0.38) 62%,
      rgba(0, 0, 0, 0.26) 68%,
      rgba(0, 0, 0, 0.16) 74%,
      rgba(0, 0, 0, 0.09) 80%,
      rgba(0, 0, 0, 0.04) 86%,
      rgba(0, 0, 0, 0.01) 92%,
      transparent 98%
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
}

/* Tracker 29/09 — Hero spacing (Figma): 256px above the content and the
   copy and the highlighted list share one bottom line. */
@media (min-width: 1100px) {
  .cases-hero {
    min-height: 0;
    padding-top: 256px;
  }

  .cases-hero__content {
    align-items: end;
  }

  .cases-hero__projects {
    margin-top: 0;
  }
}

/* Tracker 29/09 — CMS spotlight covers. The authored first background uses a
   fixed crop of the static composition; CMS covers (desktop and mobile
   uploads) always fill the hero proportionally instead. */
.cases-hero__background--cms img,
.cases-hero__background--cms:not(:first-child) img {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cases-hero__background--cms > picture {
  position: absolute;
  inset: 0;
  display: block;
}
