/* === index03 — 3-Panel Split Intro (main1.php style + DGA content) === */
@charset "utf-8";

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
	height: 100%;
	height: 100dvh;
	overflow: hidden;
	font-family: 'Paperlogy', 'Noto Sans KR', sans-serif;
	-webkit-text-size-adjust: 100%;
}

/* ============================================
   상단 텍스트 영역 (index02 스태거 텍스트)
   ============================================ */
.top_area{
	position: fixed;
	top: 25%; left: 0; right: 0;
	z-index: 100;
	padding: 0 50px;
	pointer-events: none;
}
.top_area .txt_st{
	line-height: 1;
}
.top_area .txt_st .txt01{
	/* font-family: "Play"; */
	font-family: "Noto Serif KR", serif;
	color: #fff;
	font-size: 3.8rem;
	font-weight: 600;
	line-height: 0.9;
	letter-spacing: 1.5px;
	text-align: left;
}
.top_area .txt_st .txt02{
	font-weight: 600;
	font-size: 22px;
	color: rgba(255,255,255,0.85);
	margin-top: 18px;
}
.top_area .txt_st .txt03{
	color: rgba(255,255,255,0.4);
	font-size: 15px;
	font-weight: 400;
	margin-top: 14px;
	line-height: 1.6;
}

/* 글자 단위 stagger */
.top_area .txt_st [data-fade]{
	display: inline-block;
	opacity: 0;
	transition: opacity 0.7s cubic-bezier(0.215, 0.61, 0.355, 1);
	will-change: opacity, transform;
}
.top_area .txt_st .show [data-fade]{
	opacity: 1;
	transition-delay: calc(var(--i, 0) * var(--step, 0.05s));
}
.top_area .txt_st .out [data-fade]{
	opacity: 0;
	transition-delay: calc(var(--i, 0) * var(--step, 0.05s));
}
.top_area .txt_st .txt01{ --step: 0.06s; }
.top_area .txt_st .txt02{ --step: 0.05s; }
.top_area .txt_st .txt03{ --step: 0.03s; }

/* txt01 slide-right / slide-left */
.top_area .txt_st .txt01 .slide-right{
	display: inline-block;
	transform: translateX(50%);
	transition: transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
	margin-right: 16px;
}
.top_area .txt_st .txt01 .slide-left{
	display: inline-block;
	transform: translateX(-50%);
	transition: transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.top_area .txt_st .txt01.show .slide-right{
	transform: translateX(0);
}
.top_area .txt_st .txt01.show .slide-left{
	transform: translateX(0);
}
.top_area .txt_st .fade-out{
	display: inline-block;
}


/* ============================================
   Flow Marquee (index02 하단 흐름 텍스트)
   ============================================ */
.flow-container{
	position: fixed;
	left: 0; right: 0;
	bottom: 0;
	z-index: 2;
	overflow: hidden;
	pointer-events: none;
}
.flow-text{
	display: block;
	white-space: nowrap;
	overflow: hidden;
	font-family: "Play";
	color: rgba(255,255,255,0.05);
	font-size: 200px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 2px;
}
.flow-text .flow-track{
	display: inline-flex;
	white-space: nowrap;
	will-change: transform, opacity;
	transform: translateX(30vw);
	opacity: 0;
	--intro-dur: 6s;
	--loop-dur: 28s;
	animation: flowIntro var(--intro-dur) linear forwards,
	           flowFadeIn 2s ease-out forwards,
	           flowMarquee var(--loop-dur) linear var(--intro-dur) infinite;
}
.flow-text .flow-item{
	display: inline-block;
	padding-right: 0.2em;
}
@keyframes flowIntro{
	0%   { transform: translateX(30vw); }
	100% { transform: translateX(0); }
}
@keyframes flowFadeIn{
	0%   { opacity: 0; }
	60%  { opacity: 0.6; }
	100% { opacity: 1; }
}
@keyframes flowMarquee{
	from { transform: translateX(0); }
	to   { transform: translateX(-25%); }
}


/* ============================================
   3-Panel Split (main1.php 디자인)
   ============================================ */
.biz-wrap{
	display: flex;
	width: 100%;
	height: 100vh;
	height: 100dvh;
}

.biz-item{
	position: relative;
	flex: 1;
	overflow: hidden;
	cursor: pointer;
	transition: flex 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.biz-item:hover,
.biz-item.active{
	flex: 2.5;
}
.biz-item:not(:last-child){
	border-right: 1px solid rgba(255,255,255,0.08);
}

/* 배경 영상 (main1.php 동일) */
.biz-item video.biz-bg{
	position: absolute;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.25);
	transition: filter 0.6s;
	pointer-events: none;
}
.biz-item:hover video.biz-bg,
.biz-item.active video.biz-bg{
	filter: brightness(0.6);
}

/* 그라데이션 오버레이 */
.biz-item::after{
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75) 100%);
	z-index: 1;
}

/* 패널 전체 영역 클릭 링크 (stretched link) */
.biz-link{
	position: absolute;
	inset: 0;
	z-index: 4;
	display: block;
	text-indent: -9999px;
	overflow: hidden;
	cursor: pointer;
}

/* 패널 콘텐츠 */
.biz-info{
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 44px 36px;
	color: #fff;
	z-index: 2;
}
/* pill 링크는 stretched link 위로 올려 개별 클릭 가능 */
.biz-info .biz-pill{
	position: relative;
	z-index: 5;
}
.biz-info a {
	text-decoration: none;
	color: #fff;
}
.biz-num{
	font-family: 'Play', sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #5ed2dc;
	letter-spacing: 3px;
	margin-bottom: 14px;
	opacity: 0.7;
	transition: opacity 0.5s;
}
.biz-item:hover .biz-num,
.biz-item.active .biz-num{
	opacity: 1;
}
.biz-title{
	font-family: 'Play', sans-serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin-bottom: 10px;
	transition: font-size 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.biz-item:hover .biz-title,
.biz-item.active .biz-title{
	font-size: 48px;
}
.biz-subtitle{
	font-family: 'Paperlogy', sans-serif;
	font-size: 18px;
	font-weight: 600;
	color: rgba(255,255,255,0.85);
	margin-bottom: 0;
	transition: margin 0.4s;
}
.biz-item:hover .biz-subtitle,
.biz-item.active .biz-subtitle{
	margin-bottom: 6px;
}

/* 확장 시 나타나는 영역 */
.biz-expand{
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1),
	            opacity 0.45s ease 0.1s;
}
.biz-item:hover .biz-expand,
.biz-item.active .biz-expand{
	max-height: 220px;
	opacity: 1;
}
.biz-desc{
	font-size: 15px;
	font-weight: 300;
	line-height: 1.7;
	color: rgba(255,255,255,0.6);
	margin-bottom: 18px;
	margin-top: 10px;
}
.biz-pills{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.biz-pill{
	display: inline-block;
	padding: 7px 18px;
	font-size: 13px;
	font-weight: 500;
	color: #fff;
	border: 1px solid rgba(255,255,255,0.3);
	border-radius: 20px;
	white-space: nowrap;
	text-decoration: none;
	transition: all 0.3s;
	font-family: 'Paperlogy', sans-serif;
}
.biz-pill:hover{
	background: rgba(94, 210, 220, 0.25);
	border-color: #5ed2dc;
	color: #fff;
}

/* 패널 상단 액센트 라인 */
.biz-item::before{
	content: '';
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 3px;
	background: #5ed2dc;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
	z-index: 3;
}
.biz-item:hover::before,
.biz-item.active::before{
	transform: scaleX(1);
}

/* 오버레이 이미지 레이어 (index02 over01~03) */
.biz-item .biz-over{
	position: absolute;
	inset: 0;
	background-repeat: no-repeat;
	background-position: 50% 100%;
	background-size: cover;
	opacity: 0;
	transition: opacity 1.2s cubic-bezier(0.65, 0, 0.35, 1);
	z-index: 0;
	pointer-events: none;
}
.biz-item:hover .biz-over,
.biz-item.active .biz-over{
	opacity: 0.3;
}


/* ============================================
   반응형 — 모바일은 4패널 균등 높이
   ============================================ */
@media (max-width: 1024px){
	.biz-wrap{
		flex-direction: column;
		height: 100vh;
		height: 100dvh;
	}
	/* 4개 패널을 동일한 높이(25%)로 균등 분배 */
	.biz-item,
	.biz-item:hover,
	.biz-item.active{
		flex: 1 1 0;
		min-height: 0;
	}
	.biz-item:not(:last-child){
		border-right: none;
		border-bottom: 1px solid rgba(255,255,255,0.08);
	}
	/* 모바일에서는 active 상태에서도 타이틀 크기 고정 */
	.biz-item:hover .biz-title,
	.biz-item.active .biz-title{ font-size: 22px; }
	.biz-title{ font-size: 22px; }
	.biz-info{ padding: 18px 22px; }
	.top_area{ display: none; }
	.flow-text{ font-size: 120px; }
	/* 모바일에서는 확장 영역 숨김 (높이 균등 유지) */
	.biz-item:hover .biz-expand,
	.biz-item.active .biz-expand{
		max-height: 0;
		opacity: 0;
	}
}
@media (max-width: 768px){
	.biz-info{ padding: 14px 18px; }
	.biz-title,
	.biz-item:hover .biz-title,
	.biz-item.active .biz-title{ font-size: 20px; }
	.biz-subtitle{ font-size: 14px; }
	.biz-num{ font-size: 11px; margin-bottom: 8px; letter-spacing: 2px; }
	.flow-text{ font-size: 80px; }
}
@media (max-width: 480px){
	.biz-info{ padding: 12px 16px; }
	.biz-title,
	.biz-item:hover .biz-title,
	.biz-item.active .biz-title{ font-size: 18px; }
	.biz-subtitle{ font-size: 13px; }
	.biz-num{ font-size: 10px; margin-bottom: 6px; }
	.flow-text{ font-size: 60px; }
}
/* iOS Safari 등 100vh 버그 보정 */
@supports (height: 100dvh){
	html, body, .biz-wrap{ height: 100dvh; }
}
/* 가로 모드(landscape)에서 짧은 화면 대응 */
@media (max-width: 1024px) and (orientation: landscape) and (max-height: 500px){
	.biz-info{ padding: 10px 14px; }
	.biz-title,
	.biz-item:hover .biz-title,
	.biz-item.active .biz-title{ font-size: 16px; }
	.biz-subtitle{ font-size: 12px; }
	.biz-num{ font-size: 10px; margin-bottom: 4px; }
}
