/* CNBSYSTEM site.css — v2 (2026-07)
   레이아웃 유형 8종: shader hero / bento / flow rail / stat band /
   real table / split / logo wall / fact block. 연속 두 섹션 동일 유형 금지(설계 문서 §5). */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: var(--fw-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: keep-all;      /* 한글 단어 중간 줄바꿈 방지 — 전역 상속 (stat·배지·표 셀 포함) */
  overflow-wrap: break-word; /* 긴 라틴 토큰(URL 등)의 오버플로 방지 */
}
::selection { background: var(--accent); color: var(--bg-deep); }
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--accent); color: var(--bg-deep);
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-weight: var(--fw-medium); text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus-visible { top: 12px; }

.wrap {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--wrap-pad);
}

h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: var(--fw-display);
  letter-spacing: -0.035em;
  line-height: var(--lh-tight);
  margin: 0 0 0.55em;
}
/* 고아 줄바꿈 방지 — 제목·리드는 줄 균형, 본문·표 셀은 마지막 줄 고아 단어 회피 (미지원 브라우저는 무해하게 무시) */
p, li, dd, th, td, caption, figcaption { text-wrap: pretty; }
h1, h2, h3, .section-head p { text-wrap: balance; }
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
b, strong { color: var(--text-primary); font-weight: var(--fw-medium); }

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--text-secondary);
  max-width: 70ch;
}
.section-head { max-width: 920px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

section { padding-block: var(--section-y); }
section.tinted {
  background: linear-gradient(180deg, transparent, var(--accent-soft) 18%, var(--accent-soft) 82%, transparent);
}
section.deep { background: var(--bg-deep); }

/* ---------- Header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 9, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand-sub {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600;
}
nav.gnb { display: flex; gap: 4px; }
nav.gnb a {
  padding: 9px 15px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text-secondary);
  font-size: 0.94rem; font-weight: var(--fw-medium);
  transition: color 0.15s ease, background 0.15s ease;
}
nav.gnb a:hover { color: var(--text-primary); background: rgba(148, 170, 210, 0.1); }
nav.gnb a[aria-current="page"] {
  color: var(--text-primary);
  background: var(--accent-soft);
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: var(--radius-sm) var(--radius-sm) 2px 2px;
}
.menu-button {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-button span {
  display: block; height: 2px; background: var(--text-primary); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (shader) ---------- */
.hero {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: min(88vh, 860px);
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}
/* 서브 히어로: 상단 정렬 + 고정 바닥값.
   상단 정렬이 아니면 h1/lead 줄 수만큼 시작 위치가 밀리고,
   바닥값이 뷰포트 비례(52vh)면 콘텐츠가 바닥을 넘는 페이지(ai의 2줄 h1 등)만 높아진다.
   가장 긴 콘텐츠(ai, 340~1920px 폭 스윕 실측 최대 523.24px)를 여유 있게 덮는
   고정값이라야 전 페이지 높이가 같아진다. 히어로 카피를 늘리면 재실측할 것. */
.hero.sub { min-height: 560px; align-items: flex-start; }
.shader-host {
  position: absolute; inset: 0; z-index: -2;
  /* CSS 폴백 그라디언트 — 셰이더는 progressive enhancement로 이 위에 마운트된다 */
  background:
    radial-gradient(120% 90% at 15% 0%, var(--accent-soft), transparent 60%),
    radial-gradient(90% 70% at 85% 100%, var(--accent-soft), transparent 55%),
    linear-gradient(165deg, var(--bg-raise), var(--bg-deep) 75%);
}
.shader-host canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  /* 텍스트 가독성 + 다음 섹션으로의 페이드 */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6, 11, 22, 0.25), rgba(6, 11, 22, 0.55) 55%, var(--bg-base));
}
.hero .wrap { padding-block: clamp(90px, 12vh, 150px) clamp(56px, 8vh, 96px); width: 100%; }
.hero.sub .wrap { padding-block: clamp(70px, 9vh, 110px) clamp(40px, 6vh, 64px); }
.hero .lead { font-size: clamp(1.1rem, 1.7vw, 1.42rem); max-width: 62ch; }
.hero h1 { max-width: 20ch; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.chip {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.82rem; font-weight: var(--fw-medium);
  color: var(--text-secondary);
  background: rgba(6, 11, 22, 0.45);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 11px 24px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: rgba(6, 11, 22, 0.5);
  color: var(--text-primary); font-weight: var(--fw-medium); font-size: 0.97rem;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.button:hover { border-color: var(--accent); transform: translateY(-1px); }
.button.primary {
  background: var(--accent); border-color: var(--accent); color: var(--bg-deep);
}
.button.primary:hover { filter: brightness(1.1); }

/* ---------- Stat band ---------- */
.stat-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  padding: clamp(30px, 4vw, 44px) clamp(26px, 4vw, 44px);
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, var(--accent-soft), transparent 65%);
  border-radius: var(--radius-lg);
}
.stat b {
  display: block;
  font-size: var(--fs-stat); font-weight: 740;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em; line-height: 1.05;
  color: var(--text-primary);
  text-wrap: balance; /* 두 줄로 접힐 때 고아 토큰 방지 */
}
.stat b em { font-style: normal; color: var(--accent); }
.stat .stat-label {
  display: block; margin-top: 10px;
  font-size: var(--fs-h4); font-weight: var(--fw-medium);
  color: var(--text-primary);
}
.stat span { display: block; margin-top: 8px; font-size: var(--fs-small); color: var(--text-muted); text-wrap: balance; }
.stat .stat-label + span { margin-top: 4px; }
/* 데스크톱 컬럼 구분선 — 행 첫 칸은 제외(2열 변형/축소 구간은 미디어쿼리에서 재조정) */
.stat-band .stat + .stat { border-left: 1px solid var(--line-strong); padding-left: clamp(20px, 2.4vw, 28px); }
.stat-band.cols-2 .stat:nth-child(odd) { border-left: 0; padding-left: 0; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
/* 균등 2열 벤토 — 4카드를 데스크톱/태블릿 모두 5:5로. 카드에 span-* 클래스를 붙이지 않는 것이 전제다.
   1121px 이상은 아래 두 줄이 6열을 2열로 바꾸고, 721~1120px는 기존 .bento 규칙의
   :not(.span-6):not(.span-4)가 특이성 우위로 span 1을, 720px 이하는 모바일 규칙이 span 2(=1줄 1개)를 준다. */
.bento.even { grid-template-columns: repeat(2, 1fr); }
.bento.even > * { grid-column: span 1; }
.tile {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tile:hover { border-color: var(--accent-line); }
a.tile { display: block; text-decoration: none; }
a.tile:hover { transform: translateY(-2px); }
a.tile .tile-more { color: var(--accent); font-size: var(--fs-small); font-weight: var(--fw-medium); }
.tile.feature {
  background:
    radial-gradient(90% 100% at 100% 0%, var(--accent-soft), transparent 55%),
    var(--surface);
}
.tile .icon {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line);
}
.tile .icon svg { width: 22px; height: 22px; }

/* ---------- Badges ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.badge {
  display: inline-block; padding: 4px 10px;
  border-radius: 999px; font-size: 0.72rem; font-weight: 650;
  letter-spacing: 0.06em;
  border: 1px solid var(--accent-line);
  color: var(--accent); background: var(--accent-soft);
}
.badge.release { color: var(--badge-release); border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.1); }
.badge.planned { color: var(--badge-planned); border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.1); }
.badge.rnd { color: var(--badge-rnd); border-color: rgba(167, 139, 250, 0.4); background: rgba(167, 139, 250, 0.1); }
.badge.legacy { color: var(--badge-legacy); border-color: rgba(138, 160, 192, 0.4); background: rgba(138, 160, 192, 0.1); }
.badge + h3 { margin-top: 14px; } /* 단독 배지 아래 제목 (rnd·security 연구영역/관점 카드) */

/* ---------- Product card / Fact block ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } /* ai 12장(플레이스홀더 포함)=3열4행, index 6장=3열2행 */
.product-card {
  padding: clamp(24px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
}
.product-card h3 a { color: inherit; text-decoration: none; }
/* 준비 중 플레이스홀더 — 그리드 정렬용 장식 카드 (1열 구간에서는 숨김) */
.product-card.placeholder {
  border-style: dashed;
  border-left: 1px dashed var(--line-strong);
  background: transparent;
}
.product-card.placeholder h3, .product-card.placeholder p { color: var(--text-muted); }
.fact-list { margin: 18px 0 0; display: grid; gap: 10px; }
.fact-list div {
  display: grid; grid-template-columns: 92px 1fr; gap: 12px;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.fact-list dt { color: var(--text-muted); font-size: var(--fs-small); font-weight: var(--fw-medium); }
.fact-list dd { margin: 0; font-size: var(--fs-small); color: var(--text-secondary); }

.fact-block {
  padding: clamp(24px, 3vw, 32px);
  background: var(--bg-deep);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
}
.fact-block .fact-list div { grid-template-columns: 120px 1fr; }

/* ---------- Flow rail (numbered process) ---------- */
ol.flow {
  --flow-cols: 4;
  counter-reset: flow;
  display: grid; grid-template-columns: repeat(var(--flow-cols), 1fr);
  gap: 14px; margin: 0; padding: 0; list-style: none;
}
ol.flow li {
  counter-increment: flow;
  position: relative;
  padding: 20px 18px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
}
ol.flow li::before {
  content: counter(flow, decimal-leading-zero);
  display: block; margin-bottom: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
ol.flow li::after {
  content: ""; position: absolute; top: 50%; right: -12px;
  width: 10px; height: 10px;
  border-top: 2px solid var(--accent-line); border-right: 2px solid var(--accent-line);
  transform: translateY(-50%) rotate(45deg);
}
ol.flow li:last-child::after { display: none; }
ol.flow b { display: block; margin-bottom: 6px; font-size: 0.95rem; }
ol.flow.start-zero { counter-reset: flow -1; }

/* ---------- Real table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
table.data {
  width: 100%; border-collapse: collapse;
  font-size: var(--fs-small); text-align: left;
}
table.data caption {
  padding: 18px 22px 6px; text-align: left;
  color: var(--text-muted); font-size: 0.8rem;
}
table.data th, table.data td {
  padding: 14px 22px; vertical-align: top;
  border-top: 1px solid var(--line);
}
table.data thead th {
  border-top: 0;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  font-weight: 650; white-space: nowrap;
}
table.data tbody th { color: var(--text-primary); font-weight: var(--fw-medium); white-space: nowrap; }
table.data .hl { background: var(--accent-soft); }
table.data tbody tr:hover { background: rgba(148, 170, 210, 0.05); }

/* ---------- Split ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.split.rev > :first-child { order: 2; }
.split .section-head { margin-bottom: 0; }

/* ---------- Notice / callout ---------- */
/* split 안에서는 .split .section-head의 margin-bottom이 0이라 리드와 붙는다 — 형제 간격 보장
   (split 밖에서는 section-head의 기존 하단 여백(36~56px)과 상쇄되어 변화 없음) */
.section-head + .notice { margin-top: clamp(24px, 3vw, 32px); }
.split > .section-head + .notice { margin-top: 0; } /* split 직접 자식(2열 병렬, 예: 오시는 길)은 세로 중앙정렬 유지 */
.notice {
  padding: 24px 28px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-md);
}
.notice strong { display: block; margin-bottom: 8px; color: var(--accent); font-weight: 700; }
.notice p { font-size: var(--fs-small); }
.source-note { color: var(--text-muted); font-size: 0.8rem; }
.source-note a { color: var(--accent); }

/* 오시는 길 지도 링크 (외부 지도 서비스 바로가기) */
.map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3.5vw, 36px);
}

.callout-band {
  padding: clamp(30px, 4vw, 48px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-line);
  background:
    radial-gradient(100% 140% at 0% 0%, var(--accent-soft), transparent 60%),
    var(--bg-deep);
}
.callout-band h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

/* ---------- Timeline ---------- */
/* ---------- Logo wall (고객사 로고) ---------- */
.logo-wall {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  margin: 0; padding: 0; list-style: none;
}
.logo-wall li {
  display: grid; place-items: center;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.logo-wall img {
  width: 100%; max-width: 200px; height: auto;
  filter: grayscale(1) opacity(0.78);
  transition: filter 0.2s ease;
}
.logo-wall li:hover img { filter: none; } /* 카드에 포커스 가능 요소가 없어 :focus-within은 무효였음 (이슈 #10) */

/* ---------- Reference list (dl) ---------- */
.ref-list { margin: 0; display: grid; gap: 0; }
.ref-list > div {
  display: grid; grid-template-columns: 180px 1fr; gap: 20px;
  padding: 22px 4px; border-top: 1px solid var(--line);
}
.ref-list > div:last-child { border-bottom: 1px solid var(--line); }
.ref-list dt { color: var(--accent); font-weight: 650; }
.ref-list dd { margin: 0; }
.ref-list ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ref-list ul li { color: var(--text-secondary); }

/* ---------- Diagram (flow column, ASCII 대체) ---------- */
ol.diagram { display: grid; gap: 0; justify-items: stretch; list-style: none; margin: 0; padding: 0; }
/* 노드 사이 연결선/화살표 — 장식용 .down div 대신 pseudo로 (이슈 #9: 의미 구조에서 장식 분리) */
.diagram li.node + li.node { margin-top: 26px; position: relative; }
.diagram li.node + li.node::before {
  content: ""; position: absolute; top: -26px; left: 50%;
  width: 2px; height: 26px; background: var(--accent-line);
  transform: translateX(-50%);
}
.diagram li.node + li.node::after {
  content: ""; position: absolute; top: -11px; left: 50%;
  width: 8px; height: 8px;
  border-bottom: 2px solid var(--accent-line); border-right: 2px solid var(--accent-line);
  transform: translateX(-50%) rotate(45deg);
}
.diagram .node {
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
}
.diagram .node b { display: block; margin-bottom: 4px; color: var(--text-primary); }
.diagram .node span { color: var(--text-muted); }

/* ---------- Lists ---------- */
ul.clean { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
ul.clean li { position: relative; padding-left: 20px; font-size: var(--fs-small); }
ul.clean li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent);
}

/* ---------- Footer ---------- */
footer.site-footer {
  margin-top: var(--section-y);
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding-block: 56px 40px;
}
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px; align-items: start;
}
.footer-grid img { height: 26px; width: auto; margin-bottom: 16px; }
.footer-grid p { font-size: var(--fs-small); color: var(--text-muted); max-width: 46ch; }
.footer-links { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 28px; justify-content: end; }
.footer-links a {
  color: var(--text-secondary); text-decoration: none; font-size: var(--fs-small);
}
.footer-links a:hover { color: var(--text-primary); }
.footer-meta {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 0.78rem; color: var(--text-muted);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}

/* ---------- Spacing/변형 유틸리티 (인라인 스타일 대체 — html-validate no-inline-style) ---------- */
.nb { white-space: nowrap; } /* 하이픈 포함 용어(Any-ID, K-RMF, AI-ready)의 중간 줄바꿈 방지 */
.mt-28 { margin-top: 28px; }
.mt-56 { margin-top: 56px; }
.mb-24 { margin-bottom: 24px; }
.mb-28 { margin-bottom: 28px; }
.mb-40 { margin-bottom: 40px; }
.self-center { align-self: center; }
.stat-band.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > *, .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: span 2; }
  .bento > *:not(.span-6):not(.span-4) { grid-column: span 1; }
  /* 2열 구간에서 타일이 홀수면 마지막 타일을 풀폭으로 — dangling 방지(.product-grid와 동일 자가치유) */
  .bento > :last-child:nth-child(odd) { grid-column: span 2; }
  ol.flow { grid-template-columns: repeat(2, 1fr); }
  ol.flow li::after { display: none; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat-band .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  /* 2열 구간에서 카드가 홀수면 마지막 카드를 풀폭으로 — dangling 방지(자가치유) */
  .product-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 920px) {
  nav.gnb {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 2px;
    background: rgba(5, 9, 18, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--wrap-pad) 18px;
  }
  nav.gnb.open { display: flex; }
  nav.gnb a { padding: 13px 15px; }
  .menu-button { display: flex; }
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card.placeholder { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: start; }
}
@media (max-width: 720px) {
  /* 데스크톱용 수동 줄바꿈은 좁은 화면에서 어색한 중간 개행이 되므로 해제 */
  .hero h1 br, .hero .lead br { display: none; }
  .bento > *:not(.span-6):not(.span-4), .bento > * { grid-column: span 2; }
  ol.flow { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .ref-list > div { grid-template-columns: 1fr; gap: 8px; }
  /* real table → 스택 (헤더행 숨기고 data-label 표시) */
  table.data.stack thead { display: none; }
  table.data.stack tbody tr { display: block; border-top: 1px solid var(--line-strong); padding: 8px 0; }
  table.data.stack tbody th, table.data.stack tbody td {
    display: block; border: 0; padding: 6px 22px;
  }
  table.data.stack tbody td::before {
    content: attr(data-label);
    display: block; font-size: 0.72rem; font-weight: 650;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 2px;
  }
}
@media (max-width: 520px) {
  .brand-sub { display: none; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-band { grid-template-columns: 1fr; gap: 20px; }
  /* 1열 스택 구간의 가로 구분선 — cols-2 변형은 2열 유지라 세로 구분선을 그대로 둔다 */
  .stat-band:not(.cols-2) .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-strong); padding-top: 20px; }
  .cta-row .button { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 380px) {
  .tile, .product-card { padding: 18px; }
  .chip { font-size: 0.76rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  /* 셰이더는 shader-init.js가 이 미디어쿼리를 감지해 초기화하지 않는다 */
}

/* ---------- 시안(이슈 #12): 라이트 본문 스킴 컴포넌트 보정 ----------
   다크 하드코딩(rgba 배경) 컴포넌트의 라이트 상태 — 전 사이트 확산 시 역할 토큰으로 승격할 것 */
[data-scheme="light"] .button {
  background: #ffffff;
  color: var(--accent);
}
[data-scheme="light"] .button.primary {
  background: var(--accent);
  color: #ffffff;
}

/* ---------- 시안 v2(이슈 #12): 전면 라이트 + CI 네이비 프레임 ---------- */
body.page-light { background: #f5f7fb; }
body.page-light header.site-header {
  background: #182947; /* CI 네이비 — 라이트 지면 위 표준 기업 헤더 문법 */
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
body.page-light .hero::after {
  /* 라이트 히어로: 다크 오버레이 대신 본문 배경으로의 페이드만 */
  background: linear-gradient(180deg, rgba(245, 247, 251, 0), rgba(245, 247, 251, 0.35) 60%, #f5f7fb);
}
[data-scheme="light"] .chip {
  background: #ffffff;
}
body.page-light footer.site-footer {
  background: #182947;
  border-top: 0;
}
/* 네이비 프레임(#182947)은 구 다크 배경보다 밝아 muted 계열이 AA 미달 — 프레임 전용 텍스트 보정 */
body.page-light header.site-header .brand-sub { color: #9db1d1; }
body.page-light footer.site-footer { --text-secondary: #c3cfe4; --text-muted: #9db1d1; }
/* 푸터 연락처 (이슈 #2) — 사업자 메타와 분리, 링크화 */
.footer-contact { font-size: 0.9rem; }
.footer-contact a { text-decoration: underline; text-underline-offset: 3px; }
/* 연혁 사업 목록 (이슈 #10) — br 나열 대신 의미 있는 목록, 시각은 행 간격만 */
.milestone-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

/* ---------- 이슈 #8: security 정보구조 정리 ---------- */
/* 4열 기본 플로우가 두 줄로 감길 때 행 끝 화살표가 허공을 가리키는 문제 — 행 끝만 숨김
   (6열 등 인라인 --flow-cols 지정 플로우는 한 줄이므로 제외) */
ol.flow.cols-6 { --flow-cols: 6; }
ol.flow:not(.cols-6) li:nth-child(4n):not(:last-child)::after { display: none; }

/* 페이지 내 목차 — 긴 페이지의 섹션 바로가기 */
.page-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.page-toc a {
  display: inline-block; padding: 7px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 0.82rem; font-weight: var(--fw-medium);
  color: var(--text-secondary); background: var(--surface); text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.page-toc a:hover { border-color: var(--accent); color: var(--accent); }

/* 점진 공개 — 긴 표 접기(박스형)와 카드 내 세부 목록 접기(인라인형) */
details.disclosure {
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface);
}
details.disclosure > summary {
  cursor: pointer; padding: 14px 18px;
  font-weight: var(--fw-medium); font-size: var(--fs-small); color: var(--accent);
  list-style: none;
}
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::before { content: "+ "; font-weight: 700; }
details.disclosure[open] > summary::before { content: "- "; }
details.disclosure > .disclosure-body { padding: 0 18px 16px; }
details.disclosure > .disclosure-body .table-scroll { margin: 0; }
details.inline-disclosure > summary {
  cursor: pointer; margin-top: 12px;
  font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--accent);
  list-style: none;
}
details.inline-disclosure > summary::-webkit-details-marker { display: none; }
details.inline-disclosure > summary::before { content: "+ "; font-weight: 700; }
details.inline-disclosure[open] > summary::before { content: "- "; }
