.kb-work-showcase-page {
  background: #0e0f11;
}

.kb-work-showcase {
  color: #f5f1e8;
  padding: 120px 0 100px;
}

.kb-work-showcase--home {
  background: #0e0f11;
  padding: 0;
  position: relative;
}

.kb-work-showcase__intro {
  padding: 0 0 28px;
}

.kb-work-showcase__intro-inner {
  max-width: 1180px;
  margin-left: clamp(20px, 8.33vw, 120px);
  margin-right: 20px;
}

.kb-work-showcase__eyebrow {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.72);
}

.kb-work-showcase__title {
  margin: 0;
  max-width: none;
  font-size: clamp(1.75rem, 2.2vw, 2.2rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.kb-work-showcase__title-line {
  display: block;
}

.kb-work-showcase__lead {
  margin: 26px 0 0;
  max-width: 580px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(245, 241, 232, 0.72);
}

.kb-work-showcase__stack {
  display: grid;
  gap: 0;
}

.kb-work-showcase__panel {
  --kb-work-mask-width: 26%;
  position: relative;
  width: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--kb-work-panel-bg, #0e0f11);
  box-shadow: none;
}

.kb-work-showcase__media-shell {
  position: relative;
  height: clamp(320px, 46vw, 650px);
}

.kb-work-showcase__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #07090d;
  transform-origin: center center;
}

.kb-work-showcase__media img,
.kb-work-showcase__media video,
.kb-work-showcase__media iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}

.kb-work-showcase__poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.kb-work-showcase__preview-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}

.kb-work-showcase__media-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 0.45s ease;
}

.kb-work-showcase__panel--left .kb-work-showcase__media-tint {
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.9) 0%, rgba(5, 8, 13, 0.68) 29%, rgba(5, 8, 13, 0.22) 60%, rgba(5, 8, 13, 0) 100%),
    linear-gradient(180deg, rgba(5, 8, 13, 0.08) 0%, rgba(5, 8, 13, 0.52) 100%);
}

.kb-work-showcase__panel--right .kb-work-showcase__media-tint {
  background:
    linear-gradient(270deg, rgba(5, 8, 13, 0.9) 0%, rgba(5, 8, 13, 0.68) 29%, rgba(5, 8, 13, 0.22) 60%, rgba(5, 8, 13, 0) 100%),
    linear-gradient(180deg, rgba(5, 8, 13, 0.08) 0%, rgba(5, 8, 13, 0.52) 100%);
}

.kb-work-showcase__mask {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  background: #0e0f11;
  z-index: 2;
}

.kb-work-showcase__mask--left {
  left: 0;
}

.kb-work-showcase__mask--right {
  right: 0;
}

.kb-work-showcase__content-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  padding: 56px 0;
}

.kb-work-showcase__content {
  width: min(520px, calc(50% - 84px));
}

.kb-work-showcase__frame {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.kb-work-showcase__panel--left .kb-work-showcase__content {
  margin-left: clamp(20px, 8.33vw, 120px);
  margin-right: 20px;
}

.kb-work-showcase__panel--right .kb-work-showcase__content {
  margin-left: auto;
  margin-right: clamp(20px, 8.33vw, 120px);
}

.kb-work-showcase__panel-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.72);
}

.kb-work-showcase__panel-title {
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 3.35rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.kb-work-showcase__panel-copy {
  margin: 18px 0 0;
  max-width: 34ch;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(245, 241, 232, 0.76);
}

.kb-work-showcase__detail-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.kb-work-showcase__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.kb-work-showcase__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.kb-work-showcase__tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(245, 241, 232, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kb-work-showcase__tag--hint {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(245, 241, 232, 0.7);
}

.kb-work-showcase__utility {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.kb-work-showcase__utility-label {
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.78);
}

.kb-work-showcase__utility-label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(245, 241, 232, 0.16);
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.28);
  backdrop-filter: blur(18px);
  text-align: right;
}

.kb-work-showcase__cta {
  display: inline-flex;
  align-items: center;
  margin-top: 28px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.48);
  color: inherit;
  font-size: 18px;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}

.kb-work-showcase__actions .kb-work-showcase__cta {
  margin-top: 0;
}

.kb-work-showcase__cta:hover,
.kb-work-showcase__cta:focus-visible {
  border-color: rgba(245, 241, 232, 1);
  color: inherit;
  opacity: 1;
}

.kb-work-showcase__audio-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(245, 241, 232, 0.22);
  border-radius: 999px;
  background: rgba(14, 15, 17, 0.32);
  color: #f5f1e8;
  backdrop-filter: blur(16px);
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.kb-work-showcase__audio-toggle:hover,
.kb-work-showcase__audio-toggle:focus-visible {
  border-color: rgba(245, 241, 232, 0.52);
  background: rgba(14, 15, 17, 0.48);
  transform: translateY(-1px);
}

.kb-work-showcase__audio-toggle:focus-visible {
  outline: 2px solid rgba(245, 241, 232, 0.38);
  outline-offset: 3px;
}

.kb-work-showcase__audio-toggle svg {
  width: 20px;
  height: 20px;
}

.kb-work-showcase__audio-toggle path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.kb-work-showcase__audio-toggle .icon-muted,
.kb-work-showcase__audio-toggle .icon-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kb-work-showcase__audio-toggle .icon-live {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.kb-work-showcase__audio-toggle[aria-pressed="true"] {
  border-color: rgba(245, 241, 232, 0.48);
  background: rgba(245, 241, 232, 0.12);
}

.kb-work-showcase__audio-toggle[aria-pressed="true"] .icon-muted {
  opacity: 0;
}

.kb-work-showcase__audio-toggle[aria-pressed="true"] .icon-live {
  opacity: 1;
}

.kb-work-showcase__panel[data-kb-preview-mode] .kb-work-showcase__preview-media {
  pointer-events: none;
}

.kb-work-showcase__panel[data-kb-preview-mode][data-preview-active="true"][data-preview-ready="true"] .kb-work-showcase__preview-media {
  opacity: 1;
}

.kb-work-showcase__panel[data-kb-preview-mode][data-preview-active="true"][data-preview-ready="true"] .kb-work-showcase__poster {
  opacity: 0;
}

.kb-work-showcase__panel[data-kb-preview-mode][data-preview-active="true"] .kb-work-showcase__media-tint {
  opacity: 0.72;
}

.kb-work-showcase--home .kb-work-showcase__intro {
  padding-bottom: 34px;
}

.kb-work-showcase--home .kb-work-showcase__slider {
  display: block;
  position: relative;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.kb-work-showcase--home .swiper-wrapper {
  height: 100%;
}

.kb-work-showcase--home .swiper-slide {
  height: 100%;
}

.kb-work-showcase--home .kb-work-showcase__panel {
  height: 100vh;
  min-height: 100vh;
}

.kb-work-showcase--home .kb-work-showcase__media-shell {
  height: 100%;
}

.kb-work-showcase--home .kb-work-showcase__mask {
  display: none;
}

.kb-work-showcase--home .kb-work-showcase__content-layer {
  align-items: flex-end;
  padding: 0;
}

.kb-work-showcase--home .kb-work-showcase__frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-end;
  column-gap: 18px;
  padding:
    0
    clamp(28px, 8.33vw, 120px)
    clamp(28px, 5.5vh, 64px);
}

.kb-work-showcase--home .kb-work-showcase__content,
.kb-work-showcase--home .kb-work-showcase__utility {
  opacity: 0;
  transition:
    opacity 0.72s ease,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.kb-work-showcase--home .kb-work-showcase__content {
  transform: translate3d(0, 52px, 0);
}

.kb-work-showcase--home .kb-work-showcase__utility {
  transform: translate3d(0, 36px, 0);
  transition-delay: 0.08s;
  justify-self: end;
  align-self: end;
}

.kb-work-showcase--home .swiper-slide-active .kb-work-showcase__content,
.kb-work-showcase--home .swiper-slide-active .kb-work-showcase__utility {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.kb-work-showcase--home .swiper-slide-prev .kb-work-showcase__content,
.kb-work-showcase--home .swiper-slide-prev .kb-work-showcase__utility {
  transform: translate3d(0, -34px, 0);
}

.kb-work-showcase--home .swiper-slide-next .kb-work-showcase__content,
.kb-work-showcase--home .swiper-slide-next .kb-work-showcase__utility {
  transform: translate3d(0, 34px, 0);
}

.kb-work-showcase--home .kb-work-showcase__content > * {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.kb-work-showcase--home .kb-work-showcase__content > *:nth-child(2) {
  transition-delay: 0.06s;
}

.kb-work-showcase--home .kb-work-showcase__content > *:nth-child(3) {
  transition-delay: 0.12s;
}

.kb-work-showcase--home .kb-work-showcase__content > *:nth-child(4) {
  transition-delay: 0.18s;
}

.kb-work-showcase--home .kb-work-showcase__content > *:nth-child(5) {
  transition-delay: 0.24s;
}

.kb-work-showcase--home .swiper-slide-active .kb-work-showcase__content > * {
  opacity: 1;
  transform: translateY(0);
}

.kb-work-showcase--home .kb-work-showcase__content,
.kb-work-showcase--home .kb-work-showcase__panel--left .kb-work-showcase__content,
.kb-work-showcase--home .kb-work-showcase__panel--right .kb-work-showcase__content {
  width: min(700px, 52vw);
  margin: 0;
}

.kb-work-showcase--home .kb-work-showcase__panel-title {
  max-width: 7.8ch;
  font-size: clamp(3rem, 6vw, 5.75rem);
  line-height: 0.88;
}

.kb-work-showcase--home .kb-work-showcase__panel-copy {
  max-width: 30ch;
  font-size: 15px;
  line-height: 1.55;
}

.kb-work-showcase--home .kb-work-showcase__detail-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.kb-work-showcase--home .kb-work-showcase__cta {
  margin: 0;
  font-size: 15px;
}

.kb-work-showcase--home .kb-work-showcase__utility {
  width: auto;
  max-width: none;
}

.kb-work-showcase--home .kb-work-showcase__utility-label {
  max-width: 100%;
  white-space: nowrap;
}

.kb-work-showcase--home .kb-work-showcase__media img,
.kb-work-showcase--home .kb-work-showcase__media video,
.kb-work-showcase--home .kb-work-showcase__media iframe {
  filter: saturate(0.94);
}

.kb-work-showcase--home .swiper-slide-active .kb-work-showcase__media img,
.kb-work-showcase--home .swiper-slide-active .kb-work-showcase__media video,
.kb-work-showcase--home .swiper-slide-active .kb-work-showcase__media iframe {
  filter: saturate(1);
}

.kb-work-showcase--home .kb-work-showcase__preview-media[data-portfolio-vimeo-hover] {
  inset: 50% auto auto 50%;
  width: max(100%, calc(100vh * 16 / 9));
  height: max(100%, calc(100vw * 9 / 16));
  transform: translate3d(-50%, -50%, 0);
}

.kb-work-showcase--home .kb-work-showcase__media-tint {
  opacity: 0.82;
}

.kb-work-showcase--home .swiper-slide-active .kb-work-showcase__media-tint {
  opacity: 0.68;
}

.kb-work-showcase--home .container-xxl {
  padding-top: 42px;
  padding-bottom: 100px;
}

.kb-work-showcase__empty {
  width: min(1680px, calc(100% - 40px));
  margin: 0 auto;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kb-work-showcase__empty-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
}

.kb-work-showcase__empty-copy {
  margin: 16px 0 0;
  max-width: 46ch;
  color: rgba(245, 241, 232, 0.72);
}

@media (max-width: 768px) {
  .kb-work-showcase {
    padding: 104px 0 80px;
  }

  .kb-work-showcase--home {
    padding: 0;
  }

  .kb-work-showcase__intro {
    padding-bottom: 12px;
  }

  .kb-work-showcase__intro-inner {
    margin: 0 20px;
  }

  .kb-work-showcase__title {
    max-width: none;
    font-size: 32px;
    line-height: 0.92;
    letter-spacing: -0.065em;
  }

  .kb-work-showcase__lead {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.65;
  }

  .kb-work-showcase__stack {
    gap: 0;
  }

  .kb-work-showcase__panel {
    width: 100%;
    min-height: 0;
    box-shadow: none;
  }

  .kb-work-showcase__media-shell {
    position: relative;
    height: clamp(280px, 72vw, 420px);
  }

  .kb-work-showcase--home .kb-work-showcase__slider,
  .kb-work-showcase--home .kb-work-showcase__panel,
  .kb-work-showcase--home .swiper-slide {
    height: 100dvh;
    min-height: 100dvh;
  }

  .kb-work-showcase__media-tint,
  .kb-work-showcase__panel--left .kb-work-showcase__media-tint,
  .kb-work-showcase__panel--right .kb-work-showcase__media-tint {
    background: linear-gradient(180deg, rgba(14, 15, 17, 0.04) 0%, rgba(14, 15, 17, 0.12) 42%, rgba(14, 15, 17, 0.9) 100%);
  }

  .kb-work-showcase__mask {
    width: 0;
  }

  .kb-work-showcase__content-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    padding: 16px 14px 14px;
    background: transparent;
  }

  .kb-work-showcase__content,
  .kb-work-showcase__panel--left .kb-work-showcase__content,
  .kb-work-showcase__panel--right .kb-work-showcase__content {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .kb-work-showcase__frame {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .kb-work-showcase--home .kb-work-showcase__content,
  .kb-work-showcase--home .kb-work-showcase__panel--left .kb-work-showcase__content,
  .kb-work-showcase--home .kb-work-showcase__panel--right .kb-work-showcase__content {
    width: min(78vw, 340px);
    margin: 0;
  }

  .kb-work-showcase--home .kb-work-showcase__frame {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-end;
    column-gap: 12px;
    padding: 0 20px 18px;
  }

  .kb-work-showcase--home .kb-work-showcase__preview-media[data-portfolio-vimeo-hover] {
    width: max(100%, calc(100dvh * 16 / 9));
    height: max(100%, calc(100vw * 9 / 16));
  }

  .kb-work-showcase__detail-footer {
    gap: 10px;
    margin-top: 10px;
  }

  .kb-work-showcase__utility {
    width: auto;
    min-width: 0;
    justify-self: end;
    align-items: center;
  }

  .kb-work-showcase__panel-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 0.92;
  }

  .kb-work-showcase--home .kb-work-showcase__panel-title {
    max-width: 7ch;
    font-size: clamp(2.35rem, 11vw, 3.9rem);
  }

  .kb-work-showcase__panel-copy {
    margin: 0;
    max-width: 28ch;
    font-size: 14px;
    line-height: 1.42;
  }

  .kb-work-showcase__actions {
    gap: 12px;
    margin-top: 12px;
  }

  .kb-work-showcase__tag {
    min-height: 34px;
    padding: 0 12px;
    font-size: 11px;
  }

  .kb-work-showcase__cta {
    align-self: flex-start;
    margin: 2px 0 0;
    padding-bottom: 4px;
    font-size: 16px;
  }

  .kb-work-showcase__audio-toggle {
    width: 42px;
    height: 42px;
  }

  .kb-work-showcase--home .container-xxl {
    padding-top: 28px;
    padding-bottom: 72px;
  }

  .kb-work-showcase__empty {
    width: calc(100% - 40px);
    padding: 36px 20px;
  }

  .kb-work-showcase__empty-title {
    font-size: 28px;
  }
}

@media (min-width: 992px) {
  .kb-work-showcase__title-line {
    white-space: nowrap;
  }
}
