/* =========================================================
   BIX5 공통 베이스 — 구조/레이아웃/접근성/차트 애니메이션
   색·폰트·반경 등 "스킨"은 각 시안의 theme.css 토큰이 결정한다.
   ========================================================= */
:root {
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-display: var(--font);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, monospace;
  --fs-xs: .8125rem; --fs-sm: .9375rem; --fs-md: 1.0625rem; --fs-lg: 1.1875rem; --fs-h3: 1.3125rem;
  --fs-h2: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  --fs-display: clamp(2.6rem, 1.2rem + 5.6vw, 5.75rem);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --section: clamp(88px, 12vw, 160px);
  --gutter: clamp(20px, 4vw, 40px);
  --container: 1240px;
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-btn: 999px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 72px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .4s, color .4s; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -.03em; font-weight: 800; }
:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--text); color: var(--bg); border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }
.nowrap { white-space: nowrap; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section); }
.section--alt { background: var(--bg-alt); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--text-2); }

/* 반전 영역: 토큰을 국소적으로 재정의 */
.inv { --bg: var(--inv-bg); --bg-alt: var(--inv-bg-alt); --surface: var(--inv-surface); --surface-2: var(--inv-surface-2); --text: var(--inv-text); --text-2: var(--inv-text-2); --line: var(--inv-line); --line-strong: var(--inv-line-strong); background: var(--bg); color: var(--text); }

/* ---------- headings ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--kicker, var(--accent)); }
.head { position: relative; max-width: 820px; margin-bottom: clamp(40px, 6vw, 72px); }
.head--center { margin-inline: auto; text-align: center; }
.head h2 { margin-top: var(--s4); font-size: var(--fs-h2); }
.head p { margin-top: var(--s5); font-size: var(--fs-lg); color: var(--text-2); line-height: 1.7; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5) var(--s7); flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 64px); }
.head-row .head { margin-bottom: 0; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: var(--r-btn); border: 1px solid transparent; font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s, background-color .2s, border-color .2s, color .2s; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: var(--fs-xs); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr, .link:hover .arr { transform: translateX(4px); }
.btn--primary { background: var(--btn-bg, var(--accent)); background-origin: border-box; color: var(--btn-fg, #fff); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--btn-shadow, var(--shadow-lg)); }
.btn--secondary { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn--secondary:hover { border-color: var(--text); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--fs-sm); }
.link .arr { transition: transform .25s var(--ease); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s, backdrop-filter .3s; }
.site-header.is-scrolled { background: var(--header-bg); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: var(--s5); height: var(--header-h); }
.logo { position: relative; flex: none; display: block; width: 92px; }
.logo img { width: 92px; height: auto; }
.logo .logo-on-dark { display: none; }
[data-theme="dark"] .logo .logo-on-light { display: none; }
[data-theme="dark"] .logo .logo-on-dark { display: block; }
.gnb { margin-inline: auto; }
.gnb > ul { display: flex; align-items: center; gap: 2px; }
.gnb-item { position: relative; }
.gnb-link { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--r-btn); font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); transition: color .2s, background-color .2s; }
.gnb-link:hover, .gnb-item.is-open > .gnb-link, .gnb-link[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.chev { width: 10px; height: 10px; transition: transform .2s; }
.gnb-item.is-open .chev { transform: rotate(180deg); }
.badge-new { padding: 1px 7px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.dropdown { position: absolute; top: calc(100% + 12px); left: 50%; min-width: 260px; padding: 8px; transform: translate(-50%, -6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.dropdown::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.gnb-item.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: block; padding: 10px 14px; border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.dropdown a small { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--text-2); }
.dropdown a:hover { background: var(--surface-2); }
.ext::after { content: " ↗"; font-size: .85em; color: var(--text-2); }
.header-tools { display: flex; align-items: center; gap: var(--s2); }
.header-cta { display: flex; gap: var(--s2); }
.theme-toggle { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); transition: transform .3s var(--ease), border-color .2s; }
.theme-toggle:hover { border-color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; transition: transform .5s var(--ease), opacity .3s; }
.theme-toggle .i-moon { position: absolute; opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme="dark"] .theme-toggle .i-sun { opacity: 0; transform: rotate(90deg) scale(.5); }
[data-theme="dark"] .theme-toggle .i-moon { opacity: 1; transform: none; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; margin: auto; background: var(--text); position: relative; border-radius: 2px; transition: transform .25s, background-color .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .gnb, .header-cta { display: none; }
  .header-tools { margin-left: auto; }
  .nav-open .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; } /* backdrop-filter가 있으면 fixed 메뉴가 헤더 기준으로 갇혀 스크롤 생김 */
  .nav-open .gnb { display: block; position: fixed; inset: var(--header-h) 0 0; margin: 0; padding: 8px var(--gutter) 140px; overflow-y: auto; background: var(--bg); }
  .nav-open .gnb > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 0; background: none; }
  .nav-open .gnb-item { border-bottom: 1px solid var(--line); }
  .nav-open .gnb-link { width: 100%; height: 60px; justify-content: space-between; padding: 0 4px; font-size: var(--fs-lg); color: var(--text); background: none; box-shadow: none; }
  .nav-open .dropdown { position: static; display: none; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 12px; min-width: 0; background: none; }
  .nav-open .gnb-item.is-open .dropdown { display: block; }
  .nav-open .header-cta { display: flex; position: fixed; inset: auto 0 0; z-index: 3; padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
  .nav-open .header-cta .btn { flex: 1; min-height: 50px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- 영상 ---------- */
.video-box { position: relative; overflow: hidden; aspect-ratio: 1920 / 500; background: #0a090c center / cover no-repeat; }
.video-box video { width: 100%; height: 100%; object-fit: cover; }
.video-toggle { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(7, 7, 12, .6); backdrop-filter: blur(8px); color: #fff; font-size: 12px; font-weight: 600; }
.video-toggle svg { width: 12px; height: 12px; }
@media (max-width: 640px) { .video-box--crop { aspect-ratio: 16 / 9; } .video-box--crop video { object-position: 70% center; } }
/* 시안 I~L: 영상 안에 문구가 있으므로 자르지 않고 원본 비율(1920:500) 그대로. 영상 칸에는 이 webm 만 반복 재생(다른 장면으로 바꾸지 않음). */

/* ---------- 첫 화면 높이 맞춤 (시안 I~L) ----------
   실제 브라우저는 주소창·탭 때문에 보이는 높이가 약 650~950px. 첫 화면을 100svh 그리드로 만들고
   영상 칸(.vfit)은 남은 높이에 맞춰 원본 비율로 줄어들게 해서 헤더·제목·버튼·영상이 한 화면에 들어오게 한다. */
.vfit { container-type: size; display: grid; place-items: center; min-height: 150px; }
.vfit > * { width: min(100cqw, calc(100cqh * var(--ar, 3.84))); }
.hero-fit { height: 100svh; min-height: 600px; display: grid; grid-template-rows: auto minmax(0, 1fr); }
@media (max-width: 760px) {
  .hero-fit { height: auto; min-height: 0; }
  .vfit { container-type: normal; min-height: 0; }
  .vfit > * { width: 100%; }
}

/* ---------- 로고 마퀴 ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: var(--s3); }
.marquee-track { display: flex; gap: var(--s3); width: max-content; animation: marquee 90s linear infinite; }
.marquee--rev .marquee-track { animation-direction: reverse; animation-duration: 100s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ref-logo { flex: none; display: grid; place-items: center; width: 168px; height: 60px; padding: 8px 16px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); }
.ref-logo img { max-height: 40px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.ref-logo:hover img { filter: none; opacity: 1; }
.ref-grid { display: none; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); }
.refs.is-expanded .ref-grid { display: grid; }
.refs.is-expanded .ref-marquees { display: none; }
.ref-grid .ref-logo { width: auto; }
.center { display: flex; justify-content: center; margin-top: var(--s6); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(28px, 4vw, 48px) clamp(16px, 2.5vw, 32px); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.5rem, 1.6rem + 3vw, 4.25rem); font-weight: 800; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.stat b sup { font-size: .4em; vertical-align: top; position: relative; top: .25em; margin-left: 4px; letter-spacing: 0; color: var(--accent); }
.stat > span { display: block; margin-top: var(--s4); font-size: var(--fs-sm); color: var(--text-2); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 라이브 차트 그리드 ---------- */
.chart-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.chart-card { position: relative; display: flex; flex-direction: column; padding: var(--s5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.chart-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.chart-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chart-card h3 { font-size: var(--fs-md); letter-spacing: -.01em; }
.chart-card .count { font-size: 12px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.chart-card .new { padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.chart-card .viz { margin-top: var(--s4); aspect-ratio: 4 / 3; }
.chart-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: var(--s7); }
.chart-names li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
@media (max-width: 1024px) { .chart-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .chart-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s3); } .chart-card { padding: var(--s4); } }

/* SVG 차트 (shared/js/charts.js 가 생성) */
.viz svg { width: 100%; height: 100%; overflow: visible; }
.viz .axis { stroke: var(--chart-grid, var(--line)); stroke-width: .5; }
.viz text { fill: var(--text-2); font-family: var(--font); }
.viz .draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); transition: stroke-dashoffset 1.6s var(--ease); }
.viz .dseg { stroke-dashoffset: var(--seg); transition: stroke-dashoffset 1.4s var(--ease); }
.viz .grow { transform: scaleY(0); transform-box: fill-box; transform-origin: bottom; transition: transform 1s var(--ease); }
.viz .pop { transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform .8s var(--ease); }
.viz .fade { opacity: 0; transition: opacity 1s .4s; }
.viz .needle { transform: rotate(-90deg); transform-origin: 50px 52px; transition: transform 1.6s cubic-bezier(.3, 1.4, .5, 1); }
.is-drawn .draw, .is-drawn .dseg { stroke-dashoffset: 0; }
.is-drawn .grow, .is-drawn .pop { transform: none; }
.is-drawn .fade { opacity: 1; }
.is-drawn .needle { transform: rotate(var(--deg, 30deg)); }
.viz .eqbar { transform-box: fill-box; transform-origin: bottom; animation: eq 1.4s ease-in-out infinite alternate; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 벤토 (주요 기능) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s4); }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); min-height: 260px; }
.tile h3 { font-size: clamp(1.25rem, 1.05rem + .6vw, 1.625rem); }
.tile p { margin-top: var(--s3); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.7; max-width: 46ch; }
.tile .art { margin-top: auto; padding-top: var(--s5); }
.t-editor { grid-column: span 4; grid-row: span 2; }
.t-html5, .t-device, .t-auth, .t-slide, .t-local { grid-column: span 2; }
.t-connect, .t-widget { grid-column: span 3; }
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-editor, .t-local { grid-column: span 2; grid-row: auto; }
  .t-html5, .t-device, .t-connect, .t-widget, .t-auth, .t-slide { grid-column: span 1; }
}
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento > * { grid-column: auto !important; } .tile { min-height: 0; } }
.editor { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.palette { display: grid; gap: 8px; align-content: start; }
.palette span { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.palette span i { width: 10px; height: 10px; border-radius: 3px; }
.canvas { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 64px; gap: 8px; padding: 8px; border-radius: 10px; background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 14px 14px; }
.canvas .w { position: relative; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.is-in .canvas .w, .canvas.is-in .w { opacity: 1; transform: none; }
.canvas .w:nth-child(1) { grid-column: span 2; transition-delay: .1s; }
.canvas .w:nth-child(2) { transition-delay: .25s; } .canvas .w:nth-child(3) { transition-delay: .4s; }
.canvas .w:nth-child(4) { grid-column: span 3; grid-row: span 2; transition-delay: .55s; }
.canvas .w:nth-child(5) { grid-row: span 2; transition-delay: .7s; }
.canvas .w .viz { position: absolute; inset: 6px; aspect-ratio: auto; }
.canvas .w .kpi { position: absolute; inset: 10px 12px; font-size: 11px; color: var(--text-2); }
.canvas .w .kpi b { display: block; font-size: 20px; color: var(--text); letter-spacing: -.02em; }
.cursor { position: absolute; z-index: 2; width: 20px; height: 20px; left: 30%; top: 40%; color: var(--text); filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); animation: cursor 7s var(--ease) infinite; }
@keyframes cursor { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(140px, -60px); } 60% { transform: translate(60px, 90px); } }
@media (max-width: 640px) { .editor { grid-template-columns: 1fr; } .palette { grid-template-columns: repeat(3, 1fr); } .canvas { grid-auto-rows: 48px; } .cursor { display: none; } }
.big-type { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 4vw, 5rem); font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--text-2); }
.chip i { width: 8px; height: 8px; border-radius: 50%; }
.devices { display: flex; align-items: flex-end; gap: 10px; }
.devices span { border: 2px solid var(--text); border-radius: 8px; background: var(--surface-2); }
.devices .d-pc { width: 120px; height: 76px; } .devices .d-tab { width: 56px; height: 72px; } .devices .d-ph { width: 32px; height: 56px; border-radius: 7px; } .devices .d-tv { width: 92px; height: 56px; }
.hub { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; isolation: isolate; }
.hub-core { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #0b0d17; box-shadow: 0 10px 30px -8px rgba(124, 108, 255, .6); }
.hub-core img { width: 44px; }
.hub .side { display: grid; gap: 6px; justify-items: start; }
.hub .side:last-child { justify-items: end; }
.hub .flow-line { position: absolute; inset: 50% 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--d1), var(--d2), transparent); background-size: 200% 100%; animation: flow 2.4s linear infinite; z-index: -1; }
@keyframes flow { to { background-position: -200% 0; } }

/* ---------- AI 콘솔 ---------- */
.ai-layout { position: relative; display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.ai-steps { display: grid; gap: 4px; margin-top: var(--s6); }
.ai-step { display: grid; grid-template-columns: 36px 1fr; gap: 14px; width: 100%; padding: 16px; border-radius: var(--r-md); text-align: left; border: 1px solid transparent; transition: background-color .25s, border-color .25s; }
.ai-step:hover { background: var(--surface-2); }
.ai-step[aria-pressed="true"] { background: var(--surface-2); border-color: var(--line-strong); }
.ai-step .n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); font-size: 13px; font-weight: 800; color: var(--text-2); }
.ai-step[aria-pressed="true"] .n { background: var(--grad); color: #fff; }
.ai-step strong { display: block; font-size: var(--fs-md); color: var(--text); }
.ai-step span { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--text-2); }
.console { position: relative; border-radius: var(--r-lg); background: var(--console-bg, #0f0f18); color: #f3f3f8; border: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--console-shadow, 0 40px 100px -30px rgba(124, 108, 255, .5)); overflow: hidden; }
.console-top { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 12px; color: #a3a3b8; }
.console-top i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.console-top span { margin-left: 8px; }
.console-top .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #34d399; font-weight: 700; font-style: normal; }
.console-top .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); animation: pulse 1.6s infinite; }
.console-chart { padding: 20px 20px 8px; }
.c-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: #a3a3b8; }
.c-title b { font-size: 15px; color: #fff; }
.console-chart svg { width: 100%; height: auto; margin-top: 12px; overflow: visible; }
.console-chart svg text { fill: #8a8aa0; font-size: 9px; font-family: var(--font); }
.console-chart .gl { stroke: rgba(255, 255, 255, .07); }
.legend { display: flex; gap: 16px; margin-top: 4px; font-size: 12px; color: #a3a3b8; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.console-prompt { display: flex; align-items: center; gap: 12px; margin: 12px 16px 16px; padding: 12px 12px 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); }
.ai-ico { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--grad); color: #fff; }
.ai-ico svg { width: 16px; height: 16px; }
.console-prompt p { flex: 1; min-height: 3.2em; display: flex; align-items: center; font-size: var(--fs-sm); color: #fff; line-height: 1.6; }
.console-prompt p::after { content: "▍"; color: #a99dff; animation: blink 1s steps(1) infinite; }
.console-prompt .send { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: #fff; color: #0b0d17; }
.console-prompt .send svg { width: 16px; height: 16px; }
.console .caption { padding: 0 18px 14px; font-size: 11px; color: rgba(163, 163, 184, .75); }
/* 콘솔 모드 전환 */
[data-c-svg] { --ca: var(--d1); --cb: var(--d2); }
[data-c-svg][data-mode="style"] { --ca: #ff8fb8; --cb: #ffd36e; }
[data-c-svg] .g-bar, [data-c-svg] .g-line, [data-c-svg] .g-area { opacity: 0; transition: opacity .6s var(--ease); }
[data-c-svg] .g-bar rect { transform: scaleY(0); transform-box: fill-box; transform-origin: bottom; transition: transform .8s var(--ease), fill .6s; }
[data-c-svg] .g-line path, [data-c-svg] .g-area .ln { transition: stroke-dashoffset 1.4s var(--ease), stroke .6s; }
[data-c-svg][data-mode="bar"] .g-bar, [data-c-svg][data-mode="style"] .g-bar, [data-c-svg][data-mode="line"] .g-line, [data-c-svg][data-mode="area"] .g-area { opacity: 1; }
[data-c-svg][data-mode="bar"] .g-bar rect, [data-c-svg][data-mode="style"] .g-bar rect { transform: none; }
[data-c-svg][data-mode="line"] .g-line path, [data-c-svg][data-mode="area"] .g-area .ln { stroke-dashoffset: 0 !important; }
[data-c-svg][data-mode="style"] .bg-style { opacity: 1; }
[data-c-svg] .bg-style { opacity: 0; transition: opacity .6s; }
@media (max-width: 960px) { .ai-layout { grid-template-columns: 1fr; } }

/* ---------- 쇼케이스 ---------- */
.filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.filter-btn { height: 38px; padding: 0 16px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); transition: background-color .2s, color .2s; }
.filter-btn:hover { color: var(--text); }
.filter-btn[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.shot { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: #0b0d17; isolation: isolate; aspect-ratio: 16 / 10; }
.shot.is-wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.shot[hidden] { display: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.shot::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 40%, rgba(7, 7, 12, .92)); }
.shot:hover img { transform: scale(1.05); }
.shot-body { position: absolute; inset: auto 0 0; z-index: 2; padding: clamp(18px, 2.4vw, 28px); color: #fff; }
.shot-body .cat { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); font-size: 11px; font-weight: 700; }
.shot-body h3 { margin-top: 10px; font-size: clamp(1.0625rem, 1rem + .4vw, 1.375rem); }
.shot.is-wide .shot-body h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem); }
.shot-body p { margin-top: 4px; font-size: var(--fs-xs); color: rgba(255, 255, 255, .75); }
.shot .open { position: absolute; top: 16px; right: 16px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #0b0d17; opacity: 0; transform: scale(.8) rotate(-45deg); transition: opacity .3s, transform .4s var(--ease); }
.shot:hover .open, .shot:focus-visible .open { opacity: 1; transform: none; }
.shot .open svg { width: 16px; height: 16px; }
@media (max-width: 960px) { .showcase { grid-template-columns: repeat(2, 1fr); } .shot.is-wide { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; } }
@media (max-width: 600px) { .showcase { grid-template-columns: 1fr; } .shot.is-wide { grid-column: auto; } }

/* ---------- 단계 ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 2px; background: var(--grad); opacity: .3; }
.step { position: relative; }
.step::before { counter-increment: s; content: counter(s); position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-strong); font-weight: 800; transition: background-color .3s, color .3s; }
.step:hover::before { background: var(--accent); color: #fff; border-color: transparent; }
.step h3 { margin-top: var(--s5); font-size: var(--fs-h3); }
.step p { margin-top: var(--s3); color: var(--text-2); font-size: var(--fs-sm); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: var(--s7); } .steps::before { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 활용 분야 ---------- */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.ind { position: relative; padding: var(--s5); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease), background-color .3s; }
.ind:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.ind .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--accent); }
.ind .ico svg { width: 22px; height: 22px; }
.ind h3 { margin-top: var(--s5); font-size: var(--fs-md); letter-spacing: -.01em; }
.ind p { margin-top: 6px; font-size: var(--fs-xs); color: var(--text-2); line-height: 1.6; }
@media (max-width: 960px) { .industries { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 인증 ---------- */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.cert { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.cert .mark { display: grid; place-items: center; height: 64px; width: 100px; border-radius: 12px; background: #fff; padding: 6px; }
.cert .mark img { max-height: 52px; width: auto; }
.cert .mark--txt { font-weight: 800; font-size: 13px; color: #cb2160; border: 1px solid #f3d0dd; }
.cert strong { font-size: var(--fs-md); }
.cert span { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--text-2); }
@media (max-width: 960px) { .certs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .certs { grid-template-columns: 1fr; } }
.ref-marquees, .ref-grid { margin-top: var(--s7); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px); border-radius: var(--r-xl); text-align: center; isolation: isolate; }
.cta h2 { font-size: var(--fs-h2); }
.cta p { max-width: 560px; margin: var(--s5) auto 0; font-size: var(--fs-md); color: var(--text-2); }
.cta .actions { justify-content: center; margin-top: var(--s6); }
.cta-contact { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s3) var(--s6); margin-top: var(--s7); padding-top: var(--s6); border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.cta-contact span { color: var(--text-2); margin-right: 8px; }
.cta-contact a:hover { text-decoration: underline; }

/* ---------- footer (항상 어두운 톤) ---------- */
.site-footer { background: var(--footer-bg, #07070c); color: #a3a3b8; font-size: var(--fs-sm); padding-block: var(--s9) var(--s6); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s7); }
.footer-grid h2 { font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #fff; margin-bottom: var(--s5); }
.footer-grid li + li { margin-top: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { width: 108px; margin-bottom: var(--s5); }
.footer-brand address { font-style: normal; line-height: 1.85; }
.footer-cert { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-cert img { height: 40px; width: auto; padding: 5px 8px; background: #fff; border-radius: 8px; }
.footer-cert + p { margin-top: var(--s4); font-size: var(--fs-xs); line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid rgba(255, 255, 255, .08); font-size: var(--fs-xs); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- AI 페이지 공통 ---------- */
.ai-hero { position: relative; overflow: hidden; padding-top: calc(var(--header-h) + clamp(56px, 9vw, 112px)); padding-bottom: clamp(72px, 10vw, 128px); }
.ai-hero .ai-layout { grid-template-columns: 1fr 1.15fr; }
.ai-hero h1 { margin-top: var(--s5); font-size: clamp(2.4rem, 1.2rem + 4.4vw, 4.75rem); line-height: 1.1; letter-spacing: -.045em; }
.ai-hero .lead { margin-top: var(--s5); font-size: var(--fs-lg); color: var(--text-2); line-height: 1.7; }
.ai-hero .actions { margin-top: var(--s6); }
.quote { max-width: 980px; margin-inline: auto; text-align: center; }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem); font-weight: 800; line-height: 1.4; letter-spacing: -.035em; }
.quote figcaption { margin-top: var(--s5); color: var(--text-2); font-size: var(--fs-sm); }
.fit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.fit { padding: var(--s5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.fit:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.fit .n { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent); }
.fit h3 { margin-top: var(--s4); font-size: var(--fs-md); letter-spacing: -.01em; }
.fit p { margin-top: var(--s2); font-size: var(--fs-sm); color: var(--text-2); }
.fit--hero { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; position: relative; overflow: hidden; }
.fit--hero h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); }
.fit--hero p { font-size: var(--fs-md); }
@media (max-width: 1024px) { .fit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fit-grid { grid-template-columns: 1fr; } .fit--hero { grid-column: auto; } }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.tri-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.tri-card .ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #fff; }
.tri-card .ico svg { width: 22px; height: 22px; }
.tri-card h3 { margin-top: var(--s5); font-size: var(--fs-h3); }
.tri-card p { margin-top: var(--s3); color: var(--text-2); font-size: var(--fs-sm); }
@media (max-width: 860px) { .tri { grid-template-columns: 1fr; } }
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; scrollbar-width: none; margin-bottom: var(--s6); }
.tab { flex: none; height: 40px; padding: 0 18px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); transition: background-color .2s, color .2s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--text); color: var(--bg); }
.tab-panel { display: grid; grid-template-columns: 380px 1fr; gap: var(--s6); padding: clamp(20px, 3vw, 36px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: var(--fs-h3); }
.tab-panel .desc { margin-top: var(--s3); font-size: var(--fs-sm); color: var(--text-2); }
.prompt { margin-top: var(--s4); padding: 14px 16px; border-radius: 14px; background: #0f0f18; color: #fff; font-size: var(--fs-sm); line-height: 1.6; }
.prompt::before { content: "PROMPT"; display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #a99dff; }
.prompt + .prompt { margin-top: var(--s2); }
.tab-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); align-content: start; }
.tab-shots figure { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.tab-shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 8px; }
.tab-shots figcaption { padding: 10px 14px; font-size: var(--fs-xs); font-weight: 600; color: #3b4054; border-top: 1px solid #e7e8f0; background: #f6f7fb; }
.tab-shots .span-all { grid-column: 1 / -1; }
.tab-shots .span-all img { aspect-ratio: auto; }
@media (max-width: 960px) { .tab-panel { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .tab-shots { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split h2 { font-size: var(--fs-h2); margin-top: var(--s4); }
.split .desc { margin-top: var(--s5); font-size: var(--fs-lg); color: var(--text-2); line-height: 1.7; }
.frame { border-radius: var(--r-lg); padding: 8px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.frame img { border-radius: calc(var(--r-lg) - 8px); width: 100%; }
.flow { display: grid; gap: 10px; margin-top: var(--s6); counter-reset: f; }
.flow li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: var(--fs-sm); }
.flow li::before { counter-increment: f; content: "0" counter(f); font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent); }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.duo-card { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.duo-card .tag, .case .tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--accent); }
.duo-card h3 { margin-top: var(--s4); font-size: var(--fs-h3); }
.duo-card p { margin-top: var(--s3); color: var(--text-2); font-size: var(--fs-sm); }
.duo-card img { margin-top: var(--s5); border-radius: var(--r-md); border: 1px solid var(--line); }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }
.case { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 64px); padding: clamp(28px, 5vw, 56px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.case h3 { margin-top: var(--s4); font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); }
.case p { margin-top: var(--s4); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.8; }
.case .source { margin-top: var(--s5); font-size: var(--fs-xs); }
.case .source a { text-decoration: underline; }
.checks { display: grid; gap: var(--s3); align-content: center; }
.checks li { display: flex; gap: 12px; padding: 16px; border-radius: 14px; background: var(--surface-2); font-size: var(--fs-sm); }
.checks li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }

/* ---------- AI 페이지 구성 변형 (시안마다 _src/<시안>/ai-page.html 에서 조합) ----------
   첫 화면 6종(ai-hero--split·center·video·chat·type·mosaic), AI 적합도 배치 6종(fit-grid--bento·grid·list·sticky·orbit·rail),
   구현 화면 5종(p-tabs·p-story·p-chat·zz·p-rail), 자동 구성(split--rev·stack), AI 분석(duo--stack) */
.ai-hero--center { text-align: center; }
.ai-center-copy { max-width: 920px; margin-inline: auto; }
.ai-hero--center .lead { max-width: 44em; margin-inline: auto; }
.ai-hero--center .actions { justify-content: center; }
.ai-tilt { margin-top: clamp(40px, 6vw, 72px); perspective: 1600px; }
.ai-tilt .frame { max-width: 1120px; margin-inline: auto; transform: rotateX(16deg) scale(.94); transform-origin: 50% 100%; transition: transform 1.4s var(--ease); }
.ai-tilt.is-in .frame { transform: none; }
.ai-video-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s5) clamp(32px, 5vw, 72px); align-items: end; }
.ai-hero--video .lead { margin-top: 0; }
.ai-video-wrap { margin-top: clamp(32px, 5vw, 56px); }
.ai-video-wrap .video-box { border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.ai-chat { display: grid; gap: 12px; padding: clamp(14px, 2vw, 20px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.ai-chat-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 800; }
.ai-chat-top small { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--text-2); }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.bubble { max-width: 86%; margin: 0; padding: 11px 15px; border-radius: 18px; font-size: var(--fs-sm); line-height: 1.55; }
.bubble--me { justify-self: end; border-bottom-right-radius: 6px; background: var(--text); color: var(--bg); }
.bubble--ai { justify-self: start; padding: 8px; border-bottom-left-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.bubble--ai > b { display: block; margin: 2px 6px 8px; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--accent); }
.bubble--ai > img { width: 100%; border-radius: 10px; background: #fff; }
.ai-chat .bubble--ai { max-width: 70%; }
.ai-chat > .bubble { animation: ai-pop .6s var(--ease) both; }
.ai-chat > .bubble:nth-child(3) { animation-delay: .6s; }
.ai-chat > .bubble:nth-child(4) { animation-delay: 1.2s; }
.ai-chat > .bubble:nth-child(5) { animation-delay: 1.8s; }
@keyframes ai-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.ai-hero--type h1 { max-width: 12em; font-size: clamp(2.6rem, .8rem + 6.4vw, 7.5rem); line-height: 1.04; letter-spacing: -.055em; }
.ai-type-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, .9fr); gap: var(--s5) clamp(24px, 4vw, 56px); align-items: end; margin-top: clamp(32px, 5vw, 64px); padding-top: var(--s5); border-top: 1px solid var(--line); }
.ai-type-row .lead, .ai-type-row .actions { margin-top: 0; }
.ai-chips { margin-top: clamp(28px, 4vw, 48px); }
.ai-chips-label { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.ai-chips ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ai-chips li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-xs); color: var(--text-2); animation: ai-pop .6s var(--ease) both; }
.ai-chips li::before { content: "› "; font-weight: 800; color: var(--accent); }
.ai-chips li:nth-child(2) { animation-delay: .1s; } .ai-chips li:nth-child(3) { animation-delay: .2s; } .ai-chips li:nth-child(4) { animation-delay: .3s; } .ai-chips li:nth-child(5) { animation-delay: .4s; }
.ai-mosaic { position: relative; aspect-ratio: 1.2; }
.ai-mosaic figure { position: absolute; margin: 0; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); animation: ai-bob 7s ease-in-out infinite alternate; }
.ai-mosaic img { width: 100%; border-radius: 9px; }
.ai-mosaic figcaption { position: absolute; left: 12px; top: -12px; padding: 4px 10px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 700; }
.ai-mosaic figure:nth-child(1) { left: 0; top: 6%; width: 56%; }
.ai-mosaic figure:nth-child(2) { right: 0; top: 0; width: 44%; animation-delay: -2s; }
.ai-mosaic figure:nth-child(3) { left: 8%; bottom: 0; width: 46%; animation-delay: -4s; }
.ai-mosaic figure:nth-child(4) { right: 4%; bottom: 8%; width: 42%; animation-delay: -6s; }
@keyframes ai-bob { to { translate: 0 -10px; } }
@media (max-width: 960px) {
  .ai-hero .ai-layout, .ai-video-head, .ai-type-row { grid-template-columns: 1fr; }
  .ai-chat .bubble--ai { max-width: 86%; }
}
@media (prefers-reduced-motion: reduce) { .ai-chat > .bubble, .ai-chips li, .ai-mosaic figure { animation: none; } .ai-tilt .frame { transform: none; } }

/* AI 적합도 8가지: 어떤 배치든 빈칸 없이 채운다 */
.fit-core { display: none; }
.fit-grid--bento .fit:nth-child(8) { grid-column: span 2; }
.fit-grid--grid .fit, .fit-grid--rail .fit { display: flex; flex-direction: column; }
.fit-grid--grid .fit--hero { grid-column: auto; grid-row: auto; min-height: 0; justify-content: flex-start; }
.fit-grid--grid .fit { min-height: 220px; }
.fit-grid--grid .fit h3 { margin-top: auto; padding-top: var(--s6); }
.fit-grid--grid .fit--hero h3, .fit-grid--rail .fit--hero h3 { font-size: var(--fs-md); }
.fit-grid--grid .fit--hero p, .fit-grid--rail .fit--hero p { font-size: var(--fs-sm); }
.fit-grid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 80px); }
.fit-grid--list .fit, .fit-grid--sticky .fit { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-content: start; }
.fit-grid--list .fit { padding: 26px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.fit-grid--list .fit:hover { transform: none; box-shadow: none; }
.fit-grid--list .n { grid-row: span 2; min-width: 1.5em; white-space: nowrap; font-variant-numeric: tabular-nums; font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.fit-grid--list h3, .fit-grid--sticky h3 { margin-top: 0; }
.fit-wrap--sticky { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.fit-wrap--sticky .head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
.fit-grid--sticky { grid-template-columns: 1fr; gap: 10px; }
.fit-grid--sticky .fit { padding: 20px 24px; }
.fit-grid--sticky .n { grid-row: span 2; padding-top: 3px; }
.fit-grid--orbit { grid-template-columns: minmax(0, 1fr) minmax(240px, .85fr) minmax(0, 1fr); gap: 12px clamp(20px, 3vw, 40px); align-items: center; }
.fit-grid--orbit .fit { grid-column: 1; padding: 18px 20px; }
.fit-grid--orbit .fit:nth-child(-n+4) { text-align: right; }
.fit-grid--orbit .fit:nth-child(n+5) { grid-column: 3; }
.fit-grid--orbit .fit:nth-child(1), .fit-grid--orbit .fit:nth-child(5) { grid-row: 1; }
.fit-grid--orbit .fit:nth-child(2), .fit-grid--orbit .fit:nth-child(6) { grid-row: 2; }
.fit-grid--orbit .fit:nth-child(3), .fit-grid--orbit .fit:nth-child(7) { grid-row: 3; }
.fit-grid--orbit .fit:nth-child(4), .fit-grid--orbit .fit:nth-child(8) { grid-row: 4; }
.fit-grid--orbit .fit h3 { margin-top: 6px; }
.fit-grid--orbit .fit-core { position: relative; display: grid; place-items: center; grid-column: 2; grid-row: 1 / span 4; aspect-ratio: 1; }
.fit-core i { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line-strong); animation: ai-spin 40s linear infinite; }
.fit-core i + i { inset: 14%; border-style: solid; border-color: var(--line); animation-direction: reverse; animation-duration: 28s; }
.fit-core i::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--accent); }
.fit-core span { display: grid; place-items: center; align-content: center; width: 52%; aspect-ratio: 1; border-radius: 50%; background: var(--grad, var(--accent)); color: #fff; box-shadow: var(--shadow-lg); }
.fit-core b { font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); font-weight: 800; letter-spacing: -.03em; }
.fit-core small { font-size: 13px; font-weight: 700; opacity: .85; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
.fit-grid--rail { display: flex; gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.fit-grid--rail .fit { flex: 0 0 clamp(240px, 23vw, 290px); min-height: 300px; scroll-snap-align: start; }
.fit-grid--rail .fit--hero { flex-basis: clamp(280px, 30vw, 380px); min-height: 300px; }
.fit-grid--rail .n { font-family: var(--font-display); font-size: 2.75rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.fit-grid--rail .fit h3 { margin-top: auto; padding-top: var(--s6); }
@media (max-width: 1024px) {
  .fit-wrap--sticky { grid-template-columns: 1fr; }
  .fit-wrap--sticky .head { position: static; margin-bottom: clamp(32px, 5vw, 48px); }
  .fit-grid--orbit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fit-grid--orbit .fit { grid-column: auto !important; grid-row: auto !important; text-align: left !important; }
  .fit-grid--orbit .fit-core { display: none; }
}
@media (max-width: 760px) { .fit-grid--list { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fit-grid--bento .fit:nth-child(8), .fit-grid--orbit .fit { grid-column: auto; } .fit-grid--orbit { grid-template-columns: 1fr; } .fit-grid--grid .fit { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .fit-core i { animation: none; } }

/* 구현 화면: 스크롤 스토리 / 대화 / 지그재그 / 가로 레일 */
.p-story .story-step .prompt { margin-top: var(--s3); font-size: var(--fs-sm); line-height: 1.6; color: #fff; }
.story-shots { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: 10px; width: 100%; height: 100%; }
.story-shots img { grid-column: span 2; width: 100%; height: 100%; max-height: none; padding: 8px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.story-shots--3 img:nth-child(n+2) { grid-column: span 1; }
.chat-thread { display: grid; gap: 12px; max-width: 960px; margin-inline: auto; }
.chat-topic { justify-self: center; margin-top: var(--s6); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--text-2); }
.chat-topic:first-child { margin-top: 0; }
.chat-thread .bubble--ai { width: min(100%, 760px); max-width: none; }
.chat-thread .tab-shots { gap: 8px; }
.zz { display: grid; gap: clamp(56px, 8vw, 112px); }
.zz-row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.zz-row:nth-child(even) > :first-child { order: 2; }
.zz-row .n, .p-card .n { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent); }
.zz-row h3 { margin-top: var(--s3); font-size: var(--fs-h3); }
.zz-row .desc, .p-card .desc { margin-top: var(--s3); font-size: var(--fs-sm); color: var(--text-2); }
.p-rail { display: flex; gap: var(--s5); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.p-card { flex: 0 0 min(84vw, 500px); display: flex; flex-direction: column; padding: clamp(16px, 2vw, 22px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); scroll-snap-align: start; }
.p-card .tab-shots { margin-bottom: var(--s5); }
.p-card h3 { margin-top: var(--s2); font-size: var(--fs-h3); }
.p-card .prompt { font-size: var(--fs-xs); }
.p-card .desc { flex: 1 0 auto; }
@media (max-width: 960px) { .zz-row { grid-template-columns: 1fr; } .zz-row:nth-child(even) > :first-child { order: 0; } }

/* 자동 구성·AI 분석 배치 */
.split--rev > :first-child { order: 2; }
.split--stack { grid-template-columns: 1fr; text-align: center; }
.split--stack > :first-child { max-width: 760px; margin-inline: auto; }
.split--stack .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: left; }
.duo--stack { grid-template-columns: 1fr; gap: var(--s6); }
.duo--stack .duo-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: clamp(24px, 4vw, 56px); align-content: center; }
.duo--stack .duo-card > :not(img) { grid-column: 1; justify-self: start; }
.duo--stack .duo-card img { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; align-self: center; }
.duo--stack .duo-card:nth-child(even) > :not(img) { grid-column: 2; }
.duo--stack .duo-card:nth-child(even) img { grid-column: 1; }
@media (max-width: 960px) {
  .split--rev > :first-child { order: 0; }
  .split--stack .flow { grid-template-columns: 1fr; }
  .duo--stack .duo-card { grid-template-columns: 1fr; }
  .duo--stack .duo-card > :not(img), .duo--stack .duo-card:nth-child(even) > :not(img), .duo--stack .duo-card img, .duo--stack .duo-card:nth-child(even) img { grid-column: 1; grid-row: auto; }
  .duo--stack .duo-card img { margin-top: var(--s5); }
}

/* ---------- 시안 전환(검토용) ---------- */
.variant-switch { position: fixed; left: 50%; bottom: 16px; z-index: 90; display: flex; max-width: calc(100vw - 16px); overflow-x: auto; scrollbar-width: none; align-items: center; gap: 4px; padding: 5px; transform: translateX(-50%); border-radius: 999px; background: rgba(15, 15, 24, .82); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); font-size: 12px; color: #c9c9d6; }
.variant-switch span { padding: 0 8px 0 10px; font-weight: 600; }
.variant-switch a { display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 10px; border-radius: 999px; font-weight: 800; }
.variant-switch a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.variant-switch a[aria-current="page"] { background: #fff; color: #0b0d17; }
.nav-open .variant-switch { display: none; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* 공통 보조 */
.mt { margin-top: var(--s4); }
.page-ai .ai-more { display: none; }
.ai-title { margin-top: var(--s4); font-size: var(--fs-h2); }
.ai-desc { margin-top: var(--s5); color: var(--text-2); font-size: var(--fs-lg); }
.ai-more { margin-top: var(--s5); }

/* ---------- 첫 화면 대시보드 릴 (시안 E~H) ----------
   헤더 아래 화면 전체. 실제 대시보드 1장을 화면보다 작게 띄우고 뒤에 흐린 배경을 깐다.
   넘김 효과는 spread--calendar/postit/splitflap/shuffle 이 결정.
   core.js 가 화면마다 --o(현재 기준 위치)·is-active·is-past·is-far 와 reel[data-dir=next|prev] 를 붙인다.
   3D 효과는 transform 의 perspective() 함수로 준다(perspective 속성은 쌓임 맥락을 만들어 화면 간 z-index 겹침을 깨뜨림).
   카드(.card)는 같은 이미지를 위·아래 반쪽(.half)으로 겹쳐 그린다(플립보드용, 다른 모드에선 한 장처럼 보임). */
.reel { position: relative; --t: 1.2s; --dur: 5500ms; }
.reel-stage { position: relative; touch-action: pan-y; user-select: none; }
.reel-item.is-far { visibility: hidden; }
.reel-item img { -webkit-user-drag: none; pointer-events: none; }

.hero-reel { position: relative; height: 100svh; min-height: 560px; padding-top: var(--header-h); background: var(--bg); }
.hero-reel .reel { height: 100%; overflow: hidden; background: var(--stage-bg, #05060a); }
.hero-reel .reel-stage { width: 100%; height: 100%; --shift: 40px; --card-r: 14px;
  --pw: min(70vw, calc((100svh - var(--header-h) - 230px) * 16 / 9), 1180px);
  --ph: calc(var(--pw) * 9 / 16); }
.reel-item { position: absolute; inset: 0; }
.amb { position: absolute; inset: -10%; width: 120%; max-width: none; height: 120%; object-fit: cover; filter: blur(56px) saturate(1.4) brightness(.45); opacity: 0; transition: opacity 1.2s ease; }
.reel-item.is-active .amb { opacity: 1; }
.card { position: absolute; left: 50%; top: calc(50% - var(--ph) / 2 - var(--shift)); width: var(--pw); height: var(--ph); margin: 0 0 0 calc(var(--pw) / -2); border-radius: var(--card-r); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .75); }
.half { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.half--t { clip-path: inset(0 0 50% 0); }
.half--b { clip-path: inset(50% 0 0 0); }
.half img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* 벽걸이 달력(E): 위쪽 링을 축으로 한 장이 위로 젖혀 넘어가고 밑장이 드러남 */
.spread--calendar .card { z-index: 1; transform-origin: 50% 0; transform: perspective(2200px) rotateX(0deg); filter: brightness(.7); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform var(--t) cubic-bezier(.45, .05, .55, .75), filter var(--t) ease; }
.spread--calendar .is-active .card { z-index: 3; filter: none; }
.spread--calendar .is-past .card { z-index: 5; transform: perspective(2200px) rotateX(105deg); filter: brightness(1.3); }
.spread--calendar[data-dir="prev"] .is-active .card { transition-timing-function: cubic-bezier(.25, .75, .5, 1); }
.spread--calendar .card::before { content: ""; position: absolute; z-index: 2; inset: 0 0 auto; height: 22px; border-radius: var(--card-r) var(--card-r) 0 0; background: linear-gradient(rgba(0, 0, 0, .55), transparent); }

/* 포스트잇(F): 살짝씩 비뚤게 쌓인 묶음에서 맨 위 장이 왼쪽 위로 떼어져 날아감 */
.spread--postit .reel-item:nth-child(3n) { --tilt: -1.6deg; }
.spread--postit .reel-item:nth-child(3n+1) { --tilt: 1.1deg; }
.spread--postit .reel-item:nth-child(3n+2) { --tilt: -.4deg; }
.spread--postit .card { z-index: calc(20 - var(--o, 0)); transform-origin: 0 0; transform: translate(calc(var(--o, 0) * 6px), calc(var(--o, 0) * 7px)) rotate(var(--tilt)); transition: transform var(--t) var(--ease), filter var(--t) ease; filter: brightness(calc(1 - var(--o, 0) * .12)); }
.spread--postit .is-past .card { z-index: 30; opacity: 0; transform: perspective(1800px) translate(-75%, -70%) rotate(-32deg) rotateX(34deg); }
.spread--postit .is-leaving .card { animation: peel var(--t) cubic-bezier(.45, 0, .7, .4) both; }
.spread--postit .is-returning .card { z-index: 30; animation: peel var(--t) cubic-bezier(.3, .6, .55, 1) reverse both; }
@keyframes peel {
  0% { transform: perspective(1800px) rotate(var(--tilt)); opacity: 1; }
  30% { transform: perspective(1800px) rotate(-5deg) rotateX(14deg) translateY(-1%); opacity: 1; }
  100% { transform: perspective(1800px) translate(-75%, -70%) rotate(-32deg) rotateX(34deg); opacity: 0; }
}

/* 플립보드(G): 공항 출발 안내판처럼 위쪽 반이 접혀 내려오고 새 아래쪽 반이 내려앉음 */
.spread--splitflap .card { box-shadow: none; }
.spread--splitflap .half { transform-origin: 50% 50%; transform: perspective(2400px) rotateX(0deg); transition: transform calc(var(--t) / 2) cubic-bezier(.55, 0, 1, .45), filter calc(var(--t) / 2) ease-in; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }
.spread--splitflap .half--t { z-index: 1; }
.spread--splitflap .half--b { z-index: 1; transform: perspective(2400px) rotateX(90deg); filter: brightness(1.4); }
.spread--splitflap .is-active .half--t { z-index: 2; }
.spread--splitflap .is-active .half--b { z-index: 4; transform: perspective(2400px) rotateX(0deg); filter: none; transition-timing-function: cubic-bezier(.2, 1.4, .5, 1), ease-out; transition-delay: calc(var(--t) / 2); }
.spread--splitflap .is-past .half--t { z-index: 5; transform: perspective(2400px) rotateX(-90deg); filter: brightness(.45); }
.spread--splitflap .is-past .half--b { z-index: 3; transform: perspective(2400px) rotateX(0deg); filter: none; }
.spread--splitflap[data-dir="prev"] .is-active .half--t { z-index: 6; transition-timing-function: cubic-bezier(.2, 1.4, .5, 1), ease-out; transition-delay: calc(var(--t) / 2); }
.spread--splitflap[data-dir="prev"] .is-active .half--b { transition-delay: 0s; }
.spread--splitflap[data-dir="prev"] .reel-item:not(.is-active):not(.is-past) .half--b { z-index: 6; }

/* 커버플로(H): 가운데 장 양옆으로 이전·다음 장이 비스듬히 서 있고, 넘기면 모두 한 칸씩 부드럽게 자리를 옮김 */
.spread--coverflow .reel-stage { --pw: min(56vw, calc((100svh - var(--header-h) - 250px) * 16 / 9), 1040px); }
.spread--coverflow .card { z-index: calc(20 - var(--a, 0)); transform: perspective(1800px) translateX(calc(var(--o, 0) * 60%)) translateZ(calc(var(--a, 0) * -240px)) rotateY(calc(clamp(-1, var(--o, 0), 1) * -36deg)); filter: brightness(calc(1 - var(--a, 0) * .28)); transition: transform var(--t) cubic-bezier(.22, .8, .2, 1), filter var(--t) ease, opacity var(--t) ease; }
.spread--coverflow .is-far .card { opacity: 0; }
.spread--coverflow .reel-item:not(.is-active) .card { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }

/* 표지(E~H 릴 맨 앞): 실제 대시보드 썸네일 모자이크 위에 제목. 글자 크기는 카드 크기(cq 단위)를 따른다 */
.card--cover .half { container-type: size; }
.cover { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center; background: var(--cover-bg, radial-gradient(90% 120% at 0% 0%, #23306e, transparent 60%), radial-gradient(90% 120% at 100% 100%, #4b1f66, transparent 60%), #0a0c16); }
.cover-mosaic { position: absolute; inset: -30% -20%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.2cqw; transform: rotate(-12deg); opacity: .26; animation: cover-drift 40s linear infinite alternate; }
.cover-mosaic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-radius: 1cqw; }
.cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 50%, var(--cover-veil, rgba(8, 10, 20, .82)), transparent 100%); }
.cover-body { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1.6cqh; padding: 4cqw; }
.cover-kicker { font-size: max(10px, 1.35cqw); font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--cover-accent, #9fb4ff); }
.cover-title { font-family: var(--font-display, var(--font)); font-size: 9.2cqw; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.cover-title em { font-style: normal; background: var(--cover-grad, linear-gradient(100deg, #8ea2ff, #e07bff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cover-sub { font-size: max(14px, 2.3cqw); font-weight: 600; letter-spacing: -.01em; }
.cover-hint { display: inline-flex; align-items: center; gap: .8em; margin-top: 1.4cqh; font-size: max(11px, 1.3cqw); color: rgba(255, 255, 255, .66); }
.cover-hint::before, .cover-hint::after { content: ""; width: 4cqw; height: 1px; background: currentColor; }
@keyframes cover-drift { to { transform: rotate(-12deg) translateX(-8%); } }
.amb--cover { display: block; background: var(--cover-bg, radial-gradient(60% 60% at 30% 30%, #23306e, transparent), radial-gradient(60% 60% at 70% 70%, #4b1f66, transparent), #0a0c16); }
.reel-thumbs .thumb--cover { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--cover-bg, linear-gradient(135deg, #23306e, #4b1f66)); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
@media (prefers-reduced-motion: reduce) { .cover-mosaic { animation: none; } }
/* 좁은 화면에서는 가운데 장을 줄여 양옆 장이 가장자리에 살짝만 보이게 */
@media (max-width: 760px) { .hero-reel .spread--coverflow .reel-stage { --pw: 72vw; } .spread--coverflow .card { transform: perspective(1200px) translateX(calc(var(--o, 0) * 78%)) translateZ(calc(var(--a, 0) * -160px)) rotateY(calc(clamp(-1, var(--o, 0), 1) * -40deg)); } }

/* 화면 아래 정보·조작 막대 */
.reel-hud { position: absolute; inset: auto 0 0; z-index: 60; padding-top: clamp(56px, 8vh, 100px); padding-bottom: clamp(16px, 3vh, 32px); background: linear-gradient(transparent, rgba(4, 5, 10, .45) 40%, rgba(4, 5, 10, .8)); color: #fff; --text: #fff; --text-2: rgba(255, 255, 255, .72); --line: rgba(255, 255, 255, .22); --line-strong: rgba(255, 255, 255, .34); --surface: rgba(255, 255, 255, .1); pointer-events: none; }
.reel-hud > * { pointer-events: auto; }
.reel-ui { display: flex; align-items: center; gap: var(--s4) var(--s5); flex-wrap: wrap; }
.reel-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s2) var(--s4); min-width: 0; margin-right: auto; }
.reel-count { font-family: var(--mono); font-size: var(--fs-xs); color: var(--text-2); font-variant-numeric: tabular-nums; }
.reel-caption { font-size: clamp(1.125rem, 1rem + .8vw, 1.625rem); letter-spacing: -.02em; }
.reel-tag { font-size: var(--fs-xs); color: var(--text-2); }
.reel-ctrl { display: flex; gap: var(--s2); }
.reel-btn, .scroll-cue { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background-color .2s, border-color .2s, transform .2s; }
.reel-btn:hover { border-color: var(--text); }
.reel-btn:active { transform: scale(.94); }
.reel-btn svg, .scroll-cue svg { width: 16px; height: 16px; }
.scroll-cue svg { animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(4px); } }
.reel-progress { flex-basis: 100%; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.reel-progress i { display: block; height: 100%; width: 100%; background: var(--reel-bar, var(--accent)); transform: scaleX(0); transform-origin: left; }
.reel.is-playing .reel-progress i { animation: reel-bar var(--dur) linear forwards; }
@keyframes reel-bar { to { transform: scaleX(1); } }
.reel-thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; max-width: calc(var(--container) + var(--gutter) * 2); margin: var(--s4) auto 0; padding: 4px var(--gutter); }
.reel-thumbs::-webkit-scrollbar { display: none; }
.reel-thumbs button { flex: none; width: 96px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: .5; transition: opacity .2s, border-color .2s; }
.reel-thumbs button:hover { opacity: .85; }
.reel-thumbs button[aria-current] { opacity: 1; border-color: #fff; }
.reel-thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }

@media (max-width: 760px) {
  .hero-reel { min-height: 520px; }
  .hero-reel .reel { display: flex; flex-direction: column; }
  .hero-reel .reel-stage { flex: 1; height: auto; min-height: 0; --shift: 0px; --card-r: 10px; --pw: calc(100vw - var(--gutter) * 2); }
  .reel-hud { position: relative; padding-block: var(--s4) var(--s5); background: var(--stage-bg, #05060a); }
  .reel-tag, .scroll-cue, .reel-hud .reel-thumbs { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .half, .amb { transition: none !important; animation: none !important; }
  .reel-item.is-past .card { opacity: 0; }
  .scroll-cue svg { animation: none; }
}
/* 초기화 전(스크립트 실행 전·실패 시)에는 첫 장만, 전환 없이 */
.reel:not(.is-ready) .card, .reel:not(.is-ready) .half, .reel:not(.is-ready) .amb { transition: none !important; }
.reel:not(.is-ready) .reel-item:not(:first-child) { visibility: hidden; }
.reel:not(.is-ready) .reel-item:first-child .card { z-index: 30; filter: none; }
.reel:not(.is-ready) .reel-item:first-child .amb { opacity: 1; }
/* 스크립트가 없을 때는 첫 장만 보이게 */
html:not(.js) .reel-item:first-child .card, html:not(.js) .reel-item:first-child .half { z-index: 30; transform: none; filter: none; }
html:not(.js) .reel-item:first-child .amb { opacity: 1; }

/* AI 소개 (영상 + 설명 + AI 페이지 이동) */
.ai-intro-video { max-width: 1440px; margin: 0 auto; padding-inline: clamp(0px, 2vw, 32px); }
.ai-intro-video .video-box { border-radius: var(--r-lg); }
.ai-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin-top: clamp(40px, 5vw, 64px); }
.ai-point { padding: var(--s5); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.ai-point .n { font-family: var(--mono); font-size: var(--fs-xs); color: var(--accent); }
.ai-point h3 { margin-top: var(--s3); font-size: var(--fs-lg); }
.ai-point p { margin-top: var(--s2); font-size: var(--fs-sm); color: var(--text-2); }
.ai-intro .actions { justify-content: center; margin-top: clamp(32px, 4vw, 48px); }
@media (max-width: 960px) { .ai-points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ai-points { grid-template-columns: 1fr; } .ai-intro-video .video-box { border-radius: 0; } }

/* =========================================================
   시안 I~L 공통 부품 (기업 사이트형): 슬라이더 · 빠른 메뉴 · AI 기술 카드 · 솔루션 카드 · 바로가기 · 이동 탭 · 스크롤 스토리
   ========================================================= */
.eyebrow { display: block; font-size: var(--fs-sm); font-weight: 600; letter-spacing: .02em; color: var(--eyebrow, var(--text-2)); }
.more { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; }

/* 슬라이더: core.js 가 [data-slide] 에 is-active·inert 를 붙인다 */
[data-slide] { transition: opacity .9s var(--ease), visibility .9s; }
[data-slide]:not(.is-active) { opacity: 0; visibility: hidden; }
.slider-ui { display: flex; align-items: center; gap: var(--s3); }
.slider-count { min-width: 64px; font-family: var(--mono); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.slider-bar { width: clamp(80px, 12vw, 160px); height: 2px; background: var(--line-strong); overflow: hidden; }
.slider-bar i { display: block; height: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; }
.is-playing .slider-bar i { animation: reel-bar var(--dur) linear forwards; }
.dots { display: flex; align-items: center; gap: 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .7; }
.dot[aria-current] { background: currentColor; opacity: 1; }

/* 떠 있는 빠른 메뉴 */
.quick { position: fixed; right: clamp(12px, 2vw, 24px); bottom: 88px; z-index: 95; display: grid; gap: 10px; }
.quick a { display: grid; place-items: center; align-content: center; gap: 2px; width: 60px; height: 60px; border-radius: 50%; background: var(--quick-bg, var(--accent)); color: var(--quick-fg, #fff); font-size: 11px; font-weight: 700; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); transition: transform .2s var(--ease); }
.quick a:hover { transform: translateY(-2px); }
.quick svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quick .quick-top { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); }
@media (max-width: 760px) { .quick { bottom: 72px; } .quick a { width: 48px; height: 48px; font-size: 0; } .quick a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.nav-open .quick { display: none; }

/* AI 기술 카드 */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.tech a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.tech a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tech figure { aspect-ratio: 16 / 10; overflow: hidden; background: #0b0d17; }
.tech figure img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s var(--ease); }
.tech a:hover figure img { transform: scale(1.05); }
.tech-body { display: flex; flex-direction: column; gap: var(--s2); flex: 1; padding: var(--s5); }
.tech-body .n { font-family: var(--mono); font-size: var(--fs-xs); color: var(--accent); }
.tech-body h3 { font-size: var(--fs-lg); }
.tech-body p { font-size: var(--fs-sm); color: var(--text-2); }
.tech-body .more { margin-top: auto; padding-top: var(--s3); }
@media (max-width: 1024px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tech-grid { grid-template-columns: 1fr; } }

/* 솔루션 카드 */
.sol-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5); }
.sol a { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-md); background: #0b0d17; color: #fff; }
.sol img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.sol a:hover img { transform: scale(1.05); }
.sol a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(5, 6, 12, .88)); }
.sol-body { position: absolute; inset: auto 0 0; z-index: 1; padding: clamp(20px, 3vw, 36px); --text-2: rgba(255, 255, 255, .78); }
.sol-body .eyebrow { color: rgba(255, 255, 255, .7); }
.sol-body h3 { margin-top: 6px; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.sol-body p { margin-top: 6px; color: var(--text-2); }
.sol-body .more { display: inline-block; margin-top: var(--s4); }
@media (max-width: 760px) { .sol-grid { grid-template-columns: 1fr; } }

/* 바로가기 아이콘 줄 */
.qlinks-sec { border-block: 1px solid var(--line); background: var(--bg); }
.qlinks { display: grid; grid-template-columns: repeat(5, 1fr); }
.qlinks li + li { border-left: 1px solid var(--line); }
.qlinks a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: clamp(24px, 3vw, 40px) var(--s3); text-align: center; transition: background-color .2s; }
.qlinks a:hover { background: var(--bg-alt); }
.qlinks svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.qlinks b { font-size: var(--fs-md); }
.qlinks span { font-size: var(--fs-xs); color: var(--text-2); }
@media (max-width: 760px) { .qlinks { grid-template-columns: repeat(3, 1fr); } .qlinks li:nth-child(4) { border-left: 0; } .qlinks li:nth-child(n+4) { border-top: 1px solid var(--line); } }

/* 페이지 내 이동 탭 (스크롤하면 헤더 아래에 붙음) */
.tabs-bar { position: sticky; top: var(--header-h); z-index: 80; background: var(--header-bg); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid var(--line); }
.tabs-bar ul { display: flex; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs-bar ul::-webkit-scrollbar { display: none; }
.tabs-bar a { display: block; padding: 18px clamp(12px, 2vw, 24px); white-space: nowrap; font-weight: 600; color: var(--text-2); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.tabs-bar a:hover { color: var(--text); }
.tabs-bar a[aria-current] { color: var(--text); border-color: var(--accent); }
@media (max-width: 760px) { .tabs-bar ul { justify-content: flex-start; } }

/* 스크롤 스토리: 왼쪽 단계 + 오른쪽 고정 화면 */
.story { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); }
.story-step { display: flex; flex-direction: column; justify-content: center; min-height: 72vh; opacity: .3; transition: opacity .5s var(--ease); }
.story-step.is-active { opacity: 1; }
.story-step .n { font-family: var(--mono); font-size: var(--fs-xs); color: var(--accent); }
.story-step h3 { margin-top: var(--s3); font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); }
.story-step p { margin-top: var(--s4); font-size: var(--fs-lg); color: var(--text-2); line-height: 1.7; }
.story-media { position: sticky; top: calc(var(--header-h) + 10vh); height: 70vh; }
.story-media figure { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; opacity: 0; transform: scale(.96); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.story-media figure.is-active { opacity: 1; transform: none; }
.story-media img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story-media { top: var(--header-h); height: 42vh; order: -1; z-index: 2; background: var(--bg); }
  .story-step { min-height: 60vh; }
}

/* =========================================================
   시안 M~P 공통: 첫 화면은 큰 영어 타이포그래피 + 천천히 움직이는 그라데이션 배경(차트·장식 없음), 스크롤하면 AI 영상(ai-intro)과 콘텐츠
   실제 브라우저 보이는 높이(약 650~950px)에 맞춰 글자 크기가 화면 폭·높이 중 작은 쪽을 따른다.
   배경 색은 시안별 --hero-bg, --b1~--b3 토큰.
   글자 효과는 두 층: 등장(--in, fx-*) + 등장 뒤에도 이어지는 은은한 움직임(--idle, idle-*).
   [data-split]은 core.js가 글자/단어로 나누고 움직이는 단위에 .u와 --i(순번)를 붙인다. 지연은 --d(시작) + --i × --st(간격).
   등장은 transform·opacity·filter, 계속 움직임은 translate·background·text-shadow만 써서 서로 덮어쓰지 않는다.
   기본 스타일이 최종 상태(동작 줄이기에서는 효과·배경 움직임 없이 바로 완성).
   ========================================================= */
.lux-hero { position: relative; display: flex; min-height: 100svh; padding-top: var(--header-h); background: var(--hero-bg, var(--bg)); overflow: hidden; isolation: isolate; }
.lux-bg { position: absolute; inset: -4%; z-index: -1; pointer-events: none; translate: calc(var(--px, 0) * 28px) calc(var(--py, 0) * 20px); transition: translate 1.8s cubic-bezier(.2, .7, .2, 1); }
.lux-bg i { position: absolute; width: 70vmax; aspect-ratio: 1; border-radius: 50%; opacity: var(--blob-o, .9); animation: lux-float 24s ease-in-out infinite alternate; will-change: transform; }
.lux-bg i:nth-child(1) { top: -35vmax; left: -20vmax; background: radial-gradient(closest-side, var(--b1), transparent); }
.lux-bg i:nth-child(2) { bottom: -40vmax; right: -22vmax; background: radial-gradient(closest-side, var(--b2), transparent); animation-duration: 30s; animation-delay: -9s; animation-direction: alternate-reverse; }
.lux-bg i:nth-child(3) { top: 10%; left: 30%; width: 48vmax; background: radial-gradient(closest-side, var(--b3), transparent); animation-name: lux-float-2; animation-duration: 36s; animation-delay: -16s; }
@keyframes lux-float { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(18vw, 10vh) scale(1.18); } 100% { transform: translate(6vw, 26vh) scale(.92); } }
@keyframes lux-float-2 { 0% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-22vw, 14vh) scale(1.2); } 66% { transform: translate(14vw, -12vh) scale(.85); } 100% { transform: translate(-8vw, -4vh) scale(1.05); } }

.lux-stage { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; width: 100%; gap: clamp(24px, 5vh, 64px); padding-block: clamp(20px, 4vh, 48px); }
.lux-meta { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s4); padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--text-2); animation: lux-fade 1.6s .2s both; }
.lux-meta span:nth-child(2) { text-align: center; }
.lux-meta span:last-child { text-align: right; }
.lux-meta span:first-child { color: var(--text); letter-spacing: .3em; }
/* 마우스를 따라 글자는 살짝 반대로, 배경은 같은 쪽으로 움직여 깊이감 */
.lux-title { font-family: var(--font-display); font-weight: 400; line-height: 1.02; letter-spacing: -.02em; translate: calc(var(--px, 0) * -14px) calc(var(--py, 0) * -10px); transition: translate 1.2s cubic-bezier(.2, .7, .2, 1); }
.lux-title .line { display: block; }
.lux-title em { font-style: italic; }
.lux-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5); font-size: var(--fs-sm); color: var(--text-2); animation: lux-fade 1.6s 1.8s both; }
.lux-scroll { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--text); }
.lux-scroll i { position: relative; width: 1px; height: 56px; overflow: hidden; background: var(--line-strong); }
.lux-scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--text); animation: lux-drop 2.4s cubic-bezier(.65, 0, .35, 1) infinite; }

/* 나누기 전에는 숨김(스크립트가 안 돌면 2.5초 뒤 그대로 보임) */
.js .lux-title [data-split]:not(.is-split) { opacity: 0; animation: lux-show 0s 2.5s forwards; }
.lux-title .w { display: inline-block; white-space: nowrap; }
.lux-title .ch { display: inline-block; }
.lux-title [data-split] { --d: 0s; --st: 40ms; }
.lux-title .u { --at: calc(var(--d) + var(--i) * var(--st)); animation: var(--in, lux-none 0s), var(--idle, lux-none 0s); }

/* ---- 등장(--in) ---- */
.fx-blur .u { --in: fx-blur 1.4s var(--at) cubic-bezier(.2, .7, .2, 1) both; }
.fx-flip { perspective: 900px; }
.fx-flip .u { transform-origin: 50% 100%; --in: fx-flip 1.2s var(--at) cubic-bezier(.2, .9, .25, 1) both; }
.fx-wave .u { transform-origin: 50% 100%; --in: fx-wave .9s var(--at) cubic-bezier(.34, 1.56, .64, 1) both; }
.fx-rise { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.fx-rise > span { display: inline-block; animation: lux-up 1.6s var(--d, 0s) cubic-bezier(.19, 1, .22, 1) both; }
.fx-track { display: inline-block; animation: fx-track 1.8s var(--d, 0s) cubic-bezier(.2, .7, .2, 1) both; }
.fx-write { display: inline-block; animation: fx-write 2s var(--d, 0s) cubic-bezier(.6, .1, .3, 1) both; }
.fx-pop { display: inline-block; animation: fx-pop 1.4s var(--d, 0s) cubic-bezier(.2, .7, .2, 1) both; }
/* 해독: core.js가 무작위 문자를 보여주다 순서대로 확정(.is-set). 등장 뒤에도 가끔 한 글자씩 다시 해독(data-scramble-idle) */
.fx-scramble.is-running .ch, .fx-scramble .ch.is-glitch { color: var(--scr, var(--accent)); opacity: .55; }
.fx-scramble.is-running .ch.is-set { color: inherit; opacity: 1; transition: color .4s, opacity .4s; }

/* ---- 등장 뒤에도 이어지는 움직임(--idle) ---- */
/* 글자마다 시차를 두고 아주 조금 오르내려 문장 위로 물결이 지나가는 느낌 */
.idle-float .u { --idle: idle-float 5.2s calc(var(--i) * -.24s) ease-in-out infinite; }
/* 글자마다 시차를 둔 그라데이션이 흘러 빛 띠가 문장을 가로지름 */
.idle-flow .u { background: var(--flow, linear-gradient(90deg, var(--text) 30%, var(--accent) 50%, var(--text) 70%)) 0 0 / 400% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; --idle: idle-flow 7s calc(var(--i) * -.16s) linear infinite; }
/* 덩어리 전체 그라데이션이 천천히 순환 */
.idle-shine { background: var(--shine, linear-gradient(90deg, var(--accent), var(--text), var(--accent))) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.idle-shine:not(.fx-write):not(.fx-pop):not(.fx-track) { animation: idle-shine 6s linear infinite; }
.fx-pop.idle-shine { animation: fx-pop 1.4s var(--d, 0s) cubic-bezier(.2, .7, .2, 1) both, idle-shine 6s var(--d, 0s) linear infinite; }
.fx-write.idle-shine { animation: fx-write 2s var(--d, 0s) cubic-bezier(.6, .1, .3, 1) both, idle-shine 7s var(--d, 0s) linear infinite; }
.fx-track.idle-glow { animation: fx-track 1.8s var(--d, 0s) cubic-bezier(.2, .7, .2, 1) both, idle-glow 4.5s calc(var(--d, 0s) + 1.8s) ease-in-out infinite; }
/* 글자 안 물결: 파도 모양 색이 차오른 뒤 계속 흐름(core.js 나누기 제외 data-nosplit) */
.fx-liquid { display: inline-block; padding-bottom: .06em; color: transparent; -webkit-background-clip: text; background-clip: text; background: var(--liquid) 0 60% / 1.6em 200% repeat-x, var(--liquid-base, color-mix(in srgb, var(--text) 18%, transparent)); -webkit-background-clip: text; background-clip: text; animation: fx-fill 2.4s var(--d, 0s) cubic-bezier(.3, .6, .3, 1) both, idle-liquid 2.6s linear infinite; }
/* 작은 알약형 꼬리표("with AI") */
.lux-chip { display: inline-flex; align-items: center; gap: .35em; vertical-align: .9em; margin-left: .35em; padding: .3em .7em; border-radius: 999px; font-family: var(--font); font-size: max(13px, .2em); font-weight: 700; letter-spacing: .02em; line-height: 1; white-space: nowrap; animation: fx-pop 1.2s var(--d, 0s) cubic-bezier(.2, .7, .2, 1) both, idle-bob 4s calc(var(--d, 0s) + 1.2s) ease-in-out infinite; }
/* 밑줄 긋기 */
.fx-under { position: relative; display: inline-block; }
.fx-under::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .07em; border-radius: 99px; background: var(--under, var(--accent)) 0 0 / 200% 100%; transform-origin: 0 50%; animation: fx-under 1.2s var(--d2, 1.4s) cubic-bezier(.65, 0, .35, 1) both, idle-shine 4s var(--d2, 1.4s) linear infinite; }

@keyframes lux-up { from { transform: translateY(105%); } }
@keyframes lux-fade { from { opacity: 0; } }
@keyframes lux-show { to { opacity: 1; } }
@keyframes lux-drop { from { transform: translateY(-100%); } to { transform: translateY(250%); } }
@keyframes fx-blur { from { opacity: 0; filter: blur(14px); transform: translateY(.25em) scale(1.08); } }
@keyframes fx-flip { from { opacity: 0; transform: rotateX(-95deg) translateY(.2em); } }
@keyframes fx-wave { from { opacity: 0; transform: translateY(.7em) rotate(10deg); } }
@keyframes fx-track { from { opacity: 0; letter-spacing: .5em; filter: blur(6px); } }
@keyframes fx-write { from { clip-path: inset(-10% 100% -20% 0); } to { clip-path: inset(-10% -5% -20% 0); } }
@keyframes fx-pop { from { opacity: 0; filter: blur(12px); transform: scale(.92); } }
@keyframes fx-under { from { transform: scaleX(0); } }
@keyframes fx-fill { from { background-position-y: 0%, 0; opacity: 0; } 15% { opacity: 1; } }
@keyframes idle-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -.045em; } }
@keyframes idle-flow { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@keyframes idle-shine { to { background-position: -200% 0; } }
@keyframes idle-glow { 50% { text-shadow: 0 0 .35em color-mix(in srgb, var(--accent) 55%, transparent); } }
@keyframes idle-liquid { to { background-position-x: -1.6em, 0; } }
@keyframes idle-bob { 50% { translate: 0 -.25em; } }
@media (max-width: 760px) {
  .lux-hero { min-height: 92svh; }
  .lux-meta { grid-template-columns: 1fr 1fr; }
  .lux-meta span:nth-child(2) { display: none; }
  .lux-foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .lux-hero *, .lux-hero *::before, .lux-hero *::after { animation: none !important; } .js .lux-title [data-split] { opacity: 1; } .lux-title, .lux-bg { translate: none; } }

/* =========================================================
   BIX5 소개 페이지 (about.html) — _src/<시안>/about-page.html 이 조합
   첫 화면 5종(ab-hero-split·center·mosaic·type·ask), 카테고리 묶음 4종(_src/about.json: nine·pillars·people·faq).
   카테고리 하나 = 카드 하나(글 + 그림 박스, 같은 높이). 배치 4종(ab--right·left·zigzag·timeline),
   카드 스타일 6종(ab-st--split·line·outline·panel·glass·poster). 스크롤 애니메이션 없음
   ========================================================= */
.ab-sec { overflow-x: clip; }
.ab-list { display: grid; gap: clamp(40px, 5vw, 72px); }
.ab-cat { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 3.5vw, 56px); align-items: stretch; padding: clamp(22px, 3vw, 44px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); scroll-margin-top: calc(var(--header-h) + 24px); }
.ab-cat[data-new] { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad, var(--accent)) border-box; }

/* 왼쪽 글: 제목 위, 특장점 맨 아래 → 그림 박스와 위아래 끝이 맞는다 */
.ab-txt { display: flex; flex-direction: column; gap: var(--s5); min-width: 0; }
.ab-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.ab-n { font-family: var(--font-display); font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3.25rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.ab-new { padding: 3px 10px; border-radius: 999px; background: var(--grad, var(--accent)); color: #fff; font-size: 11px; letter-spacing: .08em; }
.ab-cat h3 { margin-top: var(--s3); font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.15rem); line-height: 1.25; }
.ab-lead { margin-top: var(--s3); color: color-mix(in srgb, var(--text) 78%, var(--bg)); font-size: var(--fs-md); line-height: 1.7; }
.ab-pts { border-top: 1px solid var(--line); }
.ab-pts li { display: grid; grid-template-columns: minmax(9em, .42fr) minmax(0, 1fr); gap: 2px 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.6; }
.ab-pts b { font-weight: 700; }
.ab-pts span { color: color-mix(in srgb, var(--text) 75%, var(--bg)); }
.ab-pdf { display: flex; gap: 12px; align-items: baseline; margin-top: auto; padding: 13px 18px; border-radius: var(--r-md); background: color-mix(in srgb, var(--accent) 9%, transparent); font-size: var(--fs-sm); font-weight: 600; line-height: 1.55; }
.ab-pdf span { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--accent); }
.ab-link { align-self: flex-start; }

/* 오른쪽 그림 박스: 그림이 남는 높이를 채우고, 아래에 핵심 수치 타일 */
.ab-art { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ab-fig { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; min-height: 0; padding: clamp(16px, 2.2vw, 28px); border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); container-type: inline-size; }
.ab-fig .viz { aspect-ratio: 4 / 3; }
.ab-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ab-facts li { display: grid; align-content: center; gap: 4px; min-width: 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); }
.ab-facts b { font-family: var(--font-display); font-size: clamp(1.1rem, .85rem + .9vw, 1.55rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: var(--accent); overflow-wrap: anywhere; }
.ab-facts span { font-size: 12px; line-height: 1.4; color: var(--text-2); }
.ab-facts li:first-child { background: var(--grad, var(--accent)); border-color: transparent; }
.ab-facts li:first-child b, .ab-facts li:first-child span { color: #fff; }

/* 바로가기 칩 */
.ab-toc ul { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(40px, 5vw, 64px); }
.ab-toc a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); transition: color .2s, border-color .2s; }
.ab-toc a span { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.ab-toc a:hover, .ab-toc a[aria-current] { color: var(--text); border-color: var(--text); }

/* 배치: 그림 왼쪽 / 번갈아 / 타임라인 */
.ab--left .ab-cat, .ab--zigzag .ab-cat:nth-child(even) { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.ab--left .ab-art, .ab--zigzag .ab-cat:nth-child(even) .ab-art { order: -1; }
.ab--timeline .ab-list { position: relative; padding-left: clamp(40px, 5vw, 72px); }
.ab--timeline .ab-list::before { content: ""; position: absolute; left: clamp(12px, 1.6vw, 22px); top: 24px; bottom: 24px; width: 2px; background: linear-gradient(var(--accent), var(--line-strong)); }
.ab--timeline .ab-cat::before { content: ""; position: absolute; top: 36px; left: calc(clamp(12px, 1.6vw, 22px) - clamp(40px, 5vw, 72px) - 7px); width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }

@media (max-width: 960px) {
  .ab-cat, .ab--left .ab-cat, .ab--zigzag .ab-cat:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .ab--left .ab-art, .ab--zigzag .ab-cat:nth-child(even) .ab-art { order: 0; }
  .ab-pdf { margin-top: 0; }
}
@media (max-width: 560px) {
  .ab-pts li { grid-template-columns: 1fr; }
  .ab-pdf { flex-direction: column; gap: 4px; }
  .ab-facts li { padding: 12px; }
}

/* ---------- 그림(ab-art-*) ---------- */
.ax-k { display: flex; align-items: baseline; gap: 10px; font-size: 12px; color: var(--text-2); }
.ax-k b { font-family: var(--font-display); font-size: clamp(1.4rem, .9rem + 3cqi, 2rem); font-weight: 800; letter-spacing: -.03em; background: var(--grad, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.art-history { display: grid; gap: var(--s4); }
.ahx { position: relative; display: grid; gap: 4px; }
.ahx li { position: relative; display: grid; grid-template-columns: 6.2em minmax(0, 1fr); column-gap: 14px; padding: 12px 14px 12px 22px; border-radius: 12px; background: color-mix(in srgb, var(--c) 9%, transparent); }
.ahx li::before { content: ""; position: absolute; left: 8px; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: var(--c); }
.ahx b { grid-row: span 2; font-family: var(--font-display); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ahx strong { font-size: 14px; }
.ahx span { font-size: 12px; line-height: 1.5; color: var(--text-2); }
.ahx .is-now { background: var(--grad, var(--accent)); color: #fff; }
.ahx .is-now span { color: rgba(255, 255, 255, .85); }
.ahx .is-now::before { background: #fff; animation: ab-blink 1.6s ease-in-out infinite; }
@keyframes ab-blink { 50% { opacity: .3; } }
@container (max-width: 360px) { .ahx li { grid-template-columns: 1fr; } .ahx b { grid-row: auto; } }

.art-sys { display: grid; gap: var(--s4); }
.asy-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 14px; align-items: center; }
.asy-list { display: grid; gap: 6px; }
.asy-list li { padding: 9px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.asy-list .more { background: none; border-style: dashed; color: var(--text-2); font-weight: 500; }
.asy-stack { display: grid; gap: 6px; perspective: 600px; }
.asy-stack i { display: grid; place-items: center; height: 46px; border-radius: 10px; font-style: normal; font-size: 13px; font-weight: 800; color: #fff; background: var(--c); transform: rotateX(28deg); box-shadow: 0 10px 18px -12px rgba(0, 0, 0, .6); }
@container (max-width: 380px) { .asy-row { grid-template-columns: 1fr; } }

.aw-win { overflow: hidden; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); }
.aw-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.aw-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.aw-bar em { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: var(--surface); font-style: normal; font-size: 11px; color: var(--text-2); }
.aw-body { display: grid; place-items: center; gap: 8px; padding: clamp(24px, 7cqi, 52px) 16px; text-align: center; }
.aw-body b { font-family: var(--font-display); font-size: clamp(3rem, 1rem + 11cqi, 5.5rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.aw-body small { font-size: 12px; color: var(--text-2); }
.aw-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-top: var(--s4); }

.art-noplug { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.anp { display: grid; gap: 10px; align-content: start; }
.anp-k { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--text-2); }
.anp-dlg { display: grid; gap: 2px; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.anp-dlg b { font-size: 14px; }
.anp-dlg small { font-size: 11px; color: var(--text-2); }
.anp-dlg em { justify-self: start; margin-top: 8px; padding: 4px 12px; border-radius: 6px; font-style: normal; font-size: 12px; font-weight: 700; background: var(--line-strong); color: var(--text-2); }
.anp--new .anp-dlg { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.anp--new .anp-dlg em { background: var(--grad, var(--accent)); color: #fff; }
.anp--old { opacity: .72; }
.anp--old .anp-dlg { border-style: dashed; }
.anp ul { display: grid; gap: 4px; font-size: 12px; color: var(--text-2); }
.anp--old li::before { content: "✕ "; color: #e5484d; font-weight: 800; }
.anp--new li::before { content: "✓ "; color: var(--accent); font-weight: 800; }

.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, .8fr); align-items: center; gap: 12px; }
.ly-frame { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 44px; gap: 6px; padding: 8px; border-radius: 12px; background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 12px 12px; border: 1px solid var(--line); }
.ly-frame span { border: 1.5px dashed var(--line-strong); border-radius: 8px; font-size: 10px; color: var(--text-2); padding: 4px 6px; }
.ly-frame span:first-child { grid-column: span 2; grid-row: span 2; border-color: var(--accent); color: var(--accent); font-weight: 700; }
.ly-frame span:last-child { grid-column: span 3; }
.ly-list { display: grid; gap: 6px; justify-items: start; }
.ly-list p { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--text-2); }
@container (max-width: 400px) { .art-layout { grid-template-columns: 1fr; } .art-layout .ap-arrow { display: none; } .ly-list { display: flex; flex-wrap: wrap; } }

.art-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.awg { display: grid; gap: 4px; min-width: 0; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.awg span { font-size: 11px; font-weight: 700; color: var(--text-2); }
.awg--sum { place-content: center; text-align: center; border: 0; background: var(--grad, var(--accent)); color: #fff; }
.awg--sum b { font-family: var(--font-display); font-size: clamp(2rem, 1rem + 8cqi, 3.2rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.awg--sum small { font-size: .45em; }
.awg--sum span { color: rgba(255, 255, 255, .88); }

.art-grid { display: grid; gap: 10px; font-size: 12px; }
.ag-bar { display: flex; align-items: center; gap: 6px; }
.ag-bar b { margin-right: auto; font-size: 13px; }
.ag-bar em { padding: 3px 10px; border-radius: 6px; font-style: normal; font-size: 11px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.art-grid table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.art-grid th { padding: 7px 8px; text-align: left; font-size: 11px; font-weight: 700; color: var(--text-2); background: var(--surface-2); border-bottom: 1px solid var(--line-strong); }
.art-grid td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.art-grid td[rowspan] { font-weight: 700; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.art-grid td:nth-last-child(2) { text-align: right; }
.art-grid .sum td { font-weight: 800; background: var(--surface-2); }
.art-grid svg { width: 60px; height: 16px; }
.art-grid polyline { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.ck { display: inline-block; width: 13px; height: 13px; border-radius: 3px; border: 1.5px solid var(--line-strong); vertical-align: middle; }
.ck.on { background: var(--accent); border-color: var(--accent); }

.art-map { display: grid; gap: 12px; }
.art-map .frame, .art-shot .frame, .art-aishot { padding: 6px; box-shadow: none; }
.art-map img, .art-shot img, .art-aishot img { border-radius: 10px; }

.art-media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.amd { position: relative; display: grid; align-content: end; gap: 2px; min-height: 104px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.amd small { position: absolute; top: 10px; left: 12px; font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--text-2); }
.amd b { font-size: 14px; }
.amd span { font-size: 11px; line-height: 1.4; color: var(--text-2); }
.amd--video { background: #0b0d17; border-color: #0b0d17; place-content: center; }
.amd--video small { color: rgba(255, 255, 255, .6); }
.amd--video em { position: absolute; top: 9px; right: 10px; font-style: normal; font-size: 10px; font-weight: 800; color: #ff5a5f; animation: ab-blink 1.4s ease-in-out infinite; }
.amd .play { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .16); position: relative; }
.amd .play::after { content: ""; position: absolute; left: 13px; top: 10px; border: 7px solid transparent; border-left: 11px solid #fff; border-right: 0; }
.amd--sound .viz { aspect-ratio: 2.2; }
.amd--img { padding: 0; }
.amd--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.amd--img small { z-index: 1; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .55); color: #fff; }
.amd--api { background: color-mix(in srgb, var(--d3) 14%, var(--surface-2)); }
.amd code { font-family: var(--mono); font-size: 11px; color: var(--accent); }
@container (max-width: 400px) { .art-media { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.art-data { padding-block: clamp(20px, 7cqi, 52px); }
@container (max-width: 440px) { .art-data { grid-template-columns: 1fr; justify-items: center; } .art-data .side, .art-data .side:last-child { display: flex; flex-wrap: wrap; justify-content: center; } .art-data .flow-line { display: none; } }

.art-sql { display: grid; gap: 10px; }
.aq-top { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.aq-top em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--text-2); }
.art-sql pre { margin: 0; padding: 14px 16px; border-radius: 12px; background: #0b0d17; color: #c9d1e8; font-family: var(--mono); font-size: 12px; line-height: 1.7; white-space: pre-wrap; }
.art-sql pre b { color: #7cc4ff; font-weight: 600; }
.art-sql mark { padding: 0 4px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 45%, transparent); color: #fff; }
.aq-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.aq-param { display: grid; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 12px; color: var(--text-2); }
.aq-param b { font-family: var(--mono); color: var(--accent); }
.art-sql .viz { aspect-ratio: 2.6; }

.art-push { display: grid; gap: 12px; }
.apu { padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.apu p { font-size: 13px; font-weight: 800; }
.apu p em { margin-left: 6px; font-style: normal; font-size: 10px; font-weight: 700; color: var(--text-2); }
.apu-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin: 10px 0 8px; }
.apu-row span { padding: 6px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 11px; font-weight: 700; }
.apu-l { position: relative; height: 2px; background: var(--line-strong); }
.apu-l::after { content: ""; position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; }
.apu-l--poll::after { background: var(--text-2); animation: ab-poll 1.1s ease-in-out infinite alternate; }
.apu-l--push { background: linear-gradient(90deg, var(--d1), var(--d2)); }
.apu-l--push::after { background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: ab-push 1.8s linear infinite; }
@keyframes ab-poll { from { left: 0; } to { left: calc(100% - 10px); } }
@keyframes ab-push { from { left: calc(100% - 10px); } to { left: 0; } }
.apu small { font-size: 11px; color: var(--text-2); }
.apu--on { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

.art-live { display: grid; gap: 12px; }
.al-top { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; }
.al-mode { display: flex; margin-left: auto; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.al-mode em { padding: 4px 10px; border-radius: 999px; font-style: normal; font-size: 11px; letter-spacing: 0; color: var(--text-2); }
.al-mode em.on { background: var(--text); color: var(--bg); font-weight: 700; }
.al-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.al-kpis div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.al-kpis small { display: block; font-size: 11px; color: var(--text-2); }
.al-kpis b { font-size: clamp(1.1rem, .7rem + 3.4cqi, 1.6rem); font-variant-numeric: tabular-nums; }
.ab-fig .al-chart { aspect-ratio: 2.4; }
.ab-fig .al-eq { aspect-ratio: 5; }

.art-ops { display: grid; gap: 14px; }
.ao-toasts { display: grid; gap: 8px; }
.ao-toasts li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.ao-toasts i { grid-row: span 2; width: 30px; height: 30px; border-radius: 10px; }
.ao-toasts b { font-size: 13px; }
.ao-toasts span { font-size: 12px; color: var(--text-2); }
.ao-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ao-timer { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; align-items: center; align-content: center; padding: 14px; border-radius: 14px; border: 1px dashed var(--line-strong); font-size: 12px; color: var(--text-2); }
.ao-timer b { font-family: var(--mono); font-size: 15px; color: var(--text); }
.ao-roles { display: grid; gap: 6px; }
.ao-roles span { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: 12px; color: var(--text-2); }
.ao-roles b { color: var(--text); }
@container (max-width: 420px) { .ao-row { grid-template-columns: 1fr; } }

.art-pipe { display: grid; grid-template-columns: auto auto auto auto minmax(0, 1fr); align-items: center; gap: 12px; padding-block: clamp(12px, 4cqi, 32px); }
.ap-src { display: grid; gap: 6px; justify-items: start; }
.ap-arrow { position: relative; width: clamp(20px, 6cqi, 48px); height: 2px; background: linear-gradient(90deg, var(--d1), var(--d2), var(--d1)); background-size: 200% 100%; animation: flow 2.4s linear infinite; }
.ap-arrow::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--d2); border-right: 0; }
.ap-out { min-width: 0; padding: 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
@container (max-width: 460px) { .art-pipe { grid-template-columns: 1fr; justify-items: center; } .ap-src { display: flex; flex-wrap: wrap; justify-content: center; } .art-pipe .ap-arrow { transform: rotate(90deg); } .ap-out { width: 100%; } }

.art-ai { display: grid; gap: 12px; }
.art-ai .bubble--ai { max-width: 92%; }
.art-aishot figcaption { margin-top: 8px; font-size: 12px; text-align: center; color: var(--text-2); }

.art-saving { display: grid; gap: 10px; }
.as-bar { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); }
.as-bar i { width: 0; height: 12px; border-radius: 999px; background: var(--line-strong); transition: width 1.4s var(--ease) .4s; }
.is-in .as-bar i { width: var(--w); }
.as-bar--b i { background: var(--grad, var(--accent)); }
.as-bar b { font-size: 13px; color: var(--text); }
.art-saving small { font-size: 11px; color: var(--text-2); }

.art-shot { position: relative; padding-bottom: 16%; }
.art-shot .frame + .frame { position: absolute; right: 0; bottom: 0; width: 44%; box-shadow: var(--shadow-lg); }


/* ---------- 첫 화면: 질문형(Q~T) ---------- */
.ab-ask { position: relative; overflow: hidden; padding-top: calc(var(--header-h) + clamp(48px, 8vw, 104px)); padding-bottom: clamp(64px, 9vw, 112px); }
.ab-ask-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ab-ask h1 { margin-top: var(--s5); font-size: clamp(2.1rem, 1.1rem + 3.2vw, 4rem); line-height: 1.15; letter-spacing: -.045em; }
.ab-ask h1 small { display: block; margin-bottom: 8px; font-size: .5em; letter-spacing: -.02em; color: var(--text-2); }
.ab-ask .lead { margin-top: var(--s5); font-size: var(--fs-lg); line-height: 1.7; color: var(--text-2); }
.ab-ask .actions { margin-top: var(--s6); }
.ab-ask-viz { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 14px; padding: clamp(16px, 2vw, 24px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.ab-ask-src { display: grid; gap: 8px; justify-items: start; }
.ab-ask-board { grid-auto-rows: 72px; }
@media (max-width: 960px) { .ab-ask-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ab-ask-viz { grid-template-columns: 1fr; } .ab-ask-src { display: flex; flex-wrap: wrap; } .ab-ask-viz .ap-arrow { display: none; } }

/* ---------- 인증·연혁 ---------- */
.ab-certs-grid { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ab-cert-photo { margin: 0; padding: 10px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); rotate: -2deg; }
.ab-cert-photo img { width: 100%; border-radius: 6px; }
.ab-cert-photo figcaption { margin-top: 8px; text-align: center; font-size: 12px; color: #555; }
.ab-certs .head { margin-bottom: var(--s6); }
.ab-cert-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ab-history { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-2); }
.ab-history b { display: block; font-family: var(--font-display); font-size: var(--fs-md); color: var(--text); font-variant-numeric: tabular-nums; }
.ab-refs .head { margin-bottom: clamp(32px, 4vw, 48px); }
@media (max-width: 860px) { .ab-certs-grid { grid-template-columns: 1fr; } .ab-cert-photo { max-width: 300px; margin-inline: auto; } }
@media (max-width: 560px) { .ab-cert-list { grid-template-columns: 1fr; } .ab-history { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .ap-arrow, .apu-l::after, .ahx .is-now::before, .amd--video em { animation: none; }
  .as-bar i { width: var(--w); }
  .js .ab-cat .ab-fig { opacity: 1; transform: none; }
}

/* ---------- 소개 페이지는 스크롤 애니메이션 없이 바로 보인다 ---------- */
.js .page-about .reveal { opacity: 1; transform: none; transition: none; }
.page-about .canvas .w { opacity: 1; transform: none; transition: none; }
.page-about .as-bar i { width: var(--w); transition: none; }

/* 공통 다듬기: 세부 항목 앞 점, 수치 타일 글자 넘침 방지 */
.ab-pts b { position: relative; padding-left: 14px; }
.ab-pts b::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.ab-facts span { overflow-wrap: anywhere; }
.ab-facts b { font-size: clamp(1.05rem, .8rem + .8vw, 1.45rem); }

/* ---------- 카드 스타일 6종 (ab-st--*) ---------- */

/* split: 그림 쪽 절반을 색면으로 채운 카드 */
.ab-st--split .ab-cat { padding: 0; overflow: hidden; gap: 0; }
.ab-st--split .ab-txt { padding: clamp(24px, 3.2vw, 48px); }
.ab-st--split .ab-art { padding: clamp(20px, 2.6vw, 36px); background: linear-gradient(150deg, color-mix(in srgb, var(--d1) 22%, var(--surface)), color-mix(in srgb, var(--d2) 16%, var(--surface)) 60%, color-mix(in srgb, var(--d3) 14%, var(--surface))); }
.ab-st--split .ab-fig { background: var(--surface); border-color: transparent; box-shadow: var(--shadow-lg); }
.ab-st--split .ab-facts li:not(:first-child) { background: color-mix(in srgb, var(--surface) 80%, transparent); border-color: transparent; }

/* line: 카드 배경 없이 굵은 선과 큰 외곽선 번호, 잡지처럼 */
.ab-st--line .ab-list { gap: clamp(56px, 7vw, 96px); }
.ab-st--line .ab-cat { padding: clamp(28px, 3vw, 40px) 0 0; border: 0; border-top: 3px solid var(--text); border-radius: 0; background: none; box-shadow: none; }
.ab-st--line .ab-cat[data-new] { border-top-color: var(--accent); background: none; }
.ab-st--line .ab-n { font-size: clamp(3.5rem, 2.4rem + 3.4vw, 5.5rem); color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.ab-st--line .ab-fig { background: var(--surface); }
.ab-st--line .ab-facts li { background: none; border: 0; border-left: 2px solid var(--line-strong); border-radius: 0; padding: 4px 0 4px 14px; }
.ab-st--line .ab-facts li:first-child { background: none; border-left-color: var(--accent); }
.ab-st--line .ab-facts li:first-child b { color: var(--accent); }
.ab-st--line .ab-facts li:first-child span { color: var(--text-2); }
.ab-st--line .ab-pdf { background: none; border-radius: 0; border-top: 1px dashed var(--line-strong); padding: 14px 0 0; }

/* outline: 테두리만 있는 설계도 느낌, 그림 박스엔 모눈 */
.ab-st--outline .ab-cat { background: none; box-shadow: none; border: 1.5px solid var(--line-strong); }
.ab-st--outline .ab-cat[data-new] { border: 1.5px solid var(--accent); background: none; }
.ab-st--outline .ab-n { display: inline-grid; place-items: center; min-width: 2.2em; height: 1.5em; padding: 0 .3em; border: 1.5px solid var(--accent); border-radius: 999px; font-size: clamp(1.4rem, 1.1rem + .8vw, 1.8rem); }
.ab-st--outline .ab-fig { background-color: var(--surface); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 22px 22px; border-style: dashed; border-color: var(--line-strong); }
.ab-st--outline .ab-facts li { background: var(--surface); border-style: dashed; border-color: var(--line-strong); }
.ab-st--outline .ab-facts li:first-child { background: var(--surface); border: 1.5px solid var(--accent); }
.ab-st--outline .ab-facts li:first-child b { color: var(--accent); }
.ab-st--outline .ab-facts li:first-child span { color: var(--text-2); }

/* panel: 기본 카드 + 위쪽 색 띠 */
.ab-st--panel .ab-cat { overflow: hidden; }
.ab-st--panel .ab-cat::after { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad, var(--accent)); }

/* glass: 반투명 카드 + 뒤쪽 은은한 빛 */
.ab-st--glass .ab-list { isolation: isolate; }
.ab-st--glass .ab-cat { background: color-mix(in srgb, var(--surface) 72%, transparent); border-color: color-mix(in srgb, var(--text) 12%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ab-st--glass .ab-cat::after { content: ""; position: absolute; z-index: -1; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent), transparent 68%); filter: blur(30px); top: -12%; right: -6%; pointer-events: none; }
.ab-st--glass .ab-cat:nth-child(even)::after { right: auto; left: -6%; background: radial-gradient(circle, color-mix(in srgb, var(--d2) 36%, transparent), transparent 68%); }
.ab-st--glass .ab-fig, .ab-st--glass .ab-facts li { background: color-mix(in srgb, var(--bg) 55%, transparent); border-color: color-mix(in srgb, var(--text) 10%, transparent); }
.ab-st--glass .ab-facts li:first-child { background: var(--grad, var(--accent)); }

/* poster: 카드 뒤로 아주 큰 번호, 은은한 색 그라데이션 */
.ab-st--poster .ab-cat { overflow: hidden; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface) 55%); }
.ab-st--poster .ab-cat::after { content: attr(data-n); position: absolute; right: -.04em; bottom: -.22em; z-index: 0; font-family: var(--font-display); font-size: clamp(9rem, 6rem + 12vw, 18rem); font-weight: 800; line-height: 1; letter-spacing: -.06em; color: color-mix(in srgb, var(--accent) 9%, transparent); pointer-events: none; }
.ab-st--poster .ab-txt, .ab-st--poster .ab-art { position: relative; z-index: 1; }
.ab--left.ab-st--poster .ab-cat::after, .ab--zigzag.ab-st--poster .ab-cat:nth-child(even)::after { right: auto; left: -.04em; }
.ab-st--poster .ab-meta .ab-n { font-size: clamp(1.1rem, .9rem + .6vw, 1.4rem); padding: 4px 10px; border-radius: 8px; background: var(--accent); color: #fff; }

@media (max-width: 960px) {
  .ab-st--split .ab-art { order: 0; }
  .ab-st--poster .ab-cat::after { font-size: 8rem; }
}

/* ---------- 사이드바 목차 (ab--side, A·C·E): 카테고리 목록이 왼쪽에서 스크롤을 따라오고 지금 보는 항목을 표시 ---------- */
.ab--side { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: clamp(28px, 3.5vw, 56px); align-items: start; }
.ab--side .ab-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.ab--side .ab-toc ul { flex-direction: column; flex-wrap: nowrap; gap: 2px; margin: 0; padding: 12px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.ab--side .ab-toc ul::before { content: "CATEGORIES"; padding: 4px 12px 10px; font-size: 11px; font-weight: 800; letter-spacing: .16em; color: var(--text-2); }
.ab--side .ab-toc li { display: block; }
.ab--side .ab-toc a { display: flex; width: 100%; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; font-size: var(--fs-sm); line-height: 1.35; transition: background-color .2s, color .2s; }
.ab--side .ab-toc a:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.ab--side .ab-toc a[aria-current] { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); font-weight: 700; }
.ab--side .ab-toc a[aria-current] span { color: var(--accent); }
.ab--side .ab-cat { padding: clamp(20px, 2.4vw, 36px); }
.ab--side.ab-st--split .ab-cat { padding: 0; }
@media (max-width: 1440px) {
  .ab--side, .about--wide .ab--side { grid-template-columns: minmax(0, 1fr); }
  .ab--side .ab-toc { position: static; }
  .ab--side .ab-toc ul { flex-direction: row; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s6); padding: 0; border: 0; background: none; box-shadow: none; }
  .ab--side .ab-toc ul::before { display: none; }
  .ab--side .ab-toc a { width: auto; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: var(--fs-xs); }
}
/* 사이드바 시안(A·C·E) 소개 페이지는 화면을 넓게 쓴다(헤더·푸터도 같은 폭으로 맞춰 좌우 끝을 정렬) */
.about--wide .container { --container: 1560px; }
.about--wide .ab--side { grid-template-columns: 240px minmax(0, 1fr); }
.about--wide .ab--side .ab-pts li { grid-template-columns: minmax(10em, .4fr) minmax(0, 1fr); gap: 2px 18px; }

/* A 소개 페이지 첫 화면(ABOUT BIX5)은 원래 폭 유지 */
[data-variant="A"] .about--wide .ab-hero .container { --container: 1240px; }
@media (max-width: 1440px) { .about--wide .ab--side { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   대시보드형 인터페이스란? (interface.html) — _src/<시안>/interface-page.html 이 조합
   첫 화면 3종(if-hero-anno·center·type), 5가지 요소 배치 4종(if5--flow·rows·loop·anno),
   하루 장면 2종(ifs--v·h), 비교 2종(if-vs--split·stack), 현장 2종(ifu--grid·strip). 스크롤 애니메이션 없음
   ========================================================= */
.js .page-interface .reveal { opacity: 1; transform: none; transition: none; }
.page-interface .canvas .w { opacity: 1; transform: none; }
:root { --if-red: #e5484d; --if-green: #12a150; }

/* 첫 화면 */
.if-hero .lead b { color: var(--text); font-weight: 700; }
.if-steps { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s5); }
.if-steps li { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-2); }
.if-steps li b { color: var(--accent); font-weight: 800; }
.if-steps li:not(:last-child)::after { content: "→"; margin-left: 6px; color: var(--line-strong); }
.if-hero--anno .actions { margin-top: var(--s5); }
.if-hero--center .if-steps { justify-content: center; margin-top: clamp(40px, 6vw, 72px); gap: 12px; }
.if-hero--center .if-steps li { padding: 14px 22px; font-size: var(--fs-md); box-shadow: var(--shadow-lg); }
.if-big { margin-top: var(--s5); font-family: var(--font-display); font-size: clamp(2.4rem, 1rem + 5.6vw, 6.2rem); font-weight: 800; line-height: 1.02; letter-spacing: -.045em; }
.if-big span:nth-child(1) { color: var(--d1); } .if-big span:nth-child(2) { color: var(--d2); } .if-big span:nth-child(3) { color: var(--if-red); } .if-big span:nth-child(4) { color: var(--accent); } .if-big span:nth-child(5) { color: var(--if-green); }
.if-type-row { grid-template-columns: minmax(0, 1fr) auto; }

/* 예시 화면(번호 1~5) */
.if-mock { position: relative; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 12px; }
.ifm-bar { display: flex; align-items: center; gap: 6px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.ifm-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.ifm-bar b { margin-left: 8px; font-size: 12px; }
.ifm-live { margin-left: auto; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--if-red); background: color-mix(in srgb, var(--if-red) 12%, transparent); }
.ifm-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-areas: "kpi alert" "chart act" "chart done"; gap: 14px; padding: 18px; }
.if-mock small { display: block; font-size: 11px; color: var(--text-2); }
.if-mock [data-pin] { position: relative; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.if-mock [data-pin]::before { content: attr(data-pin); position: absolute; z-index: 2; top: -10px; left: -10px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font: 800 12px/24px var(--font); text-align: center; box-shadow: 0 0 0 3px var(--surface); }
.ifm-kpis { grid-area: kpi; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ifm-kpis b { font-size: clamp(15px, 1.4vw, 19px); font-weight: 800; font-variant-numeric: tabular-nums; }
.ifm-kpis .is-warn b { color: var(--if-red); }
.ifm-alert { grid-area: alert; display: grid; gap: 2px; align-content: center; background: color-mix(in srgb, var(--if-red) 12%, var(--surface)) !important; border-color: color-mix(in srgb, var(--if-red) 45%, transparent) !important; }
.ifm-alert b { color: var(--if-red); }
.ifm-alert b::before { content: "⚠ "; }
.ifm-alert span { color: var(--text-2); }
.ifm-chart { grid-area: chart; display: grid; grid-template-rows: auto 1fr; gap: 8px; padding-bottom: 28px !important; }
.ifm-bars { display: flex; align-items: flex-end; gap: 10px; min-height: 130px; border-bottom: 1px solid var(--line-strong); }
.ifm-bars i { position: relative; flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: color-mix(in srgb, var(--accent) 38%, transparent); }
.ifm-bars i.is-sel { background: var(--if-red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--if-red) 25%, transparent); }
.ifm-bars em { position: absolute; bottom: -20px; left: 50%; translate: -50% 0; font-style: normal; font-size: 10px; color: var(--text-2); }
.ifm-pop { position: absolute; left: 30%; top: 30%; display: grid; gap: 2px; padding: 8px 11px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 11px; box-shadow: var(--shadow-lg); }
.ifm-pop b { font-size: 12px; }
.ifm-act { grid-area: act; display: grid; gap: 6px; align-content: center; }
.ifm-btn { display: block; padding: 7px 10px; border-radius: 8px; text-align: center; font-size: 12px; font-weight: 700; background: var(--surface); border: 1px solid var(--line-strong); }
.ifm-btn--main { background: var(--accent); color: #fff; border-color: transparent; }
.ifm-done { grid-area: done; display: grid; gap: 4px; }
.ifm-done b { color: var(--if-green); }
.if-mock svg, .ifn-check svg { width: 100%; height: 28px; }
.if-mock polyline, .ifn-check polyline { fill: none; stroke: var(--if-green); stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ifm-alert::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 0 color-mix(in srgb, var(--if-red) 40%, transparent); animation: if-ping 2.2s ease-out infinite; pointer-events: none; }
@keyframes if-ping { 70%, 100% { box-shadow: 0 0 0 10px transparent; } }

/* 쉽게 말하면: 계기판 vs 내비게이션 */
.if-vs { display: grid; gap: var(--s5); align-items: stretch; }
.if-vs--split { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.if-vs--stack { max-width: 980px; margin-inline: auto; }
.if-vs--stack .ifv { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s5); }
.if-vs--stack .ifv > :not(.ifv-ico) { grid-column: 2; }
.if-vs--stack .ifv-ico { grid-row: 1 / span 4; }
.if-vs--stack .ifv-vs { justify-self: center; }
.ifv { position: relative; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.ifv--new { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad, var(--accent)) border-box; box-shadow: var(--shadow-lg); }
.ifv-k { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--text-2); }
.ifv--new .ifv-k { color: var(--accent); }
.ifv-ico { display: grid; place-items: center; width: 64px; height: 64px; margin-top: var(--s4); border-radius: 18px; background: var(--surface-2); color: var(--text-2); }
.ifv--new .ifv-ico { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.ifv-ico svg { width: 36px; height: 36px; }
.ifv h3 { margin-top: var(--s4); font-size: var(--fs-h3); }
.ifv > p:not(.ifv-k) { margin-top: var(--s3); color: var(--text-2); line-height: 1.75; }
.ifv-flow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s5); }
.ifv-flow li { padding: 6px 12px; border-radius: 999px; font-size: 13px; background: var(--surface-2); color: var(--text-2); }
.ifv-flow li:not(:last-child)::after { content: " →"; color: var(--line-strong); }
.ifv--old .ifv-flow li:nth-child(2), .ifv--old .ifv-flow li:nth-child(3) { background: none; border: 1px dashed var(--line-strong); }
.ifv--new .ifv-flow li { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--text); font-weight: 600; }
.ifv-vs { align-self: center; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--text); color: var(--bg); font-weight: 800; font-size: 14px; }

/* 왜 필요해졌나 */
.if-why-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.if-why-grid .head { margin-bottom: 0; }
.if-why-list { display: grid; gap: 12px; }
.if-why-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.if-why-n { grid-row: span 2; font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1; color: var(--accent); }
.if-why-list b { font-size: var(--fs-md); }
.if-why-list span:last-child { color: var(--text-2); font-size: var(--fs-sm); }

/* 5가지 요소: 공통 */
.if5-i { position: relative; min-width: 0; }
.if5-mini { padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); container-type: inline-size; }
.if5-meta { display: flex; align-items: baseline; gap: 10px; }
.if5-n { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; line-height: 1; color: var(--accent); }
.if5-en { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.if5-t h3 { margin-top: 8px; font-size: var(--fs-h3); }
.if5-t > p:not(.if5-meta):not(.if5-b) { margin-top: 8px; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.75; }
.if5-b { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 12px; font-size: 12px; color: var(--text-2); }
.if5-b span { padding: 2px 8px; border-radius: 6px; background: var(--text); color: var(--bg); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.if5-close { max-width: 760px; margin: clamp(40px, 5vw, 64px) auto 0; text-align: center; font-size: var(--fs-lg); font-weight: 600; line-height: 1.6; }

/* flow: 다섯 칸이 화살표로 이어짐 */
.if5--flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.if5--flow .if5-mini { height: 170px; }
.if5--flow .if5-t { margin-top: var(--s4); }
.if5--flow .if5-i:not(:last-child)::after { content: "→"; position: absolute; top: 74px; right: -19px; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; }
/* rows: 큰 그림과 설명이 번갈아 */
.if5--rows { display: grid; gap: clamp(20px, 3vw, 32px); }
.if5--rows .if5-i { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(18px, 2.4vw, 28px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.if5--rows .if5-i:nth-child(even) .if5-mini { order: 2; }
.if5--rows .if5-mini { height: 220px; background: var(--bg); }
.if5--rows .if5-n { font-size: 2.6rem; }
/* loop: 왼쪽 원형 순환 + 오른쪽 목록 */
.if5-wrap--loop { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.if-ring { --w: clamp(260px, 28vw, 400px); position: relative; width: var(--w); height: var(--w); margin: 50px; }
.if-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px dashed var(--line-strong); }
.if-ring::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.if-ring-c { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; text-align: center; }
.if-ring-c b { font-family: var(--font-display); font-size: clamp(1.6rem, 1rem + 1.6vw, 2.4rem); font-weight: 800; }
.if-ring-c small { color: var(--text-2); }
.if-ring-n { position: absolute; z-index: 2; left: 50%; top: 50%; display: grid; place-content: center; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); text-align: center; font-size: 13px; font-weight: 800; transform: rotate(var(--a)) translate(calc(var(--w) / 2)) rotate(calc(-1 * var(--a))); }
.if-ring-n b { font-family: var(--font-display); font-size: 1.1rem; color: var(--accent); }
.if5--loop { display: grid; gap: 10px; }
.if5--loop .if5-i { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: center; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.if5--loop .if5-mini { height: 124px; padding: 10px; background: var(--bg); }
.if5--loop .if5-t h3 { margin-top: 4px; }
/* anno: 위의 예시 화면 번호와 아래 설명이 짝 */
.if5-wrap--anno .if-mock { max-width: 960px; margin: 0 auto clamp(40px, 5vw, 64px); }
.if5--anno { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.if5--anno .if5-mini { display: none; }
.if5--anno .if5-i { padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.if5--anno .if5-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; }

/* 작은 그림(ifn-*) */
.ifn { position: relative; height: 100%; min-height: 0; font-size: 11px; }
.ifn .viz { width: 100%; height: 100%; aspect-ratio: auto; }
.ifn-see { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ifn-w { min-height: 0; padding: 6px; border-radius: 8px; background: var(--surface-2); }
.ifn-w--wide { grid-column: span 2; }
.ifn-w--kpi { display: grid; align-content: center; }
.ifn-w--kpi small { color: var(--text-2); }
.ifn-w--kpi b { font-size: 16px; font-weight: 800; }
.ifn-find .ifn-bars { position: absolute; inset: 14px 40% 6px 4px; display: flex; align-items: flex-end; gap: 8px; border-bottom: 1px solid var(--line-strong); }
.ifn-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--accent) 38%, transparent); }
.ifn-bars i.is-sel { background: var(--if-red); }
.ifn-cur { position: absolute; left: 30%; top: 52%; width: 20px; color: var(--text); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.ifn-pop { position: absolute; right: 0; top: 8px; display: grid; gap: 3px; width: 42%; padding: 9px 10px; border-radius: 10px; background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg); }
.ifn-alert { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.ifn-bell { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--if-red) 14%, transparent); color: var(--if-red); animation: if-ring-bell 2.4s ease-in-out infinite; }
.ifn-bell svg { width: 26px; }
.ifn-bell::after { content: ""; position: absolute; top: 10px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--if-red); box-shadow: 0 0 0 2px var(--surface); }
@keyframes if-ring-bell { 0%, 70%, 100% { transform: none; } 75% { transform: rotate(-12deg); } 85% { transform: rotate(10deg); } }
.ifn-toasts { display: grid; gap: 6px; }
.ifn-toasts p { display: grid; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.ifn-toasts p.is-warn { border-color: color-mix(in srgb, var(--if-red) 50%, transparent); background: color-mix(in srgb, var(--if-red) 10%, var(--surface)); }
.ifn-toasts p.is-warn b { color: var(--if-red); }
.ifn-toasts span { color: var(--text-2); }
.ifn-act { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; height: 100%; }
.ifn-card { display: grid; gap: 5px; padding: 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.ifn-card .ifm-btn { padding: 5px 6px; font-size: 11px; }
.ifn-sys { display: grid; place-items: center; padding: 12px 10px; border-radius: 10px; background: var(--text); color: var(--bg); text-align: center; }
.ifn-sys small { opacity: .7; font-size: 10px; }
.ifn-check { display: grid; align-content: center; gap: 8px; height: 100%; }
.ifn-ba { display: flex; align-items: center; justify-content: center; gap: 12px; }
.ifn-ba span { display: grid; text-align: center; }
.ifn-ba small { color: var(--text-2); }
.ifn-ba b { font-family: var(--font-display); font-size: 26px; font-weight: 800; line-height: 1; color: var(--if-red); }
.ifn-ba .is-ok b { color: var(--if-green); }
.ifn-ba i { font-style: normal; color: var(--text-2); }
.ifn-ok { justify-self: center; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--if-green) 14%, transparent); color: var(--if-green); font-weight: 800; }
@container (max-width: 230px) { .ifn-pop span:last-child { display: none; } .ifn-find .ifn-bars { right: 46%; } .ifn-act { grid-template-columns: 1fr; gap: 6px; } .ifn-act .ap-arrow { display: none; } .ifn-sys { padding: 6px; } .ifn-alert { grid-template-columns: 1fr; justify-items: center; } .ifn-bell { width: 40px; height: 40px; } }

/* 하루 장면 */
.ifs-i--see { --c: var(--d1); } .ifs-i--alert { --c: var(--if-red); } .ifs-i--find { --c: var(--d2); } .ifs-i--act { --c: var(--accent); } .ifs-i--check { --c: var(--if-green); }
.ifs-i time { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--text-2); }
.ifs-tag { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.ifs-i h3 { margin-top: 8px; font-size: var(--fs-md); }
.ifs-i p { margin-top: 6px; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.7; }
.ifs-before { padding: 24px; border-radius: var(--r-lg); border: 1.5px dashed var(--line-strong); }
.ifs-before-k { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--text-2); }
.ifs-before ol { display: grid; gap: 8px; margin-top: 14px; counter-reset: b; }
.ifs-before li { counter-increment: b; display: flex; gap: 10px; align-items: center; color: var(--text-2); font-size: var(--fs-sm); }
.ifs-before li::before { content: counter(b); display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); font-size: 11px; font-weight: 800; }
.ifs-before-n { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; line-height: 1.6; }
.ifs--v { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.ifs--v .ifs-list { position: relative; display: grid; gap: 14px; padding-left: 32px; }
.ifs--v .ifs-list::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 2px; background: var(--line-strong); }
.ifs--v .ifs-i { position: relative; padding: 18px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.ifs--v .ifs-i::before { content: ""; position: absolute; left: -30px; top: 22px; width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px var(--bg); }
.ifs--h .ifs-list { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.ifs--h .ifs-i { position: relative; padding: 34px 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); }
.ifs--h .ifs-before { margin-top: var(--s6); }
.ifs--h .ifs-before ol { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.ifs--h .ifs-before li:not(:last-child)::after { content: "→"; color: var(--line-strong); }

/* 현장 */
.ifu { display: grid; gap: var(--s5); }
.ifu--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ifu--strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ifu li { display: grid; gap: 4px; }
.ifu .frame { margin-bottom: 10px; padding: 6px; }
.ifu img { border-radius: 10px; }
.ifu b { font-size: var(--fs-md); }
.ifu span { font-size: var(--fs-sm); color: var(--text-2); }

/* 샘플 띠 */
.if-sample { padding-block: clamp(48px, 6vw, 80px); }
.if-sample-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s5); padding: clamp(28px, 4vw, 56px); border-radius: var(--r-xl); background: var(--grad, var(--accent)); color: #fff; }
.if-sample .kicker { color: rgba(255, 255, 255, .85); }
.if-sample h2 { margin-top: var(--s3); font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); }
.if-sample p { margin-top: var(--s3); color: rgba(255, 255, 255, .88); }
.if-sample .btn--primary { background: #fff; color: #0b0d17; border-color: #fff; }
.if-sample .btn--secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }

@media (max-width: 1100px) {
  .if5--flow, .if5--anno { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .if5--flow .if5-i::after { display: none; }
  .ifs--h .ifs-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ifu--strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .if5-wrap--loop { grid-template-columns: minmax(0, 1fr); justify-items: center; }
}
@media (max-width: 860px) {
  .if-vs--split, .if-why-grid, .ifs--v { grid-template-columns: minmax(0, 1fr); }
  .ifv-vs { justify-self: center; }
  .if5--rows .if5-i { grid-template-columns: minmax(0, 1fr); }
  .if5--rows .if5-i:nth-child(even) .if5-mini { order: 0; }
  .if-type-row { grid-template-columns: minmax(0, 1fr); }
  .ifm-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kpi" "alert" "chart" "act" "done"; }
}
@media (max-width: 640px) {
  .if5--flow, .if5--anno, .ifs--h .ifs-list, .ifu--grid, .ifu--strip { grid-template-columns: minmax(0, 1fr); }
  .if5--loop .if5-i { grid-template-columns: minmax(0, 1fr); }
  .if-ring { --w: 220px; }
  .if-ring-n { width: 70px; height: 70px; margin: -35px 0 0 -35px; font-size: 11px; }
  .if-vs--stack .ifv { grid-template-columns: minmax(0, 1fr); }
  .if-vs--stack .ifv > * { grid-column: 1 !important; grid-row: auto !important; }
}
@media (prefers-reduced-motion: reduce) { .ifm-alert::after, .ifn-bell { animation: none; } }
/* 대시보드형 인터페이스 페이지는 넓게(헤더·푸터 포함 1560px) */
.page-wide .container { --container: 1560px; }
.page-wide .if5-wrap--anno .if-mock { max-width: 1120px; }
.page-wide .if-vs--stack { max-width: 1200px; }

/* =========================================================
   대시보드 예제 (examples.html) — _src/<시안>/examples-page.html, 데이터 _src/examples.json
   첫 화면 2종(ex-hero--left·center), 카드 배치 4종(ex--grid·overlay·list·mosaic). 분류 필터는 core.js [data-filter]
   ========================================================= */
.js .page-examples .reveal { opacity: 1; transform: none; transition: none; }
.ex-hero { padding-bottom: clamp(40px, 5vw, 64px); }
.ex-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s6) clamp(32px, 5vw, 80px); align-items: end; }
.ex-hero h1 { margin-top: var(--s4); }
.ex-hero .lead { max-width: 46em; }
.ex-facts { display: flex; gap: 10px; }
.ex-facts li { display: grid; gap: 2px; min-width: 120px; padding: 16px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.ex-facts li:first-child { background: var(--grad, var(--accent)); border-color: transparent; color: #fff; }
.ex-facts b { font-family: var(--font-display); font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.4rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.ex-facts span { font-size: 12px; opacity: .8; }
.ex-hero--center .ex-hero-in { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.ex-hero--center .lead { margin-inline: auto; }

.ex-sec { padding-top: clamp(32px, 4vw, 56px); }
.ex-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); }
.ex-bar-t { font-size: var(--fs-h3); }
.ex-bar .filter-btn span { margin-left: 4px; font-size: 11px; opacity: .6; }
.ex-note { margin: var(--s3) 0 var(--s6); font-size: var(--fs-sm); color: var(--text-2); }

/* 카드 공통 */
.ex-grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.exc[hidden] { display: none; }
.exc > a { display: flex; flex-direction: column; height: 100%; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.exc > a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.exc figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0d17; }
.exc img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.exc > a:hover img { transform: scale(1.04); }
.exc-b { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 16px 18px 18px; }
.exc-meta { display: flex; align-items: center; gap: 8px; }
.exc-n { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent); }
.exc-cat { padding: 2px 8px; border-radius: 999px; background: var(--surface-2); font-size: 11px; font-weight: 600; color: var(--text-2); }
.exc h3 { font-size: var(--fs-md); line-height: 1.4; }
.exc-d { font-size: var(--fs-sm); line-height: 1.6; color: var(--text-2); }
.exc-open { margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: 700; color: var(--accent); }

/* grid: 3열 카드 */
.ex--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* overlay: 화면 위에 글이 얹힌 4열, 첫 카드는 크게 */
.ex--overlay { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ex--overlay .exc > a { position: relative; border: 0; background: #0b0d17; }
.ex--overlay .exc figure { aspect-ratio: 4 / 3; }
.ex--overlay .exc-b { position: absolute; inset: auto 0 0; z-index: 1; padding: 40px 16px 14px; background: linear-gradient(180deg, transparent, rgba(7, 7, 12, .92)); color: #fff; }
.ex--overlay .exc-d, .ex--overlay .exc-open { display: none; }
.ex--overlay .exc-cat { background: rgba(255, 255, 255, .16); color: #fff; }
.ex--overlay .exc-n { color: #fff; opacity: .8; }
.ex--overlay .exc:first-child:not([hidden]) { grid-column: span 2; grid-row: span 2; }
.ex--overlay .exc:first-child figure { aspect-ratio: auto; height: 100%; }
.ex--overlay .exc:first-child .exc-d { display: block; color: rgba(255, 255, 255, .85); }
.ex--overlay .exc:first-child h3 { font-size: var(--fs-h3); }
/* list: 그림 왼쪽 + 설명 오른쪽, 2열 */
.ex--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ex--list .exc > a { flex-direction: row; align-items: stretch; }
.ex--list .exc figure { flex: 0 0 46%; aspect-ratio: auto; }
.ex--list .exc-b { justify-content: center; padding: 18px 22px; }
.ex--list .exc-n { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; }
/* mosaic: 크기가 섞인 4열 */
.ex--mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; }
.ex--mosaic .exc:nth-child(7n + 1) { grid-column: span 2; }
.ex--mosaic .exc:nth-child(7n + 1) h3 { font-size: var(--fs-h3); }
.ex--mosaic .exc:nth-child(7n + 1) figure { aspect-ratio: 21 / 9; }

/* 직접 만들기 띠 */
.ex-make { padding-block: clamp(56px, 7vw, 96px); }
.ex-make-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s5); }
.ex-make h2 { margin-top: var(--s3); font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); }
.ex-make p { margin-top: var(--s3); color: var(--text-2); }

@media (max-width: 1200px) {
  .ex--overlay, .ex--mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .ex-hero-in { grid-template-columns: minmax(0, 1fr); }
  .ex--grid, .ex--overlay, .ex--mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex--list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .ex--grid, .ex--overlay, .ex--mosaic { grid-template-columns: minmax(0, 1fr); }
  .ex--overlay .exc:first-child:not([hidden]), .ex--mosaic .exc:nth-child(7n + 1) { grid-column: auto; grid-row: auto; }
  .ex--list .exc > a { flex-direction: column; }
  .ex-facts { flex-wrap: wrap; }
}
