@charset "utf-8";

/* ======================
   헤더 — 다크 비주얼 위 화이트 오버라이드
   ====================== */

/* .header:not(.header--fixed) .lang-sel__current, */
.header:not(.header--fixed) .header__nav-link {
  color: #ffffff;
}

/* .header:not(.header--fixed) .lang-sel svg path, */
.header:not(.header--fixed) .header__nav-link svg path {
  fill: #fff;
}

.header:not(.header--fixed) .lang-sel .header__nav-link {
  opacity: 0.5;
}

.header__logo {
  transform: translateY(40%);
  height: auto;
  width: 84rem;
  max-width: 51%;
}

.header:not(.header--fixed) .header__logo img {
  filter: brightness(0) invert(1);
}

.header:not(.header--fixed) .header__menu svg path {
  fill: #fff;
}

.header .header__subtitle {
  display: block;
}

.header .header__ham span {
  background-color: #ffffff;
}

/* ======================
   브랜드 변수 (main 페이지 전용)
   ====================== */
:root {}

/* ======================
   비주얼 (Hero)
   ====================== */
.section__title {
  font-size: 7.2rem;
  font-weight: 600;
  color: var(--brand-dark);
  line-height: 1;
  text-transform: uppercase;
}

.section__desc {
  font-size: 2.4rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.7);
  letter-spacing: -0.04em;
  line-height: 1.4;
}

.visual {
  position: relative;
  height: 110rem;
  overflow: hidden;
}

/* 배경 이미지 */
.visual__bg {
  position: absolute;
  inset: 0;
}

.visual__bg>div {
  width: 100%;
  height: 100%;
}

.visual__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.visual__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

/* 로고 */
.visual__logo {
  position: absolute;
  left: 6.4rem;
  top: 4.3rem;
  width: 83.8rem;
  max-width: calc(100% - 12.8rem);
}

.visual__logo img {
  display: block;
  width: 100%;
  height: auto;
}


/* 메인 헤딩 */
.visual__heading {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10%;
  font-size: 10rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.2em;
  text-transform: capitalize;
}

/* ======================
   NMN 소개 섹션
   ====================== */

.nmn {
  padding: 24rem 0 0;
  overflow: hidden;
}

.nmn__grid {
  /* display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  max-width: calc(var(--idx-max) + var(--idx-pad) * 2); */
  /* display: flex; */
  /* flex-wrap: wrap; */
  margin: 0 auto;
}

.nmn__wrap {
  display: flex;
}

/* 이미지 공통 */
.nmn__img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.nmn__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 이미지 1 (좌상) */
.nmn__img-wrap--1 {
  grid-column: 1;
  grid-row: 1;
  border-radius: 8rem 8rem 0 8rem;
  flex: 1 0 50%;
}

/* 이미지 2 (우하) */
.nmn__img-wrap--2 {
  grid-column: 2;
  grid-row: 2;
  border-radius: 0 8rem 8rem 8rem;
}

/* 텍스트 블록 공통 */
.nmn__block {
  display: flex;
  flex-direction: column;
  position: relative;
  flex: 1 0 50%;
  padding: 9% 2.8% 0 6.7%;
  justify-content: center;
  box-sizing: border-box;
}

/* Why? 블록 (우상) */
.nmn__block--why {
  grid-column: 2;
  grid-row: 1;

  overflow: hidden;
}

/* Attention 블록 (좌하) */
.nmn__block--attn {
  grid-column: 1;
  grid-row: 2;
  padding: 8rem 12rem 16rem 9.2rem;
  padding: 9% 3.5% 0 5.1%;
  overflow: hidden;
}

/* 라벨 */
.nmn__label {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: var(--brand-accent);
  line-height: 1.4em;
  text-transform: capitalize;
  margin-bottom: 0.8rem;
}

/* 제목 */
.nmn__title {
  font-weight: 700;
  line-height: 1.2em;
  letter-spacing: -0.04em;
  margin-bottom: 3.6rem;
  text-transform: none;
}

/* 설명 */
.nmn__desc {
  position: relative;
  z-index: 1;
  max-width: 89%;
  word-break: keep-all;
}

.nmn__desc strong {
  font-weight: 700;
  color: var(--brand-dark);
}

/* 장식 텍스트 (NAD+, NMN) */
.nmn__deco {
  /* position: absolute; */
  font-size: 20rem;
  font-weight: 400;
  color: rgba(249, 243, 240, 0.7);
  line-height: 1.4em;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  /* white-space: nowrap; */
  z-index: 0;
}

.nmn__deco--nad {
  /* right: -1rem; */
  /* bottom: -6rem; */
}

.nmn__deco--nmn {
  /* right: -1rem; */
  /* bottom: -6rem; */
  text-align: right;
}

/* ======================
   제품 섹션 (OUR PRODUCT)
   ====================== */

.product {
  padding: 18rem 0 8rem;
}

.product__inner {}

/* 섹션 헤더 */
.product__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 6rem;
}

.product__header-text {
  flex: 1;
}

.product__title {}

.product__desc {
  margin-top: 2rem;
  line-height: 1.6;
}

/* View more 버튼 */
.product__view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: flex-start;
  padding: 1.6rem 5.2rem;
  background-color: var(--brand-dark);
  border: 1px solid #ffffff;
  border-radius: 9.9rem;
  font-size: 2.4rem;
  font-weight: 500;
  color: #ffffff;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.2s;
  line-height: 1;
}

.product__view-btn:hover {
  opacity: 0.85;
}

/* 제품 카드 스택 */
.product__stack {
  position: relative;
  /* 카드 높이(83rem) + 위 대기 카드 노출 공간(3.5rem × 2) */
  height: 90rem;
  overflow: hidden;
  cursor: grab;
}

.product__stack:active {
  cursor: grabbing;
}

/* 제품 카드 스택 — ScrollMagic 버전 */
.product__stack--magic {
  position: relative;
  /* 카드 높이(83rem) + 위 대기 카드 노출 공간(3.5rem × 2) */
  height: 90rem;
  margin-top: 12rem;
  overflow: hidden;
}

/* pin 중 너비 유지 (ScrollMagic이 position:fixed 로 전환할 때) */
.product__stack--magic.is-pinned {
  width: 100% !important;
}


/* 제품 카드 스택 — Swiper 버전 */
.product__stack--swiper-pc {
  position: relative;
  /* height: 83rem; */
  /* margin-top: 12rem; */
  height: 103rem;
  padding: 10rem 0 !important;
}

.product__stack--swiper-pc .swiper-slide {
  height: 83rem;
  display: flex;
  border-radius: 8rem;
  overflow: hidden;
}

.swiper-btn {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
  max-width: 95%;
  margin: auto;
  opacity: 0;
}

.product__stack--swiper-pc:hover .swiper-btn {
  opacity: 1;
}

/* 카드 공통 */
.product__card {
  position: absolute;
  left: 0;
  right: 0;
  height: 83rem;
  display: flex;
  border-radius: 8rem;
  overflow: hidden;
  transform-origin: center top;
  /* 스케일 기준점: 카드 상단 중앙 */
  transition: bottom 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    z-index 0s;
  will-change: transform, bottom;
}

/* 앞 카드 — 전체 화면, scale(1) */
.product__card.is-front {
  bottom: 0;
  z-index: 3;
  transform: scale(1);
}

/* 두번째 카드 — front 기준 100px 작게 (1700/1800 ≈ 0.944) */
.product__card.is-middle {
  bottom: 3.5rem;
  z-index: 2;
  transform: scale(0.944);
}

/* 맨 뒤 카드 — front 기준 200px 작게 (1600/1800 ≈ 0.889) */
.product__card.is-back {
  bottom: 7rem;
  z-index: 1;
  transform: scale(0.889);
}

/* 대기 카드 — 숨김 (z=0, 투명, 이벤트 없음) */
.product__card.is-hidden {
  bottom: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.889);
}

/* 배경색 */
.product__card.is-back .product__card-info {
  background-color: var(--brand-bg-3);
}

.product__card.is-middle .product__card-info {
  background-color: var(--brand-bg-2);
}

.product__card.is-front .product__card-info {
  background-color: var(--brand-bg-1);
}

/* 카드 정보 영역 (좌측) */
.product__card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  padding: 6rem 4rem;
  text-align: center;
  background-color: var(--brand-bg-1);
}

/* AMPOULE/CREAM 카드: 작은 서브/네임 */
.product__card--ampoule .product__card-sub,
.product__card--cream .product__card-sub {
  font-size: 1.4rem;
  font-weight: 400;
}

.product__card--ampoule .product__card-name,
.product__card--cream .product__card-name {
  font-size: 3.2rem;
  font-weight: 700;
}

.product__card--ampoule .product__card-btn,
.product__card--cream .product__card-btn {
  height: 3.7rem;
  padding: 0 4rem;
  border-radius: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

/* OIL 카드: 큰 서브/네임 */
.product__card .product__card-sub {
  font-size: 1.6rem;
  font-weight: 300;
}

.product__card .product__card-name {
  font-size: 3.6rem;
  font-weight: 600;
}

.product__card .product__card-btn {
  border-radius: 9.9rem;
  font-size: 2.4rem;
  font-weight: 500;
  height: auto;
  padding: 1.6rem 5.2rem;
  border: 1px solid #ffffff;
}

/* 카드 공통 텍스트 */
.product__card-sub {
  color: var(--brand-dark);
  line-height: 1.3em;
}

.product__card-name {
  color: var(--brand-dark);
  line-height: 1.1em;
}

.product__card-desc {
  font-size: 1.8rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.7);
  letter-spacing: -0.04em;
  line-height: 1.4em;
}

/* 제품 이미지 썸네일 */
.product__card-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product__card-thumb img {
  object-fit: contain;
  max-height: 28rem;
}

/* 카드 버튼 */
.product__card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-dark);
  color: #ffffff;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s;
}

.product__card-btn:hover {
  opacity: 0.85;
}

/* 카드 이미지 영역 (우측) */
.product__card-img {
  flex: 1;
  position: relative;
  overflow: hidden;
}

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

/* ======================
   CONTACT 섹션
   ====================== */

.contact {}

.contact__inner {
  position: relative;
  margin: 0 auto;
  border-radius: 8rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 배경 이미지 */
.contact__bg {}

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

.contact__overlay {
  position: absolute;
  inset: 0;
  background: rgba(81, 57, 41, 0.6);
  display: none;
}

/* 콘텐츠 */
.contact__content {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  padding: 0 6rem;
}

.contact__title {
  color: #ffffff;
}

.contact__desc {
  color: rgba(255, 255, 255, 0.70);
}

.contact__btns {
  display: flex;
  gap: 2rem;
  margin-top: 4rem;
}

.contact__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 43rem;
  padding: 2.4rem 4rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9.9rem;
  font-size: 2.4rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s;
  line-height: 1;
}

.contact__btn--contact {
  font-weight: 500;
}

.contact__btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ======================
   OUR STORY 섹션
   ====================== */

.story {
  padding: 18rem 0 20rem;
}

.story__inner {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  align-items: center;
}

.story__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.story__title {
  font-weight: 500;
  line-height: 1.3em;
  text-align: center;
}

.story__handle {
  color: #666666;
  line-height: normal;
}

/* 갤러리 래퍼 */
.story__gallery-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* padding: 0 3rem; */
}

/* 수평 스크롤 갤러리 (Swiper) */
.story__gallery {
  padding: 0 var(--idx-pad) 2rem;
}

/* 갤러리 아이템 */
.story__item {
  max-width: 35.2rem !important;
  max-height: 46.6rem !important;
  border-radius: 3rem;
  overflow: hidden;
}

.story__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

/* Drag 버튼 — 커서 팔로워 */
.story__drag-btn {
  position: fixed;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  width: 12rem;
  height: 12rem;
  background: var(--brand-brown);
  border: none;
  border-radius: 9rem;
  cursor: none;
  pointer-events: none;
  -webkit-backdrop-filter: blur(3.5rem);
  backdrop-filter: blur(3.5rem);
  opacity: 0;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.story__drag-btn.is-visible {
  opacity: 1;
}

.story__drag-text {
  font-size: 1.7rem;
  font-weight: 400;
  color: #ffffff;
  text-transform: capitalize;
}

.story__drag-arrow {
  font-size: 1.2rem;
  color: #ffffff;
  line-height: 1em;
}


/* ======================
   반응형 (모바일 768px 이하)
   ====================== */
@media (max-width: 1024px) {
  .section__title {
    font-size: 3.2rem;
  }

  .section__desc {
    font-size: 1.6rem;
  }

  /* 비주얼 */
  .visual {
    height: 60rem;
    max-height: 100vh;
  }

  .visual__logo {
    left: 2rem;
    top: 8rem;
    width: 24rem;
  }

  .visual__subtitle {
    font-size: 1.6rem;
    margin-bottom: 1.6rem;
    line-height: 1.4;
    font-weight: 400;
    opacity: 0.7;
  }

  .visual__heading {
    left: 0;
    right: 0;
    top: auto;
    font-size: 3.2rem;
  }

  /* NMN 섹션 */
  .nmn {
    padding: 8rem 0 0;
  }

  .nmn__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .nmn__wrap {
    flex-direction: column;
  }

  .nmn__wrap--attn {
    flex-direction: column-reverse;
  }

  .nmn__img-wrap {
    border-radius: 4rem;
    aspect-ratio: 1;
  }

  .nmn__block {
    padding: 2.4rem 0;
  }

  .nmn__label {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }

  .nmn__title {
    margin-bottom: 2.4rem;
  }

  .nmn__desc {
    margin-bottom: 0.8rem;
  }

  .nmn__deco {
    font-size: 7.2rem;
    text-align: right;
  }

  /* 제품 섹션 */
  .product {
    padding: 7.2rem 0 0;
  }


  .product__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
    margin-bottom: 4.8rem;
  }

  .product__title {}

  .product__desc {
    font-size: 1.5rem;
    margin-top: 1.6rem;
  }

  .product__view-btn {
    font-size: 1.4rem;
    padding: 1rem 2.4rem;
  }

  .product__card-thumb img {
    max-height: 16rem;
  }

  /* 태블릿/모바일: 스택 해제 → 가로 스크롤 슬라이더 */
  .product__stack {
    display: flex;
    height: auto;
    gap: 1.6rem;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    padding-bottom: 1.6rem;
  }

  .product__stack::-webkit-scrollbar {
    display: none;
  }

  .product__stack:active {
    cursor: grabbing;
  }

  .product__card {
    position: static;
    /* flex: 0 0 72vw; */
    /* max-width: 36rem; */
    /* height: auto; */
    /* min-height: 52rem; */
    flex-direction: column;
    border-radius: 3.2rem;
    scroll-snap-align: start;
    transition: none;
  }

  .product__card.is-front,
  .product__card.is-middle,
  .product__card.is-back,
  .product__card.is-hidden {
    bottom: auto;
    z-index: auto;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .product__card-info {
    padding: 3.2rem 1.6rem;
    gap: 0.8rem;
    text-align: left;
  }

  .product__card-thumb {
    margin: 0.8rem 0;
  }

  .product__card .product__card-sub {
    font-size: 1.4rem;
    width: 100%;
  }

  .product__card .product__card-name {
    font-size: 2.2rem;
    width: 100%;
  }

  .product__card .product__card-btn {
    padding: 1rem 2.4rem;
    font-size: 1.4rem;
    line-height: 1;
  }

  .product__card-desc {
    font-size: 1.4rem;
    width: 100%;
  }

  .product__card-img {
    /* height: 26rem; */
    aspect-ratio: 1;
  }


  /* CONTACT */
  .contact {
    padding: 8rem 0;
  }

  .contact__inner {
    border-radius: 3.2rem;
  }

  .contact__bg {
    width: 100%;
  }

  .contact__bg img {
    min-height: 51rem;
  }

  .contact__content {
    padding: 0 2.4rem;
  }

  .contact__title {}

  .contact__desc {
    max-width: 40rem;
  }

  .contact__btns {
    flex-direction: column;
    width: 100%;
  }

  .contact__btn {
    min-width: unset;
    width: 100%;
    font-size: 1.6rem;
    max-width: 18rem;
    margin: auto;
    padding: 1.6rem 1rem;
  }

  /* OUR STORY */
  .story {
    padding: 0 0 12rem;
  }

  .story__inner {
    gap: 3.2rem;
  }

  .story__head {
    gap: 0.8rem;
  }

  .story__title {}

  .story__gallery {
    padding: 0 2rem 2rem;
  }

  .story__item {
    /* flex: 0 0 24rem; */
    /* height: 32rem; */
  }

  .story__handle {
    font-size: 1.5rem;
  }

  .story__drag-btn {
    display: none;
  }

  .product .swiper-scrollbar,
  .story .swiper-scrollbar {
    position: static !important;
    width: 90% !important;
    margin: 1.8rem auto 0;
  }
}