/* ONTAP — Lusion식 밝은 라벤더 화이트 + 잉크 + 전기 파랑. 둥근 검은 '스테이지' 카드가 인터랙션을 담는다.
   버튼은 모두 라운드 사각형(원형 금지). */
:root {
  --bg: #eceef4; --bg2: #e2e5ee; --paper: #f7f8fb; --ink: #0b0c10; --ink2: #1a1c23; --mist: #5f6475; --line: rgba(11,12,16,.12);
  --blue: #2433ff; --blue2: #6f7cff; --onblue: #f7f8fb; --stage: #0b0c10; --stage2: #15171e; --stagefg: #eef0f6; --stagemist: #8b90a3;
  --ok: #1fa463;
  --sans: "Geist", "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --kr: "Pretendard Variable", Pretendard, "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", ui-monospace, monospace;
  --r: 22px; --gut: max(20px, env(safe-area-inset-left, 0px)); --gutR: max(20px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.22,1,.36,1);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--kr); word-break: keep-all; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.eyebrow { font-size: 12px; letter-spacing: .14em; color: var(--blue); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: currentColor; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--sans); font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
h2 { font-size: clamp(34px, 5.2vw, 76px); line-height: 1.05; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -0.025em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue); color: var(--onblue); }

/* 버튼 — 라운드 사각형 */
.btn { --h: 44px; appearance: none; border: 0; height: var(--h); padding: 0 18px; border-radius: 12px; display: inline-flex; align-items: center; gap: 10px; font: 600 15px var(--kr); cursor: pointer; white-space: nowrap; transition: background .3s var(--ease), color .3s var(--ease), transform .2s var(--ease); will-change: transform; }
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--ink); color: var(--paper); } .btn-dark:hover { background: var(--blue); }
.btn-light { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); } .btn-light:hover { background: var(--ink); color: var(--paper); }
.btn-blue { background: var(--blue); color: var(--onblue); } .btn-blue:hover { background: var(--ink); }
.btn-sm { --h: 38px; padding: 0 15px; font-size: 14px; border-radius: 10px; }
.btn-lg { --h: 58px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.btn .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; } .btn .dot.blue { background: var(--blue); }
.bars { display: grid; gap: 4px; } .bars i { display: block; width: 14px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
[aria-expanded="true"] .bars i:first-child { transform: translateY(2.75px) rotate(45deg); } [aria-expanded="true"] .bars i:last-child { transform: translateY(-2.75px) rotate(-45deg); }
.link-arrow { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; border-bottom: 1px solid var(--ink); padding-bottom: 4px; } .link-arrow span { transition: transform .4s var(--ease); } .link-arrow:hover span { transform: translateX(6px); }

/* 로딩 */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--ink); color: var(--paper); display: grid; place-items: center; align-content: center; gap: 28px; }
.loader-word { display: flex; gap: .04em; font: 700 clamp(56px, 12vw, 160px)/1 var(--sans); letter-spacing: -0.05em; overflow: hidden; }
.loader-word span { display: inline-block; transform: translateY(110%); }
.loader-bar { width: min(320px, 70vw); height: 2px; background: rgba(255,255,255,.14); } .loader-bar i { display: block; height: 100%; width: 0; background: var(--blue2); }
.loader-num { font-size: 12px; color: var(--stagemist); }

/* 커서 */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; mix-blend-mode: normal; }
.cursor-dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--blue); }
.cursor-ring { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 10px; border: 1px solid rgba(11,12,16,.35); display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s var(--ease), border-color .35s; }
.cursor-ring span { font: 700 11px var(--mono); letter-spacing: .12em; color: var(--onblue); opacity: 0; transition: opacity .2s; }
.cursor.has-label .cursor-ring { width: 84px; height: 34px; margin: -17px 0 0 -42px; border-radius: 10px; background: var(--blue); border-color: var(--blue); } .cursor.has-label .cursor-ring span { opacity: 1; } .cursor.has-label .cursor-dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* 상단 */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutR) 14px var(--gut); transition: transform .5s var(--ease); }
.nav.hide { transform: translateY(-110%); }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); opacity: 0; transition: opacity .4s; } .nav.solid::before { opacity: 1; }
.logo { display: inline-flex; align-items: center; gap: 10px; } .logo svg { width: 32px; height: 32px; } .logo b { font: 700 21px var(--sans); letter-spacing: -0.04em; transition: color .4s; }
.nav-tag { font-size: 13px; line-height: 1.2; color: var(--mist); padding-left: 16px; border-left: 1px solid var(--line); transition: color .4s, border-color .4s; }   /* 로고 옆에 붙는 한 줄 소개 */
/* 메뉴가 열리면 헤더가 어두운 무대 위에 놓인다 → 글자를 밝게, 스크롤 배경 띠는 숨김 */
.menu-open .logo b { color: var(--paper); } .menu-open .nav-tag { color: var(--stagemist); border-color: rgba(255,255,255,.18); } .menu-open .nav-status { color: var(--stagemist); } .menu-open .nav::before { opacity: 0; } .menu-open .nav .btn-light:hover { background: var(--blue); color: var(--onblue); } .menu-open .nav .btn-dark { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.nav-r { display: flex; gap: 8px; align-items: center; }
.nav-status { font-size: 11px; color: var(--mist); display: inline-flex; align-items: center; gap: 8px; margin-right: 8px; } .nav-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--ok) 0%, transparent); } }

/* 메뉴 */
.menu { position: fixed; inset: 0; z-index: 45; background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 92px var(--gutR) 48px var(--gut); clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); overflow-y: auto; overscroll-behavior: contain; }
.menu.open ~ .chat-fab { opacity: 0; pointer-events: none; }   /* 메뉴가 열리면 실시간 문의 버튼이 연락처를 가리지 않게 */
.menu.open { clip-path: inset(0 0 0 0); }
.menu-links { display: grid; align-content: start; gap: 4px; }   /* 헤더 바로 아래부터 (큰 화면에서 위가 비지 않게) */
.menu-links a { font: 600 clamp(30px, min(7vw, calc((100vh - 230px) / 7.8)), 96px)/1.05 var(--kr); letter-spacing: -0.04em; display: flex; align-items: baseline; gap: 18px; color: var(--paper); transition: color .3s, transform .5s var(--ease); }
.menu-links a::before { content: attr(data-i); font: 400 13px var(--mono); color: var(--stagemist); }
.menu-links a:hover { color: var(--blue2); transform: translateX(12px); }
.menu-side { align-self: end; display: grid; gap: 8px; } .menu-side p { font-size: 11px; color: var(--stagemist); } .menu-side .copy { text-align: left; background: none; border: 0; padding: 0; font-size: 18px; cursor: pointer; color: var(--paper); }
.clock { font-size: 28px !important; color: var(--paper) !important; }

/* 히어로 */
.hero { padding: calc(110px + env(safe-area-inset-top, 0px)) var(--gutR) 24px var(--gut); display: grid; gap: 28px; }
.hero-head { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.hero h1 { font: 600 clamp(28px, 3.3vw, 52px)/1.16 var(--kr); letter-spacing: -0.045em; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-meta { display: grid; gap: 18px; justify-items: start; } .hero-meta p { color: var(--mist); font-size: 15px; max-width: 46ch; }
.hero-stage { position: relative; height: min(72vh, 760px); min-height: 460px; border-radius: var(--r); overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #1b1e2b 0%, var(--stage) 60%); color: var(--stagefg); touch-action: pan-y; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.plus { position: absolute; width: 14px; height: 14px; pointer-events: none; } .plus::before, .plus::after { content: ""; position: absolute; background: var(--stagemist); } .plus::before { left: 6px; top: 0; width: 2px; height: 14px; } .plus::after { top: 6px; left: 0; height: 2px; width: 14px; }
.p1 { left: 18px; top: 18px; } .p2 { right: 18px; top: 18px; } .p3 { left: 18px; bottom: 18px; } .p4 { right: 18px; bottom: 18px; }
.tap-spout { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 120px; height: 34px; background: linear-gradient(#2a2e3d, #151821); border-radius: 0 0 14px 14px; box-shadow: inset 0 -2px 0 rgba(255,255,255,.06); }
.tap-spout i { position: absolute; left: 50%; bottom: -10px; width: 26px; height: 12px; transform: translateX(-50%); background: #2a2e3d; border-radius: 0 0 8px 8px; }
.dial { position: absolute; left: 22px; bottom: 22px; width: min(420px, calc(100% - 44px)); padding: 18px 20px; border-radius: 16px; background: rgba(20,22,30,.62); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); display: grid; gap: 12px; }
.dial-top { display: flex; justify-content: space-between; align-items: baseline; } .dial-top span { font-size: 10px; color: var(--stagemist); letter-spacing: .16em; } .dial-top b { font: 600 26px var(--kr); letter-spacing: -0.03em; }
.dial input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
.dial input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--blue2) var(--fill, 50%), rgba(255,255,255,.14) var(--fill, 50%)); }
.dial input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.14); } .dial input[type=range]::-moz-range-progress { height: 4px; background: var(--blue2); border-radius: 2px; }
.dial input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 20px; margin-top: -8px; border-radius: 7px; background: var(--paper); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.dial input[type=range]::-moz-range-thumb { width: 30px; height: 20px; border: 0; border-radius: 7px; background: var(--paper); }
.dial-ticks { display: flex; justify-content: space-between; font-size: 10px; color: var(--stagemist); } .dial-desc { font-size: 13px; color: #c7cbd9; min-height: 1.6em; }
.dial-note { font-size: 11px; color: var(--stagemist); border-top: 1px solid rgba(255,255,255,.1); padding-top: 8px; margin-top: 2px; }
.hero-readout { position: absolute; right: 24px; bottom: 26px; display: grid; gap: 4px; text-align: right; font-size: 11px; color: var(--stagemist); letter-spacing: .14em; } .hero-readout b { color: var(--stagefg); font-weight: 500; margin-left: 8px; }
.hero-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--mist); letter-spacing: .14em; }

/* 선언 */
.statement { position: relative; padding: 160px var(--gutR) 140px var(--gut); overflow: hidden; }
.ribbon { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.ribbon path { fill: none; stroke: var(--blue); stroke-width: 26; stroke-linecap: round; }
.big-word { position: relative; z-index: 1; font: 600 clamp(64px, 14vw, 230px)/.92 var(--sans); letter-spacing: -0.06em; }
.big-word .line { display: block; overflow: hidden; padding-bottom: .04em; } .big-word .line > span { display: inline-block; }
.statement-body { position: relative; z-index: 1; margin: 56px 0 0 auto; max-width: 520px; display: grid; gap: 24px; justify-items: start; }
.statement-body p { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; letter-spacing: -0.02em; font-weight: 500; }
.reveal-words .w { opacity: .18; transition: opacity .3s; } .reveal-words .w.on { opacity: 1; }

/* 숫자 */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 var(--gutR) 0 var(--gut); border-top: 1px solid var(--line); }
.num { padding: 28px 20px 40px 0; display: grid; gap: 10px; border-right: 1px solid var(--line); } .num:last-child { border-right: 0; } .num + .num { padding-left: 20px; }
.num b { font: 500 clamp(48px, 6vw, 92px)/1 var(--sans); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; } .num span { font-size: 13px; color: var(--mist); max-width: 22ch; }

/* 개발 영역 */
.cap { position: relative; margin-top: 120px; }
.cap-pin { height: 100vh; display: grid; grid-template-rows: auto 1fr; overflow: hidden; padding: 96px 0 40px; }
.cap-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; padding: 0 var(--gutR) 28px var(--gut); } .cap-head h2 { font-size: clamp(30px, 4vw, 60px); }
.cap-progress { grid-column: 1 / -1; height: 2px; background: var(--line); } .cap-progress i { display: block; height: 100%; width: 0; background: var(--blue); }
.cap-track { display: flex; gap: 16px; padding: 0 var(--gutR) 0 var(--gut); width: max-content; height: 100%; }
.panel { width: min(560px, 82vw); height: 100%; max-height: 640px; background: var(--paper); border-radius: var(--r); padding: 26px; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.panel header { display: grid; gap: 6px; } .panel header .mono { font-size: 11px; color: var(--blue); letter-spacing: .14em; } .panel header p { color: var(--mist); font-size: 14px; }
.demo { position: relative; border-radius: 16px; background: var(--stage); color: var(--stagefg); overflow: hidden; min-height: 0; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; } .tags li { font-size: 11px; padding: 5px 9px; border-radius: 7px; background: var(--bg); color: var(--mist); }
/* web */
.demo-web { display: grid; grid-template-columns: 1.1fr 1fr; }
.code { margin: 0; padding: 18px; font-size: 11.5px; line-height: 1.7; color: #b8bdd0; white-space: pre-wrap; overflow: hidden; border-right: 1px solid rgba(255,255,255,.06); }
.code .k { color: #8f9bff; } .code .s { color: #7fe0b0; } .code .c { color: #5b6075; } .code .caret { display: inline-block; width: 7px; height: 13px; background: var(--blue2); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.preview { display: grid; place-items: center; padding: 18px; background: linear-gradient(160deg, #eef0f6, #dfe3ef); }
.pv-card { width: 100%; max-width: 220px; background: #fff; color: var(--ink); border-radius: 14px; padding: 16px; display: grid; gap: 6px; box-shadow: 0 20px 40px -20px rgba(11,12,16,.35); transform: scale(var(--s, .9)); opacity: var(--o, .4); transition: transform .5s var(--ease), opacity .5s; }
.pv-chip { justify-self: start; font: 600 10px var(--mono); padding: 3px 7px; border-radius: 6px; background: var(--blue); color: #fff; } .pv-card b { font-size: 18px; letter-spacing: -0.02em; } .pv-card p { font-size: 12px; color: var(--mist); }
.pv-bar { height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; } .pv-bar i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .6s var(--ease); }
/* app */
.demo-app { display: grid; place-items: center; background: radial-gradient(80% 80% at 50% 30%, #222638, var(--stage)); }
.phone { width: 230px; height: 92%; max-height: 420px; border-radius: 34px; background: #f5f6fa; color: var(--ink); padding: 16px 14px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; box-shadow: 0 0 0 6px #23262f, 0 30px 60px -20px rgba(0,0,0,.6); position: relative; }
.phone-notch { justify-self: center; width: 70px; height: 18px; border-radius: 10px; background: #0b0c10; }
.phone-head { display: flex; justify-content: space-between; align-items: center; } .phone-head b { font-size: 17px; } .phone-head span { font-size: 12px; background: var(--ink); color: #fff; padding: 2px 8px; border-radius: 6px; }
.swipe-stack { position: relative; }
.sc { position: absolute; inset: 0 0 auto; height: 150px; border-radius: 18px; background: var(--c); color: #fff; padding: 18px; display: grid; align-content: end; gap: 4px; cursor: grab; touch-action: none; box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); transition: transform .45s var(--ease), opacity .3s; user-select: none; }
.sc b { font-size: 20px; } .sc span { font-size: 12px; opacity: .8; } .sc:active { cursor: grabbing; }
.phone-hint { font-size: 10px; color: var(--mist); text-align: center; }
/* enterprise */
.demo-ent { padding: 18px; display: grid; grid-template-rows: auto 1fr; gap: 16px; }
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fs { font-size: 12px; color: var(--stagemist); display: grid; gap: 6px; justify-items: start; padding: 10px; border-radius: 10px; background: var(--stage2); transition: background .4s, color .4s; }
.fs i { font: 600 11px var(--mono); font-style: normal; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.fs.on { color: var(--stagefg); background: #1d2140; } .fs.on i { background: var(--blue); } .fs.done i { background: var(--ok); }
.erp { width: 100%; border-collapse: collapse; font-size: 11.5px; } .erp th { text-align: left; color: var(--stagemist); font-weight: 400; padding: 6px; border-bottom: 1px solid rgba(255,255,255,.08); } .erp td { padding: 7px 6px; border-bottom: 1px solid rgba(255,255,255,.05); font-variant-numeric: tabular-nums; transition: background .5s; }
.erp td.flash { background: rgba(111,124,255,.22); } .erp .st { font-size: 10px; padding: 2px 6px; border-radius: 5px; background: rgba(255,255,255,.08); } .erp .st.low { background: rgba(255,120,90,.2); color: #ffb3a0; } .erp .st.ok { background: rgba(31,164,99,.2); color: #8fe6b8; }
/* ai */
.demo-ai canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ai-log { position: absolute; left: 14px; right: 14px; bottom: 12px; font-size: 10.5px; line-height: 1.6; color: var(--stagemist); pointer-events: none; } .ai-log b { color: var(--blue2); font-weight: 500; }
/* data */
.demo-data { padding: 18px; display: grid; grid-template-rows: auto 1fr; gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .kpis div { background: var(--stage2); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; } .kpis span { font-size: 9.5px; color: var(--stagemist); letter-spacing: .12em; } .kpis b { font: 600 20px var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: 100%; min-height: 120px; } .spark .area { fill: url(#g); fill: rgba(111,124,255,.16); } .spark .line { fill: none; stroke: var(--blue2); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
/* infra */
.demo-infra { padding: 16px; display: grid; grid-template-rows: 1fr auto; gap: 12px; justify-items: start; }
.term { margin: 0; width: 100%; font-size: 11.5px; line-height: 1.75; color: #b8bdd0; white-space: pre-wrap; overflow: hidden; } .term .ok { color: #7fe0b0; } .term .dim { color: #5b6075; } .term .hl { color: #fff; }

/* 섹션 머리 */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 16px 40px; align-items: end; padding: 0 var(--gutR) 48px var(--gut); }
.sec-head .eyebrow { grid-column: 1 / -1; } .sec-head p { color: var(--mist); font-size: 15px; }

/* 레퍼런스 */
.works { padding-top: 160px; }
.work-filter { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 var(--gutR) 24px var(--gut); }
.work-filter button { border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); border-radius: 10px; padding: 10px 16px; font: 600 14px var(--kr); cursor: pointer; transition: background .25s, color .25s; }
.work-filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 20px; padding: 0 var(--gutR) 0 var(--gut); }
.work { display: grid; gap: 14px; cursor: pointer; transition: opacity .4s, transform .6s var(--ease); }
.work.off, .work[hidden] { display: none !important; }
.work:nth-child(4n+2), .work:nth-child(4n+3) { }
.work-media { position: relative; aspect-ratio: 16 / 10.5; border-radius: var(--r); overflow: hidden; background: var(--ink2); }
.work-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.work:hover .work-media img { transform: scale(1.0); }
.work-media .badge { position: absolute; left: 14px; top: 14px; font: 500 10px var(--mono); letter-spacing: .12em; padding: 5px 8px; border-radius: 7px; background: rgba(11,12,16,.7); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.work-media.fit img { object-fit: contain; object-position: center; transform: scale(.92); padding: 0; } .work:hover .work-media.fit img { transform: scale(.98); }
.work-meta { display: grid; gap: 6px; } .work-meta .mono { font-size: 10.5px; color: var(--mist); letter-spacing: .12em; text-transform: uppercase; }
.work-meta h3 { display: flex; align-items: center; gap: 12px; font-size: clamp(22px, 2.2vw, 32px); } .work-meta h3 .arr { display: inline-block; transition: transform .5s var(--ease); color: var(--blue); } .work:hover h3 .arr { transform: translateX(8px) rotate(-45deg); }
.work-meta p { color: var(--mist); font-size: 14px; max-width: 54ch; }
/* FLOW Space 라이브 미니 UI */
.mini { position: absolute; inset: 0; display: grid; grid-template-columns: 34% 1fr; background: #f3f4f8; color: var(--ink); font-size: 11px; }
.mini-side { background: #14161d; color: #c7cbd9; padding: 54px 10px 14px; display: grid; align-content: start; gap: 4px; } .mini-side b { color: #fff; font-size: 12px; margin-bottom: 8px; } .mini-side span { padding: 5px 8px; border-radius: 6px; } .mini-side span.on { background: var(--blue); color: #fff; }
.mini-main { display: grid; grid-template-rows: auto 1fr auto; padding: 14px; gap: 8px; min-width: 0; } .mini-main header { display: flex; justify-content: space-between; font-weight: 700; font-size: 12px; }
.mini-msgs { display: grid; align-content: end; gap: 6px; overflow: hidden; } .mm { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; animation: rise .5s var(--ease) both; } .mm i { width: 22px; height: 22px; border-radius: 50%; background: var(--c, #7d8cff); } .mm p { background: #fff; border-radius: 8px; padding: 6px 9px; box-shadow: 0 1px 0 rgba(0,0,0,.04); } .mm p b { display: block; font-size: 10px; color: var(--mist); }
.mm .task { margin-top: 4px; display: inline-flex; gap: 6px; align-items: center; font-size: 10px; padding: 3px 7px; border-radius: 6px; background: #e8ebff; color: var(--blue); }
.mini-in { background: #fff; border-radius: 8px; padding: 7px 9px; color: var(--mist); box-shadow: inset 0 0 0 1px var(--line); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* 시스템 맵 */
.reel { padding: 160px var(--gutR) 0 var(--gut); }
.reel-card { position: relative; height: min(86vh, 860px); border-radius: var(--r); overflow: hidden; background: radial-gradient(90% 90% at 50% 50%, #161a2c, var(--stage)); transform-origin: center; }
#mapCanvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; } #mapCanvas:active { cursor: grabbing; }
.reel-word { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 4vw; pointer-events: none; font: 300 clamp(48px, 9vw, 150px)/1 var(--sans); letter-spacing: -0.04em; color: rgba(238,240,246,.9); mix-blend-mode: difference; }
.reel-cap { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-size: 11px; letter-spacing: .14em; color: var(--stagemist); pointer-events: none; }

/* 플랜 */
.model { padding-top: 180px; }
.finder { margin: 0 var(--gutR) 20px var(--gut); display: flex; flex-wrap: wrap; align-items: center; gap: 14px; } .finder > p { font-size: 12px; color: var(--mist); letter-spacing: .1em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 0; padding: 11px 16px; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font: 500 15px var(--kr); cursor: pointer; transition: background .25s, color .25s, transform .2s; }
.chips button[aria-pressed="true"] { background: var(--blue); color: var(--onblue); box-shadow: none; } .chips button:active { transform: scale(.97); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0 var(--gutR) 0 var(--gut); }
.plan { background: var(--paper); border-radius: var(--r); padding: 30px; display: grid; gap: 14px; align-content: start; box-shadow: inset 0 0 0 1px var(--line); transition: background .5s var(--ease), color .5s var(--ease), transform .5s var(--ease); }
.plan > .mono { font-size: 11px; letter-spacing: .14em; color: var(--blue); } .plan h3 { font-size: clamp(26px, 2.4vw, 36px); } .plan-lead { color: var(--mist); font-size: 14px; }
.plan ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 0; } .plan li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; display: flex; gap: 10px; } .plan li::before { content: "+"; font-family: var(--mono); color: var(--blue); }
.plan-fit { margin-top: 8px; font-size: 13px; color: var(--mist); }
.plan.hl { background: var(--ink); color: var(--paper); transform: translateY(-8px); } .plan.hl li { border-color: rgba(255,255,255,.12); } .plan.hl .plan-lead, .plan.hl .plan-fit { color: var(--stagemist); } .plan.hl > .mono, .plan.hl li::before { color: var(--blue2); }
.plan.dim { opacity: .55; }

/* 진행 과정 */
.process { padding-top: 180px; }
.steps { list-style: none; margin: 0; padding: 0 var(--gutR) 0 var(--gut); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; position: relative; }
.steps li { border-top: 2px solid var(--line); padding-top: 22px; display: grid; gap: 10px; position: relative; } .steps li::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: var(--p, 0%); background: var(--blue); }
.steps li .mono { font-size: 11px; color: var(--blue); letter-spacing: .12em; } .steps p { color: var(--mist); font-size: 15px; }

/* 기술 띠 */
.stack { padding: 160px 0 40px; display: grid; gap: 10px; overflow: hidden; }
.marquee { overflow: hidden; } .mq-track { display: flex; gap: 10px; width: max-content; animation: mq 50s linear infinite; } .marquee.rev .mq-track { animation-direction: reverse; animation-duration: 60s; }
.mq-track span { font-size: clamp(14px, 1.4vw, 18px); padding: 14px 22px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.mq-track span.b { background: var(--ink); color: var(--paper); box-shadow: none; }
@keyframes mq { to { transform: translateX(-50%); } }
.stack:hover .mq-track { animation-play-state: paused; }

/* 소개 */
.about { padding: 160px var(--gutR) 0 var(--gut); }
.about-card { background: var(--ink); color: var(--paper); border-radius: var(--r); padding: clamp(28px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px 60px; }
.about-card .eyebrow { grid-column: 1 / -1; color: var(--blue2); } .about-card h2 { font-family: var(--kr); font-size: clamp(48px, 7vw, 110px); }
.about-role { color: var(--stagemist); align-self: end; padding-bottom: 12px; }
.about-card blockquote { grid-column: 1 / -1; margin: 18px 0 0; font: 500 clamp(20px, 2.2vw, 32px)/1.5 var(--kr); letter-spacing: -0.03em; max-width: 34ch; }
.about-list { grid-column: 1 / -1; list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; font-size: 13px; } .about-list li { border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; display: grid; gap: 6px; } .about-list span { color: var(--stagemist); font-size: 10.5px; letter-spacing: .14em; }

/* 문의 */
.contact { padding: 180px var(--gutR) 120px var(--gut); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 48px; align-items: start; }
.contact-head { display: grid; gap: 28px; } .contact .big-word { font-size: clamp(72px, 13vw, 210px); }
.contact-ways { display: grid; gap: 8px; max-width: 420px; }
.way { text-align: left; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 4px; cursor: pointer; font: 600 17px var(--kr); font-weight: 600; transition: background .3s, color .3s; } .way span { font-size: 10.5px; color: var(--mist); letter-spacing: .14em; font-weight: 400; } .way:hover { background: var(--ink); color: var(--paper); } .way:hover span { color: var(--stagemist); }
.contact-box { background: var(--paper); border-radius: var(--r); padding: 28px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 22px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 12px; padding: 4px; gap: 4px; } .seg button { border: 0; background: none; padding: 12px; border-radius: 9px; font: 600 15px var(--kr); letter-spacing: -0.01em; cursor: pointer; color: var(--mist); } .seg button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 2px 8px rgba(11,12,16,.08); }
.cform { display: grid; gap: 16px; } .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cform label, .cform fieldset { display: grid; gap: 6px; font-size: 13px; color: var(--mist); border: 0; padding: 0; margin: 0; min-width: 0; } .cform legend { padding: 0; margin-bottom: 6px; }
.cform input, .cform textarea, .cform select { width: 100%; border: 0; background: var(--bg); border-radius: 12px; padding: 13px 14px; font-size: 16px; color: var(--ink); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background .2s; }
.cform input:focus, .cform textarea:focus, .cform select:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--blue); }
.cform textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
/* 드롭다운: appearance none + 커스텀 chevron, 오른쪽 여백 38px, 화살표 right 14px */
.select { position: relative; display: block; } .select select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; text-overflow: ellipsis; }
.select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 12px; height: 8px; margin-top: -4px; pointer-events: none; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%230b0c10' stroke-width='1.6' stroke-linecap='round'/></svg>") no-repeat center; }
.cform .chips button { font-size: 14px; padding: 10px 14px; background: var(--bg); box-shadow: none; }
.cform .chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.meet { display: grid; gap: 10px; } .meet > p { font-size: 11px; color: var(--mist); letter-spacing: .1em; }
.days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .days::-webkit-scrollbar { display: none; }
.days button { flex: none; border: 0; width: 58px; padding: 10px 0; border-radius: 12px; background: var(--bg); display: grid; gap: 2px; justify-items: center; cursor: pointer; font-size: 11px; color: var(--mist); } .days button b { font-size: 18px; color: var(--ink); font-family: var(--sans); }
.days button[aria-pressed="true"] { background: var(--ink); color: var(--stagemist); } .days button[aria-pressed="true"] b { color: var(--paper); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; } .slots button { border: 0; padding: 10px 0; border-radius: 10px; background: var(--bg); font: 500 13px var(--mono); cursor: pointer; } .slots button[aria-pressed="true"] { background: var(--blue); color: var(--onblue); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-err { color: #d23b2c; font-size: 13px; } .form-note { font-size: 12px; color: var(--mist); }
.sent { display: grid; gap: 12px; justify-items: start; padding: 40px 0; } .sent b { font: 600 40px var(--kr); letter-spacing: -0.04em; } .sent p { color: var(--mist); }

/* 푸터 */
.foot { background: var(--ink); color: var(--paper); padding: 72px var(--gutR) calc(28px + env(safe-area-inset-bottom, 0px)) var(--gut); overflow: hidden; }
.foot-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; } .foot-top p { font-size: 18px; color: #c7cbd9; } .foot-top nav { display: flex; gap: 6px 10px; font-size: 13px; flex-wrap: wrap; } .foot-top nav a, .foot-bot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; } .foot-top nav a:hover { color: var(--blue2); }
.foot-word { font: 700 clamp(120px, 27vw, 440px)/.82 var(--sans); letter-spacing: -0.07em; margin: 60px 0 20px -0.04em; background: linear-gradient(180deg, #eef0f6 30%, #2433ff 140%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-bot { display: flex; justify-content: space-between; font-size: 11px; color: var(--stagemist); gap: 12px; flex-wrap: wrap; }

/* 레퍼런스 상세 */
.case { position: fixed; inset: 0; z-index: 70; }
.case-scrim { position: absolute; inset: 0; background: rgba(11,12,16,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s; }
.case-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(920px, 100%); background: var(--paper); overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); transition: transform .7s var(--ease); padding: calc(28px + env(safe-area-inset-top, 0px)) max(28px, env(safe-area-inset-right, 0px)) 60px 36px; display: grid; gap: 28px; align-content: start; }
.case.open .case-scrim { opacity: 1; } .case.open .case-panel { transform: none; }
.case-top { display: flex; justify-content: space-between; align-items: center; } .case-top .mono { font-size: 11px; color: var(--mist); letter-spacing: .12em; }
.case h2 { font-size: clamp(36px, 5vw, 64px); } .case .lede { font-size: 19px; line-height: 1.6; letter-spacing: -0.02em; max-width: 60ch; }
.case-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); } .case-facts div { padding: 16px 16px 16px 0; display: grid; gap: 6px; border-bottom: 1px solid var(--line); } .case-facts span { font: 400 10.5px var(--mono); color: var(--mist); letter-spacing: .12em; } .case-facts b { font-size: 14px; font-weight: 600; }
.case-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; } .case-cols h3 { font-size: 15px; margin-bottom: 10px; color: var(--blue); font-family: var(--mono); letter-spacing: .06em; font-weight: 500; } .case-cols ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; } .case-cols p { font-size: 15px; color: var(--ink2); }
.case-shots { display: grid; gap: 14px; } .case-shots img { border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -30px rgba(11,12,16,.4); width: 100%; background: var(--bg); }
.case-note { font-size: 12px; color: var(--mist); }

/* 채팅 — 라운드 사각형 버튼 */
.chat-fab { position: fixed; z-index: 60; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); height: 54px; padding: 0 22px 0 18px; border: 0; border-radius: 14px; background: var(--ink); color: var(--paper); font: 600 15px var(--kr); display: inline-flex; align-items: center; gap: 10px; cursor: pointer; box-shadow: 0 18px 40px -16px rgba(11,12,16,.6); transition: background .3s, transform .3s var(--ease); }
.chat-fab:hover { background: var(--blue); }
.chat-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(31,164,99,.3); animation: pulse 2s infinite; }
.chat { position: fixed; z-index: 61; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(max(20px, env(safe-area-inset-bottom, 0px)) + 64px); width: min(380px, calc(100vw - 40px)); height: min(560px, calc(100svh - 120px)); background: var(--paper); border-radius: 20px; box-shadow: 0 40px 80px -30px rgba(11,12,16,.5), inset 0 0 0 1px var(--line); display: grid; grid-template-rows: auto 1fr auto auto; overflow: hidden; transform-origin: bottom right; animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.chat header { background: var(--ink); color: var(--paper); padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; } .chat header div { display: grid; gap: 2px; } .chat header b { font: 700 16px var(--sans); letter-spacing: -0.03em; } .chat header .mono { font-size: 10.5px; color: var(--stagemist); display: inline-flex; gap: 6px; align-items: center; } .chat header .mono i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.chat-x { border: 0; background: rgba(255,255,255,.1); color: var(--paper); border-radius: 9px; padding: 7px 10px; font-size: 12px; cursor: pointer; }
.chat-body { overflow-y: auto; padding: 16px; display: grid; align-content: start; gap: 10px; overscroll-behavior: contain; }
.bub { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; } .bub small { display: block; font: 400 10px var(--mono); opacity: .55; margin-top: 4px; }
.bub.them { background: var(--bg); justify-self: start; border-bottom-left-radius: 4px; } .bub.me { background: var(--blue); color: var(--onblue); justify-self: end; border-bottom-right-radius: 4px; } .bub.sys { justify-self: center; background: none; color: var(--mist); font-size: 12px; text-align: center; }
.chat-who { display: grid; grid-template-columns: 1fr 1.3fr; gap: 6px; padding: 0 12px 8px; } .chat-who input { border: 0; background: var(--bg); border-radius: 10px; padding: 9px 10px; font-size: 13px; min-width: 0; }
.chat-in { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); align-items: end; } .chat-in textarea { flex: 1; border: 0; background: var(--bg); border-radius: 12px; padding: 10px 12px; font-size: 15px; resize: none; max-height: 120px; line-height: 1.45; } .chat-in textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--blue); }

/* 반응형 */
@media (max-width: 1080px) {
  .nav-tag, .nav-status { display: none; } .nav { grid-template-columns: auto 1fr; } .nav-r { justify-self: end; }
  .hero-head, .sec-head, .contact { grid-template-columns: 1fr; } .contact-box { max-width: 640px; }
  .plans, .steps { grid-template-columns: 1fr 1fr; } .numbers { grid-template-columns: 1fr 1fr; } .num:nth-child(2) { border-right: 0; } .num:nth-child(3) { padding-left: 0; } .num:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about-card { grid-template-columns: 1fr; } .about-role { padding: 0; }
}
@media (max-width: 720px) {
  :root { --r: 18px; }
  .nav .btn-dark { display: none; }
  .hero { padding-top: calc(86px + env(safe-area-inset-top, 0px)); } .hero-stage { height: 70svh; min-height: 480px; }
  .dial { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 14px 16px; } .hero-readout { top: 46px; right: 16px; bottom: auto; } .tap-spout { width: 90px; }
  .hero-foot span:nth-child(n+4) { display: none; }
  .statement { padding: 110px var(--gutR) 100px var(--gut); } .ribbon path { stroke-width: 18; }
  .work-grid, .plans, .steps, .case-cols, .row2 { grid-template-columns: 1fr; } .work-grid { gap: 40px; }
  .cap-pin { height: auto; padding: 60px 0 0; overflow: visible; } .cap-track { width: auto; flex-direction: column; height: auto; } .panel { width: 100%; height: 560px; }
  .demo-web { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; } .code { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .about-list { grid-template-columns: 1fr; } .case-facts { grid-template-columns: 1fr 1fr; } .case-panel { padding-left: 20px; padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  /* 모바일 메뉴: 하단 정렬 대신 상단(헤더 바로 아래)부터 — 위쪽 빈 공간 제거, 7개 항목이 한 화면에 들어오게, 넘치면 스크롤 */
  .menu { grid-template-columns: 1fr; align-content: start; padding-top: calc(80px + env(safe-area-inset-top, 0px)); padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; } .menu-side { display: none; }
  .menu-links { align-content: start; gap: 2px; } .menu-links a { font-size: clamp(30px, 9vw, 44px); line-height: 1.15; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .chat-fab span + * { } .chat { right: 12px; left: 12px; width: auto; bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) + 64px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .loader { display: none; } body.is-loading { overflow: auto; } .mq-track { animation: none; }
}

/* FLOW Office 미니: 가상의 문서 편집 (실제 장표 대신) */
.mo { position: absolute; inset: 0; display: grid; grid-template-rows: 34px 1fr; background: #0b0c10; }
.mo-top { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 132px; background: #15171e; border-bottom: 1px solid #262a35; }
.mo-top i { width: 16px; height: 16px; border-radius: 4px; background: #262a35; } .mo-top i.w { background: #2433ff; }
.mo-sep { width: 1px; height: 16px; background: #262a35; margin: 0 2px; }
.mo-save { margin-left: auto; font: 600 10px var(--kr); color: #fff; background: #2433ff; padding: 4px 10px; border-radius: 7px; }
.mo-body { display: grid; grid-template-columns: 22% 1fr; min-height: 0; }
.mo-side { background: #15171e; border-right: 1px solid #262a35; padding: 12px 10px; display: grid; align-content: start; gap: 10px; }
.mo-th { aspect-ratio: 16 / 10; background: #fff; border-radius: 4px; padding: 6px; display: grid; align-content: start; gap: 4px; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .3s; }
.mo-th.on { outline-color: #2433ff; } .mo-th b { height: 5px; width: 60%; background: #0b0c10; border-radius: 2px; } .mo-th s { height: 3px; background: #d8dbe6; border-radius: 2px; } .mo-th u { height: 12px; width: 70%; background: #c9cdfc; border-radius: 2px; }
.mo-stage { position: relative; padding: 18px; background: radial-gradient(90% 90% at 50% 0%, #1a1d27, #0b0c10); display: grid; place-items: center; min-width: 0; }
.mo-page { position: relative; width: 100%; height: 100%; max-height: 100%; background: #fff; border-radius: 6px; padding: 18px 20px; display: grid; grid-template-rows: auto auto 1fr; gap: 12px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.7); }
.mo-title { font: 700 clamp(14px, 1.7vw, 20px)/1.2 var(--kr); color: #0b0c10; letter-spacing: -0.03em; min-height: 1.3em; }
.mo-caret { display: inline-block; width: 2px; height: 1em; background: #2433ff; vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.mo-lines { display: grid; gap: 6px; } .mo-lines s { height: 6px; background: #e3e6ef; border-radius: 3px; }
.mo-chart { display: flex; align-items: end; gap: 10px; padding-top: 6px; border-bottom: 2px solid #e3e6ef; min-height: 0; }
.mo-chart i { flex: 1; height: var(--h); background: #c9cdfc; border-radius: 4px 4px 0 0; transition: height .8s var(--ease); } .mo-chart i.hl { background: #2433ff; }
.mo-sel { position: absolute; left: 16px; top: 14px; width: 60%; height: 34px; border: 1.5px solid #2433ff; border-radius: 3px; pointer-events: none; transition: all .55s var(--ease); }
.mo-sel em { position: absolute; width: 7px; height: 7px; background: #fff; border: 1.5px solid #2433ff; border-radius: 2px; } .mo-sel em:nth-child(1) { left: -4px; top: -4px; } .mo-sel em:nth-child(2) { right: -4px; top: -4px; } .mo-sel em:nth-child(3) { left: -4px; bottom: -4px; } .mo-sel em:nth-child(4) { right: -4px; bottom: -4px; }
.mo-tip { position: absolute; left: 0; top: -26px; font: 600 9.5px var(--kr); color: #fff; background: #0b0c10; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }

/* FLOW Assistant 미니: 에이전트 오케스트레이션 (인물 이미지 대신) */
.mor { position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, #1a1e36, #0b0c10); overflow: hidden; }
.mor-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.mor-lines path { fill: none; stroke: rgba(111,124,255,.28); stroke-width: 1.5; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.mor-lines path.go { stroke: #6f7cff; stroke-dasharray: 10 300; animation: flowline 1.2s linear; }
@keyframes flowline { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -300; } }
.mor-node { position: absolute; transform: translate(-50%, -50%); min-width: 26%; padding: 8px 12px; border-radius: 12px; background: #15171e; box-shadow: inset 0 0 0 1px #262a35; display: grid; gap: 2px; text-align: center; transition: background .3s, box-shadow .3s; }
.mor-node b { font: 600 12px var(--kr); color: #eef0f6; } .mor-node span { font: 500 9.5px var(--mono); color: #8b90a3; letter-spacing: .06em; }
.mor-node.work { box-shadow: inset 0 0 0 1.5px #6f7cff, 0 0 24px rgba(111,124,255,.35); } .mor-node.work span { color: #9aa5ff; }
.mor-node.done { background: #2433ff; box-shadow: none; } .mor-node.done span, .mor-node.done b { color: #fff; }
.mor-hub { left: 50%; top: 50%; min-width: 30%; padding: 12px 16px; background: #2433ff; box-shadow: 0 0 0 6px rgba(36,51,255,.18); } .mor-hub b { color: #fff; font-size: 14px; letter-spacing: -0.02em; } .mor-hub span { color: #c9cdfc; }
.mor-hub.pulse { box-shadow: 0 0 0 14px rgba(36,51,255,.10), 0 0 30px rgba(36,51,255,.6); }
.mor-log { position: absolute; left: 12px; bottom: 10px; right: 12px; font-size: 10px; line-height: 1.6; color: #8b90a3; pointer-events: none; } .mor-log b { color: #9aa5ff; font-weight: 500; }

/* 선언문: 외곽선 글자가 스크롤에 따라 잔처럼 채워진다 (줄마다 순서대로) */
.fill-word .line > span { color: transparent; -webkit-text-stroke: 2px var(--ink); background: linear-gradient(90deg, var(--ink) var(--f, 0%), transparent var(--f, 0%)); -webkit-background-clip: text; background-clip: text; }
.gauge { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .14em; color: var(--mist); margin-bottom: 28px; }
.gauge b { font: 500 13px var(--mono); color: var(--ink); min-width: 3ch; } .gauge i { width: min(260px, 40vw); height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; } .gauge em { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 3px; }
@media (max-width: 720px) { .fill-word .line > span { -webkit-text-stroke-width: 1.4px; } }
@media (prefers-reduced-motion: reduce) { .fill-word .line > span { --f: 100%; } }

/* FLOW Office 미니 v2: 한 앱에서 PPT·PDF·한글 새 문서 → 편집 → 원본 형식 저장 */
.mo-top { gap: 10px; padding-right: 10px; }
.mo-tabs { display: flex; gap: 4px; min-width: 0; overflow: hidden; flex: 1; }
.mo-tab { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; font: 500 11.5px var(--kr); color: #8b90a3; white-space: nowrap; animation: rise .35s var(--ease) both; }
.mo-tab.on { background: #262a35; color: #eef0f6; box-shadow: inset 0 2px 0 #6f7cff; }
.mo-tab em, .mo-toast em { font: 700 9px var(--mono); font-style: normal; letter-spacing: .06em; padding: 2px 5px; border-radius: 4px; color: #fff; }
.f-pptx { background: #e8622c; } .f-pdf { background: #d63c3c; } .f-hwpx { background: #2b6fe0; }
.mo-new { position: relative; font: 600 12px var(--kr); color: #eef0f6; padding: 6px 10px; border-radius: 8px; background: #1c1f28; box-shadow: inset 0 0 0 1px #262a35; white-space: nowrap; transition: background .2s; }
.mo-new.open { background: #2433ff; box-shadow: none; }
.mo-menu { position: absolute; right: 0; top: calc(100% + 6px); display: grid; gap: 2px; padding: 5px; border-radius: 10px; background: #15171e; box-shadow: 0 16px 30px -10px rgba(0,0,0,.6), inset 0 0 0 1px #262a35; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .2s, transform .2s; z-index: 3; }
.mo-new.open .mo-menu { opacity: 1; transform: none; }
.mo-menu i { font: 500 12px var(--kr); font-style: normal; color: #c7cbd9; padding: 6px 14px 6px 10px; border-radius: 7px; white-space: nowrap; } .mo-menu i.hl { background: #2433ff; color: #fff; }
.mo-save { margin-left: 0; font: 600 12px var(--kr); padding: 6px 14px; border-radius: 8px; transition: background .2s; } .mo-save.busy { background: #6f7cff; }
.mo-th.t-pptx { aspect-ratio: 16 / 10; } .mo-th.t-pdf, .mo-th.t-hwpx { aspect-ratio: 3 / 4; max-height: 64px; }
.mo-stage { padding: 16px; }
.mo-page { position: relative; transition: aspect-ratio .4s; overflow: visible; }
.mo-page.p-pptx { aspect-ratio: 16 / 9; width: 100%; height: auto; max-height: 100%; } .mo-page.p-pdf, .mo-page.p-hwpx { aspect-ratio: 3 / 4; height: 100%; width: auto; max-width: 100%; }
.mo-page.edit::after { content: attr(data-tip); position: absolute; left: 12px; top: -11px; font: 600 10.5px var(--kr); color: #fff; background: #0b0c10; padding: 4px 9px; border-radius: 6px; }
.mo-page.edit { box-shadow: 0 0 0 2px #2433ff, 0 20px 40px -24px rgba(0,0,0,.7); }
.pg-t { display: block; font: 700 clamp(13px, 1.5vw, 18px)/1.25 var(--kr); color: #0b0c10; letter-spacing: -0.03em; min-height: 1.3em; }
.pg-t::after { content: ""; display: inline-block; width: 2px; height: 1em; background: #2433ff; vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.pg-ppt { height: 100%; display: grid; grid-template-rows: auto 1fr; gap: 10px; }
.pg-chart { display: flex; align-items: end; gap: 8%; border-bottom: 2px solid #e3e6ef; }
.pg-chart i { flex: 1; height: 6%; background: #c9cdfc; border-radius: 4px 4px 0 0; transition: height .9s var(--ease); } .pg-chart i.hl { background: #2433ff; }
.pg-pdf, .pg-hwp { height: 100%; display: grid; align-content: start; gap: 12px; }
.pg-lines { display: grid; gap: 7px; } .pg-lines s { height: 6px; background: #e3e6ef; border-radius: 3px; position: relative; }
.pg-lines s.mark::after { content: ""; position: absolute; left: -2px; top: -3px; bottom: -3px; width: 0; background: rgba(255, 214, 0, .55); border-radius: 2px; transition: width .9s var(--ease); } .pg-lines s.mark.on::after { width: 80%; }
.pg-sign { display: flex; align-items: end; gap: 10px; margin-top: 10px; font: 500 10px var(--kr); color: #8b90a3; }
.pg-sign em { width: 60%; height: 24px; border-bottom: 1.5px solid #c9cdda; position: relative; }
.pg-sign em::after { content: "이현석"; position: absolute; left: 8px; bottom: 2px; font: italic 600 15px "Apple SD Gothic Neo", serif; color: #2433ff; opacity: 0; transform: translateY(4px); transition: opacity .5s, transform .5s; } .pg-sign em.on::after { opacity: 1; transform: none; }
.pg-tbl { width: 100%; border-collapse: collapse; font: 500 10px var(--kr); color: #0b0c10; }
.pg-tbl th, .pg-tbl td { border: 1px solid #d8dbe6; padding: 5px 6px; height: 22px; text-align: left; } .pg-tbl th { background: #eef0f6; font-weight: 700; }
.pg-tbl td:not(:empty) { animation: cellin .4s var(--ease); } @keyframes cellin { from { background: #e3e6ff; } }
.mo-toast { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 10px); display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 10px; background: #0b0c10; color: #eef0f6; font: 600 12px var(--kr); box-shadow: 0 14px 30px -10px rgba(0,0,0,.6), inset 0 0 0 1px #262a35; opacity: 0; transition: opacity .3s, transform .3s; white-space: nowrap; }
.mo-toast.show { opacity: 1; transform: translate(-50%, 0); }
.mo-page.p-pptx, .mo-page.p-pdf, .mo-page.p-hwpx { display: block; padding: 16px 18px; }
.pg-ppt { height: 100%; } .pg-chart { height: calc(100% - 34px); }

/* 상세 창·채팅: 부드러운 스크롤(Lenis)에서 제외 + 터치 스크롤 (Codex 패치 중 스크롤 수정만 반영) */
.case-panel { touch-action: pan-y; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; }
.chat-body { touch-action: pan-y; -webkit-overflow-scrolling: touch; }

/* 사이드 창이 열린 동안 본문 잠금 */
html.page-locked, html.page-locked body { overflow: hidden !important; overscroll-behavior: none; }
html.page-locked body { padding-right: var(--sbw, 0px); }
html.page-locked .nav, html.page-locked .chat-fab { margin-right: var(--sbw, 0px); }
.case-panel { display: block; overscroll-behavior: contain; }
.case-inner { display: grid; gap: 28px; align-content: start; }
.case-scrim { touch-action: none; }

/* 썸네일: 자르지 않고 전체 화면을 보여 줌 (연한 배경 위 떠 있는 화면) */
.work-media:not(:has(.mini)):not(:has(.mo)):not(:has(.mor)) { background: radial-gradient(120% 100% at 50% 0%, #f4f5fa, #dfe2ec); }
.work-media img, .work-media.fit img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 7% 7% 7%; transform: none; filter: drop-shadow(0 18px 30px rgba(11,12,16,.18)); transition: transform 1s var(--ease); }
.work:hover .work-media img, .work:hover .work-media.fit img { transform: scale(1.025); }

/* 상단 다운로드 버튼: 좁은 화면은 메뉴 안에서만 */
@media (max-width: 560px) { .nav-dl { display: none; } }

/* 하단: 왼쪽 정렬 · 읽기 쉬운 본문 글꼴 (링크 줄 + 사업자 정보) */
.foot .foot-bot { justify-content: flex-start; align-items: center; gap: 6px 22px; font-family: var(--kr); font-size: 13px; letter-spacing: 0; color: #b9bdcc; }
.foot .foot-bot span { color: #8f94a6; }
.foot-biz { margin: 12px 0 0; font-family: var(--kr); font-size: 13px; line-height: 1.75; letter-spacing: 0; color: #a3a8b9; word-break: keep-all; text-align: left; } .foot-biz a { color: inherit; border-bottom: 1px solid currentColor; }
/* 큰 'ONTAP' 장식 글자가 스크롤 애니메이션 중 아래 링크를 덮어 클릭을 가로채지 않게 */
.foot-word { pointer-events: none; position: relative; z-index: 0; }
.foot .foot-bot, .foot-biz { position: relative; z-index: 1; }
