/* ============================================================
   EGITCON custom styles
   디자인 토큰
     ink(무채색)  #101316 / #1c1f22 / #2a2e31 / #6f757b / #f7f8f8
     amber(포인트) #e79a3c  ← 히어로 슬라이더와 동일
     brand(로고)   #006838 / #8cc63f  ← 로고·미세 액센트 전용
============================================================ */

:root {
  --ink-950: #101316;
  --ink-900: #1c1f22;
  --ink-800: #2a2e31;
  --ink-500: #6f757b;
  --ink-100: #f0f1f2;
  --ink-50:  #f7f8f8;
  --amber:   #e79a3c;
  --amber-300: #f0ad55;
  --hero-bg: #0d1117;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
}

::selection {
  background: var(--amber);
  color: #fff;
}

/* 섹션 상단 라벨 (SECTION EYEBROW) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--amber);
  opacity: 0.7;
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--amber), var(--ink-100));
}

@media (min-width: 768px) {
  .timeline::before {
    left: 3px;
  }
}

/* 드롭다운 메뉴 스크롤바 (얇게) */
.nav-dropdown {
  scrollbar-width: thin;
  scrollbar-color: #c9cdd1 transparent;
}
.nav-dropdown::-webkit-scrollbar {
  width: 5px;
}
.nav-dropdown::-webkit-scrollbar-thumb {
  background: #c9cdd1;
  border-radius: 4px;
}
.nav-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

/* ============================================
   Client logo strip (히어로 하단 · 다크→라이트 전환)
============================================ */
.client-strip {
  position: relative;
  background: #f7f8f8;
}

.client-strip > div {
  position: relative;
  z-index: 1;
}

/* 히어로(다크) → 스트립(라이트) 전환 — 스트립 최상단
   VMS처럼 섹션 경계를 흐린 띠로 처리하지 않고,
   짧은 감쇠 구간 + 얇은 amber 하이라이트 라인으로 또렷하게 나눈다 */
.client-strip-fade {
  position: relative;
  height: 40px;
  background: linear-gradient(to bottom, #0d1117 0%, #1b2027 46%, #4b5157 78%, #f7f8f8 100%);
}

/* 경계에 얇은 액센트 라인 */
.client-strip-fade::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(231, 154, 60, 0.85) 22%, rgba(231, 154, 60, 0.85) 78%, transparent);
}

.client-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}

.client-marquee-track {
  display: flex;
  width: max-content;
  animation: client-scroll 58s linear infinite;
}

.client-marquee:hover .client-marquee-track {
  animation-play-state: paused;
}

.client-marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 20px;
  white-space: nowrap;
}

/* 로고 이미지 — 원본은 520x160 흰 배경 캔버스(여백 포함, 종횡비 3.25 고정).
   높이만 지정하면 전 로고가 동일 비율로 축소되어 시각 무게가 균일해진다.
   표시 폭 182px 대비 원본 520px → Retina 2x 이상 해상도 확보 */
.client-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  /* 고객사 로고는 원색 그대로 노출 (무채색 처리하지 않음) */
  transition: transform 0.3s ease;
}

.client-logo:hover .client-logo-img {
  transform: scale(1.06);
}

@keyframes client-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   Clients grid (본문 고객사 섹션)
============================================ */
.client-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.client-card:hover {
  border-color: #c9cdd1;
  box-shadow: 0 6px 22px rgba(16, 19, 22, 0.08);
  transform: translateY(-2px);
}

/* 로고 영역 */
.client-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 104px;
  padding: 12px 16px;
}

.client-card-img {
  width: 100%;
  max-width: 268px;
  height: auto;
  object-fit: contain;
  /* 고객사 로고는 원색 그대로 노출 (520x160 흰 배경 캔버스) */
  transition: transform 0.25s ease;
}

.client-card:hover .client-card-img {
  transform: scale(1.05);
}

/* 공급 품목 / 업종 캡션 */
.client-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px 12px;
  border-top: 1px solid var(--ink-100);
  background: #fcfcfd;
}

.client-card-item {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-700);
  line-height: 1.35;
}

.client-card-sector {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #9aa0a6;
}

/* ============================================
   Scroll reveal
============================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* 모션 최소화 설정 존중 */
@media (prefers-reduced-motion: reduce) {
  .client-marquee-track {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
