/* msub37 — 김서연의 이야기 (캠퍼스 웹진 1인 상세 인터뷰형) */

:root {
	--u27-brown: #1a1208;
	--u27-orange: #c4622d;
	--u27-mocha: #8b6f47;
	--u27-beige: #d4c4a8;
	--u27-cream: #f5f3ef;
	--u27-serif: "IBM Plex Sans KR", sans-serif;
}

/* ----------------------------------------
   S1: 히어로
   ---------------------------------------- */
.u37-hero {
	position: relative;
	height: 100vh;
	min-height: 600px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--u27-brown);
}

.u37-hero-bg {
	position: absolute;
	inset: 0;
	background: url("/sub/motion/images/sub/u37-bg.jpg") center / cover no-repeat;
	will-change: transform;
}

.u37-hero-dim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(10, 6, 2, 0.1) 0%, rgba(10, 6, 2, 0.78) 100%);
}

.u37-hero-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 60px 80px;
}

.u37-hero-label {
	display: block;
	font-family: var(--u27-serif);
	font-size: clamp(14px, calc(10px + 0.5vw), 18px);
	color: var(--u27-orange);
	margin-bottom: 20px;
}

.u37-hero-tit-box {
	clip-path: inset(0 100% 0 0);
	will-change: clip-path;
	margin-bottom: 20px;
}

.u37-hero-tit {
	font-family: var(--u27-serif);
	font-size: clamp(48px, calc(24px + 5vw), 96px);
	font-weight: 700;
	color: #fff;
	line-height: 1.1;
}

.u37-hero-kw {
	font-family: var(--u27-serif);
	font-size: clamp(14px, calc(10px + 0.6vw), 18px);
	color: rgba(255, 255, 255, 0.55);
	opacity: 0;
	transform: translateY(10px);
}

.u37-hero-scroll {
	position: absolute;
	bottom: 40px;
	right: 60px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--u27-serif);
	font-size: clamp(14px, calc(10px + 0.3vw), 14px);
	color: rgba(255, 255, 255, 0.4);
}

.u37-hero-scroll-line {
	width: 40px;
	height: 1px;
	background: rgba(255, 255, 255, 0.3);
}

/* ----------------------------------------
   S2: 프로필 바
   ---------------------------------------- */
.u37-profile {
	background: var(--u27-cream);
	border-bottom: 1px solid var(--u27-beige);
}

.u37-profile-back {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 60px 0;
}

.u37-profile-back a {
	font-family: var(--u27-serif);
	font-size: clamp(14px, calc(10px + 0.4vw), 16px);
	color: var(--u27-mocha);
	text-decoration: none;
	transition: color 0.2s;
}

.u37-profile-back a:hover { color: var(--u27-orange); }

.u37-profile-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 60px 40px;
	display: flex;
	align-items: center;
	gap: 32px;
}

.u37-profile-photo {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: url("/sub/motion/images/main/sec02_img01.jpg") center / cover;
	flex-shrink: 0;
}

.u37-profile-name {
	display: block;
	font-family: var(--u27-serif);
	font-size: clamp(20px, calc(14px + 1vw), 26px);
	font-weight: 700;
	color: var(--u27-brown);
	margin-bottom: 4px;
}

.u37-profile-dept {
	font-family: var(--u27-serif);
	font-size: clamp(14px, calc(10px + 0.4vw), 16px);
	color: var(--u27-orange);
	margin-bottom: 8px;
}

.u37-profile-bio {
	font-family: var(--u27-serif);
	font-size: clamp(14px, calc(10px + 0.4vw), 16px);
	color: var(--u27-mocha);
	line-height: 1.7;
	max-width: 540px;
}

/* ----------------------------------------
   챕터 구조
   ---------------------------------------- */
.u37-chapter {
	padding: 100px 0 80px;
	border-top: 1px solid var(--u27-beige);
}

.u37-chapter-head {
	text-align: center;
	padding: 0 40px;
	margin-bottom: 72px;
	position: relative;
}

/* 챕터 번호 — 배경 장식 */
.u37-chapter-head::before {
	position: absolute;
	top: -20px;
	left: 50%;
	transform: translateX(-50%);
	font-family: var(--u27-serif);
	font-size: clamp(80px, 12vw, 160px);
	font-weight: 700;
	color: rgba(196, 98, 45, 0.12);
	line-height: 1;
	pointer-events: none;
	white-space: nowrap;
}

.u37-chapter:nth-of-type(1) .u37-chapter-head::before { content: "01"; }
.u37-chapter:nth-of-type(2) .u37-chapter-head::before { content: "02"; }
.u37-chapter:nth-of-type(3) .u37-chapter-head::before { content: "03"; }

.u37-ch-num {
	display: block;
	position: relative;
	z-index: 1;
	font-family: var(--u27-serif);
	font-size: clamp(14px, calc(10px + 0.4vw), 16px);
	color: var(--u27-orange);
	margin-bottom: 12px;
	opacity: 0;
}

.u37-ch-tit {
	position: relative;
	z-index: 1;
	font-family: var(--u27-serif);
	font-size: clamp(36px, calc(18px + 3.5vw), 72px);
	font-weight: 700;
	color: var(--u27-brown);
	margin-bottom: 12px;
	opacity: 0;
}

.u37-ch-sub {
	position: relative;
	z-index: 1;
	font-family: var(--u27-serif);
	font-size: clamp(14px, calc(10px + 0.5vw), 18px);
	color: var(--u27-mocha);
	opacity: 0;
}

/* ----------------------------------------
   챕터 본문
   ---------------------------------------- */
.u37-chapter-body {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 60px;
}

/* Q&A */
.u37-qa {
	max-width: 720px;
	margin: 0 auto 56px;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.65s ease, transform 0.65s ease;
}

.u37-qa.is-visible {
	opacity: 1;
	transform: none;
}

.u37-q-text {
	font-family: var(--u27-serif);
	font-size: clamp(18px, calc(12px + 1vw), 22px);
	font-weight: 600;
	color: var(--u27-brown);
	padding-left: 20px;
	border-left: 3px solid var(--u27-orange);
	margin-bottom: 20px;
	line-height: 1.55;
}

.u37-a-text {
	font-family: var(--u27-serif);
	font-size: clamp(16px, calc(10px + 0.8vw), 18px);
	color: #5a4a3a;
	line-height: 1.95;
	padding-left: 20px;
}

/* 인용구 */
.u37-pullquote {
	max-width: 720px;
	margin: 0 auto 72px;
	padding: 0;
	font-family: var(--u27-serif);
	font-size: clamp(20px, calc(12px + 1.5vw), 30px);
	font-weight: 600;
	color: var(--u27-orange);
	font-style: italic;
	line-height: 1.6;
	text-align: center;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.u37-pullquote.is-visible {
	opacity: 1;
	transform: none;
}

/* 이미지 브레이크 */
.u37-img-break {
	margin: 0 0 72px;
}

.u37-img-bg {
	width: 100%;
	aspect-ratio: 21 / 9;
	background-size: cover;
	background-position: center;
	border-radius: 12px;
	will-change: transform;
}

.u37-img-bg--1 { background-image: url("/sub/motion/images/main/u27-bg.jpg"); }
.u37-img-bg--2 { background-image: url("/sub/motion/images/main/u27-section-bg.jpg"); }

/* ----------------------------------------
   페이지 네비
   ---------------------------------------- */
.u37-page-nav {
	display: flex;
	border-top: 1px solid var(--u27-beige);
}

.u37-nav-prev,
.u37-nav-next {
	flex: 1;
	padding: 40px 60px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-decoration: none;
	transition: background 0.2s;
}

.u37-nav-prev { border-right: 1px solid var(--u27-beige); }
.u37-nav-next { text-align: right; }

.u37-nav-prev:hover,
.u37-nav-next:hover { background: var(--u27-cream); }

.u37-nav-dir {
	font-family: var(--u27-serif);
	font-size: clamp(14px, calc(10px + 0.4vw), 16px);
	color: var(--u27-mocha);
}

.u37-nav-label {
	font-family: var(--u27-serif);
	font-size: clamp(18px, calc(12px + 0.8vw), 22px);
	font-weight: 600;
	color: var(--u27-brown);
}

/* ----------------------------------------
   반응형
   ---------------------------------------- */
@media (max-width: 999px) {
	.u37-hero-inner { padding: 0 32px 60px; }
	.u37-hero-scroll { right: 32px; }

	.u37-profile-back,
	.u37-profile-inner { padding-left: 32px; padding-right: 32px; }

	.u37-chapter { padding: 72px 0 60px; }
	.u37-chapter-head { padding: 0 32px; margin-bottom: 48px; }
	.u37-chapter-body { padding: 0 32px; }

	.u37-nav-prev,
	.u37-nav-next { padding: 32px; }
}

@media (max-width: 768px) {
	.u37-hero-inner { padding: 0 24px 48px; }
	.u37-hero-scroll { right: 24px; bottom: 24px; }

	.u37-profile-back { padding: 16px 24px 0; }
	.u37-profile-inner {
		padding: 20px 24px 32px;
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.u37-chapter { padding: 56px 0 48px; }
	.u37-chapter-head { padding: 0 24px; margin-bottom: 40px; }
	.u37-chapter-body { padding: 0 24px; }

	.u37-qa { margin-bottom: 40px; }
	.u37-q-text { padding-left: 14px; }
	.u37-a-text { padding-left: 14px; }
	.u37-pullquote { margin-bottom: 48px; font-size: clamp(18px, calc(12px + 1.2vw), 24px); }
	.u37-img-break { margin-bottom: 48px; }
	.u37-img-bg { aspect-ratio: 16 / 9; border-radius: 8px; }

	.u37-page-nav { flex-direction: column; }
	.u37-nav-prev { border-right: none; border-bottom: 1px solid var(--u27-beige); }
	.u37-nav-next { text-align: left; }
	.u37-nav-prev,
	.u37-nav-next { padding: 28px 24px; }
}

@media (max-width: 499px) {
	.u37-chapter { padding: 44px 0 40px; }
	.u37-chapter-head { padding: 0 20px; margin-bottom: 32px; }
	.u37-chapter-body { padding: 0 20px; }

	.u37-q-text { padding-left: 12px; font-size: clamp(18px, calc(12px + 0.8vw), 20px); }
	.u37-a-text { padding-left: 12px; }

	.u37-nav-prev,
	.u37-nav-next { padding: 24px 20px; }
}

/* ----------------------------------------
   다크모드
   ---------------------------------------- */
body.dark .u37-profile { background: #0e0b07; border-color: #3a2f20; }
body.dark .u37-profile-back a { color: #7a6040; }
body.dark .u37-profile-name { color: var(--color-text-main); }
body.dark .u37-profile-bio { color: var(--color-text-sub); }

body.dark .u37-chapter { border-color: #3a2f20; background: var(--color-bg-main); }
body.dark .u37-ch-tit { color: var(--color-text-main); }
body.dark .u37-q-text { color: var(--color-text-main); }
body.dark .u37-a-text { color: var(--color-text-sub); }

body.dark .u37-ch-sub { color: #7a6040; }

body.dark .u37-page-nav { border-color: #3a2f20; background: var(--color-bg-main); }
body.dark .u37-nav-prev { border-color: #3a2f20; }
body.dark .u37-nav-dir { color: #7a6040; }
body.dark .u37-nav-label { color: var(--color-text-main); }
body.dark .u37-nav-prev:hover,
body.dark .u37-nav-next:hover { background: #1a1208; }
