@charset "utf-8";
/* 용인반도체클러스터 동일하이빌 파크밸리 - GATE */

:root {
	--green: #425822;
	--green-dk: #2e3f17;
	--orange: #f18e00;
	--sky: #0d4fdb;
	--ink: #3a3836;
	--ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { font-size: 16px; }
html, body { margin: 0; padding: 0; }
body { background: #fff; font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', 'Malgun Gothic', sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; word-break: keep-all; letter-spacing: -0.02em; }
h1, h2, h3, h5, p { margin: 0; font-weight: inherit; font-size: inherit; }
img { display: block; max-width: 100%; border: 0; }
a { color: inherit; text-decoration: none; }
.blind { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.gate_wrap { width: 100%; height: 100vh; height: 100dvh; display: flex; overflow: hidden; }
.panel { flex: 1; position: relative; height: 100%; overflow: hidden; transition: flex 0.8s ease; }
.panel > a { position: absolute; inset: 0; z-index: 2; display: flex; justify-content: center; align-items: center; text-align: center; }

/* 배경 : 패널 폭이 바뀌어도 크기 고정(가운데 기준) → 확장 시 화면이 열리는 느낌 */
.panel .bg { position: absolute; top: 0; left: 50%; width: max(100%, 76vw); height: 100%; transform: translateX(-50%) scale(1.2); }
.gate_wrap.intro .panel .bg { transform: translateX(-50%) scale(1); transition: transform 3s var(--ease); }

/* 2단지 배경 : 화이트 + 회로 라인 */
.d2_wrap { background: #111; }
.d2_wrap .photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: transform 6s var(--ease); }
.d2_wrap .bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 70%); }
.d2_wrap.mouse_over .photo { transform: scale(1.04); }

/* 1단지 배경 : 투시도 */
.d1_wrap { background: #f1f1f1; }
.d1_wrap .photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: transform 6s var(--ease); }
.d1_wrap .bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 70%); }
.d1_wrap.mouse_over .photo { transform: scale(1.04); }

/* ---------- 기본 상태 ---------- */
.gate_content_box { margin-top: -19rem; transition: 0.4s; }

.gate_logo { font-size: 1rem; display: flex; flex-direction: column; align-items: center; opacity: 0; transform: translateY(-4rem); transition: font-size 1s; }
.gate_logo em { font-style: normal; display: inline-block; font-size: 1.75em; font-weight: 700; line-height: 1; padding: 0.3em 0.62em 0.36em; border-radius: 0.36em; letter-spacing: -0.03em; }
.gate_logo strong { display: block; margin-top: 0.38em; font-size: 3.4em; font-weight: 600; line-height: 1.1; letter-spacing: -0.045em; }
.d2_wrap .gate_logo em { background: #fff; color: #111; }
.d2_wrap .gate_logo strong { color: #fff; }
.d1_wrap .gate_logo em { background: #1e1e1e; color: #fff; }
.d1_wrap .gate_logo strong { color: #1e1e1e; }

.gate_content_box h5 { display: inline-block; margin-top: 2.6rem; padding: 0 1.15rem; font-size: 1.4375rem; font-weight: 700; line-height: 1; opacity: 0; transform: translateY(-4rem); transition: margin 0.2s; }
.d2_wrap h5 { color: #fff; border-left: 1px solid #fff; border-right: 1px solid #fff; }
.d1_wrap h5 { color: #1e1e1e; border-left: 1px solid #1e1e1e; border-right: 1px solid #1e1e1e; }

.bottom_box { position: absolute; left: 0; right: 0; bottom: 0; margin: auto; width: 14.0625rem; height: 26.75rem; display: flex; justify-content: center; align-items: center; opacity: 0; transform: translateY(10rem); }
.bottom_box p { font-size: 1.8rem; font-weight: 700; line-height: 1.35; }
.bottom_box p::before { content: ''; display: block; width: 1.75rem; height: 2px; margin: 0 auto 1.5rem; }
.bottom_box p span { display: block; margin-top: 0.3rem; font-size: 0.75em; font-weight: 500; opacity: 0.85; }
.d2_wrap .bottom_box { background: #fff; color: #111; }
.d2_wrap .bottom_box p::before { background: #111; }
.d1_wrap .bottom_box { background: #111; color: #fff; }
.d1_wrap .bottom_box p::before { background: #fff; }

/* 인트로 */
.gate_wrap.intro .gate_logo,
.gate_wrap.intro .gate_content_box h5 { opacity: 1; transform: translate(0); transition: opacity 1.2s 0.4s, transform 1.2s 0.4s, font-size 1s, margin 0.2s; }
.gate_wrap.intro .bottom_box { opacity: 1; transform: translate(0); transition: 1.4s 0.6s; }

/* ---------- 오버 상태 ---------- */
.mouse_over_con { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: 0.2s; }
.mouse_over_con .over_head { opacity: 0; transform: translateY(-4rem); }
.mouse_over_con .vline { display: block; width: 1px; height: 3.5rem; margin: 2.4rem 0; opacity: 0; transform-origin: top; transform: scaleY(0); }
.mouse_over_con h3 { font-size: 1.625rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.04em; opacity: 0; transform: translateY(3rem); }
.mouse_over_con .over_sub { margin-top: 0.7rem; font-size: 1.125rem; font-weight: 400; line-height: 1.4; opacity: 0; transform: translateY(3rem); }
.mouse_over_con .go { display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; min-width: 18.8rem; height: 4.0625rem; padding: 0 2rem; margin-top: 2.6rem; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.03em; opacity: 0; transform: translateY(3rem); position: relative; overflow: hidden; }
.mouse_over_con .go svg { width: 0.85rem; height: 0.85rem; transition: transform 0.4s var(--ease); }
.d1_wrap .mouse_over_con .go svg { width: 1rem; }
.panel > a:hover .go svg, .panel > a:focus-visible .go svg { transform: translateX(0.3rem); }
.d2_wrap > a:hover .go svg, .d2_wrap > a:focus-visible .go svg { transform: translate(0.2rem, -0.2rem); }

/* 2단지 오버 */
.d2_wrap .over_head { display: flex; flex-direction: column; align-items: center; }
.d2_wrap .v_sk { width: 25.9rem; }
.d2_wrap .v_num { width: 28.6rem; margin-top: 0.6rem; }
.d2_wrap .v_bar { width: 28.3rem; margin-top: 1.3rem; }
.d2_wrap .v_slogan { width: 28.3rem; margin: 1.3rem 0 0; padding: 0.55rem 0; box-sizing: border-box; background: #f7931e; color: #fff; font-size: 2rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.02em; text-align: center; white-space: nowrap; }
.d2_wrap .vline { background: rgba(255, 255, 255, 0.85); }
.d2_wrap h3 { color: #fff; }
.d2_wrap .over_sub { color: rgba(255, 255, 255, 0.7); }
.d2_wrap .go { background: #fff; color: #111; }

/* 1단지 오버 : 타이틀은 하늘 영역(상단)에 */
.d1_wrap .mouse_over_con { justify-content: center; }
.d1_wrap h2 { font-size: 6rem; font-weight: 300; line-height: 1; letter-spacing: -0.04em; color: #111; white-space: nowrap; }
.d1_wrap h2 b { font-weight: 800; letter-spacing: -0.05em; }
.d1_wrap .vline { background: #1e1e1e; height: 2.75rem; margin: 1.9rem 0; }
.d1_wrap h3 { color: #1e1e1e; font-size: 1.5rem; font-weight: 500; }
.d1_wrap .over_sub { color: #555; font-size: 1.0625rem; }
.d1_wrap .over_sub em { font-style: normal; display: inline-block; background: #1e1e1e; color: #fff; font-weight: 700; font-size: 0.9em; padding: 0.12em 0.45em 0.18em; border-radius: 0.3em; margin-right: 0.2em; }
.d1_wrap .go { background: #111; color: #fff; margin-top: 1.9rem; }

/* hover 확장 */
.panel.mouse_over { flex: 3.2; }
.panel.mouse_over .gate_content_box,
.panel.mouse_over .bottom_box { opacity: 0 !important; transition: 0.8s 0s !important; }
.panel.mouse_over .mouse_over_con { opacity: 1; pointer-events: auto; transition: 0.8s 0s; }
.panel.mouse_over .over_head { opacity: 1; transform: translate(0); transition: opacity 1.2s 0.4s, transform 1.2s 0.4s; }
.panel.mouse_over .vline { opacity: 1; transform: scaleY(1); transition: 0.8s 0.4s; }
.panel.mouse_over h3,
.panel.mouse_over .over_sub,
.panel.mouse_over .go { opacity: 1; transform: translate(0); transition: 1.2s 0.8s; }
.panel.mouse_over .over_sub { transition-delay: 0.9s; }
.panel.mouse_over .go { transition: opacity 1.2s 1s, transform 1.2s 1s; }

/* 반대편 축소 */
.gate_wrap.intro .panel.mouse_out .gate_logo { font-size: 0.6rem; }
.panel.mouse_out .gate_content_box { margin-top: 0; }
.gate_wrap.intro .panel.mouse_out .gate_content_box h5 { margin-top: 1.6rem; }
.gate_wrap.intro .panel.mouse_out .bottom_box { opacity: 0; transition: 0.2s 0s; }

/* ---------- 반응형 ---------- */
@media all and (max-width: 1600px) { html { font-size: 15px; } }
@media all and (min-width: 1401px) and (max-height: 880px) { html { font-size: 14px; } }
@media all and (min-width: 1401px) and (max-height: 760px) { html { font-size: 12.5px; } }

@media all and (max-width: 1400px) {
	html { font-size: 14px; }
	.gate_wrap { display: block; height: auto; }
	.panel { flex: none !important; width: 100%; height: 50vh; height: 50dvh; min-height: 420px; }
	.panel .bg { width: 100%; }
	.gate_content_box, .bottom_box { display: none; }
	.d1_wrap .mouse_over_con { justify-content: center; padding-top: 0; }


	.mouse_over_con .vline { height: 2.4rem; margin: 1.5rem 0; }
	.mouse_over_con .go { margin-top: 1.6rem; height: 3.6rem; }
	.d1_wrap h2 { font-size: 4.6rem; }
}
@media all and (max-width: 1000px) { html { font-size: 13px; } }
@media all and (max-width: 767px) {
	html { font-size: 12px; }
	.d2_wrap .v_sk { width: min(21.5rem, 64vw); }
	.d2_wrap .v_num { width: min(23.8rem, 71vw); margin-top: 0.4rem; }
	.d2_wrap .v_bar { width: min(23.6rem, 70vw); margin-top: 0.9rem; }
	.d2_wrap .v_slogan { width: min(23.6rem, 70vw); margin-top: 0.9rem; font-size: min(1.7rem, 5vw); }
	.mouse_over_con h3 { font-size: 1.35rem; }
	.mouse_over_con .over_sub { font-size: 1.05rem; margin-top: 0.4rem; }
	.mouse_over_con .vline { height: 1.8rem; margin: 1.1rem 0; }
	.mouse_over_con .go { min-width: 0; height: 3.4rem; padding: 0 1.6rem; font-size: 1.15rem; margin-top: 1.3rem; }
	.d1_wrap h2 { font-size: min(4rem, 13vw); }
	.d1_wrap h3 { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01s !important; transition-delay: 0s !important; }
}
