/* ㈜위블 홈페이지 2026 (2차) - CI 보라(#60269E), 나눔스퀘어 네오 */
:root {
  --purple: #60269E;
  --purple-deep: #3E1A66;
  --purple-ink: #2A1147;
  --purple-soft: #F3EFF9;
  --lavender: #D8D0E6;
  --teal: #2A9D8F;          /* 디지털 트윈 라벨 전용 */
  --ink: #1D1A26;
  --ink-2: #4A4557;
  --muted: #7A7488;
  --rule: #E6E1EF;
  --paper: #FFFFFF;
  --paper-alt: #FAF8FD;
  --font: "NanumSquare Neo", Pretendard, "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: Consolas, "SF Mono", Menlo, monospace;
  --wrap: 1120px;
  --gutter: 16px;
  --radius: 12px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); margin-bottom: 0.6em; color: var(--purple-ink); }
h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); color: var(--purple-deep); }
h4 { font-size: 1.02rem; color: var(--purple-deep); margin-bottom: 0.4em; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
.muted { color: var(--muted); font-weight: 400; }
.small { font-size: 0.9rem; color: var(--ink-2); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--purple); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { width: 110px; height: auto; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { padding: 8px 12px; border-radius: 6px; color: var(--ink-2); font-weight: 700; font-size: 0.95rem; }
.nav a:hover { background: var(--purple-soft); color: var(--purple); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--purple); }
.nav .nav-cta { background: var(--purple); color: #fff; margin-left: 8px; }
.nav .nav-cta:hover { background: var(--purple-deep); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--purple); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 1rem; border: 1.5px solid transparent; line-height: 1.4; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-deep); }
.btn-light { background: #fff; color: var(--purple); }
.btn-light:hover { background: var(--purple-soft); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline { border-color: var(--purple); color: var(--purple); }
.btn-outline:hover { background: var(--purple-soft); }
.btn-arrow::after { content: " →"; }

/* hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 85% 10%, #7A3FBF 0%, transparent 60%), linear-gradient(160deg, var(--purple-ink) 0%, var(--purple-deep) 55%, var(--purple) 100%);
  padding: 88px 0 72px;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.eyebrow { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.18em; color: var(--lavender); margin-bottom: 16px; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem); margin-bottom: 20px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: #D9C6F5; }
.hero .lead { font-size: 1.1rem; color: #EDE7F6; max-width: 32em; line-height: 1.8; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-figure { margin: 0; }
.hero-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.12); aspect-ratio: 1440 / 688; background: #0B0713; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure figcaption { font-size: 0.82rem; color: var(--lavender); margin-top: 12px; }
.hero-figure figcaption .tag { color: #B9F0E8; }

/* sections */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-alt); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-tight { padding: 56px 0; }
.sec-num { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em; color: var(--purple); margin-bottom: 10px; }
.sec-num::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--purple); vertical-align: middle; margin-right: 10px; }
.sec-num-twin, .sec-num-twin::before { color: var(--teal); background-color: var(--teal); }
.sec-num-twin { background: none; }
.sec-num-light, .sec-num-light::before { color: var(--lavender); background-color: var(--lavender); }
.sec-num-light { background: none; }
.sec-head { max-width: 40em; margin-bottom: 40px; }
.sec-head .dek { margin-bottom: 0; }
.dek { font-size: 1.1rem; color: var(--ink-2); max-width: 60em; }
.client { display: inline-block; font-size: 0.85rem; font-weight: 700; color: var(--purple); background: var(--purple-soft); padding: 2px 8px; border-radius: 4px; margin-right: 6px; vertical-align: 2px; }
.note { font-size: 0.93rem; color: var(--ink-2); border-left: 3px solid var(--lavender); padding: 8px 16px; background: var(--purple-soft); border-radius: 0 6px 6px 0; }
.block { margin-top: 48px; padding-top: 36px; border-top: 1px dashed var(--lavender); }
.block:first-of-type { border-top: 0; padding-top: 0; }
.prose p:last-child { margin-bottom: 0; }

.cols-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.cols-2-13 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.cols-2-21 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cols-2 > *, .cards-3 > *, .certs > *, .steps > *, .logos > *, .hero-inner > *, .contact-inner > *, .footer-inner > *, .stats > *, .cases > *, .company-inner > * { min-width: 0; }
.card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px 22px; box-shadow: 0 2px 10px rgba(96, 38, 158, 0.05); }
.card p:last-child { margin-bottom: 0; }
.card-num { font-family: var(--mono); font-size: 0.85rem; color: var(--purple); font-weight: 700; margin-bottom: 8px; }
.card-tags { font-size: 0.85rem; color: var(--muted); margin-top: -6px; }
.card-twin { border-top: 3px solid var(--teal); }
.card-twin .card-num { color: var(--teal); }
.callout { margin: 28px 0 0; padding: 18px 22px; background: var(--purple-soft); border-left: 4px solid var(--purple); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2); }

/* stats + logos (신뢰 띠) */
.trust { padding: 56px 0 64px; }
.stats { list-style: none; margin: 0 0 44px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stats li { border-left: 3px solid var(--purple); padding: 4px 0 4px 18px; }
.stats b { display: block; font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); font-weight: 800; line-height: 1.1; color: var(--purple-ink); letter-spacing: -0.02em; }
.stats b small { font-size: 0.5em; font-weight: 700; color: var(--purple); margin-left: 2px; }
.stats span { display: block; font-size: 0.92rem; color: var(--ink-2); margin-top: 6px; }
.logos-title { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--mono); margin-bottom: 14px; }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.logos li { background: #fff; border: 1px solid var(--rule); border-radius: 8px; height: 76px; display: grid; place-items: center; padding: 12px 16px; }
.logos img { max-height: 44px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.85; transition: filter .2s, opacity .2s; }
.logos li:hover img { filter: none; opacity: 1; }

/* pillars (무엇을 하는가) */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pillar { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(96, 38, 158, 0.05); transition: transform .2s, box-shadow .2s; }
.pillar:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(96, 38, 158, 0.14); }
.pillar-media { aspect-ratio: 16 / 10; background: var(--purple-soft); overflow: hidden; }
.pillar-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.pillar-tile { display: flex; flex-wrap: wrap; align-content: center; gap: 8px; padding: 24px; height: 100%; background: linear-gradient(150deg, var(--purple-ink), var(--purple)); }
.pillar-tile span { font-family: var(--mono); font-size: 0.82rem; color: #fff; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25); padding: 4px 10px; border-radius: 999px; }
.pillar-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.pillar-body .kicker { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--purple); margin-bottom: 8px; }
.pillar-twin .kicker { color: var(--teal); }
.pillar-body h3 { margin-bottom: 0.4em; }
.pillar-body p { color: var(--ink-2); font-size: 0.98rem; margin-bottom: 1.2em; }
.pillar-body .more { margin-top: auto; font-weight: 700; }
.pillar-body .more::after { content: " →"; }

/* cases (대표 사례) */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.case { margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.case-media { aspect-ratio: 16 / 10; overflow: hidden; background: #F0ECF6; }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.case-media.contain img { object-fit: contain; padding: 14px; }
.case figcaption { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.case .client { margin: 0 0 10px; align-self: flex-start; }
.case h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.case p { color: var(--ink-2); font-size: 0.97rem; margin: 0; }
.case .marks { display: flex; gap: 8px; margin-top: 14px; }
.case .marks img { height: 54px; width: auto; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.case .more { margin-top: 14px; font-weight: 700; font-size: 0.95rem; }
.case .more::after { content: " →"; }

/* company */
.company-inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.company-inner .lead { font-size: 1.08rem; color: var(--ink-2); }
.marks-row { display: flex; gap: 14px; margin: 8px 0 22px; }
.marks-row figure { margin: 0; text-align: center; font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.marks-row img { height: 92px; width: auto; margin: 0 auto 6px; border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06); }
.company-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* figures */
.shot { margin: 0; }
.shot img { border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.shot-contain img { object-fit: contain; }
.shot-tall img { max-height: 520px; width: auto; margin: 0 auto; }
.shot figcaption { font-size: 0.88rem; color: var(--ink-2); margin-top: 10px; line-height: 1.55; }
.bullets { margin: 0 0 1em; padding-left: 1.2em; }
.bullets li { margin-bottom: 0.5em; }
.bullets-kv { list-style: none; padding: 0; }
.bullets-kv li { padding-left: 0; margin-bottom: 0.8em; }
.bullets-kv strong { display: inline-block; color: var(--teal); min-width: 3.2em; }

/* flow / steps */
.flow, .steps { list-style: none; counter-reset: n; margin: 0 0 1em; padding: 0; display: grid; gap: 12px; }
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flow li, .steps li { position: relative; padding: 14px 16px 14px 52px; background: #fff; border: 1px solid var(--rule); border-radius: 8px; }
.flow li::before, .steps li::before { counter-increment: n; content: counter(n); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--purple); color: #fff; font-family: var(--mono); font-size: 0.8rem; font-weight: 700; display: grid; place-items: center; }
.steps li::before { background: var(--teal); }
.flow strong, .steps strong { display: block; margin-bottom: 2px; color: var(--purple-deep); }
.flow span, .steps span { font-size: 0.92rem; color: var(--ink-2); }

/* certs */
.certs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 1.2em; }
.cert { margin: 0; text-align: center; }
.cert img { max-height: 340px; width: auto; margin: 0 auto; border: 1px solid var(--rule); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); }
.cert figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--ink-2); }
.cert figcaption strong { display: block; color: var(--purple-deep); font-size: 0.98rem; }

/* avatar pairs */
.pair-imgs { display: flex; align-items: center; gap: 14px; margin: 8px 0; }
.pair-imgs figure { margin: 0; text-align: center; font-size: 0.8rem; color: var(--muted); flex: 0 1 180px; }
.pair-imgs img { border-radius: 6px; border: 1px solid var(--rule); margin: 0 auto; max-height: 200px; width: auto; }
.pair-imgs .arrow { color: var(--purple); font-size: 1.4rem; }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.2em; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.kv th { text-align: left; white-space: nowrap; color: var(--purple-deep); font-weight: 700; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; width: 9em; }
.kv td { padding: 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.kv-compact th { width: 8em; }
.grid th { text-align: left; background: var(--purple-soft); color: var(--purple-deep); padding: 10px 12px; border-bottom: 2px solid var(--lavender); font-weight: 700; white-space: nowrap; }
.grid td { padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.grid tbody tr:hover { background: var(--paper-alt); }
.works td:first-child { font-family: var(--mono); color: var(--purple); font-weight: 700; white-space: nowrap; }
.works td:last-child { white-space: nowrap; color: var(--ink-2); }

/* timeline */
.timeline { margin: 0; padding: 0; border-left: 2px solid var(--lavender); }
.timeline > div { position: relative; padding: 0 0 24px 28px; }
.timeline > div::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--purple); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--lavender); }
.timeline dt { font-family: var(--mono); font-weight: 700; color: var(--purple); font-size: 1.05rem; margin-bottom: 4px; }
.timeline dd { margin: 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.8; }

/* subpage head */
.page-head { background: linear-gradient(160deg, var(--purple-ink) 0%, var(--purple-deep) 60%, var(--purple) 100%); color: #fff; padding: 64px 0 56px; }
.page-head .sec-num, .page-head .sec-num::before { color: var(--lavender); background-color: var(--lavender); }
.page-head .sec-num { background: none; }
.page-head h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); margin-bottom: 14px; }
.page-head .dek { color: #EDE7F6; max-width: 40em; margin: 0; }
.crumb { font-size: 0.85rem; color: var(--lavender); margin-bottom: 18px; }
.crumb a { color: #fff; }

/* CTA band (하위 페이지 끝) */
.cta-band { background: var(--purple-soft); border-top: 1px solid var(--rule); padding: 56px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-inner h2 { margin: 0 0 6px; font-size: 1.5rem; }
.cta-inner p { margin: 0; color: var(--ink-2); }

/* contact */
.contact { background: var(--purple-deep); color: #fff; }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.contact h2 { color: #fff; }
.contact .lead { color: #EDE7F6; margin: 0; font-size: 1.08rem; }
.contact-actions { margin: 0; justify-content: flex-end; }

/* footer */
.site-footer { background: var(--ink); color: #C9C4D4; font-size: 0.88rem; padding: 36px 0; }
.footer-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer a { color: #E8E3F2; }
.copy { margin: 0; color: #8E88A0; font-family: var(--mono); font-size: 0.8rem; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 960px) {
  .hero { padding: 64px 0 56px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cards-3, .steps, .certs, .pillars, .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cols-2-13, .cols-2-21, .company-inner { grid-template-columns: minmax(0, 1fr); }
  .company-inner { gap: 32px; }
  .section { padding: 72px 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1rem; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .hero { padding: 48px 0 40px; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .section { padding: 56px 0; }
  .trust { padding: 40px 0 48px; }
  .block { margin-top: 32px; padding-top: 24px; }
  .cols-2, .cards-3, .steps, .certs, .pillars, .cases { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; margin-bottom: 32px; }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .logos li { height: 64px; padding: 10px 12px; }
  .logos img { max-height: 36px; }
  .marks-row img { height: 72px; }
  .contact-inner, .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .contact-actions { justify-content: flex-start; }
  .kv th { width: 7em; white-space: normal; }
  .shot-tall img { max-height: 380px; }
  .pair-imgs { justify-content: center; }
  .page-head { padding: 44px 0 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pillar, .pillar:hover { transform: none; }
}
@media print {
  .site-header, .nav-toggle, .hero-actions, .contact-actions, .cta-band { display: none; }
  .hero, .contact, .page-head { background: #fff; color: var(--ink); }
  .section { padding: 24px 0; }
  .reveal { opacity: 1; transform: none; }
}
