/* ─── 공통 섹션 레이블 ─── */
.section-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  line-height: 1.2;
  margin-bottom: 2rem;
}

/* ─── 사이드 DOT 네비 ─── */
.side-nav {
  position: fixed;
  right: 4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.side-nav__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}

.side-nav__item {
  position: relative;
  width: 7rem;
  display: flex;
  align-items: center;
  padding: 0.8rem 0;
  cursor: pointer;
}

.side-nav__dot {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}
.side-nav__label {
  display: block;
  width: 100%;
  font-family: var(--font-en);
  font-size: var(--text-2xs);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-normal);
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  text-align: right;
  padding-right: 0;
  transition: padding-right 0.4s ease, color 0.3s ease, font-weight 0.3s ease, letter-spacing 0.3s ease;
}
.side-nav__item:hover:not(.active) .side-nav__label {
  color: rgba(255,255,255,0.85);
}

.side-nav__item.active .side-nav__label {
  padding-right: 7rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: var(--ls-wide);
}

/* 밑줄 — 활성 항목 라벨 하단 */
.side-nav__item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255,255,255,0.85);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  pointer-events: none;
}
.side-nav__item.active::after {
  transform: scaleX(1);
}

/* 밝은 배경 섹션일 때 — 라벨·밑줄·dot 어두운 색으로 전환 */
.side-nav--on-light .side-nav__label {
  color: rgba(10, 22, 40, 0.4);
}
.side-nav--on-light .side-nav__item:hover:not(.active) .side-nav__label {
  color: rgba(10, 22, 40, 0.7);
}
.side-nav--on-light .side-nav__item.active .side-nav__label {
  color: rgba(10, 22, 40, 0.9);
}
.side-nav--on-light .side-nav__item::after {
  background: rgba(10, 22, 40, 0.7);
}

/* ─── 풀페이지 래퍼 ─── */
.fullpage {
  width: 100%;
  overflow: hidden;
}

.section {
  width: 100%;
  height: 100vh;
  min-height: 60rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ─────────────────────────────────────────────
   SECTION 1 — HERO
───────────────────────────────────────────── */
.hero {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero__slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero__slide.active {
  opacity: 1;
  z-index: 1;
}

.hero__slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,4,10,1) 0%, rgba(0,61,120,0.75) 100%, transparent 100%);
}

.hero__slide:nth-child(n+2) .hero__slide-bg::after {
  background: linear-gradient(to right, rgba(0,4,10,1) 0%, rgba(0,61,120,0.55) 50%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  padding-left: calc(var(--container-pad) + 2rem);
}

.hero__sub__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-medium);
  color: #fff;
  line-height: 1;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}
.hero__title {
  font-family: var(--font-display);
  /* 반응형 — clamp(최소값, 유동값, 최대값)으로 뷰포트 너비에 따라 폰트 크기 자동 조절 (최소 40px ~ 최대 70px) */
  font-size: clamp(4rem, 6vw, 7rem);
  font-weight: var(--fw-bold);
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}
.hero__desc {
  font-family: var(--font-ko);
  font-size: var(--text-md);
  font-weight: var(--fw-light);
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}

/* 슬라이더 컨트롤 */
.hero__controls {
  position: absolute;
  bottom: 6rem;
  left: max(calc(var(--container-pad) + 2rem), calc((100% - var(--max-width)) / 2 + var(--container-pad) + 2rem));
  z-index: 10;
}

/* 진행 바 */
.hero__progress-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero__count {
  font-family: var(--font-en);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.hero__count-current {
  color: #fff;
  font-weight: var(--fw-semibold);
}
.hero__count-sep {
  margin: 0 0.2rem;
}

.hero__progress-track {
  width: 14rem;
  height: 1px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.hero__progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: #fff;
  animation: heroFill 5s linear forwards;
}

@keyframes heroFill {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* 이전/다음 화살표 — hero__count 양옆 배치 */
.hero__arrow {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-2xs);
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.hero__arrow:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
}

/* ─────────────────────────────────────────────
   SECTION 2 — ABOUT
───────────────────────────────────────────── */
#ABOUT {
  background: var(--color-bg-darker);
}

.about {
  position: absolute;
  inset: 0;
  background: var(--color-bg-darker);
}

.about__panels {
    display: flex;
    width: 100%;
    height: 100%;
}

.about__panel {
  position: relative;
  flex: 1;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
}
.about__panel:last-child {
  border-right: none;
}

.about__panel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(4, 9, 18, 0.65);
  transition: background 0.5s ease;
}
.about__panel.active .about__panel-overlay {
  background: rgba(4, 9, 18, 0.35);
}

.about__panel-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 25%;
  z-index: 2;
  padding: 0 2.4rem;
  text-align: center;
  transition: bottom 0.5s ease, transform 0.5s ease, text-align 0.5s ease, padding 0.5s ease;
}
.about__panel.active .about__panel-content {
  bottom: 50%;
  transform: translateY(50%);
}

.about__panel-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: #fff;
  line-height: 1.2;
  transition: font-size 0.5s ease;
  letter-spacing: 4px;
}
.about__panel.active .about__panel-title {
  font-size: var(--text-2xl);
}

.about__panel-sub {
  font-family: var(--font-en);
  font-size: var(--text-2xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  margin-top: 1.5rem;
}

.about__panel-desc {
  font-family: var(--font-ko);
  font-size: var(--text-md);
  font-weight: var(--fw-light);
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  max-width: 32rem;
  margin: 4rem auto 0;
  opacity: 0;
  transform: translateY(1.2rem);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.about__panel-btn {
  display: inline-block;
  margin-top: var(--space-lg);
  padding: 1.2rem 2rem;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-family: var(--font-en);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-normal);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(1.2rem);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.3s ease, color 0.3s ease;
}
.about__panel-btn:hover {
  background: #fff;
  color: var(--color-bg-darker);
}

.about__panel.active .about__panel-desc,
.about__panel.active .about__panel-btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0.1s;
}

/* ─────────────────────────────────────────────
   SECTION 3 — SPECIALTY
───────────────────────────────────────────── */
#Specialty {
  background: var(--color-bg-dark);
}

#Specialty::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/index-specialty.jpg') center / cover no-repeat;
  opacity: 0.4;
  z-index: 0;
}

.specialty {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--banner-h) + var(--nav-h));
}

.specialty__tabs {
  display: flex;
  z-index: 10;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  margin-bottom: 8rem;
}

.specialty__tab {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 2.4rem 3.2rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-en);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-normal);
  cursor: pointer;
  transition: var(--transition);
}

.specialty__tab.active {
  color: #fff;
  background: rgba(255,255,255,0.05);
  border-bottom-color: var(--color-accent);
}
.specialty__tab:hover:not(.active) {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.03);
}

/* 패널 */
.specialty__panel {
  display: none;
  width: 100%;
  height: auto;
  align-items: center;
}
.specialty__panel.active {
  display: flex;
}

.specialty__panel-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  gap: 8rem;
  align-items: center;
  min-height: 34rem;
}

.specialty__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: #fff;
  line-height: 1.4;
  margin: 3rem 0;

}

.specialty__desc {
  font-family: var(--font-ko);
  font-size: var(--text-base);
  color: rgba(255,255,255,0.7);
  line-height: 1.9;
  margin-bottom: 3.2rem;
}

/* 스탯 */
.specialty__stats {
  display: flex;
  gap: 4rem;
  padding: 4rem 0;
  margin-top: 8rem;
}

.specialty__stat {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1 1 0;
}

.specialty__stat-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: #fff;
  line-height: 1;
}

.specialty__stat-plus {
  font-size: var(--text-3xl);
}

.specialty__stat-label {
  font-family: var(--font-en);
  font-size: var(--text-sm);
  letter-spacing: var(--ls-wide);
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────
   SECTION 4 — PRODUCT
───────────────────────────────────────────── */
#PRODUCT {
  background: var(--color-bg-primary);
  align-items: flex-start;
  padding-top: calc(var(--banner-h) + var(--nav-h) + 3rem);
  overflow-y: auto;
  height: 100vh;
}

.product {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding:var(--container-pad);
}

.product__header {
  text-align: center;
  margin-bottom: 4rem;
}

.product__header .section-title {
  font-size: var(--text-2xl);
}

.product__header-desc {
  font-family: var(--font-ko);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: 1.2rem;
}

/* 카테고리 탭 */
.product__tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--color-border);
}

.product__tab {
  padding: 1.4rem 3.2rem;
  font-family: var(--font-ko);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: -1px;
}
.product__tab.active {
  color: var(--color-blue);
  border-bottom-color: var(--color-blue);
  font-weight: var(--fw-semibold);
}
.product__tab:hover:not(.active) {
  color: var(--color-text-primary);
}

/* 제품 리스트 */
.product__list {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}
.product__list.active {
  display: grid;
}

.product__card {
  border: 1px solid var(--color-border);
  border-radius: 1.2rem;
  overflow: hidden;
  transition: var(--transition);
  background: #fff;
}
.product__card:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 1.2rem 3.2rem rgba(0,87,168,0.1);
  border-color: var(--color-blue-dim);
}

.product__img-wrap {
  height: 24rem;
  background: var(--color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}
.product__img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product__card:hover .product__img-wrap img {
  transform: scale(1.04);
}

.product__info {
  padding: 2rem 2.4rem 2.4rem;
}

.product__category-label {
  font-family: var(--font-en);
  font-size: var(--text-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  color: var(--color-text-primary);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.product__name {
  font-family: var(--font-en);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  margin-bottom: 4rem;
}

.product__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-en);
  font-size: var(--text-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-normal);
  color: var(--color-blue);
  text-transform: uppercase;
  transition: var(--transition);
}
.product__link:hover {
  color: var(--color-blue-light);
  gap: 1rem;
}

/* ─────────────────────────────────────────────
   SECTION 5 — PRESS
───────────────────────────────────────────── */
#PRESS {
  background: var(--color-bg-dark);
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  padding-top: calc(var(--banner-h) + var(--nav-h));
  overflow-y: auto;
}

.press {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16rem var(--container-pad) 20rem;
}

/* 배너 */
.press__banner {
  text-align: center;
  padding: 3.2rem 0 4rem;
  border-bottom: 1px solid var(--color-border-white);
  margin-bottom: 4rem;
}

.press__banner-en {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-normal);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}

.press__banner-ko {
  font-family: var(--font-ko);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
}

/* 그리드 */
.press__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 6rem;
}

/* 뉴스 */
.press__news-title-head {
  font-family: var(--font-ko);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.press__news-list {
  display: block;
}

.press__news-item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.press__news-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.6rem 0;
  transition: var(--transition);
}
.press__news-link:hover .press__news-title {
  color: var(--color-accent);
}

.press__news-title {
  font-family: var(--font-ko);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  flex: 1;
  transition: color 0.2s ease;
  display: -webkit-box;
  overflow: hidden;
}

.press__news-date {
  font-family: var(--font-en);
  font-size: var(--text-2xs);
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

/* 홍보미디어 */
.press__media-title {
  font-family: var(--font-ko);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.press__media-grid {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.press__media-item {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  transition: var(--transition);
}
.press__media-item:hover .press__media-play {
  background: rgba(255,0,0,0.9);
}
.press__media-item:hover .press__media-desc {
  color: #fff;
}

.press__media-thumb {
  position: relative;
  flex-shrink: 0;
  width: 14rem;
  aspect-ratio: 16/9;
  border-radius: 0.8rem;
  overflow: hidden;
  background: #000;
}
.press__media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.press__media-item:hover .press__media-thumb img {
  opacity: 0.6;
}

.press__media-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 2.8rem;
  transition: background 0.3s ease;
}

.press__media-desc {
  font-family: var(--font-ko);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  transition: color 0.2s ease;
}

/* ─────────────────────────────────────────────
   모바일 반응형
───────────────────────────────────────────── */

/* Laptop 1024px */
@media (max-width: 1024px) {
  /* SECTION 4 — PRODUCT */
  .product__list {
    gap: 2rem;
  }
  .product__info {
    padding: 2rem 2rem 2.4rem;
  }
  /* SECTION 5 — PRESS */
  .press__grid {
    gap: 3.2rem;
  }
  .press__media-thumb {
    width: 13rem;
  }
}


/* Tablet 768px */
@media (max-width: 768px) {
  /* 공통 — 사이드 DOT 네비 */
  .side-nav {
    display: none;
  }

  /* SECTION 1 — HERO */
  .hero__sub__title {
    font-size: var(--text-xl);
  }
  .hero__controls {
    bottom: 5rem;
  }
  .hero__progress-track {
    width: 12rem;
  }
  .hero__arrow {
    width: 2.2rem;
    height: 2.2rem;
  }

  /* SECTION 3 — Specialty */
  .specialty__panel-inner {
    grid-template-columns: 1fr;
    gap: 4rem;
    min-height: 0;
  }
  .specialty__stats {
    padding: 3.2rem 0;
    flex-wrap: wrap;
    gap: 2rem;
  }
  .specialty__stat-num {
    font-size: var(--text-2xl);
  }
  .specialty__stat-plus {
    font-size: var(--text-2xl); 
  }  
  .specialty__stat-label {
    font-size: var(--text-xs);
  }
  .specialty__tab {
    padding: 1.6rem 2rem;
    font-size: var(--text-xs);
  }

  /* SECTION 4 — PRODUCT */
  .product__list {
    grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
  }

  /* SECTION 5 — PRESS */
  .press__grid {
    grid-template-columns: 2.5fr 1fr;
  }
  .press__media-thumb {
    width: 11rem;
  }
  .press__media-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .press__banner-en {
    font-size: var(--text-base);
  }
}

/* 515px */
@media (max-width: 515px) {
  /* SECTION 5 — PRESS */
  .press__grid {
    grid-template-columns: 1fr;
  }
  .press__media-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .press__media-thumb {
    width: 70%;
  }
}


/* Mobile L 430px */
@media (max-width: 430px) {
  /* SECTION 1 — HERO */
  .hero__desc {
    font-size: var(--text-sm);
  }

  /* SECTION 2 — ABOUT */
  .about__panel.active .about__panel-title {
    font-size: 2.9rem;
  }
  .about__panel-btn {
    font-size: var(--text-xs);
    padding: 1.2rem 1.6rem;
  }

  /* SECTION 4 — PRODUCT */
  .product__list {
    grid-template-columns: 1fr;
  }
}
