@charset "utf-8";

/* ============================================================
   msub40 — 메신저 대화형 인터뷰
   ============================================================ */

.ci-article {
	background: #f5f5f3;
}

/* ── 히어로 ─────────────────────────────────────── */
.ci-hero {
	position: relative;
	min-height: 0;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.ci-hero-bg {
	position: absolute;
	inset: 0;
}

.ci-hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ci-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,.1) 100%);
}

.ci-hero-content {
	position: relative;
	z-index: 1;
	padding: 120px 24px 60px;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
}

.ci-label {
	display: block;
	font-size: clamp(14px, calc(6px + 1.2vw), 18px);
	font-weight: 600;
	color: rgba(255,255,255,.6);
	margin-bottom: 28px;
	letter-spacing: 0.04em;
}

.ci-profile {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 28px;
}

.ci-profile-img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid rgba(255,255,255,.4);
	flex-shrink: 0;
}

.ci-profile-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ci-name {
	font-size: clamp(28px, calc(12px + 2.4vw), 44px);
	font-weight: 900;
	color: #fff;
	font-family: var(--font-sub-title);
	line-height: 1.1;
	margin-bottom: 4px;
}

.ci-role {
	font-size: clamp(14px, calc(6px + 1.2vw), 18px);
	color: rgba(255,255,255,.6);
}

.ci-quote {
	font-size: clamp(18px, calc(6px + 1.8vw), 26px);
	color: rgba(255,255,255,.9);
	font-family: var(--font-sub-title);
	font-weight: 700;
	line-height: 1.6;
	margin-bottom: 28px;
	max-width: 560px;
}

.ci-meta {
	display: flex;
	gap: 20px;
	font-size: clamp(14px, calc(6px + 1.2vw), 18px);
	color: rgba(255,255,255,.45);
}

.ci-hero-scroll {
	position: absolute;
	right: 60px;
	bottom: 60px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	z-index: 1;
}

.ci-hero-scroll span {
	font-size: 11px;
	color: rgba(255,255,255,.4);
	writing-mode: vertical-rl;
	letter-spacing: 0.12em;
}

.ci-scroll-line {
	width: 1px;
	height: 48px;
	background: rgba(255,255,255,.2);
	position: relative;
	overflow: hidden;
}

.ci-scroll-line::after {
	content: '';
	position: absolute;
	top: -100%;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255,255,255,.7);
	animation: scrollDown 1.6s ease-in-out infinite;
}

@keyframes scrollDown {
	0% { top: -100%; }
	100% { top: 100%; }
}

/* ── 채팅 래퍼 ─────────────────────────────────── */
.ci-wrap {
	max-width: 720px;
	margin: 0 auto;
	padding: 60px 24px 100px;
}

.ci-chat-window {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* ── 날짜/시간 구분선 ───────────────────────────── */
.ci-date-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px 0;
	margin: 8px 0;
}

.ci-date-divider::before,
.ci-date-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--color-border);
}

.ci-date-divider span {
	font-size: clamp(14px, calc(6px + 1.2vw), 18px);
	color: var(--color-text-sub);
	opacity: 0.45;
	white-space: nowrap;
}

.ci-date-divider--end {
	margin-top: 16px;
}

.ci-time-stamp {
	text-align: center;
	font-size: clamp(14px, calc(6px + 1.2vw), 18px);
	color: var(--color-text-sub);
	opacity: 0.35;
	padding: 12px 0 8px;
}

/* ── 채팅 행 ─────────────────────────────────────── */
.ci-row {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	margin-bottom: 20px;
}

/* Q — 왼쪽 */
.ci-row--q {
	justify-content: flex-start;
	padding-right: 60px;
}

.ci-q-mark {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--color-text-main);
	color: var(--color-bg-main);
	font-size: 22px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-bottom: 2px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.ci-q-mark.is-visible {
	opacity: 1;
}

/* A — 오른쪽 */
.ci-row--a {
	justify-content: flex-start;
	flex-direction: row-reverse;
	padding-left: 60px;
}

.ci-a-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	margin-bottom: 2px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.ci-a-avatar.is-visible {
	opacity: 1;
}

.ci-a-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── 말풍선 묶음 ─────────────────────────────────── */
.ci-bubbles {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: calc(100% - 54px);
}

.ci-row--a .ci-bubbles {
	align-items: flex-end;
}

.ci-row--q .ci-bubbles {
	align-items: flex-start;
}

/* ── 말풍선 ─────────────────────────────────────── */
.ci-bubble {
	padding: 0;
	height: 0;
	overflow: hidden;
	border-radius: 20px;
	font-size: clamp(14px, calc(4px + 1.2vw), 18px);
	line-height: 1.65;
	opacity: 0;
	transform: translateY(6px);
	transition: height 0s, padding 0s, overflow 0s, opacity 0.35s ease, transform 0.35s ease;
	max-width: 100%;
}

.ci-bubble.is-visible {
	padding: 12px 16px;
	height: auto;
	overflow: visible;
	opacity: 1;
	transform: translateY(0);
}

.ci-bubble--img.is-visible {
	padding: 0;
	overflow: hidden;
}

/* Q 말풍선 */
.ci-row--q .ci-bubble {
	background: #fff;
	color: var(--color-text-main);
	border-radius: 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.ci-row--q .ci-bubbles .ci-bubble:last-child {
	border-radius: 20px 20px 20px 4px;
}

/* A 말풍선 */
.ci-row--a .ci-bubble {
	background: #1a1a1a;
	color: #fff;
	border-radius: 20px;
}

.ci-row--a .ci-bubbles .ci-bubble:last-child {
	border-radius: 20px 20px 4px 20px;
}

/* 이미지 말풍선 */
.ci-bubble--img {
	padding: 0;
	overflow: hidden;
	width: 280px;
	max-width: 100%;
	aspect-ratio: 4 / 3;
}

.ci-bubble--img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── 타이핑 인디케이터 ───────────────────────────── */
.ci-typing {
	display: flex;
	gap: 5px;
	align-items: center;
	padding: 14px 18px;
	background: #1a1a1a;
	border-radius: 20px 4px 20px 20px;
	width: fit-content;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.ci-typing.is-visible {
	opacity: 1;
}

.ci-typing span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255,255,255,.55);
	animation: typingBounce 1.1s ease-in-out infinite;
	display: block;
}

.ci-typing span:nth-child(2) { animation-delay: 0.18s; }
.ci-typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes typingBounce {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.55; }
	30% { transform: translateY(-5px); opacity: 1; }
}

/* ============================================================
   반응형 — 999px
   ============================================================ */
@media all and (max-width: 999px) {
	.ci-hero-content {
		padding: 100px 24px 52px;
	}
	.ci-hero-scroll {
		right: 32px;
		bottom: 48px;
	}
	.ci-wrap {
		padding: 48px 20px 80px;
	}
}

/* ============================================================
   반응형 — 768px
   ============================================================ */
@media all and (max-width: 768px) {
	.ci-hero-content {
		padding: 90px 20px 44px;
	}
	.ci-hero-scroll {
		display: none;
	}
	.ci-wrap {
		padding: 32px 16px 48px;
	}
	.ci-row {
		gap: 8px;
		margin-bottom: 16px;
	}
	.ci-row--q {
		padding-right: 28px;
	}
	.ci-row--a {
		padding-left: 28px;
	}
	.ci-q-mark,
	.ci-a-avatar {
		width: 36px;
		height: 36px;
	}
	.ci-q-mark {
		font-size: 18px;
	}
	.ci-bubbles {
		max-width: calc(100% - 44px);
	}
	.ci-bubble--img {
		width: 220px;
	}
}

/* ============================================================
   반응형 — 499px
   ============================================================ */
@media all and (max-width: 499px) {
	.ci-wrap {
		padding: 24px 12px 40px;
	}
	.ci-row--q {
		padding-right: 16px;
	}
	.ci-row--a {
		padding-left: 16px;
	}
	.ci-q-mark,
	.ci-a-avatar {
		width: 32px;
		height: 32px;
	}
	.ci-q-mark {
		font-size: 16px;
	}
	.ci-bubbles {
		max-width: calc(100% - 40px);
	}
	.ci-bubble--img {
		width: 180px;
	}
}

/* ============================================================
   다크모드
   ============================================================ */
body.dark .ci-article {
	background: #111;
}

body.dark .ci-date-divider::before,
body.dark .ci-date-divider::after {
	background: var(--color-border-strong);
}

body.dark .ci-row--q .ci-bubble {
	background: #2a2a2a;
	color: var(--color-text-main);
	box-shadow: none;
}

body.dark .ci-q-mark {
	background: var(--color-text-main);
	color: #111;
}
