/* ── 토큰: 02-color-tokens.md / 03-typography.md ── */
:root {
  --bg: #0A0A0A; --surface: #161616; --text: #F5F5F5; --muted: #8C8C8C;
  --border: #707070; --primary: #E0FE02; --on-primary: #0A0A0A; --error: #FF6B6B;
  --line: #262626; /* 장식용 구분선 (02 문서: 3:1 대상 아님) */
  /* 상태 색: 아이콘·점·diff 표시에만. 브랜드 강조는 계속 라임 하나 (check_contrast.py 통과) */
  --st-amber: #F5B83D; --st-blue: #6EA8FE; --st-green: #4CC38A; --st-violet: #B18CFF;
  --diff-del: #372222; --diff-add: #1E2E26;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --font-sans: Poppins, "Helvetica Neue", Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-cta:   clamp(2.75rem, 2.1rem + 2.667vw, 4.5rem);
  --fs-h1:    clamp(2.25rem, 1.6rem + 2.667vw, 4rem);
  --fs-h2:    clamp(1.75rem, 1.286rem + 1.905vw, 3rem);
  --fs-lead:  clamp(1.125rem, 0.982rem + 0.571vw, 1.5rem);
  --fs-body:  clamp(1rem, 0.977rem + 0.095vw, 1.0625rem);
  --fs-btn:   1rem;
  --fs-label: 0.8125rem;
  --fw-heading: 600; --fw-body: 400; --fw-btn: 600; --fw-label: 500;
  --lh-display: 1.1; --lh-heading: 1.2; --lh-lead: 1.5; --lh-body: 1.65;
  --ls-display: -0.03em; --ls-heading: -0.02em; --ls-lead: -0.01em;

  --gutter: 16px; --section: 112px; --stack: 40px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 80px; --section: 176px; --stack: 64px; } }

/* ── 기본 ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: var(--fw-body) var(--fs-body)/var(--lh-body) var(--font-sans);
  overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 20; background: var(--bg); padding: 8px 12px; }

/* ── 글자 ── */
h1, h2, .display, .cta, .step-title { font-weight: var(--fw-heading); text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-display); letter-spacing: var(--ls-display); max-width: 24ch; }
h2, .display, .step-title { font-size: var(--fs-h2); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); max-width: 24ch; }
.display { max-width: 30ch; }
.step-title { max-width: 18ch; }
h3 { font-size: var(--fs-lead); font-weight: var(--fw-heading); line-height: 1.3; letter-spacing: var(--ls-lead); }
.cta { font-size: var(--fs-cta); line-height: var(--lh-display); letter-spacing: var(--ls-display); }
.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); letter-spacing: var(--ls-lead); max-width: 40ch; text-wrap: pretty; }
p { max-width: 62ch; text-wrap: pretty; }
.label { display: block; font-family: var(--font-mono); font-size: var(--fs-label); font-weight: var(--fw-label); line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.lime { color: var(--primary); }
.section-title { margin-top: 16px; }
.wide { max-width: none; }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  font: var(--fw-btn) var(--fs-btn)/1 var(--font-sans); text-decoration: none; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--border); color: var(--text); background: transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { border-color: var(--text); }
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--text); border-color: var(--text); }
.btn-light { background: var(--text); color: var(--on-primary); border-color: var(--text); }
.btn-light:hover { background: var(--primary); border-color: var(--primary); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── 배치 ── */
.wrap { max-width: 1376px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section) 0 0; }
.stack > * + * { margin-top: 24px; }
.split { display: grid; gap: 24px; }
@media (min-width: 960px) { .split { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }

/* ── 상단 ── */
header { position: sticky; top: 0; z-index: 10; background: rgb(10 10 10 / .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: .04em; font-size: 1.0625rem; min-height: 44px; }
.brand img { width: 28px; height: 28px; }
.nav ul { display: flex; align-items: center; gap: 28px; }
.nav ul a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav ul a:not(.btn):hover { color: var(--text); }
.nav .btn { min-height: 40px; padding: 0 16px; }
@media (max-width: 599px) { .nav .hide-sm { display: none; } }

/* ── 히어로: 단어 휠 (영상 CH1의 피커 휠) ── */
.hero { padding-top: clamp(72px, 10vw, 152px); }
.wheel { display: inline-block; height: 1.1em; vertical-align: bottom; transition: width .5s var(--ease); clip-path: inset(-.05em -.1em -.32em -.1em); } /* 상자는 1.1em 그대로, 보이는 영역만 아래로 0.32em 늘려 g·p 꼬리를 살림 (다음 단어는 1.5em 아래라 안 보임) */
.wheel-track { display: flex; flex-direction: column; align-items: flex-start; transform: translateY(-4.5em); transition: transform .55s var(--ease); }
.wheel-track span { height: 1.5em; line-height: 1.1; white-space: nowrap; } /* 1.1em 창 + 0.4em 틈: 위 단어의 g·p 꼬리가 안 보이게 */
/* 휠이 marketing에 멈추면 라임 (첫 화면 라임은 여기 한 곳 → 히어로 버튼은 흰색) */
.wheel-track span:last-child { transition: color .6s var(--ease); }
.wheel.landed .wheel-track span:last-child, html:not(.js) .wheel-track span:last-child { color: var(--primary); }
.cursor { display: inline-block; width: .08em; height: .9em; margin-left: .08em; background: var(--text); vertical-align: -.08em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── 파이프라인 보드 (Linear 제품 화면 자리) ── */
.screen-wrap { margin-top: var(--stack); height: calc(var(--h) * var(--s, 1)); --h: 476px; overflow: hidden; border-radius: 12px; }
.screen {
  width: 1200px; height: var(--h); transform: scale(var(--s, 1)); transform-origin: top left; transition: translate .9s var(--ease);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; position: relative;
}
.screen-bar { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.screen-bar .label { color: var(--muted); }
.screen-bar b { color: var(--text); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: .9375rem; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text); margin-right: 8px; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.cols { display: grid; grid-template-columns: repeat(5, 240px); height: calc(100% - 52px); }
.col { border-right: 1px solid var(--line); padding: 16px; transition: background-color .4s; }
.col:last-child { border-right: 0; }
.col.active { background: #1c1c1c; }
.col-head { display: flex; justify-content: space-between; font-size: .875rem; font-weight: 500; }
.col-head span:last-child { color: var(--muted); }
.card {
  position: absolute; left: 0; top: 0; width: 212px; height: 104px; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  transform: translate(calc(var(--col) * 240px + 14px), calc(var(--row) * 116px + 100px));
  transition: transform .7s var(--ease); /* transform만: 다른 속성이 섞이면 이동 전체가 메인 스레드로 감 */
  display: grid; grid-template-rows: auto auto auto; gap: 8px; align-content: start; font-size: .8125rem; line-height: 1.3;
}
.card.moving { z-index: 2; }
/* 움직이는 카드의 밝은 테두리: 별도 층의 opacity로 (GPU) */
.card::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--border); border-radius: 8px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.card.moving::after { opacity: 1; }
.card-top { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); white-space: nowrap; }
.card-top .v { margin-left: auto; }
.card-title { font-weight: 600; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tags { display: flex; gap: 4px; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, #000 75%, transparent); mask-image: linear-gradient(90deg, #000 75%, transparent); }
.tags span { padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: .75rem; flex: none; }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); border-radius: 0 0 7px 7px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--st-amber); transform: scaleX(0); transform-origin: left; }
.card[data-col="1"] .bar i { animation: fill 2.4s linear forwards; }
@keyframes fill { to { transform: none; } }

/* 상태 아이콘 (Linear의 이슈 상태 표시 구조) */
.st { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; vertical-align: -1px; margin-right: 8px; }
.card-top .st { margin-right: 0; }
.st-0 { border: 1.5px dashed var(--muted); }
.st-1 { border: 1.5px solid var(--st-amber); background: conic-gradient(var(--st-amber) 0 50%, transparent 0); background-clip: content-box; padding: 1.5px; }
.st-2 { border: 1.5px solid var(--st-blue); background: radial-gradient(var(--st-blue) 0 2.5px, transparent 3px); }
.st-3 { border: 1.5px solid var(--st-violet); background: conic-gradient(var(--st-violet) 0 75%, transparent 0); background-clip: content-box; padding: 1.5px; }
.st-4 { background: var(--st-green); position: relative; }
.st-4::after { content: ""; position: absolute; left: 4px; top: 2px; width: 3px; height: 6px; border: solid var(--bg); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

/* ── 선언문: 스크롤에 따라 단어가 밝아짐 ── */
.display .w { color: #4a4a4a; transition: color .25s; }
.display .w.on { color: var(--text); }
.display .w.on.lime-w { color: var(--primary); }

/* ── 하는 일: FIG 3열 + 선 그림 ── */
.figs { display: grid; margin-top: var(--stack); }
.figs > li { padding: 24px 0 40px; border-top: 1px solid var(--line); }
.figs > li > * + * { margin-top: 12px; }
/* 3열은 넓은 화면에서만: 좁으면 장면 안 글자가 넘침 */
.figs .vig { max-width: 520px; }
@media (min-width: 1100px) {
  .figs .vig { max-width: none; }
  .figs { grid-template-columns: repeat(3, 1fr); }
  .figs > li { border-top: 0; border-left: 1px solid var(--line); padding: 8px 32px 8px; }
  .figs > li:first-child { border-left: 0; padding-left: 0; }
}
.vig { margin: 20px 0 28px; height: 236px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: .8125rem; }
.vig-head { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }

/* 01 감사: 스캔 줄이 내려가며 자동화할 단계를 AI로 바꿈 */
.audit ol { padding: 6px 0; }
.audit li { display: flex; justify-content: space-between; align-items: center; padding: 6px 14px; border-left: 2px solid transparent; transition: background-color .3s, border-color .3s; }
.audit li.scan { background: #1f1f1f; border-left-color: var(--st-amber); }
.audit em { font-style: normal; font-family: var(--font-mono); font-size: .75rem; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); transition: color .3s, border-color .3s; }
.audit li.ai em { color: var(--st-green); border-color: var(--st-green); }

/* 02 터미널: 명령을 치고 결과가 한 줄씩 (영상의 커서) */
.term-body { padding: 14px; font-family: var(--font-mono); font-size: .8125rem; line-height: 1.7; }
.cmd { white-space: nowrap; }
.prompt { color: var(--st-blue); }
.caret { display: inline-block; width: .55em; height: 1.1em; margin-left: 2px; vertical-align: -.2em; background: var(--text); animation: blink 1.1s steps(1) infinite; }
.term-out li { color: var(--muted); opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; padding-left: 2ch; text-indent: -2ch; }
.term-out li::before { content: "✓ "; color: var(--st-green); }
.term-out li.show { opacity: 1; transform: none; }
.term-out li.done { color: var(--text); }
.term-out li.done::before { content: "→ "; color: var(--st-violet); }

/* 03 세로 광고 3개 (9:16), 하나가 이긴 소재 */
.reels { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 14px; background-color: var(--surface); }
.phone { position: relative; width: 31%; max-width: 104px; aspect-ratio: 9 / 16; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 14px 8px 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; }
.phone b { font-size: .75rem; line-height: 1.2; margin-bottom: auto; margin-top: 18px; }
.phone .cap { height: 4px; border-radius: 2px; background: #2a2a2a; }
.phone .cap.short { width: 60%; }
.prog { position: absolute; top: 6px; left: 8px; right: 8px; height: 2px; background: #2a2a2a; border-radius: 1px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--text); transform: scaleX(0); transform-origin: left; animation: play 3.6s linear infinite; animation-delay: var(--p); }
@keyframes play { to { transform: none; } }
.phone.win { border-color: var(--st-green); transform: translateY(-6px); }
.badge { position: absolute; top: 14px; left: 8px; font-family: var(--font-mono); font-size: .625rem; color: var(--st-green); }

/* ── 4단계 ── */
.step { padding-top: var(--stack); margin-top: var(--stack); border-top: 1px solid var(--line); }
.step:first-of-type { border-top: 0; margin-top: 0; }
.outputs { margin-top: 24px; display: grid; gap: 12px; }
.outputs li { padding-left: 20px; position: relative; }
.outputs li::before { content: "→"; position: absolute; left: 0; color: var(--muted); }
.viz { margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; min-height: 180px; }

/* research: 칩이 세 갈래로 분류됨 */
.sort { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sort .label { margin-bottom: 10px; }
.chip { display: block; padding: 6px 10px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 6px; font-size: .8125rem; opacity: 0; transform: translateY(-14px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i) * 120ms); }
.in .chip { opacity: 1; transform: none; }

.chip::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--c); }
.sort > div:nth-child(1) { --c: var(--st-amber); }
.sort > div:nth-child(2) { --c: var(--st-blue); }
.sort > div:nth-child(3) { --c: var(--st-violet); }

/* make: 고민 × 페르소나 매트릭스가 채워짐 */
.matrix { display: grid; grid-template-columns: 5.5rem repeat(4, 1fr); gap: 6px; align-items: center; max-width: 520px; font-size: .75rem; color: var(--muted); }
.tile { aspect-ratio: 16 / 10; border-radius: 4px; background: #262626; position: relative; transform: scale(.6); opacity: 0; transition: transform .45s var(--ease), opacity .45s, background-color .4s; transition-delay: calc(var(--i) * 60ms); }
.tile::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -35% -50%; border: 6px solid transparent; border-left: 9px solid var(--muted); border-right: 0; }
.in .tile { transform: none; opacity: 1; }

/* learn: brief diff (빨강 = 뺀 것, 초록 = 이긴 것) */
.diff { padding: 0; overflow: hidden; font-family: var(--font-mono); font-size: .8125rem; }
.diff-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.file::before { content: ""; display: inline-block; width: 9px; height: 11px; border: 1.5px solid var(--muted); border-radius: 2px; margin-right: 10px; vertical-align: -1px; }
.diff-lines { padding: 12px 0; }
.diff-lines li { display: flex; gap: 16px; padding: 3px 20px; white-space: nowrap; opacity: 0; transform: translateX(-8px); transition: opacity .4s var(--ease), transform .4s var(--ease); transition-delay: calc(var(--i) * 140ms); border-left: 2px solid transparent; }
.in .diff-lines li { opacity: 1; transform: none; }
.diff-lines b { color: var(--muted); font-weight: 400; width: 2ch; }
.diff-lines .del { background: var(--diff-del); border-left-color: var(--error); }
.diff-lines .add { background: var(--diff-add); border-left-color: var(--st-green); }
.diff-lines .del span::before { content: "- "; color: var(--error); }
.diff-lines .add span::before { content: "+ "; color: var(--st-green); }
.diff-lines em { font-style: normal; color: var(--st-green); }

/* share: 문서 줄이 써짐 */
.doc li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .875rem; opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i) * 180ms); }
.doc li:last-child { border-bottom: 0; }
.doc li::before { content: "✓"; color: var(--st-green); }
.in .doc li { opacity: 1; transform: none; }

/* ── 사례: 전체 폭 띠 + 점 격자 (구조 변화) ── */
.band { margin-top: var(--section); padding: var(--section) 0; background-color: #0f0f0f; background-image: radial-gradient(#262626 1px, transparent 1px); background-size: 24px 24px; border-block: 1px solid var(--line); }
.band .pillars li { background: #0f0f0f; }
.case { margin-top: 24px; }
.pillars { display: grid; gap: 1px; margin-top: var(--stack); background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
@media (min-width: 600px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillars li { min-width: 0; background: var(--bg); padding: 28px 24px; }
.pillars b { display: block; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); white-space: nowrap; line-height: 1.1; letter-spacing: var(--ls-heading); font-weight: 600; margin-bottom: 12px; }

/* ── 연혁 ── */
.timeline { margin-top: var(--stack); }
.timeline li { display: grid; gap: 8px; padding: 24px 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .timeline li { grid-template-columns: 4rem 20rem 1fr; gap: 24px; align-items: baseline; } }
/* 지금 진행 중인 파트너: 줄 전체 강조 (이 섹션의 라임은 여기 한 곳) */
.timeline li.current { background: var(--surface); border-top-color: transparent; border-left: 2px solid var(--primary); border-radius: 0 8px 8px 0; padding-left: 22px; padding-right: 24px; margin-left: -24px; }
.now { display: inline-flex; align-items: center; gap: 6px; vertical-align: 3px; margin-left: 12px; padding: 3px 10px; border: 1px solid var(--primary); border-radius: 999px; font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.now::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: pulse 2s ease-in-out infinite; }
@media (max-width: 767px) { .timeline li.current { margin-left: 0; padding-left: 16px; } }

/* Approach Make 칸 '생성 중' (main.js가 화면에 보일 때만 돌림) */
.tile.gen { background: #1a1a1a; box-shadow: inset 0 0 0 1px var(--st-amber); }
.tile.gen::after { border-left-color: var(--st-amber); }

/* 사례 기둥 아래 작은 실시간 요소 (색은 기둥마다 --c) */
.pillars li { display: flex; flex-direction: column; }
.live { margin-top: auto; padding-top: 24px; display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.flow { position: relative; justify-content: space-between; width: 160px; }
.flow i { flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--c); background: #0f0f0f; position: relative; z-index: 1; }
.flow::before { content: ""; position: absolute; left: 4px; right: 4px; bottom: 3.5px; height: 1px; background: var(--line); }
.week i { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; font-style: normal; font-size: .625rem; }
.week i.today { background: var(--c); border-color: var(--c); color: var(--bg); font-weight: 500; }
.brands i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--c); }
.brands i + i { margin-left: -12px; background: #0f0f0f; }
.clocks { flex-direction: column; align-items: flex-start; gap: 4px; }
.pillars .clocks b { display: inline; font-size: inherit; letter-spacing: 0; line-height: inherit; margin: 0 0 0 6px; color: var(--text); font-weight: 500; }

/* 연혁 세로선: 화면에 들어오면 01 → 04로 그려지고 점이 차례로 켜짐 */
@media (min-width: 768px) {
  .timeline { position: relative; }
  .timeline::before, .timeline::after { content: ""; position: absolute; left: calc(4rem + 11px); top: 36px; bottom: 36px; width: 1px; background: var(--line); }
  .timeline::after { background: var(--border); transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease); }
  .timeline.in::after { transform: none; }
  .timeline li { position: relative; }
  .timeline li::before { content: ""; position: absolute; left: calc(4rem + 8px); top: 33px; width: 7px; height: 7px; border-radius: 50%; background: var(--line); z-index: 1; transition: background-color .3s; transition-delay: calc(var(--i, 0) * .45s); }
  .timeline.in li::before { background: var(--text); }
  .timeline li.current::before { left: calc(4rem + 8px + 22px); }
  .timeline.in li.current::before { background: var(--primary); }
}

/* ── 마지막 CTA + 로고 그리기 ── */
.closing { padding-bottom: var(--section); }
.mark { width: clamp(88px, 10vw, 128px); color: var(--text); }
.mark svg { width: 100%; height: auto; display: block; }
.js .mark .draw-stroke { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .mark .draw-part { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); }
.mark.in .draw-stroke { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease); }
.mark.in .draw-part { opacity: 1; transform: none; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1) 1.3s, opacity .2s 1.3s; }
.copy-note { min-height: 1.65em; }

/* 마지막 문장 타이핑 (영상 CH3) */
.ch { visibility: hidden; }
.ch.on { visibility: visible; }
.type-caret { display: inline-block; width: .06em; height: .85em; margin-left: .04em; background: var(--text); vertical-align: -.06em; animation: blink 1.1s steps(1) infinite; }

footer { border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0 32px; justify-content: space-between; align-items: center; }
footer a { text-decoration: none; display: inline-block; padding: 12px 0; }
footer a:hover { color: var(--text); }

/* ── 스크롤 등장 (JS가 있을 때만 숨김) ── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── 화면 밖 섹션은 무한 애니메이션을 멈춤 (main.js가 .idle을 붙임) ── */
.idle *, .idle *::before, .idle *::after { animation-play-state: paused !important; }

/* ── 모션 줄이기 ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .chip, .tile, .doc li, .diff-lines li, .term-out li, .timeline::after { opacity: 1 !important; transform: none !important; }
  .ch { visibility: visible; }
  .display .w { color: var(--text); }
  .display .w.lime-w { color: var(--primary); }
  .js .mark .draw-stroke { stroke-dashoffset: 0; }
  .js .mark .draw-part { opacity: 1; transform: none; }
}

/* 사례 기둥: 상태 색 짧은 선 */
.pillars li::before { content: ""; display: block; width: 24px; height: 2px; margin-bottom: 20px; background: var(--c); }
.pillars li:nth-child(1) { --c: var(--st-amber); }
.pillars li:nth-child(2) { --c: var(--st-blue); }
.pillars li:nth-child(3) { --c: var(--st-violet); }
.pillars li:nth-child(4) { --c: var(--st-green); }
