/* design.md 의 토큰을 그대로 쓴다. 다국어 통합 규칙은 design.md 「11. 다국어 통합 사이트(site-multi)와 관리 화면」 절.
   site-ja/src/style.css 를 바탕으로 언어별 글꼴 · 줄바꿈과 언어 선택 버튼을 더했다. */
:root {
  --teal: #0f6b6b;
  --teal-dark: #0a4d4d;
  --teal-light: #e6f3f2;
  --mint: #8fdcc0;
  --canvas-soft: #f6f5f4;
  --ink: #000;
  --ink-secondary: #31302e;
  --ink-muted: #615d59;
  --hairline: #e6e6e6;
  --error: #b3261e;
  --radius: 12px;
  --shadow-1: 0 .175px 1.04px rgba(0,0,0,.01), 0 .8px 2.93px rgba(0,0,0,.02), 0 2px 7.85px rgba(0,0,0,.027), 0 4px 18px rgba(0,0,0,.04);
  --font-ja: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --font-ko: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-en: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* 태국어 · 베트남어: 웹폰트 없이 OS 글꼴. 베트남어는 성조 부호가 겹치는 결합 문자를 지원하는 산세리프만 */
  --font-th: "Thonburi", "Leelawadee UI", "Noto Sans Thai", "Tahoma", sans-serif;
  --font-vi: -apple-system, "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font-ja);
  font-size: 16px;
  color: var(--ink-secondary);
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; }
/* 언어별 글꼴 · 줄바꿈(웹폰트 없음). 언어 선택 목록의 다른 언어 이름도 lang 속성으로 그 언어 글꼴을 쓴다 */
:lang(ja) { font-family: var(--font-ja); }
:lang(ko) { font-family: var(--font-ko); }
:lang(en), :lang(es), :lang(fr) { font-family: var(--font-en); }
:lang(th) { font-family: var(--font-th); }
:lang(vi) { font-family: var(--font-vi); }
html:lang(ja) body { line-break: strict; word-break: normal; overflow-wrap: anywhere; line-height: 1.8; }
/* keep-all 은 한국어에만. 태국어에 걸면 띄어쓰기 없는 문장이 줄바꿈되지 않아 넘친다 */
html:lang(ko) body { word-break: keep-all; overflow-wrap: break-word; line-height: 1.75; }
html:lang(en) body, html:lang(es) body, html:lang(fr) body { word-break: normal; overflow-wrap: break-word; line-height: 1.65; }
/* 베트남어: 위아래 성조 부호가 윗줄 · 아랫줄과 닿지 않게 줄 간격을 넉넉히 */
html:lang(vi) body { word-break: normal; overflow-wrap: break-word; line-height: 1.75; }
/* 태국어: 브라우저의 태국어 단어 분리(사전 기반)에 맡기고, 그래도 긴 덩어리는 아무 곳에서나 끊는다. 위아래 모음 · 성조 부호 때문에 1.85 */
html:lang(th) body { word-break: normal; overflow-wrap: anywhere; line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
a { color: var(--teal); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.contact :focus-visible { outline-color: var(--mint); }
h1, h2, h3 { color: var(--ink); font-weight: 700; line-height: 1.4; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.3; }
/* 제목 줄 길이를 고르게. 일본어는 문절(文節) 단위로 끊는다(지원 브라우저만) */
h1, h2, h3, .toc a { text-wrap: balance; }
html:lang(ja) :is(h1, h2, h3, .toc a) { word-break: auto-phrase; }
html:lang(ko) :is(h1, h2, h3) { letter-spacing: -.02em; }
/* 태국어 · 베트남어 제목: 부호가 잘리거나 윗줄과 겹치지 않게 줄 간격을 늘리고, 태국어는 자간을 줄이지 않는다 */
html:lang(vi) :is(h1, h2, h3) { line-height: 1.45; }
html:lang(th) :is(h1, h2, h3) { line-height: 1.6; letter-spacing: 0; }
html:lang(th) :is(.eyebrow, .chip, .btn, summary) { letter-spacing: 0; line-height: 1.7; }
html:lang(vi) :is(.eyebrow, .chip) { line-height: 1.6; }
html:lang(th) .prose { line-height: 1.9; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.35; }
h3 { font-size: 1.125rem; line-height: 1.5; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }
.nw { display: inline-block; }
@media (max-width: 760px) { br.pc { display: none; } }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--hairline); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; margin-right: auto; white-space: nowrap; letter-spacing: -.01em; }
/* 언어 선택 버튼(日本語 / English / 한국어): 같은 경로의 다른 언어 페이지로. 넓은 폭에서는 메뉴 오른쪽, 좁은 폭에서는 로고와 메뉴 버튼 사이 */
.lang-menu { position: relative; order: 3; }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--hairline); border-radius: 8px; background: #fff; font: inherit; font-size: .85rem; color: var(--ink-secondary); cursor: pointer; white-space: nowrap; }
.lang-toggle:hover { color: var(--teal); background: var(--canvas-soft); }
.lang-globe { width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; flex: none; }
.lang-globe::before { content: ""; position: absolute; inset: 0 4px; border: 1.5px solid currentColor; border-top: 0; border-bottom: 0; border-radius: 50%; }
.lang-globe::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid currentColor; }
.lang-list { position: absolute; top: calc(100% + 4px); right: 0; left: auto; min-width: 160px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow-1); z-index: 60; padding: 8px !important; }
.lang-list a { display: flex; align-items: center; min-height: 44px; }
.lang-list a[aria-current] { color: var(--teal); font-weight: 700; }
.lang-list a[aria-current]::after { content: "✓"; margin-left: auto; padding-left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 860px) { .lang-menu { order: 0; } }
/* 버튼의 짧은 표기(JA · ES · VI …)는 좁은 폭에서만. 이름(Tiếng Việt 등)은 화면 읽기 프로그램용으로 남긴다 */
.lang-code { display: none; }
@media (max-width: 420px) {
  .lang-toggle .lang-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lang-toggle .lang-code { display: inline; font-weight: 700; letter-spacing: .02em; }
}
@media (max-width: 400px) { .lang-toggle { padding: 8px; } .header-inner { gap: 8px; } }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; }
.menu > li { position: relative; }
.menu > li > a, .menu > li > .sub-toggle:not(.btn) { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: var(--ink-secondary); text-decoration: none; font: inherit; font-size: .95rem; background: none; border: 0; cursor: pointer; }
.menu > li > a:hover, .menu > li > .sub-toggle:not(.btn):hover { color: var(--teal); background: var(--canvas-soft); }
.menu a[aria-current="page"], .menu .is-section { color: var(--teal) !important; font-weight: 700; }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.sub-toggle[aria-expanded="true"] .caret { transform: translateY(2px) rotate(-135deg); }
.menu-cta { margin-left: 8px; }
.menu-cta .btn { gap: 8px; }
.submenu { list-style: none; margin: 0; padding: 8px; display: none; }
.submenu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink-secondary); text-decoration: none; white-space: nowrap; }
.submenu a:hover { background: var(--canvas-soft); color: var(--teal); }
.sub-toggle[aria-expanded="true"] + .submenu { display: block; }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--hairline); border-radius: 8px; background: #fff; font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (min-width: 861px) {
  .submenu { position: absolute; top: calc(100% + 4px); left: 0; min-width: 200px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow-1); }
  .submenu-end { left: auto; right: 0; }
  /* JS 가 없어도 마우스·키보드로 열린다 */
  .has-sub:hover > .submenu, html:not(.js) .has-sub:focus-within > .submenu { display: block; }
  .has-sub:hover > .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--hairline); box-shadow: var(--shadow-1); max-height: calc(100vh - 64px); overflow-y: auto; }
  .site-nav.is-open { display: block; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; width: min(1120px, 100% - 40px); margin: 0 auto; padding: 8px 0 16px; }
  .menu > li > a, .menu > li > .sub-toggle:not(.btn) { width: 100%; justify-content: space-between; padding: 12px 4px; border-radius: 0; font-size: 1rem; border-bottom: 1px solid var(--hairline); }
  .submenu { padding: 4px 0 8px 12px; }
  .menu-cta { margin: 16px 0 0; }
  .menu-cta .btn { width: 100%; }
  .menu-cta .submenu { padding-left: 0; }
}

/* ---------- breadcrumb ---------- */
.breadcrumb { border-bottom: 1px solid var(--hairline); font-size: .85rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li { color: var(--ink-muted); }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; color: #b5b1ad; }
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px; border-radius: 9999px; font: inherit; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: background-color .15s, transform .1s; text-align: center; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.btn-ghost:hover { background: var(--canvas-soft); }
.btn-light { background: #fff; color: var(--teal-dark); }
.btn-light:hover { background: var(--teal-light); }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: .9rem; white-space: nowrap; }
@media (max-width: 520px) { .btns .btn { flex: 1 1 100%; } }

/* ---------- sections ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
section.alt { background: var(--canvas-soft); }
.eyebrow { display: inline-block; background: #fff; color: var(--teal); border: 1px solid var(--hairline); border-radius: 9999px; padding: 4px 10px; font-weight: 700; font-size: .75rem; line-height: 1.5; letter-spacing: .06em; margin-bottom: 16px; }
.lead { color: var(--ink-muted); max-width: 46em; font-size: 1.05rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.more { font-weight: 700; text-decoration: none; }
.more::after { content: " →"; }

/* hero */
.hero { background: var(--canvas-soft); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero img { box-shadow: var(--shadow-1); }
.page-hero { background: var(--canvas-soft); padding: clamp(40px, 6vw, 72px) 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- 홈(design.md 11.5 · 12) — 모든 규칙을 .home(홈 본문 감싸개)과 홈에만 있는 클래스로 묶는다 ---------- */
.home {
  --shadow-2: 0 .2px 1.2px rgba(0,0,0,.01), 0 1px 3.5px rgba(0,0,0,.02), 0 3px 9px rgba(0,0,0,.03), 0 8px 22px rgba(0,0,0,.04), 0 23px 52px rgba(0,0,0,.05);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --t-hover: .24s;
  --t-reveal: .6s;
}
/* 첫 화면: 큰 제목(display) + 리드 + 질문 + 입구 카드 3장. 오른쪽 위에 평면도 · 동선 장식(글자 없음, aria-hidden) */
.entry-hero { position: relative; overflow: hidden; padding: clamp(28px, 3vw, 40px) 0 clamp(40px, 6vw, 64px); background: radial-gradient(56% 70% at 88% 0%, rgba(15,107,107,.08), rgba(15,107,107,0) 70%), var(--canvas-soft); }
.entry-hero > .wrap { position: relative; }
.hero-decor { position: absolute; top: 0; right: max(-40px, calc(50% - 640px)); width: 560px; height: 360px; pointer-events: none; opacity: .7; -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 45%); mask-image: linear-gradient(100deg, transparent 0%, #000 45%); }
.hd-route { animation: hd-flow 1.8s linear infinite; }
.hd-ring { transform-box: fill-box; transform-origin: center; animation: hd-pulse 2.6s var(--ease-out) infinite; }
@keyframes hd-flow { to { stroke-dashoffset: -22; } }
@keyframes hd-pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
/* 태블릿 · 모바일은 제목 뒤에 겹치므로 넓은 폭(1100 이상)에서만 보인다 */
@media (max-width: 1099px) { .hero-decor { display: none; } }
/* display 크기: 원본 display-1(64 / 1.0 / −2.125px)의 감각을 언어별 상한으로 */
.entry-hero h1 { font-size: clamp(2rem, 1.1rem + 3vw, 3.5rem); line-height: 1.1; letter-spacing: -.03em; max-width: 21em; margin-bottom: .35em; }
html:lang(ko) .entry-hero h1 { font-size: clamp(1.875rem, 1.05rem + 2.8vw, 3.25rem); line-height: 1.22; letter-spacing: -.035em; }
html:lang(ja) .entry-hero h1 { font-size: clamp(1.75rem, 1rem + 2.4vw, 2.75rem); line-height: 1.32; letter-spacing: -.01em; }
html:lang(vi) .entry-hero h1 { font-size: clamp(1.75rem, 1rem + 2.4vw, 2.75rem); line-height: 1.28; letter-spacing: -.015em; max-width: none; }
html:lang(th) .entry-hero h1 { font-size: clamp(1.75rem, 1rem + 2.2vw, 2.5rem); line-height: 1.5; letter-spacing: 0; max-width: none; }
.entry-hero .lead { margin-bottom: 0; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }
.entry-q { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: clamp(16px, 2vw, 22px) 0 0; padding-top: clamp(14px, 1.6vw, 18px); border-top: 1px solid var(--hairline); }
html:lang(th) .entry-q { line-height: 1.6; }
.entry-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 16px; }
/* 입구 카드: 카드 전체가 첫 링크(서비스 보기, 카드 3 은 문의 버튼)로 가고, 문의 버튼은 그 위에서 따로 눌린다(중첩 링크 없음) */
.entry-card { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-1); transition: transform var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out), border-color var(--t-hover); }
.entry-card h3 { margin: 0; font-size: 1.2rem; }
.entry-card p { margin: 0; color: var(--ink-muted); font-size: .95rem; }
.entry-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.entry-badge { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--teal-light); color: var(--teal); transition: background-color var(--t-hover), color var(--t-hover); }
/* 카드별 장식 점(보조 색은 장식에만): 행사 sky · 산업 orange · 맞춤 purple */
.entry-badge::after { content: ""; position: absolute; top: 1px; right: 1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: var(--dot); }
.entry-card[data-track="event"] { --dot: #62aef0; }
.entry-card[data-track="industry"] { --dot: #dd5b00; }
.entry-card[data-track="custom"] { --dot: #d6b6f6; }
.entry-icon { width: 24px; height: 24px; }
.entry-links { margin-top: auto; padding-top: 4px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.entry-links .more { display: inline-flex; align-items: center; min-height: 44px; }
/* 마우스 환경은 링크 줄 높이를 줄여 넓은 폭에서 카드가 첫 화면 안에 들어오게 한다(터치는 44px 유지) */
@media (hover: hover) and (pointer: fine) { .entry-links .more { min-height: 32px; } }
.entry-links .more::after { content: "→"; display: inline-block; margin-left: .35em; transition: transform var(--t-hover) var(--ease-out); }
.entry-links > a:first-child::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.entry-links > a + a { position: relative; z-index: 1; }
/* 긴 문구(fr · es · vi · th)도 카드 밖으로 나가지 않게 버튼 안에서 줄바꿈 */
.entry-links .btn { white-space: normal; width: 100%; min-height: 44px; }
.entry-unsure { margin: 20px 0 0; color: var(--ink-muted); }
/* 반응: 마우스(hover) 는 떠오름 + 진한 그림자 + 청록 테두리, 키보드 포커스도 같게(외곽선은 링크에), 터치는 눌림 */
@media (hover: hover) {
  .entry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--teal); }
  .entry-card:hover .entry-badge { background: var(--teal); color: #fff; }
  .entry-card:hover .more::after { transform: translateX(4px); }
  .entry-card:active { transform: translateY(-2px); }
}
.entry-card:has(a:focus-visible) { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--teal); }
/* 터치(hover 없음): 떠오르지 않고 누르는 동안 살짝 눌림. 카드 전체가 링크 영역이고 화살표는 늘 보인다 */
@media (hover: none) {
  .entry-card { -webkit-tap-highlight-color: transparent; }
  .entry-card:active { transform: scale(.985); border-color: var(--teal); background: #fbfdfd; }
}
/* 넓은 폭 3열 · 태블릿(768~1099) 2+1 · 모바일 1열 */
@media (max-width: 1099px) {
  .entry-cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .entry-card:last-child { grid-column: 1 / -1; }
  .entry-card:last-child .entry-links .btn { width: auto; }
}
@media (max-width: 767px) {
  .entry-cards { grid-template-columns: 1fr; }
  .entry-card { padding: 20px; }
  .entry-card:last-child .entry-links .btn { width: 100%; }
}

/* 홈 GrowSpace AI(공통 층) + 현장 일러스트 + 4단계 흐름 */
.ai-notes { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; font-size: .95rem; color: var(--ink-muted); }
.ai-notes li { padding-left: 16px; position: relative; }
.ai-notes li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.ai-figure img { width: 100%; border: 1px solid var(--hairline); box-shadow: var(--shadow-1); background: #fff; }
.flow-steps { list-style: none; padding: 0; margin: clamp(40px, 5vw, 56px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; counter-reset: fs; }
/* 번호 원을 잇는 선: 첫 원 가운데 → 마지막 원 가운데 */
.flow-steps::before { content: ""; position: absolute; top: 23px; left: 24px; right: calc((100% - 72px) / 4 - 24px); height: 2px; background: linear-gradient(90deg, var(--teal), #8cc7c2); transform-origin: left center; transition: transform .9s var(--ease-out) .15s; }
.flow-steps li { counter-increment: fs; position: relative; min-width: 0; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.fs-num { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--teal); color: var(--teal); font-weight: 700; font-size: .95rem; position: relative; }
.fs-num::before { content: counter(fs, decimal-leading-zero); }
.flow-steps li:last-child .fs-num { background: var(--teal); color: #fff; }
.flow-steps strong { display: block; color: var(--ink); font-size: 1.125rem; margin-bottom: 4px; }
.fs-text { display: block; color: var(--ink-muted); font-size: .95rem; }
.flow-steps li:nth-child(2) { transition-delay: .08s; }
.flow-steps li:nth-child(3) { transition-delay: .16s; }
.flow-steps li:nth-child(4) { transition-delay: .24s; }
@media (max-width: 899px) {
  .flow-steps { grid-template-columns: 1fr; gap: 0; }
  /* 세로: 원과 다음 원 사이만 잇는다(마지막 원 아래로 선이 나가지 않게) */
  .flow-steps::before { display: none; }
  .flow-steps li:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--teal), #8cc7c2); transform-origin: center top; transition: transform .6s var(--ease-out) .2s; }
  .flow-steps li { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding-bottom: 24px; }
  .flow-steps li:last-child { padding-bottom: 0; }
  .fs-num { grid-row: span 2; margin: 0; }
  .flow-steps strong { padding-top: 10px; }
}

/* 홈 사례 · 블로그 미리보기: 떠오름 + 이미지 살짝 확대(카드가 overflow:hidden, 이미지 크기는 그대로) */
.home .post-card { transition: transform var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out), border-color var(--t-hover); }
.home .post-card img { transition: transform .5s var(--ease-out); }
@media (hover: hover) {
  .home a.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--teal); }
  .home a.post-card:hover img { transform: scale(1.04); }
}
.home a.post-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--teal); }
@media (hover: none) { .home a.post-card:active { transform: scale(.985); } }

/* 홈 하단 문의 안내(#contact): 대상별 창구 3개. 링크가 있는 칸만 반응 */
.contact-routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.route { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 24px; transition: transform var(--t-hover) var(--ease-out), border-color var(--t-hover), background-color var(--t-hover); }
.route h3 { color: #fff; margin: 0; }
.route p { margin: 0; color: rgba(255,255,255,.85); }
.route .btn { margin-top: auto; white-space: normal; }
.route .route-note { margin-top: auto; font-weight: 700; color: #fff; }
@media (hover: hover) { .route:has(a):hover { transform: translateY(-4px); border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); } }
.route:has(a:focus-visible) { transform: translateY(-4px); border-color: var(--mint); background: rgba(255,255,255,.06); }
@media (max-width: 900px) { .contact-routes { grid-template-columns: 1fr; } }

/* 스크롤 등장: 기본은 보이는 상태. main.js 가 html.reveal-on 을 붙였을 때만(JS 있음 · 움직임 줄이기 꺼짐 · IntersectionObserver 있음) 숨겼다가 화면에 들어오면 is-visible */
.reveal-on .home .reveal { transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); }
.reveal-on .home .reveal:not(.flow-steps):not(.is-visible) { opacity: 0; transform: translateY(24px); }
.reveal-on .home .ai-figure.reveal { transition-delay: .1s; }
.reveal-on .home .flow-steps:not(.is-visible)::before { transform: scaleX(0); }
.reveal-on .home .flow-steps:not(.is-visible) li { opacity: 0; transform: translateY(16px); }
@media (max-width: 899px) { .reveal-on .home .flow-steps:not(.is-visible) li::after { transform: scaleY(0); } }
/* 움직임 줄이기: 이동 · 등장 · 반복 애니메이션을 모두 끄고 처음부터 다 보이게(색 · 테두리 변화만 남김) */
@media (prefers-reduced-motion: reduce) {
  .hd-route, .hd-ring { animation: none; }
  .home .reveal, .home .flow-steps li, .home .flow-steps::before, .home .flow-steps li::after { opacity: 1 !important; transform: none !important; }
  .entry-card, .entry-card:hover, .entry-card:active, .entry-card:has(a:focus-visible), .home .post-card, .home .post-card img, .route { transform: none !important; }
}

/* flow (현장 → 데이터 → AI) */
.flow { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.flow li { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 24px; position: relative; }
.flow strong { display: block; color: var(--ink); font-size: 1.125rem; margin-bottom: 4px; }
.flow li + li::before { content: "→"; position: absolute; left: -17px; top: 50%; transform: translateY(-50%); color: var(--teal); font-weight: 700; }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr; } .flow li + li::before { content: "↓"; left: 50%; top: -20px; transform: translateX(-50%); } }

/* lists */
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding: 16px 16px 16px 52px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); }
.checks li::before { content: "✓"; position: absolute; left: 16px; top: 16px; width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 50%; background: var(--teal-light); color: var(--teal); font-weight: 700; font-size: .85rem; }

/* cards */
.cards { display: grid; gap: 20px; margin-top: 32px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--ink-muted); margin: 0 0 .75em; }
.card p:last-child { margin-bottom: 0; }
.card-note { background: var(--teal-light); border-color: transparent; }
.card-note h3 { color: var(--teal-dark); }
.cards-num { counter-reset: card; }
.cards-num .card::before { counter-increment: card; content: counter(card, decimal-leading-zero); display: block; margin-bottom: 12px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: var(--ink-muted); }
.cards-num .card::after { content: ""; position: absolute; top: 24px; right: 24px; width: 12px; height: 12px; border-radius: 50%; background: var(--dot, var(--teal)); }
.cards-num .card:nth-child(5n+1) { --dot: #2a9d99; }
.cards-num .card:nth-child(5n+2) { --dot: #62aef0; }
.cards-num .card:nth-child(5n+3) { --dot: #d6b6f6; }
.cards-num .card:nth-child(5n+4) { --dot: #dd5b00; }
.cards-num .card:nth-child(5n+5) { --dot: #1aae39; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .cards-3, .cards-2 { grid-template-columns: 1fr; } }

/* 서비스 · 사례 · 블로그 카드 (카드 전체가 링크) */
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .15s; }
a.post-card:hover { box-shadow: var(--shadow-1); }
a.post-card:hover h3 { color: var(--teal); }
.post-card img { border-radius: 0; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card .post-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { margin: 0; font-size: 1.15rem; }
.post-card p { margin: 0; color: var(--ink-muted); font-size: .95rem; }
.post-card .more { margin-top: auto; padding-top: 8px; color: var(--teal); }
/* 요약이 길어도 카드 높이가 너무 커지지 않게 4줄까지 */
.post-card p.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post-card.is-pending { background: var(--canvas-soft); border-style: dashed; }
/* 이미지 자리(플레이스홀더): 회색 바탕 + 가운데 작은 Hugeicons 아이콘, 비율 고정 */
.img-ph { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: var(--ph-ratio, 16 / 9); background: #e9e9e7; color: #9a9894; }
.img-ph .ph-icon { width: 32px; height: 32px; }
.post-card .img-ph { border-bottom: 1px solid var(--hairline); }
.article-figure .img-ph, .hero-grid .img-ph { border-radius: var(--radius); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .8rem; color: var(--ink-muted); }
.chip { display: inline-block; background: var(--teal-light); color: var(--teal-dark); border-radius: 9999px; padding: 2px 10px; font-weight: 700; font-size: .75rem; }
.chip-muted { background: #ece9e6; color: var(--ink-secondary); }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* steps */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--teal); padding-top: 16px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; color: var(--teal); font-weight: 700; font-size: 1.5rem; line-height: 1; margin-bottom: 12px; }
.steps strong { display: block; color: var(--ink); margin-bottom: 4px; }
.steps p { color: var(--ink-muted); font-size: .95rem; margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 48px 1fr; border-top: 0; border-left: 3px solid var(--teal); padding: 0 0 24px 16px; }
  .steps li::before { grid-row: span 2; font-size: 1.25rem; }
}

/* faq */
.faq { margin-top: 24px; border-top: 1px solid var(--hairline); }
details { border-bottom: 1px solid var(--hairline); }
summary { cursor: pointer; padding: 20px 36px 20px 0; font-weight: 700; color: var(--ink); list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 16px; color: var(--teal); font-size: 1.5rem; line-height: 1.4; }
details[open] summary::after { content: "−"; }
details p { color: var(--ink-muted); padding-bottom: 8px; }

/* 제품 페이지(UWB 개발 키트 Q1, design.md 11.6): 비교 · 사양 · 인증 표. 표는 상자 안에서만 가로 스크롤(페이지는 넘치지 않음) */
.table-scroll { overflow-x: auto; margin-top: 24px; border: 1px solid var(--hairline); border-radius: var(--radius); background: #fff; }
.table-scroll:focus-visible { outline-offset: 2px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.spec-table tr:last-child > * { border-bottom: 0; }
.spec-table thead th { background: var(--teal-light); color: var(--teal-dark); font-weight: 700; }
.spec-table tbody th { width: 30%; min-width: 9em; color: var(--ink); font-weight: 700; background: var(--canvas-soft); }
.spec-table td { color: var(--ink-secondary); }
.spec-table .price { color: var(--ink); font-size: 1.1rem; }
.cert-table td .todo { margin-right: 4px; }
.table-note { margin: 12px 0 0; font-size: .875rem; color: var(--ink-muted); }
.link-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.link-list li { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 16px 20px; }
/* 좁은 폭: 비교 표는 키트별 칸을 카드처럼 쌓는다(칸 이름은 data-label 로 보여 준다) */
@media (max-width: 640px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border-bottom: 1px solid var(--hairline); }
  .compare tr:last-child { border-bottom: 0; }
  .compare tbody th { width: auto; min-width: 0; border-bottom: 0; padding-bottom: 4px; }
  .compare td { border-bottom: 0; padding-top: 4px; }
  .compare td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 700; color: var(--teal-dark); }
  .spec-table tbody th { min-width: 7em; }
}

/* 확인 필요 표시 */
.todo { background: #fff4d6; color: #6b4e00; border-radius: 4px; padding: 0 4px; font-weight: 700; }

/* ---------- 블로그 · 사례 본문 ---------- */
.article-head { background: var(--canvas-soft); padding: clamp(40px, 6vw, 72px) 0 32px; }
.article-head .lead { margin-top: 8px; }
.article-figure { margin: 32px auto 0; }
.prose { font-size: 1.0625rem; line-height: 1.85; color: var(--ink-secondary); padding: 48px 0 24px; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 2.2em 0 .7em; padding-top: .2em; }
.prose h3 { font-size: 1.15rem; margin: 1.8em 0 .5em; }
.prose p { margin: 0 0 1.2em; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--teal); }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 16px 20px; background: var(--teal-light); border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; color: var(--teal-dark); }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--hairline); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--canvas-soft); color: var(--ink); white-space: nowrap; }
.toc { background: var(--canvas-soft); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 2em; font-size: .95rem; }
.toc p { margin: 0 0 8px; font-weight: 700; color: var(--ink); }
.toc ol { margin: 0; }
.toc a { text-decoration: none; }
.related { border-top: 1px solid var(--hairline); margin-top: 24px; padding-top: 24px; }
.related h2 { font-size: 1.2rem; margin: 0 0 12px; }
.related ul { margin: 0; padding-left: 1.2em; }
.related li { margin-bottom: 6px; }

/* ---------- contact / form ---------- */
.contact { background: var(--teal-dark); color: #fff; }
.contact h2 { color: #fff; }
.contact .lead { color: rgba(255,255,255,.85); }
.contact a:not(.btn) { color: var(--mint); }
.contact .eyebrow { background: transparent; color: var(--mint); border-color: rgba(255,255,255,.3); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 24px; } }
.form { display: grid; gap: 16px; background: #fff; color: var(--ink-secondary); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-1); }
.form .field { display: grid; gap: 6px; }
.form input, .form select, .form textarea { scroll-margin-top: 120px; }
.form label, .form legend { font-size: .9rem; font-weight: 700; color: var(--ink); }
.form .req { display: inline-block; margin-left: 6px; font-size: .7rem; color: #fff; background: var(--teal); border-radius: 4px; padding: 0 6px; vertical-align: 1px; }
.form .opt { margin-left: 6px; font-size: .75rem; color: var(--ink-muted); font-weight: 400; }
.form input:not([type="checkbox"]), .form select, .form textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 10px 12px; min-height: 44px; width: 100%; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--teal); box-shadow: var(--shadow-1); outline: none; }
.form [aria-invalid="true"] { border-color: var(--error) !important; }
.form .err { color: var(--error); font-size: .85rem; margin: 0; }
.form .err:empty { display: none; }
.form .agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--ink-secondary); }
.form .agree input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--teal); flex: none; }
.form .privacy { font-size: .8rem; color: var(--ink-muted); background: var(--canvas-soft); border-radius: 8px; padding: 10px 12px; margin: 0; }
.form-msg { margin: 0; min-height: 1.5em; font-weight: 700; }
.form-msg.is-error { color: var(--error); }
.form-msg.is-ok { color: var(--teal-dark); background: var(--teal-light); border-radius: 8px; padding: 12px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; }
/* 스팸 막이 칸: 화면 밖(스크린리더 · 키보드도 건너뜀) */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form button[disabled] { opacity: .6; cursor: progress; }
/* 본문 코드 · 구분선 · 이미지 */
.prose code { background: var(--canvas-soft); border-radius: 4px; padding: 0 4px; font-size: .92em; }
.prose pre { background: var(--canvas-soft); border-radius: 8px; padding: 12px 16px; overflow-x: auto; }
.prose hr { border: 0; border-top: 1px solid var(--hairline); margin: 2em 0; }
.prose img { margin: 1.2em 0; }
/* 관리 화면 미리보기 띠 */
.preview-bar { position: sticky; top: 0; z-index: 70; background: #fff4d6; color: #6b4e00; text-align: center; font-weight: 700; padding: 8px 12px; font-size: .9rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--canvas-soft); color: var(--ink-muted); padding: 40px 0 24px; font-size: .9rem; }
.site-footer p { margin: 0 0 8px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1.4fr; gap: 32px; }
.footer-logo { font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 6px 24px; }
.site-footer a { color: var(--ink-secondary); }
.footer-company { font-style: normal; line-height: 1.8; }
.site-footer .small { font-size: .8rem; margin-top: 24px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 20px; } }
