.customer-cases-page {
  min-width: 0;
  background: #f3f7f9;
  color: #102b38;
}

.customer-cases-page.case-video-open {
  overflow: hidden;
}

.customer-cases-page .site-header {
  position: fixed;
}

.customer-cases-page .site-header nav a.active {
  color: #087fa5;
}

.customer-cases-main {
  min-height: calc(100vh - 230px);
  padding: 132px max(24px, calc((100% - var(--max)) / 2)) 96px;
}

.customer-case-access {
  min-height: calc(100vh - 300px);
  display: grid;
  place-items: center;
  padding: 52px 0 76px;
}

.customer-case-access[hidden],
.customer-cases-content[hidden] {
  display: none;
}

.customer-case-access-panel {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 22px 24px;
  padding: 34px 36px 36px;
  border: 1px solid #ccdbe2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(20, 61, 78, .08);
}

.customer-case-access-icon {
  grid-row: 1 / span 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid #b9d8e1;
  border-radius: 7px;
  background: #edf7f9;
  color: #087fa5;
}

.customer-case-access-icon svg {
  width: 25px;
  height: 25px;
}

.customer-case-access-kicker {
  display: block;
  color: #087fa5;
  font-size: 10px;
  font-weight: 720;
}

.customer-case-access h1 {
  margin: 7px 0 0;
  color: #102b38;
  font-size: 27px;
  line-height: 1.2;
}

.customer-case-access-panel > div > p {
  margin: 9px 0 0;
  color: #6f838d;
  font-size: 13px;
}

.customer-case-access form {
  grid-column: 2;
  min-width: 0;
}

.customer-case-access form > label {
  display: block;
  margin-bottom: 7px;
  color: #4f6571;
  font-size: 12px;
  font-weight: 650;
}

.customer-case-access-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.customer-case-access-controls input {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #bdcfd7;
  border-radius: 5px;
  background: #fff;
  color: #18364d;
  font: 14px/1 inherit;
  outline: none;
}

.customer-case-access-controls input:focus {
  border-color: #4aa2bb;
  box-shadow: 0 0 0 3px rgba(8, 127, 165, .1);
}

.customer-case-access-controls button {
  min-width: 126px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid #18364d;
  border-radius: 5px;
  background: #18364d;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 680;
  white-space: nowrap;
}

.customer-case-access-controls button:hover,
.customer-case-access-controls button:focus-visible {
  border-color: #087fa5;
  background: #087fa5;
  outline: none;
}

.customer-case-access-controls button:disabled {
  cursor: wait;
  opacity: .62;
}

.customer-case-access-controls button svg {
  width: 15px;
  height: 15px;
}

.customer-case-access-message {
  margin: 9px 0 0;
  color: #b42318;
  font-size: 12px;
  line-height: 1.45;
}

.customer-cases-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding: 30px 0 42px;
  border-bottom: 1px solid #ccdae1;
}

.customer-cases-intro > div:first-child {
  max-width: 720px;
}

.customer-cases-intro h1 {
  margin: 0;
  color: #102b38;
  font-size: 48px;
  font-weight: 720;
  line-height: 1.12;
}

.customer-cases-intro p {
  max-width: 680px;
  margin: 18px 0 0;
  color: #607580;
  font-size: 15px;
  line-height: 1.85;
}

.customer-cases-total {
  display: flex;
  min-width: 128px;
  flex-direction: column;
  align-items: flex-end;
  padding-bottom: 3px;
}

.customer-cases-total strong {
  color: #087fa5;
  font-size: 38px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.customer-cases-total span {
  margin-top: 9px;
  color: #71848e;
  font-size: 12px;
}

.customer-cases-browser {
  padding-top: 34px;
}

.customer-case-categories {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 30px;
  margin-bottom: 34px;
}

.customer-case-category-heading {
  min-width: 110px;
  flex: 0 0 auto;
}

.customer-case-category-heading h2 {
  margin: 0;
  color: #18364d;
  font-size: 16px;
  line-height: 1.3;
}

.customer-case-category-heading span {
  display: block;
  margin-top: 7px;
  color: #7b8d97;
  font-size: 11px;
}

.customer-case-category-list {
  display: flex;
  min-width: 0;
  flex: 1;
  gap: 9px;
  overflow-x: auto;
  padding: 3px 2px 5px;
  scrollbar-width: none;
}

.customer-case-category-list::-webkit-scrollbar {
  display: none;
}

.customer-case-category-list button {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 17px;
  border: 1px solid #cbd9e0;
  border-radius: 4px;
  background: #fff;
  color: #4f6571;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.customer-case-category-list button:hover,
.customer-case-category-list button:focus-visible {
  border-color: #7dbdce;
  color: #087fa5;
  outline: none;
}

.customer-case-category-list button[aria-selected="true"] {
  border-color: #18364d;
  background: #18364d;
  color: #fff;
}

.customer-case-category-list button small {
  margin-left: 7px;
  color: inherit;
  font-size: 10px;
  opacity: .68;
}

.customer-case-category-skeleton {
  width: 88px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 4px;
  background: linear-gradient(100deg, #e0e8ec 20%, #eef3f5 36%, #e0e8ec 52%);
  background-size: 220% 100%;
  animation: customer-case-shimmer 1.25s linear infinite;
}

.customer-case-masonry {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.customer-case-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
}

.customer-case-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d9e3e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(21, 62, 79, .07);
  vertical-align: top;
}

.customer-case-media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: #152a38;
}

.customer-case-media > img {
  display: block;
  width: 100%;
  aspect-ratio: auto 9 / 16;
  min-height: 320px;
  max-height: 580px;
  object-fit: cover;
  transition: transform .32s ease;
  cursor: pointer;
}

.customer-case-card:hover .customer-case-media > img {
  transform: scale(1.018);
}

.customer-case-media::after {
  position: absolute;
  inset: 48% 0 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 17, 25, .5));
  content: "";
}

.customer-case-play {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.customer-case-play {
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: rgba(8, 27, 40, .64);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  transform: translate(-50%, -50%);
  transition: background .18s ease, transform .18s ease;
}

.customer-case-play:hover,
.customer-case-play:focus-visible {
  background: #087fa5;
  outline: none;
  transform: translate(-50%, -50%) scale(1.06);
}

.customer-case-play svg {
  width: 21px;
  height: 21px;
  margin-left: 3px;
  fill: currentColor;
}

.customer-case-category-mark {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  padding: 7px 10px;
  border-radius: 3px;
  background: rgba(8, 27, 40, .76);
  color: #fff;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-case-video-dialog {
  width: min(980px, calc(100vw - 48px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: #fff;
}

.customer-case-video-dialog::backdrop {
  background: rgba(3, 15, 23, .82);
  backdrop-filter: blur(6px);
}

.customer-case-video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: #071219;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .48);
}

.customer-case-video-stage {
  display: grid;
  height: min(74vh, 720px);
  min-height: 360px;
  overflow: hidden;
  place-items: center;
  background: #000;
}

.customer-case-video-stage video {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.customer-case-video-close {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .44);
  border-radius: 50%;
  background: rgba(5, 17, 25, .78);
  color: #fff;
  cursor: pointer;
}

.customer-case-video-close:hover,
.customer-case-video-close:focus-visible {
  border-color: #fff;
  background: #087fa5;
  outline: none;
}

.customer-case-video-close svg {
  width: 19px;
  height: 19px;
}

.customer-case-video-meta {
  min-height: 68px;
  padding: 13px 20px 15px;
}

.customer-case-video-meta span {
  color: #60cbe4;
  font-size: 10px;
  font-weight: 700;
}

.customer-case-video-meta h2 {
  overflow: hidden;
  margin: 6px 0 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-case-media-fallback {
  display: grid;
  min-height: 360px;
  place-items: center;
  color: rgba(255, 255, 255, .72);
}

.customer-case-media-fallback svg {
  width: 40px;
  height: 40px;
}

.customer-case-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 14px;
  align-items: start;
  padding: 17px;
}

.customer-case-card-copy {
  min-width: 0;
  padding-top: 2px;
}

.customer-case-card-copy > span {
  display: block;
  overflow: hidden;
  color: #087fa5;
  font-size: 10px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-case-card-copy h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  color: #15313f;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.customer-case-card-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  color: #71848e;
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.customer-case-qr {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  color: #5b717c;
  font-size: 9px;
  line-height: 1.35;
  text-align: center;
}

.customer-case-qr img {
  display: block;
  width: 78px;
  height: 78px;
  margin-bottom: 6px;
  border: 1px solid #dbe4e8;
  background: #fff;
  object-fit: contain;
}

.customer-case-qr:hover,
.customer-case-qr:focus-visible {
  color: #087fa5;
  outline: none;
}

.customer-case-status {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid #d4e1e6;
  background: #fff;
  color: #526a76;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.customer-case-status button {
  margin-left: 12px;
  padding: 7px 12px;
  border: 1px solid #18364d;
  border-radius: 4px;
  background: #18364d;
  color: #fff;
  cursor: pointer;
}

.customer-case-load-more {
  display: flex;
  justify-content: center;
  padding-top: 28px;
}

.customer-case-load-more[hidden] {
  display: none;
}

.customer-case-load-more button {
  display: inline-flex;
  min-width: 140px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #b9ccd5;
  border-radius: 4px;
  background: #fff;
  color: #264858;
  cursor: pointer;
  font-size: 13px;
  font-weight: 680;
}

.customer-case-load-more button:hover,
.customer-case-load-more button:focus-visible {
  border-color: #087fa5;
  color: #087fa5;
  outline: none;
}

.customer-case-load-more button:disabled {
  cursor: wait;
  opacity: .62;
}

.customer-case-load-more svg {
  width: 15px;
  height: 15px;
}

.customer-case-skeleton > span {
  display: block;
  min-height: 410px;
  background: linear-gradient(100deg, #dde6ea 20%, #edf2f4 36%, #dde6ea 52%);
  background-size: 220% 100%;
  animation: customer-case-shimmer 1.25s linear infinite;
}

.customer-case-skeleton > div {
  display: grid;
  gap: 10px;
  padding: 17px;
}

.customer-case-skeleton i,
.customer-case-skeleton b {
  display: block;
  height: 10px;
  border-radius: 3px;
  background: #e3eaed;
}

.customer-case-skeleton i {
  width: 36%;
}

.customer-case-skeleton b:last-child {
  width: 68%;
}

@keyframes customer-case-shimmer {
  to { background-position-x: -220%; }
}

@media (max-width: 1060px) {
  .customer-case-masonry {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .customer-cases-main {
    padding: 94px 20px 70px;
  }
  .customer-cases-intro {
    gap: 18px;
    padding: 24px 0 30px;
  }
  .customer-cases-intro h1 {
    font-size: 34px;
  }
  .customer-cases-intro p {
    font-size: 13px;
  }
  .customer-cases-total {
    min-width: 86px;
  }
  .customer-cases-total strong {
    font-size: 30px;
  }
  .customer-case-categories {
    display: block;
    margin-bottom: 26px;
  }
  .customer-case-category-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 15px;
  }
  .customer-case-category-heading span {
    margin-top: 0;
  }
  .customer-case-category-list {
    margin-inline: -20px;
    padding-inline: 20px;
  }
  .customer-case-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .customer-case-column {
    gap: 14px;
  }
}

@media (max-width: 620px) {
  .customer-case-access {
    min-height: calc(100vh - 220px);
    padding: 32px 0 54px;
  }
  .customer-case-access-panel {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 25px 20px 22px;
  }
  .customer-case-access-icon {
    grid-row: auto;
    width: 50px;
    height: 50px;
  }
  .customer-case-access h1 {
    font-size: 24px;
  }
  .customer-case-access form {
    grid-column: auto;
  }
  .customer-case-access-controls {
    grid-template-columns: 1fr;
  }
  .customer-case-access-controls button {
    width: 100%;
  }
  .customer-cases-intro {
    display: block;
  }
  .customer-cases-total {
    align-items: flex-start;
    margin-top: 22px;
  }
  .customer-case-masonry {
    grid-template-columns: 1fr;
  }
  .customer-case-card {
    display: block;
  }
  .customer-case-media > img {
    max-height: none;
  }
  .customer-case-video-dialog {
    width: calc(100vw - 16px);
  }
  .customer-case-video-stage {
    height: min(72vh, 620px);
    min-height: 280px;
  }
  .customer-case-video-meta {
    min-height: 62px;
    padding: 11px 14px 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-case-category-skeleton,
  .customer-case-skeleton > span {
    animation: none;
  }
  .customer-case-media > img,
  .customer-case-play {
    transition: none;
  }
}
