/* 청년스케치 홈페이지
   남색 #0B1F5C · 브랜드 파랑 #01419A · 하늘 #1EB9EE · 연한 배경 #EEF2FC · 본문 #3D4A6B */

:root {
  --navy: #0B1F5C;
  --navy-2: #13307A;
  --blue: #01419A;
  --sky: #1EB9EE;
  --pale: #EEF2FC;
  --line: #DCE3F2;
  --body: #3D4A6B;
  --muted: #55617F;
  --on-dark: #D3DCF2;
  --on-dark-2: #B9C6E8;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: #fff; color: var(--navy);
  font: 16px/1.65 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  word-break: keep-all; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: max(5vw, 16px); }
.section { padding-block: clamp(64px, 8vw, 112px); }
.section-sm { padding-block: clamp(56px, 7vw, 88px); }
.mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 8px; }

/* 글자 */
.eyebrow { font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 12px; }
.eyebrow-sm { font-size: 14px; margin-bottom: 4px; }
.eyebrow-sky { color: var(--sky); }
.h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.3; font-weight: 900; letter-spacing: -0.01em; text-wrap: balance; }
.h2-sm { font-size: clamp(26px, 3vw, 38px); }
.lead { margin-top: 16px; font-size: 17px; color: var(--body); }
.lead-light { color: var(--on-dark); }
.muted { color: var(--body); font-size: 15.5px; }
.grow { flex-grow: 1; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 24px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s, filter .2s;
}
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { color: #fff; }
.btn-sky { background: var(--sky); color: var(--navy); }
.btn-sky:hover { color: var(--navy); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { color: #fff; }
.btn-white { background: #fff; color: var(--blue); font-size: 17px; min-height: 56px; padding: 0 30px; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-block { width: 100%; min-height: 54px; font-size: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid #E3E8F4; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-block: 12px; }
.logo img { height: 40px; width: auto; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 22px; font-size: 15px; font-weight: 500; }
.nl { color: var(--navy); text-decoration: none; padding: 10px 0;
  background: linear-gradient(var(--sky), var(--sky)) no-repeat 0 100% / 0 2px; transition: background-size .25s; }
.prog { display: none; height: 3px; background: var(--sky); transform-origin: 0 50%; }

/* 첫 화면 */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 48px 56px; padding-block: clamp(48px, 7vw, 104px); }
.hero-text { flex: 1 1 460px; }
.hero-kicker { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.hero-kicker span { color: var(--sky); }
.hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.15; font-weight: 900; letter-spacing: -0.02em; text-wrap: balance; }
.hero-lead { margin-top: 24px; font-size: 18px; color: var(--on-dark); max-width: 33em; }
.hero-visual { flex: 1 1 400px; position: relative; }
.hero-art { width: 100%; height: auto; }
.hero-badge { position: absolute; right: 0; bottom: 0; max-width: 260px; background: #fff; color: var(--navy);
  border-radius: 16px; padding: 16px 20px; box-shadow: 0 12px 32px rgba(5,20,60,.3); }
.hero-badge p { font-size: 14px; color: var(--body); }
.hero-badge strong { display: block; margin-top: 2px; font-size: 17px; line-height: 1.4; }
.diamond { position: absolute; transform: rotate(45deg); pointer-events: none; }
.d1 { width: 620px; height: 620px; right: -120px; top: -260px; border-radius: 180px; background: rgba(255,255,255,.07); }
.d2 { width: 520px; height: 520px; left: -260px; bottom: -300px; border-radius: 150px; background: rgba(30,185,238,.12); }
.d3 { width: 420px; height: 420px; right: -140px; top: -180px; border-radius: 120px; background: rgba(30,185,238,.25); }
.node { transition: transform .3s; transform-box: fill-box; transform-origin: center; }
.draw { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2.2s ease-out .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* 한눈에 보기 */
.facts { background: linear-gradient(var(--navy) 0 46%, #fff 46%); position: relative; }
.facts-inner { display: flex; flex-wrap: wrap; gap: 16px; padding-block: 8px 40px; }
.fact { flex: 1 1 220px; background: #fff; border-radius: 18px; padding: 20px 22px; box-shadow: 0 14px 36px rgba(11,31,92,.12); border-top: 4px solid var(--sky); }
.fact strong { display: block; font-size: 26px; font-weight: 900; color: var(--blue); line-height: 1.3; }
.fact span { display: block; margin-top: 4px; font-size: 15px; color: var(--body); }

/* 회사 소개 */
.company { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.company-text { flex: 1 1 460px; }
.ceo { flex: 1 1 340px; background: var(--navy); color: #fff; border-radius: 24px; padding: 32px; }
.ceo-head { display: flex; align-items: center; gap: 16px; }
.ceo-photo { width: 72px; height: 72px; flex: none; border-radius: 50%; background: var(--sky); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 22px; }
.ceo-name { font-size: 21px; font-weight: 700; }
.ceo-role { font-size: 15px; color: var(--on-dark-2); }
.ceo-list { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--on-dark); }
.ceo-list li { display: flex; gap: 10px; }
.ceo-list li::before { content: "●"; color: var(--sky); flex: none; }

/* 화면 고정 섹션 (사업 영역 · 현장 사례 · 연혁) */
.track { position: relative; }
.track-business { height: 2450px; }
.track-cases { height: 3340px; }
.track-history { height: 2140px; }
.stick { position: sticky; top: var(--header-h); padding-block: 44px; }
.stick > .wrap { position: relative; width: 100%; }
.stick { min-height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; }
@supports (height: 100svh) { .stick { min-height: calc(100svh - var(--header-h)); } }
.only-narrow { display: none; }

/* 사업 영역 */
.business-inner { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-start; }
.business-side { flex: 1 1 320px; }
.area-tabs { margin-top: 26px; display: flex; flex-direction: column; gap: 6px; }
.area-tabs button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 0 16px;
  border: 0; border-radius: 12px; background: transparent; color: var(--navy); font-size: 16px; font-weight: 700;
  text-align: left; cursor: pointer; transition: background .3s, color .3s; }
.area-tabs .num { width: 26px; font-size: 13px; color: #7F8AA8; }
.area-tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }
.area-tabs button[aria-selected="true"] .num { color: var(--sky); }
.hint { margin-top: 16px; font-size: 14px; color: var(--muted); }
.area-card { position: relative; flex: 2 1 560px; background: #fff; border-radius: 24px; padding: clamp(18px, 2.4vw, 28px); box-shadow: 0 20px 50px rgba(11,31,92,.08); }
.dev-art { width: 100%; height: auto; }
.dev { cursor: pointer; transition: opacity .35s; }
.dev.dim { opacity: .16; }
.area-panel { margin-top: 18px; border-top: 1px solid #E3E8F4; padding-top: 20px; }
.area-panel h3 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.35; }
.area-panel .muted { margin-top: 10px; }
.area-panel .btn-row { margin-top: 18px; gap: 10px; }
.checks { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.checks li { flex: 1 1 220px; display: flex; gap: 10px; align-items: flex-start; background: var(--pale); border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.checks li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px;
  background: no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 9.5 L7 13.5 L15 4.5' stroke='%2301419A' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@keyframes fade { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

/* 현장 사례 */
.cases-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.pill-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-tabs button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #C9D6F2; background: #fff;
  color: var(--navy); font-size: 14px; font-weight: 700; cursor: pointer; transition: background .3s, color .3s; }
.pill-tabs button[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.bar { margin-top: 20px; height: 4px; background: #E3E8F4; border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; width: 8.33%; background: var(--sky); transition: width .3s; }
.case-panels { margin-top: 20px; }
.case-panel { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.case-visual { flex: 1 1 400px; border-radius: 24px; overflow: hidden; background: var(--pale); display: flex; flex-direction: column; }
.case-art { width: 100%; height: auto; }
.case-caption { padding: 16px 24px 22px; margin-top: auto; }
.case-caption h3 { font-size: 20px; }
.steps { flex: 1 1 440px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.step { width: 100%; display: flex; gap: 16px; align-items: flex-start; text-align: left; padding: 14px 18px;
  border-radius: 16px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); cursor: pointer;
  transition: background .3s, color .3s, border-color .3s; }
.step-num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 900; background: var(--pale); color: var(--navy); }
.step-title { display: block; font-weight: 700; font-size: 16.5px; }
.step-text { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); }
.step[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.step[aria-pressed="true"] .step-num { background: var(--sky); }
.step[aria-pressed="true"] .step-text { color: var(--on-dark); }

/* 해외 진출 */
.overseas { position: relative; overflow: clip; color: #fff; background: linear-gradient(125deg, #01419A 0%, #0B1F5C 62%); }
.overseas-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; padding-block: clamp(56px, 7vw, 96px); }
.over-art { flex: 1 1 420px; width: 100%; height: auto; }
.overseas-text { flex: 1 1 400px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 500; }
.chips-dark { margin-top: 22px; }
.chips-dark span { background: transparent; border: 1.5px solid rgba(255,255,255,.4); color: #fff; font-size: 14px; padding: 6px 14px; }

/* 연혁 */
.years { position: relative; margin-top: 30px; display: flex; justify-content: space-between; gap: 8px; }
.years-line { position: absolute; left: 32px; right: 32px; top: 21px; height: 4px; background: var(--line); border-radius: 2px; }
.years-fill { height: 100%; width: 0; background: var(--blue); border-radius: 2px; transition: width .4s; }
.years button { position: relative; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); }
.years .dot { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 4px solid var(--line); transition: background .3s, border-color .3s; }
.years .label { font-size: 18px; font-weight: 900; white-space: nowrap; }
.years button.done .dot { background: var(--blue); border-color: var(--blue); }
.years button[aria-selected="true"] .dot { background: var(--blue); border-color: var(--sky); }
.years button[aria-selected="true"] .label { color: var(--blue); }
.year-items { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 12px; }
.year-items li { flex: 1 1 300px; background: var(--pale); border-radius: 14px; padding: 14px 18px; font-size: 15px; line-height: 1.5; }
.year-items .m { display: block; font-size: 13px; font-weight: 900; color: var(--blue); margin-bottom: 2px; }

/* 파트너 */
.partners { background: linear-gradient(180deg, #EEF2FC, #fff); overflow: clip; }
.partner-groups { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.partner-row { display: flex; flex-direction: column; gap: 10px; }
.partner-group { font-size: 15px; font-weight: 700; color: var(--blue); }


/* 카드 */
.cards { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 20px; }
.card { flex: 1 1 300px; border: 1.5px solid var(--line); border-radius: 18px; padding: 26px 28px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-size: 19px; line-height: 1.45; }
.more { font-weight: 700; font-size: 15px; padding: 8px 0; }
.lift { transition: transform .25s, box-shadow .25s; }

/* 문의 안내 */
.cta { position: relative; overflow: hidden; color: #fff; background: radial-gradient(700px 360px at 85% 0%, rgba(30,185,238,.45), transparent 70%), linear-gradient(110deg, #0B1F5C, #01419A 70%); }
.cta-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-block: clamp(48px, 6vw, 88px); }
.cta-inner > div { flex: 1 1 480px; }

/* 푸터 */
.site-footer { background: var(--navy); color: var(--on-dark-2); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-block: 44px; }
.footer-info { flex: 1 1 420px; }
.footer-info img { height: 44px; width: auto; }
.footer-info a, .footer-links a { color: #fff; }
.copy { margin-top: 16px; color: #8C9CC8; }
.footer-links { display: flex; flex-direction: column; gap: 2px; }
.footer-links a { padding: 6px 0; }

/* 문의 페이지 */
.contact-page { background: var(--pale); }
.contact-inner { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; padding-block: clamp(40px, 6vw, 80px); }
.contact-intro { flex: 1 1 320px; }
.contact-direct { margin-top: 32px; padding: 22px 24px; background: #fff; border-radius: 16px; font-size: 15px; color: var(--body); }
.contact-direct strong { color: var(--navy); }
.contact-box { flex: 1 1 520px; background: #fff; border-radius: 20px; padding: clamp(24px, 3.4vw, 44px); }
#contact-form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; border: 0; margin: 0; padding: 0; }
.field small { font-weight: 400; color: var(--muted); font-size: 13px; }
.field legend { padding: 0; margin-bottom: 10px; }
.field[hidden] { display: none; }
.field-row { display: flex; flex-wrap: wrap; gap: 18px; }
.field-row .field { flex: 1 1 200px; }
.req { color: var(--blue); }
input:not([type]), input[name], textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--navy); }
.field input, .field textarea { min-height: 48px; padding: 10px 14px; border: 1.5px solid #C9D6F2; border-radius: 10px; background: #fff; }
.field textarea { resize: vertical; }
.field input.short { max-width: 220px; }
[aria-invalid="true"] { border-color: #B42318 !important; }
.chip-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radios label { position: relative; }
.chip-radios input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-radios span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid #C9D6F2; font-weight: 400; font-size: 15px; cursor: pointer; transition: background .2s; }
.chip-radios input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.chip-radios input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.consent { background: var(--pale); border-radius: 12px; padding: 16px 18px; font-size: 14px; color: var(--body); }
.check { margin-top: 10px; display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; color: var(--navy); font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--navy); }
.err { margin: 0; color: #B42318; font-size: 14px; font-weight: 400; }
.err:empty, .status:empty { display: none; }
.status { color: #B42318; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; font-size: 15px; }
.notice-ok { background: #E6F6EE; color: #0F5132; }
.notice-err { background: #FDECEC; color: #8A1C1C; }
.done { text-align: center; padding: 40px 0; }
.done-icon { width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 50%; background: var(--sky); display: flex; align-items: center; justify-content: center; }
.done h2 { font-size: 26px; }
.done .muted { margin-top: 8px; }
.done .btn { margin-top: 28px; }

/* 개인정보 처리방침 */
.doc { max-width: 860px; }
.doc h2 { font-size: 19px; margin-top: 32px; }
.doc p { margin-top: 10px; color: var(--body); }

/* 스크롤 연동 효과 (지원 브라우저: 크롬·엣지 등) */
@keyframes rise { from { opacity: 0; translate: 0 56px; } to { opacity: 1; translate: 0 0; } }
@keyframes spin { to { rotate: 100deg; } }
@keyframes grow { from { scale: 0 1; } to { scale: 1 1; } }
@supports (animation-timeline: view()) {
  .rv { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  .px { animation: spin linear both; animation-timeline: scroll(); }
  .prog { display: block; animation: grow linear both; animation-timeline: scroll(); }
}

/* 좁은 화면: 고정 해제 */
@media (max-width: 900px) {
  .years .label { font-size: 14px; }
  .years button { width: 52px; }
  .years .dot { width: 36px; height: 36px; }
  .years-line { top: 16px; left: 26px; right: 26px; }
}
@media (max-width: 600px) {
  .hero-badge { position: static; margin-top: 12px; max-width: none; }
}

/* 마우스가 있는 기기에서만 호버 효과 (터치에서 눌린 채 남지 않게) */
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
  .node:hover { transform: scale(1.14); }
  .area-tabs button:hover { background: #fff; }
  .lift:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11,31,92,.14); }
  .nl:hover { background-size: 100% 2px; color: var(--navy); }
}

/* 메뉴 버튼 · 하단 문의 바 (기본은 숨김) */
.menu-toggle { display: none; }
.mbar { display: none; }

/* ---------- 태블릿 이하 (900px) ---------- */
@media (max-width: 900px) {
  .only-wide { display: none; }
  .only-narrow { display: inline; }

  /* 가로로 넘기는 탭 */
  .area-tabs, .pill-tabs {
    flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 8px;
    scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: calc(-1 * max(5vw, 16px)); padding: 2px max(5vw, 16px) 6px;
  }
  .area-tabs::-webkit-scrollbar, .pill-tabs::-webkit-scrollbar { display: none; }
  .area-tabs { margin-top: 20px; }
  .area-tabs button, .pill-tabs button { flex: none; width: auto; min-height: 44px; border-radius: 999px;
    padding: 0 16px; border: 1.5px solid #C9D6F2; background: #fff; scroll-snap-align: start; font-size: 15px; white-space: nowrap; }
  .area-tabs button[aria-selected="true"] { border-color: var(--blue); }
  .area-tabs .num { width: auto; margin-right: -6px; }
  .business-side { flex-basis: 100%; }
  .area-card { flex-basis: 100%; touch-action: pan-y; }
  .case-visual, .year-items { touch-action: pan-y; }
  .cases-head { align-items: flex-start; flex-direction: column; }
  .pill-tabs { width: calc(100% + 2 * max(5vw, 16px)); }
}

/* ---------- 휴대폰 (760px) ---------- */
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  html { scroll-padding-top: 68px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  /* 헤더: 한 줄 + 메뉴 버튼 */
  .nav { flex-wrap: nowrap; padding-block: 10px; }
  .logo img { height: 36px; }
  .menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px;
    padding: 0 10px; border: 0; border-radius: 10px; background: var(--pale); cursor: pointer; }
  .menu-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 1px; transition: transform .25s, opacity .25s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid #E3E8F4; box-shadow: 0 16px 32px rgba(11,31,92,.12); padding: 8px max(5vw, 16px) 20px; font-size: 17px; }
  .nav-links.open { display: flex; }
  .nav-links .nl { padding: 14px 4px; border-bottom: 1px solid #EEF1F8; background: none; }
  .nav-links .btn { margin-top: 14px; min-height: 52px; font-size: 16px; }

  /* 하단 고정 문의 바 */
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid #E3E8F4;
    box-shadow: 0 -8px 24px rgba(11,31,92,.08); }
  .mbar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 12px;
    font-weight: 700; text-decoration: none; font-size: 16px; }
  .mbar-tel { background: var(--pale); color: var(--navy); }
  .mbar-cta { background: var(--blue); color: #fff; }

  /* 첫 화면 */
  .hero-inner { padding-block: 40px 48px; gap: 32px; }
  .hero-kicker { font-size: 16px; margin-bottom: 12px; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 44px); }
  .hero-lead { font-size: 16.5px; margin-top: 18px; }
  .hero .btn-row .btn { flex: 1 1 140px; }
  .hero-visual { flex-basis: 100%; }

  /* 요약 2×2 */
  .facts-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; padding-block: 28px; }
  .fact { padding-left: 12px; }
  .fact strong { font-size: 21px; }
  .fact span { font-size: 13.5px; }

  /* 간격·글자 */
  .section { padding-block: 56px; }
  .stick { padding-block: 48px; }
  .h2 { font-size: clamp(26px, 7vw, 32px); }
  .h2-sm { font-size: clamp(24px, 6.6vw, 30px); }
  .lead { font-size: 16px; }
  .company { gap: 32px; }
  .ceo { padding: 24px; border-radius: 20px; }
  .area-card { padding: 16px; border-radius: 20px; }
  .area-panel { margin-top: 12px; padding-top: 16px; }
  .checks li { flex-basis: 100%; }
  .area-panel .btn-row .btn { flex: 1 1 auto; }
  .case-panel { gap: 14px; }
  .case-visual, .steps { flex-basis: 100%; }
  .step { padding: 12px 14px; gap: 12px; }
  .step-title { font-size: 16px; }
  .step-text { font-size: 14.5px; }
  .overseas-inner { gap: 28px; padding-block: 56px; }
  .year-items li { flex-basis: 100%; }
  .cards { gap: 14px; margin-top: 24px; }
  .card { padding: 22px; }
  .cta-inner { padding-block: 48px; }
  .cta .btn { width: 100%; }
  .partner-groups { gap: 16px; }
  .chips span { padding: 7px 14px; font-size: 14px; }
  .footer-inner { padding-block: 36px; }

  /* 문의 페이지 */
  .contact-inner { padding-block: 28px 40px; gap: 24px; }
  .contact-direct { margin-top: 20px; }
  .contact-box { padding: 22px 18px; border-radius: 16px; }
  .chip-radios span { font-size: 14.5px; padding: 0 14px; }
}

@media (max-width: 380px) {
  .hero .btn-row .btn { flex-basis: 100%; }
  .years .label { font-size: 12.5px; }
}

/* ---------- 섹션 배경 ---------- */
.dots { background-image: radial-gradient(rgba(1,65,154,.13) 1.3px, transparent 1.4px); background-size: 22px 22px; }
.deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.dm { position: absolute; display: block; transform: rotate(45deg); border-radius: 28%; pointer-events: none; }

/* 회사 소개: 흰 바탕 + 점 패턴 + 연한 마름모 */
.company-sec { position: relative; overflow: clip;
  background: radial-gradient(520px 420px at 0% 100%, rgba(30,185,238,.10), transparent 70%), #fff; }
.company-sec::before { content: ""; position: absolute; left: 0; top: 0; width: 46%; height: 100%;
  background-image: radial-gradient(rgba(1,65,154,.12) 1.3px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent); }
.company-sec > .wrap { position: relative; }
.dm-c { width: 520px; height: 520px; right: -200px; top: -120px; background: linear-gradient(135deg, #EEF2FC, #DCE5F8); }

/* 사업 영역: 연한 파랑 그라데이션 + 빛 + 점 */
.track-business { background: linear-gradient(180deg, #EEF2FC 0%, #E2EAFB 100%); }
.deco-biz { background:
  radial-gradient(620px 420px at 88% 18%, rgba(30,185,238,.22), transparent 70%),
  radial-gradient(520px 520px at 6% 92%, rgba(1,65,154,.12), transparent 70%); }
.deco-biz::after { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(1,65,154,.14) 1.3px, transparent 1.4px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at 20% 30%, #000 0, transparent 60%); mask-image: radial-gradient(ellipse at 20% 30%, #000 0, transparent 60%); }
.deco-biz .dm-a { width: 300px; height: 300px; right: -90px; bottom: -110px; border: 2px dashed rgba(1,65,154,.22); }
.deco-biz .dm-b { width: 140px; height: 140px; left: 42%; top: -60px; background: rgba(30,185,238,.12); }

/* 현장 사례: 남색 반전 + 격자 */
.track-cases { background: var(--navy); color: #fff; }
.deco-cases { background:
  radial-gradient(640px 460px at 100% 0%, rgba(30,185,238,.20), transparent 70%),
  radial-gradient(560px 460px at 0% 100%, rgba(1,65,154,.55), transparent 70%); }
.deco-cases::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.deco-cases .dm-a { width: 380px; height: 380px; right: -160px; top: 30%; background: rgba(255,255,255,.04); }
.deco-cases .dm-b { width: 180px; height: 180px; left: -70px; top: 8%; border: 2px solid rgba(30,185,238,.25); }
.track-cases .eyebrow { color: var(--sky); }
.track-cases .pill-tabs button { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.25); color: #fff; }
.track-cases .pill-tabs button[aria-selected="true"] { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.track-cases .bar { background: rgba(255,255,255,.14); }
.track-cases .case-visual { background: #EEF2FC; color: var(--navy); }
.track-cases .step { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); color: #fff; }
.track-cases .step-num { background: rgba(255,255,255,.12); color: #fff; }
.track-cases .step-text { color: var(--on-dark-2); }
.track-cases .step[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--navy); box-shadow: 0 16px 36px rgba(0,0,0,.25); }
.track-cases .step[aria-pressed="true"] .step-num { background: var(--sky); color: var(--navy); }
.track-cases .step[aria-pressed="true"] .step-text { color: var(--body); }

/* 해외 진출: 파랑→남색 + 점 */
.overseas::before { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) 1.3px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.overseas-inner { position: relative; }

/* 연혁: 흰 바탕 + 빛 + 점선 길 */
.track-history { background: #fff; }
.deco-hist { background: radial-gradient(600px 420px at 100% 100%, rgba(30,185,238,.14), transparent 70%),
  radial-gradient(500px 380px at 0% 0%, rgba(1,65,154,.08), transparent 70%); }
.deco-hist::after { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(1,65,154,.10) 1.3px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(0deg, #000, transparent 70%); mask-image: linear-gradient(0deg, #000, transparent 70%); }
.deco-hist .dm-a { width: 260px; height: 260px; right: -80px; top: -90px; background: linear-gradient(135deg, #EEF2FC, #DCE5F8); }
.deco-hist .dm-b { width: 120px; height: 120px; left: 38%; bottom: -50px; border: 2px dashed rgba(1,65,154,.2); }
.year-items li { background: #fff; border: 1.5px solid var(--line); box-shadow: 0 8px 20px rgba(11,31,92,.05); }

/* 소식: 점 패턴 + 카드 그림자 */
.news-sec { position: relative; background: linear-gradient(180deg, #fff, #F5F8FE); }
.news-sec::before { content: ""; position: absolute; right: 0; top: 0; width: 40%; height: 60%;
  background-image: radial-gradient(rgba(1,65,154,.12) 1.3px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 100% 0%, #000, transparent 70%); }
.news-sec > .wrap { position: relative; }
.card { background: #fff; box-shadow: 0 10px 28px rgba(11,31,92,.06); }

/* 파트너: 흐르는 띠 */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; }
.marquee .chips { flex-wrap: nowrap; padding-right: 8px; }
.marquee .chips span { white-space: nowrap; box-shadow: 0 4px 12px rgba(11,31,92,.06); border: 1px solid var(--line); }
@media (hover: hover) { .marquee:hover .marquee-track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 화면 고정 구간 길이 ---------- */
.no-pin { height: auto !important; }
.no-pin .stick { position: static; min-height: 0; }
@media (max-width: 760px) {
  .track-business { height: 2000px; }
  .track-cases { height: 2600px; }
  .track-history { height: 1700px; }
  .stick { padding-block: 22px 18px; }

  /* 고정 화면에 맞춘 콤팩트 배치 */
  .stick { min-height: calc(100vh - var(--header-h) - 64px); }
  @supports (height: 100svh) { .stick { min-height: calc(100svh - var(--header-h) - 64px - env(safe-area-inset-bottom)); } }
  .track:not(.no-pin) .eyebrow:not(.eyebrow-sm) { display: none; }
  .business-side .hint { display: none; }
  .area-panel .muted { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .business-side .h2-sm, .cases-head .h2-sm, .track-history .h2-sm { font-size: clamp(22px, 6vw, 27px); }
  .area-tabs { margin-top: 14px; }
  .area-card { margin-top: -8px; }
  .dev-art { max-height: 70px; }
  .area-panel h3 { font-size: 19px; }
  .area-panel .muted { font-size: 14.5px; line-height: 1.6; }
  .checks { gap: 6px; margin-top: 12px; }
  .checks li { flex: 1 1 calc(50% - 6px); font-size: 13px; padding: 8px 10px; gap: 6px; line-height: 1.45; }
  .checks li::before { width: 13px; height: 13px; background-size: 13px; margin-top: 3px; }
  .area-panel .btn-row { margin-top: 12px; }

  .cases-head { gap: 10px; }
  .pill-tabs button { min-height: 40px; font-size: 13.5px; }
  .bar { margin-top: 12px; }
  .case-panel { margin-top: 12px; gap: 10px; }
  .case-visual { flex-direction: row; align-items: center; border-radius: 16px; }
  .case-art { width: 46%; flex: none; }
  .case-caption { padding: 10px 14px; margin: 0; }
  .case-caption h3 { font-size: 16px; }
  .steps { gap: 6px; }
  .step { padding: 10px 12px; border-radius: 12px; }
  .step-num { width: 28px; height: 28px; font-size: 14px; }
  .step-text { display: none; }
  .step[aria-pressed="true"] .step-text { display: block; }

  .years { margin-top: 18px; }
  .year-items { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px;
    margin: 18px calc(-1 * max(5vw, 16px)) 0; padding: 4px max(5vw, 16px) 10px; }
  .year-items::-webkit-scrollbar { display: none; }
  .year-items li { flex: 0 0 78%; scroll-snap-align: start; }

  .facts { background: linear-gradient(var(--navy) 0 30%, #fff 30%); }
  .fact { padding: 14px 14px; border-radius: 14px; }
  .dm-c { width: 300px; height: 300px; right: -150px; top: -60px; }
}

/* ---------- 겹쳐 둔 패널의 부드러운 전환 (높이 고정, 깜빡임 없음) ---------- */
.panels { display: grid; }
.panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s; }
.panel.is-active { opacity: 1; visibility: visible; transform: none;
  transition: opacity .45s ease .08s, transform .45s ease .08s, visibility 0s; }
.dev { transition: opacity .45s ease; }

/* 진행 표시 */
.area-top { position: absolute; top: 14px; right: 18px; z-index: 1; }
.count { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.count b { font-size: 18px; color: var(--blue); }
.tab-key { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 8px;
  border-radius: 50%; font-size: 12px; font-weight: 900; background: rgba(255,255,255,.14); }
.pill-tabs button[aria-selected="true"] .tab-key { background: var(--navy); color: #fff; }
.pill-tabs button { display: inline-flex; align-items: center; }

/* 맨 위로 */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 25; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--navy); color: #fff;
  box-shadow: 0 10px 24px rgba(11,31,92,.25); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility 0s linear .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s, visibility 0s; }
.to-top:hover { color: #fff; background: var(--blue); }

@media (max-width: 760px) {
  .to-top { display: none; }
  /* 사업 영역 탭: 가로 스크롤 대신 3×2 격자 (잘려 보이지 않게) */
  .area-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; overflow: visible;
    margin: 14px 0 0; padding: 0; }
  .area-tabs button { width: 100%; min-height: 40px; padding: 4px 6px; border-radius: 10px; font-size: 12.5px;
    justify-content: center; text-align: center; white-space: normal; line-height: 1.25; }
  .area-tabs .num { display: none; }
  .area-top { top: 10px; right: 12px; }
  .count b { font-size: 15px; }
  /* 사례 탭: 짧은 이름으로 한 줄에 */
  .pill-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; overflow: visible;
    width: 100%; margin: 0; padding: 0; }
  .pill-tabs button { width: 100%; min-height: 40px; padding: 4px 6px; border-radius: 10px; font-size: 12.5px;
    justify-content: center; white-space: normal; line-height: 1.25; text-align: center; }
  .tab-key { width: 18px; height: 18px; font-size: 11px; margin-right: 5px; flex: none; }
  .case-panels { margin-top: 12px; }
  /* 연혁: 세로로 촘촘한 목록 */
  .year-items { display: flex; flex-direction: column; flex-wrap: nowrap; overflow: visible; gap: 0;
    margin: 16px 0 0; padding: 0; }
  .year-items li { flex: none; display: flex; gap: 12px; align-items: baseline; padding: 9px 2px; border: 0;
    border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; font-size: 14px; line-height: 1.45; }
  .year-items .m { flex: none; width: 48px; margin: 0; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .px, .prog, .draw, .marquee-track { animation: none !important; }
  .panel, .panel.is-active, .dev, .to-top { transition: none !important; transform: none !important; }
  .marquee-track { width: auto; flex-wrap: wrap; } .marquee .chips { flex-wrap: wrap; } .marquee .chips[aria-hidden] { display: none; }
  .draw { stroke-dashoffset: 0; }
  .lift:hover, .btn:hover, .node:hover { transform: none; }
}

/* 태블릿: 가로로 넘기는 탭의 가장자리를 흐리게 해 더 있음을 알림 */
@media (min-width: 761px) and (max-width: 900px) {
  .area-tabs, .pill-tabs {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent);
  }
}

/* 휴대폰: 화면 고정 장면을 한 화면(주소창이 보일 때 기준)에 담는 콤팩트 배치 */
@media (max-width: 760px) {
  .dev-art { display: none; }
  .area-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
  .area-tabs button { min-height: 38px; padding: 0; border-radius: 10px; }
  .area-tabs .tab-label { display: none; }
  .area-tabs .num { display: inline; width: auto; margin: 0; font-size: 13.5px; font-weight: 900; }
  .area-card { padding: 16px; margin-top: 0; }
  .area-top { top: 14px; right: 16px; }
  .area-panel { margin-top: 0; border-top: 0; padding-top: 0; }
  .area-panel h3 { font-size: 18px; padding-right: 64px; }
  .area-panel .muted { -webkit-line-clamp: 2; margin-top: 6px; }
  .area-panel .btn-row { flex-wrap: nowrap; gap: 8px; }
  .area-panel .btn-row .btn { flex: 1 1 0; min-height: 42px; padding: 0 8px; font-size: 13.5px; }
  .business-inner { gap: 14px; }

  .cases-head .h2-sm { font-size: 20px; }
  .case-art { width: 40%; }
  .case-caption .eyebrow-sm { font-size: 12px; }
  .case-caption h3 { font-size: 15px; }
  .step { padding: 8px 12px; }
  .step-num { width: 24px; height: 24px; font-size: 13px; }
  .step-title { font-size: 15px; }
  .step-text { font-size: 13.5px; line-height: 1.5; }
}

/* 태블릿(761~900px): 사업 영역 탭은 6칸 격자, 사례는 그림을 옆에 두는 배치 */
@media (min-width: 761px) and (max-width: 900px) {
  .area-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; overflow: visible; margin-inline: 0; padding: 0;
    -webkit-mask-image: none; mask-image: none; }
  .area-tabs button { width: 100%; padding: 6px 4px; border-radius: 12px; flex-direction: column; gap: 2px; justify-content: center;
    text-align: center; white-space: normal; line-height: 1.25; font-size: 13px; min-height: 56px; }
  .area-tabs .num { margin: 0; }
}
@media (max-width: 900px) {
  .case-visual { flex-direction: row; align-items: center; }
  .case-art { width: 42%; flex: none; }
  .case-caption { margin: 0; }
  .step-text { display: none; }
  .step[aria-pressed="true"] .step-text { display: block; }
}
@media (max-width: 760px) {
  .hide-sm { display: none; }
  .area-panel .btn-row .btn { white-space: nowrap; }
}
