@charset "utf-8";

/* ============================== 토큰 */
:root {
	--ci-navy: #1e3a5f;
	--ci-navy-deep: #14283f;
	--ci-text: #1f2937;
	--ci-muted: #6b7280;
	--ci-light: #9aa4b2;
	--ci-line: #e5e9ef;
	--ci-bg: #ffffff;
	--ci-bg-gray: #f6f8fa;
	--ci-chip-bg: #eef2f7;
	--ci-chip-line: #dde5ee;
	--ci-max: 1280px;
	--ci-pad: 24px;
	--ci-hero-pad: 5%; /* 사진 위 문구 위치는 콘텐츠 폭과 별개 */
}

/* content-wrapper 하단 여백 제거 */
.content-wrapper {
	margin-bottom: 0 !important;
}

html {
	scroll-behavior: smooth;
}

/* ============================== 공통 레이아웃 */
.ci-head,
.ci-section {
	font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
	color: var(--ci-text);
	background: var(--ci-bg);
}

.ci-inner {
	max-width: var(--ci-max);
	margin: 0 auto;
	padding: 0 var(--ci-pad);
}

.ci-section {
	padding: 100px 0;
	scroll-margin-top: 90px;
}

.ci-section--gray {
	background: var(--ci-bg-gray);
}

/* ============================== 페이지 헤더 + 탭 */
.ci-head {
	padding: 56px 0 0;
}

.ci-head__label {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2.4px;
	color: var(--ci-light);
}

.ci-head__title {
	margin: 0 0 28px;
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--ci-navy-deep);
}

.ci-tabs {
	display: flex;
	gap: 34px;
	border-bottom: 1px solid var(--ci-line);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.ci-tabs::-webkit-scrollbar {
	display: none;
}

.ci-tab {
	position: relative;
	flex: none;
	padding: 0 2px 14px;
	font-size: 15px;
	font-weight: 500;
	color: var(--ci-light);
	white-space: nowrap;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

.ci-tab:hover {
	color: var(--ci-navy);
	text-decoration: none;
}

.ci-tab::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--ci-navy-deep);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.ci-tab.is-active {
	color: var(--ci-navy-deep);
	font-weight: 700;
}

.ci-tab.is-active::after {
	opacity: 1;
}

/* ============================== 섹션 타이틀 */
.ci-eyebrow {
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2.4px;
	color: var(--ci-light);
}

.ci-heading {
	margin: 0;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: -0.02em;
	color: var(--ci-navy-deep);
}

.ci-divider {
	height: 1px;
	margin: 44px 0 0;
	background: var(--ci-line);
}

/* ============================== 히어로 (스크롤 확장 모션) */
/* --p : 0(여백 있는 상태) → 1(전체화면) . JS가 스크롤에 따라 갱신한다 */
.ci-hero {
	--p: 0;
	--ci-hero-inset-y: 5vh;
	--ci-hero-inset-x: 5vw;
	background: var(--ci-bg);
	scroll-margin-top: 90px;
}

.ci-hero__track {
	height: 260vh;
}

.ci-hero__sticky {
	position: sticky;
	top: 0;
	height: 100vh;
	overflow: hidden;
}

.ci-hero__frame {
	position: absolute;
	top: calc(var(--ci-hero-inset-y) * (1 - var(--p)));
	right: calc(var(--ci-hero-inset-x) * (1 - var(--p)));
	bottom: calc(var(--ci-hero-inset-y) * (1 - var(--p)));
	left: calc(var(--ci-hero-inset-x) * (1 - var(--p)));
	border-radius: calc(14px * (1 - var(--p)));
	overflow: hidden;
	background: linear-gradient(140deg, #16324f 0%, #2b5d8f 55%, #7ea6c9 100%);
	/* 매 프레임 위치가 바뀌므로 리플로우 범위를 프레임 내부로 가둔다 */
	contain: layout paint;
	will-change: top, right, bottom, left;
}

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

.ci-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(9, 20, 34, 0.62) 0%, rgba(9, 20, 34, 0.45) 55%, rgba(9, 20, 34, 0.38) 100%);
	opacity: var(--p);
	pointer-events: none;
}

.ci-hero__copy {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	padding: 0 var(--ci-hero-pad);
	color: #ffffff;
	opacity: clamp(0, calc((var(--p) - 0.45) * 3), 1);
	transform: translateY(calc(-50% + (1 - var(--p)) * 24px));
	pointer-events: none;
}

.ci-hero__eyebrow {
	margin: 0 0 26px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: rgba(255, 255, 255, 0.85);
}

.ci-hero__title {
	margin: 0 0 32px;
	font-size: clamp(28px, 3.2vw, 46px);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.02em;
	color: #ffffff;
}

.ci-hero__desc {
	margin: 0;
	font-size: clamp(13px, 1.05vw, 16px);
	line-height: 2.1;
	color: rgba(255, 255, 255, 0.8);
	word-break: keep-all;
}

.ci-hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 3px;
	color: rgba(255, 255, 255, 0.85);
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
	opacity: clamp(0, calc(1 - var(--p) * 3), 1);
	pointer-events: none;
}

.ci-hero__scroll::after {
	content: "";
	display: block;
	width: 1px;
	height: 34px;
	margin: 10px auto 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
	animation: ciScroll 1.8s ease-in-out infinite;
}

@keyframes ciScroll {
	0% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
	50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
	100% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
}

/* ============================== 카드 공통 라벨 */
.ci-card__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.6px;
	color: var(--ci-muted);
}

.ci-num {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
	color: var(--ci-light);
}

/* ============================== 핵심가치 */
.ci-values {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	margin-top: 110px;
}

.ci-value {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.ci-value__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 104px;
	height: 104px;
	margin-bottom: 40px;
	background: #eef1f5;
	border-radius: 50%;
	transition: transform 0.3s ease, background-color 0.3s ease;
}

.ci-value:hover .ci-value__icon {
	transform: translateY(-4px);
	background: #e4e9f0;
}

.ci-value__name {
	margin: 0 0 26px;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--ci-navy-deep);
}

.ci-value__desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.85;
	color: var(--ci-light);
	word-break: keep-all;
}

/* ============================== 사업영역 */
.ci-business {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 48px;
}

.ci-biz {
	display: flex;
	flex-direction: column;
	background: var(--ci-bg);
	border: 1px solid var(--ci-line);
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ci-biz:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(20, 40, 63, 0.08);
}

.ci-biz__thumb {
	aspect-ratio: 4 / 3;
	background: var(--ci-chip-bg);
	overflow: hidden;
}

.ci-biz__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.ci-biz:hover .ci-biz__thumb img {
	transform: scale(1.04);
}

.ci-biz__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 32px 30px 34px;
}

.ci-biz__name {
	margin: 0 0 20px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: -0.01em;
	color: var(--ci-navy-deep);
	word-break: keep-all;
}

.ci-biz__desc {
	margin: 0 0 32px;
	font-size: 14px;
	line-height: 1.9;
	color: var(--ci-muted);
	word-break: keep-all;
}

.ci-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: auto 0 0;
	padding: 0;
	list-style: none;
}

.ci-tags li {
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 500;
	color: var(--ci-navy);
	background: var(--ci-chip-bg);
	border: 1px solid var(--ci-chip-line);
	border-radius: 4px;
	white-space: nowrap;
}

/* ============================== 반응형 */
@media (max-width: 1100px) {
	.ci-business {
		grid-template-columns: repeat(2, 1fr);
	}

	.ci-values {
		margin-top: 72px;
		gap: 32px;
	}
}

@media (max-width: 768px) {
	:root {
		--ci-pad: 16px;
		--ci-hero-pad: 20px;
	}

	.ci-head {
		padding-top: 36px;
	}

	.ci-head__title {
		margin-bottom: 22px;
		font-size: 24px;
	}

	.ci-tabs {
		gap: 24px;
	}

	.ci-tab {
		font-size: 14px;
		padding-bottom: 12px;
	}

	.ci-section {
		padding: 64px 0;
	}

	.ci-heading {
		font-size: 22px;
	}

	.ci-divider {
		margin-top: 32px;
	}

	.ci-hero {
		--ci-hero-inset-y: 2.5vh;
		--ci-hero-inset-x: 20px;
	}

	.ci-hero__track {
		height: 220vh;
	}

	.ci-hero__title {
		margin-bottom: 22px;
	}

	.ci-hero__desc br {
		display: none;
	}

	.ci-business {
		grid-template-columns: 1fr;
		gap: 16px;
		margin-top: 32px;
	}

	.ci-values {
		grid-template-columns: 1fr;
		gap: 48px;
		margin-top: 56px;
	}

	.ci-value__icon {
		width: 84px;
		height: 84px;
		margin-bottom: 24px;
	}

	.ci-value__name {
		margin-bottom: 16px;
		font-size: 16px;
	}

	.ci-value__desc br {
		display: none;
	}

	.ci-biz__body {
		padding: 26px 22px 28px;
	}

	.ci-biz__name {
		font-size: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	/* 스크롤 확장 모션 없이 전체화면 상태로 고정 */
	.ci-hero {
		--p: 1;
	}

	.ci-hero__track {
		height: 100vh;
	}

	.ci-hero__scroll {
		display: none;
	}

	.ci-hero__scroll::after {
		animation: none;
	}

	.ci-value,
	.ci-biz,
	.ci-biz__thumb img {
		transition: none;
	}
}
