/* =====================================================================
 * mazigle.ai — PPT 제작 대행 랜딩 페이지 스타일
 * 구조: 1) 토큰  2) 기본  3) 공통 컴포넌트  4) 섹션별  5) 상세 화면  6) 라이트박스  7) PDF 뷰어  8) 반응형
 * ===================================================================== */

/* ---------- 1) 디자인 토큰 ---------- */
:root {
  --ink: #0e1013;          /* 차콜 블랙 */
  --ink-2: #171a1f;
  --ink-3: #252a31;
  --ink-line: #2c3139;
  --text: #121418;
  --text-2: #4b515a;
  --muted: #80868f;
  --muted-dark: #8e949d;   /* 어두운 배경 위 보조 텍스트 */
  --line: #e2e4e8;
  --line-2: #eff1f3;
  --bg: #ffffff;
  --bg-2: #f4f5f7;
  --cyan: #34c0f0;         /* mazigle.ai 로고 시안 */
  --cyan-ink: #0a7fb0;     /* 흰 배경 위 텍스트용 (명도 대비 확보) */
  --cyan-soft: #ebf8fd;
  --danger: #d6343a;

  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --r: 4px;
  --r-lg: 8px;
  --shadow-slide: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px -12px rgba(15,20,30,.22);
  --slide-ring: 0 0 0 1px rgba(255,255,255,.12); /* 어두운 띠 위 장표 가장자리 — 어두운 장표가 띠에 묻히지 않게 */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- 2) 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r); }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }

/* ---------- 3) 공통 컴포넌트 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--r); border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn svg { font-size: 16px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a2f37; }
.btn-cyan { background: var(--cyan); color: var(--ink); }
.btn-cyan:hover { background: #5ccdf4; }
.btn-line { border-color: #c9ccd2; color: var(--text); background: #fff; }
.btn-line:hover { border-color: var(--ink); }
.btn-line-dark { border-color: var(--line); color: var(--text); background: #fff; }
.btn-ghost-dark { border-color: var(--ink-line); color: #fff; }
.btn-ghost-dark:hover { border-color: #4a515c; background: var(--ink-3); }
.btn[disabled] { opacity: .6; pointer-events: none; }

.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--r);
  border: 1px solid var(--line); color: var(--text); font-size: 18px; transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn--dark { border-color: var(--ink-line); color: #fff; background: rgba(255,255,255,.02); }
.icon-btn--dark:hover { border-color: #59606b; background: var(--ink-3); }

.eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--text-2);
}
.eyebrow b { font-family: var(--mono); font-weight: 600; color: var(--cyan-ink); font-size: 12px; }
.eyebrow--onDark { color: var(--muted-dark); }
.eyebrow--onDark b { color: var(--cyan); }

.section { padding: clamp(80px, 11vw, 148px) 0; }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px 64px; align-items: end; }
.section-title { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.22; font-weight: 700; letter-spacing: -0.035em; }
.section-lead { margin-top: 18px; font-size: clamp(16px, 1.25vw, 18px); color: var(--text-2); max-width: 580px; line-height: 1.7; }
.section-head--row .section-lead { margin-top: 0; }
.sub-title { font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; letter-spacing: -0.03em; }

.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 3px; font-size: 12px; font-weight: 600; background: var(--bg-2); color: var(--text-2); }
.tag--cyan { background: var(--cyan); color: var(--ink); }

.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.arrow-link svg { transition: transform .25s var(--ease); }

.link-btn { font-size: 13px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

/* 슬라이드 이미지 공통 프레임 */
.slide-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r); background: var(--bg-2); }
.slide-frame img { width: 100%; height: 100%; object-fit: cover; }

.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(14px); }

/* ---------- 헤더 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.88); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand img { height: 26px; width: auto; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { position: relative; padding: 8px 12px; font-size: 15px; font-weight: 500; color: var(--text-2); border-radius: var(--r); transition: color .2s; }
.main-nav a:hover, .main-nav a.is-active { color: var(--text); }
.main-nav a.is-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--cyan); }
.nav-toggle { display: none; width: 40px; height: 40px; margin-left: auto; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .25s, top .25s; }
.nav-toggle span:first-child { top: 15px; } .nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }
.mobile-menu { position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: grid; }
.mobile-menu a:not(.btn) { padding: 14px 0; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line-2); }
.mobile-menu .btn { margin-top: 16px; height: 52px; }

/* ---------- 4) 섹션: Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 32px 56px; align-items: end; padding-bottom: clamp(48px, 6vw, 80px); }
.hero .eyebrow { color: var(--cyan-ink); font-size: 14px; }
.hero-title { font-size: clamp(36px, 4.7vw, 70px); line-height: 1.14; font-weight: 750; letter-spacing: -0.045em; }
.hero-title span { color: var(--text); white-space: nowrap; }
.hero-sub { font-size: clamp(16px, 1.3vw, 18px); color: var(--text-2); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* 장표 세 장 모두 어두운 띠 위에. 흰 배경에 흰 장표가 닿으면 장표가 배경으로 번져 보인다 */
.hero-stage { background: var(--ink); padding-block: clamp(40px, 5vw, 64px); }
.hero-mosaic { display: grid; grid-template-columns: 1fr calc((100% - 44.44px) / 3); grid-template-rows: auto auto; gap: 16px; }
.hero-tile { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-slide); background: var(--bg-2); transition: transform .4s var(--ease), box-shadow .4s; }
.hero-tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-tile:first-child { grid-row: span 2; }
.hero-tile:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 24px 48px -16px rgba(0,0,0,.45); }
.hero-tile-cap {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; gap: 8px; align-items: center;
  padding: 7px 12px; border-radius: 3px; background: rgba(14,16,19,.86); color: #fff; font-size: 13px; font-weight: 500;
  opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s;
}
.hero-tile-cap b { color: var(--cyan); font-weight: 600; }
.hero-tile:hover .hero-tile-cap, .hero-tile:focus-visible .hero-tile-cap { opacity: 1; transform: none; }
.hero-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink-line); color: #fff; }
.hero-facts > div { padding: 22px 24px 0 0; }
.hero-facts > div + div { padding-left: 24px; border-left: 1px solid var(--ink-line); }
.hero-facts dt { font-size: 13px; color: var(--muted-dark); margin-bottom: 6px; }
.hero-facts dd { font-size: clamp(15px, 1.35vw, 19px); font-weight: 600; letter-spacing: -0.02em; }
.hero-facts small { font-size: 13px; color: var(--muted-dark); font-weight: 500; margin-left: 4px; }

/* ---------- 섹션: Showcase (어두운 띠) ---------- */
.showcase { background: var(--ink); color: #fff; padding-top: clamp(40px, 5vw, 72px); }
.showcase { padding-bottom: clamp(64px, 8vw, 104px); }
.showcase .section-head { margin-bottom: 36px; }
.rail-controls { display: flex; align-items: center; gap: 8px; justify-self: end; }
.rail-hint { font-size: 13px; color: var(--muted-dark); margin-right: 10px; }
.rail {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 8px;
  scroll-padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging .rail-item { pointer-events: none; }
.rail-item { display: block; flex: 0 0 clamp(290px, 44vw, 640px); scroll-snap-align: start; text-align: left; }
.rail-item .slide-frame { border-radius: var(--r-lg); background: var(--ink-3); transition: transform .4s var(--ease); }
.rail-item:hover .slide-frame { transform: translateY(-3px); }
.rail-cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 14px; }
.rail-cap b { font-weight: 600; }
.rail-cap span { color: var(--muted-dark); }
.rail-progress { height: 2px; background: var(--ink-line); margin-top: 36px; position: relative; overflow: hidden; }
.rail-progress i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--cyan); width: 20%; transition: transform .1s linear; }

/* ---------- 섹션: Difference ---------- */
.compare { border-top: 2px solid var(--ink); }
.compare-row { display: grid; grid-template-columns: 150px 1fr 1fr; }
.compare-row > div { padding: 22px 28px; border-bottom: 1px solid var(--line); }
.compare-row--head > div { padding-top: 18px; padding-bottom: 18px; font-size: 15px; font-weight: 700; }
.compare-general { color: var(--text-2); }
.compare-row--head .compare-general { color: var(--muted); }
.compare-pro { background: var(--cyan-soft); box-shadow: inset 2px 0 0 var(--cyan); font-weight: 600; color: var(--text); }
.compare-row--head .compare-pro { background: var(--ink); color: #fff; display: flex; align-items: center; gap: 10px; box-shadow: none; }
.compare-row--head .compare-pro img { width: 20px; height: auto; }
.compare-topic { font-size: 14px; font-weight: 600; color: var(--muted); }
.compare-cell { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.6; }
.compare-cell svg { flex: none; font-size: 18px; margin-top: 3px; }
.compare-general svg { color: #b4b8bf; }
.compare-pro svg { color: var(--cyan-ink); stroke-width: 2.4; }
.compare-mlabel { display: none; }

.anatomy { margin-top: clamp(72px, 9vw, 120px); }
.anatomy-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.anatomy-head p { color: var(--muted); font-size: 14px; }
.anatomy-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.anatomy-canvas { position: relative; border-radius: var(--r-lg); box-shadow: var(--shadow-slide); }
.anatomy-canvas img { border-radius: var(--r-lg); width: 100%; cursor: zoom-in; }
.pin {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; font-family: var(--mono);
  box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(0,0,0,.25); transition: background-color .2s, transform .2s;
}
.pin:hover { transform: scale(1.08); }
.pin.is-active { background: var(--cyan); color: var(--ink); box-shadow: 0 0 0 3px #fff, 0 0 0 9px rgba(52,192,240,.28); }
.anatomy-list li { border-top: 1px solid var(--line); }
.anatomy-list li:last-child { border-bottom: 1px solid var(--line); }
.anatomy-item { width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; padding: 18px 4px; text-align: left; transition: background-color .2s; }
.anatomy-item .n { grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; font-family: var(--mono); border: 1px solid var(--line); color: var(--text-2); margin-top: 1px; }
.anatomy-item b { font-size: 16px; font-weight: 700; }
.anatomy-item p { font-size: 14px; color: var(--text-2); line-height: 1.6; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s var(--ease), opacity .3s; }
.anatomy-item.is-active .n { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.anatomy-item.is-active p { max-height: 120px; opacity: 1; }
.anatomy-src { margin-top: 12px; font-size: 13px; color: var(--muted); }
.anatomy-src button { color: var(--cyan-ink); font-weight: 600; }

.beforeafter { margin-bottom: clamp(64px, 8vw, 104px); }
.ba-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.ba-head p { color: var(--muted); font-size: 14px; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ba-slot { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); border: 1px dashed #c8ccd2; background: repeating-linear-gradient(135deg, #fafbfc 0 12px, #f4f5f7 12px 13px); display: grid; place-items: center; text-align: center; padding: 24px; }
.ba-slot--after { border-color: rgba(52,192,240,.6); background: repeating-linear-gradient(135deg, #f7fcfe 0 12px, #ecf8fd 12px 13px); }
.ba-label { position: absolute; top: 14px; left: 14px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 4px 8px; border-radius: 3px; background: #fff; border: 1px solid var(--line); }
.ba-slot--after .ba-label { background: var(--ink); color: #fff; border-color: var(--ink); }
.ba-slot p { font-size: 15px; font-weight: 600; color: var(--text-2); }
.ba-slot small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); font-weight: 400; }
/* 실제 비교 이미지가 등록되면 사용되는 슬라이더 */
.ba-slider { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-slide); user-select: none; touch-action: pan-y; }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-slider .ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-1px); cursor: ew-resize; }
.ba-handle::after { content: '⟷'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 16px; box-shadow: 0 0 0 3px #fff; }
.ba-slider .ba-label { z-index: 2; }
.ba-slider .ba-label--after { left: auto; right: 14px; background: var(--ink); color: #fff; border-color: var(--ink); }
.ba-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 14px; font-size: 14px; color: var(--text-2); }
.ba-notes b { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; margin-right: 8px; color: var(--muted); }
.ba-notes p + p { text-align: right; }
.ba-notes p + p b { color: var(--cyan-ink); }
.ba-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

/* ---------- 섹션: Services ---------- */
.services { background: var(--bg-2); }
.service-list { border-top: 2px solid var(--ink); }
.service-row { border-bottom: 1px solid #d9dce1; }
.service-btn { width: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) 44px; gap: 32px; align-items: center; padding: 30px 8px; text-align: left; transition: background-color .25s; }
.service-btn:hover { background: #fff; }
.service-no { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--cyan-ink); }
.service-title { font-size: clamp(19px, 1.7vw, 23px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.35; }
.service-short { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.service-tags .tag { background: #fff; border: 1px solid var(--line); font-weight: 500; }
.service-go { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #cdd1d6; display: grid; place-items: center; font-size: 18px; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.service-btn:hover .service-go { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateX(3px); }
.service-row--featured { border-bottom: 0; margin: 0 0 1px; }
.service-row--featured .service-btn { background: var(--ink); color: #fff; padding: 44px 32px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) 44px; }
.service-row--featured .service-btn:hover { background: #1a1e24; }
.service-row--featured .service-no { color: var(--cyan); }
.service-row--featured .service-title { font-size: clamp(22px, 2.2vw, 30px); }
.service-row--featured .service-short { color: #c5cad1; font-size: 16px; }
.service-row--featured .service-tags .tag { background: transparent; border-color: var(--ink-line); color: #d3d7dc; }
.service-row--featured .service-go { border-color: #3d434c; }
.service-row--featured .service-btn:hover .service-go { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.service-badge { display: inline-block; margin-bottom: 12px; }

/* ---------- 섹션: Portfolio ---------- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text-2); background: #fff; transition: all .2s; }
.chip:hover { border-color: var(--ink); color: var(--text); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .cnt { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 500; }
.chip.is-active .cnt { color: var(--cyan); }
.chip[data-empty="true"] .cnt { opacity: .6; }

.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; }
.p-card { display: block; text-align: left; width: 100%; }
.p-card .slide-frame { border-radius: var(--r-lg); box-shadow: var(--shadow-slide); }
.p-card .slide-frame img { transition: transform .7s var(--ease); }
.p-card:hover .slide-frame img { transform: scale(1.025); }
.p-card-pages { position: absolute; right: 12px; bottom: 12px; padding: 5px 10px; border-radius: 3px; background: rgba(14,16,19,.82); color: #fff; font-size: 12px; font-weight: 600; font-family: var(--mono); }
.p-card-body { padding-top: 22px; display: grid; gap: 8px; }
.p-card-cats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; font-weight: 600; color: var(--cyan-ink); }
.p-card-title { font-size: clamp(19px, 1.6vw, 22px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.4; }
.p-card-sum { color: var(--text-2); font-size: 15px; line-height: 1.65; }
.p-card .arrow-link { margin-top: 6px; }
.p-card:hover .arrow-link svg { transform: translateX(4px); }
.p-empty { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 56px 32px; text-align: center; background: var(--bg-2); }
.p-empty h3 { font-size: 20px; margin-bottom: 8px; }
.p-empty p { color: var(--text-2); margin-bottom: 24px; }
.p-empty .btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- 섹션: Process ---------- */
.process { background: var(--ink); color: #fff; }
.process-steps { display: flex; filter: drop-shadow(0 10px 24px rgba(0,0,0,.25)); }
.step-btn {
  --notch: 34px;
  flex: 1 1 0; min-width: 0; position: relative; display: flex; flex-direction: column; justify-content: center; text-align: left;
  min-height: 116px; padding: 18px calc(var(--notch) + 12px) 18px calc(var(--notch) + 22px);
  background: var(--ink-3); color: #c9ced5;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% 50%, calc(100% - var(--notch)) 100%, 0 100%, var(--notch) 50%);
  transition: background-color .25s, color .25s;
}
.step-btn + .step-btn { margin-left: calc(-1 * var(--notch) + 6px); }
.step-btn:first-child { padding-left: 26px; clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% 50%, calc(100% - var(--notch)) 100%, 0 100%); }
.step-btn:hover { background: #313741; color: #fff; }
.step-btn.is-active { background: var(--cyan); color: var(--ink); }
.step-num { display: block; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .06em; margin-bottom: 6px; color: var(--cyan); }
.step-btn.is-active .step-num { color: var(--ink); opacity: .7; }
.step-title { display: block; font-size: clamp(17px, 1.6vw, 22px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.3; }
.step-short { display: none; }
.process-panel { margin-top: 28px; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: 1.1fr 1fr 1fr 0.8fr; gap: 32px; animation: fadeIn .4s var(--ease); }
.pp-lead h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; margin: 6px 0 10px; }
.pp-lead p { color: #b9bec6; font-size: 15px; }
.pp-lead .step-num { color: var(--cyan); margin: 0; }
.pp-col h4 { font-size: 13px; font-weight: 600; color: var(--muted-dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--ink-line); }
.pp-col li { position: relative; padding-left: 14px; font-size: 15px; line-height: 1.55; color: #e7e9ec; }
.pp-col li + li { margin-top: 8px; }
.pp-col li::before { content: ''; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
.pp-out { font-size: 18px; font-weight: 700; color: var(--cyan); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 섹션: Pricing ---------- */
.ptable { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ptable th, .ptable td { text-align: left; vertical-align: top; padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: 15px; }
.ptable thead th { border-bottom: 2px solid var(--ink); padding-top: 0; padding-bottom: 28px; font-weight: 400; }
.ptable tbody th { width: 180px; font-weight: 600; color: var(--muted); font-size: 14px; padding-left: 0; }
.ptable td { color: var(--text); }
.ptable .col-pkg + .col-pkg, .ptable td + td { border-left: 1px solid var(--line-2); }
.pkg-name { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--cyan-ink); }
.pkg-title { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.03em; margin: 8px 0 18px; line-height: 1.35; min-height: 2.7em; }
.pkg-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pkg-price strong { font-size: clamp(32px, 3vw, 42px); font-weight: 750; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.pkg-price strong span { font-size: .5em; font-weight: 700; margin-left: 2px; }
.pkg-price small { flex-basis: 100%; margin-top: 6px; font-size: 14px; color: var(--muted); }
.pkg-desc { margin: 14px 0 22px; font-size: 14px; color: var(--text-2); line-height: 1.6; min-height: 4.8em; }
.ptable .yes, .ptable .no { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ptable .yes { color: var(--cyan-ink); }
.ptable .yes svg { stroke-width: 2.4; }
.ptable .no { color: var(--muted); font-weight: 500; }
.ptable .num { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.ptable .scope li { position: relative; padding-left: 14px; line-height: 1.55; }
.ptable .scope li + li { margin-top: 6px; }
.ptable .scope li::before { content: ''; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; background: var(--cyan); border-radius: 50%; }
.ptable .point td { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.ptable tfoot td { border-bottom: 0; padding-top: 24px; }
.pkg-cards { display: none; }
.price-notice { margin-top: 24px; font-size: 14px; color: var(--text-2); padding: 16px 20px; background: var(--bg-2); border-left: 2px solid var(--ink); border-radius: 0 var(--r) var(--r) 0; }

/* ---------- 섹션: FAQ ---------- */
.faq { background: var(--bg-2); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 64px; align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-list { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid #d9dce1; }
.faq-item summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 24px 4px; cursor: pointer; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q { font-family: var(--mono); color: var(--cyan-ink); font-size: 14px; font-weight: 700; flex: none; }
.faq-item summary .plus { margin-left: auto; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #cdd1d6; position: relative; transition: transform .3s var(--ease), background-color .2s; }
.faq-item summary .plus::before, .faq-item summary .plus::after { content: ''; position: absolute; left: 8px; right: 8px; top: 13px; height: 1.6px; background: var(--ink); }
.faq-item summary .plus::after { transform: rotate(90deg); transition: transform .3s var(--ease); }
.faq-item[open] summary .plus { background: var(--ink); border-color: var(--ink); }
.faq-item[open] summary .plus::before, .faq-item[open] summary .plus::after { background: #fff; }
.faq-item[open] summary .plus::after { transform: rotate(0deg); }
.faq-a { padding: 0 52px 26px 34px; color: var(--text-2); font-size: 15px; line-height: 1.8; }

/* ---------- 섹션: Contact ---------- */
.contact { background: var(--ink); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.45fr; gap: 64px; align-items: start; }
.contact .section-lead { color: #b9bec6; }
.contact-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.contact-steps { margin-top: 40px; border-top: 1px solid var(--ink-line); }
.contact-steps li { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--ink-line); font-size: 15px; color: #dfe2e6; }
.contact-steps b { font-family: var(--mono); font-size: 12px; color: var(--cyan); width: 24px; }

.form-card { background: #fff; color: var(--text); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 44px); }
#inquiryForm { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row--3 { grid-template-columns: repeat(3, 1fr); }
.field { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend, .field .label { font-size: 14px; font-weight: 600; color: var(--text); padding: 0; }
.field legend { margin-bottom: 8px; }
.field em, .consent em { color: var(--cyan-ink); font-style: normal; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="date"], .field select, .field textarea {
  width: 100%; min-width: 0; font: inherit; font-size: 15px; color: var(--text); background: #fff;
  border: 1px solid #d3d6db; border-radius: var(--r); padding: 0 14px; height: 48px; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field input[type="date"] { padding-right: 8px; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.field ::placeholder { color: #a3a8b0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(52,192,240,.25); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field-error { font-size: 13px; color: var(--danger); min-height: 0; }
.field-error:empty { display: none; }

.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.seg--sm { grid-template-columns: repeat(3, 1fr); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px 6px; border: 1px solid #d3d6db; border-radius: var(--r); font-size: 14px; font-weight: 600; line-height: 1.3; transition: all .2s; }
.seg span small { font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.seg label:hover span { border-color: var(--ink); }
.seg input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.seg input:checked + span small { color: var(--cyan); }
.seg input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

.ref-chip { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--cyan-soft); border: 1px solid rgba(52,192,240,.45); border-radius: var(--r); font-size: 14px; }
.ref-chip-label { flex: none; font-size: 12px; font-weight: 700; color: var(--cyan-ink); }
.ref-chip-text { flex: 1; font-weight: 600; min-width: 0; }
.ref-chip-x { flex: none; width: 28px; height: 28px; font-size: 20px; line-height: 1; color: var(--text-2); border-radius: 50%; }
.ref-chip-x:hover { background: rgba(0,0,0,.06); }

.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px 16px; border: 1px dashed #c3c7cd; border-radius: var(--r); background: var(--bg-2); text-align: center; cursor: pointer; transition: border-color .2s, background-color .2s; font-size: 14px; color: var(--text-2); }
.dropzone:hover, .dropzone.is-over { border-color: var(--cyan-ink); background: var(--cyan-soft); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone svg { font-size: 24px; color: var(--text-2); margin-bottom: 4px; }
.dropzone b { color: var(--text); }
.dropzone small { color: var(--muted); font-size: 12px; }
.file-list { display: grid; gap: 6px; }
.file-list:empty { display: none; }
.file-item { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; }
.file-ext { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 3px 6px; border-radius: 3px; background: var(--ink); color: #fff; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.file-size { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.file-x { width: 28px; height: 28px; border-radius: 50%; font-size: 18px; color: var(--muted); }
.file-x:hover { background: var(--bg-2); color: var(--text); }

.consent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 4px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
.consent-detail { flex-basis: 100%; background: var(--bg-2); border-radius: var(--r); padding: 16px 18px; font-size: 13px; color: var(--text-2); }
.consent-detail dl { display: grid; gap: 6px; margin-bottom: 8px; }
.consent-detail dl div { display: grid; grid-template-columns: 72px 1fr; gap: 8px; }
.consent-detail dt { font-weight: 600; color: var(--text); }
.consent .field-error { flex-basis: 100%; }
.form-foot { font-size: 13px; color: var(--muted); text-align: center; margin-top: -8px; }
.btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0,0,0,.2); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-done { text-align: center; padding: clamp(24px, 4vw, 48px) 0; outline: none; animation: fadeIn .5s var(--ease); }
.done-mark { width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 50%; background: var(--cyan); color: var(--ink); display: grid; place-items: center; font-size: 30px; }
.done-mark svg { stroke-width: 2.6; }
.form-done h3 { font-size: clamp(20px, 2vw, 25px); line-height: 1.5; letter-spacing: -0.03em; }
.done-mail { margin: 16px auto 0; max-width: 460px; font-size: 14px; color: var(--text-2); }
.done-summary { margin: 24px auto; max-width: 460px; text-align: left; border-top: 1px solid var(--line); }
.done-summary div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.done-summary dt { color: var(--muted); }
.done-summary dd { font-weight: 500; overflow-wrap: anywhere; }

/* ---------- 푸터 ---------- */
.site-footer { background: #08090b; color: var(--muted-dark); padding: 56px 0 calc(48px + env(safe-area-inset-bottom)); font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: start; }
.footer-logo { height: 24px; width: auto; }
.footer-info b { color: #e6e8eb; }
.footer-note { margin-top: 6px; font-size: 13px; color: #6d737c; }
.footer-copy { font-size: 13px; }

/* ---------- 모바일 하단 고정 버튼 ---------- */
.mobile-cta { display: none; }

/* ---------- 5) 상세 화면 ---------- */
.detail { position: fixed; inset: 0; z-index: 100; background: #fff; display: flex; flex-direction: column; animation: detailIn .38s var(--ease); }
.detail.is-closing { animation: detailOut .25s ease forwards; }
@keyframes detailIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes detailOut { to { opacity: 0; transform: translateY(16px); } }
.detail-bar { flex: none; height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.detail-back { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 8px; border-radius: var(--r); font-size: 15px; font-weight: 600; flex: none; }
.detail-back:hover { background: var(--bg-2); }
.detail-back svg { font-size: 20px; }
.detail-bar-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .25s; }
.detail.is-scrolled .detail-bar-title { opacity: 1; }
.detail-bar-actions { display: flex; gap: 8px; flex: none; margin-left: auto; }
.detail-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.detail-content { padding-bottom: 0; }

.d-hero { padding: clamp(40px, 5vw, 72px) 0 clamp(32px, 4vw, 48px); }
.d-hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px 72px; align-items: end; }
.d-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.d-title { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.28; font-weight: 750; letter-spacing: -0.04em; }
.d-intro { margin-top: 22px; display: grid; gap: 12px; color: var(--text-2); font-size: 16px; line-height: 1.8; max-width: 760px; }
.d-meta { border-top: 2px solid var(--ink); }
.d-meta div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.d-meta dt { color: var(--muted); font-weight: 600; }
.d-meta dd { font-weight: 500; }
.d-meta-actions { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }

.d-cover { padding: 0 0 clamp(64px, 8vw, 112px); }
.d-cover-stage { padding: clamp(16px, 3vw, 40px); border-radius: var(--r-lg); background: var(--bg-2); }
.d-cover-stage.is-dark { background: var(--ink); }
.d-cover-btn { display: block; width: 100%; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-slide); cursor: zoom-in; }
.d-cover-btn img { width: 100%; }

.d-section { padding: clamp(64px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.d-section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.d-section-head h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.035em; }
.d-section-head p { color: var(--muted); font-size: 14px; }

.feature-list { display: grid; gap: clamp(48px, 6vw, 80px); }
.feature { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px 56px; align-items: center; }
.feature:nth-child(even) { grid-template-columns: 1fr 1.55fr; }
.feature:nth-child(even) .feature-img { order: 2; }
.feature-img { display: block; width: 100%; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-slide); cursor: zoom-in; }
.feature-img img { width: 100%; transition: transform .7s var(--ease); }
.feature-img:hover img { transform: scale(1.015); }
.feature-n { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--cyan-ink); }
.feature h3 { font-size: clamp(20px, 1.9vw, 26px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.4; margin: 10px 0 12px; }
.feature p { color: var(--text-2); font-size: 16px; line-height: 1.8; }
.feature .page-ref { margin-top: 16px; font-size: 13px; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
.g-item { display: block; text-align: left; }
.g-item .slide-frame { border-radius: var(--r); box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 6px 18px -10px rgba(0,0,0,.25); cursor: zoom-in; }
.g-item .slide-frame img { transition: transform .5s var(--ease); }
.g-item:hover .slide-frame img { transform: scale(1.03); }
.g-cap { display: flex; gap: 10px; margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.g-cap b { font-family: var(--mono); font-size: 12px; color: var(--text); flex: none; padding-top: 2px; }

.d-cta { background: var(--ink); color: #fff; padding: clamp(56px, 7vw, 96px) 0; }
.d-cta-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px 64px; align-items: center; }
.d-cta h2 { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.35; letter-spacing: -0.035em; font-weight: 700; }
.d-cta p { color: #b9bec6; margin-top: 12px; }
.d-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.d-more { background: var(--bg-2); padding: clamp(56px, 7vw, 88px) 0; }
.d-more .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.d-more .p-card-title { font-size: 17px; }
.d-more .p-card-sum { display: none; }

/* 서비스 상세 */
.s-hero { padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 64px); }
.s-no { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--cyan-ink); margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.s-lead { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.6; margin-top: 24px; max-width: 820px; }
.s-body { color: var(--text-2); margin-top: 16px; max-width: 820px; line-height: 1.8; }
.s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.s-col { padding: 28px 28px 32px 0; }
.s-col + .s-col { padding-left: 28px; border-left: 1px solid var(--line); }
.s-col h3 { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 18px; }
.s-col li { position: relative; padding: 10px 0 10px 16px; border-bottom: 1px solid var(--line-2); font-size: 16px; font-weight: 500; }
.s-col li::before { content: ''; position: absolute; left: 0; top: 1.15em; width: 6px; height: 6px; background: var(--cyan); }
.s-pkg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.s-pkg-item { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 6px; }
.s-pkg-item .pkg-name { font-size: 12px; }
.s-pkg-item b { font-size: 22px; letter-spacing: -0.03em; }
.s-pkg-item p { font-size: 14px; color: var(--text-2); }
.s-related-note { font-size: 14px; color: var(--muted); margin-top: -20px; margin-bottom: 28px; }

/* ---------- 6) 라이트박스 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,9,11,.97); color: #fff; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-columns: minmax(0, 1fr); animation: fadeIn .25s ease; }
.lb-top { display: flex; align-items: center; gap: 16px; padding: 12px var(--gutter); }
.lb-title { flex: 1; min-width: 0; display: flex; gap: 14px; align-items: baseline; font-size: 15px; white-space: nowrap; overflow: hidden; }
#lbCounter { font-family: var(--mono); color: var(--cyan); font-size: 13px; flex: none; }
#lbCaption { overflow: hidden; text-overflow: ellipsis; color: #e3e6ea; }
.lb-tools { display: flex; align-items: center; gap: 6px; }
.lb-zoom { min-width: 52px; text-align: center; font-family: var(--mono); font-size: 13px; color: var(--muted-dark); }
.lb-stage { position: relative; overflow: hidden; min-height: 0; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: zoom-in; }
.lb-stage.is-zoomed { cursor: grab; }
.lb-stage.is-panning { cursor: grabbing; }
.lb-stage img { max-width: calc(100vw - 2 * var(--gutter) - 112px); max-height: calc(100% - 24px); width: auto; height: auto; border-radius: 3px; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; will-change: transform; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-loading { position: absolute; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--cyan); animation: spin .8s linear infinite; display: none; }
.lb-stage.is-loading .lb-loading { display: block; }
.lb-nav { position: absolute; top: 50%; width: 48px; height: 48px; border-radius: 50%; margin-top: -24px; display: grid; place-items: center; font-size: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: background-color .2s; z-index: 2; }
.lb-nav:hover { background: rgba(255,255,255,.14); }
.lb-prev { left: max(12px, calc(var(--gutter) - 8px)); }
.lb-next { right: max(12px, calc(var(--gutter) - 8px)); }
.lb-strip { display: flex; gap: 8px; justify-content: center; padding: 12px var(--gutter) 6px; overflow-x: auto; scrollbar-width: none; }
.lb-strip::-webkit-scrollbar { display: none; }
.lb-strip button { flex: none; width: 88px; aspect-ratio: 16/9; border-radius: 3px; overflow: hidden; opacity: .4; outline: 2px solid transparent; outline-offset: 1px; transition: opacity .2s, outline-color .2s; }
.lb-strip button:hover { opacity: .8; }
.lb-strip button.is-active { opacity: 1; outline-color: var(--cyan); }
.lb-strip img { width: 100%; height: 100%; object-fit: cover; }
.lb-hint { text-align: center; font-size: 12px; color: #6d737c; padding: 4px 0 calc(12px + env(safe-area-inset-bottom)); }

/* ---------- 7) PDF 뷰어 ---------- */
.pdfv { border-radius: var(--r-lg); overflow: hidden; background: #2b2f36; border: 1px solid var(--ink-line); display: flex; flex-direction: column; }
.pdfv-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--ink); color: #fff; flex-wrap: wrap; }
.pdfv-bar .icon-btn { width: 36px; height: 36px; font-size: 17px; }
.pdfv-group { display: flex; align-items: center; gap: 6px; }
.pdfv-sep { width: 1px; height: 22px; background: var(--ink-line); margin: 0 4px; }
.pdfv-page { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--muted-dark); }
.pdfv-page input { width: 46px; height: 32px; border-radius: 3px; border: 1px solid var(--ink-line); background: var(--ink-2); color: #fff; text-align: center; font: inherit; font-size: 13px; }
.pdfv-zoom { min-width: 50px; text-align: center; font-family: var(--mono); font-size: 13px; color: #d6d9de; }
.pdfv-spacer { flex: 1; }
.pdfv-file { font-size: 13px; color: var(--muted-dark); margin-right: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.pdfv-dl { height: 36px; font-size: 14px; }
.pdfv-view { position: relative; height: min(78vh, 820px); overflow: auto; overscroll-behavior: contain; padding: 24px; outline: none; }
.pdfv-view canvas { display: block; margin: 0 auto; background: #fff; box-shadow: 0 8px 32px rgba(0,0,0,.4); border-radius: 2px; }
.pdfv-status { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #c4c9d0; font-size: 14px; padding: 24px; }
.pdfv-status .spinner { width: 28px; height: 28px; margin: 0 auto 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--cyan); animation: spin .8s linear infinite; }
.pdfv-status.is-error { color: #ffb4b4; }
.pdfv.is-full { position: fixed; inset: 0; z-index: 250; border-radius: 0; border: 0; }
.pdfv.is-full .pdfv-view, .pdfv:fullscreen .pdfv-view { height: auto; flex: 1; }
.pdfv:fullscreen { border-radius: 0; }

/* ---------- 8) 반응형 ---------- */
@media (max-width: 1120px) {
  .main-nav a { padding: 8px 9px; font-size: 14px; }
  .header-inner { gap: 20px; }
  .process-panel { grid-template-columns: 1fr 1fr; }
  .pp-lead { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 60px; }
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .brand img { height: 23px; }
  .section-head--row { grid-template-columns: 1fr; align-items: start; }
  .rail-controls { justify-self: start; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts > div { padding: 18px 16px 18px 0; }
  .hero-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-facts > div:nth-child(n+3) { border-top: 1px solid var(--ink-line); }
  .anatomy-body { grid-template-columns: 1fr; }
  .service-btn { grid-template-columns: 1fr 40px; gap: 8px 16px; }
  .service-btn .service-head { grid-column: 1; grid-row: 1; }
  .service-btn .service-desc { grid-column: 1; grid-row: 2; }
  .service-btn .service-go { grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 40px; }
  .service-row--featured .service-btn { grid-template-columns: 1fr 40px; padding: 32px 20px; }
  .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-grid .section-head, .contact-intro { position: static; }
  .process-steps { flex-direction: column; }
  .step-btn, .step-btn:first-child {
    --tip: 18px;
    min-height: 0; padding: 18px 22px calc(var(--tip) + 16px);
    flex-direction: row; align-items: baseline; gap: 14px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--tip)), 50% 100%, 0 calc(100% - var(--tip)));
  }
  .step-btn + .step-btn { margin-left: 0; margin-top: calc(-1 * var(--tip) + 6px); padding-top: calc(var(--tip) + 14px);
    clip-path: polygon(0 0, 50% var(--tip), 100% 0, 100% calc(100% - var(--tip)), 50% 100%, 0 calc(100% - var(--tip))); }
  .step-btn:last-child { padding-bottom: 20px; clip-path: polygon(0 0, 50% var(--tip), 100% 0, 100% 100%, 0 100%); }
  .step-num { margin: 0; flex: none; }
  .step-title { font-size: 18px; }
  .ptable { display: none; }
  .pkg-cards { display: grid; gap: 16px; }
  .pkg-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
  .pkg-card .pkg-title { min-height: 0; margin-bottom: 14px; }
  .pkg-card .pkg-desc { min-height: 0; }
  .pkg-card dl { border-top: 1px solid var(--line); margin-bottom: 20px; }
  .pkg-card dl div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
  .pkg-card dt { color: var(--muted); font-weight: 600; }
  .pkg-card dd { font-weight: 600; }
  .pkg-card .scope li { position: relative; padding-left: 14px; font-weight: 500; }
  .pkg-card .scope li::before { content: ''; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
  .pkg-card .yes { color: var(--cyan-ink); }
  .pkg-card .no { color: var(--muted); font-weight: 500; }
  .d-hero-grid, .d-cta-inner { grid-template-columns: 1fr; }
  .d-cta-actions { justify-content: flex-start; }
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-img { order: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-more .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-grid { grid-template-columns: 1fr; }
  .s-col, .s-col + .s-col { padding: 24px 0; border-left: 0; }
  .s-col + .s-col { border-top: 1px solid var(--line); }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-title { font-size: clamp(31px, 8.6vw, 44px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-mosaic { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-tile:first-child { grid-column: 1 / -1; grid-row: auto; }
  .hero-tile-cap { display: none; }
  .hero-facts dd { font-size: 15px; }
  .rail-hint { display: none; }
  .rail { gap: 14px; }
  .rail-item { flex-basis: 82vw; }
  .compare-row--head { display: none; }
  .compare-row { grid-template-columns: 1fr; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .compare-row > div { padding: 0; border: 0; }
  .compare-topic { margin-bottom: 10px; color: var(--text); font-size: 15px; }
  .compare-general { padding: 10px 0 !important; }
  .compare-pro { padding: 12px 14px !important; border-radius: var(--r); }
  .compare-mlabel { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
  .compare-pro .compare-mlabel { color: var(--cyan-ink); }
  .compare-cell { font-size: 15px; }
  .anatomy-head { flex-direction: column; align-items: flex-start; }
  .pin { width: 24px; height: 24px; margin: -12px 0 0 -12px; font-size: 11px; box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0,0,0,.25); }
  .ba-grid, .ba-notes { grid-template-columns: 1fr; }
  .ba-notes { gap: 6px; }
  .ba-notes p + p { text-align: left; }
  .ba-head { flex-direction: column; align-items: flex-start; }
  .service-btn { grid-template-columns: 1fr 36px; padding: 24px 0; }
  .service-btn .service-head { grid-column: 1; grid-row: 1; }
  .service-btn .service-desc { grid-column: 1 / -1; grid-row: 2; }
  .service-btn .service-go { grid-column: 2; grid-row: 1 / span 2; width: 36px; height: 36px; font-size: 16px; align-self: center; }
  .service-row--featured .service-btn { grid-template-columns: 1fr 36px; padding: 28px 18px; }
  .service-btn:hover { background: transparent; }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) 28px; padding: 0 var(--gutter); }
  .filter-bar::-webkit-scrollbar { display: none; }
  .chip { flex: none; height: 38px; padding: 0 14px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 44px; }
  .process-panel { grid-template-columns: 1fr; gap: 24px; }
  .form-row, .form-row--3 { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr 1fr; }
  .seg--sm { grid-template-columns: 1fr 1fr 1fr; }
  .seg--sm span { font-size: 13px; }
  .faq-item summary { font-size: 16px; padding: 20px 0; align-items: flex-start; }
  .faq-item summary .q { padding-top: 2px; }
  .faq-a { padding: 0 0 22px 30px; }

  .mobile-cta { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transition: transform .3s var(--ease); }
  .mobile-cta .btn { height: 48px; }
  .mobile-cta.is-hidden { transform: translateY(110%); }
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

  .detail-bar { height: 56px; gap: 8px; padding: 0 8px 0 4px; }
  .detail-bar-title { font-size: 14px; }
  .detail-bar-actions .btn-hide-sm { display: none; }
  .detail-bar-actions .btn { height: 36px; padding: 0 12px; font-size: 13px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 20px 10px; }
  .g-cap { font-size: 12px; }
  .g-cap span { display: none; }
  .d-more .portfolio-grid { grid-template-columns: 1fr; }
  .s-pkg { grid-template-columns: 1fr; }
  .d-cta-actions .btn { flex: 1 1 100%; }

  .lb-top { padding: 8px 8px 8px 16px; }
  .lb-title { font-size: 13px; }
  .lb-zoom { display: none; }
  #lbLink { height: 32px; padding: 0 10px; font-size: 12px; }
  .lb-title { gap: 8px; }
  .lb-tools .icon-btn { width: 36px; height: 36px; }
  .lb-stage img { max-width: calc(100vw - 16px); }
  .lb-nav { top: auto; bottom: 108px; margin: 0; width: 44px; height: 44px; background: rgba(20,22,26,.85); }
  .lb-strip button { width: 64px; }
  .lb-hint { display: none; }
  .lb-strip { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }

  .pdfv-view { height: 62vh; padding: 12px; gap: 12px; }
  .pdfv-file { display: none; }
  .pdfv-bar { gap: 4px; padding: 8px; }
  .pdfv-sep { display: none; }
  .pdfv-dl span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* =====================================================================
 * 9) 리디자인 — '교정지' 콘셉트
 *  · 색: 기존 토큰 유지 (차콜 / 흰색 / 로고 시안)
 *  · 장식 라벨·모노스페이스·알약형 칩·원형 아이콘 제거, 폰트는 Pretendard 하나
 *  · 움직임은 두 가지만: 첫 화면 제목 등장, 비교표 '취소선 → 형광펜' 교정 표시
 *  · 사용자 동작에 반응하는 버튼 글자 굴림
 * ===================================================================== */
:root {
  --mono: var(--font);
  --r: 2px;
  --r-lg: 6px;
  --mark: rgba(52,192,240,.42);
  --hair: 0 0 0 1px rgba(14,16,19,.08);
  --shadow-slide: 0 0 0 1px rgba(14,16,19,.06), 0 18px 40px -28px rgba(14,16,19,.45);
}
body { font-feature-settings: 'tnum' 0; }

/* 버튼: 각진 모서리 + 글자 굴림 */
.btn { border-radius: var(--r); font-weight: 600; overflow: hidden; }
.btn-ink:hover { background: var(--ink); }
.btn-cyan:hover { background: var(--cyan); }
.btn-line:hover { border-color: var(--ink); background: #fff; }
.roll { display: inline-block; vertical-align: top; height: 1.4em; line-height: 1.4; overflow: hidden; }
.roll-in { display: block; text-shadow: 0 1.4em currentColor; transition: transform .5s cubic-bezier(.7,0,.2,1); }
.btn:hover .roll-in, .main-nav a:hover .roll-in { transform: translateY(-1.4em); }
.main-nav a { overflow: hidden; }
.main-nav a.is-active::after { left: 12px; right: 12px; bottom: 4px; height: 2px; }

/* 섹션 제목: 라벨 없이 제목이 바로 시작 */
.section-title { font-weight: 700; letter-spacing: -0.045em; line-height: 1.18; }
.section-lead { color: var(--text-2); }
.sub-title { letter-spacing: -0.035em; }

/* 섹션마다 떠오르던 효과 제거 */
.reveal, .js .reveal:not(.is-in) { opacity: 1; transform: none; transition: none; }

/* ---------- Hero: 첫 화면에서 한 번만 ---------- */
.hero-title { font-weight: 700; letter-spacing: -0.055em; line-height: 1.08; font-size: clamp(40px, 6vw, 92px); }
.hero-title span { display: block; white-space: normal; }
@media (min-width: 961px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); } }
.hero-sub { font-size: 17px; color: var(--text-2); }
.js .hero-title span { animation: lineUp .9s cubic-bezier(.2,.8,.1,1) both; }
.js .hero-title span + span { animation-delay: .12s; }
.js .hero-side { animation: fadeOnly .8s .45s ease both; }
.js .hero-mosaic { animation: fadeOnly 1s .6s ease both; }
@keyframes lineUp { from { clip-path: inset(0 0 100% 0); transform: translateY(.35em); } to { clip-path: inset(0 0 -10% 0); transform: none; } }
@keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
.hero-tile { border-radius: var(--r-lg); box-shadow: var(--slide-ring); }
.hero-tile:hover { transform: none; box-shadow: var(--slide-ring); }
.hero-tile img { transition: transform .8s var(--ease); }
.hero-tile:hover img { transform: scale(1.02); }
.hero-tile-cap { border-radius: var(--r); }
.hero-facts dt { font-size: 13px; }
.hero-facts dd { font-weight: 600; }

/* ---------- 실제 장표 띠 ---------- */
.showcase .section-head { margin-bottom: 32px; }
.rail-item .slide-frame { border-radius: var(--r-lg); }
.rail-item:hover .slide-frame { transform: none; }
.rail-item .slide-frame img { transition: transform .8s var(--ease); }
.rail-item:hover .slide-frame img { transform: scale(1.02); }
.rail-cap { font-size: 15px; }
.icon-btn { border-radius: var(--r); }

/* ---------- 차별점: 교정 표시 ---------- */
.compare { border-top: 1px solid var(--ink); }
.compare-row { grid-template-columns: 120px 1fr 1.15fr; }
.compare-row > div { padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); }
.compare-row--head > div { padding-top: 16px; padding-bottom: 16px; font-size: 14px; font-weight: 600; }
.compare-row--head .compare-pro { background: none; color: var(--text); display: block; }
.compare-row--head .compare-general { color: var(--muted); }
.compare-pro { background: none; box-shadow: none; font-weight: 600; }
.compare-topic { font-size: 14px; color: var(--muted); font-weight: 500; padding-top: 30px !important; }
.compare-cell { font-size: clamp(17px, 1.5vw, 20px); letter-spacing: -0.025em; line-height: 1.5; }
.compare-general .compare-cell { color: var(--muted); font-weight: 400; }
.compare-pro .compare-cell { color: var(--text); font-weight: 650; }
.strike, .mark { background-repeat: no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.strike {
  background-image: linear-gradient(#a9aeb6, #a9aeb6);
  background-position: 0 58%; background-size: 0% 1.5px;
  transition: background-size .55s cubic-bezier(.6,0,.2,1), color .55s;
}
.mark {
  background-image: linear-gradient(var(--mark), var(--mark));
  background-position: 0 88%; background-size: 0% 42%;
  padding: 0 2px; margin: 0 -2px;
  transition: background-size .7s cubic-bezier(.6,0,.2,1) .4s;
}
.compare-row.is-marked .strike { background-size: 100% 1.5px; color: #a3a8b0; }
.compare-row.is-marked .mark { background-size: 100% 42%; }

.anatomy-canvas { box-shadow: var(--shadow-slide); }
.pin { font-family: var(--font); box-shadow: 0 0 0 2px #fff; }
.pin.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 7px rgba(52,192,240,.3); }
.anatomy-item .n { border-radius: 0; border: 0; width: auto; height: auto; font-size: 15px; font-weight: 600; color: var(--muted); background: none !important; }
.anatomy-item.is-active .n { color: var(--cyan-ink); }
.anatomy-item b { font-weight: 650; }
.anatomy-src button { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Before / After */
.ba-label { font-family: var(--font); letter-spacing: 0; font-size: 12px; font-weight: 600; border-radius: var(--r); padding: 5px 9px; }
.ba-handle::after { content: ''; width: 14px; height: 44px; border-radius: 7px; background: #fff; box-shadow: 0 0 0 1px rgba(14,16,19,.15), 0 4px 14px rgba(0,0,0,.25); }
.ba-notes b { font-family: var(--font); letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--text); }
.ba-notes p + p b { color: var(--cyan-ink); }

/* 탭(필터·비교 탭): 알약 대신 밑줄 */
.filter-bar, .ba-tabs { gap: 0 28px; border-bottom: 1px solid var(--line); }
.chip {
  height: auto; padding: 10px 0 12px; border: 0; border-radius: 0; background: none;
  font-size: 15px; font-weight: 500; color: var(--muted); position: relative; gap: 4px;
}
.chip::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.chip:hover { color: var(--text); border: 0; }
.chip.is-active { background: none; color: var(--text); font-weight: 650; }
.chip.is-active::after { transform: none; }
.chip .cnt { font-size: 11px; align-self: flex-start; margin-top: -2px; color: var(--muted); }
.chip.is-active .cnt { color: var(--cyan-ink); }
.chip[data-empty="true"] { color: #b9bdc4; }

/* ---------- 서비스 ---------- */
.service-list { border-top: 1px solid var(--ink); }
.service-btn { padding: 30px 0; }
.service-btn:hover { background: none; }
.service-title { font-weight: 650; transition: color .25s; }
.service-btn:hover .service-title { color: var(--cyan-ink); }
.service-tags .tag { background: none; border: 0; padding: 0; height: auto; color: var(--muted); font-weight: 500; font-size: 13px; }
.service-tags { gap: 4px 14px; }
.service-go, .service-row--featured .service-go { width: 32px; height: 32px; border: 0; border-radius: 0; background: none !important; color: var(--text) !important; font-size: 22px; }
.service-btn:hover .service-go { transform: translateX(6px); }
.service-row--featured { border-bottom: 1px solid #d9dce1; margin: 0; }
.service-row--featured .service-btn { background: none; color: inherit; padding: 40px 0; }
.service-row--featured .service-btn:hover { background: none; }
.service-row--featured .service-title { font-size: clamp(24px, 2.5vw, 34px); }
.service-row--featured .service-short { color: var(--text); font-size: 17px; font-weight: 500; }
.service-row--featured .service-tags .tag { color: var(--muted); }
.service-badge.tag--cyan { background: none; padding: 0; height: auto; color: var(--cyan-ink); font-size: 13px; font-weight: 600; margin-bottom: 8px; }

/* ---------- 포트폴리오 ---------- */
.p-card .slide-frame { box-shadow: var(--shadow-slide); }
.p-card-pages { font-family: var(--font); border-radius: var(--r); font-weight: 500; }
.p-card-cats { color: var(--muted); font-weight: 500; }
.p-card-title { font-weight: 650; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; text-decoration-thickness: 1.5px; transition: text-decoration-color .25s; }
.p-card:hover .p-card-title { text-decoration-color: var(--cyan); }
.p-card .arrow-link { display: none; }

/* ---------- 제작 과정: 화살표 블록 대신 한 줄 시간축 ---------- */
.process-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); filter: none; border-top: 1px solid var(--ink-line); }
.step-btn, .step-btn:first-child, .step-btn + .step-btn {
  clip-path: none; margin: 0; min-height: 0; background: none; color: var(--muted-dark);
  padding: 22px 20px 6px 0; justify-content: flex-start; position: relative;
}
.step-btn::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.step-btn:hover { background: none; color: #fff; }
.step-btn.is-active { background: none; color: #fff; }
.step-btn.is-active::before { transform: none; }
.step-num { font-family: var(--font); font-size: clamp(34px, 3.4vw, 48px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; margin-bottom: 14px; color: inherit; opacity: .55; }
.step-btn.is-active .step-num { color: var(--cyan); opacity: 1; }
.step-title { font-weight: 600; font-size: clamp(16px, 1.4vw, 19px); }
.process-panel { margin-top: 40px; background: none; border: 0; border-top: 1px solid var(--ink-line); border-radius: 0; padding: 32px 0 0; }
.pp-lead .step-num { font-size: 13px; font-weight: 500; opacity: 1; color: var(--muted-dark); margin-bottom: 0; }
.pp-col h4 { border-bottom: 0; padding-bottom: 0; margin-bottom: 12px; }
.pp-col li { padding-left: 0; }
.pp-col li::before { display: none; }
.pp-col li + li { margin-top: 6px; }
.pp-out { font-weight: 600; }

/* ---------- 가격 ---------- */
.ptable thead th { border-bottom-width: 1px; }
.pkg-name { font-family: var(--font); letter-spacing: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.pkg-title { font-weight: 650; }
.pkg-price strong { font-weight: 700; }
.ptable .scope li { padding-left: 0; }
.ptable .scope li::before, .pkg-card .scope li::before { display: none; }
.pkg-card .scope li { padding-left: 0; }
.price-notice { background: none; border-left: 0; padding: 0; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--ink); }
.faq-item summary { font-weight: 600; }
.faq-item summary .plus { border: 0; border-radius: 0; width: 18px; height: 18px; background: none !important; }
.faq-item summary .plus::before, .faq-item summary .plus::after { left: 2px; right: 2px; top: 8px; background: var(--ink) !important; }
.faq-a { padding: 0 52px 26px 4px; }

/* ---------- 문의 ---------- */
.contact-steps b { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--muted-dark); }
.form-card { border-radius: var(--r-lg); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="date"], .field select, .field textarea { border-radius: var(--r); }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: none; border-color: var(--ink); }
.seg span { border-radius: var(--r); }
.seg input:checked + span small { color: #c6ecfa; }
.file-ext { font-family: var(--font); border-radius: var(--r); }
.ref-chip { border-radius: var(--r); }
.done-mark { border-radius: 0; background: none; color: var(--cyan-ink); width: auto; height: auto; font-size: 44px; }

/* ---------- 상세 화면 ---------- */
.tag { border-radius: var(--r); }
.d-meta { border-top-width: 1px; }
.s-grid { border-top-width: 1px; }
.s-col li { padding-left: 0; }
.s-col li::before { display: none; }
.s-no .tag--cyan { background: none; padding: 0; color: var(--cyan-ink); font-weight: 600; font-size: 14px; }
.g-cap b { font-family: var(--font); color: var(--muted); font-weight: 500; }
#lbCounter, .lb-zoom, .pdfv-page, .pdfv-zoom { font-family: var(--font); font-variant-numeric: tabular-nums; }
.lb-nav { border-radius: var(--r); }

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .process-steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--ink-line); }
  .step-btn, .step-btn:first-child, .step-btn + .step-btn, .step-btn:last-child {
    clip-path: none; margin: 0; padding: 14px 0 14px 22px; flex-direction: row; align-items: baseline; gap: 16px;
  }
  .step-btn::before { left: -1px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform: scaleY(0); transform-origin: top; }
  .step-btn.is-active::before { transform: none; }
  .step-btn .step-num { font-size: 26px; margin: 0; width: 22px; }
}
@media (max-width: 720px) {
  .hero-title { font-size: clamp(34px, 10vw, 46px); }
  .compare-row { grid-template-columns: 1fr; padding: 22px 0; }
  .compare-row > div { padding: 0 !important; border: 0; }
  .compare-topic { padding-top: 0 !important; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
  .compare-general { margin-bottom: 6px; }
  .compare-mlabel { display: none; }
  .compare-cell { font-size: 17px; }
  .filter-bar { gap: 0 22px; }
  .chip { height: auto; padding: 10px 0 12px; }
  .service-btn, .service-row--featured .service-btn { padding: 24px 0; }
  .faq-a { padding: 0 0 22px 0; }
}

/* =====================================================================
 * 10) 밀도 조정 — 여백은 줄이고 글자는 키움
 * ===================================================================== */
:root { --container: 1200px; }
body { font-size: 17px; }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-head { margin-bottom: clamp(32px, 4vw, 48px); }
.section-title { font-size: clamp(32px, 4.2vw, 56px); }
.section-lead { font-size: clamp(17px, 1.4vw, 20px); margin-top: 16px; }
/* 설명 문장을 오른쪽 구석이 아니라 제목 바로 아래에 */
.services .section-head--row, .portfolio .section-head--row, .pricing .section-head--row { display: block; }
.services .section-head--row .section-lead { margin-top: 16px; }

/* Hero */
.hero { padding-top: calc(var(--header-h) + clamp(40px, 5vw, 72px)); }
.hero-grid { padding-bottom: clamp(40px, 4.5vw, 64px); }
.hero-sub { font-size: clamp(17px, 1.4vw, 20px); }
.hero-facts dt { font-size: 14px; }
.hero-facts dd { font-size: clamp(17px, 1.6vw, 22px); }
.showcase { padding-bottom: clamp(56px, 6vw, 80px); }
.rail-cap { font-size: 16px; }

/* 차별점 */
.beforeafter { margin-bottom: clamp(56px, 6vw, 80px); }
.sub-title { font-size: clamp(22px, 2vw, 28px); }
.ba-notes { font-size: 15px; }
.compare-row { grid-template-columns: 140px 1fr 1.1fr; }
.compare-row > div { padding-top: 22px; padding-bottom: 22px; }
.compare-topic { font-size: 15px; padding-top: 28px !important; }
.compare-row--head > div { font-size: 15px; }
.compare-cell { font-size: clamp(19px, 1.8vw, 24px); }
.anatomy { margin-top: clamp(56px, 6vw, 88px); }
.anatomy-item { padding: 20px 4px; }
.anatomy-item b { font-size: 18px; }
.anatomy-item p { font-size: 16px; }
.anatomy-item .n { font-size: 16px; }

/* 서비스: 세 칸 사이 간격을 줄이고 글자를 키움 */
.service-btn, .service-row--featured .service-btn { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 28px; gap: 40px; }
.service-btn { padding: 28px 0; }
.service-title { font-size: clamp(21px, 2vw, 27px); }
.service-row--featured .service-title { font-size: clamp(26px, 2.8vw, 36px); }
.service-short { font-size: 17px; color: var(--text); }
.service-row--featured .service-short { font-size: 18px; }
.service-tags .tag { font-size: 14px; }

/* 포트폴리오 */
.filter-bar { margin-bottom: 36px; }
.chip { font-size: 16px; }
.portfolio-grid { gap: 48px 28px; }
.p-card-body { padding-top: 18px; }
.p-card-cats { font-size: 14px; }
.p-card-title { font-size: clamp(20px, 1.9vw, 25px); }
.p-card-sum { font-size: 16px; }

/* 제작 과정 */
.step-title { font-size: clamp(17px, 1.6vw, 21px); }
.process-panel { margin-top: 32px; padding-top: 28px; }
.pp-lead h3 { font-size: 26px; }
.pp-lead p, .pp-col li { font-size: 16px; }
.pp-col h4 { font-size: 14px; }
.pp-out { font-size: 20px; }

/* 가격 */
.ptable th, .ptable td { font-size: 16px; padding: 16px 20px; }
.ptable tbody th { font-size: 15px; width: 150px; }
.ptable .num { font-size: 18px; }
.pkg-name { font-size: 15px; }
.pkg-title { font-size: 21px; }
.pkg-desc { font-size: 15px; }
.ptable .point td { font-size: 15px; }
.price-notice { font-size: 15px; margin-top: 16px; }

/* FAQ */
.faq-grid { gap: 48px; }
.faq-item summary { font-size: 19px; padding: 22px 4px; }
.faq-a { font-size: 17px; }

/* 문의 */
.contact-grid { gap: 48px; }
.contact-steps li { font-size: 16px; }
.field label, .field legend, .field .label { font-size: 15px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="date"], .field select, .field textarea { font-size: 16px; }

/* 상세 화면 */
.d-intro, .feature p, .s-body { font-size: 17px; }
.d-meta div { font-size: 15px; }
.s-col li { font-size: 17px; }
.g-cap { font-size: 15px; }

@media (max-width: 960px) {
  .service-btn, .service-row--featured .service-btn { grid-template-columns: 1fr 28px; gap: 10px 16px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-cell { font-size: 18px; }
  .service-short { font-size: 16px; }
  .faq-item summary { font-size: 17px; }
  .faq-a { font-size: 16px; }
}

/* ---------- 언어 전환 · 문의폼 보조 (2026-11-17 추가) ---------- */
/* 영어 화면은 한국어 자리표시가 고정 문구로 바뀔 때까지 숨깁니다 (js/i18n.js applyStatic) */
.i18n-pending body { visibility: hidden; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg);
  font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.lang-switch svg { font-size: 16px; }
.lang-switch:hover { color: var(--text); border-color: var(--ink); }
.header-inner .lang-switch { margin-left: -16px; }
/* 자동 제출 차단용 숨김 칸: 화면·보조기기 모두에서 빠지게 */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 960px) {
  .header-inner .lang-switch { margin-left: auto; }
  .header-inner .nav-toggle { margin-left: 0; }
}
