/* ㈜펜타엑스 홈페이지 스타일 */
:root {
  --ink: #0a1424;
  --navy: #0f2038;
  --navy-2: #16304f;
  --text: #1c2733;
  --muted: #5b6878;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --accent: #e5432d;
  --accent-d: #c93520;
  --blue: #2f6fe4;
  --teal: #18a999;
  --violet: #6a4fd8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 32, 56, .08);
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", "Noto Sans KR", "Segoe UI", sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased; word-break: keep-all;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); font-size: .9em; }
.pc { display: inline; }

/* ---------- 헤더 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .98); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(15, 32, 56, .06); }
.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: auto; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.brand-name small { display: block; font-size: .64rem; letter-spacing: .18em; color: var(--muted); font-weight: 700; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; font-weight: 600; color: #34415a; transition: background .15s, color .15s; }
.nav a:hover { background: var(--bg-alt); color: var(--ink); }
.nav a.active { color: var(--accent); }
.nav .nav-cta { background: var(--navy); color: #fff; margin-left: 8px; padding: 9px 16px; }
.nav .nav-cta:hover { background: var(--accent); color: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s, top .25s; }
.menu-btn span:nth-child(1) { top: 15px; } .menu-btn span:nth-child(2) { top: 21px; } .menu-btn span:nth-child(3) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s, background .2s, border-color .2s, color .2s; min-height: 48px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }

/* ---------- 히어로 ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: calc(var(--header-h) + 64px) 0 0; background:
  radial-gradient(900px 500px at 85% 20%, rgba(47, 111, 228, .28), transparent 60%),
  radial-gradient(700px 500px at 5% 90%, rgba(229, 67, 45, .18), transparent 60%),
  linear-gradient(160deg, #0a1424 0%, #0f2038 55%, #16304f 100%); }
.hero-bg { position: absolute; right: -140px; top: 40px; width: 780px; color: rgba(255, 255, 255, .13); pointer-events: none; }
.pent { transform-origin: 400px 380px; animation: spin 60s linear infinite; }
.p2 { animation-duration: 90s; animation-direction: reverse; } .p3 { animation-duration: 120s; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-bottom: 72px; }
.eyebrow { font-size: .88rem; font-weight: 700; letter-spacing: .02em; color: #9fb4d4; margin-bottom: 18px; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 10px; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.18; letter-spacing: -.035em; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #9b8bff, #5cb6ff 45%, #3fe0c5 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 22px; font-size: clamp(1rem, 1.5vw, 1.15rem); color: #c3d0e6; max-width: 36em; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.hero-visual { justify-self: end; width: 100%; max-width: 480px; }
.hero-photos { position: relative; aspect-ratio: 1 / .92; width: 100%; }
.hp { position: absolute; margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .14); background: #111; }
.hp img { width: 100%; height: 100%; object-fit: cover; }
.hp-1 { width: 56%; height: 56%; left: 0; top: 6%; z-index: 2; }
.hp-2 { width: 50%; height: 46%; right: 0; top: 0; transform: rotate(3deg); }
.hp-3 { width: 54%; height: 52%; right: 4%; bottom: 0; z-index: 3; transform: rotate(-2deg); }
/* 배지는 사진 위에 얹지 않고 사진 아래 별도 줄에 둔다(겹침 방지) */
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.chip { background: rgba(255, 255, 255, .95); color: var(--ink); font-size: .86rem; font-weight: 700; padding: 9px 16px; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap; }
.chip b { color: var(--accent); }

.hero-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .16); }
.hero-stats li { padding: 26px 20px; border-right: 1px solid rgba(255, 255, 255, .12); }
.hero-stats li:last-child { border-right: 0; }
.hero-stats b { display: block; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-stats b small { font-size: .55em; margin-left: 2px; color: #9fb4d4; }
.hero-stats span { display: block; margin-top: 6px; font-size: .88rem; color: #9fb4d4; }

/* ---------- 섹션 공통 ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: linear-gradient(160deg, #0a1424, #0f2038 60%, #16304f); color: #fff; }
.sec-head { margin-bottom: 44px; max-width: 46em; }
.sec-no { display: inline-block; font-size: .82rem; font-weight: 800; letter-spacing: .14em; color: var(--accent); margin-bottom: 8px; }
.sec-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -.03em; line-height: 1.25; font-weight: 800; color: var(--ink); }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 1.04rem; }
.dark .sec-head h2 { color: #fff; } .dark .sec-head p { color: #b9c7de; }

/* ---------- 회사소개 ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 28px; }
.info-card > div { display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-card > div:last-child { border-bottom: 0; }
.info-card dt { font-weight: 700; color: var(--muted); font-size: .94rem; }
.info-card dd { font-weight: 600; color: var(--ink); }
.ceo-card { background: var(--navy); color: #dbe5f5; border-radius: var(--radius); padding: 32px; position: relative; overflow: hidden; }
.ceo-card::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 190px; height: 190px; border: 28px solid rgba(255, 255, 255, .05); border-radius: 50%; }
.tag { display: inline-block; font-size: .72rem; letter-spacing: .16em; font-weight: 800; color: var(--ink); background: #9fe7da; padding: 3px 10px; border-radius: 999px; margin-bottom: 16px; }
.ceo-card h3 { color: #fff; font-size: 1.3rem; line-height: 1.4; letter-spacing: -.02em; margin-bottom: 12px; }
.mini-list { margin-top: 16px; display: grid; gap: 6px; }
.mini-list li { padding-left: 18px; position: relative; font-size: .95rem; }
.mini-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--accent); }

.org { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.org-top { display: inline-block; background: var(--navy); color: #fff; font-weight: 800; padding: 12px 28px; border-radius: 12px; position: relative; }
.org-top small { display: block; font-size: .78rem; font-weight: 500; color: #b9c7de; }
.org-top::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 22px; background: #b6c2d6; }
.org-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 22px; padding-top: 22px; position: relative; }
.org-row::before { content: ""; position: absolute; top: 0; left: 8.33%; right: 8.33%; height: 2px; background: #b6c2d6; }
.org-row li { background: var(--bg-alt); border-radius: 12px; padding: 14px 8px; position: relative; display: grid; gap: 2px; }
.org-row li::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 22px; background: #b6c2d6; }
.org-row li b { color: var(--ink); }
.org-note { margin-top: 16px; color: var(--muted); font-size: .9rem; }

/* ---------- 경쟁력 ---------- */
.str-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.str-card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.badge { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; }
.str-card h3 { font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.35; color: var(--ink); }
.str-card h3 small { display: block; font-size: .85rem; color: var(--accent); font-weight: 700; letter-spacing: 0; margin-top: 2px; }
.str-card p { color: #435064; }
.check { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.check li { position: relative; padding-left: 26px; font-weight: 600; color: var(--ink); }
.check li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.500 8.200l2.300 2.300 4.700-4.800' fill='none' stroke='white' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.str-photos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; margin-top: auto; padding-top: 6px; }
.str-photos img { width: 100%; height: 170px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }

.net { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin: 8px auto 0; color: #b6c2d6; container-type: inline-size; }
.net svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.net-core { position: absolute; left: 50%; top: 50%; width: 36%; aspect-ratio: 1; transform: translate(-50%, -50%); background: #fff; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow); }
.net-core img { width: 70%; }
.net-node { position: absolute; left: 50%; top: 50%; width: 21cqw; height: 10.6cqw; margin: -5.3cqw 0 0 -10.5cqw; display: grid; place-items: center; border-radius: 999px; background: var(--navy); color: #fff; font-size: clamp(.7rem, 3.9cqw, .9rem); font-weight: 700; --r: 35cqw;
  transform: rotate(calc(var(--a) - 90deg)) translateX(var(--r)) rotate(calc(90deg - var(--a))); }
.net-node:nth-of-type(even) { background: var(--navy-2); }

/* ---------- 사업분야 ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.biz { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden; }
.biz::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--violet), var(--blue), var(--teal)); transition: width .35s; }
.biz:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfd9e8; }
.biz:hover::after { width: 100%; }
.biz svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #eef3fb; stroke: var(--blue); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; box-sizing: content-box; }
.biz h3 { font-size: 1.2rem; letter-spacing: -.02em; color: var(--ink); margin-bottom: 8px; }
.biz p { color: var(--muted); font-size: .96rem; }

/* ---------- 설비·인증 ---------- */
.eq-count { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 28px; }
.eq-count li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 20px 14px; text-align: center; }
.eq-count b { display: block; font-size: 2.3rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; background: linear-gradient(120deg, #9b8bff, #5cb6ff, #3fe0c5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eq-count span { display: block; margin-top: 6px; font-size: .9rem; color: #b9c7de; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); }
.eq-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .95rem; }
.eq-table th { text-align: left; padding: 14px 16px; background: rgba(255, 255, 255, .09); font-weight: 700; color: #dbe5f5; white-space: nowrap; }
.eq-table td { padding: 13px 16px; border-top: 1px solid rgba(255, 255, 255, .1); color: #e7eefb; }
.eq-table tbody tr:hover { background: rgba(255, 255, 255, .05); }
.eq-table td:nth-child(1), .eq-table td:nth-child(4) { text-align: center; font-variant-numeric: tabular-nums; }
.eq-table th:nth-child(1), .eq-table th:nth-child(4) { text-align: center; }
.eq-table em { font-style: normal; font-size: .74rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(95, 182, 255, .2); color: #8fcaff; margin-left: 6px; white-space: nowrap; }
.eq-table em.e3 { background: rgba(255, 255, 255, .12); color: #cdd8ea; }
.eq-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.dcard { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 26px; }
.dcard h3 { font-size: 1.1rem; margin-bottom: 14px; color: #fff; }
.dcard li { padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .1); color: #c8d4e8; font-size: .94rem; }
.dcard li:first-child { border-top: 0; padding-top: 0; }
.dcard li b { color: #fff; } .dcard li span { color: #9fb4d4; font-size: .88rem; }

/* ---------- 연혁·성장 ---------- */
.his-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--violet), var(--blue), var(--teal)); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 22px; display: grid; grid-template-columns: 82px 1fr; gap: 12px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.timeline li:last-child::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(229, 67, 45, .18); }
.timeline time { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.timeline p { color: #435064; }
.charts { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.chart { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.chart figcaption { font-weight: 800; color: var(--ink); margin-bottom: 18px; }
.chart figcaption small { font-weight: 500; color: var(--muted); margin-left: 6px; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; align-items: end; height: 190px; }
.bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.bar i { display: block; width: 100%; max-width: 46px; height: var(--h, 0%); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--blue), #7ba6f0); transition: height 1s cubic-bezier(.2, .8, .2, 1); }
.green .bar i { background: linear-gradient(180deg, var(--teal), #5fd3c4); }
.bar b { order: -1; font-size: .88rem; margin-bottom: 6px; color: var(--ink); font-variant-numeric: tabular-nums; }
.bar span { margin-top: 8px; font-size: .8rem; color: var(--muted); }
.bar:last-child b { color: var(--accent); }
/* 막대 높이는 각 .bar의 --h 값. JS가 켜졌을 때만 0에서 차오르는 애니메이션을 쓴다 */
.js .bar i { height: 0; }
.js .chart.in .bar i { height: var(--h); }
.bar:nth-child(2) i { transition-delay: .09s; } .bar:nth-child(3) i { transition-delay: .18s; }
.bar:nth-child(4) i { transition-delay: .27s; } .bar:nth-child(5) i { transition-delay: .36s; } .bar:nth-child(6) i { transition-delay: .45s; }

/* ---------- 납품 사례 ---------- */
.tabs { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }  /* 필터는 JS가 있어야 동작하므로 JS가 켜졌을 때만 보인다 */
.js .tabs { display: flex; }
.tabs button { border: 1.5px solid #ccd5e3; background: #fff; border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: .94rem; color: #34415a; min-height: 44px; transition: all .15s; }
.tabs button:hover { border-color: var(--navy); }
.tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery li { transition: opacity .25s, transform .25s; }
.gallery li[hidden] { display: none; }
.gallery button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: #fff; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.gallery button:hover img { transform: scale(1.06); }
.gallery button::after { content: attr(data-cap); position: absolute; inset: auto 0 0 0; padding: 22px 12px 10px; font-size: .84rem; font-weight: 700; text-align: left; color: #fff; background: linear-gradient(transparent, rgba(10, 20, 36, .85)); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.gallery button:hover::after, .gallery button:focus-visible::after { opacity: 1; transform: none; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: #fff; }
.lightbox::backdrop { background: rgba(6, 12, 22, .9); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; justify-items: center; }
.lightbox figure { grid-column: 2; max-width: 100%; display: grid; gap: 12px; justify-items: center; padding: 20px 0; }
.lightbox img { max-height: 78vh; max-width: min(100%, 980px); width: auto; border-radius: 12px; background: #fff; }
.lightbox figcaption { font-weight: 700; }
.lb-close { position: fixed; top: 14px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.8rem; line-height: 1; z-index: 2; }
.lb-nav { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 2rem; line-height: 1; }
.lb-prev { grid-column: 1; } .lb-next { grid-column: 3; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .28); }

/* ---------- 고객사 ---------- */
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.clients li { display: flex; align-items: center; justify-content: center; height: 92px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 2px 8px rgba(15, 32, 56, .04); transition: transform .2s, box-shadow .2s, border-color .2s; }
.clients li:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfd9e8; }
.clients img { max-width: 100%; max-height: 44px; width: auto; height: auto; }
.clients li.dark { background: #0b0d14; border-color: #0b0d14; }
.clients li.txt { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; color: #34415a; background: var(--bg-alt); box-shadow: none; }

/* ---------- 문의 ---------- */
.contact { background: var(--bg-alt); }
.ct-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
.ct-info { background: var(--navy); color: #dbe5f5; border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.ct-info > ul > li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ct-info > ul > li:first-child { padding-top: 0; }
.ct-info > ul > li span { color: #9fb4d4; font-size: .9rem; }
.ct-info > ul > li b, .ct-info > ul > li a { color: #fff; font-weight: 700; text-decoration: none; }
.ct-info > ul > li a:hover { text-decoration: underline; }
.ask b { display: block; color: #fff; margin-bottom: 12px; }
.ask ul { display: flex; flex-wrap: wrap; gap: 8px; }
.ask li { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #dbe5f5; font-size: .9rem; font-weight: 600; }
.map-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.ct-info .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); padding: 11px 20px; }
.ct-info .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.ct-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.ct-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-form label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--ink); }
.ct-form input, .ct-form textarea { font: inherit; font-size: 1rem; padding: 13px 14px; border: 1.5px solid #ccd5e3; border-radius: 10px; background: #fff; color: var(--text); width: 100%; }
.ct-form textarea { resize: vertical; min-height: 130px; }
.ct-form input:focus, .ct-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 111, 228, .15); }
.ct-form .invalid { border-color: var(--accent); }
.ct-form .btn { justify-self: start; border: 0; }
.form-note { font-size: .86rem; color: var(--muted); }
.form-alt { font-size: .86rem; color: var(--muted); margin-top: -6px; }
.form-alt a { color: var(--blue); font-weight: 700; }
.form-note.err { color: var(--accent-d); font-weight: 700; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--ink); color: #9fb0c9; padding: 44px 0; font-size: .9rem; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 40px; align-items: start; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { width: 52px; background: #fff; padding: 5px; border-radius: 10px; }
.foot-brand b { display: block; color: #fff; font-size: 1.08rem; } .foot-brand small { color: #7e90ad; letter-spacing: .14em; margin-left: 4px; }
address { font-style: normal; line-height: 1.8; }
.copy { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); color: #7e90ad; }

/* ---------- 스크롤 등장 ---------- */
/* 기본은 항상 보인다. JS가 정상 동작할 때만(html.js) 숨겼다가 스크롤 시 나타낸다 */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.biz.reveal:nth-child(3n+2) { transition-delay: .08s; } .biz.reveal:nth-child(3n) { transition-delay: .16s; }

/* ---------- 반응형 ---------- */
@media (max-width: 1020px) {
  .hero-in { grid-template-columns: 1fr; gap: 36px; padding-bottom: 56px; }
  .hero-visual { justify-self: center; max-width: 420px; }
  .hero-bg { right: -300px; opacity: .8; }
  .about-grid, .str-grid, .his-grid, .ct-grid { grid-template-columns: 1fr; }
  .charts { position: static; }
  .biz-grid, .eq-cards { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .eq-count { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(15, 32, 56, .12); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 15px 8px; font-size: 1.04rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .nav-cta { margin: 14px 0 0; text-align: center; border-radius: 999px; border-bottom: 0; }
  .pc { display: none; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: calc(var(--header-h) + 36px); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats li:nth-child(2) { border-right: 0; }
  .hero-stats li:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .info-card { padding: 4px 20px; }
  .info-card > div { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }
  .org { padding: 22px 14px; }
  .org-row { grid-template-columns: repeat(2, 1fr); }
  .org-row::before, .org-row li::before, .org-top::after { display: none; }
  .org-row { padding-top: 18px; }
  .str-card, .ceo-card, .ct-info, .ct-form { padding: 24px 20px; }
  .check { grid-template-columns: 1fr; }
  .biz-grid, .eq-cards { grid-template-columns: 1fr; }
  .eq-count { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .clients { grid-template-columns: 1fr 1fr; gap: 10px; }
  .clients li { height: 80px; padding: 12px; }
  .gallery button::after { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
  .ct-form .row { grid-template-columns: 1fr; }
  .ct-form .btn { justify-self: stretch; }
  .foot-in { grid-template-columns: 1fr; }
  .lightbox[open] { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .lightbox figure { grid-column: 1; }
  .lb-nav { position: fixed; bottom: 18px; z-index: 2; } .lb-prev { left: 18px; } .lb-next { right: 18px; }
}
/* JS를 쓸 수 없을 때(html.js 없음) 좁은 화면에서도 메뉴가 보이도록: 메뉴를 헤더 아래 줄로 펼친다 */
@media (max-width: 860px) {
  html:not(.js) .site-header { position: static; height: auto; padding: 8px 0; }
  html:not(.js) .header-in { flex-wrap: wrap; }
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 2px; width: 100%; padding: 0; background: none; border: 0; box-shadow: none; transform: none; opacity: 1; visibility: visible; }
  html:not(.js) .nav a { padding: 8px 10px; font-size: .92rem; border-bottom: 0; }
  html:not(.js) .nav .nav-cta { margin: 0 0 0 auto; }
  html:not(.js) .hero { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pent { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .bar i { transition: none; }
  * { scroll-behavior: auto !important; }
}
