@charset "UTF-8";
/* CSS 폰트 로드 */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
/* Phosphor Icons CDN Import */
@import url("https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/regular/style.css");
@import url("https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/bold/style.css");
@import url("https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/fill/style.css");
/* Tailwind breakpoints */
/* Tailwind-style responsive mixin */
@font-face {
  font-family: "Pretendard Variable";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/PretendardVariable.woff2") format("woff2-variations");
}
:root {
  --font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji",
      "Segoe UI Symbol", sans-serif;
  --font-eng: "Inter", sans-serif;
}

body {
  font-family: var(--font-family);
  font-size: 16px; /* 16px */
  color: #111;
}

/* 타이포그래피 (Typography) */
.font-eng {
  font-family: var(--font-eng);
}

/* ==============================================
* 스크롤 컨트롤러 (Track + Pause Button)
* ============================================== */
.scroll-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  max-width: 500px;
  margin: 50px auto 0;
}
@media (min-width: 768px) {
  .scroll-controls.only-mb {
    display: none;
  }
}
@media (max-width: 767px) {
  .scroll-controls {
    margin: 10px auto 0;
  }
}

.scroll-track {
  position: relative;
  flex: 1;
  height: 3px;
  background-color: #e5e5e5;
  border-radius: 2px;
  overflow: hidden;
}

.scroll-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: #111;
  border-radius: 2px;
  will-change: width, left;
}

.scroll-pause {
  position: relative;
  width: 10px;
  height: 12px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
  background: transparent;
  border: none;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.scroll-pause:hover {
  opacity: 1;
}
.scroll-pause::before, .scroll-pause::after {
  content: "";
  display: block;
  width: 4px;
  height: 100%;
  background-color: #000;
  border-radius: 1px;
}
.scroll-pause.is-play::before {
  display: none;
}
.scroll-pause.is-play::after {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #000;
  background-color: transparent;
}

/* 툴팁 */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.tooltip::after {
  content: attr(data-text);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: -8px;
  background-color: #333;
  color: #fff;
  padding: 10px 10px;
  line-height: 1.2;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

/* 기타 컴포넌트 */
#slider-track picture {
  display: block;
  width: 100%;
  height: 100%;
}

.input-underline {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  outline: none;
  font-size: 1.6rem;
  color: #111;
  background: transparent;
  border-radius: 0;
  transition: border-color 0.3s;
}
.input-underline::-moz-placeholder {
  color: #6b7280;
}
.input-underline::placeholder {
  color: #6b7280;
}
.input-underline:focus {
  border-bottom-color: #111;
}

/* ==============================================
* Horizontal Scroll (Integrated)
* ============================================== */
.grid.wide-scroll {
  grid-template-columns: none !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 15px;
  cursor: grab;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.grid.wide-scroll::-webkit-scrollbar {
  display: none;
}
.grid.wide-scroll.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.grid.wide-scroll > * {
  flex: 0 0 82%;
  scroll-snap-align: center;
  will-change: transform;
}
@media (min-width: 768px) {
  .grid.wide-scroll {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    /* 1. 컨테이너 가용 너비 계산 (단위 패딩 제외) */
    /* 2. 우측 화면 끝까지 강제 확장 */
    margin-right: calc(-1 * (100vw - 100%) / 2) !important;
    padding-right: 100px !important;
  }
  .grid.wide-scroll > * {
    /* 3. 3개 노출을 위한 정확한 너비 공식 */
    flex: 0 0 calc((calc(min(1600px, 100vw) - 80px) - 60px) / 3) !important;
    min-width: 280px;
  }
}
@media (max-width: 767px) {
  .grid.wide-scroll > * {
    flex: 0 0 82% !important;
  }
}

@media (max-width: 767px) {
  .grid.mo-scroll {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 16px;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 15px;
    cursor: grab;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
  }
  .grid.mo-scroll::-webkit-scrollbar {
    display: none;
  }
  .grid.mo-scroll.is-dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }
  .grid.mo-scroll > * {
    flex: 0 0 82%;
    scroll-snap-align: center;
    will-change: transform;
  }
  .grid.mo-scroll > * {
    flex: 0 0 82% !important;
    width: auto !important;
    max-width: none !important;
  }
}

/* ==============================
   기본 애니메이션 공통 (Base)
   ============================== */
.delay-50 {
  animation-delay: 50ms !important;
  transition-delay: 50ms !important;
}

.delay-100 {
  animation-delay: 100ms !important;
  transition-delay: 100ms !important;
}

.delay-150 {
  animation-delay: 150ms !important;
  transition-delay: 150ms !important;
}

.delay-200 {
  animation-delay: 200ms !important;
  transition-delay: 200ms !important;
}

.delay-250 {
  animation-delay: 250ms !important;
  transition-delay: 250ms !important;
}

.delay-300 {
  animation-delay: 300ms !important;
  transition-delay: 300ms !important;
}

.delay-350 {
  animation-delay: 350ms !important;
  transition-delay: 350ms !important;
}

.delay-400 {
  animation-delay: 400ms !important;
  transition-delay: 400ms !important;
}

.delay-450 {
  animation-delay: 450ms !important;
  transition-delay: 450ms !important;
}

.delay-500 {
  animation-delay: 500ms !important;
  transition-delay: 500ms !important;
}

.delay-600 {
  animation-delay: 600ms !important;
  transition-delay: 600ms !important;
}

.delay-700 {
  animation-delay: 700ms !important;
  transition-delay: 700ms !important;
}

.delay-800 {
  animation-delay: 800ms !important;
  transition-delay: 800ms !important;
}

.delay-1000 {
  animation-delay: 1000ms !important;
  transition-delay: 1000ms !important;
}

.ani-on,
.letter {
  /* 트랜지션 충돌 방지를 위해 !important 유지 */
  transition-property: opacity, transform, filter !important;
}

.ani-on {
  opacity: 0;
  /* 기본적으로 아래에서 위로 올라오는 위치값 */
  transform: translateY(30px);
}

/* [기본 동작] data-ani 속성이 없을 때 작동 (Slide Up) */
.ani-on-active {
  animation: aniontxt 0.8s cubic-bezier(0.33, 0.45, 0.78, 0.85) forwards;
}

@keyframes aniontxt {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ani-on[data-ani] {
  opacity: 0;
  animation: none;
  transform: none; /* 기본 translateY(30px)를 여기서 초기화 */
  transition: none !important;
}

/* ------------------------------------------------------------------
   Type A: Fade (부드럽게 등장)
   ------------------------------------------------------------------ */
.ani-on[data-ani=fade] {
  opacity: 0;
  /* transform은 위 초기화 구문 덕분에 none 상태임 */
}

.ani-on[data-ani=fade].ani-on-active {
  animation-name: fadeReveal;
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);
  animation-fill-mode: forwards;
}

@keyframes fadeReveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.ani-on[data-ani=slide-up] {
  transform: translateY(50px);
}

.ani-on[data-ani=slide-up].ani-on-active {
  animation-name: slideUpReveal;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation-fill-mode: forwards;
}

@keyframes slideUpReveal {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ------------------------------------------------------------------
   Type B: Scale (작은 크기에서 확대)
   ------------------------------------------------------------------ */
.ani-on[data-ani=scale] {
  opacity: 0;
  transform: scale(0.92); /* 초기화 구문을 덮어쓰고 적용됨 */
  transform-origin: center center;
}

.ani-on[data-ani=scale].ani-on-active {
  animation-name: scaleReveal;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
  animation-fill-mode: forwards;
}

@keyframes scaleReveal {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* ------------------------------------------------------------------
   Type C: Slide Left / Right
   ------------------------------------------------------------------ */
/* Slide Right (왼쪽 → 오른쪽) */
.ani-on[data-ani=slide-right] {
  transform: translateX(-50px);
}

.ani-on[data-ani=slide-right].ani-on-active {
  animation-name: slideRightReveal;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation-fill-mode: forwards;
}

/* Slide Left (오른쪽 ← 왼쪽) */
.ani-on[data-ani=slide-left] {
  transform: translateX(50px);
}

.ani-on[data-ani=slide-left].ani-on-active {
  animation-name: slideLeftReveal;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation-fill-mode: forwards;
}

@keyframes slideRightReveal {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideLeftReveal {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* ------------------------------------------------------------------
   Type D: Wipe (스크롤바 제거 & 완벽 대응)
   ------------------------------------------------------------------ */
.ani-on[data-ani=wipe] {
  /* 1. 투명도 1 강제 (숨김 방지) */
  opacity: 1 !important;
  /* 2. 기존 트랜지션/변형 제거 */
  transform: none !important;
  transition: none !important;
  /* 3. 박스 설정 */
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  /* [핵심 1] 하단 미세 여백(세로 스크롤 원인) 제거 */
  vertical-align: bottom;
  /* 4. 초기 상태: 너비 0 */
  max-width: 0;
  padding-right: 0;
  /* 5. 최적화 */
  will-change: max-width;
}

.ani-on[data-ani=wipe].ani-on-active {
  animation-name: wipeWidthReveal;
  animation-duration: 1.2s;
  animation-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
  animation-fill-mode: forwards;
}

@keyframes wipeWidthReveal {
  from {
    max-width: 0;
  }
  to {
    max-width: 100%;
  }
}
/* ==============================
   Type E: Blur 텍스트 전용 처리
   ============================== */
/* Blur 타입은 자식(.letter)이 움직이므로 부모 컨테이너는 고정 */
.ani-on[data-ani=blur] {
  opacity: 1;
  transform: none;
}

.letter {
  display: inline-block;
  font-size: inherit;
  line-height: inherit;
  font-family: inherit;
  letter-spacing: inherit;
  vertical-align: baseline;
  opacity: 0;
  transform: translateY(30px);
  filter: blur(12px);
  will-change: transform, opacity, filter;
}

.ani-on[data-ani=blur].ani-on-active .letter {
  animation: blurLetter 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes blurLetter {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
/* ==============================
   이미지 줌 (Ken Burns)
   ============================== */
@keyframes kenburns {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.2) translate(-20px, -10px);
  }
}
.img-zoom img {
  animation: kenburns 12s ease-in-out infinite alternate;
}

/* ==============================
   이미지 호버 (Image Hover)
   ============================== */
.img-hover {
  overflow: hidden;
}

.img-hover img {
  transform: scale(1);
  transition: transform 1s ease-in-out;
}

.img-hover:hover img,
.img-hover.hover-on img {
  transform: scale(1.2);
}

/* ------------------------------------------------------------------
   Type F: Soft Pop (애플 스타일 - 블러+스케일 동시 적용)
   - 용도: 모달, 알림창, 강조하고 싶은 카드
   ------------------------------------------------------------------ */
.ani-on[data-ani=soft-pop] {
  opacity: 0;
  /* 작고 흐릿하게 시작 */
  transform: scale(0.94);
  filter: blur(10px);
  /* 기존 트랜지션 제거 */
  transition: none !important;
  will-change: transform, opacity, filter;
}

.ani-on[data-ani=soft-pop].ani-on-active {
  animation: softPopReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes softPopReveal {
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}
/* ------------------------------------------------------------------
   Type G: 3D Flip Up (입체 회전 등장)
   - 용도: 제품 카드, 리뷰 박스, 가격표
   ------------------------------------------------------------------ */
.ani-on[data-ani=flip-up] {
  opacity: 0;
  /* 3D 원근감 부여 */
  transform: perspective(1000px) rotateX(15deg) translateY(30px);
  transform-origin: center bottom;
  transition: none !important;
  will-change: transform, opacity;
}

.ani-on[data-ani=flip-up].ani-on-active {
  animation: flipUpReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes flipUpReveal {
  to {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) translateY(0);
  }
}
/* ------------------------------------------------------------------
   Type H: Grayscale Reveal (흑백에서 컬러로)
   - 용도: 갤러리 이미지, 분위기 있는 인물 사진
   ------------------------------------------------------------------ */
.ani-on[data-ani=grayscale] {
  opacity: 0;
  transform: translateY(20px);
  filter: grayscale(100%); /* 완전 흑백 */
  transition: none !important;
}

.ani-on[data-ani=grayscale].ani-on-active {
  animation: grayReveal 1.2s ease-out forwards;
}

@keyframes grayReveal {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: grayscale(0%);
  }
}
/* ------------------------------------------------------------------
   Type I: Card List (순차 등장 컨테이너)
   - 부모 요소에 적용: data-ani="card-list"
   - 자식 요소: .card-ani 클래스 유지
   ------------------------------------------------------------------ */
.ani-on[data-ani=card] {
  /* 부모 컨테이너는 투명해지거나 움직이면 안 됨 (자식만 움직임) */
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* [자식 요소] 카드 애니메이션 (기존 유지) */
.card-ani {
  opacity: 0;
  transform: translateY(30px);
  /* JS 로드 전 깜빡임 방지 */
  will-change: opacity, transform;
}

.card-ani.ani-on-active {
  opacity: 1;
  transform: translateY(0);
  /* 부드러운 등장 */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* ==============================
   텍스트 리빌 (Text Reveal)
   ============================== */
.text-reveal {
  display: block;
  overflow: hidden;
  line-height: 1.2;
  margin-bottom: -0.2em;
}

.text-reveal > span {
  display: block;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  will-change: transform, opacity;
}

.ani-on-active .text-reveal > span {
  transform: translateY(0);
  opacity: 1;
}

.text-reveal:nth-child(2) > span {
  transition-delay: 0.1s;
}

.text-reveal:nth-child(3) > span {
  transition-delay: 0.2s;
}

/* ==============================
   Expanding Image Container
   ============================== */
.expanding-image-container {
  position: relative;
  will-change: transform;
  transform-origin: center center;
  z-index: 10;
}

/* ==============================
   Marquee (Infinite Scroll)
   ============================== */
.marquee-wrap {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  width: -moz-max-content;
  width: max-content;
  gap: 20px;
  will-change: transform;
}

.scroll-left {
  animation: scrollLeft 60s linear infinite;
}

.scroll-right {
  animation: scrollRight 65s linear infinite;
}

.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes scrollRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}
/* ==============================
   스크롤 텍스트 채움 (Scroll Fill)
   ============================== */
.scroll-fill {
  display: inline-block;
  word-break: keep-all;
  background-image: linear-gradient(var(--fill-color, #111827), var(--fill-color, #111827)), linear-gradient(var(--base-color, #e5e7eb), var(--base-color, #e5e7eb));
  background-repeat: no-repeat;
  background-size: 0% 100%, 100% 100%; /* JS 제어 */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-size 0.1s ease-out;
  will-change: background-size;
}

.scroll-fill[data-color=black] {
  --fill-color: #111827; /* gray-900 */
}

.scroll-fill[data-color=red] {
  --fill-color: #ef4444; /* red-500 */
}

.scroll-fill[data-color=gray] {
  --fill-color: #4b5563; /* gray-600 */
}

.scroll-fill[data-color=brand] {
  --fill-color: #3b82f6; /* blue-500 */
}

.scroll-fill {
  --base-color: #e5e5e5;
}

/* ==============================
   소프트 블러 전환 효과 (Soft Reveal)
   ============================== */
.soft-reveal img {
  filter: blur(15px) grayscale(100%);
  opacity: 0;
  transform: scale(1.05);
  transition: filter 1.5s ease, opacity 1s ease, transform 1.5s ease;
}

.soft-reveal.ani-on-active img {
  filter: blur(0) grayscale(0);
  opacity: 1;
  transform: scale(1);
}

/* ==============================
   Hover-Up 버튼 효과
   ============================== */
.hover-up {
  display: inline-block;
  transition: transform 0.3s ease;
}

.hover-up:hover {
  transform: translateY(-4px);
}