/* CODE:BAILEY — 사이트 전체 스타일. 값은 witive/seo-arum 측정값 (docs/superpowers/specs/2026-09-25-main-page-redesign-design.md §3) */

:root {
  --ink: #111827;
  --body: #5d697a;
  --body-strong: #425066;
  --point: #258cff;
  --line: #e5e7eb;
  --line-strong: #d9dce1;
  --gray: #f3f4f5;
  --dark: #0b1220;
  --dark-2: #111a2b;
  --dark-line: #22304a;
  --on-dark: #e6edf7;
  --on-dark-muted: #aab4c3;
  --wrap: 1152px;
  --gutter: 64px;
  --gap: 200px;
  --hd-h: 72px;
  --font: 'Geist', 'Noto Sans KR', 'Apple SD Gothic Neo', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* 반경 위계: 버튼 6 · 태그/칩 4 · 카드 8 · 미디어·패널 16 */
  --r-btn: 6px;
  --r-chip: 4px;
  --r-card: 8px;
  --r-media: 16px;
  /* 넓은 미디어 — 화면 양옆 24px, 최대 1840px. 본문(.wrap) 안에서 바깥으로 넓힘 */
  --r-wide: 20px;
  --wide-m: calc(50% - min(50vw - 24px, 920px));
  --wide-left: max(24px, (100vw - 1840px) / 2);
  --wrap-left: max(var(--gutter), (100vw - var(--wrap)) / 2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.is-locked { overflow: hidden; }
body {
  background: #fff; color: var(--ink); font-family: var(--font);
  font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased;
  word-break: keep-all; overflow-wrap: break-word; overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--point); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-btn); }
.skip:focus { top: 12px; }
.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Type ─────────────────────────────── */
.eyebrow { font-size: 16px; font-weight: 680; letter-spacing: .02em; color: var(--ink); }
.display { font-size: clamp(40px, 5.4vw, 72px); font-weight: 560; letter-spacing: -.04em; line-height: .95; }
.title { font-size: clamp(30px, 3.3vw, 44px); font-weight: 520; letter-spacing: -.035em; line-height: 1.12; }
.title-xl { font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -.04em; line-height: 1.06; }
.label { font-size: 17px; font-weight: 680; letter-spacing: -.02em; }
.point { font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--point); }
.card-title { font-size: 17px; font-weight: 680; letter-spacing: -.02em; }
.body { font-size: 15px; line-height: 1.7; color: var(--body); }
.lead { font-size: 15px; line-height: 1.8; color: var(--body-strong); max-width: 820px; }

/* ── Logo ─────────────────────────────── */
.cb-wordmark {
  display: inline-flex; align-items: center; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800; font-size: 27px; letter-spacing: 0; line-height: 1; color: var(--ink); white-space: nowrap;
}
/* 콜론 좌우 여백: 픽셀 측정으로 E–:–B 간격을 약 0.1em으로 맞춤 */
.cb-colon { display: inline-block; margin: 0 -.08em 0 -.04em; color: var(--point); transform: translateY(-.1em); }

/* ── Buttons & links ──────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px;
  border-radius: var(--r-btn); font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-line { border: 1px solid #d1d5db; color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.more { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 600; }
.more span[aria-hidden] { color: var(--point); transition: transform .2s; }
.more:hover span[aria-hidden] { transform: translateX(4px); }

/* ── Header ───────────────────────────── */
.hd { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .9); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); }
.hd-in { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); height: var(--hd-h); display: flex; align-items: center; gap: 48px; }
.hd-logo .cb-wordmark { font-size: 24px; }
.hd-nav { flex: 1; }
.hd-menu { display: flex; justify-content: center; gap: 48px; }
.hd-item { position: relative; }
.hd-link { display: flex; align-items: center; height: var(--hd-h); font-size: 16px; font-weight: 600; letter-spacing: .01em; color: var(--body-strong); }
.hd-link:hover, .hd-link.is-active { color: var(--ink); }
.hd-link.is-active { font-weight: 680; }
.hd-sub {
  position: absolute; left: -20px; top: calc(var(--hd-h) - 8px); min-width: 240px; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 24px 48px -24px rgba(17, 24, 39, .18);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s;
}
.hd-item:hover .hd-sub, .hd-item:focus-within .hd-sub { opacity: 1; visibility: visible; transform: none; }
.hd-item.is-closed .hd-sub { opacity: 0; visibility: hidden; }
.hd-sub a { display: block; padding: 11px 16px; border-radius: var(--r-chip); font-size: 16px; color: var(--body-strong); white-space: nowrap; }
.hd-sub a:hover { background: var(--gray); color: var(--ink); }
.hd-actions { display: flex; align-items: center; gap: 16px; }
.hd-blog { font-size: 15px; font-weight: 600; color: var(--body); }
.hd-blog:hover { color: var(--ink); }
.ext { display: inline-block; margin-left: 2px; font-size: .85em; }
.hd-burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.hd-burger-bars, .hd-burger-bars::before, .hd-burger-bars::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, background .2s; }
.hd-burger-bars { position: relative; }
.hd-burger-bars::before, .hd-burger-bars::after { content: ""; position: absolute; left: 0; }
.hd-burger-bars::before { top: -6px; }
.hd-burger-bars::after { top: 6px; }
.hd-burger[aria-expanded="true"] .hd-burger-bars { background: transparent; }
.hd-burger[aria-expanded="true"] .hd-burger-bars::before { transform: translateY(6px) rotate(45deg); }
.hd-burger[aria-expanded="true"] .hd-burger-bars::after { transform: translateY(-6px) rotate(-45deg); }
/* top/height (not bottom) 고정: .hd 의 backdrop-filter 가 position:fixed 자손의 containing block 이 되어
   .hd 자체 높이(--hd-h)를 기준으로 bottom:0 이 계산되면 메뉴 패널이 0에 가깝게 찌그러짐 */
.m-menu { position: fixed; top: var(--hd-h); left: 0; right: 0; height: calc(100vh - var(--hd-h));
  height: calc(100dvh - var(--hd-h)); background: #fff; overflow-y: auto; padding: 8px 20px 48px; }
.m-menu > ul > li { border-bottom: 1px solid var(--line); padding: 16px 0; }
.m-top { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.m-menu li ul { display: grid; gap: 6px; margin-top: 10px; }
.m-menu li ul a { font-size: 15px; color: var(--body); }
.m-menu .btn { margin-top: 32px; width: 100%; }

/* ── Footer ───────────────────────────── */
.ft { background: var(--gray); padding: 96px 0 40px; }
.ft-in { display: grid; grid-template-columns: 260px 1fr; gap: 64px; }
.ft-brand .cb-wordmark { font-size: 24px; }
.ft-brand p { margin-top: 16px; font-size: 14px; color: var(--body); max-width: 260px; }
.ft-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.ft-h { font-size: 13px; font-weight: 680; letter-spacing: .06em; margin-bottom: 14px; }
.ft-col li { margin-bottom: 8px; font-size: 13px; line-height: 1.6; color: var(--body); }
.ft-col a:hover { color: var(--ink); }
.ft-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line-strong); font-size: 12px; color: var(--body); }

/* ── Media (자리표시 포함) ─────────────── */
.media { position: relative; overflow: hidden; background: var(--gray); }
.media video, .media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-hero { height: min((100vw - 48px) * 9 / 21, 788px); margin-inline: var(--wide-m); border-radius: var(--r-wide); } /* 넓은 폭 21:9 · 넓은 화면은 높이만 고정 (aspect-ratio+max-height는 폭까지 줄여서 안 씀) */
.media-card { aspect-ratio: 4 / 5; border-radius: var(--r-media); }
.media-wide { aspect-ratio: 21 / 9; border-radius: var(--r-media); background: #d6eefb; }

/* ── Sections ─────────────────────────── */
.section { padding-top: var(--gap); }
.section-gray { background: var(--gray); margin-top: var(--gap); padding: 120px 0; }
.section-gray + .section { padding-top: var(--gap); }
.head { display: grid; grid-template-columns: 25% 1fr; gap: 24px; margin-bottom: 72px; }
.head > .label { display: flex; align-items: center; gap: 12px; align-self: start; padding-top: 10px; font-size: clamp(18px, 1.55vw, 22px); }
.head > .label::before { content: ''; flex: none; width: 20px; height: 2px; background: var(--point); } /* 섹션 라벨: 제목(44px) 옆에서 묻히지 않게 */
.head .body { margin-top: 0; max-width: 820px; } /* 그리드 간격(24px)이 제목과의 거리 */
.head .head-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -4px; list-style: none; }
.head .head-points li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: var(--body-strong); }
.head .head-points li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--point); }

/* Hero: 문구 → 영상 → 고객 띠 */
.hero { padding-top: 72px; }
.hero .display { margin-top: 28px; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin: 32px 0 56px; }
.hero-foot .actions { flex-shrink: 0; }
.hero-lead { max-width: 600px; text-wrap: balance; font-size: 18px; line-height: 1.7; letter-spacing: -.01em; color: var(--body-strong); }
.hero .clients-row { margin-top: 24px; border-color: var(--line); }
.hero + .section-gray { margin-top: 160px; }
.br-sm { display: none; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; }
.card .media { margin-bottom: 16px; }
.card .media img { transition: transform .6s var(--ease); }
.card:hover .media img { transform: scale(1.04); }
.card-list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--body); }
.card-list li { position: relative; padding-left: 16px; }
.card-list li::before { content: ''; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--point); }
.card-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.card-tags li { font-variant-numeric: tabular-nums; font-size: 12px; line-height: 1; padding: 7px 10px; border-radius: var(--r-chip); background: var(--gray); color: var(--body-strong); }
.card-case { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; padding: 16px 18px; border-radius: var(--r-card); background: var(--gray); font-size: 14px; line-height: 1.55; color: var(--ink); text-decoration: none; transition: background .2s; }
.card-case:hover { background: #e9edf3; }
.card-case b { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--point); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.stat { display: flex; flex-direction: column-reverse; gap: 8px; padding: 32px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-strong); }
.stat-num { font-size: clamp(48px, 5.4vw, 76px); font-weight: 560; letter-spacing: -.045em; line-height: 1; }
.stat-num span { color: var(--point); }
.stat-unit { font-size: .45em; letter-spacing: -.02em; margin-left: 4px; }
.stat:has(.stat-detail) { justify-content: flex-end; }
.stat-detail { order: -1; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--body); }
.stat-meta { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--point); }
.stat-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.stat-tags li { font-size: 13px; line-height: 1; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-chip); background: #fff; color: var(--body-strong); }
.stat-bar { display: flex; gap: 4px; height: 8px; }
.stat-bar i { border-radius: 4px; background: var(--point); }
.stat-bar i + i { background: #9ccfff; }
.stat-legend { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.stat-legend > span { position: relative; padding-left: 16px; }
.stat-legend b { position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--point); }
.stat-legend span + span b { background: #9ccfff; }
.stat-years { display: flex; align-items: flex-end; gap: 10px; height: 92px; }
.stat-years > span { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.stat-years b { font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; color: var(--ink); }
.stat-years i { display: block; width: 100%; height: calc(var(--v) * 8px); border-radius: 4px 4px 2px 2px; background: var(--point); }
.stat-years em { font-style: normal; font-variant-numeric: tabular-nums; font-size: 11px; color: var(--body); }
.stat-detail a { color: var(--point); text-decoration: none; font-size: 13px; }

/* Clients grid */
.clients-row { display: flex; overflow: hidden; margin-top: 72px; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: #fff;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.clients { display: flex; flex: none; animation: clients-scroll 60s linear infinite; }
.clients-row:hover .clients, .clients-row:focus-within .clients { animation-play-state: paused; }
@keyframes clients-scroll { to { transform: translateX(-100%); } }
.clients li { flex: none; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 220px; min-height: 120px; padding: 32px 28px; border-right: 1px solid var(--line); }
.clients strong { font-size: 18px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.clients span { font-size: 13px; color: var(--body); }
@media (prefers-reduced-motion: reduce) { .clients-row { overflow-x: auto; -webkit-mask-image: none; mask-image: none; } .clients { animation: none; } .clients[aria-hidden] { display: none; } }

/* Flagship case */
.flagship {
  display: grid; grid-template-columns: 1.2fr 1fr; margin-top: 24px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-card); overflow: hidden;
  transition: border-color .2s;
}
.flagship:hover { border-color: var(--ink); }
.flagship .media { aspect-ratio: 16 / 9; border-radius: 0; }
.flagship-body { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 40px; position: relative; }

/* Certification badges */
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.badges li { padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-chip); background: #fff; font-size: 13px; font-weight: 600; color: var(--body-strong); }
.badges + .more { margin-top: 40px; }

/* Formula over media */
.formula { position: absolute; left: 48px; right: 48px; bottom: 44px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); } /* 밝은 일러스트 위 — 왼쪽 아래는 비워 둔 하늘 */
.formula-label { font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--point); }
.formula-eq { font-family: var(--mono); font-size: clamp(15px, 1.9vw, 26px); letter-spacing: -.02em; }
.split-foot { display: flex; justify-content: space-between; align-items: center; gap: 40px; margin-top: 40px; }
.split-foot .body { max-width: 560px; }

/* Closing */
.closing { padding: var(--gap) 0; text-align: center; }
.closing .label { margin-bottom: 32px; }
.closing .actions { justify-content: center; margin-top: 48px; }
.closing:has(.cta-panel) { padding: 120px 0 var(--gap); text-align: left; }
.cta-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px 40px; align-items: center; padding: 88px 72px 48px; border-radius: var(--r-media); background: #d6e7f4; color: var(--ink); } /* 일러스트 배경색에 맞춤 */
.cta-bg { grid-column: 2; grid-row: 1; width: 100%; height: auto; -webkit-mask-image: radial-gradient(closest-side, #000 75%, transparent); mask-image: radial-gradient(closest-side, #000 75%, transparent); } /* 배경색이 패널과 같아 경계가 안 보임 */
.cta-body { grid-column: 1; grid-row: 1; }
.cta-steps, .cta-contact { grid-column: 1 / -1; }
.cta-body, .cta-steps, .cta-contact { position: relative; z-index: 2; }
.cta-panel .label { margin-bottom: 28px; color: var(--point); }
.cta-panel .title { color: var(--ink); max-width: 860px; font-size: clamp(30px, 3vw, 42px); } /* 2열이라 한 단계 작게 — 의도된 2줄 유지 */
.cta-lead { margin-top: 24px; max-width: 540px; font-size: 16px; line-height: 1.75; color: var(--body-strong); }
.cta-panel .actions { justify-content: flex-start; margin-top: 40px; }
.cta-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cta-step { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: var(--r-card); background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.9); backdrop-filter: blur(6px); }
.cta-step b { font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: .02em; color: var(--point); }
.cta-step strong { font-size: 17px; font-weight: 650; letter-spacing: -.02em; color: var(--ink); }
.cta-step span { font-size: 14px; color: var(--body); }
.cta-contact { display: flex; flex-wrap: wrap; gap: 10px; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--body-strong); }
.cta-contact a { color: inherit; text-decoration: none; }
.cta-contact a:hover { color: var(--point); }
@media (max-width: 900px) {
  .closing:has(.cta-panel) { padding: 64px 0 96px; }
  .cta-panel { min-height: 0; gap: 40px; padding: 48px 24px 32px; border-radius: 12px; }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-bg { grid-row: 2; grid-column: 1; max-width: 420px; justify-self: center; }
  .cta-body { grid-row: 1; }
  .cta-steps { grid-template-columns: 1fr; }
}

/* ── Sub pages ────────────────────────── */
.sub-hero { padding-top: 96px; }
.sub-title { margin-top: 24px; font-size: clamp(36px, 4.6vw, 64px); font-weight: 560; letter-spacing: -.05em; line-height: 1.06; }
/* 서브 히어로·서비스 머리: 제목 → 짧은 설명(좁은 폭) → 영상 */
:is(.sub-hero, .svc-head) .sub-title { margin-top: 20px; }
:is(.sub-hero, .svc-head) .lead { margin-top: 28px; max-width: 680px; font-size: 17px; line-height: 1.75; text-wrap: pretty; }
.sub-hero .media { margin-top: 64px; }
.eras { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.era { display: flex; flex-direction: column; gap: 10px; padding: 28px 28px 30px; border-radius: var(--r-card); background: var(--gray); }
.era-years { font-variant-numeric: tabular-nums; font-size: 13px; letter-spacing: .02em; color: var(--point); }
.era-name { font-size: 22px; font-weight: 680; letter-spacing: -.02em; }
.era .body { font-size: 14px; }
.era-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.era-tags li { font-size: 12px; line-height: 1; padding: 7px 10px; border-radius: var(--r-chip); background: #fff; color: var(--body-strong); }
@media (max-width: 900px) { .eras { grid-template-columns: 1fr; } }
.section-dark { background: #eaf3fc; color: var(--ink); margin-top: var(--gap); padding: 120px 0; }
.section-dark .title, .section-dark .label, .section-dark .card-title { color: var(--ink); }
.section-dark .body, .section-dark .lead { color: var(--body); }
.section-dark + .section { padding-top: var(--gap); }

.pain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pain-item { padding-top: 20px; border-top: 1px solid var(--ink); font-size: 17px; font-weight: 520; letter-spacing: -.02em; line-height: 1.5; }

.rows { border-top: 1px solid var(--line-strong); }
.row { display: grid; grid-template-columns: 64px 280px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line-strong); align-items: baseline; }
.row-num { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--point); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chips li { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-chip); font-size: 13px; color: var(--body-strong); }

.record { border-top: 1px solid var(--line-strong); }
.record-item { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line-strong); }
.record-item .point { padding-top: 2px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-strong); counter-reset: step; }
.step { padding: 28px 24px 0 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line-strong); }
.step .card-title { margin: 12px 0 8px; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); border-radius: var(--r-card); overflow: hidden; }
.svc-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 240px; padding: 32px; background: #fff; transition: background .2s; }
.svc-card:hover { background: var(--gray); }

.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
/* 솔루션: '이 제품으로 하는 서비스'는 한 줄 바로가기 */
.sol-related.section { padding-top: 48px; }
.sol-related .link-card { flex-direction: row; align-items: baseline; gap: 16px; padding: 20px 24px; background: #fff; }
.sol-related .link-card::after { content: "→"; margin-left: auto; color: var(--point); }
.link-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--r-card); transition: border-color .2s; }
.link-card:hover { border-color: var(--ink); }

/* 전체 흐름: 밝은 패널 파이프라인 — 흩어진 입력(점선) → 4단계 → 결과(파랑), 아래 운영 띠가 받침 */
.flow { margin: 0; padding: 48px 40px 40px; border-radius: var(--r-media); color: var(--ink);
  background: radial-gradient(90% 120% at 88% 30%, rgba(37, 140, 255, .12), transparent 60%), linear-gradient(180deg, #e2f0fc, #f2f8fe); }
.flow { position: relative; overflow: hidden; }
.flow-row, .flow-base { position: relative; z-index: 1; }
.flow-row { display: grid; grid-template-columns: 112px 1fr 136px; gap: 20px; align-items: stretch; }
.flow-end { position: relative; display: flex; align-items: center; justify-content: center; padding: 16px 14px; border: 1px dashed rgba(37, 140, 255, .4); border-radius: var(--r-card);
  font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; color: var(--body-strong); text-align: center; }
.flow-out { border: 0; background: var(--point); color: #fff; font-size: 16px; font-weight: 700;
  box-shadow: 0 0 0 6px rgba(37, 140, 255, .16), 0 24px 48px -16px rgba(37, 140, 255, .8); }
.flow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.flow-step a { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px 20px; border: 1px solid #cfe0f3; border-radius: var(--r-card);
  background: #fff; transition: border-color .2s, background .2s; }
/* !important: 반복 애니메이션이 테두리·배경을 잡고 있어도 hover·현재 표시는 보이게 */
.flow-step a:hover { border-color: var(--point) !important; background: #f5faff !important; }
/* 카드 사이 연결선 + 흘러가는 데이터 점 */
.flow-step a::after, .flow-out::after { content: ""; position: absolute; left: -20px; top: 50%; width: 20px; height: 2px; background: rgba(37, 140, 255, .35); }
.flow-step a::before, .flow-out::before { content: ""; position: absolute; left: -20px; top: 50%; width: 6px; height: 6px; margin-top: -2px; border-radius: 50%; background: var(--point); box-shadow: 0 0 10px 2px rgba(37, 140, 255, .5); opacity: 0; }
.flow-step.is-current a { border-color: var(--point) !important; box-shadow: 0 0 0 1px var(--point) inset !important; background: #eaf4ff !important; }
.flow .point { font-size: 12px; color: var(--point); }
.flow .card-title { font-size: 16px; color: var(--ink); }
:lang(ko) .flow .card-title { white-space: nowrap; }
.flow-step .body { font-size: 13px; line-height: 1.5; color: var(--body); }
.flow-base { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; margin: 20px 156px 0 132px; padding: 16px 22px; border: 1px solid #cfe0f3; border-radius: var(--r-card); background: #fff; }
.flow-base.is-current { border-color: var(--point); }
.flow-base ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.flow-base a { font-size: 14px; font-weight: 600; color: var(--ink); }
.flow-base a:hover { color: var(--point); }

.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fcard { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-card); }
.section-dark .fcard { background: #fff; border-color: #cfe0f3; }
.fcard-eq { font-family: var(--mono); font-size: 14px; line-height: 1.8; white-space: pre-wrap; padding: 16px 18px; border-radius: var(--r-chip); background: var(--gray); color: var(--ink); }
.section-dark .fcard-eq { background: #f0f6fd; color: var(--ink); }

.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start; }
.prod { border: 1px solid var(--line-strong); border-radius: var(--r-card); background: #fff; scroll-margin-top: calc(var(--hd-h) + 24px); }
.prod summary { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px 28px 24px; cursor: pointer; list-style: none; }
.prod summary::-webkit-details-marker { display: none; }
.prod summary::after { content: "+"; position: absolute; right: 28px; bottom: 24px; font-size: 22px; color: var(--point); transition: transform .2s; }
.prod[open] summary::after { transform: rotate(45deg); }
.prod-body { padding: 0 28px 28px; }
.prod-body ul { display: grid; gap: 8px; margin-top: 12px; }
.prod-body li { position: relative; padding-left: 18px; font-size: 15px; color: var(--body-strong); }
.prod-body li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--point); }
.prod-media { margin: -12px -12px 8px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: #e3ecf8; }
.prod-media img, .prod-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.prod-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.prod-tags span { font-variant-numeric: tabular-nums; font-size: 12px; line-height: 1; padding: 7px 10px; border-radius: var(--r-chip); background: var(--gray); color: var(--body-strong); }
.prod-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.prod-use .label + .body { margin: 8px 0 16px; font-size: 14px; }
.prod-use .body:last-child { margin-bottom: 0; }
.section-gray .flow + .link-cards { margin-top: 48px; }

.timeline { border-top: 1px solid var(--line-strong); }
.tl-year { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 40px 0; border-bottom: 1px solid var(--line-strong); }
.tl-year > h3 { font-size: clamp(40px, 4vw, 56px); font-weight: 560; letter-spacing: -.06em; line-height: 1; }
.tl-list { display: grid; gap: 28px; }
.tl-item { display: flex; flex-direction: column; gap: 6px; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.filter a { padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-chip); font-size: 14px; font-weight: 600; }
.filter a:hover { border-color: var(--ink); }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
/* 한 건뿐인 분야는 카드를 한 줄 전체로 */
.case-grid > .case:only-child { grid-column: 1 / -1; }
.case-grid > .case:only-child > * { max-width: 760px; }
.case { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--line-strong); border-radius: var(--r-card); scroll-margin-top: calc(var(--hd-h) + 24px); }
.case-meta { font-size: 13px; color: var(--body); }
.case .chips { margin-top: 8px; }
.case-group + .case-group { margin-top: 96px; }
.case-group > .label { margin-bottom: 24px; scroll-margin-top: calc(var(--hd-h) + 24px); }

.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.cert { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--r-card); }
.cert img { aspect-ratio: 3 / 4; object-fit: contain; background: var(--gray); border-radius: var(--r-chip); margin-bottom: 8px; }

.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 680; letter-spacing: .02em; }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: #fff; color: var(--ink); }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--point); outline-offset: 1px; border-color: transparent; }
.form-status { grid-column: 1 / -1; font-size: 14px; color: var(--body-strong); }
.hp { position: absolute; left: -9999px; }

/* ── Motion ───────────────────────────── */
/* 첫 화면(히어로)만 한 번 떠오르고, 나머지 구역은 처음부터 보인다 */
.js-reveal :is(.hero, .sub-hero) .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js-reveal :is(.hero, .sub-hero) .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal :is(.hero, .sub-hero) .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ───────────────────────── */
@media (min-width: 1024px) {
  .m-menu { display: none; }
  /* 제목 칸(≈840px)에 들어가면 한 줄로, 넘치면 자연 줄바꿈 — 의도된 2줄인 메인 히어로 h1.display와
     .closing .title-xl(가운데 정렬 CTA)은 .head/.sub-title 밖이라 영향받지 않음 */
  .head .title br { display: none; }
  .head .title br.br-keep { display: inline; }
  .sub-title br { display: none; }
  /* 한 줄에 안 들어가 자연 줄바꿈될 때 마지막 줄에 한 단어만 남는 것을 방지 (지원 브라우저) */
  .head .title, .sub-title { text-wrap: balance; }
  /* .head는 라벨(25%)+본문(1fr) 2열 그리드라 p.body 같은 3번째 형제가 다음 행 1번째 칸(라벨 칸)으로 떨어진다 —
     라벨을 제외한 모든 형제를 2번째 칸에 고정 */
  .head > :not(.label) { grid-column: 2; }
  /* 라벨을 뺀 헤더(서비스·솔루션 구역 안)는 한 칸으로 */
  .head:not(:has(> .label)) { grid-template-columns: 1fr; }
  .head:not(:has(> .label)) > * { grid-column: auto; }
}
@media (max-width: 1023px) {
  :root { --gutter: 40px; --gap: 160px; }
  .hd-nav, .hd-cta, .hd-blog { display: none; }
  .hd-actions { margin-left: auto; }
  .hd-burger { display: inline-flex; }
  .head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  .head > :not(.label) { grid-column: auto; }
  .cards { gap: 20px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); gap: 48px 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-strong); margin-top: 32px; }
  .hero-foot, .split-foot { flex-direction: column; align-items: flex-start; }
  .ft-in { grid-template-columns: 1fr; gap: 48px; }
  .ft-cols { grid-template-columns: repeat(3, 1fr); }
  .pain, .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 64px 1fr; }
  .row > .body { grid-column: 2; }
  .flow-row { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .flow { padding: 28px 20px; }
  .flow-step a::before, .flow-out::before { display: none; }
  .flow-base { margin: 20px 0 0; }
  .fgrid, .prod-grid, .case-grid { grid-template-columns: 1fr; }
  .prod-cols { grid-template-columns: 1fr; gap: 20px; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .tl-year { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 639px) {
  :root { --gutter: 20px; --gap: 120px; }
  .hd-logo .cb-wordmark { font-size: 22px; }
  .media-hero { height: auto; aspect-ratio: 16 / 9; margin-inline: 0; border-radius: 12px; }
  .page-home .media-hero { aspect-ratio: 4 / 5; } /* 홈만 모바일 전용 세로 영상(hero-m) */
  .media-wide { aspect-ratio: 16 / 10; border-radius: 12px; }
  .media-card { border-radius: 12px; }
  .hero { padding-top: 48px; }
  .hero-lead { font-size: 16px; }
  .hero + .section-gray { margin-top: 96px; }
  .br-sm { display: inline; }
  .cards, .cards-4 { grid-template-columns: 1fr; gap: 56px; }
  .section-gray { padding: 96px 0; }
  .formula { left: 24px; right: 24px; bottom: 28px; }
  .clients-row { margin-top: 48px; }
  .clients li { min-width: 170px; padding: 24px 20px; min-height: 100px; }
  .clients strong { font-size: 16px; }
  .flagship { grid-template-columns: 1fr; }
  .flagship-body { padding: 28px; }
  .btn { height: 48px; padding: 0 22px; }
  .ft-cols { grid-template-columns: repeat(2, 1fr); }
  .sub-hero { padding-top: 56px; }
  .pain, .steps, .svc-grid, .flow-steps, .cert-grid, .form { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-strong); margin-top: 24px; }
  .record-item { grid-template-columns: 1fr; gap: 8px; }
  .section-dark { padding: 96px 0; }
}

/* 서비스 한 페이지: 고정 탭 + 서비스 구역 */
.svc-tabs { position: sticky; top: var(--hd-h); z-index: 90; margin-top: 96px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.svc-tabs .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.svc-tabs .wrap::-webkit-scrollbar { display: none; }
.svc-tabs a { flex: none; display: flex; align-items: center; gap: 8px; padding: 18px 16px 16px; font-size: 15px; font-weight: 600; color: var(--body); border-bottom: 2px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s; }
.svc-tabs a:hover { color: var(--ink); }
.svc-tabs a.is-active { color: var(--ink); border-bottom-color: var(--point); }
.svc-block { scroll-margin-top: calc(var(--hd-h) + 58px); padding: 140px 0; }
.svc-block:nth-of-type(even) { background: var(--gray); }
.svc-block .svc-head .media { margin-top: 56px; }
.svc-block .section { padding-top: 104px; }
/* 서비스 안의 소제목은 서비스 제목보다 한 단계 작게 */
.svc-block .section .head { margin-bottom: 40px; }
.svc-block .section .head .title { font-size: clamp(24px, 2.3vw, 32px); }
.svc-block .section-dark { margin-top: 120px; }
.svc-block .section-dark + .section, .svc-block .brag-band + .section { padding-top: 120px; }
.svc-block .section + .brag-band { margin-top: 120px; }
.svc-block:nth-of-type(even) :is(.link-card, .pain-item, .era) { background: #fff; }
.svc-block:nth-of-type(even) .era-tags li { background: var(--gray); }
.svc-tabs + .svc-block { padding-top: 120px; }
.svc-block + .section-gray { margin-top: 0; }
@media (max-width: 900px) {
  .svc-tabs { margin-top: 56px; }
  .svc-tabs a { padding: 14px 12px 12px; font-size: 14px; }
  .svc-block { padding: 88px 0; scroll-margin-top: calc(var(--hd-h) + 50px); }
  .svc-block .section { padding-top: 80px; }
  .svc-block .section-dark, .svc-block .section + .brag-band { margin-top: 80px; }
}
.svc-block .section-gray { margin-top: 80px; padding: 72px 0; }
.svc-block:nth-of-type(even) .section-gray { background: #fff; }
.svc-block > .section-gray:first-child { margin-top: 0; }
.svc-block > .section:first-child { padding-top: 0; }

/* 문의: 연락처 — 정의 목록형 행 */
.ct-list { border-top: 1px solid var(--line-strong); }
.ct-row { display: grid; grid-template-columns: 25% 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line-strong); }
.ct-row dt { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.ct-k { font-size: 17px; font-weight: 680; letter-spacing: -.02em; color: var(--ink); }
.ct-sub { font-size: 13px; color: var(--body); }
.ct-row dd { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ct-row dd .body { font-size: 14px; }
.ct-value { font-size: 20px; font-weight: 650; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
a.ct-value:hover { color: var(--point); }
.ct-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 4px; }
.ct-link { font-size: 14px; font-weight: 600; color: var(--point); }
.ct-link:hover { text-decoration: underline; }
.ct-corp { margin-top: 24px; font-size: 13px; color: var(--body); }
@media (max-width: 639px) { .ct-row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; } }

/* 문의: 시작하는 방법 — 한 방법당 한 행의 비교표 */
.qs-grid { border-top: 1px solid var(--line-strong); }
.qs-card { display: grid; grid-template-columns: 180px repeat(3, minmax(0, 1fr)) 184px; gap: 28px; align-items: start; padding: 36px 0; border-bottom: 1px solid var(--line-strong); }
.qs-name { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.qs-tag { font-size: 12px; font-weight: 600; padding: 5px 8px; border-radius: var(--r-chip); background: rgba(37, 140, 255, .08); color: var(--point); }
.qs-metric { font-size: 40px; font-weight: 560; letter-spacing: -.04em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.qs-metric small { margin-left: 3px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--point); }
.qs-row { display: flex; flex-direction: column; gap: 10px; }
.qs-h { font-size: 13px; font-weight: 680; color: var(--body); }
.qs-row .body { font-size: 14px; color: var(--body-strong); }
.qs-flow { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--body-strong); counter-reset: qs; }
.qs-flow li { position: relative; padding-left: 22px; counter-increment: qs; }
.qs-flow li::before { content: counter(qs); position: absolute; left: 0; font-size: 13px; font-weight: 680; font-variant-numeric: tabular-nums; color: var(--point); }
.qs-get { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--body-strong); }
.qs-get li { position: relative; padding-left: 20px; }
.qs-get li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 9px; height: 5px; border-left: 2px solid var(--point); border-bottom: 2px solid var(--point); transform: rotate(-45deg); }
.qs-cta { justify-self: end; padding-top: 2px; }
@media (max-width: 1100px) {
  .qs-card { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
  .qs-name, .qs-cta { grid-column: 1 / -1; justify-self: start; }
  .qs-name { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
}
@media (max-width: 639px) {
  .qs-card { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; }
  .qs-metric { font-size: 34px; }
}

/* 메인: 구역 앵커 */
.page-home main > [id] { scroll-margin-top: calc(var(--hd-h) + 24px); }

/* 사례: 히어로 아래 분야별 요약 카드 */
.case-fields { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 56px; }
.cf-card { display: flex; flex-direction: column; gap: 8px; padding: 24px 22px; border-radius: var(--r-card); background: #eef5fd; color: var(--ink); transition: background .2s; }
.cf-card:hover { background: #e2eefb; }
.cf-num { min-height: 52px; font-size: 52px; font-weight: 560; letter-spacing: -.05em; line-height: 1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.cf-num small { margin-left: 3px; font-size: 20px; font-weight: 600; color: var(--point); }
/* 건수 대신 대표 고객명을 보여 주는 타일 */
.cf-name { display: flex; align-items: flex-end; font-size: 22px; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; }
.cf-card .card-title { color: var(--ink); }
.cf-card .body { font-size: 13px; line-height: 1.55; color: var(--body); }
.cf-more { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 600; color: var(--point); }
@media (max-width: 1100px) { .case-fields { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .case-fields { grid-template-columns: 1fr 1fr; } .cf-num { min-height: 40px; font-size: 40px; } .cf-name { font-size: 18px; } }

/* 한글 헤딩은 자간을 덜 좁힌다 */
:lang(ko) .display, :lang(ko) .title, :lang(ko) .title-xl { letter-spacing: -.025em; }

/* 홈 실적: 기관별 대표 사업 */
.proof-list { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 32px; margin-top: 88px; }
.proof-list li { display: flex; flex-direction: column; gap: 4px; padding: 20px 0 24px; border-top: 1px solid var(--line-strong); }
.proof-list .pl-field { order: -1; }
.proof-list strong { font-size: 16px; font-weight: 650; color: var(--ink); }
.proof-list .pl-field { font-size: 12px; font-weight: 600; color: var(--point); }
.proof-list .pl-work { font-size: 14px; line-height: 1.55; color: var(--body); }
.proof-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; margin-top: 56px; }
.proof-foot .badges, .proof-foot .more { margin-top: 0; }
@media (max-width: 1023px) { .proof-list { grid-template-columns: 1fr 1fr; margin-top: 64px; } }
@media (max-width: 639px) { .proof-list { grid-template-columns: 1fr; } }

/* 문장 안 강조 단어 */
.hl { color: var(--point); }
.body .hl { font-weight: 650; }
section[aria-labelledby="about-ceo-title"] .body { margin-top: 16px; }
section[aria-labelledby="about-ceo-title"] .point { margin-top: 24px; }
/* 대표 인사: 왼쪽 제목·서명, 오른쪽 본문(읽기 좋은 폭) */
@media (min-width: 1024px) {
  section[aria-labelledby="about-ceo-title"] .wrap { display: grid; grid-template-columns: 4fr 7fr; column-gap: 72px; align-items: start; }
  section[aria-labelledby="about-ceo-title"] .head { grid-column: 1; grid-row: 1 / span 6; position: sticky; top: calc(var(--hd-h) + 80px); margin-bottom: 0; }
  section[aria-labelledby="about-ceo-title"] .head .title { white-space: normal; }
  section[aria-labelledby="about-ceo-title"] .wrap > :not(.head) { grid-column: 2; }
  section[aria-labelledby="about-ceo-title"] .lead { margin-top: 0; font-size: 18px; max-width: none; }
}

/* 라벨을 제목 위에 두는 헤더 (왼쪽 라벨 칸을 쓰지 않음) */
.head.head-stack { grid-template-columns: 1fr; gap: 12px; }
.head.head-stack > * { grid-column: auto; }
@media (min-width: 1024px) { .head.head-stack .title { white-space: nowrap; } }

/* 홈 히어로 h1: PC에서는 한 줄 (글자 크기를 폭에 맞춰 줄임), 모바일은 두 줄 */
@media (min-width: 1024px) { .hero .display { font-size: clamp(40px, 4.3vw, 64px); white-space: nowrap; } }
@media (min-width: 1200px) { .hero-foot { align-items: center; } .hero-lead { max-width: none; white-space: nowrap; } } /* 설명은 한 줄 */
@media (max-width: 639px) { .hero .display { font-size: clamp(28px, 9.1vw, 40px); } }

/* 홈 카드 단계 라벨: 자간 없이 */
.card .card-step { letter-spacing: .02em; }
/* 회사 강점: 폐쇄망 카드를 가로형 대표 카드로 */
.cards-why { grid-template-columns: 1fr; row-gap: 72px; }
.cards-why .card:not(.card-lead) { display: grid; grid-template-columns: minmax(0, 400px) 1fr; column-gap: 64px; row-gap: 12px; grid-template-rows: 1fr repeat(5, auto) 1fr; }
.cards-why .card:not(.card-lead) > .media { grid-column: 1; grid-row: 1 / span 7; margin-bottom: 0; }
.cards-why .card:not(.card-lead) > :not(.media) { grid-column: 2; }
.cards-why .card:not(.card-lead) > .card-title { grid-row: 2; font-size: 22px; }
.cards-why .card:not(.card-lead) > .body { grid-row: 3; }
.cards-why .card:not(.card-lead) > .card-spec { grid-row: 4; }
.cards-why .card:not(.card-lead) > .card-tags { grid-row: 5; }
.cards-why .card:not(.card-lead) > .card-case { grid-row: 6; }
.cards-why .card-lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 400px) 1fr; column-gap: 64px; row-gap: 12px; grid-template-rows: 1fr repeat(5, auto) 1fr; }
.cards-why .card-lead > .media { grid-column: 1; grid-row: 1 / span 7; margin-bottom: 0; }
.cards-why .card-lead > .card-title { grid-row: 2; }
.cards-why .card-lead > .body { grid-row: 3; }
.cards-why .card-lead > .card-spec { grid-row: 4; }
.cards-why .card-lead > .card-tags { grid-row: 5; }
.cards-why .card-lead > .card-case { grid-row: 6; }
.cards-why .card-lead > :not(.media) { grid-column: 2; }
.cards-why .card-lead .card-title { font-size: 26px; }
.cards-why .card-lead > .body { font-size: 17px; }
/* 솔루션: 제품 3종 그룹은 첫 제품을 가로형으로 */
.prod-grid > .prod:first-child:nth-last-child(3) { grid-column: 1 / -1; }
.prod-grid > .prod:first-child:nth-last-child(3) summary { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 40px; row-gap: 14px; grid-template-rows: 1fr auto auto auto auto 1fr; } /* 위아래 1fr 빈 줄로 글을 세로 가운데 */
.prod-grid > .prod:first-child:nth-last-child(3) .prod-media { grid-column: 1; grid-row: 1 / -1; margin: -12px 0 -8px -12px; }
.prod-grid > .prod:first-child:nth-last-child(3) summary > :not(.prod-media) { grid-column: 2; }
.prod-grid > .prod:first-child:nth-last-child(3) summary > .card-title { grid-row: 2; }
.prod-grid > .prod:first-child:nth-last-child(3) summary > .body { grid-row: 3; }
.prod-grid > .prod:first-child:nth-last-child(3) summary > .prod-desc { grid-row: 4; }
.prod-grid > .prod:first-child:nth-last-child(3) summary > .prod-tags { grid-row: 5; margin-top: 6px; }
.prod-grid > .prod:first-child:nth-last-child(3) summary > .card-title { margin-top: 12px; font-size: 26px; letter-spacing: -.03em; }
/* 넓은 대표 카드 — 이미지 옆에 한 줄 소개 + 상세 설명(desc), 세로 가운데 */
.prod-grid > .prod:first-child:nth-last-child(3) summary > .body { font-size: 17px; line-height: 1.6; font-weight: 600; color: var(--ink); }
.prod-desc { font-size: 15px; line-height: 1.75; color: var(--body); }
@media (max-width: 1023px) {
  .cards-why { grid-template-columns: 1fr; }
  .cards-why .card:not(.card-lead), .cards-why .card-lead, .prod-grid > .prod:first-child:nth-last-child(3) summary { display: flex; flex-direction: column; }
  .cards-why .card:not(.card-lead) > .media { margin-bottom: 16px; }
  .cards-why .card-lead > .media { margin-bottom: 16px; }
  .prod-grid > .prod:first-child:nth-last-child(3) .prod-media { margin: -12px -12px 8px; }
}

/* 문의 폼: 개인정보 동의 */
.consent { display: flex; flex-direction: column; gap: 8px; }
.consent-check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.consent-check input { width: 18px; height: 18px; accent-color: var(--point); }
.consent-note { font-size: 13px; line-height: 1.6; color: var(--body); }
.consent-note a, .ft-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* 개인정보처리방침 */
.policy { max-width: 820px; }
.policy h2 { margin-top: 48px; font-size: 20px; font-weight: 680; }
.policy p, .policy li { margin-top: 12px; font-size: 15px; line-height: 1.75; color: var(--body-strong); }
.policy ul { padding-left: 18px; list-style: disc; }
.policy-sec { padding-top: 16px; }
.policy > h2:first-child { margin-top: 0; }

/* 홈 기술: 영역별 타일과 기술 근거 */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; margin-top: 56px; }
.tech-tile { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
.tech-tile :is(video, img) { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--r-media, 12px); background: #e3ecf8; margin-bottom: 10px; transition: transform .4s var(--ease); }
.tech-tile:hover :is(video, img) { transform: translateY(-2px); }
.tech-tile:hover .card-title { color: var(--point); }
.tech-tile .body { font-size: 14px; line-height: 1.6; color: var(--body); }
.tech-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tech-chips span { font-size: 12px; line-height: 1; padding: 7px 10px; border-radius: var(--r-chip); background: var(--gray); color: var(--body-strong); }
.tech-proof { margin-top: 96px; }
.tech-proof ul { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 32px; margin-top: 24px; }
.tech-proof li { border-top: 1px solid var(--line-strong); }
.tech-proof a { display: flex; flex-direction: column; gap: 4px; padding: 20px 0 24px; color: inherit; text-decoration: none; }
.tech-proof em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--point); font-variant-numeric: tabular-nums; }
.tech-proof strong { font-size: 16px; font-weight: 680; color: var(--ink); }
.tech-proof a:hover strong { color: var(--point); }
.tech-proof span { font-size: 14px; line-height: 1.55; color: var(--body); }
#tech .split-foot { margin-top: 48px; }
@media (max-width: 1023px) { .tech-grid { grid-template-columns: 1fr 1fr; } .tech-proof ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .tech-grid, .tech-proof ul { grid-template-columns: 1fr; } }

/* 회사 강점: 항목별 상세 */
.card-spec { display: flex; flex-direction: column; margin-top: 6px; border-top: 1px solid var(--line); }
.card-spec > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.card-spec dt { font-size: 13px; font-weight: 700; color: var(--point); font-variant-numeric: tabular-nums; }
.card-spec dd { font-size: 14px; line-height: 1.6; color: var(--body-strong); }
@media (max-width: 639px) { .card-spec > div { grid-template-columns: 1fr; gap: 2px; } }
.section-gray .tech-chips span { background: #fff; }

/* 영상 없는 서비스 머리(연혁·인증·사례 분야): 왼쪽 제목, 오른쪽 설명 */
@media (min-width: 1024px) {
  .svc-head .wrap:not(:has(> .media)) { display: grid; grid-template-columns: 7fr 5fr; column-gap: 72px; align-items: end; }
  .svc-head .wrap:not(:has(> .media)) > * { grid-column: 1 / -1; }
  .svc-head .wrap:not(:has(> .media)) > :is(.eyebrow, .sub-title) { grid-column: 1; }
  .svc-head .wrap:not(:has(> .media)) > .lead { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; max-width: none; font-size: 16px; }
  .svc-head .wrap:not(:has(> .media)) > .sub-title { font-size: clamp(36px, 3.6vw, 52px); }
}

/* 전체 흐름 애니메이션: 6초마다 빛이 입력 → 01~04 → 결과로 지나감 */
.flow::before { content: ""; position: absolute; inset: -30%; background: radial-gradient(closest-side, rgba(37, 140, 255, .18), transparent); animation: flow-glow 14s ease-in-out infinite alternate; }
.flow::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.flow-row > .flow-end:first-child { animation: flow-in 6s infinite; }
.flow-step a { animation: flow-lit 6s infinite; }
.flow-step a::before, .flow-out::before { animation: flow-dot 6s linear infinite; }
.flow-step:nth-child(1) a, .flow-step:nth-child(1) a::before { animation-delay: .8s; }
.flow-step:nth-child(2) a, .flow-step:nth-child(2) a::before { animation-delay: 1.6s; }
.flow-step:nth-child(3) a, .flow-step:nth-child(3) a::before { animation-delay: 2.4s; }
.flow-step:nth-child(4) a, .flow-step:nth-child(4) a::before { animation-delay: 3.2s; }
.flow-out { animation: flow-done 6s infinite 4s; }
.flow-out::before { animation: flow-dot 6s linear infinite 4s; }
.flow-base::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, transparent, rgba(37, 140, 255, .1), transparent) no-repeat; background-size: 30% 100%; animation: flow-scan 6s linear infinite; pointer-events: none; }
.flow-base { position: relative; overflow: hidden; }
@keyframes flow-glow { from { transform: translate(-18%, -10%); } to { transform: translate(22%, 12%); } }
@keyframes flow-in { 0%, 14%, 100% { border-color: rgba(37,140,255,.4); color: var(--body-strong); } 4% { border-color: var(--point); color: var(--ink); } }
@keyframes flow-lit { 0%, 20%, 100% { border-color: #cfe0f3; background: #fff; box-shadow: none; }
  5% { border-color: var(--point); background: #eaf4ff; box-shadow: 0 0 0 1px var(--point) inset, 0 0 36px -8px rgba(37, 140, 255, .55); } }
@keyframes flow-dot { 0% { opacity: 0; transform: translateX(-4px); } 1% { opacity: 1; } 6% { opacity: 1; transform: translateX(16px); } 8%, 100% { opacity: 0; transform: translateX(16px); } }
@keyframes flow-done { 0%, 30%, 100% { box-shadow: 0 0 0 6px rgba(37, 140, 255, .16), 0 24px 48px -16px rgba(37, 140, 255, .8); }
  6% { box-shadow: 0 0 0 12px rgba(37, 140, 255, .24), 0 0 64px 4px rgba(37, 140, 255, .7); } }
@keyframes flow-scan { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (max-width: 1023px) { .flow-step a::before, .flow-step a::after, .flow-out::before, .flow-out::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .flow::before, .flow-row > .flow-end, .flow-step a, .flow-step a::before, .flow-out, .flow-out::before, .flow-base::after { animation: none; } }

/* 넓은 폭 통일 — 히어로 영상과 같은 가장자리 (CTA 패널은 전 페이지, 나머지는 홈) */
.page-home .media-wide { margin-inline: var(--wide-m); border-radius: var(--r-wide); aspect-ratio: auto; height: min((100vw - 48px) * 9 / 21, 788px); }
.page-home .media-wide .formula { left: max(32px, calc(var(--wrap-left) - var(--wide-left))); }
.page-home .tech-grid, .page-home .cards-4, .page-home .hero .clients-row, .cards-why { margin-inline: var(--wide-m); }
.cta-panel { margin-inline: var(--wide-m); border-radius: var(--r-wide); padding-inline: max(48px, calc(var(--wrap-left) - var(--wide-left))); }
@media (max-width: 639px) {
  .page-home .media-wide { height: auto; aspect-ratio: 16 / 10; margin-inline: 0; border-radius: 12px; }
  .page-home .tech-grid, .page-home .cards-4, .page-home .hero .clients-row, .cards-why { margin-inline: 0; }
  .cta-panel { margin-inline: 0; border-radius: 12px; padding-inline: 24px; }
}

/* 메인 — 아이소메트릭 일러스트 레이아웃 (히어로 밴드 · 원형 인트로 · 왼쪽 고정 + 번호 카드) */
.hero-ms { padding-top: 0; }
.hero-band { background: linear-gradient(135deg, #cdeefa 0%, #def5fd 100%); } /* 일러스트 배경색(#cdeefa)에 맞춤 */
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 48px; padding-block: 48px; }
.hero-art { margin-right: -48px; }
.hero-ms .display { font-size: clamp(32px, 3.5vw, 52px); font-weight: 600; letter-spacing: -.035em; line-height: 1.06; margin-top: 20px; }
/* 히어로 문구: 가는 선 라벨 · 이탤릭 세리프 강조 단어 · 화살표 버튼 · 숫자 근거 줄 */
.hero-ms .eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; letter-spacing: .01em; color: var(--body-strong); }
.hero-ms .eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .5; }
.hero-ms .actions .btn { height: 50px; }
.hero-ms .actions .btn-dark { gap: 10px; padding: 0 22px 0 26px; box-shadow: 0 10px 24px -12px rgba(17, 24, 39, .55); }
.btn-arrow { flex-shrink: 0; transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.hero-ms .actions .btn-line { background: rgba(255, 255, 255, .5); border-color: rgba(15, 58, 117, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-ms .actions .btn-line:hover { background: rgba(255, 255, 255, .85); border-color: var(--ink); }
.hero-proof { display: flex; margin-top: 44px; }
.hero-proof li { display: flex; flex-direction: column; gap: 4px; padding: 0 28px; border-left: 1px solid rgba(15, 58, 117, .14); }
.hero-proof li:first-child { padding-left: 0; border-left: 0; }
.hero-proof strong { font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-proof span { font-size: 13px; color: var(--body); }
.js-reveal .hero-ms .hero-proof.reveal { transition-delay: .75s; }
/* 강조 단어 교체 (js/site.js data-rotate) */
.js-reveal .hero-ms .display.is-rotating .hero-word.is-key .hero-char { transition: opacity .4s var(--ease), transform .6s var(--ease), filter .45s var(--ease); transition-delay: calc(var(--j) * 26ms); }
.js-reveal .hero-ms .display.is-rotating .hero-word.is-key.is-leaving .hero-char { opacity: 0; transform: translateY(-.35em); filter: blur(6px); }
.js-reveal .hero-ms .display.is-rotating .hero-word.is-key.is-entering .hero-char { opacity: 0; transform: translateY(.35em); filter: blur(6px); transition: none; }
/* 단어에 맞춰 바뀌는 설명 문장 — 모든 문장을 한 칸에 겹쳐 두어 높이가 변하지 않는다 */
.hero-ms .hero-lead { display: grid; white-space: normal; max-width: 520px; }
.hero-swap { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); filter: blur(4px); transition: opacity .6s var(--ease), transform .7s var(--ease), filter .6s var(--ease); }
.hero-swap.is-on { opacity: 1; transform: none; filter: none; transition-delay: .35s; }
/* 진행 막대: 지금 단어가 몇 번째인지, 다음으로 넘어가기까지 차오른다 */
.hero-steps { display: none; gap: 6px; margin: -16px 0 32px; }
.is-cycling .hero-steps { display: flex; }
.hero-steps i { position: relative; width: 28px; height: 2px; border-radius: 2px; background: rgba(15, 58, 117, .14); overflow: hidden; }
.hero-steps i::after { content: ''; position: absolute; inset: 0; background: #1677e8; transform: scaleX(0); transform-origin: left; }
.hero-steps i.is-on::after { animation: hero-step 4.2s linear forwards; }
@keyframes hero-step { to { transform: scaleX(1); } }
@media (max-width: 639px) { .hero-proof { margin-top: 32px; } .hero-proof li { padding: 0 16px; } .hero-proof strong { font-size: 24px; } .hero-proof span { font-size: 12px; } }
.hero-ms .hero-lead { margin: 24px 0 36px; font-size: 17px; color: var(--body); }
@media (max-width: 639px) { .hero-ms .hero-lead { font-size: 16px; } }
.hero-art img { width: 100%; height: auto; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }
.hero-ms .clients-row { margin-top: 0; }
/* 메인 히어로 등장: 문구 순차 등장 · 제목 줄 마스크 · 일러스트 확대 후 천천히 떠 있기 · 배경 빛 이동 */
.hero-band { position: relative; overflow: hidden; isolation: isolate; }
.hero-band::before { content: ''; position: absolute; inset: -25%; z-index: -1; pointer-events: none;
  background: radial-gradient(38% 48% at 22% 32%, rgba(255, 255, 255, .75), transparent 70%), radial-gradient(34% 44% at 78% 68%, rgba(37, 140, 255, .16), transparent 70%);
  animation: hero-glow 16s ease-in-out infinite alternate; }
.hero-line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-line > span { display: block; }
.js-reveal .hero-ms .display.reveal { opacity: 1; transform: none; }
.js-reveal .hero-ms .hero-line > span { transform: translateY(110%); transition: transform 1.1s var(--ease); }
.js-reveal .hero-ms .display.is-in .hero-line > span { transform: none; transition-delay: .1s; }
.js-reveal .hero-ms .display.is-in .hero-line + .hero-line > span { transition-delay: .24s; }
.js-reveal .hero-ms .hero-lead.reveal { transition-delay: .45s; }
.js-reveal .hero-ms .actions.reveal { transition-delay: .6s; }
.js-reveal .hero-ms .hero-art.reveal { transform: scale(.94); transition-duration: 1.4s; transition-delay: .2s; }
.js-reveal .hero-ms .hero-art.reveal.is-in { transform: none; }
.hero-float img { display: block; }
.hero-float { position: relative; display: block; }
@keyframes hero-glow { to { transform: translate(8%, -6%) scale(1.08); } }
/* 제목 글자 단위 등장 (js/site.js가 글자를 나눔) — 흐림에서 또렷하게, 마지막 단어에 밑줄 */
.hero-word { display: inline-block; white-space: nowrap; }
.hero-char { display: inline-block; }
.js-reveal .hero-ms .display.is-split .hero-line { overflow: visible; }
.js-reveal .hero-ms .display.is-split .hero-line > span { transform: none; transition: none; }
.js-reveal .hero-ms .display.is-split .hero-char { opacity: 0; transform: translateY(.3em); filter: blur(6px);
  transition: opacity .7s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--i) * 22ms + .15s); }
.js-reveal .hero-ms .display.is-split.is-in .hero-char { opacity: 1; transform: none; filter: none; }
.hero-word.is-key { color: #1677e8; } /* --point는 하늘색 배경 위 큰 글자 대비(3:1)에 못 미쳐 한 단계 진하게 */
/* 커서를 따라 점 격자와 빛이 드러남 */
.hero-band::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .55), transparent 70%), radial-gradient(rgba(15, 58, 117, .22) 1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), #000, transparent 75%); mask-image: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), #000, transparent 75%); }
.hero-band.is-hover::after { opacity: 1; }
/* 일러스트: 커서 방향으로 시차 이동 + 떠오르는 빛 입자 */
.hero-art { position: relative; }
.hero-tilt { display: block; } /* 커서 시차 이동 (js/site.js) — 3D 회전은 위 글자를 흐리게 해서 쓰지 않음 */
/* 주 버튼에 빛이 한 번 지나감 */
.hero-ms .actions .btn-dark { position: relative; overflow: hidden; }
.hero-ms .actions .btn-dark::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); }
.hero-ms .actions.is-in .btn-dark::after { animation: hero-shine 1.1s var(--ease) 1.6s; }
.hero-ms .actions .btn-dark:hover::after { animation: hero-shine .9s var(--ease); }
@keyframes hero-shine { to { left: 130%; } }
/* 히어로 일러스트는 덜 붐비게 — 파일 칩·빛 입자 없이, 작업 카드는 에이전트 실행·답변 두 장만 */
.hs-chips, .hs-card-extra { display: none; }
/* 일러스트 위 움직임 레이어 (site/partials/hero-scene.html) — 일러스트가 실제로 일하는 장면처럼 */
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; text-rendering: geometricPrecision; opacity: 0; transition: opacity 1s var(--ease) 1s; }
.hero-art.is-in .hero-scene { opacity: 1; }
.hero-scene * { transform-box: fill-box; transform-origin: center; }
.hs-links use { fill: none; stroke: #4aa8ff; stroke-opacity: .55; stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; animation: hs-dash 1.2s linear infinite; }
.hs-packets circle { fill: #2f9bff; }
.hs-code rect { fill: #4aa8ff; opacity: 0; animation: hs-rise 2.8s ease-out infinite; }
.hs-code rect:nth-child(2) { animation-delay: .7s; }
.hs-code rect:nth-child(3) { animation-delay: 1.4s; }
.hs-code rect:nth-child(4) { animation-delay: 2.1s; }
.hs-spin { fill: none; stroke: #2f9bff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 30 90; animation: hs-rot 2.4s linear infinite; }
.hs-spin-rev { stroke-dasharray: 22 85; animation-duration: 3.2s; animation-direction: reverse; }
.hs-led { fill: #3ddc84; filter: drop-shadow(0 0 4px #3ddc84); animation: hs-led 1.6s steps(2, jump-none) infinite; }
.hs-led-b { animation-delay: .8s; }
.hs-eyes circle { fill: #6ff6ff; animation: hs-eye 3s ease-in-out infinite; }
.hs-lid { fill: #142336; transform: rotate(29deg) scaleY(0); animation: hs-blink 4.5s ease-in-out infinite; }
.hs-ripple circle { fill: none; stroke: #3ff0ff; stroke-width: 2.5; opacity: 0; animation: hs-ripple 2.6s ease-out infinite; }
.hs-ripple circle + circle { animation-delay: 1.3s; }
.hs-card > rect:first-child { fill: rgba(255, 255, 255, .95); stroke: #fff; stroke-width: 1.5; }
.hs-card text { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 27px; font-weight: 600; fill: #334155; }
.hs-card .hs-title { font-family: inherit; font-size: 23px; font-weight: 700; letter-spacing: .04em; fill: #0f3a75; } /* 글자 폭은 hero-scene.html의 textLength로 고정 — 글꼴·최소 글자 크기와 무관하게 카드 안에 */
.hs-live { fill: #22c55e; animation: hs-led 1.2s ease-in-out infinite; }
.hs-row path { fill: none; stroke: #22c55e; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.hs-row text { opacity: .35; }
.hs-row-1 path { animation: hs-check-1 6s ease infinite; } .hs-row-1 text { animation: hs-text-1 6s ease infinite; }
.hs-row-2 path { animation: hs-check-2 6s ease infinite; } .hs-row-2 text { animation: hs-text-2 6s ease infinite; }
.hs-row-3 path { animation: hs-check-3 6s ease infinite; } .hs-row-3 text { animation: hs-text-3 6s ease infinite; }
.hs-line { fill: #cbd8e8; animation: hs-line 1.8s ease-in-out infinite alternate; transform-origin: left; }
.hs-track { fill: #e3edf8; }
.hs-bar { fill: #2f9bff; transform-origin: left; animation: hs-bar 3.2s cubic-bezier(.5, 0, .3, 1) infinite; }
@media (max-width: 639px) { .hs-card, .hs-chips, .hs-links use[href="#hs-p4"], .hs-links use[href="#hs-p5"] { display: none; } }
.hs-chips rect { fill: rgba(255, 255, 255, .92); stroke: #d6e6f7; stroke-width: 1.5; }
.hs-chips text { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 25px; font-weight: 700; fill: #0f3a75; }
.hs-pages g { opacity: 0; animation: hs-page 3.6s ease-out infinite; }
.hs-pages g:nth-child(2) { animation-delay: 1.2s; }
.hs-pages g:nth-child(3) { animation-delay: 2.4s; }
.hs-pages rect { fill: #fff; stroke: #9ccbff; stroke-width: 1.5; }
.hs-pages path { stroke: #9ccbff; stroke-width: 2; stroke-linecap: round; }
.hs-bars rect { fill: #4aa8ff; transform-origin: bottom; animation: hs-eq 1.6s ease-in-out infinite alternate; }
.hs-bars rect:nth-child(2n) { fill: #93c9ff; animation-duration: 1.2s; }
.hs-bars rect:nth-child(3n) { animation-duration: 2s; animation-delay: -.6s; }
.hs-bars rect:nth-child(4n+1) { animation-delay: -1s; }
.hs-type { fill: #cbd8e8; transform-origin: left; transform: scaleX(0); }
.hs-type-1 { animation: hs-type-1 5s ease infinite; }
.hs-type-2 { animation: hs-type-2 5s ease infinite; }
.hs-type-3 { animation: hs-type-3 5s ease infinite; }
.hs-src { opacity: 0; animation: hs-src 5s ease infinite; }
.hs-src-2 { animation-name: hs-src-2; }
.hs-src rect { fill: #e8f2ff; stroke: #2f9bff; stroke-width: 1.5; }
.hs-src text { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; font-weight: 700; fill: #2f9bff; }
@keyframes hs-page { 0% { opacity: 0; transform: translateY(0) rotate(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-120px) rotate(-12deg); } }
@keyframes hs-eq { 0% { transform: scaleY(.25); } 100% { transform: scaleY(1); } }
@keyframes hs-type-1 { 0% { transform: scaleX(0); } 18%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes hs-type-2 { 0%, 18% { transform: scaleX(0); } 34%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes hs-type-3 { 0%, 34% { transform: scaleX(0); } 46%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes hs-src { 0%, 50% { opacity: 0; transform: scale(.6); } 56%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes hs-src-2 { 0%, 58% { opacity: 0; transform: scale(.6); } 64%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes hs-dash { to { stroke-dashoffset: -22; } }
@keyframes hs-rise { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translateY(-70px); } }
@keyframes hs-rot { to { transform: rotate(360deg); } }
@keyframes hs-led { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes hs-eye { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes hs-blink { 0%, 90%, 100% { transform: rotate(29deg) scaleY(0); } 93%, 95% { transform: rotate(29deg) scaleY(1); } }
@keyframes hs-ripple { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes hs-check-1 { 0%, 12% { stroke-dashoffset: 30; } 20%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 30; } }
@keyframes hs-check-2 { 0%, 32% { stroke-dashoffset: 30; } 40%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 30; } }
@keyframes hs-check-3 { 0%, 52% { stroke-dashoffset: 30; } 60%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 30; } }
@keyframes hs-text-1 { 0%, 100% { opacity: .35; } 4%, 92% { opacity: 1; } }
@keyframes hs-text-2 { 0%, 22%, 100% { opacity: .35; } 26%, 92% { opacity: 1; } }
@keyframes hs-text-3 { 0%, 42%, 100% { opacity: .35; } 46%, 92% { opacity: 1; } }
@keyframes hs-line { from { transform: scaleX(.4); } to { transform: scaleX(1); } }
@keyframes hs-bar { 0% { transform: scaleX(0); } 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-band::before, .hero-ms .actions .btn-dark::after { animation: none; }
  .hero-scene { display: none; }
  .js-reveal .hero-ms .hero-line > span, .js-reveal .hero-ms .hero-art.reveal { transform: none; transition: none; }
}
.hero-ms + .intro { padding-top: 160px; }
/* 서브페이지 상단도 같은 밴드 (문구 왼쪽 · 일러스트 오른쪽) */
.sub-band { padding-top: 0; }
.sub-band .sub-title { font-size: clamp(32px, 3.6vw, 52px); }
.sub-band .hero-body .lead { max-width: 560px; }
.sub-band > .wrap { margin-top: 56px; }
.sub-band:not(:has(> .wrap)) + .svc-tabs { margin-top: 0; border-top: 0; } /* 사례처럼 밴드 아래 카드가 있으면 원래 간격 유지 */
/* 인트로: 왼쪽 큰 일러스트 · 오른쪽 제목 + 문제/답 대비 */
.intro-grid { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 80px; }
.intro-art { aspect-ratio: 1; border-radius: var(--r-media); overflow: hidden; background: #dfe8fb; }
.intro-art img { width: 100%; height: 100%; object-fit: cover; }
.intro-text { display: flex; flex-direction: column; gap: 20px; }
.intro-title { font-size: clamp(28px, 2.5vw, 36px); line-height: 1.3; text-wrap: balance; } /* 다른 구역 제목보다 문장이 길어 한 단계 작게 */
.intro-title em { font-style: normal; color: var(--point); }
/* 문제 → 답: 다른 구역과 같은 구분선·라벨·칩으로 */
.intro-pair { margin-top: 12px; }
.intro-row { display: grid; gap: 10px; padding: 24px 0; border-top: 1px solid var(--line-strong); }
.intro-row dt { font-size: 14px; font-weight: 700; color: var(--body); }
.is-answer dt { color: var(--point); }
.intro-body { font-size: 16px; line-height: 1.7; color: var(--body); }
.intro-strong { font-size: 17px; line-height: 1.65; font-weight: 680; color: var(--ink); }
.intro-body, .intro-strong { text-wrap: pretty; }
.intro-row .tech-chips, .intro-row .head-points { margin-top: 4px; }
.section-blue { background: #f0f4f9; }
.core { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.core-head { position: sticky; top: calc(var(--hd-h) + 48px); display: flex; flex-direction: column; gap: 20px; }
.core-label { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--point); }
.core-head .head-points, .intro .head-points { display: flex; flex-wrap: wrap; gap: 8px; }
.core-head .head-points li, .intro .head-points li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: var(--body-strong); }
.core-head .head-points li::before, .intro .head-points li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--point); }
.core-list { display: flex; flex-direction: column; gap: 112px; }
.core-item a { display: flex; flex-direction: column; align-items: flex-start; }
.core-art { width: 100%; aspect-ratio: 1536 / 832; border-radius: var(--r-media); overflow: hidden; background: #e3ecf8; }
.core-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.core-item a:hover .core-art img { transform: scale(1.03); }
.core-num { display: grid; place-items: center; width: 40px; height: 40px; margin: 32px 0 20px; border-radius: 50%; background: #0f3a75; color: #fff; font-size: 15px; font-weight: 700; }
.core-title { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.core-sub { margin: 8px 0 14px; font-size: 14px; font-weight: 700; color: var(--point); }
.section-blue + .section { padding-top: var(--gap); }
@media (max-width: 1023px) {
  .hero-grid, .core, .intro-grid { grid-template-columns: 1fr; }
  .intro-grid { gap: 48px; }
  .intro-art { width: min(480px, 100%); }
  .core-head { position: static; }
  .core-list { gap: 72px; }
}
@media (max-width: 639px) {
  .hero-grid { padding-block: 48px 40px; gap: 32px; }
  .hero-art { margin-right: 0; }
  .hero-ms + .intro { padding-top: 96px; }
  .intro-title br { display: none; }
  .intro-body, .intro-strong { font-size: 15px; }
}
