/* Client wall: reference geometry, local Serim content and artwork. */
.vfc-clients {
  --vfc-client-tile: 180px;
  --vfc-client-border: rgb(0 0 0 / 6%);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  padding-block: 80px;
  padding-inline: 1.25rem;
  overflow: clip;
  background: #fff;
  color: #27272c;
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.vfc-clients,
.vfc-clients *,
.vfc-clients *::before,
.vfc-clients *::after {
  box-sizing: border-box;
}

.vfc-clients :where(h2, p, ul) {
  margin: 0;
}

/* Legacy wrappers retained for archived homepages. */
.vfc-clients-heading,
.vfc-clients-title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  text-align: center;
}

.vfc-clients-heading {
  padding: 0 15px;
}

.vfc-clients-eyebrow:not(.vf-section-label) {
  font-size: 10px;
  font-weight: 500;
  line-height: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.vfc-clients-title {
  color: #27272c;
  word-break: keep-all;
}

.vfc-clients-title:not(.vf-section-heading) {
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}

.vfc-clients-description {
  max-width: 440px;
  color: #686873;
  font-weight: 400;
  letter-spacing: 0;
  word-break: keep-all;
  text-wrap: pretty;
}

.vfc-clients-description:not(.vf-body-1) {
  font-size: 16px;
  line-height: 24px;
}

/* Legacy section colors; live headers use the shared section-header component. */
.vfc-clients-heading--intro .vfc-clients-eyebrow {
  color: #515a63;
}

.vfc-clients-heading--intro .vfc-clients-title,
.vfc-clients-heading--intro .vf-section-heading--clients {
  color: #1f2429;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-rendering: optimizelegibility;
}

.vfc-clients-heading--intro .vfc-clients-title:not(.vf-section-heading) {
  font-family: "Chiron Sung HK Hero", "Noto Serif CJK KR", "Nanum Myeongjo", serif;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.vfc-clients-heading--intro .vfc-clients-description {
  max-width: 100%;
}

@media (min-width: 768px) {
  .vfc-clients {
    padding-inline: 2rem;
  }

  .vfc-clients-heading--intro .vfc-clients-title:not(.vf-section-heading) {
    font-size: 2.25rem;
  }
}

.vfc-clients-wall {
  width: 100%;
  max-width: 1480px;
  padding: 0;
}

.vfc-clients-wall--desktop {
  display: none;
}

.vfc-clients-row {
  position: relative;
  height: var(--vfc-client-tile);
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--vfc-client-border);
  scrollbar-width: none;
  touch-action: auto;
}

.vfc-clients-row::-webkit-scrollbar {
  display: none;
}

.vfc-clients-row + .vfc-clients-row {
  border-top: 0;
}

.vfc-clients-row:first-child {
  border-radius: 16px 16px 0 0;
}

.vfc-clients-row:last-child {
  border-radius: 0 0 16px 16px;
}

.vfc-clients-row:focus-visible {
  outline: 2px solid var(--serim-navy-500, #1685f8);
  outline-offset: -3px;
}

.vfc-clients-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  height: 100%;
  padding: 0;
  list-style: none;
}

.vfc-clients-tile {
  position: relative;
  display: grid;
  flex: 0 0 var(--vfc-client-tile);
  place-items: center;
  width: var(--vfc-client-tile);
  height: 100%;
  padding: 24px;
  border-right: 1px dashed rgb(0 0 0 / 10.6%);
}

.vfc-clients-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 36px;
  object-fit: contain;
  filter: none;
  transform: scale(.95);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.vfc-clients-logo--square {
  max-height: 48px;
}

.vfc-clients-row.is-enhanced {
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.vfc-clients-row.is-dragging {
  cursor: grabbing;
}

.vfc-clients-row.is-enhanced .vfc-clients-track {
  will-change: transform;
}

@media (min-width: 810px) {
  .vfc-clients {
    --vfc-client-tile: 250px;
  }

  .vfc-clients-title:not(.vf-section-heading) {
    font-size: 42px;
  }

  .vfc-clients-description {
    max-width: 500px;
  }

  .vfc-clients-tile {
    padding: 40px;
  }

  .vfc-clients-logo {
    max-height: 44px;
  }

  .vfc-clients-logo--square {
    max-height: 60px;
  }
}

@media (min-width: 992px) {
  .vfc-clients {
    padding-inline: 2.5rem;
  }
}

@media (min-width: 1200px) {
  .vfc-clients {
    --vfc-client-tile: 290px;
    gap: 50px;
    padding-block: 150px;
  }

  .vfc-clients-title:not(.vf-section-heading) {
    font-size: 52px;
  }

  .vfc-clients-description {
    max-width: 440px;
  }

  .vfc-clients-wall {
    max-width: 1600px;
  }

  .vfc-clients-wall--desktop {
    display: block;
  }

  .vfc-clients-wall.vfc-clients-wall--desktop {
    width: 100%;
    max-width: 81rem;
    margin-inline: auto;
  }

  .vfc-clients-wall--compact {
    display: none;
  }

  .vfc-clients-tile {
    padding: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vfc-clients-row,
  .vfc-clients-row.is-enhanced {
    height: auto;
    overflow: hidden;
    cursor: auto;
    touch-action: auto;
  }

  .vfc-clients-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    transform: none !important;
    will-change: auto !important;
  }

  .vfc-clients-tile {
    width: 100%;
    height: var(--vfc-client-tile);
  }

  .vfc-clients-tile[data-client-clone] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 810px) {
  .vfc-clients-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 1200px) {
  .vfc-clients-track {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
