@charset "utf-8";

/* ============================================================
   msub17 — 드래그 비포/애프터형
   Before/After 이미지 비교 슬라이더 + 섹션별 도시 재생 기록
   ============================================================ */

/* ============================================================
   Before/After 슬라이더 공용
   ============================================================ */
.ba-slider {
	position: relative;
	overflow: hidden;
	user-select: none;
	touch-action: pan-y;
	cursor: ew-resize;
}

.ba-before,
.ba-after {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.ba-after {
	clip-path: inset(0 50% 0 0);
	will-change: clip-path;
}

/* BEFORE / AFTER 라벨 */
.ba-label {
	position: absolute;
	bottom: 16px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: rgba(0, 0, 0, 0.45);
	padding: 4px 10px;
	border-radius: 3px;
	pointer-events: none;
	z-index: 10;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.ba-label--before { left: 20px; }
.ba-label--after  { right: 20px; }

/* 핸들 — 세로선 + 원형 버튼 */
.ba-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	pointer-events: none;
	z-index: 20;
	will-change: left;
}

.ba-handle-line {
	width: 3px;
	flex: 1;
	background: rgba(255, 255, 255, 0.85);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.ba-handle-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #fff;
	color: #1a1a1a;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ba-slider:active .ba-handle-btn {
	transform: translateY(-50%) scale(0.92);
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.ba-handle-btn svg {
	width: 36px;
	height: 22px;
}

/* ============================================================
   히어로
   ============================================================ */
.ba-hero {
	position: relative;
	height: 100vh;
	min-height: 560px;
	overflow: hidden;
}

.ba-hero-slider {
	position: absolute;
	inset: 0;
	cursor: ew-resize;
}

.ba-hero-slider .ba-before,
.ba-hero-slider .ba-after {
	position: absolute;
	inset: 0;
}

/* 히어로 라벨 — 상단에 배치 */
.ba-hero-slider .ba-label {
	top: 20px;
	bottom: auto;
}

/* 히어로 텍스트 오버레이 */
.ba-hero-text {
	position: absolute;
	inset: 0;
	z-index: 30;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 0 60px 60px;
	background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.08) 45%, transparent 100%);
	color: #fff;
	pointer-events: none;
}

.ba-hero-cat {
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
	font-weight: 500;
	margin-bottom: 18px;
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.75s ease, transform 0.75s ease;
}

.ba-hero-tit {
	font-size: clamp(34px, calc(18px + 3vw), 72px);
	font-weight: 800;
	font-family: var(--font-sub-title);
	margin-bottom: 16px;
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.75s ease, transform 0.75s ease;
}

.ba-hero-sub {
	font-size: clamp(16px, calc(4px + 1.5vw), 20px);
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.75s ease, transform 0.75s ease;
}

.ba-hero.is-init .ba-hero-cat { opacity: 0.65; transform: none; transition-delay: 0.15s; }
.ba-hero.is-init .ba-hero-tit { opacity: 1;    transform: none; transition-delay: 0.3s;  }
.ba-hero.is-init .ba-hero-sub { opacity: 0.7;  transform: none; transition-delay: 0.45s; }

/* ============================================================
   인트로 바
   ============================================================ */
.ba-intro {
	max-width: 1280px;
	margin: 0 auto;
	padding: 64px 60px;
	display: flex;
	gap: 64px;
	align-items: flex-start;
	border-bottom: 1px solid var(--color-border);
}

.ba-intro-label {
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
	font-weight: 600;
	color: var(--color-primary);
	white-space: nowrap;
	flex-shrink: 0;
	padding-top: 5px;
}

.ba-intro-txt {
	font-size: clamp(18px, calc(6px + 1.5vw), 24px);
	color: var(--color-text-sub);
	max-width: 680px;
}

/* ============================================================
   비교 섹션 공용
   ============================================================ */
.ba-section {
	max-width: 1280px;
	margin: 0 auto;
	padding: 80px 60px;
	border-bottom: 1px solid var(--color-border);
}

/* 스택형 (기본) — 텍스트 위 / 슬라이더 아래 */
.ba-section .ba-sec-txt {
	margin-bottom: 40px;
	max-width: 680px;
}

.ba-section .ba-slider {
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	overflow: hidden;
}

/* 전체 너비 슬라이더 */
.ba-section--wide .ba-sec-txt {
	max-width: 580px;
}

/* 그리드형 — 좌우 분할 */
.ba-section--grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
}

.ba-section--grid .ba-sec-txt {
	margin-bottom: 0;
	max-width: none;
}

.ba-section--grid .ba-slider {
	aspect-ratio: 4 / 3;
}

/* alt: 슬라이더 좌, 텍스트 우 */
.ba-section--alt {
	direction: rtl;
}

.ba-section--alt > * {
	direction: ltr;
}

/* ============================================================
   섹션 텍스트 요소
   ============================================================ */
.ba-sec-num {
	display: block;
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
	font-weight: 700;
	color: var(--color-primary);
	margin-bottom: 12px;
}

.ba-sec-tit {
	font-size: clamp(26px, calc(12px + 2vw), 42px);
	font-weight: 800;
	font-family: var(--font-sub-title);
	color: var(--color-text-main);
	margin-bottom: 20px;
}

.ba-sec-body {
	font-size: clamp(16px, calc(2px + 1.6vw), 20px);
	color: var(--color-text-sub);
}

/* ============================================================
   반응형 — 999px
   ============================================================ */
@media all and (max-width: 999px) {
	.ba-hero-text { padding: 0 32px 48px; }

	.ba-intro { padding: 48px 32px; gap: 36px; }

	.ba-section { padding: 64px 32px; }

	.ba-section--grid { gap: 40px; }
}

/* ============================================================
   반응형 — 768px
   ============================================================ */
@media all and (max-width: 768px) {
	.ba-hero { height: 72vh; }
	.ba-hero-text { padding: 0 20px 40px; }

	.ba-intro {
		flex-direction: column;
		padding: 40px 20px;
		gap: 12px;
	}

	.ba-section { padding: 48px 20px; }

	.ba-section--grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.ba-section--alt {
		direction: ltr;
	}

	.ba-section--grid .ba-slider {
		aspect-ratio: 16 / 9;
	}

	.ba-handle-btn {
		width: 46px;
		height: 46px;
	}

	.ba-handle-btn svg {
		width: 30px;
		height: 18px;
	}
}

/* ============================================================
   반응형 — 499px
   ============================================================ */
@media all and (max-width: 499px) {
	.ba-hero { height: 62vh; }

	.ba-section { padding: 36px 16px; }

	.ba-intro { padding: 32px 16px; }

	.ba-handle-btn {
		width: 40px;
		height: 40px;
	}

	.ba-label {
		padding: 4px 10px;
		bottom: 12px;
	}

	.ba-label--before { left: 12px; }
	.ba-label--after  { right: 12px; }
}
