#work-cards-section {
  display: block;
  min-height: 0;
  padding: clamp(64px, 7vw, 104px) 0 clamp(72px, 8vw, 112px);
  overflow: hidden;
  background: #000;
  font-family: var(--font-sans);
  scroll-margin-top: 80px;
}

.wc-section *,
.wc-section *::before,
.wc-section *::after {
  box-sizing: border-box;
}

.wc-shell {
  width: min(1360px, calc(100% - var(--container-padding, 4rem) * 2));
  margin-inline: auto;
}

.wc-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.wc-heading {
  min-width: 0;
}

.wc-heading .section-label {
  display: block;
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.3;
}

.wc-heading h2 {
  max-width: 1080px;
  margin: 0;
  font-size: 52px;
  line-height: 1.06;
  letter-spacing: 0;
}

/* The bundle's section entrance tween must not strand this injected heading. */
.wc-heading h2,
.wc-heading .section-label {
  opacity: 1 !important;
  transform: none !important;
}

.wc-carousel-controls {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.wc-carousel-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .035);
  color: #f2f1ed;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wc-carousel-button svg {
  width: 22px;
  height: 22px;
}

.wc-carousel-button:focus-visible {
  outline: 2px solid #f2f1ed;
  outline-offset: 3px;
}

.wc-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 22px);
  width: 100%;
}

.wc-demo {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background: #060706;
}

.wc-demo h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-height: 64px;
  margin: 0;
  padding: 18px 18px 16px;
  color: #f2f1ed;
  font: 500 18px / 1.28 var(--font-sans);
  letter-spacing: 0;
}

.wc-demo h3 span {
  flex: 0 0 auto;
  color: #4ea76d;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
}

.wc-demo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: #000;
}

.wc-demo-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  pointer-events: none;
}

.wc-carousel-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .wc-carousel-button {
    transition: background-color 100ms cubic-bezier(0, 0, .2, 1),
      border-color 100ms cubic-bezier(0, 0, .2, 1),
      transform 100ms cubic-bezier(0, 0, .2, 1);
  }

  .wc-carousel-button:hover {
    border-color: rgba(255, 255, 255, .36);
    background: rgba(255, 255, 255, .09);
    transform: translateY(-1px);
  }
}

@media (max-width: 960px) and (min-width: 769px) {
  .wc-shell {
    width: calc(100% - 48px);
  }

  .wc-head-row {
    margin-bottom: 22px;
  }

  .wc-heading h2 {
    font-size: 42px;
  }

  .wc-demo h3 {
    min-height: 72px;
    padding: 15px 14px;
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  #work-cards-section {
    padding: 72px 0 80px;
  }

  .wc-shell {
    width: calc(100% - 32px);
  }

  .wc-head-row {
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
  }

  .wc-heading .section-label {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .wc-heading h2 {
    max-width: 270px;
    font-size: 28px;
    line-height: 1.08;
  }

  .wc-carousel-controls {
    display: flex;
    padding-bottom: 2px;
  }

  .wc-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .wc-gallery::-webkit-scrollbar {
    display: none;
  }

  .wc-demo {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .wc-demo h3 {
    min-height: 58px;
    padding: 16px;
    font-size: 17px;
  }
}

@media (max-width: 360px) {
  .wc-shell {
    width: calc(100% - 24px);
  }

  .wc-heading h2 {
    max-width: 228px;
    font-size: 25px;
  }

  .wc-carousel-button {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wc-gallery {
    scroll-behavior: auto;
  }
}

@media print {
  .wc-carousel-controls {
    display: none !important;
  }

  .wc-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }

  .wc-demo {
    break-inside: avoid;
  }
}
