/* ═══════════════════════════════════════
   COMPANY HISTORY — company-history.css (v3)
   daphone-landing-page

   2026-04-21 v3 변경 (v2 → v3):
     ★ 우측 컬럼 padding-left 60px → 140px
        → 타임라인(HISTORY 배지 + 연혁 항목)을 우측으로 이동
        → 로고와의 간격을 벌려 시각적 균형 확보
     ★ 배지 margin-left 값도 함께 조정 (세로선 위치 유지)

   HTML 구조 (v1·v2와 동일):
     <section id="company-history" class="company-history">
       <div class="company-history__inner">
         <div class="company-history__left">...</div>
         <div class="company-history__right">
           <div class="company-history__badge">HISTORY</div>
           <ul class="company-history__timeline">...</ul>
         </div>
       </div>
     </section>
═══════════════════════════════════════ */

/* ═══════════════════════════════════════
   섹션 컨테이너
═══════════════════════════════════════ */
.company-history {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 100px 9%;
  background: #000;
  box-sizing: border-box;
  overflow: hidden;
}

/* 배경 장식 — 은은한 골드 그라디언트 포인트 */
.company-history::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.company-history::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════
   내부 레이아웃 (좌우 2컬럼)
═══════════════════════════════════════ */
.company-history__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}

/* ═══════════════════════════════════════
   좌측: 로고 + 태그라인
═══════════════════════════════════════ */
.company-history__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;

  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.company-history.is-active .company-history__left {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.15s;
}

/* ── 로고 박스 ── */
.company-history__logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
}

.company-history__logo-box img {
  width: 100%;
  height: auto;
  max-width: 260px;
  object-fit: contain;
}

/* ── 태그라인 ── */
.company-history__tagline {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  margin: 0;
}

/* ── 브랜드명 ── */
.company-history__brand {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}

.company-history__brand em {
  font-style: normal;
  color: var(--gold, #c9a84c);
}

/* ═══════════════════════════════════════
   우측: HISTORY 배지 + 타임라인
   ★ v3: padding-left 대폭 확대 (60px → 140px)
═══════════════════════════════════════ */
.company-history__right {
  position: relative;
  padding-left: 140px; /* ★ v3: 60 → 140 (타임라인 우측 이동) */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ── HISTORY 배지 ── */
.company-history__badge {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #000;
  border: 2px solid var(--gold, #c9a84c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold, #c9a84c);
  letter-spacing: 0.15em;
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.2);

  /* 배지 중심을 타임라인 세로선에 정렬
     - 세로선 위치: padding-left 140px + 리스트 padding 30px 내부 left 6px = 176px
     - 배지 너비 110px → 중심은 55px
     - 배지 left 기본은 padding-left 끝점(140px)
     - 세로선 중심(176px)에 배지 중심(140 + 55 = 195px)을 맞추려면 margin-left 조정
     - 계산: 176 - 195 = -19px */
  margin-left: -19px;
  margin-bottom: -10px;
  z-index: 2;

  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.company-history.is-active .company-history__badge {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.3s;
}

/* ── 타임라인 리스트 ── */
.company-history__timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 30px;
  width: 100%;
}

/* 세로선 (타임라인 축) */
.company-history__timeline::before {
  content: '';
  position: absolute;
  top: -10px;
  bottom: 8px;
  left: 6px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--gold, #c9a84c) 0%,
    rgba(201, 168, 76, 0.3) 100%
  );
}

/* ── 타임라인 항목 ── */
.company-history__timeline li {
  position: relative;
  padding: 18px 0 18px 28px;

  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.company-history.is-active .company-history__timeline li {
  opacity: 1;
  transform: translateX(0);
}

.company-history.is-active .company-history__timeline li:nth-child(1) {
  transition-delay: 0.5s;
}
.company-history.is-active .company-history__timeline li:nth-child(2) {
  transition-delay: 0.7s;
}
.company-history.is-active .company-history__timeline li:nth-child(3) {
  transition-delay: 0.9s;
}
.company-history.is-active .company-history__timeline li:nth-child(4) {
  transition-delay: 1.1s;
}

/* 점 마커 */
.company-history__timeline li::before {
  content: '';
  position: absolute;
  top: 24px;
  left: -30px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #000;
  border: 2px solid var(--gold, #c9a84c);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.15);
}

/* ── 연도 ── */
.company-history__year {
  display: block;
  font-family: 'Bebas Neue', 'Noto Sans KR', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold, #c9a84c);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

/* ── 이벤트 ── */
.company-history__event {
  display: block;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

/* ═══════════════════════════════════════
   반응형
═══════════════════════════════════════ */

@media (max-width: 1200px) {
  .company-history__right {
    padding-left: 100px; /* 태블릿: 약간 축소 */
  }
  .company-history__badge {
    margin-left: -19px; /* 배지 위치 유지 */
  }
}

@media (max-width: 1024px) {
  .company-history {
    padding: 80px 7%;
  }
  .company-history__inner {
    gap: 60px;
  }
  .company-history__right {
    padding-left: 70px;
  }
}

@media (max-width: 900px) {
  .company-history {
    min-height: auto;
    padding: 80px 7%;
  }
  .company-history__inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .company-history__right {
    padding-left: 0;
    align-items: center;
  }
  .company-history__badge {
    margin-left: 0;
    margin-bottom: 30px;
    width: 100px;
    height: 100px;
    font-size: 1.2rem;
  }
  .company-history__timeline {
    width: 100%;
    max-width: 500px;
  }
  .company-history__timeline::before {
    top: 8px;
  }
  .company-history__logo-box img {
    max-width: 220px;
  }
}

@media (max-width: 640px) {
  .company-history {
    padding: 60px 5%;
  }
  .company-history__inner {
    gap: 48px;
  }
  .company-history__logo-box img {
    max-width: 180px;
  }
  .company-history__tagline {
    font-size: 0.9rem;
  }
  .company-history__brand {
    font-size: 1.4rem;
  }
  .company-history__badge {
    width: 90px;
    height: 90px;
    font-size: 1.05rem;
    margin-bottom: 24px;
  }
  .company-history__timeline {
    padding-left: 24px;
  }
  .company-history__timeline li {
    padding: 14px 0 14px 22px;
  }
  .company-history__timeline li::before {
    left: -26px;
    width: 12px;
    height: 12px;
  }
  .company-history__year {
    font-size: 1rem;
  }
  .company-history__event {
    font-size: 0.95rem;
  }
}

/* ═══════════════════════════════════════
   접근성 (prefers-reduced-motion)
═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .company-history__left,
  .company-history__badge,
  .company-history__timeline li {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
