:root {
  --accent: #6B46E5;      /* 보이스 바이올렛 */
  --accent-text: #5A35D6;
  --accent-soft: #B5A3F7;
  --ink: #111111;
  --ink-2: #555555;
  --muted: #9A9A9A;
  --bg: #FFFFFF;
  --bg-alt: #F9F9F9;
  --line: #222222;
  --line-soft: #DDDDDD;
  --text: #333333;
  --text-2: #555555;
  --nav-bg: rgba(255,255,255,.88);
  --card: #F5F5F5;
  --card-violet: #F1EEFB;
  --blend: multiply;
  --vt-bg: #FFFFFF; --vt-v: #5A35D6; --vt-talk: #1C1D21;
  --fx-ink: 28,24,48;          /* 캔버스 선 색(r,g,b) */
  --fx-dot-a: #9D86F2; --fx-dot-b: #1C1830;
  --gutter: clamp(16px, 1.4vw, 24px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: "IBM Plex Sans", "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
       font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-x: hidden; }
img { max-width: 100%; display: block; }

/* 검은 바탕 — html data-theme="dark" (운영 화면 '바탕색'에서 고른다) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --accent: #7C5CED;
  --accent-text: #B5A3F7;
  --accent-soft: #9A82F2;
  --ink: #F2F1F7;
  --text: #C9C7D3;
  --text-2: #9A98A6;
  --muted: #6F6D7B;
  --bg: #0A0A0D;
  --bg-alt: #111116;
  --line: #3A3846;
  --line-soft: #24232C;
  --nav-bg: rgba(10,10,13,.82);
  --card: #15141B;
  --card-violet: #17142A;
  --blend: normal;
  --vt-bg: #111113; --vt-v: #B5A3F7; --vt-talk: #E6E7EA;
  --fx-ink: 214,206,245;
  --fx-dot-a: #E2DAFF; --fx-dot-b: #5A35D6;
}
a { color: inherit; }
[hidden] { display: none !important; }
.pre { white-space: pre-line; }

/* 위쪽 메뉴 */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
       padding: 14px var(--gutter); background: var(--nav-bg); backdrop-filter: blur(6px); }
.nav-logo img { height: 22px; width: auto; }
.nav-links { display: flex; gap: 22px; font-size: 14px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--accent); }

/* 떠 있는 동그라미 단추 */
.float-btn { position: fixed; right: var(--gutter); top: 64px; z-index: 19; width: 118px; height: 118px; border-radius: 50%;
             background: var(--accent); color: #fff; display: grid; place-items: center; text-decoration: none; font-size: 16px;
             transition: transform .2s; }
.float-btn:hover { transform: scale(1.06); }

/* 첫 화면 */
.hero { position: relative; padding: 70px var(--gutter) 40px; overflow: hidden; }
.sphere { position: absolute; left: 50%; top: 50px; transform: translateX(-50%); width: min(560px, 80vw); height: min(560px, 80vw); pointer-events: none; }
.wordmark { position: relative; font-weight: 400; color: var(--accent); letter-spacing: -.03em; line-height: 1;
            font-size: clamp(96px, 27vw, 460px); text-align: center; margin-top: 2vw; mix-blend-mode: var(--blend); }
.marquee { position: relative; overflow: hidden; margin-top: 2vw; color: var(--accent); font-size: clamp(20px, 2.4vw, 36px); }
.marquee-track { display: flex; gap: 1.2em; width: max-content; animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.hero-cols { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-top: 60px; font-size: 13px; color: var(--text); }
.hero-cols p { white-space: pre-line; }
.hero-cols p:first-child { text-align: right; padding-right: 10%; }
.mail { color: var(--text); }
.arrow-link { display: inline-block; margin-top: 18px; color: var(--accent-text); }

/* 공통 칸 */
.block { padding: 48px var(--gutter) 96px; }
.block.line { border-top: 1px solid var(--line); }
.h-mid { font-size: clamp(22px, 2vw, 30px); font-weight: 400; }
.h-big { font-size: clamp(40px, 4.4vw, 72px); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; white-space: pre-line; }
.accent { color: var(--accent); }
.accent-soft { color: var(--accent-soft); }
.body-text { margin-top: 20px; font-size: 14px; color: var(--text); white-space: pre-line; }
.body-text.narrow { max-width: 620px; }
.body-text.small { font-size: 13px; max-width: 360px; }
.muted { color: var(--muted); }
#about .h-big { margin-top: 64px; }

/* 소개 사진 */
.gallery { margin-top: 24px; display: grid; grid-template-columns: 2fr 1fr; gap: var(--gutter); }
.gallery:empty { display: none; }
.gallery .g { aspect-ratio: 16 / 10; background: var(--card) center / cover no-repeat; }
.gallery .g:nth-child(3n+2) { aspect-ratio: auto; }

/* 일하는 순서 */
.process-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: start; }
.process-head .body-text { margin-top: 6px; }
.process-grid { margin-top: 120px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.process-imgs { position: relative; min-height: 420px; }
.pimg { position: absolute; background: center / cover no-repeat; }
.pimg1 { left: 0; top: 0; width: 46%; aspect-ratio: 4 / 5; background-color: var(--card-violet); }
.pimg2 { left: 50%; top: 52%; width: 66%; aspect-ratio: 16 / 10; background-color: var(--card); }
.pimg.empty { background-image: radial-gradient(circle, #C9BDF8 1.4px, transparent 1.6px); background-size: 14px 14px; }
.list-head { display: flex; justify-content: space-between; font-size: 13px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.steps { list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 130px 1fr; align-items: baseline; padding: 14px 0;
            border-bottom: 1px solid var(--line-soft); font-size: clamp(18px, 1.5vw, 22px); color: var(--text); }
.steps li::before { content: counter(s, decimal-leading-zero); font-size: 12px; color: var(--text-2); }

/* 서비스 */
.work-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.work-head .body-text { margin-top: 10px; }
.works { margin-top: 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px var(--gutter); align-items: start; }
.work:nth-child(3n+2) { margin-top: -40px; }
.work:nth-child(3n) { margin-top: 40px; }
.work .thumb { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #8B6CF0, #4B33A8) center / cover no-repeat; }
.work .meta { margin-top: 12px; font-size: 13px; }
.work .desc { margin-top: 10px; font-size: 13px; color: var(--muted); }
.work .go { display: inline-block; margin-top: 18px; font-size: 13px; text-decoration: none; }
.work .go:hover { color: var(--accent); }
.work .name { margin-top: 4px; font-size: 18px; }

/* 배경 사진 띠 */
.banner { position: relative; min-height: 100svh; color: #fff; overflow: hidden;
          background: radial-gradient(circle at 55% 45%, #B5A3F7 0%, #7C5CED 35%, #3B2A8C 75%) center / cover no-repeat; }
.banner-dim { position: absolute; inset: 0; background: #000; opacity: 0; }
.banner-inner { position: relative; min-height: 100svh; padding: 48px var(--gutter); display: grid; grid-template-rows: auto 1fr auto; }
.banner-title { font-size: clamp(36px, 4.4vw, 72px); font-weight: 300; line-height: 1.15; white-space: pre; }
.banner-body { align-self: center; justify-self: center; margin-left: 20%; font-size: 14px; white-space: pre-line; opacity: .9; }
.banner-bottom { font-size: clamp(36px, 4.4vw, 72px); font-weight: 300; line-height: 1.15; white-space: pre-line; }

/* 소식 */
.news { margin-top: 32px; list-style: none; border-top: 1px solid var(--line); }
.news li { border-bottom: 1px solid var(--line-soft); }
.news summary { display: grid; grid-template-columns: 130px 1fr; padding: 16px 0; cursor: pointer; list-style: none; font-size: 18px; }
.news summary::-webkit-details-marker { display: none; }
.news time { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.news .body { padding: 0 0 20px 130px; font-size: 14px; color: var(--text); white-space: pre-line; }

/* 바닥글 */
.footer { background: var(--bg-alt); padding: 32px var(--gutter) 24px; overflow: hidden; }
.contact-title { display: inline-block; color: var(--accent); font-size: clamp(32px, 3.6vw, 56px); text-decoration: none; }
.footer-row { margin-top: 80px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; font-size: 13px; }
.info div { display: flex; gap: 10px; }
.info dt { color: var(--muted); }
.info .status { color: var(--accent-text); margin-bottom: 6px; }
.links { list-style: none; text-align: right; align-self: end; }
.links a { color: var(--text); }
.footer-mark { color: var(--accent); font-size: clamp(96px, 30vw, 520px); line-height: .9; letter-spacing: -.03em; text-align: center; margin-top: 40px; }
.copy { font-size: 12px; color: var(--muted); margin-top: 12px; }

@media (max-width: 760px) {
  .float-btn { width: 76px; height: 76px; font-size: 13px; top: auto; bottom: 20px; }
  .hero-cols, .process-head, .process-grid, .work-head, .works { grid-template-columns: 1fr; }
  .hero-cols p:first-child { text-align: left; padding: 0; }
  .sphere { top: 40px; width: 72vw; height: 72vw; }
  .hero-cols { margin-top: 150px; }
  .work:nth-child(n) { margin-top: 0; }
  .process-grid { margin-top: 48px; }
  .process-imgs { min-height: 300px; }
  .steps li, .news summary { grid-template-columns: 56px 1fr; }
  .news .body { padding-left: 56px; }
  .gallery { grid-template-columns: 1fr; }
  .banner-title { white-space: pre-line; }
  .banner-body { margin-left: 0; justify-self: start; }
  .links { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* 움직임 */
.rv { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
[data-split] .ch { display: inline-block; opacity: 0; transform: translateY(40%); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
[data-split].in .ch { opacity: 1; transform: none; }
.pimg { translate: 0 var(--py, 0px); overflow: hidden; }
.pimg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pimg1 canvas { cursor: crosshair; }
.pimg.pimg1:has(canvas) { background: var(--card); }
.pimg.pimg2:has(canvas) { background: transparent; }
.banner-canvas { position: absolute; inset: -10% 0; width: 100%; height: 120%; translate: 0 var(--py, 0px); }
.work .thumb { overflow: hidden; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .6s; }
.work:hover .thumb { transform: scale(1.03); filter: saturate(1.15); }
.steps li { transition: color .3s, padding-left .3s, opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.steps li:hover { color: var(--accent); padding-left: 10px; }
.float-btn { animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 50% { translate: 0 -8px; } }
.marquee:hover .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .rv, [data-split] .ch { opacity: 1; transform: none; transition: none; }
  .float-btn { animation: none; }
}

/* 공시사항 페이지 */
body.sub main { padding-top: 64px; }
.nav-links a[aria-current="page"] { color: var(--accent); }
.label-sm { font-size: 13px; color: var(--accent-text); letter-spacing: .12em; text-transform: uppercase; }
.disc .h-big { margin-top: 8px; }
.disc-bar { margin-top: 64px; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap;
            padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.disc-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.disc-filters button { font: inherit; font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-soft);
                       background: var(--bg); color: var(--text); cursor: pointer; }
.disc-filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.disc-list { list-style: none; min-height: 30vh; }
.disc-list li { border-bottom: 1px solid var(--line-soft); }
.disc-list .empty { padding: 48px 0; color: var(--muted); text-align: center; border: 0; }
.disc-list summary { display: grid; grid-template-columns: 56px 140px 1fr 110px; align-items: baseline; gap: 12px;
                     padding: 18px 0; cursor: pointer; list-style: none; transition: color .2s; }
.disc-list summary::-webkit-details-marker { display: none; }
.disc-list summary:hover { color: var(--accent); }
.disc-list .no { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.disc-list .cat { font-size: 13px; color: var(--accent-text); }
.disc-list .title { font-size: clamp(16px, 1.4vw, 19px); }
.disc-list time { font-size: 13px; color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }
.disc-list details[open] summary { color: var(--accent); }
.disc-list .body { padding: 4px 0 28px 208px; font-size: 14px; color: var(--text); display: grid; gap: 14px; justify-items: start; }
.disc-list .body p { white-space: pre-line; }
.disc-list .file { padding: 10px 16px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent-text); text-decoration: none; font-size: 13px; }
.disc-list .file:hover { background: var(--accent); color: #fff; }
.disc-list .permalink { font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
  .disc-list summary { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .disc-list .no { display: none; }
  .disc-list .title { grid-column: 1 / -1; order: 3; }
  .disc-list .body { padding-left: 0; }
  .nav-links { gap: 14px; }
}

/* 템플릿에 더 맞추기 */
.wordmark, .footer-mark { white-space: nowrap; display: block; width: 100%; text-align: left; letter-spacing: -.02em; font-weight: 400; }
.wordmark { margin-top: 1vw; line-height: .95; }
.footer-mark { margin-top: 56px; line-height: .9; }
.hero-cols { font-size: 13px; line-height: 1.55; }
.hero-cols p:first-child { text-align: center; padding-right: 0; }
.footer-bottom { margin-top: 36px; text-align: center; font-size: 13px; line-height: 1.6; color: var(--accent); }
.copy { display: none; }
.list-head a { color: var(--accent-text); }
.steps li { grid-template-columns: 130px auto 1fr; gap: 0 18px; }
.steps .ss { font-size: 13px; color: var(--muted); }
.steps li:hover .ss { color: var(--accent-soft); }
.links a { text-decoration: underline; text-underline-offset: 2px; }
.footer-row { font-size: 13px; line-height: 1.7; }
.float-btn { font-size: 17px; letter-spacing: .01em; }
.disc .h-mid { margin-top: 8px; color: var(--text); }
@media (max-width: 760px) {
  .steps li { grid-template-columns: 40px 1fr; }
  .steps .ss { grid-column: 2; }
  .hero-cols p:first-child { text-align: left; }
}

/* 왼쪽 위 로고: 다소 말풍선 심볼 + Daso */
.nav-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.nav-logo img { height: 22px; width: auto; }
.nav-logo span { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }

/* 브이톡 로고 애니메이션(앱 시작 화면과 같은 움직임) */
@font-face { font-family: 'BrandLogoV'; src: url('vtalk/rubik-black-v.woff2') format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: 'Gowun Dodum'; src: url('vtalk/gowun-dodum-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap;
             unicode-range: U+0000-00FF; }
.work .thumb.vt-host { background: var(--vt-bg); border: 1px solid var(--line-soft); display: grid; place-items: center; }
.vt-logo { display: flex; align-items: center; gap: 16px; transform-origin: center; scale: clamp(.8, 1, 1.4); }
.vt-icon { width: 68px; height: 68px; border-radius: 16px; }
.vt-word { display: flex; align-items: baseline; }
.vt-v { width: 57px; height: 54.6px; overflow: visible; margin-bottom: 3px; }
.vt-v text { font-family: 'BrandLogoV'; font-size: 100px; fill: var(--vt-v); }
.vt-v polyline { fill: none; stroke: #fff; stroke-width: 30; stroke-linejoin: miter; stroke-dasharray: 1; stroke-dashoffset: 0; }
.vt-talk { display: flex; margin-left: 4px; font-family: 'Gowun Dodum', sans-serif; font-size: 48px; line-height: 48px; color: var(--vt-talk); }
.vt-logo.play .vt-icon { animation: vt-pop .6s cubic-bezier(.34, 1.56, .64, 1) both; }
.vt-logo.play .vt-v polyline { animation: vt-draw .8s cubic-bezier(.65, 0, .35, 1) .35s both; }
.vt-logo.play .vt-talk span { animation: vt-rise .45s cubic-bezier(.22, 1, .36, 1) both; }
.vt-logo.play .vt-talk span:nth-child(1) { animation-delay: 1.05s; }
.vt-logo.play .vt-talk span:nth-child(2) { animation-delay: 1.15s; }
.vt-logo.play .vt-talk span:nth-child(3) { animation-delay: 1.25s; }
.vt-logo.play .vt-talk span:nth-child(4) { animation-delay: 1.35s; }
@keyframes vt-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes vt-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes vt-rise { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) { .vt-logo { scale: .8; } }
