/* 베이스 홈페이지 v2 — 공식 홈페이지형 레이아웃 + 인터랙션
 * 색·모서리·그림자·글꼴·움직임 시간은 ../assets/css/ds-baice.css(ERP 디자인 가이드 토큰)만 쓴다. hex·rgba를 직접 쓰지 않는다.
 * 버튼은 알약 + 「아이콘 + 글자」, 카드는 테두리 없는 면, 라임은 강조 한 곳(문의 띠·중심 점), 「출시 예정」은 안내 배지. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ds-bg-base); color: var(--ds-text); font-family: var(--ds-font-sans); font-size: 16px; line-height: 1.65; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
.ds-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--ds-focus); outline-offset: 2px; }

.shell { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--ds-primary-text); margin-bottom: 14px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; font-weight: 600; }
.ibtn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--ds-bg-surface); color: var(--ds-text); cursor: pointer; }
.ibtn:hover { background: var(--ds-bg-muted); }

/* ── 브랜드 ── */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand b { font-size: 17px; letter-spacing: .02em; }
.brand__mark { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ds-highlight); color: var(--ds-on-highlight); font-weight: 800; }

/* ── 헤더: 처음엔 투명, 내리면 면이 깔린다 ── */
.topbar { position: sticky; top: 0; z-index: var(--ds-z-sticky); border-bottom: 1px solid transparent; transition: background var(--ds-duration-slow) var(--ds-ease), border-color var(--ds-duration-slow) var(--ds-ease); }
.topbar.is-scrolled { background: var(--ds-bg-elevated); border-bottom-color: var(--ds-border); }
.topbar__in { max-width: 1200px; margin: 0 auto; padding: 12px 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; }
.nav { display: contents; }
.bnav, .fab__mail { display: none; }
.nav__links { display: flex; gap: 2px; }
.nav__links a { padding: 8px 14px; border-radius: var(--ds-radius-full); color: var(--ds-text-secondary); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; transition: background var(--ds-duration) var(--ds-ease), color var(--ds-duration) var(--ds-ease); }
.nav__links a:hover { background: var(--ds-bg-muted); color: var(--ds-text); }
.nav__links a.is-current { background: var(--ds-highlight); color: var(--ds-on-highlight); font-weight: 600; }
.nav__tools { justify-self: end; display: flex; align-items: center; gap: 10px; }
/* 테마 전환 — 동그란 아이콘 버튼 하나. 밝은 화면엔 달, 어두운 화면엔 해 */
.theme-toggle { background: transparent; }
/* 라임 첫 화면 위(헤더가 투명할 때)에서는 누름·올림 면을 연한 라임으로 — 어두운 화면의 검정 면이 짙은 초록 아이콘을 가리지 않게 */
.topbar:not(.is-scrolled) .theme-toggle:hover, .topbar:not(.is-scrolled) .theme-toggle:active { background: var(--ds-green-200); }
/* 터치 기기: 누른 뒤 남는 「올림」 면을 없앤다 */
@media (hover: none) { .theme-toggle:hover { background: transparent; } .topbar:not(.is-scrolled) .theme-toggle:hover { background: transparent; } .topbar:not(.is-scrolled) .theme-toggle:active { background: var(--ds-green-200); } }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
}

/* ── 등장 효과 ── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ds-ease-out), transform 700ms var(--ds-ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .rise { opacity: 0; animation: rise 900ms var(--ds-ease-out) forwards; animation-delay: calc(var(--d, 0) * 120ms + 100ms); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ── 첫 화면: 라임 면 + 큰 글자(시안 B1). 라임은 밝은·어두운 화면 모두 같은 색 ── */
.hero { position: relative; overflow: hidden; margin-top: -65px; padding-top: 65px; background: var(--ds-green-300); color: var(--ds-green-900); }
.hero__in { position: relative; z-index: 1; display: grid; align-content: center; min-height: min(880px, calc(100svh - 60px)); padding-top: 56px; padding-bottom: 88px; }
.hero .eyebrow { color: inherit; font-weight: 800; letter-spacing: .1em; margin-bottom: 28px; }
.hero h1 { font-size: clamp(50px, 8vw, 132px); font-weight: 800; line-height: 1.02; letter-spacing: -.05em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* 바뀌는 줄 — 제목의 0.56배, 한 단계 낮은 굵기·짙은 초록. 앞 단어가 빠진 뒤 다음 단어가 들어온다 */
.swap { display: flex; align-items: baseline; font-size: .56em; font-weight: 600; letter-spacing: -.035em; line-height: 1.25; margin: .12em 0 .18em; color: var(--ds-green-800); }
.swap__w { display: inline-block; transition: opacity 320ms var(--ds-ease), transform 320ms var(--ds-ease), filter 320ms var(--ds-ease); }
.swap__w.is-leave { opacity: 0; transform: translateY(-.25em); filter: blur(4px); }
.swap__w.is-enter { opacity: 0; transform: translateY(.25em); filter: blur(4px); transition: none; }
.hero h1 .ink { display: inline-block; margin-top: .12em; margin-left: -.06em; padding: 0 .18em; border-radius: .18em; background: var(--ds-green-900); color: var(--ds-green-300); }
.hero__lead { margin-top: 36px; max-width: 30em; font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; }
.hero__actions { margin-top: 44px; gap: 12px; }
.btn-deep { background: var(--ds-green-900); color: var(--ds-green-300); border-color: transparent; }
.btn-deep:hover { filter: brightness(1.3); }
.btn-deep-ghost { background: transparent; color: var(--ds-green-900); border: 1.5px solid var(--ds-green-900); }
.btn-deep-ghost:hover { background: var(--ds-green-200); }
.hero__big { position: absolute; right: -4vw; bottom: -12vw; font-size: 48vw; font-weight: 900; line-height: 1; letter-spacing: -.08em; color: var(--ds-green-900); opacity: .06; pointer-events: none; user-select: none; }
.hero__count { position: absolute; z-index: 1; right: 48px; top: 50%; transform: translateY(-50%); display: grid; gap: 8px; }
.hero__count i { display: block; width: 4px; height: 28px; border-radius: 2px; background: var(--ds-green-900); opacity: .2; transition: opacity var(--ds-duration) var(--ds-ease), height var(--ds-duration) var(--ds-ease); }
.hero__count i.is-on { opacity: 1; height: 44px; }
/* 라임 첫 화면 위에 떠 있는 동안 헤더 글자는 짙은 초록(어두운 화면에서도 읽히게) */
.topbar:not(.is-scrolled) .brand, .topbar:not(.is-scrolled) .theme-toggle { color: var(--ds-green-900); }
.topbar:not(.is-scrolled) .topbar__in > .brand .brand__mark { background: var(--ds-green-900); color: var(--ds-green-300); }
@media (min-width: 961px) {
  .topbar:not(.is-scrolled) .nav__links a { color: var(--ds-green-900); }
  .topbar:not(.is-scrolled) .nav__links a:hover { background: var(--ds-green-200); }
}

/* 솔루션 이름 띠 */
.marquee { border-top: 1px solid var(--ds-border); border-bottom: 1px solid var(--ds-border); overflow: hidden; background: var(--ds-bg-surface); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee__track span { padding: 18px 28px; font-size: 18px; font-weight: 700; color: var(--ds-text-muted); white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.marquee__track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ds-highlight); margin-right: -28px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── 구역 띠 ── */
.band { padding: 120px 0; }
.band--surface { background: var(--ds-bg-surface); }
.band--ink { background: var(--ds-ink-card); color: var(--ds-on-ink-card); }
.head { margin-bottom: 56px; }
.head--center { text-align: center; }
.head--center .head__desc { margin-left: auto; margin-right: auto; }
.head h2, .statement h2, .cta h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; line-height: 1.22; letter-spacing: -.03em; }
.head__desc { margin-top: 18px; max-width: 36em; color: var(--ds-text-secondary); font-size: 17px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.split .head { position: sticky; top: 120px; margin-bottom: 0; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

/* 카드 — 테두리 없는 면. 띠가 흰 면이면 회색 면 */
.card { padding: 32px; border-radius: var(--ds-radius-xl); background: var(--ds-bg-surface); min-width: 0; }
.band--surface .card { background: var(--ds-bg-base); }
.card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
.card h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card h4 .ds-badge, .card h3 .ds-badge { vertical-align: middle; }
.card p { color: var(--ds-text-secondary); }
.card--sm { padding: 22px; }
.card--sm h4 { font-size: 16px; margin-bottom: 4px; }
.card--sm p { font-size: 14px; }
.card__no { display: block; font-size: 44px; font-weight: 300; line-height: 1; letter-spacing: -.03em; color: var(--ds-primary-text); margin-bottom: 48px; font-variant-numeric: tabular-nums; }
.lift { transition: transform var(--ds-duration-slow) var(--ds-ease), box-shadow var(--ds-duration-slow) var(--ds-ease); }
.lift:hover { transform: translateY(-6px); box-shadow: var(--ds-shadow-lg); }
.sub { font-size: 13px; color: var(--ds-text-muted); font-weight: 500; margin-left: 4px; }

/* ── 우리 팀 ── */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; }  /* 줄 사이 10px — 구분선과 회색 면이 붙지 않게 */
.team li { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 2px 6px; padding: 26px 0; border-top: 1px solid var(--ds-border); }
.team li:last-child { grid-column: 1 / -1; }
.team .count { font-size: clamp(48px, 5vw, 68px); font-weight: 300; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.team__unit { font-size: 20px; font-weight: 600; }
.team__role { justify-self: end; color: var(--ds-text-secondary); font-weight: 600; }
/* 묶음 구분 — 1번(가구시장 기획자)·4번(UX/UI 디자이너)만 연한 회색 면을 깔아 바둑판처럼 끊어 읽히게 */
/* 구분선은 그대로 두고, 회색 칸만 둥근 면(흰 칸은 모서리 없음 → 선이 곧게) */
.team li { padding-left: 20px; padding-right: 20px; }
.team li.team--tint { background: var(--ds-bg-base); border-top-color: transparent; border-radius: var(--ds-radius-lg); }

/* ── 일하는 방식: 선이 이어지며 점이 켜진다 ── */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps::before, .steps::after { content: ""; position: absolute; top: 27px; left: 12.5%; right: 12.5%; height: 2px; background: var(--ds-border-strong); }
.steps::after { background: var(--ds-primary); transform: scaleX(0); transform-origin: left; transition: transform 1400ms var(--ds-ease-out) 200ms; }
.js .steps.in::after { transform: scaleX(1); }
.js .steps.reveal { opacity: 1; transform: none; }
.steps li { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.steps__dot { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%; background: var(--ds-bg-surface); border: 2px solid var(--ds-border-strong); font-size: 20px; font-weight: 700; color: var(--ds-text-muted); transition: background 400ms var(--ds-ease), color 400ms var(--ds-ease), border-color 400ms var(--ds-ease); transition-delay: calc(var(--d) * 320ms + 300ms); }
.steps.in .steps__dot, html:not(.js) .steps__dot { background: var(--ds-highlight); border-color: var(--ds-highlight); color: var(--ds-on-highlight); }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--ds-text-secondary); font-size: 15px; }

/* ── 업무 지도: 신경망 그래프 ── */
/* 업무 지도는 좌우 배열(그래프 | 설명). 그래프 자리를 넓히려고 이 구역만 본문 폭을 1440px까지 */
#service-map .shell { max-width: 1440px; }
.graph { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.graph__stage { position: relative; height: 680px; border-radius: var(--ds-radius-xl); background: var(--ds-bg-base); overflow: hidden; touch-action: none;
  background-image: radial-gradient(var(--ds-border-strong) 1px, transparent 1px); background-size: 24px 24px; }
.graph__svg { display: block; width: 100%; height: 100%; user-select: none; }
.graph__reset { position: absolute; top: 14px; right: 14px; box-shadow: var(--ds-shadow-sm); }
.graph__full, .graph__chips, .graph__grip, .graph__close, .dots { display: none; }
.graph__legend { position: absolute; left: 16px; bottom: 14px; display: flex; gap: 14px; font-size: 12px; color: var(--ds-text-muted); }
.graph__legend li { display: flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg--core { background: var(--ds-highlight); }
.lg--area { background: var(--ds-primary); }
.lg--sol { background: var(--ds-bg-surface); border: 2px solid var(--ds-primary-text); }
.lg--soon { background: var(--ds-bg-surface); border: 2px dashed var(--ds-primary-text); }

.g-link { fill: none; stroke: var(--ds-text-muted); stroke-width: .7; stroke-opacity: .45; stroke-linecap: round; transition: stroke var(--ds-duration) var(--ds-ease), opacity var(--ds-duration) var(--ds-ease), stroke-width var(--ds-duration) var(--ds-ease); }
.g-link--main { stroke-width: 1; stroke-opacity: .55; }
.g-link--flow { stroke-dasharray: 2 5; stroke-opacity: .5; }
.g-node { cursor: grab; transition: opacity var(--ds-duration) var(--ds-ease); outline: none; }
.g-node:active { cursor: grabbing; }
.g-node circle { transition: filter var(--ds-duration) var(--ds-ease); }
.g-node--core circle { fill: var(--ds-highlight); }
.g-node--area circle { fill: var(--ds-primary); }
.g-node--sol circle { fill: var(--ds-bg-surface); stroke: var(--ds-primary-text); stroke-width: 1.5; }
.g-sub { fill: var(--ds-text-muted); font-weight: 400; }
.g-node--soon circle { stroke-dasharray: 3 2.4; }  /* 출시 예정 솔루션은 점선 원 */
.g-node text { fill: var(--ds-text); font-size: 12px; font-weight: 600; paint-order: stroke; stroke: var(--ds-bg-base); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.g-node--area text { font-size: 14px; font-weight: 700; }
.g-node.g-node--core text { fill: var(--ds-on-highlight); font-weight: 800; font-size: 15px; stroke: none; }  /* 일반 이름 규칙보다 뒤·더 구체적으로 — 어두운 화면에서도 라임 위 검정 글자 */
/* 좁은 화면: 솔루션 이름은 고른 점과 이어진 것만 */
.graph.is-compact .g-node--sol text { opacity: 0; transition: opacity var(--ds-duration) var(--ds-ease); }
.graph.is-compact.is-focus .g-node--sol.is-hot text { opacity: 1; }
.graph.is-compact .g-node--area text { font-size: 13px; }
.graph.is-focus .g-node { opacity: .18; }
.graph.is-focus .g-link { opacity: .08; }
.graph.is-focus .g-node.is-hot { opacity: 1; }
.graph.is-focus .g-link.is-hot { opacity: 1; stroke: var(--ds-primary-text); stroke-width: 1.4; stroke-opacity: 1; }
.g-node.is-hot circle, .g-node:focus-visible circle { filter: drop-shadow(0 0 8px var(--ds-highlight)); }
.g-node.is-picked circle { stroke: var(--ds-highlight); stroke-width: 4; }
.g-pulse { fill: var(--ds-highlight); pointer-events: none; filter: drop-shadow(0 0 4px var(--ds-highlight)); }

/* 설명 칸 — 그래프 아래 가로로: 왼쪽 제목·설명 | 가운데 이어진 항목 | 오른쪽 버튼 */
.graph__panel { padding: 28px 24px; border-radius: var(--ds-radius-xl); background: var(--ds-bg-base); display: flex; flex-direction: column; gap: 12px; }
.graph__go { margin-top: auto; align-self: flex-start; }
.graph__go[hidden] { display: none; }
.graph__panel .eyebrow { margin: 0; }
.graph__title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.graph__desc { color: var(--ds-text-secondary); font-size: 15px; }
.graph__list { display: flex; flex-wrap: wrap; gap: 6px; }
.graph__list button { border: 0; padding: 6px 12px; text-align: left; line-height: 1.45; border-radius: var(--ds-radius-full); background: var(--ds-bg-surface); color: var(--ds-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.graph__list button small { font-size: 12px; font-weight: 500; color: var(--ds-text-muted); }
.graph__list button:hover { background: var(--ds-highlight-soft); }
.graph__panel.is-swap > * { animation: swap 360ms var(--ds-ease-out); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.map-list { display: grid; gap: 10px; }
.js .map-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.map-list dt { font-weight: 700; }

/* ── 솔루션 탭 ── */
.tabs { display: flex; gap: 6px; margin-bottom: 32px; overflow-x: auto; scrollbar-width: none; padding-bottom: 24px; border-bottom: 1px solid var(--ds-border); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; height: 44px; padding: 0 20px; border: 0; border-radius: var(--ds-radius-full); background: var(--ds-bg-surface); color: var(--ds-text-secondary); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background var(--ds-duration) var(--ds-ease), color var(--ds-duration) var(--ds-ease); }
.tabs button:hover { color: var(--ds-text); background: var(--ds-bg-muted); }
.tabs button[aria-selected="true"] { background: var(--ds-ink-card); color: var(--ds-on-ink-card); }
.panel { animation: swap 480ms var(--ds-ease-out); }
.panel[hidden] { display: none; }
.panel__head { display: grid; gap: 10px; margin-bottom: 28px; }  /* 제목 위 · 설명 아래 */
.panel__head h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.025em; line-height: 1.3; }
.panel__head p { color: var(--ds-text-secondary); font-size: 17px; max-width: 46em; }
.feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 40px; }
.checks { display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--ds-radius-md); background: var(--ds-bg-base); font-weight: 500; }
.checks .ds-icon { color: var(--ds-check); }

.studio { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 40px; border-radius: var(--ds-radius-xl); background: var(--ds-ink-card); color: var(--ds-on-ink-card); }
.studio .eyebrow { color: var(--ds-on-ink-focus); }
.studio h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.studio__text > p:not(.eyebrow) { opacity: .8; }
.tags { margin-top: 18px; gap: 6px; }
.studio__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.studio__stats li { padding: 20px; border-radius: var(--ds-radius-lg); background: var(--ds-bg-surface); color: var(--ds-text); display: grid; gap: 6px; }
.studio__stats b { font-size: 40px; font-weight: 300; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.studio__stats span { font-size: 14px; color: var(--ds-text-secondary); }
.studio__stats b span { font-size: inherit; color: inherit; }

/* ── 왜 한 파트너인가 ── */
.statement { text-align: center; max-width: 1000px; }
.statement .eyebrow { color: var(--ds-on-ink-focus); }
.statement h2 { font-size: clamp(28px, 4vw, 52px); line-height: 1.3; }
.flow { transition: color 500ms var(--ds-ease); }
.statement h2.in .flow { color: var(--ds-on-ink-focus); }
.statement h2.in .flow:nth-of-type(1) { transition-delay: 500ms; }
.statement h2.in .flow:nth-of-type(2) { transition-delay: 700ms; }
.statement h2.in .flow:nth-of-type(3) { transition-delay: 900ms; }
.statement h2.in .flow:nth-of-type(4) { transition-delay: 1100ms; }
.statement h2.in .flow:nth-of-type(5) { transition-delay: 1300ms; }
.statement__lead { margin: 28px auto 0; max-width: 34em; font-size: 18px; opacity: .78; }

/* ── 함께하는 방법 ── */
.plan { display: flex; flex-direction: column; }
.plan h3 { font-size: 24px; }
.plan > p:not(.eyebrow):not(.plan__fit) { margin-bottom: 28px; }
.plan__fit { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--ds-border); font-size: 14px; font-weight: 500; }
.plan--ink { background: var(--ds-ink-card) !important; color: var(--ds-on-ink-card); }
.plan--ink p { color: inherit; opacity: .8; }
.plan--ink .eyebrow { color: var(--ds-on-ink-focus); opacity: 1; }
.plan--ink .plan__fit { border-color: var(--ds-border-strong); }

/* ── 첫 과제 추천 ── */
.picks li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 32px 0; border-top: 1px solid var(--ds-border); transition: padding var(--ds-duration-slow) var(--ds-ease); }
.picks li:last-child { border-bottom: 1px solid var(--ds-border); }
.picks li:hover { padding-left: 12px; }
.picks__tag { font-weight: 700; color: var(--ds-primary-text); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; align-self: start; }
.picks h3 { font-size: 22px; margin-bottom: 6px; }
.picks p { color: var(--ds-text-secondary); }

/* ── 문의: 라임 강조 ── */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 64px; border-radius: var(--ds-radius-xl); background: var(--ds-highlight); color: var(--ds-on-highlight); }
.cta .eyebrow { color: inherit; opacity: .8; }
.cta__actions { margin-top: 36px; gap: 16px; }
.btn-on-lime { background: var(--ds-on-highlight); color: var(--ds-highlight); border-color: transparent; }
.btn-on-lime:hover { filter: brightness(1.2); }
.cta__mail { font-weight: 600; }
.cta__steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--ds-on-highlight); }
.cta__steps li:first-child { border-top: 0; padding-top: 0; }
.cta__steps > li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ds-on-highlight); color: var(--ds-highlight); font-weight: 700; }
.cta__steps h3 { font-size: 18px; }
.cta__steps p { opacity: .85; font-size: 15px; }

/* ── 푸터 ── */
.foot { border-top: 1px solid var(--ds-border); background: var(--ds-bg-surface); color: var(--ds-text-muted); font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot .foot__in { padding-top: 32px; padding-bottom: 32px; }  /* .shell(좌우 여백) 규칙보다 우선 — 960px 이하에서 위아래 여백이 0이 되던 문제 */
.foot .brand { color: var(--ds-text); }
.foot__copy { margin-left: auto; }

/* ── 움직임 줄이기 설정 ── */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .swap__w { transition: none; }
  .js .reveal, .js .rise { opacity: 1; transform: none; animation: none; transition: none; }
  .lift:hover { transform: none; }
  .panel, .graph__panel.is-swap > * { animation: none; }
}

/* ── 반응형: ~1100 / ~960 메뉴 서랍 / ~640 휴대폰 ── */
@media (max-width: 1100px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .graph { grid-template-columns: minmax(0, 1fr) 260px; }
  .graph__panel { padding: 24px 20px; }
  .graph__title { font-size: 20px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split .head { position: static; }
}

@media (max-width: 960px) {
  .shell { padding: 0 16px; }
  /* 헤더: 브랜드 | 밝기·문의하기. 메뉴는 화면 아래 하단 메뉴로 */
  .topbar__in { display: flex; gap: 8px; padding: 8px 12px 8px 16px; }
  .nav__links { display: none; }
  .nav__tools { margin-left: auto; gap: 6px; }
  .nav-cta { display: none; }  /* 문의하기는 떠 있는 버튼으로 */
  .bnav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; z-index: var(--ds-z-sticky); left: 0; right: 0; bottom: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--ds-bg-elevated); border-top: 1px solid var(--ds-border); }
  .bnav a { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 52px; padding: 4px 2px; border-radius: var(--ds-radius-md); color: var(--ds-text-muted); text-decoration: none; font-size: 12px; font-weight: 600; white-space: nowrap; }
  .bnav a .ds-icon { width: 22px; height: 22px; stroke-width: 1.5; }  /* 하단 메뉴 아이콘은 가는 선 */
  .bnav a.is-current { color: var(--ds-text); }
  .bnav a.is-current .ds-icon { color: var(--ds-on-highlight); background: var(--ds-highlight); border-radius: var(--ds-radius-full); width: 44px; height: 28px; padding: 3px 11px; box-sizing: border-box; }
  .foot { padding-bottom: 84px; }
  .hero { margin-top: -57px; padding-top: 57px; }
  .hero__in { min-height: min(720px, calc(100svh - 60px)); padding-top: 48px; padding-bottom: 64px; }
  .hero__count { display: none; }
  .band { padding: 80px 0; }
  .head { margin-bottom: 40px; }
  .grid3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
  .feature, .studio, .cta { grid-template-columns: 1fr; }
  .graph { grid-template-columns: 1fr; }
  .graph__go { margin-top: 4px; }
  .cta { padding: 40px 28px; }
  .feature, .studio { padding: 28px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .ibtn { min-width: 44px; height: 44px; }
  .btn-lg, .hero__actions .ds-btn { width: 100%; }
  .hero__actions { margin-top: 32px; }
  .hero__lead { margin-top: 28px; }
  .hero__big { display: none; }  /* 휴대폰에서는 뒤편 큰 B 숨김 */
  .foot .foot__in { padding-top: 36px; padding-bottom: 28px; }
  .band { padding: 64px 0; }
  .card { padding: 24px; }
  .card__no { margin-bottom: 28px; }
  /* 7. 우리 팀 — 2칸 바둑판으로 압축. 칸마다 숫자(위) · 직무(아래), PC와 같은 회색 칸 */
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
  .team li { grid-template-columns: auto 1fr; padding: 18px 16px; }
  .team .count { font-size: 44px; }
  .team__unit { font-size: 16px; }
  .team__role { grid-column: 1 / -1; justify-self: start; font-size: 14px; margin-top: 6px; }
  .team li:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; text-align: left; }
  .steps li { display: grid; grid-template-columns: 56px 1fr; gap: 2px 16px; text-align: left; padding: 0; }
  .steps__dot { grid-row: span 2; margin: 0; }
  .graph__stage { height: 520px; }
  .graph__legend { display: none; }
  .grid4 { grid-template-columns: 1fr; }
  .studio__stats b { font-size: 32px; }
  .picks li { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .cta__actions .ds-btn { width: 100%; }
  .foot__copy { margin-left: 0; }
}

/* 터치 기기: 마우스를 올리는 효과가 눌린 채 남지 않게 */
@media (hover: none) {
  .lift:hover { transform: none; box-shadow: none; }
  .picks li:hover { padding-left: 0; }
}

/* ══ 휴대폰 전용 동작 (640px 이하) ══ */
@media (max-width: 640px) {

  /* 2. 옆으로 넘기는 카드 — 다음 카드가 살짝 보이고, 아래 점이 위치를 알려 준다 */
  .swipe { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -16px; padding: 2px 16px 6px; scroll-padding: 0 16px; overscroll-behavior-x: contain; }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 84%; scroll-snap-align: start; min-width: 0; }
  .swipe--sm > * { flex-basis: 62%; }
  .js .swipe > .reveal { opacity: 1; transform: none; }
  .dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--ds-border-strong); transition: width var(--ds-duration) var(--ds-ease), background var(--ds-duration) var(--ds-ease); }
  .dots i.is-on { width: 20px; background: var(--ds-primary); }
  .picks li { display: block; padding: 22px; border: 0 !important; border-radius: var(--ds-radius-xl); background: var(--ds-bg-base); }
  .picks__tag { margin-bottom: 10px; }
  .plans .plan { min-height: 300px; }

  /* 3. 업무 지도 — 영역 칩으로 고르고, 설명은 아래에서 올라오는 시트. 크게 보기는 화면 전체 */
  .graph__stage { height: 440px; touch-action: pan-y; }
  .g-node { touch-action: none; }
  .graph__reset { display: none; }  /* 휴대폰에서는 초기화·크게 보기 버튼 없음(11/3) */
  .graph.is-full .graph__stage { position: fixed; inset: 0; z-index: var(--ds-z-modal); height: 100dvh; border-radius: 0; touch-action: none; }
  .graph.is-full .graph__chips { position: fixed; z-index: var(--ds-z-popover); left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom)); margin: 0; }
  .graph.is-full .graph__chips button { background: var(--ds-bg-elevated); box-shadow: var(--ds-shadow-md); }
  .graph__chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .graph__chips::-webkit-scrollbar { display: none; }
  .graph__chips button { flex: none; height: 40px; padding: 0 16px; border: 0; border-radius: var(--ds-radius-full); background: var(--ds-bg-base); color: var(--ds-text); font: inherit; font-size: 14px; font-weight: 600; }
  .graph__chips button[aria-pressed="true"] { background: var(--ds-ink-card); color: var(--ds-on-ink-card); }
  .graph__panel { position: fixed; z-index: var(--ds-z-popover); left: 0; right: 0; bottom: 0; max-height: 44dvh; overflow-y: auto;
    padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: var(--ds-radius-xl) var(--ds-radius-xl) 0 0; background: var(--ds-bg-elevated); box-shadow: var(--ds-shadow-lg);
    transform: translateY(105%); transition: transform var(--ds-duration-slow) var(--ds-ease); }
  .graph__panel.is-open { transform: none; }
  .graph__grip { display: block; width: 40px; height: 4px; margin: 0 auto 10px; border-radius: 2px; background: var(--ds-border-strong); }
  .graph__close { display: inline-grid; position: absolute; top: 8px; right: 10px; background: none; }
  .graph__panel .graph__title { padding-right: 44px; }
  .graph__list button { min-height: 40px; background: var(--ds-bg-base); }

  /* 4. 솔루션 탭 — 헤더 아래에 붙고, 오른쪽 끝을 흐려 더 있음을 알린다 */
  .tabs { position: sticky; top: var(--hh, 60px); z-index: 2; margin: 0 -16px 24px; padding: 10px 16px 12px; background: var(--ds-bg-base);
    -webkit-mask-image: linear-gradient(to right, var(--ds-black) 82%, transparent); mask-image: linear-gradient(to right, var(--ds-black) 82%, transparent); }
  .tabs.at-end { -webkit-mask-image: none; mask-image: none; }
  .tabs button { height: 40px; padding: 0 16px; font-size: 14px; }
  .js .tabs.reveal { opacity: 1; transform: none; }
  .panel.slide-l { animation: slideL 360ms var(--ds-ease-out); }
  .panel.slide-r { animation: slideR 360ms var(--ds-ease-out); }
  @keyframes slideL { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
  @keyframes slideR { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .graph__panel, .topbar { transition: none; }
  .panel.slide-l, .panel.slide-r { animation: none; }
}

/* 5·6·8 휴대폰 */
@media (max-width: 640px) {
  /* 5. 헤더 — 내릴 때 숨고 올릴 때 나타난다. 탭 줄도 함께 올라간다 */
  .topbar { transition: transform var(--ds-duration-slow) var(--ds-ease), background var(--ds-duration-slow) var(--ds-ease), border-color var(--ds-duration-slow) var(--ds-ease); }
  .hdr-hidden .topbar { transform: translateY(-100%); }
  .tabs { transition: top var(--ds-duration-slow) var(--ds-ease); }
  .hdr-hidden .tabs { top: 0; }

  /* 6. 일하는 방식 — 세로 타임라인. 스크롤을 따라 선이 차오르고 지난 점이 켜진다 */
  .steps { position: relative; gap: 28px; }
  .steps::before, .steps::after { display: block; content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; right: auto; width: 2px; height: auto; }
  .steps::before { background: var(--ds-border-strong); }
  .steps::after { background: var(--ds-primary); transform: scaleY(var(--p, 0)); transform-origin: top; transition: none; }
  .js .steps.in::after { transform: scaleY(var(--p, 0)); }
  .steps.in .steps__dot { background: var(--ds-bg-surface); border-color: var(--ds-border-strong); color: var(--ds-text-muted); transition-delay: 0s; }
  .steps li.is-lit .steps__dot { background: var(--ds-highlight); border-color: var(--ds-highlight); color: var(--ds-on-highlight); }
}
/* 8. 누름 반응 — 터치 기기에서 누르는 순간 살짝 눌린다 */
@media (hover: none) {
  .card, .ds-btn, .tabs button, .graph__chips button, .graph__list button, .bnav a, .picks li { transition: transform 120ms var(--ds-ease); }
  .card:active, .ds-btn:active, .tabs button:active, .graph__chips button:active, .graph__list button:active, .picks li:active { transform: scale(.97); }
  .bnav a:active { transform: scale(.92); }
}
/* 9. 메일 주소 복사 */
.copy-mail { height: 40px; padding: 0 14px; font-size: 14px; font-weight: 600; }
.copy-mail.is-done { background: var(--ds-green-900); color: var(--ds-green-300); }
@media (max-width: 640px) { .cta__actions .copy-mail { width: auto; } }

/* ── 떠 있는 버튼: 맨 위로(모든 화면) · 문의하기(960px 이하) ── */
.fab { position: fixed; z-index: var(--ds-z-sticky); right: 24px; bottom: 24px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.fab > * { pointer-events: auto; opacity: 0; transform: translateY(12px) scale(.96); visibility: hidden;
  transition: opacity var(--ds-duration-slow) var(--ds-ease), transform var(--ds-duration-slow) var(--ds-ease), visibility 0s linear var(--ds-duration-slow); }
.fab > .is-on { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
/* 맨 위로 버튼 — 밝은 화면은 연한 라임 면, 어두운 화면은 밝은 회색 면(검정 바탕 위에서 보이게) */
:root { --fab-bg: var(--ds-highlight-soft); --fab-fg: var(--ds-primary-text); }
[data-theme="dark"] { --fab-bg: var(--ds-gray-60); --fab-fg: var(--ds-text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --fab-bg: var(--ds-gray-60); --fab-fg: var(--ds-text); } }
.fab__top { width: 48px; height: 48px; background: var(--fab-bg); color: var(--fab-fg); box-shadow: var(--ds-shadow-lg); }
.fab__top:hover { background: var(--fab-bg); filter: brightness(.96); }
@media (max-width: 960px) {
  .fab { right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); }  /* 하단 메뉴 위 */
  .fab__mail { display: inline-flex; height: 48px; padding: 0 18px; font-size: 15px; font-weight: 700; box-shadow: var(--ds-shadow-lg); }
  .fab__top { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .fab > * { transition: none; } }

/* ── 업무 지도 「점을 눌러 보세요」 안내 ── */
/* 설명 문장 안 강조 — 버튼처럼 보이지 않게, 형광펜 밑줄(라임) + 굵은 글자 */
.tap-mark { font-weight: 700; color: var(--ds-text); white-space: nowrap; background: linear-gradient(transparent 58%, var(--ds-highlight) 58%, var(--ds-highlight) 92%, transparent 92%); padding: 0 2px; }
.tap-mark .ds-icon { width: 18px; height: 18px; margin-right: 4px; vertical-align: -3px; color: var(--ds-primary-text); animation: tap 1.6s var(--ds-ease) infinite; transform-origin: 60% 80%; }
@keyframes tap { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(2px) scale(.9); } }
/* 그래프 안: 점 하나를 따라다니는 고리와 말풍선. 처음 누르거나 끌면 사라진다 */
.coach { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; transition: opacity var(--ds-duration-slow) var(--ds-ease); }
.coach.is-off { opacity: 0; }
.coach__ring { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ds-highlight); animation: ring 1.6s var(--ds-ease-out) infinite; }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.coach__tip { position: absolute; left: 0; margin-left: var(--dx, 0px); bottom: 30px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--ds-radius-full);
  background: var(--ds-ink-card); color: var(--ds-on-ink-card); font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: var(--ds-shadow-md); animation: bob 1.6s var(--ds-ease) infinite; }
.coach__tip::after { content: ""; position: absolute; left: calc(50% - var(--dx, 0px)); bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.coach__tip .ds-icon { width: 18px; height: 18px; }
@keyframes bob { 50% { transform: translate(-50%, -4px); } }
@media (prefers-reduced-motion: reduce) { .tap-mark .ds-icon, .coach__ring, .coach__tip { animation: none; } }

/* 업무 지도에서 넘어온 솔루션 카드 강조 — 라임 테두리가 잠시 켜졌다 사라진다 */
.card.is-spot { animation: spot 2.8s var(--ds-ease) forwards; }
@keyframes spot { 0%, 70% { box-shadow: 0 0 0 3px var(--ds-highlight), var(--ds-shadow-lg); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .card.is-spot { animation: none; box-shadow: 0 0 0 3px var(--ds-highlight); } }

/* ── 문의 양식 ── */
.inquiry { margin-top: 16px; padding: 48px; border-radius: var(--ds-radius-xl); background: var(--ds-bg-surface); display: grid; gap: 28px; }
.inquiry__head h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.025em; line-height: 1.3; }
.inquiry__desc { margin-top: 8px; color: var(--ds-text-secondary); }
.inquiry__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.inquiry__wide { grid-column: 1 / -1; }
.inquiry .ds-input { width: 100%; font-size: 15px; }
.inquiry textarea.ds-input { min-height: 140px; resize: vertical; }
.inquiry__areas { border: 0; margin: 0; padding: 0; }
.inquiry__areas legend { padding: 0; margin-bottom: 8px; }
.inquiry__areas .ds-field__hint { font-weight: 400; margin-left: 6px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--ds-radius-full); background: var(--ds-bg-base); color: var(--ds-text-secondary); font-size: 14px; font-weight: 600; transition: background var(--ds-duration) var(--ds-ease), color var(--ds-duration) var(--ds-ease); }
.pick input:checked + span { background: var(--ds-ink-card); color: var(--ds-on-ink-card); }
.pick input:focus-visible + span { outline: 2px solid var(--ds-focus); outline-offset: 2px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ds-text-secondary); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ds-check); flex: none; }
.consent a { color: var(--ds-primary-text); font-weight: 600; }
.req { color: var(--ds-danger-text); margin-left: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inquiry__actions { gap: 16px; }
.inquiry__alt { font-size: 14px; color: var(--ds-text-muted); }
.inquiry__status { min-height: 0; margin: 0; font-size: 15px; font-weight: 600; }
.inquiry__status:empty { display: none; }
.inquiry__status.is-error { color: var(--ds-danger-text); }
.inquiry__status.is-done { padding: 16px 20px; border-radius: var(--ds-radius-md); background: var(--ds-highlight-soft); color: var(--ds-primary-text); }
.inquiry.is-sent .inquiry__grid, .inquiry.is-sent .inquiry__actions { display: none; }
.inquiry button[disabled] { opacity: .6; cursor: progress; }
.foot__link { color: var(--ds-text-secondary); font-weight: 600; }
.foot__corp { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--ds-text-muted); order: 9; }  /* 회사 정보 — 푸터 맨 아래 한 줄 */
@media (max-width: 960px) { .inquiry { padding: 28px; } }
@media (max-width: 640px) {
  .inquiry { padding: 24px 20px; }
  .inquiry__grid { grid-template-columns: 1fr; }
  .inquiry .ds-input { font-size: 16px; }  /* iOS 확대 방지 */
  .inquiry__actions .ds-btn { width: 100%; }
  .pick span { height: 44px; }
}

/* 문의 양식: 처음엔 접혀 있다가 버튼을 누르면 펼쳐진다(스크립트가 없으면 늘 보임) */
.js .inquiry:not(.is-open) { display: none; }
.inquiry.is-open { animation: open-in 480ms var(--ds-ease-out); }
@keyframes open-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .inquiry.is-open { animation: none; } }
