/* BlueRoboWorks — 형태·모션 차용층
   Mind Robotics(mindrobotics.com)의 디자인 컨셉 — 원형 도형 · 알약 칩 · 데이터 점묘 · 깊이 · 윤곽→채움 — 을
   BRW 토큰(색 · 서체)과 내용 그대로 옮긴다. 남의 색 · 서체 · 로고 · 일러스트는 가져오지 않는다.
   규칙: .claude/skills/brw-motion/SKILL.md · 이 파일과 motion.js 를 빼면 이전 표현으로 돌아간다. */

/* ── 0. 토큰 ─────────────────────────────────── */
:root {
  --plane: var(--surf3);   /* 라이트 바탕을 웜 그레이 한 단 아래로 — 흰 면이 떠 보이게. 다크는 tokens.css 가 이긴다 */
  --r-s: 24px; --r-m: 40px; --r-l: 72px;
  --ease-soft: cubic-bezier(.14, 1, .34, 1);     /* 길게 내려앉는 out */
  --ease-swing: cubic-bezier(.645, .045, .355, 1);
  --sheet: clamp(8px, 1.8vw, 28px);
  --on-bright: var(--ink);                         /* 밝은 칩 위 글자 */
}
[data-scheme="dark"] { --on-bright: var(--plane); }
.btn.is-pending { --bg: var(--surf); }
.sec + .sec { border-top: 0; }

/* ── 1. 머리 — 막대 대신 떠 있는 알약 ───────────── */
.hdr.scrolled { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; }
.brand { padding: 7px 0; border-radius: 999px; transition: background-color .4s, padding .6s var(--ease-soft); }
.hdr.scrolled .brand { padding-inline: 16px; background: color-mix(in srgb, var(--surf) 84%, transparent); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); }
nav.main { padding: 4px; gap: 2px; border-radius: 999px; background: color-mix(in srgb, var(--surf) 84%, transparent); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); }
nav.main a { padding: 7px 13px; border-radius: 999px; transition: color .25s, background-color .25s; }
nav.main a::after { display: none; }
nav.main a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
nav.main a.act { background: var(--ink); color: var(--surf); }
.lang, .icon-btn { border-color: transparent; background: color-mix(in srgb, var(--surf) 84%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* ── 2. 꼬리표 — 섹션 번호를 알약 태그로. 들어올 때 왼쪽에서 펼쳐진다 ── */
.kick, .sec .kick, #matching .kick { width: fit-content; align-self: start; padding: 7px 15px 7px 13px; border-radius: 999px; background: var(--surf); color: var(--ink2); }
.kick::after { display: none; }
.mo .kick { clip-path: inset(0 100% 0 0 round 999px); transition: clip-path .7s var(--ease-swing); }
.mo .kick.in { clip-path: inset(0 0 0 0 round 999px); }

/* ── 3. 제목 칩 — 문장·절마다 알약, 마지막 조각(요점)이 짙다. 줄이 바뀌면 줄마다 따로 둥글다 ── */
.title, .stmt, .ct-title,
html:lang(ja) .title, html:lang(zh-CN) .title, html:lang(ja) .stmt, html:lang(zh-CN) .stmt, html:lang(ja) .ct-title, html:lang(zh-CN) .ct-title { line-height: 1.34; }
.chip {
  --cb: var(--surf); --cf: var(--ink);
  padding: 0 .3em; border-radius: 999px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(var(--cb), var(--cb)) no-repeat 0 0 / 100% 100%;
  color: var(--cf);
}
.chip.ink { --cb: var(--ink); --cf: var(--surf); }
[data-scheme="dark"] .chip.pale, .inv .chip.pale { box-shadow: inset 0 0 0 1px var(--rule2); }
.title .chip + .chip, .stmt .chip + .chip, .ct-title .chip + .chip { margin-left: .06em; }
/* 섹션마다 짙음·옅음을 번갈아 — 같은 검은 알약이 연달아 서지 않게 */
#evidence .title .chip.ink, #fit .title .chip.ink { --cb: var(--surf); --cf: var(--ink); }
[data-scheme="dark"] #evidence .title .chip, [data-scheme="dark"] #fit .title .chip { box-shadow: inset 0 0 0 1px var(--rule2); }
/* 펼침 — 면이 왼쪽에서 깔리고 글자색이 뒤따른다 (Mind 의 fan: .6s · 조각마다 간격) */
.mo .chip { background-size: 0% 100%; color: var(--ink); transition: background-size .75s var(--ease-swing) calc(.15s + var(--ci, 0) * .16s), color .3s linear calc(.42s + var(--ci, 0) * .16s); }
.mo .in .chip, .mo .lit .chip { background-size: 100% 100%; color: var(--cf); }
.js .stmt .w, .js .ct-title .w { opacity: .16; }

/* ── 4. 흐름 띠 — 세 기술과 게이트만 칩, 나머지는 먹 글자 ── */
.marquee { border-block: 0; }
.mq-item { color: var(--ink3); -webkit-text-stroke: 0; }
.mq-item.hl { color: var(--ink); }
.mq-chip { --pc: var(--ink); padding: 0 .38em; margin: 0 .12em; border-radius: 999px; background: var(--pc); color: var(--on-bright); }
.mq-chip.fde { --pc: var(--s2); }
.mq-chip.sim { --pc: var(--s4); color: var(--surf); }
.mq-chip.deck { --pc: var(--s3); }
.mq-chip.gate { --pc: var(--ink); color: var(--surf); }

/* ── 5. 면 — 둥근 흰 면 위에 내용. 테두리 대신 바탕과의 명도 차로 나눈다 ── */
.item { padding: 26px 26px 30px; border-radius: var(--r-s); background: var(--surf); }
.item::before { display: none; }
.item h3 { margin-top: 26px; }
.contact .item { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 7%, transparent); } /* 뒤로 흰 도형이 지나가도 면이 갈린다 */
.bnd-list article { padding: 24px 24px 28px; border-top: 0; border-radius: var(--r-s); background: var(--surf); }
.bnd-list h3 { margin-top: 18px; }
.card { border-color: transparent; border-radius: var(--r-s); }
.card:hover { border-color: transparent; }
.card-top .id, .pending { border-radius: 999px; }
.fig-frame { border-color: transparent; border-radius: var(--r-s); background: var(--surf); }
.fig-frame canvas { border-radius: inherit; }
.pl-fig .fig-frame { border-color: transparent; }
.pl-fig .fig-frame::before { left: var(--r-s); }
.corner { display: none; }
.mloop { border-color: transparent; border-radius: var(--r-m); }
.diagram, .res, .honest, .stg.gate { border-radius: var(--r-s); }
.diagram, .res { border-color: transparent; }
.node { border-radius: 16px; }
.meter { border-radius: 20px; border-color: transparent; }
.status { border-color: transparent; background: color-mix(in srgb, var(--surf) 84%, transparent); }
/* 기술 — 어두운 무대를 바탕에서 띄운 큰 둥근 장 */
.sec.inv { margin-inline: var(--sheet); border-radius: var(--r-m); }
.rail { border-radius: 999px; padding: 5px; }
.rail a { border-radius: 999px; padding: 9px 20px 14px; }
/* 진행 알약 — 기둥 안을 지나는 만큼 찬다 (Mind 카드의 진행 바). motion.js 가 --fill 을 쓴다 */
.rail a i { left: 20px; right: 20px; bottom: 6px; width: auto; height: 3px; border-radius: 999px; overflow: hidden; transform: none; opacity: 1; background: color-mix(in srgb, var(--pc) 22%, transparent); }
.rail a.act i, .rail a.past i { transform: none; opacity: 1; }
.rail a i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--pc); transform-origin: 0 50%; transform: scaleX(var(--fill, 0)); }
/* 흐름 — 눈금을 점으로, 지금 단계만 긴 알약 */
.ticks { align-items: center; gap: 7px; }
.ticks li { flex: none; width: 9px; height: 9px; border-radius: 999px; transition: width .7s var(--ease-soft), background-color .4s; }
.ticks li.on:has(+ li:not(.on)), .ticks li.on:last-child { width: 46px; }
/* 바닥 — 정보 줄을 둥근 장으로 */
.ftr { position: relative; border-top: 0; overflow: hidden; }
.ftr .wrap { position: relative; z-index: 1; }
.ft-row { padding: 24px 28px; border-radius: var(--r-s); background: var(--surf); }

/* ── 6. 원형 도형 — 셀(둥근 네모) · 관절(원) · 링크(알약). 흩어져 떠오를 뿐, 모여서 표식을 만들지 않는다 ── */
.shapes { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.shp { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h, var(--w)); background: var(--surf); will-change: translate; }
.shp.cell { border-radius: min(var(--r-l), 24%); }
.shp.joint { border-radius: 50%; }
.shp.link { border-radius: 999px; }
.contact .wrap { z-index: 1; }

.shapes-cv { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.shp3 .shp { visibility: hidden; }   /* 자리 · 깊이 이동은 그대로 — 3D 가 그 자리에 그린다 */

/* ── 7. 데이터 점묘 — 점(아직) · 네모(기록) · 주황 네모(측정됨). ×는 쓰지 않는다: 이 사이트에서 ×는 '실패'다 ── */
.px { position: absolute; left: var(--x); top: var(--y); z-index: 0; pointer-events: none; }
.px svg { display: block; max-width: none; }
.px .d { fill: var(--surf); }
.px .q { fill: color-mix(in srgb, var(--rule2) 55%, var(--plane)); }
.px .m { fill: var(--s2); }
.px .tw { animation: px-tw 3.6s steps(1, end) var(--tw, 0s) infinite; }
@keyframes px-tw { 0%, 100% { opacity: 1; } 50% { opacity: .18; } }

/* ── 8. 윤곽 → 채움 — 큰 글자는 획이 먼저 그려지고 면이 뒤따른다 (Mind 의 워드마크) ── */
/* 정적 Pretendard — 가변 폰트는 자모가 겹친 윤곽을 그대로 그려 획 단계에서 속 선이 보인다 */
.display, .ft-wm-in { font-family: "Pretendard", var(--sans); }
.mo .display .line > span, .js .ready .display .line > span { transform: none; transition: none; }
.mo .display .ch { color: transparent; -webkit-text-stroke: 1.5px transparent; }
.mo .ready .display .ch { animation: ch-draw 1.5s var(--ease-swing) calc(.15s + var(--k) * 45ms) both; }
@keyframes ch-draw {
  0% { color: transparent; -webkit-text-stroke-color: transparent; }
  28% { color: transparent; -webkit-text-stroke-color: var(--ink); }
  64% { color: var(--ink); -webkit-text-stroke-color: var(--ink); }
  100% { color: var(--ink); -webkit-text-stroke-color: transparent; }
}
.ft-wm-in .ch { transition: color .9s var(--ease-soft) calc(.5s + var(--k) * 55ms), -webkit-text-stroke-color .45s linear calc(var(--k) * 55ms); }
.mo .ft-wm:not(.drawn) .ch { color: transparent; -webkit-text-stroke-color: transparent; }

/* 매칭 비네트 — 3D 장면의 가장자리를 흰 장 속으로 풀어 사진을 붙인 느낌을 없앤다 */
.ml-viz { position: relative; flex: none; width: clamp(200px, 23vw, 350px); }
.ml-viz .ml-cv { width: 100%; -webkit-mask-image: radial-gradient(ellipse 52% 52% at 50% 50%, #000 56%, transparent 100%); mask-image: radial-gradient(ellipse 52% 52% at 50% 50%, #000 56%, transparent 100%); }
.ml-tag3 { position: absolute; left: 50%; top: 0; transform: translateX(-50%); display: flex; align-items: center; gap: 3px; padding: 3px 10px 3px 8px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--surf) 90%, transparent); box-shadow: inset 0 0 0 1px var(--rule); font: 600 9.5px/1 var(--mono); color: var(--ink3); }
.ml-tag3 b { font-weight: 600; margin-right: 4px; letter-spacing: .06em; }
.ml-tag3 i { font-style: normal; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--rule2); }
.ml-tag3 i.on { background: var(--ink); color: var(--surf); box-shadow: none; }
.ml-tag3 span { margin-left: 6px; font: 500 11px/1 var(--sans); color: var(--ink2); }
@media (max-width: 1280px) and (min-width: 901px) { .ml-viz { width: min(100%, 30vw, 320px); } }
@media (max-width: 900px) { .ml-viz { width: min(100%, 320px); } }

/* 3D 장면이 맡으면 — §04 단계 장면 · §06 반출 경계 */
.pipe-fig { display: none; margin: 22px 0 0; }
.gl3 .pipe-fig { display: block; }
.pipe-cv { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-s); background: var(--surf); }
.gl3 .counter-wrap { margin-top: clamp(22px, 3vh, 40px); }
.gl3 .counter { display: none; }   /* 단계 번호는 장면 안에 크게 */
.gl3 .ticks { margin-top: 10px; }
.bnd-cv { display: none; width: 100%; aspect-ratio: 21 / 7.4; margin: -10px 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent), linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 82%, transparent), linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-composite: intersect; }
.diagram.gl3 .bnd-cv { display: block; }
.diagram.gl3 .dg-row { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.diagram.gl3 .dg-lists { margin-top: 22px; }
.legend { align-items: center; }
.legend .lg-fig { margin-left: auto; }
@media (max-width: 900px) { .gl3 .pipe-fig { display: none; } .bnd-cv { aspect-ratio: 4 / 3; -webkit-mask-image: none; mask-image: none; } }

/* 장면 등장 — 둥근 창이 열리며 도식이 드러난다 (Mind 의 영상 프레임 열림) */
.mo .pl-fig .fig-frame, .mo .mloop, .mo .diagram, .mo .chart-frame {
  clip-path: inset(9% 11% 9% 11% round 56px);
  transition: clip-path 1.5s var(--ease-soft) .1s, opacity 1s var(--ease) !important;
}
.mo .pl-fig.in .fig-frame, .mo .mloop.in, .mo .diagram.in, .mo .in .chart-frame { clip-path: inset(-24px -24px -96px -24px round 40px); }
.mo .pl-fig .fig-frame canvas, .mo .mloop .ml-viz { transform: scale(1.08); transition: transform 1.8s var(--ease-soft) .1s; }
.mo .pl-fig.in .fig-frame canvas, .mo .mloop.in .ml-viz { transform: none; }
/* 기술 — 어두운 장이 다가오며 화면 가장자리까지 넓어진다. motion.js 가 --sheet 를 쓴다 */
.sec.inv { margin-inline: var(--sheet-live, var(--sheet)); transition: border-radius .3s; }

/* ── 9. 작은 도식 — 글이 말하는 것을 그림이 한 번 더 보인다. 기본 상태가 곧 결론(움직임 줄이기에서 그대로 보임) ── */
.vz { display: block; width: 100%; height: auto; overflow: visible; }
.vz .s { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vz .s3 { fill: none; stroke: var(--ink3); stroke-width: 1.2; stroke-linecap: round; }
.vz .dash { fill: none; stroke: var(--ink3); stroke-width: 1; stroke-dasharray: 3 4; }
.vz .f { fill: var(--ink); }
.vz .trk { fill: var(--rule); }
.vz .trk2 { fill: none; stroke: var(--rule2); stroke-width: 2; stroke-linecap: round; }
.vz .ck { fill: none; stroke: var(--surf); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vz .jig { fill: var(--surf3); stroke: var(--ink2); stroke-width: 1; }
.vz .part { fill: var(--surf); stroke: var(--s2); stroke-width: 1.6; }
.vz .xh { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.vz .beam { fill: var(--ink); opacity: .07; }
.vz .tg { fill: var(--surf2); stroke: var(--rule2); stroke-width: 1; }
.vz .tgi { fill: var(--ink); }
.vz .tgi + text { fill: var(--surf); }
.vz text { font-family: var(--mono); font-size: 9.5px; font-weight: 600; fill: var(--ink2); text-anchor: middle; dominant-baseline: central; }
.vz .hd { fill: none; stroke: var(--s2); stroke-width: 1.5; }
.vz .hdd { fill: var(--s2); }
.vz .qr { fill: var(--surf); stroke: var(--ink3); stroke-width: 1.2; stroke-dasharray: 2.5 2.5; }
.vz .q text { font-size: 10px; fill: var(--ink2); }
.vz-reg .dot { opacity: 0; }
.vz .doc { fill: var(--surf2); stroke: var(--rule2); stroke-width: 1; }
.vz .lay { fill: var(--ink3); }
.vz .ad { fill: var(--s3); }
.vz .hb, .vz .it { fill: var(--ink); }
.vz .ob { fill: var(--ink3); }
.vz .nb { fill: var(--ink); }
.vz .nb.over { fill: var(--crit); }            /* 스크린 탈락 — 판정 색이라 쓴다 */
.vz .thr { fill: none; stroke: var(--ink2); stroke-width: 1.2; stroke-dasharray: 4 4; }
.vz .sg { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.item .vz { margin: 22px 0 4px; max-width: 340px; }
.card .art { width: min(100%, 250px); margin: 34px 0 auto; }

/* 모양 바꾸기는 상자 기준으로 */
.vz .bar, .vz .ok, .vz .part, .vz .su, .vz .rb, .vz .seal, .vz .ob, .vz .nb { transform-box: fill-box; }
.vz .bar, .vz .ob, .vz .nb { transform-origin: 0 50%; }
.vz .ok, .vz .seal { transform-origin: 50% 50%; }
.vz .part { transform-origin: 50% 100%; }
.vz .su, .vz .rb { transform-origin: 50% 100%; }

/* P.01 — 스펙 막대는 요구선을 넘는데, 셀의 부품은 흔들리고 박아 둔 좌표는 그대로 */
.in .vz-spec .bar { animation: vz-grow 1.1s var(--ease-soft) .1s both; }
.in .vz-spec .b2 { animation-delay: .25s; }
.in .vz-spec .ok { animation: vz-pop .5s var(--ease-soft) .95s both; }
.in .vz-spec .o2 { animation-delay: 1.1s; }
.in .vz-spec .part { animation: vz-drift 4.8s ease-in-out 1.2s infinite; }
.in .vz-spec .grip { animation: vz-dip 4.8s var(--ease-swing) 1.2s infinite; }
.in .vz-spec .xh { animation: vz-miss 4.8s linear 1.2s infinite; }
.in .vz-spec .beam { animation: vz-light 4.8s steps(1, end) 1.2s infinite; }
@keyframes vz-grow { from { transform: scaleX(0); } }
@keyframes vz-pop { from { transform: scale(0); opacity: 0; } }
@keyframes vz-drift { 0%, 100% { transform: none; } 22% { transform: translateX(11px) skewX(-8deg); } 48% { transform: translateX(-8px); } 74% { transform: translateX(13px) skewX(6deg); } }
@keyframes vz-dip { 0%, 10%, 34%, 62%, 86%, 100% { transform: none; } 22%, 74% { transform: translateY(24px); } }
@keyframes vz-miss { 0%, 18%, 28%, 70%, 80%, 100% { stroke: var(--ink); } 22%, 74% { stroke: var(--s2); } }
@keyframes vz-light { 0% { opacity: .07; } 30% { opacity: .16; } 55% { opacity: .04; } 80% { opacity: .13; } }

/* P.02 — 로봇은 한 번, 셋업은 품번이 바뀔 때마다 다시 */
.in .vz-cost .head { animation: vz-head 6.4s linear infinite; }
.in .vz-cost .rb { animation: vz-rb 6.4s var(--ease-soft) infinite; }
.in .vz-cost .su.a { animation: vz-suA 6.4s var(--ease-soft) infinite; }
.in .vz-cost .su.b { animation: vz-suB 6.4s var(--ease-soft) infinite; }
.in .vz-cost .su.c { animation: vz-suC 6.4s var(--ease-soft) infinite; }
@keyframes vz-head { 0% { transform: translateX(0); opacity: 1; } 90% { transform: translateX(272px); opacity: 1; } 95%, 100% { transform: translateX(272px); opacity: 0; } }
@keyframes vz-rb { 0% { transform: scaleY(0); } 5%, 92% { transform: none; } 100% { transform: scaleY(0); } }
@keyframes vz-suA { 0%, 8% { transform: scaleY(0); } 15%, 92% { transform: none; } 100% { transform: scaleY(0); } }
@keyframes vz-suB { 0%, 40% { transform: scaleY(0); } 47%, 92% { transform: none; } 100% { transform: scaleY(0); } }
@keyframes vz-suC { 0%, 72% { transform: scaleY(0); } 79%, 92% { transform: none; } 100% { transform: scaleY(0); } }

/* P.03 — 새 품번 D 가 들어오면, 잘 돌던 A·B·C 가 '?' 가 된다 */
.in .vz-reg .new { animation: vz-new 5.2s var(--ease-soft) infinite; }
.in .vz-reg .dot { animation: vz-dot 5.2s linear infinite; }
.in .vz-reg .q { animation: vz-q 5.2s linear infinite; }
.in .vz-reg .row { animation: vz-shake 5.2s linear infinite; }
.in .vz-reg .row:nth-of-type(3) { animation-delay: .12s; }
.in .vz-reg .row:nth-of-type(4) { animation-delay: .24s; }
@keyframes vz-new { 0%, 8% { transform: translateX(46px); opacity: 0; } 20%, 88% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
@keyframes vz-dot { 0%, 26% { opacity: 1; } 32%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes vz-q { 0%, 28% { opacity: 0; } 34%, 88% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes vz-shake { 0%, 32%, 90%, 100% { transform: none; } 38%, 54%, 70% { transform: translateX(1.6px); } 46%, 62%, 78% { transform: translateX(-1.6px); } }

/* §05 — 정책: 기반 위에 어댑터가 얹히고, 해시가 차고, 서명이 찍힌다 */
.in .art-pol .ad { animation: vz-slide .8s var(--ease-soft) .3s both; }
.in .art-pol .hb { animation: vz-fill .25s linear calc(.9s + var(--i) * 70ms) both; }
.in .art-pol .seal { animation: vz-stamp .6s var(--ease-soft) 1.8s both; }
@keyframes vz-slide { from { transform: translateX(-34px); opacity: 0; } }
@keyframes vz-fill { from { fill: var(--rule); } }
@keyframes vz-stamp { from { transform: scale(1.7) rotate(-14deg); opacity: 0; } }
/* 회귀 리포트: 품번마다 구/신 오차 막대 — 하나가 기준선을 넘으면 거른다 */
.in .art-reg .ob { animation: vz-grow .9s var(--ease-soft) calc(.2s + var(--i) * .16s) both; }
.in .art-reg .nb { animation: vz-grow 1.1s var(--ease-soft) calc(.55s + var(--i) * .16s) both; }
.in .art-reg .nb.over { animation: vz-grow 1.1s var(--ease-soft) calc(.55s + var(--i) * .16s) both, vz-turn .35s linear 1.7s both; }
@keyframes vz-turn { from { fill: var(--ink); } }
/* 증거팩: 22항목이 차고 서명이 그어진다 */
.in .art-pack .it { animation: vz-fill .22s linear calc(.2s + var(--i) * 55ms) both; }
.in .art-pack .sg { stroke-dasharray: 1; animation: vz-draw 1.4s var(--ease-swing) 1.5s both; }
@keyframes vz-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.vz-off * { animation-play-state: paused !important; }   /* 화면 밖에서는 멈춘다 — motion.js */

/* ── 10. 비교 — 우리 열은 한 장의 짙은 면 ── */
.cmp { border-top: 0; }
.cmp-row { padding: 0; gap: 0; border-bottom: 0; align-items: stretch; }
.cmp-row > span { padding: 18px 22px; border-bottom: 1px solid var(--rule2); }
.cmp-row > span:first-child { padding-left: 0; }
.cmp-row .us { padding-left: 30px; background: var(--ink); color: var(--surf); border-bottom-color: color-mix(in srgb, var(--surf) 14%, transparent); }
.cmp-h .us { color: var(--surf) !important; border-radius: var(--r-s) var(--r-s) 0 0; padding-top: 24px; }
.cmp-row:last-child .us { border-radius: 0 0 var(--r-s) var(--r-s); border-bottom: 0; padding-bottom: 24px; }
.cmp-row:last-child > span { border-bottom: 0; }
.cmp-row .us::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 10px 2px 0; border-radius: 50%; background: var(--surf); vertical-align: middle; }
.cmp-h .us::before { display: none; }
.cmp-row > span:nth-child(2) { color: var(--ink3); }

/* ── 11. 7단계 — 세로 레일, 단계 번호가 노드, 지금 단계는 흰 장 위에 ── */
.stages { position: relative; }
.stages::before, .stages::after { content: ""; position: absolute; left: 20px; top: 46px; width: 2px; border-radius: 2px; background: var(--rule2); }
.stages::before { bottom: 46px; }
.stages::before, .stages::after { z-index: 0; }   /* 레일은 노드 · 지금 단계 장 아래로 */
.stages::after { height: var(--rail, 0px); background: var(--ink); transition: height .7s var(--ease-soft); }
.stg { position: relative; z-index: 1; isolation: isolate; grid-template-columns: 42px minmax(0, 1fr); gap: 22px; padding: 28px 22px 28px 0; border-top: 0; }
.stg::after { content: ""; position: absolute; z-index: -1; inset: 8px 0 8px -16px; border-radius: var(--r-s); background: var(--surf); opacity: 0; transform: scale(.98); transition: opacity .5s, transform .6s var(--ease-soft); }
.stg.act::after { opacity: 1; transform: none; }
.js .stg { opacity: 1; }
.js .stg > div { opacity: .32; transition: opacity .6s var(--ease-soft); }
.js .stg.act > div, .js .stg.seen > div { opacity: 1; }
.stg:not(.seen):not(.act) .code { color: color-mix(in srgb, var(--ink3) 60%, var(--plane)); }
.stg .code { position: relative; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; background: var(--plane); color: var(--ink3); font-size: 12px; box-shadow: inset 0 0 0 1.5px var(--rule2); transition: background-color .4s, color .4s, box-shadow .4s; }
.stg.seen .code { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.stg.act .code { background: var(--ink); color: var(--surf); box-shadow: none; }
.stg.gate { margin: 18px -28px 18px -16px; padding: 40px 28px 40px 16px; }
.stg.gate::after { display: none; }
.stg.gate .code { background: var(--surf); color: var(--ink); box-shadow: none; border-radius: 12px; }
.stg.twin .code { box-shadow: none; border: 1.5px dashed var(--ink3); background: var(--plane); }

/* ── 12. 판정 · 회사 · 주석 ── */
.q { margin: 0 0 14px; padding: 24px 26px 26px; border: 0; border-radius: var(--r-s); background: var(--surf); }
.q:first-of-type { border-top: 0; }
.ax { width: 34px; height: 34px; border: 0; background: var(--ink); color: var(--surf); font-size: 14px; }
.note { padding: 14px 18px; border-left: 0; border-radius: 16px; background: color-mix(in srgb, var(--surf) 60%, transparent); }
.layers { position: relative; }
.ly { position: relative; padding: 22px 24px; border-top: 0; border-radius: var(--r-s); background: var(--surf); align-items: center; }
.ly + .ly { margin-top: 14px; }
.ly.l2 { margin-left: clamp(18px, 3vw, 40px); }
.ly.l3 { margin-left: clamp(36px, 6vw, 80px); background: var(--ink); color: var(--surf); }
.ly.l3 .role, .ly.l3 .role .label { color: color-mix(in srgb, var(--surf) 72%, transparent); }
.ly.l2::before, .ly.l3::before { content: ""; position: absolute; left: clamp(-26px, -2vw, -14px); top: -15px; width: 12px; height: calc(50% + 15px); border: solid var(--ink3); border-width: 0 0 1.5px 1.5px; border-bottom-left-radius: 10px; }
.acr { margin-top: 18px; border-top: 0; padding-top: 0; }
.sec { padding: clamp(72px, 8.5vw, 140px) 0; }

/* ── 반응형 · 움직임 줄이기 ─────────────────────── */
@media (max-width: 900px) {
  .sec.inv { border-radius: var(--r-s); }
  .rail a { padding: 8px 12px 13px; }
  .rail a i { left: 12px; right: 12px; }
  .px { transform: scale(.72); transform-origin: 0 0; }
}
@media (max-width: 600px) {
  .stg, .stg.gate { grid-template-columns: 36px minmax(0, 1fr); gap: 16px; }
  .stg .code { width: 36px; height: 36px; font-size: 11px; }
  .stages::before, .stages::after { left: 17px; top: 42px; }
  .stg.gate { margin-inline: -12px; padding-inline: 12px 16px; }
  .ly.l2 { margin-left: 18px; } .ly.l3 { margin-left: 36px; }
  .item { padding: 22px 22px 26px; }
  .ft-row { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .mo .kick { clip-path: none; }
  .mo .pl-fig .fig-frame, .mo .mloop, .mo .diagram, .mo .chart-frame { clip-path: none !important; }
  .mo .pl-fig .fig-frame canvas, .mo .mloop .ml-viz { transform: none; }
  .vz * { animation: none !important; }
  .stages::after { transition: none; }
  .px .tw { animation: none; }
}

/* ── 모바일 — 가독성 · 3D 유지 (900px 미만 / 600px 미만) ──────────────────── */
.m-pair { display: none; }   /* 데스크톱은 떠 있는 핀이 짝을 보인다 */
@media (max-width: 900px) {
  /* 히어로 — 지금 맞춰진 짝 하나 */
  .m-pair { display: flex; align-items: center; gap: 6px; min-height: 18px; margin: -2px 0 9px; font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; }
  .m-pair i { font-style: normal; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; font-weight: 700; padding: 2px 6px; border-radius: 999px; color: #fff; }
  .m-pair i.s { background: var(--s2); }
  .m-pair i.r { background: var(--acc); }
  .m-pair b { color: var(--ink3); font-weight: 400; }
  .m-pair span { overflow: hidden; text-overflow: ellipsis; }

  /* §02 비교 — 줄마다 한 장. 우리 답은 짙은 판 */
  .cmp { display: grid; gap: 10px; border-top: 0; }
  .cmp .cmp-h { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin-bottom: 2px; }
  .cmp .cmp-h > span { padding: 6px 13px !important; border: 0 !important; border-radius: 999px !important; font-size: 12px !important; background: var(--surf2); }
  .cmp .cmp-h > span:first-child { display: none; }
  .cmp .cmp-h .us { background: var(--ink); color: var(--surf) !important; }
  .cmp .cmp-row:not(.cmp-h) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 18px 18px; border-radius: var(--r-s); background: var(--surf); }
  .cmp .cmp-row:not(.cmp-h) > span { padding: 0; border: 0; background: none; border-radius: 0; }
  .cmp .cmp-row:not(.cmp-h) > span:first-child { font-size: 12px; color: var(--ink3); letter-spacing: .02em; }
  .cmp .cmp-row:not(.cmp-h) > span:nth-child(2) { font-size: 15px; color: var(--ink3); }
  .cmp .cmp-row:not(.cmp-h) .us { margin-top: 4px; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: var(--surf); font-size: 15.5px; line-height: 1.45; }

  /* §03 — 큰 윤곽 글자는 제목 뒤에서 한 발 물러난다 */
  .pl-wm { opacity: .35; }

  /* §04 — 3D 무대가 단계 목록 위에 붙어 따라온다 */
  .pipe.gl3m .pipe-fig { display: block; position: sticky; top: calc(var(--hdr) + 6px); z-index: 4; margin: 10px 0 4px; transition: top .45s var(--ease); }
  body:has(.hdr.hide) .pipe.gl3m .pipe-fig { top: 8px; }
  .pipe.gl3m .pipe-cv { aspect-ratio: 16 / 9.5; box-shadow: 0 18px 32px -20px rgba(0, 0, 0, .45); }
  .pipe.gl3m .pipe-fig figcaption { position: absolute; right: 10px; bottom: 8px; margin: 0; pointer-events: none; }
  .pipe.gl3m .pipe-fig figcaption > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* 문구는 화면 낭독용으로 남기고, 출처 배지는 보인다 */
  .pipe.gl3m .stages { margin-top: 8px; }
  .js .stg > div { opacity: .55; }   /* 세로로 읽을 때 다음 단계도 읽힌다 */
  .js .stg.act > div, .js .stg.seen > div { opacity: 1; }

  /* §08 — 이름 3층: 이름 아래에 역할 */
  .ly { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ly .role { text-align: left; }
  .acr { gap: 4px 12px; letter-spacing: .02em; }

  /* 작은 글자 — 화면에서 12px 아래로 내려가지 않게 */
  .note { font-size: 13.5px; }
  .srcline, figcaption, .legend, .actor { font-size: 12px; }
  .pl-pts li { font-size: 15px; }
  .dg-list li { font-size: 13.5px; }
  #sprt.narrow text { font-size: 13px; }
  #sprt.narrow text.l { font-size: 13px; }
}
@media (max-width: 600px) {
  .chip { padding: 0 .2em; }
  .title .chip + .chip, .stmt .chip + .chip, .ct-title .chip + .chip { margin-left: .02em; }
  /* §09 — 도형은 제목 오른쪽 위로 작게 */
  .contact .shapes { inset: 0 0 auto auto; width: 46%; height: 230px; }   /* 꼬리표 오른쪽 위 한 구석에만 */
  .contact .shp.link { --x: 20% !important; --y: 14% !important; --w: 46px !important; --h: 116px !important; }
  .contact .shp.joint { --x: 44% !important; --y: 34% !important; --w: 64px !important; }
  .contact .shp.cell { --x: 72% !important; --y: 12% !important; --w: 52px !important; }
  .contact .px { display: none; }
  .ftr .shp.link { --w: 70px !important; --h: 170px !important; }
  .ftr .shp.joint, .ftr .shp.cell { --w: 92px !important; }
}

/* ── §08 매칭 판정 — 왼쪽은 얇은 조작판, 오른쪽은 큰 판정 도식. 위아래를 줄인다 ───────────── */
#fit { padding-block: clamp(64px, 7vw, 112px); }
.fit-head { grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); align-items: end; margin-bottom: clamp(28px, 3vw, 44px); }
.fit-head > div { display: contents; }
.fit-head .title { font-size: clamp(32px, 3.6vw, 56px); }
.fit-head .sec-sub { margin: 0 0 .5em; font-size: 15px; }
.fit { grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
/* 조작판 — 카드 셋을 한 장으로, 축마다 머리줄 하나 */
.fit-form { display: flex; flex-direction: column; padding: 8px 22px; border-radius: var(--r-s); background: var(--surf); }
.fit-form .q { margin: 0; padding: 16px 0 18px; border-radius: 0; background: none; border-top: 1px solid var(--rule); }
.fit-form .q:first-of-type { border-top: 0; }
.fit-form .q legend { gap: 10px; font-size: 16px; font-weight: 700; align-items: center; }
.fit-form .ax { width: 24px; height: 24px; font-size: 11.5px; }
.fit-form .q p { margin: 4px 0 10px; padding: 0; font-size: 13px; line-height: 1.5; color: var(--ink3); }
.fit-form .seg button { padding: 7px 14px; font-size: 13px; }
.fit-form .chks { gap: 6px; }
.fit-form .chk { padding: 6px 11px; font-size: 13px; gap: 6px; }
.fit-form .note { margin: auto 0 12px; padding: 10px 12px; font-size: 12px; border-radius: 12px; background: var(--plane); }
/* 판정 도식 */
.res { position: relative; display: flex; flex-direction: column; padding: clamp(18px, 2vw, 28px); padding-bottom: clamp(16px, 1.6vw, 22px); top: auto; overflow: hidden; }
.res-top { display: flex; justify-content: space-between; align-items: center; }
.res-top .label { margin: 0; }
.res-z { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink3); }
.res-z span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--surf); font-size: 11px; }
.res-z b { font-weight: 600; color: var(--ink); font-family: var(--sans); }
.qplot { display: block; width: 100%; height: auto; margin: 6px 0 2px; overflow: visible; }
.qplot .qg { fill: var(--rule2); }
.qplot .qc { fill: transparent; transition: fill .6s var(--ease-soft); }
.qplot .qc.on { fill: color-mix(in srgb, var(--rc) 13%, transparent); }
.qplot .qripple { fill: var(--rc); opacity: 0; transform-box: fill-box; transform-origin: center; }
.qplot .qlab text { font-size: 12px; letter-spacing: .08em; fill: var(--ink3); transition: fill .4s; }
.qplot .qlab text.on { fill: var(--rc); font-weight: 700; }
.qplot .qmid { stroke: var(--rule2); stroke-width: 1; stroke-dasharray: 3 5; }
.qplot .qthr { stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 6 5; }
.qplot .qthr-t { font-size: 11px; fill: var(--ink2); }
.qplot .qaxis line, .qplot .qaxis path { stroke: var(--ink2); stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.qplot .qtick text { font-size: 12px; fill: var(--ink3); }
.qplot .qax-t { font-size: 12.5px; fill: var(--ink3); font-family: var(--sans); }
.qplot .qz { fill: var(--rule); transition: fill .5s var(--ease-soft); }
.qplot .qz.on { fill: var(--rc); }
.qplot .qzg-t { font-size: 12px; fill: var(--ink3); }
.qplot .qz-t { font-size: 10.5px; font-family: var(--sans); fill: var(--ink3); pointer-events: none; }
.qplot .qz.on + .qz-t { fill: var(--surf); font-weight: 600; }
.qplot .qtrail { fill: none; stroke: var(--rc); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 6; opacity: 0; }
.qplot .qtrail.go { animation: q-trail 1.1s ease-out; }
@keyframes q-trail { 0% { opacity: .9; } 100% { opacity: 0; } }
.qplot .qdot { transition: transform .85s cubic-bezier(.34, 1.56, .64, 1); }
.qplot .qcore { fill: var(--rc); transition: fill .4s, r .4s; }
.qplot .qring { fill: none; stroke: var(--rc); stroke-width: 2; opacity: .55; transition: stroke .4s; }
.res[data-z="partial"] .qring { stroke-dasharray: 5 5; }
.res[data-z="draft"] .qring { stroke-dasharray: 1.5 5; stroke-linecap: round; }
.res[data-q="HORIZON"] .qcore { fill: var(--surf); stroke: var(--rc); stroke-width: 3; }
.qplot .qpulse { fill: none; stroke: var(--rc); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.res.lit[data-q="BEACHHEAD"] .qpulse, .res.lit[data-q="BEACHHEAD_C"] .qpulse { animation: q-pulse 2.4s cubic-bezier(.2, .7, 0, 1) infinite; }
.res.lit .qpulse.p2 { animation-delay: 1.2s; }
@keyframes q-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(4.2); opacity: 0; } }
.qplot .qring { animation: q-spin 14s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes q-spin { to { transform: rotate(360deg); } }
/* 결론 줄 — 코드 · 문장 · 버튼을 한 줄에 */
.res-out { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 20px; padding-top: 14px; border-top: 1px solid var(--rule); }
.res-out .rcode { font-size: clamp(28px, 2.8vw, 44px); }
.res-out .rtitle { margin: 0; font-size: 17px; }
.res-out .rbody { margin: 2px 0 0; font-size: 13.5px; }
.res-out .fit-cta { margin: 0; white-space: nowrap; }
.lead-fit .fit-cta { display: none; }
.lead-fit .res-out { grid-template-columns: auto minmax(0, 1fr); }
@media (max-width: 1180px) {
  .fit-head { grid-template-columns: minmax(0, 1fr); }
  .fit-head .sec-sub { margin: 0; }
  .res-out { grid-template-columns: auto minmax(0, 1fr); }
  .res-out .fit-cta { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 900px) {
  .fit { grid-template-columns: minmax(0, 1fr); }
  .res { order: -1; }   /* 좁으면 도식이 먼저 — 조작하면서 바로 본다 */
  .fit-form { padding: 4px 16px; }
  .res-out { grid-template-columns: minmax(0, 1fr); }
  .res-out .fit-cta { justify-self: stretch; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .qplot .qdot, .qplot .qc, .qplot .qz { transition: none; }
  .qplot .qring, .res.lit .qpulse { animation: none; }
}
@media (max-width: 600px) {   /* 도식이 반 크기로 줄어드는 폭 — 글자는 사용자 단위로 키워 화면에서 11px 이상 */
  .qplot .qlab text { font-size: 20px; letter-spacing: .02em; }
  .qplot .qtick text, .qplot .qthr-t, .qplot .qzg-t { font-size: 21px; }
  .qplot .qax-t { font-size: 21px; }
  .qplot .qz-t { display: none; }
  .res-z { font-size: 12px; }
  .qplot .axl-x { display: none; }   /* 예 · 아니오 눈금이 X 축을 말한다 — 좁으면 겹친다 */
}

/* 바닥 — 바로 메일로 연락하려는 사람을 위한 주소 한 줄 */
.ft-mail { display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--ink2); text-decoration: none; border-bottom: 1px solid var(--rule2); transition: color .2s, border-color .2s; }
.ft-mail:hover { color: var(--acc); border-color: var(--acc); }
