/* =========================================================
   DOWOO TECH 2026 Renewal - One Page Landing
   Font : Pretendard Variable (fonts/ 폴더, self-hosted)

   목차
   - 변수/리셋/공통(.sec, .title, .btn, .reveal)
   - Header · 모바일 메뉴(.burger/.drawer) · 우측 도트(.dots)
   - 01 HERO · 02 ABOUT · 03 SERVICE · 04 BUSINESS · 05 PARTNER · 06 QUESTION · 07 CONTACT/FOOTER
   - Responsive (1100px / 1024px / 720px) · prefers-reduced-motion
   ========================================================= */

@font-face {
	font-family: 'Pretendard';
	src: url('../fonts/PretendardVariable.woff2') format('woff2-variations'),
	     url('../fonts/PretendardVariable.woff2') format('woff2');
	font-weight: 45 920;
	font-style: normal;
	font-display: swap;
}

/* 디자인 토큰 : 색상 / 레이아웃 폭 / 타이포 스케일 — 여기만 바꾸면 전체 톤이 바뀝니다 */
:root {
	--navy: #050b1f;
	--navy-2: #0a1533;
	--deep: #1428a0;
	--blue: #0a64e1;
	--blue-2: #2f7bf0;
	--cyan: #0ad2e1;
	--ink: #0b1220;
	--text: #3c4146;
	--mute: #646973;
	--line: #e3e8f2;
	--soft: #f4f7fd;
	--white: #fff;

	--maxw: 1280px;
	--pad: clamp(20px, 5vw, 72px);
	--header-h: 84px;
	--ease: cubic-bezier(.2, .7, .2, 1);

	/* 타이포 스케일 (참고 사이트처럼 큰 헤드라인) */
	--fs-hero: clamp(2.3rem, min(1.2rem + 4vw, 8.4vh), 5rem);
	--fs-title: clamp(1.9rem, min(1.1rem + 2.9vw, 7vh), 3.75rem);
	--fs-lead: clamp(1rem, .9rem + .45vw, 1.25rem);
}

/* ---------- Reset : 브라우저 기본 여백/스타일 초기화 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure, address { margin: 0; padding: 0; }
body {
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
	font-weight: 400;
	line-height: 1.6;
	color: var(--text);
	background: var(--navy);
	word-break: keep-all;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
em { font-style: normal; }
address { font-style: normal; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; }

/* 본문 바로가기 : 평소엔 화면 밖, 키보드 포커스가 오면 나타남 (접근성) */
.skip { position: absolute; left: 12px; top: -60px; z-index: 10000; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* 콘텐츠 공통 폭 : 최대 1280px + 좌우 여백(--pad) */
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--pad) * 2); margin: 0 auto; padding-inline: var(--pad); position: relative; z-index: 2; }

/* =========================================================
   Section 공통 : 모든 section 은 모니터(뷰포트) 높이 100%
   ========================================================= */
.sec {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: calc(var(--header-h) + 24px) 0 48px;
	overflow: hidden;
	isolation: isolate;
}
/* 섹션 단위 스크롤 이동(느리게 출발 → 자석처럼 딱 붙음)은 css 스냅이 아니라 js/main.js 의 '섹션 이동' 모듈이 담당 (데스크톱만). 태블릿/모바일은 자유 스크롤 */

.eyebrow {
	display: inline-block;
	font-size: .875rem; font-weight: 700; letter-spacing: .18em;
	color: var(--blue);
	margin-bottom: 20px;
}
.eyebrow--light { color: var(--cyan); }

.title {
	font-size: var(--fs-title);
	font-weight: 800;
	line-height: 1.22;
	letter-spacing: -.035em;
	color: var(--ink);
}
/* 제목 안의 <em> : 파란→시안 그라데이션 글자 */
.title em { color: var(--blue); background: linear-gradient(100deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.title small { display: block; font-size: clamp(1rem, .9rem + .5vw, 1.5rem); font-weight: 600; letter-spacing: -.02em; opacity: .75; margin-bottom: 14px; }
.title--light { color: #fff; }
.title--light em { background: linear-gradient(100deg, #6fb0ff, var(--cyan)); -webkit-background-clip: text; background-clip: text; }
.title--sm { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); }

.desc { font-size: var(--fs-lead); line-height: 1.75; color: var(--mute); margin-top: 28px; max-width: 640px; }
.desc strong { color: var(--blue); font-weight: 700; }
.desc--light { color: rgba(255, 255, 255, .72); }

.head--center { text-align: center; }
.head--center .desc { margin-inline: auto; }

/* ---------- 스크롤 등장 애니메이션 ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * .09s + .05s); }
.sec.in .reveal { opacity: 1; transform: none; }
.no-js .reveal, .reduce .reveal { opacity: 1; transform: none; }

/* ---------- Buttons (.btn--primary 파란 채움 / .btn--ghost 투명 테두리) ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 12px;
	height: 56px; padding: 0 32px;
	border-radius: 999px;
	font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em;
	transition: transform .3s var(--ease), background .3s, box-shadow .3s, border-color .3s;
}
.btn--primary { background: linear-gradient(100deg, var(--blue), #2a8bff); color: #fff; box-shadow: 0 12px 32px -8px rgba(10, 100, 225, .7); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -8px rgba(10, 100, 225, .85); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .35); color: #fff; backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; transform: translateY(-3px); }
.btn__arr { width: 18px; height: 2px; background: currentColor; position: relative; transition: width .3s var(--ease); }
.btn__arr::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.btn:hover .btn__arr { width: 26px; }

/* =========================================================
   Header
   ========================================================= */
/* 상단 고정 헤더 : 섹션 배경(dark/light)에 따라 JS 가 .is-dark / .is-light 를 바꿔 글자색 전환, 스크롤하면 .is-scrolled 로 블러 배경 */
#header { position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h); transition: background .4s, box-shadow .4s, transform .4s var(--ease), color .3s; }
.header__in { height: 100%; max-width: calc(var(--maxw) + var(--pad) * 2); margin: 0 auto; padding-inline: var(--pad); display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 34px; width: auto; transition: filter .3s; }
.gnb { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.gnb a { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; position: relative; padding: 8px 0; }
.gnb a:not(.gnb__cta)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.gnb a:not(.gnb__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.gnb__cta { padding: 10px 22px !important; border-radius: 999px; border: 1px solid currentColor; font-size: .9375rem !important; letter-spacing: .06em !important; transition: background .3s, color .3s, border-color .3s; }

#header.is-dark { color: #fff; }
#header.is-dark .logo img { filter: brightness(0) invert(1); }
#header.is-dark .gnb__cta:hover { background: #fff; color: var(--navy); border-color: #fff; }
#header.is-light { color: var(--ink); }
#header.is-light .gnb__cta:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
#header.is-scrolled { background: rgba(255, 255, 255, .0); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
#header.is-scrolled.is-dark { background: rgba(5, 11, 31, .55); }
#header.is-scrolled.is-light { background: rgba(255, 255, 255, .75); box-shadow: 0 1px 0 var(--line); }

/* burger : 태블릿/모바일(≤1024px)에서만 보이는 햄버거 버튼 (열리면 X 로 변형) */
.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 1100; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* drawer : 전체화면 모바일 메뉴. body.menu-open 일 때만 보임. 안의 로고/닫기 버튼은 헤더가 가려지므로 따로 둠 */
.drawer { position: fixed; inset: 0; z-index: 1050; background: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 100px var(--pad) 48px; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.drawer .drawer__logo { position: absolute; left: var(--pad); top: calc((var(--header-h) - 34px) / 2); padding: 0; transform: none; opacity: 1; }
.drawer__logo img { height: 34px; width: auto; filter: brightness(0) invert(1); }
.drawer .drawer__close { position: absolute; right: var(--pad); top: calc((var(--header-h) - 48px) / 2); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); transition: background .25s, border-color .25s, transform .35s var(--ease); }
.drawer__close span { position: absolute; left: 13px; right: 13px; top: 23px; height: 2px; background: #fff; }
.drawer__close span:nth-child(1) { transform: rotate(45deg); }
.drawer__close span:nth-child(2) { transform: rotate(-45deg); }
.drawer__close:hover, .drawer__close:focus-visible { background: rgba(255, 255, 255, .18); border-color: #fff; transform: rotate(90deg); }
.drawer nav { display: flex; flex-direction: column; gap: 6px; }
.drawer a { font-size: clamp(1.9rem, 8vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; padding: 6px 0; transform: translateY(24px); opacity: 0; transition: transform .6s var(--ease), opacity .6s, color .2s; }
.drawer a:hover { color: var(--cyan); }
.drawer p { margin-top: 40px; color: rgba(255, 255, 255, .6); font-size: 1rem; }
.menu-open .drawer { opacity: 1; visibility: visible; }
.menu-open .drawer a { transform: none; opacity: 1; }
.menu-open .drawer a:nth-child(2) { transition-delay: .05s; } .menu-open .drawer a:nth-child(3) { transition-delay: .1s; }
.menu-open .drawer a:nth-child(4) { transition-delay: .15s; } .menu-open .drawer a:nth-child(5) { transition-delay: .2s; }
.menu-open .drawer a:nth-child(6) { transition-delay: .25s; } .menu-open .drawer a:nth-child(7) { transition-delay: .3s; }
.menu-open { overflow: hidden; }   /* 메뉴가 열린 동안 뒤 화면 스크롤 잠금 */
.menu-open #header { color: #fff !important; background: transparent !important; backdrop-filter: none !important; box-shadow: none !important; }
.menu-open #header .logo img { filter: brightness(0) invert(1) !important; }

/* =========================================================
   우측 도트 네비게이션
   ========================================================= */
/* 현재 섹션 표시 점 : 마우스를 올리면 섹션 이름(data-label) 툴팁 (≤1024px 에서는 숨김) */
.dots { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 900; display: flex; flex-direction: column; gap: 4px; transition: color .3s; color: #fff; }
.dots a { position: relative; width: 22px; height: 22px; display: grid; place-items: center; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .4; transition: transform .3s var(--ease), opacity .3s, background .3s; }
.dots a:hover i, .dots a.is-on i { opacity: 1; transform: scale(1.5); }
.dots a.is-on i { background: var(--cyan); }
.dots a::before { content: attr(data-label); position: absolute; right: 30px; top: 50%; transform: translate(8px, -50%); padding: 5px 12px; border-radius: 6px; font-size: .75rem; font-weight: 700; white-space: nowrap; background: var(--blue); color: #fff; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.dots a:hover::before { opacity: 1; transform: translate(0, -50%); }
.dots.is-light { color: var(--ink); }

/* =========================================================
   01 HERO
   ========================================================= */
.sec--hero { background: radial-gradient(120% 90% at 80% 20%, #0f2f86 0%, #0a1c52 38%, var(--navy) 80%); color: #fff; }
#net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); z-index: 0; pointer-events: none; }
.hero__glow--a { width: 520px; height: 520px; left: -140px; bottom: -120px; background: rgba(10, 100, 225, .55); animation: float 14s ease-in-out infinite; }
.hero__glow--b { width: 420px; height: 420px; right: 6%; top: 8%; background: rgba(10, 210, 225, .28); animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(40px, -30px) scale(1.1); } }

.hero__grid { flex: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 999px; font-size: .875rem; font-weight: 700; letter-spacing: .04em; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); margin-bottom: 22px; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(10, 210, 225, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(10, 210, 225, 0); } 100% { box-shadow: 0 0 0 0 rgba(10, 210, 225, 0); } }
.hero__title { font-size: var(--fs-hero); font-weight: 800; line-height: 1.16; letter-spacing: -.045em; }
.hero__title em { background: linear-gradient(100deg, #7db8ff 10%, var(--cyan) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__lead { margin-top: 24px; font-size: var(--fs-lead); line-height: 1.8; color: rgba(255, 255, 255, .76); max-width: 640px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(24px, 4.5vh, 44px); }

/* 궤도(orb) 장식 : 가운데 코어 + 회전하는 링 3개 + 링 위의 라벨(SI/SM/Solution/Consulting) */
.hero__orb { position: relative; width: min(100%, 520px); aspect-ratio: 1; justify-self: end; }
.orb__core { position: absolute; inset: 31%; border-radius: 50%; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: clamp(.9rem, 1.4vw, 1.25rem); line-height: 1.2; letter-spacing: .08em; background: radial-gradient(circle at 35% 30%, #5fa8ff, var(--blue) 45%, #0a2e86 100%); box-shadow: 0 0 80px 10px rgba(10, 100, 225, .65), inset 0 0 40px rgba(255, 255, 255, .25); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.05); } }
.ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .22); animation: spin var(--t) linear infinite; }
.ring--1 { inset: 16%; --t: 26s; }
.ring--2 { inset: 4%; --t: 38s; animation-direction: reverse; border-style: solid; border-color: rgba(255, 255, 255, .12); }
.ring--3 { inset: -10%; --t: 54s; border-color: rgba(10, 210, 225, .25); }
@keyframes spin { to { transform: rotate(360deg); } }
.node { position: absolute; inset: 0; transform: rotate(var(--a)); }
.node span { position: absolute; left: 50%; top: 0; translate: -50% -50%; rotate: calc(var(--a) * -1); padding: 7px 14px; border-radius: 999px; font-size: .8125rem; font-weight: 700; white-space: nowrap; background: rgba(255, 255, 255, .95); color: var(--navy); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); animation: spin var(--t) linear infinite reverse; }
.ring--2 .node span { animation-direction: normal; }

/* 히어로 하단 : 서비스 칩 4개 + SCROLL 안내 */
.hero__bottom { position: relative; z-index: 3; margin-top: auto; padding-top: 20px; }
.hero__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 36px; }
.chips li { font-size: .9375rem; color: rgba(255, 255, 255, .65); display: flex; align-items: baseline; gap: 10px; }
.chips b { font-size: .8125rem; letter-spacing: .12em; font-weight: 800; color: var(--cyan); }
.scroll { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; font-size: .75rem; font-weight: 700; letter-spacing: .24em; color: rgba(255, 255, 255, .7); }
.scroll i { width: 1px; height: 44px; background: linear-gradient(#fff, transparent); animation: drop 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* =========================================================
   02 ABOUT (dark + sticky scroll-driven particle orb)
   섹션 높이를 화면의 약 3배로 늘리고, 안쪽(.about__pin)을 sticky 로 고정.
   스크롤 진행도(--p: 0~1)에 따라 구체 변형 / 글자 등장 / 포인트 활성화.
   ========================================================= */
.sec--about { --p: 0; display: block; height: 320vh; min-height: 0; padding: 0; overflow: clip; background: #04030f; color: #fff; }
.about__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); overflow: hidden; }
.about__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.about__glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background:
		radial-gradient(38% 50% at 62% 52%, rgba(40, 120, 255, calc(.18 + var(--p) * .12)), transparent 70%),
		radial-gradient(34% 44% at 80% 70%, rgba(255, 60, 170, calc(.06 + var(--p) * .26)), transparent 70%),
		radial-gradient(30% 36% at 72% 92%, rgba(255, 140, 50, calc(var(--p) * .22)), transparent 70%); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); z-index: 2; pointer-events: none; }
.about__copy { max-width: 640px; pointer-events: auto; }
.sec--about .desc { max-width: 600px; margin-top: clamp(16px, 3vh, 28px); }
.sec--about .desc .w { opacity: .16; transition: opacity .25s linear; }
.sec--about .desc strong { color: #7db8ff; }

/* 01/02/03 포인트 카드 : 스크롤 진행도에 따라 하나씩 켜짐(.on, js updateText) */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: clamp(20px, 4.5vh, 44px); }
.points li { padding: 18px 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(10px); opacity: .32; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .6s, background .6s; }
.points li.on { opacity: 1; transform: none; border-color: rgba(125, 184, 255, .55); background: linear-gradient(180deg, rgba(90, 140, 255, .18), rgba(255, 70, 170, .06)); }
.points__no { display: block; font-size: 1.625rem; font-weight: 800; letter-spacing: -.02em; background: linear-gradient(100deg, #5cb0ff, #ff6ab8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 6px; }
.points p { font-size: .9375rem; line-height: 1.55; color: rgba(255, 255, 255, .85); font-weight: 500; }

/* 구체 주변에 떠다니는 문구 칩
   - 위치      : 아래 .float--N 의 right / top(bottom) 값
   - 움직임 1  : bob  = 위아래로 둥실 (--bd 주기, --bl 시작 시점)
   - 움직임 2  : flip = 제자리에서 3D 360° 회전. 주기(--fd) 중 마지막 약 22% 동안만 한 바퀴 돌고 나머지는 멈춰 있어
                 글자를 읽을 수 있음. 칩마다 주기/시작 시점(--fl)을 다르게 줘서 하나씩 번갈아 돈다.
   (bob 은 개별 속성 translate, flip 은 transform 을 써서 서로 겹치지 않음) */
.float { position: absolute; z-index: 2; padding: 10px 18px; border-radius: 999px; font-size: .875rem; font-weight: 800; letter-spacing: .02em; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px);
	transform: perspective(700px) rotateY(0deg);
	animation: bob var(--bd, 5s) ease-in-out var(--bl, 0s) infinite, flip var(--fd, 7s) cubic-bezier(.45, 0, .25, 1) var(--fl, 0s) infinite; }
/* 회전 주기(--fd)는 칩마다 모두 다르고, 첫 회전 시작 시각은 페이지 진입 후
   Architecture 1.0초 → e-Business 2.8초 → Plan 4.6초 → Total Service 6.4초 → Solved 8.2초 순서 (1.8초 간격) */
.float--1 { right: 15%; top: 31%;    --bd: 5s;   --bl: 0s;    --fd: 8s;   --fl: -3.44s; }
.float--2 { right: 36%; top: 42%;    --bd: 5s;   --bl: -2s;   --fd: 8.5s; --fl: -.23s; }
.float--3 { right: 27%; bottom: 13%; --bd: 6s;   --bl: -1s;   --fd: 7s;   --fl: -4.46s; }
.float--4 { right: 17%; bottom: 35%; --bd: 5.5s; --bl: -3.2s; --fd: 9.5s; --fl: .8s; }
.float--5 { right: 33%; top: 59%;    --bd: 4.6s; --bl: -4s;   --fd: 10s;  --fl: -3.2s; }
@keyframes bob { 50% { translate: 0 -12px; } }
@keyframes flip { 0%, 78% { transform: perspective(700px) rotateY(0deg); } 100% { transform: perspective(700px) rotateY(360deg); } }

/* 우측 하단 진행 표시 (01 ━━ 03) : --p 값으로 바가 차오름 */
.about__scroll { position: absolute; z-index: 2; right: var(--pad); bottom: 32px; display: flex; align-items: center; gap: 14px; font-size: .8125rem; font-weight: 800; letter-spacing: .12em; color: rgba(255, 255, 255, .6); }
.about__scroll b { color: #fff; }
.about__scroll i { width: 90px; height: 2px; background: rgba(255, 255, 255, .2); position: relative; overflow: hidden; border-radius: 2px; }
.about__scroll s { position: absolute; inset: 0; background: linear-gradient(90deg, #4aa3ff, #ff5fb0, #ff9a3c); transform: scaleX(var(--p)); transform-origin: left; }

/* =========================================================
   03 SERVICE (dark gradient)
   ========================================================= */
.sec--service { background: linear-gradient(160deg, #0a1c52 0%, #081340 50%, #050b1f 100%); color: #fff; }
/* 서비스 배경 : 은은한 40px 격자(흰 선 .06) + 좌하단 파랑 / 우상단 시안 빛 */
.service__bg { position: absolute; inset: 0; z-index: 0; background:
	radial-gradient(50% 60% at 15% 90%, rgba(10, 100, 225, .45), transparent 70%),
	radial-gradient(40% 50% at 90% 10%, rgba(10, 210, 225, .22), transparent 70%),
	linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 40px 40px,
	linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 40px 40px;
	-webkit-mask-image: radial-gradient(90% 90% at 50% 50%, #000 40%, transparent 100%); mask-image: radial-gradient(90% 90% at 50% 50%, #000 40%, transparent 100%); }

/* 격자 라인이 왼쪽 → 오른쪽으로 빛나는 효과
   1) ::before  : 같은 격자를 밝은 시안색으로 한 번 더 그리고, 좁은 띠(mask)가 좌→우로 훑고 지나가며 라인을 밝힘
   2) .streak   : 가로 격자선을 따라 빛줄기(혜성)가 좌→우로 흘러감 */
.service__bg::before { content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(rgba(70, 200, 255, .16) 1px, transparent 1px) 0 0 / 40px 40px,
		linear-gradient(90deg, rgba(70, 200, 255, .16) 1px, transparent 1px) 0 0 / 40px 40px;
	filter: drop-shadow(0 0 3px rgba(10, 210, 225, .18));
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%, transparent 100%);
	-webkit-mask-size: 38% 100%; mask-size: 38% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
	animation: gridSweep 3s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes gridSweep { from { -webkit-mask-position: -66% 0; mask-position: -66% 0; } to { -webkit-mask-position: 166% 0; mask-position: 166% 0; } }
.streak { position: absolute; left: 0; top: calc(var(--y) * 40px - .5px); width: 26vw; height: 1px; border-radius: 1px; opacity: 0;
	background: linear-gradient(90deg, transparent, rgba(10, 210, 225, 0) 10%, rgba(80, 170, 255, .24) 80%, rgba(220, 240, 255, .32) 100%);
	box-shadow: 0 0 6px 0 rgba(10, 210, 225, .15);
	animation: streakRun var(--t, 6s) linear var(--d, 0s) infinite; }
@keyframes streakRun { 0% { transform: translateX(-30vw); opacity: 0; } 8% { opacity: .7; } 85% { opacity: .7; } 100% { transform: translateX(105vw); opacity: 0; } }
/* 서비스 5단계 카드 : 데스크톱 5열 → 태블릿 3+2 → 모바일 2열 */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: clamp(36px, 7vh, 80px); counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 4%; right: 4%; top: 28px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent); }
.steps li { position: relative; padding: 30px 24px 32px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); transition: transform .45s var(--ease), border-color .45s, background .45s; }
.steps li:hover { transform: translateY(-12px); border-color: var(--cyan); background: linear-gradient(180deg, rgba(10, 210, 225, .16), rgba(255, 255, 255, .04)); }
.steps__no { position: absolute; right: 22px; top: 18px; font-size: .9375rem; font-weight: 800; letter-spacing: .08em; color: rgba(255, 255, 255, .4); }
.steps img { margin-bottom: 26px; }
.steps h3 { font-size: 1.625rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px; }
.steps p { font-size: .9375rem; line-height: 1.65; color: rgba(255, 255, 255, .7); }

/* =========================================================
   04 BUSINESS (photo bg + 좌: 탭 / 우: 3:2 이미지 카드)
   ========================================================= */
.sec--business { color: #fff; background: #0a1533 url('../images/bg_business.jpg') center / cover no-repeat; }
.sec--business::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(100deg, rgba(5, 11, 31, .92) 0%, rgba(8, 25, 80, .72) 55%, rgba(10, 60, 160, .5) 100%); }
/* 좌(탭)·우(이미지 카드) 2열. align-items:end → 오른쪽 진행 바 아래선이 왼쪽 마지막 탭 아래선과 같은 높이 */
.business__grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.business__left .title { font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3.25rem); }
.tabs { margin-top: clamp(28px, 5vh, 56px); display: flex; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, .18); }
.tabs button { display: grid; grid-template-columns: 44px auto 1fr; align-items: baseline; gap: 6px 14px; text-align: left; padding: 20px 6px; border-bottom: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .5); transition: color .3s, padding .4s var(--ease); }
.tabs button span { font-size: .875rem; font-weight: 800; letter-spacing: .08em; }
.tabs button b { font-size: clamp(1.4rem, 1rem + 1.2vw, 2.125rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.tabs button small { font-size: .9375rem; font-weight: 500; }
.tabs button:hover { color: #fff; }
.tabs button.is-on { color: #fff; padding-left: 20px; }
.tabs button.is-on span { color: var(--cyan); }
.business__right { position: relative; margin-bottom: -1px; padding-left: clamp(20px, 2.6vw, 44px); color: #fff; }
/* 참고(ai.ipartners.co.kr) : 좌측 가는 세로선 + 십자 마커 + 8px 라운드 이미지 카드(670:460) */
.business__right::before { content: ""; position: absolute; left: 0; top: -8%; bottom: -8%; width: 1px; background: rgba(255, 255, 255, .16); }
.business__right::after { content: ""; position: absolute; left: -6px; top: 50%; width: 13px; height: 13px; transform: translateY(-50%); color: rgba(10, 210, 225, .85); background: linear-gradient(currentColor, currentColor) 50% 0 / 1px 100% no-repeat, linear-gradient(currentColor, currentColor) 0 50% / 100% 1px no-repeat; }
/* 이미지 카드 : 항상 3:2 비율(이미지 크기가 달라도 object-fit:cover 로 꽉 채움). 설명(.panel__txt)은 이미지 아래쪽에 겹쳐 표시 */
.panel { position: relative; width: 100%; aspect-ratio: 3 / 2; max-height: calc(100svh - var(--header-h) - 110px); overflow: hidden; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .18); background: #0a1533; box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .75); animation: panelIn .7s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateX(30px); } }
.panel__img { position: absolute; inset: 0; }
.panel__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.panel:hover .panel__img img { transform: scale(1.05); }
.panel__tag { position: absolute; z-index: 3; left: 16px; top: 16px; padding: 7px 11px; border-radius: 4px; font-size: .6875rem; font-weight: 700; letter-spacing: .14em; color: #fff; background: rgba(5, 11, 31, .55); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(8px); }
.panel__txt { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(56px, 9vw, 110px) clamp(18px, 2.4vw, 34px) clamp(16px, 2vw, 28px); background: linear-gradient(to top, rgba(3, 7, 24, .92) 0%, rgba(3, 7, 24, .7) 45%, rgba(3, 7, 24, 0) 100%); }
.panel__txt h3 { font-size: clamp(1.4rem, 1rem + 1vw, 2rem); font-weight: 800; letter-spacing: -.03em; color: #fff; margin-bottom: 10px; }
.panel__txt h3 small { font-size: .9375rem; font-weight: 600; color: rgba(255, 255, 255, .65); margin-left: 8px; letter-spacing: 0; }
.panel__txt ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.panel__txt li { position: relative; padding-left: 18px; font-size: clamp(.875rem, .8rem + .25vw, 1rem); line-height: 1.55; margin-top: 4px; color: rgba(255, 255, 255, .88); }
.panel__txt li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--cyan); }
.panel__txt li b { display: inline-block; min-width: 72px; color: var(--cyan); font-weight: 800; }
/* 자동 순환 진행 바 : js 가 .run 을 붙이면 --dur(3.6초) 동안 채워짐 */
.tabs__bar { position: relative; margin-top: 22px; height: 2px; background: rgba(255, 255, 255, .14); }
.tabs__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.tabs__bar.run i { animation: fill var(--dur, 3.6s) linear forwards; }
@keyframes fill { to { width: 100%; } }

/* =========================================================
   05 PARTNER (white, 파트너 로고 그리드)
   ========================================================= */
.sec--partner { background: #fff; }
/* 파트너 로고 : 평소 흑백, 마우스를 올리면 컬러 */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: clamp(36px, 7vh, 72px); }
.logos li { display: grid; place-items: center; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.logos img { max-width: 70%; max-height: 46%; width: auto; height: auto; filter: grayscale(1); opacity: .75; transition: filter .4s, opacity .4s, transform .4s var(--ease); }
.logos li:hover { transform: translateY(-8px); border-color: #b9ccf5; box-shadow: 0 24px 40px -22px rgba(20, 40, 160, .4); }
.logos li:hover img { filter: none; opacity: 1; transform: scale(1.1); }

/* =========================================================
   06 QUESTION (고객문의 카드 3개)
   ========================================================= */
.sec--question { background: linear-gradient(180deg, #eef4ff 0%, #fff 100%); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(36px, 7vh, 72px); }
.card { text-align: center; padding: 40px 28px 36px; background: #fff; border: 1px solid var(--line); border-radius: 26px; transition: transform .45s var(--ease), box-shadow .45s, border-color .45s; }
.card:hover { transform: translateY(-10px); box-shadow: 0 34px 50px -24px rgba(20, 40, 160, .4); border-color: #b9ccf5; }
.card > img { margin: 0 auto 20px; }
.card h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--deep); margin-bottom: 18px; }
.card__row { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 0; font-size: 1.0625rem; color: var(--text); transition: color .2s; }
.card__row:hover { color: var(--blue); }
.card__row img { opacity: .9; }

/* =========================================================
   07 CONTACT (map + info) + FOOTER
   ========================================================= */
.sec--contact { padding: 0; background: var(--navy); }
.map { position: absolute; inset: 0; z-index: 0; }
/* 지도를 어두운 톤으로 반전해 배경으로 사용 (filter) */
/* 지도 위치 조정 : 구글 지도는 항상 '도우텍'이 iframe 정중앙에 오므로, iframe 을 오른쪽으로 --shift 만큼 더 넓혀(왼쪽은 그대로 두고 오른쪽을 화면 밖으로)
   도우텍 위치가 화면 중앙에서 오른쪽(50% + --shift)으로 이동 → 왼쪽 글자(.info)에 가리지 않음. --shift 를 키우면 더 오른쪽으로 이동 */
.map { --shift: 12%; }
.map iframe { position: absolute; left: 0; top: 0; width: calc(100% + var(--shift) * 2); height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) hue-rotate(180deg); }
/* 도우텍 컬러 마커 : 핀 끝(뾰족한 곳)이 지도의 도우텍 위치(= iframe 중앙)에 오도록 배치. 어두운 오버레이(.map::after) 위에 보이도록 z-index 2 */
.map__pin { position: absolute; z-index: 2; left: calc(50% + var(--shift)); top: 50%; width: 0; height: 0; pointer-events: none; }
.map__icon { position: absolute; left: -19px; top: -49px; filter: drop-shadow(0 6px 10px rgba(10, 100, 225, .55)); animation: pinBob 2.6s ease-in-out infinite; }
.map__pulse { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, rgba(10, 210, 225, .55), rgba(10, 100, 225, 0) 70%); animation: pinPulse 2.6s ease-out infinite; }
.map__label { position: absolute; left: 28px; top: -46px; padding: 8px 14px; border-radius: 999px; font-size: .9375rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; color: #fff; background: #0a64e1; }
@keyframes pinBob { 50% { transform: translateY(-6px); } }
@keyframes pinPulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(3.2); opacity: 0; } }
.map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 11, 31, .92) 0%, rgba(5, 11, 31, .55) 45%, transparent 75%); pointer-events: none; }
.contact__wrap { flex: 1; display: flex; align-items: center; padding-top: calc(var(--header-h) + 24px); padding-bottom: 24px; pointer-events: none; }
.info { max-width: 540px; pointer-events: auto; color: #fff; }
.info__list { margin-top: clamp(16px, 3vh, 32px); }
.info__list > div { padding: clamp(10px, 1.8vh, 18px) 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.info__list dt { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 800; color: var(--cyan); margin-bottom: 8px; }
.info__list dd { font-size: 1rem; line-height: 1.75; color: rgba(255, 255, 255, .82); }
.info__list dd a:hover { color: var(--cyan); }
.sub { display: block; margin-top: 4px; }
.sub img { display: inline-block; vertical-align: middle; height: 18px; width: auto; margin: -2px 2px 0; }

.footer { position: relative; z-index: 3; background: rgba(5, 11, 31, .92); border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; backdrop-filter: blur(10px); }
.footer__in { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); }
.footer__logo { height: 34px; width: auto; flex: none; filter: brightness(1.6); }
.footer address { font-size: .8125rem; line-height: 1.7; color: #909eb0; }
.footer address i { margin: 0 12px; opacity: .5; font-style: normal; }

/* =========================================================
   Responsive
   ========================================================= */
/* ≤1100px : 작은 노트북/태블릿 가로 — 서비스 카드 3+2 배열, 로고 4열 */
@media (max-width: 1100px) {
	.steps { grid-template-columns: repeat(6, 1fr); gap: 16px; }
	.steps::before { display: none; }
	.steps li { grid-column: span 2; }
	.steps li:nth-child(4) { grid-column: 2 / 4; }
	.steps li:nth-child(5) { grid-column: 4 / 6; }
	.steps h3 { font-size: 1.75rem; }
	.steps p { font-size: 1.0625rem; line-height: 1.6; }
	.sec--service .desc { font-size: 1.125rem; }
	.logos { grid-template-columns: repeat(4, 1fr); }
}

/* ≤1024px : 태블릿 — 햄버거 메뉴, 1열 레이아웃, 도트/float 칩 숨김, 섹션 이동 애니메이션 없이 기본 스크롤 */
@media (max-width: 1024px) {
	:root { --header-h: 72px; }
	.gnb { display: none; }
	.burger { display: block; }
	.dots { display: none; }
	.sec { padding-top: calc(var(--header-h) + 28px); padding-bottom: 56px; }

	.hero__grid { grid-template-columns: 1fr; }
	.hero__orb { position: absolute; right: -18%; top: 12%; width: 70vw; opacity: .3; pointer-events: none; z-index: 0; }
	.hero__copy { position: relative; z-index: 1; }
	.hero__orb .node span { display: none; }
	.business__grid { grid-template-columns: 1fr; }
	.panel { max-height: none; }
	.about__grid { grid-template-columns: 1fr; }
	.sec--about { height: 260vh; }
	.about__copy { text-shadow: 0 2px 18px rgba(4, 3, 15, .9); }
	.float { display: none; }
	.cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
	.card { padding: 28px 24px; display: grid; grid-template-columns: 96px 1fr; column-gap: 20px; text-align: left; align-items: center; }
	.card > img { grid-row: 1 / span 3; width: 96px; height: 96px; margin: 0; }
	.card h3 { margin-bottom: 6px; }
	.card__row { justify-content: flex-start; padding: 3px 0; font-size: 1rem; }
	.contact__wrap { align-items: flex-end; }
	.map::after { background: linear-gradient(0deg, rgba(5, 11, 31, .94) 0%, rgba(5, 11, 31, .6) 60%, transparent 100%); }
	.map { --shift: 0%; }
	.map iframe { top: -36%; height: 136%; }
	.map__pin { top: 32%; }
	.footer__in { flex-direction: column; align-items: flex-start; }
}

/* ≤720px : 모바일 — 이미지 카드 위·설명 아래로 분리, 서비스 카드 2열, 로고 3열 */
@media (max-width: 720px) {
	.panel { aspect-ratio: auto; max-height: none; overflow: visible; background: none; border: 0; box-shadow: none; }
	.panel__img { position: relative; inset: auto; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .75); }
	.panel__txt { position: static; padding: 16px 2px 0; background: none; }
	.panel__txt ul { grid-template-columns: 1fr; }
	.panel__tag { left: 10px; top: 10px; }
	.hero__bar { flex-direction: column; align-items: flex-start; }
	.scroll { display: none; }
	.chips { gap: 8px 22px; }
	.points { grid-template-columns: 1fr; gap: 8px; }
	.points li { display: flex; gap: 16px; align-items: center; padding: 12px 16px; }
	.about__scroll { display: none; }
	.points__no { margin: 0; }
	.steps { grid-template-columns: 1fr 1fr; gap: 12px; }
	.steps li, .steps li:nth-child(4), .steps li:nth-child(5) { grid-column: auto; }
	.steps p { font-size: 1rem; line-height: 1.55; }
	.steps p br { display: none; }
	.steps img { width: 44px; height: 44px; margin-bottom: 18px; }
	.sec--service .desc { font-size: 1.0625rem; }
	.steps li { padding: 22px 18px; }
	.steps li:last-child { grid-column: 1 / -1; }
	.steps h3 { font-size: 1.375rem; }
	.logos { grid-template-columns: repeat(3, 1fr); gap: 10px; }
	.tabs button { grid-template-columns: 34px 1fr; padding: 14px 4px; }
	.tabs button small { grid-column: 2; }
	.btn { height: 52px; padding: 0 26px; }
	.footer address i { margin: 0 6px; }
}

/* 운영체제에서 "움직임 줄이기"를 켠 사용자 : 애니메이션/스크롤 연출 끄고 모든 내용을 바로 표시 */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.reveal { opacity: 1; transform: none; }
	.service__bg::before, .streak { display: none; }
	.sec--about { height: auto; min-height: 100svh; }
	.about__pin { position: relative; min-height: 100svh; height: auto; padding-bottom: 48px; }
	.sec--about .desc .w { opacity: 1; }
	.points li { opacity: 1; transform: none; }
}
