/* ============================================================================================================================== */
/* ======================================================= custom common 코드 ==================================================== */
/* ============================================================================================================================== */

.zoom-wrap {position: relative; /*overflow: hidden;*/}
.zoom-mask{
  position: absolute;
  inset: 0;
  overflow: hidden;   /* 배경만 잘라냄 */
  z-index: 0;
  pointer-events: none;
}
.zoom {transform: scale(1.12); transition: transform 0.8s ease-in-out; width: 100%;}
.zoom.active {transform: scale(1); transition: transform 2.4s ease-in-out;}

.line{width: 30px;height: 5px;background: #000;margin-top: 20px;margin-bottom: 20px;}

.bg-animation {position: absolute; left: 0; top: 0; width: 100%; height: 100%;}

.progress-ring-circle {transition: 2.4s stroke-dashoffset; transform: rotate(-90deg); transform-origin: 50% 50%;}

.pc-layout {display: block;}
.mobile-layout {display: none;}

.cursor_wrap {position: absolute; left: 0; top: 0; width: 64px; height: 64px; pointer-events: none; z-index: 500000000;}
.cursor_wrap.hide {display: none;}
.cursor_wrap .cursor {position: fixed;}
.cursor2 {mix-blend-mode: plus-lighter;}
.pointer {position: absolute; left: 50%; top: 50%; margin: -16px 0 0 -16px; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6.62px #344a24; opacity: 0; transition: opacity 0.3s;}
.pointer::before, .pointer::after {content: ""; position: absolute; left: 50%; top: 50%; display: block; margin: -16px 0 0 -16px; width: 32px; height: 32px;border-radius: 50%;transform: translate3d(0, 0, 0);}
.pointer::before {background-color: #344a24; animation: expand 1.8s ease-out infinite both;}
.pointer::after {background-color: #fff; animation: expand 1.8s ease-out 0.8s infinite both;}
.fade {opacity: 0.8;}
.btn-cta {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border: 2.5px solid #0a392b;
  border-radius: 999px;
  padding: 7px 32px;
  color: #0a392b;
  font-size: 22px;
  font-weight: 500;
  z-index: 1;
  transition: color 0.4s ease;
  cursor: pointer;
}
.btn-cta.white{
  border-color: #fff;
  color: #fff;
}
.btn-cta::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  background: #0a392b;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
  z-index: -1;
}
.btn-cta.white::before { background: #fff; }

.btn-cta:hover { color: #fff; }
.btn-cta.white:hover { color: #0a392b; }
.btn-cta:hover::before,
.btn-cta.white:hover::before { width: 400px; height: 400px; }

/* 480px 이하 극소형 모바일 대응 */
@media screen and (max-width: 480px) {
  .btn-cta {
    border-width: 1.5px; /* 모바일에서 선이 굵어 보이지 않게 살짝 축소 */
    padding: 7px 30px;
    font-size: 17px;
  }
}

/* 유튜브 반응형 */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 비율 */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


@keyframes expand {
	0% {
		z-index: 2;
		transform: scale(0);
	}
	50% {
		z-index: 1;
		transform: scale(1);
	}
	100% {
		z-index: 0;
	}
}

.custom-link {position: absolute; left: 0; top: -120px;}

.sub-common {max-width: 1600px; margin: 80px auto 0;}
.sub-common::before {position: absolute; content: ''; top: 0; right: 0; width: 440px; height: 458px; background: url(../img/custom/logo_bg.png) center/cover no-repeat;}
.sub-common .middle-title img {margin-bottom: 20px;}
.sub-slide-wrap {position: relative;}
.sub-slide {margin-top: 40px;}
.sub-slide .swiper-slide {text-align: center;}
.sub-slide .swiper-slide p {margin-top: 20px; line-height: 1.3; white-space: pre-line;}
.sub-slide-wrap .swiper-button-prev,
.sub-slide-wrap .swiper-button-next {top: calc(50% - 35px); transform: translateY(-50%); margin: 0; width: 45px; height: 45px; background: #554a3f; border-radius: 50%; color: #fff;}
.sub-slide-wrap .swiper-button-next {right: -60px;}
.sub-slide-wrap .swiper-button-prev {left: -60px;}
.sub-slide-wrap .swiper-button-prev::after,
.sub-slide-wrap .swiper-button-next::after {font-size: 24px;} 


header .numberImp {display: flex; align-items: center; margin-left: 20px;}
header .numberImp p {color: #fff; line-height: 1.3;}

.scroll-indicator {position: absolute; display: none; left: 0; top: 0; width: 100%; height: 100%; background: rgba(248,242,229,0.8); z-index: 1;}
.scroll-indicator.active {opacity: 0; z-index: -1;}

/* 케이스 스타일 */
.case-style ul{display: flex;gap:20px;}
.case-style ul li{position: relative;width: 50%;}
.case-style ul li img{width: 100%;height: auto;}
.case-style ul li span{display: inline-block;position: absolute;top:0;left: 0;font-size: 20px;padding: 5px 20px;letter-spacing: 0px;color: #fff;background: #344a24;}
.case-style ul li:before{content:"";background:url(../img/watermark.svg) center / 100% no-repeat;position: absolute;width: 100%;height: 100%;top:0;left: 0;}
.case-style ul li.before:after{content:"BEFORE";position: absolute;left: 0;bottom: 0;padding: 5px 0;text-align: center;width: 100%;color: #fff;background: rgba(0,0,0,0.5);font-size: 20px;z-index: 1;}
.case-style ul li.middle:after{content:"MIDDLE";position: absolute;left: 0;bottom: 0;padding: 5px 0;text-align: center;width: 100%;color: #fff;background: rgba(0,0,0,0.5);font-size: 20px;z-index: 1;}
.case-style ul li.after:after{content:"AFTER";position: absolute;left: 0;bottom: 0;padding: 5px 0;text-align: center;width: 100%;color: #fff;background: rgba(52,74,36,0.7);;font-size: 20px;z-index: 1;}
.case-style ul li .blur::before {position: absolute; content: ''; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 1;}
.case-style ul li .blur{overflow: hidden;}
.case-style ul li .blur img {filter: blur(5px);}
.case-style ul li .blur .txt {position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 100%; text-align: center; z-index: 2;}
.case-style ul li .blur .txt p {color: #fff; white-space: pre-line; font-size: 20px;}
.case-style .btn-style{text-align: center;}

.case-style.three ul li{width: 33.3%;}

/* 비포 애프터 슬라이드 */

.before-after-slide{justify-content: space-between; display: flex; width: 100%; flex-wrap:wrap;}
.before-after-slide img{width: 100%;}

.case-img > div:after{content:"";background: url(../img/watermark.svg) center / 100% no-repeat; position: absolute;width: 200px;height: 50px;    left: 50%; bottom: 20%;margin-bottom: -25px;margin-left: -100px;}

.case-area{width: calc(50% - 2%); }
.case-wrap{position: relative;}
.case-img{text-align: center;}
.case-num {left: 3%; top: 5%; text-transform: uppercase; border: 2px solid #c6e8ff; padding: 0.8rem 0.4rem; line-height: 1.4; color: #c6e8ff; width: 4.25rem; height: 4.25rem; position: absolute; z-index: 1; text-align: center;}
.case-logo{bottom: 6%; left: 4%; opacity: .4; position: absolute; z-index: 1;}
.logo-w{width: 10.8rem; height: 6rem; background: url(img/logo.png)50%/100% no-repeat;}
.ir{text-indent: 100%; white-space: nowrap; overflow: hidden;}
img{max-width: 100%; vertical-align: top;}
.case-after {position: absolute; top: 0; left: 0; width: 100%; z-index: 0; opacity: 0;}
.on .case-after {-webkit-animation: fadeIn50 1s 0.3s forwards; animation: fadeIn50 1s 0.3s forwards;}
.on .case-after.move {-webkit-animation: none; animation: none;}
@-webkit-keyframes fadeIn50 {
    0% {opacity: 0;}
    to {opacity: 0.5;}
}
@keyframes fadeIn50 {
    0% {opacity: 0;}
    to {opacity: 0.5;}
}
.case-desc-txt {right: 4%; bottom: 6%; color: #fff; font-weight: 300; position: absolute; z-index: 1;}
.case-slider { padding: 5% 0; align-items: center; justify-content: space-between; display: flex;}
.prog-bar{width: 100%; display: flex; justify-content: center; position: relative;}
input[type=range] {-webkit-appearance: none; width: 100%; background: transparent; z-index: 2;}
input[type="range" i] {appearance: auto; cursor: default; color: -internal-light-dark(rgb(16, 16, 16), rgb(255, 255, 255)); padding: initial; border: initial; margin: 2px;}
.prog-bar:after {position: absolute; content: ""; top: 48%; left: 0; width: 100%; height: 2px; background: #ededed;}
::-webkit-scrollbar {width: 0.8rem;}
::-webkit-scrollbar-thumb {background: hsla(0,0%,77.3%,.5);}
input[type='range'] {-webkit-appearance: none; width: 100%; background: transparent;}
input[type='range']::-webkit-slider-thumb {-webkit-appearance: none; background: #fff; -webkit-border-radius: 50%;-moz-border-radius: 50%;border-radius: 50%; width: 2.75rem; height: 2.75rem;background: url("../img/sub/range_arrow.png") 0 0/100% no-repeat;}
input[type='range']::-moz-range-thumb {background: #fff; -webkit-border-radius: 50%;-moz-border-radius: 50%;border-radius: 50%; width: 2.75rem; height: 2.75rem; background: url("../img/sub/range_arrow.png") 0 0/100% no-repeat;}
input[type='range']:focus {outline: none;}
input[type='range']::-ms-track {width: 100%; cursor: pointer; background: transparent; border-color: transparent; color: transparent;}


/* ===== Before/After Split Slider — Final ===== */

/* 충돌 리셋: 과거 애니메이션/마스크/페이드 제거 */
.on .case-after, .case-after.move { animation: none !important; }
.case-img::after { content: none !important; }                 /* 예전 중앙선 제거 */


/* 레이아웃: before로 높이 확보, after는 오버레이 */
.case-wrap{ position: relative; }
.case-img{ position: relative; overflow: hidden; --pos: 50%; } /* 중앙선 위치(%) */
.case-img .case-before{ position: relative; z-index: 1; }
.case-img .case-after{ position: absolute; inset: 0; z-index: 2; opacity:1 !important; }

/* 핵심: after를 중앙선(--pos) 기준으로 오른쪽만 보이게(와이프) */
.case-img .case-after{
  -webkit-mask-image: linear-gradient(90deg, transparent 0 var(--pos), #000 var(--pos) 100%);
          mask-image: linear-gradient(90deg, transparent 0 var(--pos), #000 var(--pos) 100%);
  transition: -webkit-mask-image .25s ease, mask-image .25s ease;
}

/* 중앙 분할선 */
.case-img::before{
  content:""; position:absolute; top:0; bottom:0; left: var(--pos);
  width:2px; background: rgba(255,255,255,.9);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
  z-index: 3; pointer-events:none;
  transition: left .25s ease, opacity .25s ease;
}

/* 워터마크가 after 위로 올라오도록 (필요 시) */
.case-img > div::after{ z-index: 4; }


/* ==== Split Slider 최종 오버라이드 ==== */
.on .case-after, .case-after.move { animation:none !important; } /* 예전 0.5 페이드 제거 */
.case-after { opacity:1 !important; }                            /* 항상 보이게(마스크로 분할) */

.case-wrap{ position:relative; }
.case-img{ position:relative; overflow:hidden; --pos:50%; }
.case-img .case-before{ position:relative; z-index:1; }
.case-img .case-after{ position:absolute; inset:0; z-index:2; }

/* 핵심: 마스크를 강제로 켬(!important) */
.case-img .case-after{
  -webkit-mask-image: linear-gradient(90deg, transparent 0 var(--pos), #000 var(--pos) 100%) !important;
          mask-image: linear-gradient(90deg, transparent 0 var(--pos), #000 var(--pos) 100%) !important;
  transition: -webkit-mask-image .25s ease, mask-image .25s ease;
}

/* ===== BEFORE/AFTER Split (동기화 최종본) ===== */

/* 과거 규칙 무력화 */
.on .case-after, .case-after.move { animation: none !important; }
.case-img::after { content: none !important; } /* 예전 중앙선 제거 */
.case-img .case-before, .case-img .case-after {
  -webkit-mask: none !important; mask: none !important;
  clip-path: none; /* 아래에서 다시 지정 */
}

/* 레이아웃 */
.case-wrap{ position: relative; }
.case-img{ position: relative; overflow: hidden; --pos:50%; }
.case-img .case-before{ position: relative; z-index: 1; }
.case-img .case-after { position: absolute; inset: 0; z-index: 2; opacity:1 !important; }

/* after를 '오른쪽'에서부터 보여주기 (분할선 = --pos) */
/* clip-path: inset( top right bottom left );  right = 100% - pos  */
.case-img .case-after{
  clip-path: inset(0 0 0 var(--pos)) !important; /* ← 방향 수정 */
  transition: none;
}

/* 중앙 분할선 (분할선 위치 = --pos) */
.case-img::before{
  content:""; position:absolute; top:0; bottom:0; left: var(--pos);
  width:2px; background: rgba(255,255,255,.9);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
  z-index: 3; pointer-events:none;
  transition: none; /* 이미지와 동일 타이밍 */
}



/* 워터마크 레이어 (필요 시만) */
.case-img > div::after{ z-index: 4; }

.case-img3 > div::after{ z-index: -1; }


/* 비포 애프터 슬라이드 */

/*================================================================ 1500px 이하 ================================================================= */
@media screen and (max-width:1500px) {

}

/*================================================================ 1200px 이하 ================================================================= */
@media screen and (max-width:1200px) {

header .numberImp {display: none;}


}

/*================================================================ 1025px 이하 ================================================================= */
@media screen and (max-width:1025px) {
.sub-common {margin: 40px auto 0;}
.sub-common::before {width: 300px; height: 312px;}
.sub-common-01 .left{margin-left: 50px;}
.sub-slide-wrap .swiper-button-next {right: 10px;}
.sub-slide-wrap .swiper-button-prev {left: 10px;}
}

/*================================================================ 900px 이하 ================================================================= */
@media screen and (max-width:900px) {
.case-style ul li .blur .txt p{font-size: 17px;}
video{width: 100%;vertical-align: bottom;}
.m_img img{width: 50%;}
}

/*================================================================ 769px 이하 ================================================================= */
@media screen and (max-width:769px) {
.sub-common {margin: 0 auto;}
.sub-common::before {width: 180px; height: 187px; right: auto; top: auto; bottom: -110px;}
.case-style ul{gap:5px;}
.case_txt.mt5{margin-top: 50px;}

.line{margin: 20px auto;}

.sub-slide-wrap .swiper-button-prev,
.sub-slide-wrap .swiper-button-next {width: 35px; height: 35px;}
.sub-slide-wrap .swiper-button-prev::after,
.sub-slide-wrap .swiper-button-next::after {font-size: 17px;}

.custom-link {top: -80px;}
}

/*================================================================ 600px 이하 ================================================================= */
@media screen and (max-width:600px) {
.case-style ul li .blur .txt p{font-size: 15px;}
.case-tit h4{font-size: 15px;}
.case-tit img{max-width:20px;}
.case-slider{padding: 5px;}
.case-img > div:after{content:"";background: url(../img/watermark.svg) center / 100% no-repeat; position: absolute;width: 100px;height: 30px;right: 10px;bottom: 5px;}
}

/*================================================================ 425px 이하 ================================================================= */
@media screen and (max-width:425px) {
.pc-layout {display: none !important;}
.mobile-layout {display: block !important;}

.sub-common::before {width: 230px; height: 239px; bottom: -65px; left: -65px;}
.sub-common .middle-title img {margin-bottom: 15px; max-width: 65px;}
.sub-slide .swiper-slide p {font-size: 17px;}

.sub12-common .inner {padding: 0 20px;}
.sub12-common .inner > div > div:not(:first-child) {margin-top: 20px;}
.sub12-common .inner > div > div:nth-child(2n) {text-align: right;}
.sub12-common .txt {padding: 20px 10px;}
.sub12-common .sub {margin-top: 10px;}

.cursor_wrap {display: none;}


.custom-link {top: -60px;}

.case-style ul{flex-wrap: wrap;}
.case-style ul li{width: 100%;}
.case-style ul li img{width: 100%;height: auto;}
.case-style ul li .blur .txt p{font-size: 13px;}
.case-style ul li.after:after{font-size: 15px;}
.case-style ul li.middle:after{font-size: 15px;}
.case-style ul li.before:after{font-size: 15px;}
.case_txt p{font-size: 10px;}
.case_txt.mt5{margin-top: 10px;}
.case-style ul li span{font-size: 13px;padding: 2px 5px;}
.case-style.three ul li{width: 100%;}

.scroll-indicator {display: block;}
}


/* ============================================================================================================================== */
/* ======================================================= custom common 코드 ==================================================== */
/* ============================================================================================================================== */


/* ===================================================================
   common-before-after : BEFORE & AFTER 케이스 롤링 (공통 컴포넌트)
=================================================================== */
.common-before-after { text-align: center; }

.ba-title { opacity: 0; transform: translateY(30px); margin-bottom: 50px; }
.ba-title h2 {
  font-family: "condor", sans-serif;
  font-weight: 300;
  font-size: clamp(35px, 8vw, 80px);
  color: #0a392b;
  letter-spacing: 5px;
}
.ba-title-kr h2 {
  font-weight: 600;
  font-size: clamp(35px, 8vw, 60px);
  color: #0a392b;
}
.ba-title h3 {
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 30px);
  color: #0a392b;
  margin-top: 16px;
}
.ba-title-kr h3 {
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 25px);
  color: #0a392b;
  margin-top: 16px;
}
.ba-title p { margin-top: 12px; font-size: 20px; color: #333; }
.ba-title-kr p { margin-top: 12px; font-size: 20px; color: #ccc; }

.ba-carousel { overflow: hidden; cursor: grab; opacity: 0; transform: translateY(30px); }
.ba-carousel.is-dragging { cursor: grabbing; }
.ba-track { display: flex; will-change: transform; }
.ba-slide { flex: 0 0 100%; width: 100%; }
.ba-pair { display: flex; gap: 10px; }
.ba-img { flex: 1; overflow: hidden; }
.ba-img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.ba-dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.ba-dot { width: 9px; height: 9px; border-radius: 50%; background: #d9d9d9; cursor: pointer; transition: background 0.3s; }
.ba-dot.is-active { background: #0a392b; }

@media screen and (max-width: 769px) {
 /* .ba-pair { flex-direction: column; } */
  .ba-title p { font-size: 14px; }
  .ba-title-kr p { font-size: 14px; }
}


/* ===================================================================
   common-before-after-card : BEFORE & AFTER 2컬럼 카드형 (공통 컴포넌트)
=================================================================== */
.common-before-after-card { text-align: center; }

.bac-title { opacity: 0; transform: translateY(30px); margin-bottom: 40px; }
.bac-title h2 {
  font-family: "condor", sans-serif;
  font-weight: 300;
  font-size: clamp(35px, 8vw, 100px);
  color: #0a392b;
}

.bac-row {
  display: flex;
  gap: 24px;
  opacity: 0;
  transform: translateY(30px);
}
.bac-card { flex: 1; text-align: left; }
.bac-img {
  background: #0a392b;
  overflow: hidden;
}
.bac-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bac-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}
.bac-name { font-weight: 700; color: #0a392b; font-size: 20px; }
.bac-period { color: #666; font-size: 20px; }

.bac-btn { display: inline-block; margin-top: 32px; }

@media screen and (max-width: 769px) {
  .bac-row { flex-direction: column; gap: 30px; }
  .bac-name, .bac-period { font-size: 14px; }
}