/* CUSMOS 홈페이지 공통 스타일 */
:root {
  /* 목록 항목 제목 (예: 실시간 감지) */
  --fs-item-title: 19px;
  --gap-item-title: 2px;
  --bg: var(--navy);
  --bg-2: var(--gray-100);
  --surface: var(--gray-90);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: var(--gray-5);
  --muted: var(--gray-30);
  --dim: var(--gray-40);
  --pink: #f45fc8;
  --violet: #a46bff;
  --sky: #7fa8ff;
  --grad: linear-gradient(100deg, #7fa8ff 0%, #a46bff 45%, #f45fc8 100%);
  --paper: var(--gray-5);
  --paper-2: var(--gray-0);
  --ink: var(--gray-100);
  --ink-2: var(--gray-70);
  --ink-line: var(--gray-10);
  --radius: 20px;
  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 600; transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--gray-0); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-grad { background: var(--grad); color: var(--gray-0); }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(244, 95, 200, .6); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* ───────── 헤더 ───────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: transform .45s var(--ease), background .3s;
}
.site-header .bar { position: relative; z-index: 2; height: var(--header-h); display: flex; align-items: center; }
.site-header .bar .wrap { display: flex; align-items: center; height: 100%; }
.site-header .logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; width: 180px; }
.site-header .logo img.sym { width: 30px; height: 30px; }
.site-header .logo img.word { height: 21px; width: auto; }
.gnb { display: flex; height: 100%; margin: 0 auto; }
.gnb > li { position: relative; width: 150px; height: 100%; }
.gnb > li > a {
  display: flex; align-items: center; justify-content: center; height: 100%;
  font-size: 16px; font-weight: 600; color: var(--text); position: relative;
}
.gnb > li > a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px; background: var(--grad);
  transition: width .35s var(--ease), left .35s var(--ease);
}
.gnb > li:hover > a::after, .gnb > li.current > a::after { width: 40px; left: calc(50% - 20px); }
.gnb .sub {
  position: absolute; top: calc(var(--header-h) + 28px); left: 0; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .3s, transform .4s var(--ease), visibility .3s;
}
.gnb .sub a { padding: 0 6px; font-size: 14px; line-height: 1.4; color: var(--muted); transition: color .2s; text-align: center; }
.gnb .sub a:hover { color: var(--text); }
.gnb > li:hover .sub a { color: var(--gray-20); }
.gnb > li:hover .sub a:hover { color: var(--gray-0); }
.site-header .util { display: flex; align-items: center; justify-content: flex-end; gap: 12px; width: 180px; }
.mega-bg {
  position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: var(--header-h);
  background: rgba(8, 9, 20, 0.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  opacity: 0; transition: height .45s var(--ease), opacity .3s;
}
.mega-bg .mega-intro {
  position: absolute; top: calc(var(--header-h) + 28px); left: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  width: 200px; opacity: 0; transition: opacity .3s .1s;
}
.mega-bg .mega-intro strong { display: block; font-size: 20px; line-height: 1.4; font-weight: 700; margin-bottom: 10px; }
.mega-bg .mega-intro span { font-size: 14px; color: var(--muted); }
.site-header.scrolled .mega-bg, .site-header.solid .mega-bg { opacity: 1; border-bottom-color: var(--line); }
.site-header.open .mega-bg { opacity: 1; height: var(--mega-h, 300px); border-bottom-color: var(--line); }
.site-header.open .mega-bg .mega-intro { opacity: 1; }
.site-header.open .gnb .sub { opacity: 1; visibility: visible; transform: none; }
.site-header.hide { transform: translateY(-100%); }
.gnb-line { position: absolute; z-index: 2; left: 0; right: 0; top: var(--header-h); height: 1px; background: var(--line); opacity: 0; transition: opacity .3s; }
.site-header.open .gnb-line { opacity: 1; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-btn span { position: relative; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.menu-btn span::before { top: -7px; } .menu-btn span::after { top: 7px; }

/* 모바일 메뉴 */
.m-nav {
  position: fixed; inset: 0; z-index: 200; background: var(--bg); padding: 0 var(--gutter) 40px;
  overflow-y: auto; transform: translateX(100%); transition: transform .45s var(--ease); visibility: hidden;
}
.m-nav.open { transform: none; visibility: visible; }
.m-nav .m-top { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.m-nav .m-close { width: 44px; height: 44px; font-size: 28px; line-height: 1; }
.m-nav details { border-bottom: 1px solid var(--line); }
.m-nav summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 22px; font-weight: 700; cursor: pointer; }
.m-nav summary::-webkit-details-marker { display: none; }
.m-nav summary::after { content: "+"; font-weight: 300; font-size: 26px; color: var(--muted); transition: transform .3s; }
.m-nav details[open] summary::after { transform: rotate(45deg); }
.m-nav details ul { padding: 0 0 20px; display: grid; gap: 14px; }
.m-nav details a { color: var(--muted); font-size: 16px; }
/* 하위 목차가 없는 메뉴(회사소개)는 접기 없이 바로 링크 */
.m-nav > a.m-link { display: block; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 700; color: var(--text); }
.m-nav .btn { width: 100%; margin-top: 32px; }

/* ───────── 공통 섹션 ───────── */
section { position: relative; }
.sec { padding: clamp(96px, 12vw, 180px) 0; }
.sec-head { max-width: 820px; margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.22; font-weight: 700; letter-spacing: -0.035em; margin-top: 20px; }
.sec-head p { margin-top: 24px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 640px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center p { margin-left: auto; margin-right: auto; }
.light { background: var(--paper); color: var(--ink); }
.light .sec-head p, .light .muted { color: var(--ink-2); }
.light .eyebrow { color: var(--ink-2); }
.note { font-size: 14px; color: var(--dim); line-height: 1.6; }
.light .note { color: #7b8099; }

/* 등장 모션 */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ───────── 메인 히어로 ───────── */
.hero { position: relative; height: 100vh; min-height: 680px; overflow: hidden; display: flex; align-items: flex-end; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* 히어로 영상: 도시 모형이 화면 오른쪽에 있어서 좁은 화면에서도 오른쪽을 기준으로 자른다 */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; background: var(--navy); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 20% 100%, rgba(5, 6, 13, .95) 10%, rgba(5, 6, 13, .3) 55%, rgba(5, 6, 13, 0) 80%),
              linear-gradient(180deg, rgba(5, 6, 13, .6) 0%, rgba(5, 6, 13, 0) 22%);
}
.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(80px, 12vh, 140px); }
.hero h1 { font-size: calc(clamp(44px, 7.4vw, 104px) - 8pt); line-height: 1.08; font-weight: 800; letter-spacing: -0.045em; margin-top: 28px; }
.hero p.lead { margin-top: 32px; max-width: 560px; font-size: clamp(17px, 1.5vw, 20px); color: var(--gray-20); }
.hero .cta { margin-top: 44px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .scroll-cue {
  position: absolute; right: var(--gutter); bottom: 48px; z-index: 2; display: flex; align-items: center; gap: 14px;
  font-size: 13px; letter-spacing: .2em; color: var(--muted); writing-mode: vertical-rl;
}
.hero .scroll-cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--muted), transparent); animation: cue 2.2s infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* 문제 제기 */
.problem .statement { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.3; font-weight: 700; letter-spacing: -0.035em; max-width: 1000px; }
.problem .statement em { font-style: normal; color: var(--dim); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: clamp(64px, 8vw, 110px); }
.stat { padding: 40px 32px 8px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 32px; }
.stat:last-child { border-right: 0; }
.stat .num { font-size: clamp(52px, 6.6vw, 92px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.stat .num small { font-size: .42em; font-weight: 700; margin-left: 4px; letter-spacing: -0.02em; }
.stat .label { margin-top: 20px; font-size: 17px; font-weight: 600; }
.stat .src { margin-top: 8px; font-size: 14px; color: var(--dim); }
.light .stats, .light .stat { border-color: var(--ink-line); }

/* 작동 방식 (스크롤 고정) */
.how { background: var(--bg-2); }
.how-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 100px); }
.how-steps { display: flex; flex-direction: column; }
.how-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s; }
.how-step.active { opacity: 1; }
.how-step .no { font-size: 14px; font-weight: 700; letter-spacing: .14em; }
.how-step h3 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; letter-spacing: -0.03em; margin: 16px 0 18px; line-height: 1.25; }
.how-step p { color: var(--muted); font-size: 18px; max-width: 460px; }
.how-step ul { margin-top: 24px; display: grid; gap: 10px; }
.how-step li { display: flex; gap: 10px; color: var(--gray-20); font-size: 16px; }
.how-step li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--pink); }
.how-visual { position: sticky; top: calc(50vh - 260px); height: 520px; border-radius: 28px; overflow: hidden; background: #070814; border: 1px solid var(--line); }
.how-visual .layer { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); display: flex; align-items: center; justify-content: center; }
.how-visual .layer.active { opacity: 1; }
.how-visual svg { width: 100%; height: 100%; }

/* 제품 스포트라이트 */
.spot-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.spot-img { border-radius: 28px; overflow: hidden; background: #e9e9eb; aspect-ratio: 1 / 0.92; display: flex; align-items: center; justify-content: center; }
.spot-img img { width: 100%; height: 100%; object-fit: cover; }
.feat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 48px; }
.feat-list li { border-top: 1px solid var(--ink-line); padding-top: 18px; }
.feat-list strong { display: block; font-size: var(--fs-item-title); margin-bottom: calc(var(--gap-item-title) - 2px); }
.feat-list span { font-size: 15px; color: var(--ink-2); }

/* 솔루션 카드 */
.sol-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sol-card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 560px; transition: transform .5s var(--ease), border-color .3s;
}
.sol-card:hover { transform: translateY(-8px); border-color: var(--line-2); }
.sol-card .thumb { height: 300px; overflow: hidden; background: #0d0f20; }
.sol-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sol-card:hover .thumb img { transform: scale(1.06); }
.sol-card .body { padding: 32px; display: flex; flex-direction: column; flex: 1; }
.sol-card .tag { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.sol-card h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; margin: 10px 0 12px; }
.sol-card p { color: var(--muted); font-size: 16px; }
.sol-card .more { margin-top: auto; padding-top: 28px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.sol-card .more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.sol-card:hover .more svg { transform: translateX(4px); }

/* 실증 성과 */
.results { overflow: hidden; }
.results::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(164, 107, 255, .22), transparent 60%); pointer-events: none;
}
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.result {
  border-radius: var(--radius); padding: 36px 30px 30px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 300px;
}
.result .num { font-size: clamp(48px, 5vw, 72px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.result .num small { font-size: .45em; margin-left: 2px; }
.result .what { margin-top: 18px; font-size: 18px; font-weight: 600; }
.result .where { margin-top: auto; padding-top: 24px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.results .note { margin-top: 28px; }

/* 파트너 띠 */
.partners { padding: 72px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.partners .label { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 36px; }
.marquee { display: flex; width: max-content; animation: marquee 112s linear infinite; }
.marquee .logo { flex: none; display: flex; align-items: center; justify-content: center; height: 88px; padding: 0 40px; margin-right: 16px; border-radius: 16px; background: var(--gray-0); }
.marquee .logo img { display: block; width: auto; height: var(--h); }
.marquee .logo.txt { font-size: 17px; font-weight: 700; color: var(--gray-70); letter-spacing: -0.02em; white-space: nowrap; }
.partners:hover .marquee { animation-play-state: paused; }
@media (max-width: 760px) {
  .marquee .logo { height: 72px; padding: 0 28px; margin-right: 12px; }
  .marquee .logo img { height: calc(var(--h) * .85); }
  .marquee .logo.txt { font-size: 15px; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* 뉴스 카드 */
.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.news-head .sec-head { margin-bottom: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #e8eaf2; position: relative; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .thumb .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e9ecff, #fbe8f6); }
.post-card .thumb .ph img { width: 120px; height: auto; opacity: .35; filter: invert(1); }
.post-card .meta { margin-top: 22px; font-size: 14px; color: var(--ink-2); display: flex; gap: 10px; }
.post-card h3 { margin-top: 6px; font-size: 21px; font-weight: 700; line-height: 1.45; letter-spacing: -0.02em; }
.post-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.empty { padding: 64px 0; text-align: center; color: var(--ink-2); border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }

/* CTA */
.cta-band { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(64px, 9vw, 120px) clamp(28px, 6vw, 96px); }
.cta-band .bg { position: absolute; inset: 0; background: url("../img/bg-ribbon.jpg") center / cover; }
.cta-band .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 6, 13, .88) 0%, rgba(5, 6, 13, .5) 55%, rgba(5, 6, 13, .05) 100%); }
.cta-band .inner { position: relative; max-width: 620px; }
.cta-band h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.22; font-weight: 700; letter-spacing: -0.035em; }
.cta-band p { margin-top: 20px; color: #d0d3e3; font-size: 18px; }
.cta-band .btn { margin-top: 60px; }

/* ───────── 서브 페이지 ───────── */
.page-hero { padding: calc(var(--header-h) + clamp(80px, 10vw, 140px)) 0 clamp(64px, 8vw, 100px); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; width: 1100px; height: 700px; left: 50%; top: -360px; transform: translateX(-30%);
  background: radial-gradient(closest-side, rgba(164, 107, 255, .28), rgba(244, 95, 200, .08) 60%, transparent); pointer-events: none;
}
.page-hero .crumb { font-size: 14px; color: var(--muted); display: flex; gap: 8px; }
.page-hero h1 { margin-top: 24px; font-size: clamp(40px, 6vw, 84px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.1; }
.page-hero p { margin-top: 28px; max-width: 680px; font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); }
.sub-tabs { position: sticky; top: 0; z-index: 50; background: rgba(5, 6, 13, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: top .45s var(--ease); }
body.header-visible .sub-tabs { top: var(--header-h); }
.sub-tabs ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.sub-tabs ul::-webkit-scrollbar { display: none; }
.sub-tabs a { display: block; padding: 18px 16px; font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.sub-tabs a.on, .sub-tabs a:hover { color: var(--text); border-color: var(--pink); }
.light .sub-tabs, .sub-tabs.light { background: rgba(245, 246, 250, .9); border-color: var(--ink-line); }
.sub-tabs.light a { color: var(--ink-2); }
.sub-tabs.light a.on, .sub-tabs.light a:hover { color: var(--ink); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.top { align-items: start; }
.media { border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.light .media { border-color: var(--ink-line); background: var(--gray-0); }
.h2 { font-size: clamp(30px, 3.8vw, 48px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.25; margin-top: 18px; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.35; }
.body-l { font-size: 18px; color: var(--muted); margin-top: 22px; }
.light .body-l { color: var(--ink-2); }

.cards { display: grid; gap: 20px; }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.card { border-radius: var(--radius); padding: 36px 32px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.card .ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(164, 107, 255, .14); margin-bottom: 24px; }
.card .ico svg { width: 24px; height: 24px; stroke: #d6b8ff; }
.card h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.card p { font-size: 16px; color: var(--muted); }
.light .card { background: var(--gray-0); border-color: var(--ink-line); }
.light .card p { color: var(--ink-2); }
.light .card .ico { background: #f1eaff; }
.light .card .ico svg { stroke: #7a45e6; }
.card .k { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 12px; }
.card.area .tag { display: inline-block; margin: -2px 0 14px; font-size: 13px; font-weight: 600; color: #d6b8ff; }
.card.area ul { display: grid; gap: 8px; margin-top: 4px; }
.card.area li { position: relative; padding-left: 14px; font-size: 16px; color: var(--muted); }
.card.area li::before { content: ""; position: absolute; left: 0; top: .7em; width: 4px; height: 4px; border-radius: 50%; background: var(--pink); }

.spec { width: 100%; border-collapse: collapse; margin-top: 32px; font-size: 16px; }
.spec th, .spec td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 140px; color: var(--muted); font-weight: 500; }
.light .spec th, .light .spec td { border-color: var(--ink-line); }
.light .spec th { color: var(--ink-2); }

.timeline { border-left: 1px solid var(--line-2); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 40px 36px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--pink); }
.timeline .when { font-size: 15px; font-weight: 700; color: var(--pink); }
.timeline .what { margin-top: 6px; font-size: 19px; font-weight: 600; }
.timeline .desc { margin-top: 4px; color: var(--muted); font-size: 15px; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team { border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); min-height: 220px; display: flex; flex-direction: column; }
.team .role { font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.team .name { font-size: 22px; font-weight: 700; margin-top: 10px; }
.team .desc { margin-top: auto; padding-top: 20px; font-size: 15px; color: var(--muted); }

.patent-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.patent-table th, .patent-table td { padding: 20px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.patent-table th { font-size: 14px; color: var(--muted); font-weight: 600; border-top: 1px solid var(--line-2); }
.patent-table td:first-child { color: var(--muted); width: 100px; }
.patent-table td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 게시판 */
.board-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.board-tools .count { font-size: 15px; color: var(--ink-2); }
.board-tools .count b { color: var(--ink); }
.search { position: relative; }
.search input { height: 48px; width: 300px; max-width: 100%; border-radius: 999px; border: 1px solid var(--ink-line); background: var(--gray-0); padding: 0 48px 0 22px; font: inherit; font-size: 15px; }
.search svg { position: absolute; right: 18px; top: 14px; width: 20px; height: 20px; stroke: var(--ink-2); }
.board { border-top: 2px solid var(--ink); }
.board li a { display: grid; grid-template-columns: 80px 1fr 140px; align-items: center; gap: 16px; padding: 28px 8px; border-bottom: 1px solid var(--ink-line); background: var(--gray-0); }
.board .no { color: var(--ink-2); font-size: 15px; text-align: center; }
.board .t { font-size: 18px; font-weight: 600; }
.board .d { color: var(--ink-2); font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #ffe6f6; color: #c2289a; margin-right: 10px; vertical-align: 2px; }
.badge.gray { background: #eceef4; color: var(--ink-2); }
.badge.open { background: #e6f7ee; color: #148a4c; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.pager button { width: 40px; height: 40px; border-radius: 10px; font-size: 15px; color: var(--ink-2); }
.pager button.on { background: var(--ink); color: var(--gray-0); }

.article { max-width: 880px; margin: 0 auto; }
.article .a-head { border-bottom: 1px solid var(--ink-line); padding-bottom: 32px; margin-bottom: 40px; }
.article .a-head h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.35; letter-spacing: -0.03em; margin-top: 16px; }
.article .a-head .meta { margin-top: 18px; color: var(--ink-2); font-size: 15px; display: flex; gap: 16px; flex-wrap: wrap; }
.article .a-foot { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--ink-line); display: flex; justify-content: center; }
.files { margin-top: 40px; padding: 24px; border-radius: 16px; background: var(--gray-0); border: 1px solid var(--ink-line); }
.files strong { display: block; margin-bottom: 12px; font-size: 15px; }
.files a { display: flex; align-items: center; gap: 8px; color: #5b3bd6; font-size: 15px; padding: 4px 0; }
.files a:hover { text-decoration: underline; }

.md { font-size: 17px; line-height: 1.85; color: #262a3d; }
.md > * + * { margin-top: 1.1em; }
.md h2 { font-size: 26px; margin-top: 2em; letter-spacing: -0.02em; color: var(--ink); }
.md h3 { font-size: 21px; margin-top: 1.6em; color: var(--ink); }
.md ul { list-style: disc; padding-left: 1.4em; }
.md ol { list-style: decimal; padding-left: 1.4em; }
.md li + li { margin-top: .3em; }
.md a { color: #5b3bd6; text-decoration: underline; text-underline-offset: 3px; }
.md img { border-radius: 14px; margin: 1.5em 0; }
.md blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--violet); color: var(--ink-2); }
.md hr { border: 0; border-top: 1px solid var(--ink-line); margin: 2.5em 0; }
.md code { background: #eef0f6; padding: 2px 6px; border-radius: 6px; font-size: .92em; }

/* CI */
.ci-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ci-item { border-radius: var(--radius); background: var(--gray-0); border: 1px solid var(--ink-line); overflow: hidden; display: flex; flex-direction: column; }
.ci-item .pv { height: 280px; display: flex; align-items: center; justify-content: center; padding: 40px; }
.ci-item .pv img { max-height: 100%; width: auto; max-width: 70%; object-fit: contain; }
.ci-item .pv.dark { background: var(--navy); }
.ci-item .pv.light { background: var(--gray-5); }
.ci-item .info { padding: 28px 32px; border-top: 1px solid var(--ink-line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.ci-item h3 { font-size: 20px; }
.ci-item p { font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.ci-dl { display: flex; gap: 8px; flex-wrap: wrap; }
.ci-dl a { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ink-line); font-size: 14px; font-weight: 600; }
.ci-dl a:hover { border-color: var(--ink); }
.colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.color { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--ink-line); background: var(--gray-0); }
.color .sw { height: 160px; }
.color .info { padding: 20px 24px; }
.color strong { display: block; font-size: var(--fs-item-title); margin-bottom: var(--gap-item-title); }
.color span { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* 채용 */
.job-list li a { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 32px 8px; border-bottom: 1px solid var(--ink-line); background: var(--gray-0); }
.job-list li:first-child a { border-top: 2px solid var(--ink); }
.job-list h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin-top: 10px; }
.job-list .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.job-list .tags span + span::before { content: "·"; margin-right: 8px; }
.job-list .dl { text-align: right; font-size: 15px; color: var(--ink-2); }

/* 문의 */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--ink-2); }
.form input, .form select, .form textarea {
  width: 100%; border: 1px solid var(--ink-line); background: var(--gray-0); border-radius: 12px; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--ink);
}
.form textarea { min-height: 180px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid #b48cff; outline-offset: 1px; border-color: transparent; }
.contact-info { display: grid; gap: 28px; }
.contact-info dt { font-size: 14px; color: var(--ink-2); }
.contact-info dd { margin: 6px 0 0; font-size: 19px; font-weight: 600; }

/* ───────── 푸터 ───────── */
.site-footer { background: #03040a; border-top: 1px solid var(--line); padding: 72px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.site-footer .brand img.word { height: 45px; width: auto; margin-bottom: 18px; }
.site-footer .brand p { max-width: 320px; font-size: 18px; }
.site-footer .cols { display: flex; gap: 64px; flex-wrap: wrap; }
.site-footer .cols strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 16px; }
.site-footer .cols li + li { margin-top: 10px; }
.site-footer .cols a:hover { color: var(--text); }
.site-footer .bottom { padding-top: 32px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .bottom dl { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; }
.site-footer .bottom dt { display: inline; color: var(--dim); margin-right: 6px; }
.site-footer .bottom dd { display: inline; margin: 0; }

/* ───────── 반응형 ───────── */
@media (max-width: 1180px) {
  .gnb > li { width: 118px; }
  .site-header .logo, .site-header .util { width: 150px; }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .cards.c4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .gnb, .site-header .util .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header .logo, .site-header .util { width: auto; }
  .site-header .util { margin-left: auto; }
  .how-grid, .spot-grid, .split { grid-template-columns: 1fr; }
  .how-visual { position: relative; top: 0; height: 360px; order: -1; }
  .how-step { min-height: auto; opacity: 1; padding: 40px 0; border-top: 1px solid var(--line); }
  .sol-cards, .post-grid, .cards.c3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .ci-grid, .cards.c2 { grid-template-columns: 1fr; }
  .colors { grid-template-columns: repeat(2, 1fr); }
  .news-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .result-grid, .team-grid, .cards.c4 { grid-template-columns: 1fr; }
  .feat-list { grid-template-columns: 1fr; }
  .board li a { grid-template-columns: 1fr; gap: 6px; padding: 22px 4px; }
  .board .no { display: none; }
  .board .d { text-align: left; }
  .form { grid-template-columns: 1fr; }
  .hero .scroll-cue { display: none; }
  .sol-card { min-height: 0; }
  .patent-table td:first-child { display: none; }
  .patent-table th:first-child { display: none; }
  .job-list li a { grid-template-columns: 1fr; }
  .job-list .dl { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee { animation: none; }
  html { scroll-behavior: auto; }
}

/* 화살표 아이콘 */
.arr {
  display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 10h12M11 5l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 10h12M11 5l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s var(--ease);
}
.btn:hover .arr, .sol-card:hover .arr, a:hover > .arr { transform: translateX(4px); }

/* 첫 화면 문구는 스크롤 감지 없이 바로 등장 */
.hero .reveal, .page-hero .reveal { animation: heroIn 1.1s var(--ease) forwards; transition: none; }
.hero .reveal.d1, .page-hero .reveal.d1 { animation-delay: .12s; }
.hero .reveal.d2, .page-hero .reveal.d2 { animation-delay: .24s; }
.hero .reveal.d3, .page-hero .reveal.d3 { animation-delay: .36s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* 좁은 화면에서는 영상이 글 뒤로 들어오므로 아래쪽을 더 어둡게 덮어 글을 읽기 쉽게 한다 */
/* 휴대폰: 메인 첫 화면 제목을 키운다. 375px에서 약 43px, 320px에서도 "도시의 소리를"이 한 줄에 들어간다 */
@media (max-width: 760px) { .hero h1 { font-size: clamp(40px, 11.5vw, 56px); } }
@media (max-width: 760px) { .hero::after { background: linear-gradient(180deg, rgba(5, 6, 13, .55) 0%, rgba(5, 6, 13, 0) 20%, rgba(5, 6, 13, .55) 45%, rgba(5, 6, 13, .95) 70%); } }

/* 헤더 언어 메뉴 */
.site-header .util { width: 220px; }
.site-header .lang { position: relative; }
.site-header .lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text); }
.site-header .lang-btn:hover { border-color: var(--text); }
.site-header .lang-btn svg { width: 16px; height: 16px; }
.site-header .lang-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 160px; padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6); display: none; z-index: 10; }
.site-header .lang.open .lang-menu { display: block; }
.site-header .lang-menu a { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 9px; font-size: 14px; color: var(--gray-20); }
.site-header .lang-menu a:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.site-header .lang-menu a[aria-current] { color: var(--text); font-weight: 700; }
.site-header .lang-menu a[aria-current]::after { content: "✓"; color: var(--pink); }
@media (max-width: 1180px) { .site-header .util { width: 150px; gap: 8px; } .site-header .lang-btn { width: 38px; padding: 0; justify-content: center; } .site-header .lang-btn span { display: none; } }
@media (max-width: 960px) { .site-header .util { width: auto; gap: 6px; } }

/* 오시는 길 지도: 무채색 */
.loc-map { margin-top: clamp(40px, 5vw, 64px); height: clamp(320px, 42vw, 480px); border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #2a2c33; }
.loc-map .maplibregl-canvas { filter: grayscale(1) contrast(1.05); }
.loc-pin { width: 22px; height: 22px; border-radius: 50%; background: var(--gray-100); border: 4px solid var(--gray-0); box-shadow: 0 0 0 6px rgba(11, 12, 23, .18), 0 6px 16px rgba(0, 0, 0, .35); }
.loc-map .maplibregl-ctrl-attrib { font-size: 13px; }

/* 팀: 역할별 묶음 */
.team-group + .team-group { margin-top: 48px; }
.team-group-label { font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.team-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.team-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.team-grid .team { min-height: 0; }
@media (max-width: 960px) { .team-grid.cols-3, .team-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-grid.cols-2, .team-grid.cols-3, .team-grid.cols-4 { grid-template-columns: 1fr; } }
