/* ================================================
   BridgeAI v2 — style.css
   Dark green design system
   ================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:             #071614;
  --panel:          #0C201D;
  --border:         #12463F;
  --muted:          #1B4A43;   /* surfaces/borders only — NOT for text */
  --text-dim:       #5F8B83;   /* lowest-priority text */
  --accent:         #0B6E63;
  --text:           #FFFFFF;
  --text-secondary: #9BBDB5;   /* bumped for WCAG AA on dark bg */

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-full: 999px;
}

[data-theme="light"] {
  --bg:             #F9FBFA;
  --panel:          #FFFFFF;
  --border:         #E3EBE9;
  --muted:          #CFDCD8;
  --text-dim:       #8A9E96;
  --accent:         #0B6E63;
  --text:           #12211E;
  --text-secondary: #47635C;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
section { padding: 112px 0; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 4px; }

h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 8px; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.015em; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  min-height: 48px;
  letter-spacing: -0.01em;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: 0.88; }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; min-height: 38px; border-radius: var(--radius-md); }

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  border-bottom: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.nav.scrolled {
  background: rgba(7,22,20,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
/* 라이트 테마여도 네비는 다크 히어로 위에 투명하게 얹힘 (풀블리드 유지),
   스크롤해서 히어로를 지나면 밝은 배경으로 전환 */
[data-theme="light"] .nav {
  background: transparent;
  border-bottom-color: transparent;
}
[data-theme="light"] .nav:not(.scrolled) .logo { color: #fff; }
/* 다크 히어로 위에서는 브랜드 딥틸(#0B6E63)이 배경에 묻힌다.
   흰색을 흐려서(opacity) 쓰면 로고가 비활성 글자처럼 읽히므로,
   어두운 배경용 밝은 틸을 쓴다. 이 색은 dg-stage-tag--free 와 동일 계열. */
[data-theme="light"] .nav:not(.scrolled) .logo .accent { color: #3FD9C2; }
[data-theme="light"] .nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.72); }
[data-theme="light"] .nav:not(.scrolled) .nav-links a:hover { color: #fff; }
[data-theme="light"] .nav:not(.scrolled) .mobile-menu-btn span { background: #fff; }
/* 모바일 메뉴가 열리면 패널 배경이 밝아진다 — 히어로용 흰 글자색을 되돌린다 */
[data-theme="light"] .nav:not(.scrolled) .nav-links.mobile-open a { color: var(--text); }
[data-theme="light"] .nav.scrolled {
  background: rgba(249,251,250,0.92);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { font-size: 1.2rem; font-weight: 900; letter-spacing: -0.02em; }
.accent { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--text-secondary); font-size: 0.88rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }

.mobile-menu-btn {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px;
  padding: 8px; min-height: 44px; min-width: 44px;
  align-items: center; justify-content: center;
}
.mobile-menu-btn span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Hero === */
.hero {
  padding-top: 180px;
  padding-bottom: 148px;
  /* 첫 화면을 꽉 채운다. svh = 모바일 주소창 높이를 뺀 실제 보이는 높이 */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #0A211D 0%, #071614 58%, #061412 100%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -100px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(11,110,99,0.05) 0%, transparent 65%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  z-index: 0;
  top: 96px;
  right: max(-72px, calc((100vw - 1320px) / 2 - 72px));
  width: min(46vw, 660px);
  height: 420px;
  background: radial-gradient(ellipse at 72% 34%, rgba(11,110,99,0.12) 0%, rgba(11,110,99,0.035) 42%, transparent 72%);
  pointer-events: none;
  /* ::before(선)의 clip-path 윗변이 직선이라, 박스를 CTA 밑으로 내리자
     그 각진 경계가 빈 배경 위에 그대로 드러났다. 위아래를 부드럽게 페이드시켜
     박스가 아니라 안개처럼 보이게 한다 */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 80%, transparent 100%);
}
.hero-glow::before,
.hero-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-glow::before {
  background:
    linear-gradient(28deg, transparent 0 23.8%, rgba(132,196,186,0.18) 24% 24.15%, transparent 24.35% 100%),
    linear-gradient(151deg, transparent 0 32.8%, rgba(132,196,186,0.15) 33% 33.15%, transparent 33.35% 100%),
    linear-gradient(17deg, transparent 0 46.8%, rgba(132,196,186,0.12) 47% 47.15%, transparent 47.35% 100%),
    linear-gradient(132deg, transparent 0 57.8%, rgba(132,196,186,0.14) 58% 58.15%, transparent 58.35% 100%),
    linear-gradient(38deg, transparent 0 68.8%, rgba(132,196,186,0.11) 69% 69.15%, transparent 69.35% 100%),
    linear-gradient(164deg, transparent 0 76.8%, rgba(132,196,186,0.13) 77% 77.15%, transparent 77.35% 100%);
  clip-path: polygon(12% 0, 100% 0, 100% 84%, 72% 100%, 25% 82%, 0 43%);
  -webkit-mask-image: linear-gradient(110deg, transparent 0%, #000 20%, #000 78%, transparent 100%);
  mask-image: linear-gradient(110deg, transparent 0%, #000 20%, #000 78%, transparent 100%);
}
.hero-glow::after {
  background:
    radial-gradient(circle at 18% 46%, rgba(154,217,207,0.58) 0 1.5px, transparent 2px),
    radial-gradient(circle at 31% 68%, rgba(154,217,207,0.42) 0 1.5px, transparent 2px),
    radial-gradient(circle at 39% 27%, rgba(154,217,207,0.52) 0 1.5px, transparent 2px),
    radial-gradient(circle at 52% 51%, rgba(154,217,207,0.68) 0 2px, transparent 2.5px),
    radial-gradient(circle at 64% 76%, rgba(154,217,207,0.46) 0 1.5px, transparent 2px),
    radial-gradient(circle at 72% 31%, rgba(154,217,207,0.72) 0 2px, transparent 2.5px),
    radial-gradient(circle at 84% 58%, rgba(154,217,207,0.48) 0 1.5px, transparent 2px),
    radial-gradient(circle at 92% 18%, transparent 0 4px, rgba(154,217,207,0.5) 4.5px 5.5px, transparent 6px),
    radial-gradient(circle at 58% 13%, transparent 0 3px, rgba(154,217,207,0.38) 3.5px 4.5px, transparent 5px);
}
[data-theme="light"] .hero-glow {
  background: radial-gradient(ellipse at 72% 34%, rgba(11,110,99,0.1) 0%, rgba(11,110,99,0.03) 42%, transparent 72%);
}
.hero-line {
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 100%;
  background: linear-gradient(to bottom, transparent 10%, var(--accent) 40%, var(--accent) 60%, transparent 90%);
  opacity: 0.3;
  pointer-events: none;
}
[data-theme="light"] .hero-line { opacity: 0.15; }

/* Light mode: hero is a full-width dark band that re-uses dark theme tokens */
[data-theme="light"] .hero {
  --bg:             #071614;
  --panel:          #0C201D;
  --border:         #12463F;
  --muted:          #1B4A43;
  --text-dim:       #5F8B83;
  --accent:         #0B6E63;
  --text:           #FFFFFF;
  --text-secondary: #9BBDB5;
  background: linear-gradient(165deg, #0A211D 0%, #071614 55%, #061412 100%);
  color: #fff;
}
[data-theme="light"] .hero .hero-title { color: #fff; }
[data-theme="light"] .hero .hero-sub { color: #9BBDB5; }
/* 딥틸 단일 — 강조는 색 대신 브랜드색 밑줄, 브랜드색은 버튼에만 */
.hero .hero-title em {
  color: #fff;
  box-shadow: inset 0 -0.2em 0 rgba(11,110,99,0.85);
}
.hero .btn-primary { background: #0B6E63; color: #fff; }
.hero .btn-primary:hover { background: #0E8578; opacity: 1; }
.hero .btn-ghost { color: #CDE5E0; border-color: rgba(255,255,255,0.22); }
.hero .btn-ghost:hover { border-color: #0B6E63; color: #fff; }
.hero .compare-green { color: #fff; }
/* 중앙 정렬 풀폭 히어로 (우측 영상 폐기) */
.hero-inner {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}
.hero-content {
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left;
}
.hero-video {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 48px rgba(11,110,99,0.1);
  aspect-ratio: 1/1;
  width: 100%;
}
.hero-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* 영상 내부 네온그린을 브랜드 딥틸 쪽으로 보정 */
  filter: hue-rotate(22deg) saturate(0.82);
}
/* Hero showcase — pure CSS chat animation (unused) */
.hero-showcase { width: 100%; perspective: 1200px; }
.hsc-card {
  background: linear-gradient(180deg, rgba(14,25,16,0.95), rgba(9,16,11,0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45), 0 0 60px rgba(11,110,99,0.08);
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex; flex-direction: column;
}
.hsc-card::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(11,110,99,0.4), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.hsc-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.hsc-avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #FEE500; color: #1a1a1a;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.hsc-title { flex: 1; }
.hsc-name { font-weight: 600; font-size: 14px; color: var(--text); }
.hsc-status { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.hsc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(11,110,99,0.6);
  animation: hsc-pulse 1.6s ease-out infinite;
}
@keyframes hsc-pulse {
  0% { box-shadow: 0 0 0 0 rgba(11,110,99,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(11,110,99,0); }
  100% { box-shadow: 0 0 0 0 rgba(11,110,99,0); }
}
.hsc-stream {
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.hsc-msg {
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0;
  animation: hsc-in 0.4s ease forwards;
}
.hsc-msg[data-step="1"] { animation-delay: 0.4s; }
.hsc-msg[data-step="2"] { animation-delay: 1.6s; }
.hsc-msg[data-step="3"] { animation-delay: 3.2s; }
.hsc-msg[data-step="4"] { animation-delay: 4.4s; }
.hsc-msg[data-step="5"] { animation-delay: 6s; }
.hsc-typing[data-step="6"] { animation-delay: 7s; }
@keyframes hsc-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hsc-msg.hsc-in { align-items: flex-start; }
.hsc-msg.hsc-out { align-items: flex-end; }
.hsc-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  word-break: keep-all;
}
.hsc-in .hsc-bubble {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-top-left-radius: 4px;
}
.hsc-out .hsc-bubble {
  background: linear-gradient(135deg, rgba(11,110,99,0.18), rgba(11,110,99,0.08));
  border: 1px solid rgba(11,110,99,0.25);
  color: var(--text);
  border-top-right-radius: 4px;
}
.hsc-tag {
  font-size: 10.5px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 4px;
  padding-right: 4px;
}
.hsc-tag::before {
  content: '✨';
  font-size: 10px;
}
.hsc-typing {
  display: inline-flex; gap: 4px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  border-top-left-radius: 4px;
  width: fit-content;
  opacity: 0;
  animation: hsc-in 0.3s ease forwards;
}
.hsc-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-secondary);
  animation: hsc-bounce 1.2s ease-in-out infinite;
}
.hsc-typing span:nth-child(2) { animation-delay: 0.15s; }
.hsc-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes hsc-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(11,110,99,0.06);
  border: 1px solid rgba(11,110,99,0.18);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
.hero .status-badge {
  color: #72D5C8;
  background: rgba(79,195,179,0.08);
  border-color: rgba(114,213,200,0.24);
}
.pulse {
  width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: ripple 2s infinite;
}
@keyframes ripple {
  0%   { box-shadow: 0 0 0 0 rgba(11,110,99,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(11,110,99,0); }
  100% { box-shadow: 0 0 0 0 rgba(11,110,99,0); }
}

.hero-title {
  max-width: 100%;
  margin-bottom: 38px;
  font-size: clamp(3.5rem, 6.4vw, 5.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
  word-break: keep-all;
}
.hero-title em { color: var(--accent); font-style: normal; }
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 920px;
  margin-bottom: 46px;
  line-height: 1.8;
  word-break: keep-all;
}
@media (min-width: 1100px) {
  .hero-sub { white-space: normal; }
}
.hero-cta { display: flex; width: 100%; gap: 12px; flex-wrap: wrap; margin-bottom: 0; justify-content: flex-start; }

.hero-compare {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: center;
  gap: 0;
  padding: 24px 36px;
  background: rgba(14,25,16,0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
}
.compare-item { padding: 0 20px; }
.compare-label { font-size: 0.82rem; color: var(--text-secondary); display: block; margin-bottom: 6px; }
.compare-value { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; display: block; }
.compare-red { color: #F87171; text-decoration: line-through; text-decoration-thickness: 2px; }
.compare-green { color: var(--accent); }
.compare-vs {
  font-size: 0.72rem; font-weight: 800; color: var(--text-dim);
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  height: 100%; display: flex; align-items: center; justify-content: center; padding: 0 12px;
}

/* === Client Logos (히어로 직하 신뢰 스트립) === */
/* 로고는 흰 배경 전제로 만들어진 파일(농관원 PNG는 배경이 흰색)이라
   테마와 무관하게 항상 흰 밴드로 고정한다 */
.clients {
  padding: 48px 0 32px;
  background: #FFFFFF;
}
.clients-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #8A9E96;
  margin-bottom: 30px;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
}
.client-logo {
  display: flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 6px;
}
.client-logo img {
  max-height: 34px; max-width: 100%; width: auto;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}
.client-logo img:hover { opacity: 1; }
@media (max-width: 760px) {
  .clients { padding: 40px 0 28px; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); gap: 20px 16px; }
  .client-logo { height: 38px; }
  .client-logo img { max-height: 26px; }
}

/* === Representative Outcomes (히어로 인접 결과 요약) === */
.outcomes {
  padding: 0 0 52px;
  background: #FFFFFF;
  border-bottom: 1px solid #E3EBE9;
}
.outcomes-title {
  margin-bottom: 18px;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.outcome-card {
  min-width: 0;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.outcome-card h3 {
  margin-bottom: 5px;
  font-size: 1rem;
}
.outcome-who {
  color: var(--text-dim);
  font-size: 0.76rem;
}
.outcome-time {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 14px;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.outcome-time s { color: var(--text-dim); }
.outcome-time span { color: var(--text-dim); }
.outcome-time strong { color: var(--accent); font-size: 1.08rem; }

@media (max-width: 760px) {
  .outcomes { padding-bottom: 44px; }
  .outcomes-title { margin-bottom: 16px; }
  .outcome-card { padding: 18px; }
}
@media (max-width: 680px) {
  .outcomes-grid { grid-template-columns: 1fr; gap: 10px; }
  .outcome-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 18px;
    padding: 16px 18px;
  }
  .outcome-card h3 { grid-column: 1; grid-row: 1; }
  .outcome-who { grid-column: 1; grid-row: 2; }
  .outcome-time {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin-top: 0;
  }
}
@media (max-width: 440px) {
  .outcome-card { grid-template-columns: 1fr; }
  .outcome-card h3, .outcome-who, .outcome-time { grid-column: 1; grid-row: auto; }
  .outcome-time { margin-top: 10px; }
}

/* === 통합 포트폴리오 (다크 밴드) === */
.work {
  /* 중립 검정. #08120F 은 초록이 섞여 있어서 글로우까지 얹으면 섹션이 틸로 읽혔다.
     카드 안쪽 목업·이미지 배경은 브랜드 틸을 그대로 둔다 — 검정 위에 틸이 얹히는 그림 */
  background: #050507; color: #fff;
  padding: 112px 0 96px;
  border-top: 1px solid #191B1E; border-bottom: 1px solid #191B1E;
  /* 아래 무늬 레이어의 기준. overflow: hidden 은 절대 넣지 말 것 —
     .pw-cat-inner 의 position: sticky 가 overflow 컨테이너 안에서 죽는다.
     무늬는 inset:0 이라 넘치지 않으므로 클리핑이 필요 없다 */
  position: relative;
}
/* 무늬 두 겹. 마크업은 건드리지 않고 의사요소로만 넣는다 */
.work::before,
.work::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* 1겹 — 딥틸 글로우.
   반지름을 px 로 주면 안 된다. 이 섹션은 3,600px 가까이 되는데 620px 원을 두세 개
   놓으면 중간에 1,000px 넘는 평평한 구간이 생겨서, 스크롤해서 보는 대부분의 자리엔
   아무것도 없게 된다(실측: 섹션 15~85% 구간이 무늬 적용 전과 픽셀 동일했다).
   그래서 % 반지름으로 주고 위아래로 고르게 흩는다. */
.work::before {
  background:
    /* 비네팅이 맨 위에 와야 가장자리를 깎는다. 이게 '깊이' 를 만드는 핵심 */
    radial-gradient(118% 56% at 50% 44%, transparent 32%, rgba(0,0,0,0.55) 100%),
    /* 성운 — 차가운 남색·보라. 초록은 쓰지 않는다(카드 안쪽 틸과 충돌) */
    radial-gradient(72% 34% at 12%  5%, rgba(122,152,218,0.090), transparent 100%),
    radial-gradient(64% 28% at 92% 29%, rgba(142,122,202,0.068), transparent 100%),
    radial-gradient(68% 30% at  5% 57%, rgba(110,142,208,0.062), transparent 100%),
    radial-gradient(64% 28% at 95% 81%, rgba(132,126,202,0.058), transparent 100%),
    /* 세로 기조 — 성운 사이가 비지 않게 받쳐준다 */
    linear-gradient(180deg,
      rgba(255,255,255,0.030)  0%,
      rgba(255,255,255,0.010) 15%,
      rgba(255,255,255,0.024) 32%,
      rgba(255,255,255,0.008) 48%,
      rgba(255,255,255,0.022) 64%,
      rgba(255,255,255,0.008) 80%,
      rgba(255,255,255,0.020) 100%);
}
/* 2겹 — 72px 도면 격자. 섹션 전체에 고르게 깔고, 위아래 경계만 부드럽게 끊는다.
   radial 마스크로 위에서 아래로 페이드시키면 아래쪽 절반이 통째로 사라진다. */
.work::after {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='517' height='517' viewBox='0 0 517 517'%3E%3Ccircle cx='453.1' cy='500.4' r='1.1' fill='%23fff' opacity='0.24'/%3E%3Ccircle cx='329.6' cy='80.4' r='1.1' fill='%23fff' opacity='0.6'/%3E%3Ccircle cx='248.4' cy='403.2' r='0.5' fill='%23fff' opacity='0.4'/%3E%3Ccircle cx='400.0' cy='23.2' r='0.7' fill='%23fff' opacity='0.32'/%3E%3Ccircle cx='58.3' cy='483.8' r='0.5' fill='%23fff' opacity='0.49'/%3E%3Ccircle cx='382.1' cy='53.6' r='0.7' fill='%23fff' opacity='0.37'/%3E%3Ccircle cx='8.7' cy='20.8' r='1.4' fill='%23fff' opacity='0.26'/%3E%3Ccircle cx='354.7' cy='115.5' r='1.4' fill='%23fff' opacity='0.71'/%3E%3Ccircle cx='224.2' cy='330.4' r='0.6' fill='%23fff' opacity='0.52'/%3E%3Ccircle cx='494.1' cy='475.2' r='0.9' fill='%23fff' opacity='0.55'/%3E%3Ccircle cx='501.9' cy='501.9' r='0.8' fill='%23fff' opacity='0.72'/%3E%3Ccircle cx='328.8' cy='415.5' r='0.5' fill='%23fff' opacity='0.25'/%3E%3Ccircle cx='394.4' cy='392.0' r='0.8' fill='%23fff' opacity='0.38'/%3E%3Ccircle cx='434.3' cy='298.1' r='0.6' fill='%23fff' opacity='0.47'/%3E%3Ccircle cx='257.1' cy='323.3' r='0.7' fill='%23fff' opacity='0.66'/%3E%3Ccircle cx='136.0' cy='56.2' r='0.7' fill='%23fff' opacity='0.49'/%3E%3Ccircle cx='204.7' cy='34.3' r='0.8' fill='%23fff' opacity='0.56'/%3E%3Ccircle cx='430.5' cy='296.0' r='0.8' fill='%23fff' opacity='0.73'/%3E%3Ccircle cx='435.2' cy='112.6' r='0.5' fill='%23fff' opacity='0.65'/%3E%3Ccircle cx='224.0' cy='359.5' r='0.6' fill='%23fff' opacity='0.44'/%3E%3Ccircle cx='108.8' cy='477.1' r='0.6' fill='%23fff' opacity='0.57'/%3E%3Ccircle cx='409.6' cy='10.3' r='1.1' fill='%23fff' opacity='0.48'/%3E%3Ccircle cx='191.0' cy='47.0' r='0.6' fill='%23fff' opacity='0.35'/%3E%3Ccircle cx='158.1' cy='370.5' r='0.8' fill='%23fff' opacity='0.49'/%3E%3Ccircle cx='276.0' cy='485.3' r='0.6' fill='%23fff' opacity='0.34'/%3E%3Ccircle cx='396.1' cy='118.8' r='0.5' fill='%23fff' opacity='0.4'/%3E%3Ccircle cx='315.2' cy='432.8' r='0.6' fill='%23fff' opacity='0.32'/%3E%3Ccircle cx='391.1' cy='209.7' r='1.1' fill='%23fff' opacity='0.55'/%3E%3Ccircle cx='91.9' cy='445.5' r='0.8' fill='%23fff' opacity='0.67'/%3E%3Ccircle cx='207.2' cy='462.9' r='0.7' fill='%23fff' opacity='0.21'/%3E%3Ccircle cx='450.7' cy='169.9' r='0.8' fill='%23fff' opacity='0.6'/%3E%3Ccircle cx='466.1' cy='106.4' r='0.7' fill='%23fff' opacity='0.46'/%3E%3Ccircle cx='3.4' cy='342.3' r='1.1' fill='%23fff' opacity='0.67'/%3E%3Ccircle cx='358.3' cy='3.8' r='0.7' fill='%23fff' opacity='0.68'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='743' height='743' viewBox='0 0 743 743'%3E%3Ccircle cx='374.8' cy='168.4' r='1.4' fill='%23fff' opacity='0.33'/%3E%3Ccircle cx='253.5' cy='636.6' r='1.4' fill='%23fff' opacity='0.58'/%3E%3Ccircle cx='258.1' cy='299.7' r='1.1' fill='%23fff' opacity='0.29'/%3E%3Ccircle cx='355.2' cy='680.1' r='0.7' fill='%23fff' opacity='0.42'/%3E%3Ccircle cx='136.8' cy='447.7' r='0.5' fill='%23fff' opacity='0.43'/%3E%3Ccircle cx='405.7' cy='74.2' r='0.9' fill='%23fff' opacity='0.51'/%3E%3Ccircle cx='590.9' cy='123.3' r='1.1' fill='%23fff' opacity='0.72'/%3E%3Ccircle cx='606.5' cy='175.2' r='0.5' fill='%23fff' opacity='0.48'/%3E%3Ccircle cx='653.8' cy='603.4' r='0.6' fill='%23fff' opacity='0.7'/%3E%3Ccircle cx='452.0' cy='167.9' r='0.8' fill='%23fff' opacity='0.23'/%3E%3Ccircle cx='277.4' cy='55.7' r='0.7' fill='%23fff' opacity='0.64'/%3E%3Ccircle cx='86.6' cy='307.2' r='1.4' fill='%23fff' opacity='0.66'/%3E%3Ccircle cx='365.6' cy='104.1' r='0.8' fill='%23fff' opacity='0.61'/%3E%3Ccircle cx='280.9' cy='482.3' r='0.6' fill='%23fff' opacity='0.25'/%3E%3Ccircle cx='516.1' cy='672.9' r='0.6' fill='%23fff' opacity='0.27'/%3E%3Ccircle cx='220.8' cy='120.1' r='1.1' fill='%23fff' opacity='0.64'/%3E%3Ccircle cx='105.2' cy='173.6' r='0.5' fill='%23fff' opacity='0.65'/%3E%3Ccircle cx='523.4' cy='708.4' r='1.4' fill='%23fff' opacity='0.46'/%3E%3Ccircle cx='691.4' cy='351.0' r='0.7' fill='%23fff' opacity='0.38'/%3E%3Ccircle cx='263.9' cy='145.1' r='1.1' fill='%23fff' opacity='0.19'/%3E%3Ccircle cx='500.1' cy='702.8' r='0.9' fill='%23fff' opacity='0.19'/%3E%3Ccircle cx='451.5' cy='454.5' r='0.8' fill='%23fff' opacity='0.66'/%3E%3Ccircle cx='371.8' cy='385.6' r='1.1' fill='%23fff' opacity='0.52'/%3E%3Ccircle cx='132.4' cy='421.6' r='0.6' fill='%23fff' opacity='0.54'/%3E%3Ccircle cx='54.9' cy='43.7' r='0.8' fill='%23fff' opacity='0.56'/%3E%3Ccircle cx='612.5' cy='644.7' r='0.5' fill='%23fff' opacity='0.45'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg,  rgba(255,255,255,0.020) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.020) 0 1px, transparent 1px 72px);
  /* 타일 크기를 서로 나눠지지 않게(517 / 743) 잡아 반복 주기를 길게 만든다 */
  background-size: 517px 517px, 743px 743px, auto, auto;
  /* 격자는 별에 자리를 내주고 알파를 0.032 -> 0.020 으로 낮췄다 */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 110px, #000 calc(100% - 140px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 110px, #000 calc(100% - 140px), transparent 100%);
}
/* 콘텐츠를 무늬 위로 */
.work > .container { position: relative; z-index: 1; }
.work-top { margin-bottom: 40px; }
.work-top h2 { color: #fff; }
.work-sub { margin-top: 14px; font-size: 1.05rem; color: rgba(255,255,255,0.55); max-width: 660px; word-break: keep-all; }

.work-cat {
  display: grid; grid-template-columns: 250px 1fr; gap: 56px;
  align-items: start; padding: 56px 0; border-top: 1px solid #14231F;
}
.work-cat-head { position: sticky; top: 96px; }
.work-num {
  display: block; margin-bottom: 14px;
  font-family: Georgia, 'Times New Roman', serif; font-size: 30px;
  color: rgba(255,255,255,0.38);
}
.work-cat-head h3 { font-size: 1.45rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.work-cat-head p { margin-top: 10px; font-size: 0.93rem; color: rgba(255,255,255,0.46); line-height: 1.7; word-break: keep-all; }

/* === 포트폴리오 그리드 ===
   이전 지그재그 대형 카드는 한 화면에 한두 개밖에 안 들어와 스크롤이 너무 길었다.
   카드 구조를 하나로 통일하고 3열 그리드로 접는다. */
.pf-cat {
  padding: 56px 0;
  border-top: 1px solid #14231F;
}
.pf-cat-head { margin-bottom: 28px; }
.pf-num {
  display: block; margin-bottom: 10px;
  font-family: Georgia, 'Times New Roman', serif; font-size: 26px;
  color: rgba(255,255,255,0.38);
}
.pf-cat-head h3 { font-size: 1.45rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.pf-cat-head p { margin-top: 8px; font-size: 0.93rem; color: rgba(255,255,255,0.46); line-height: 1.7; word-break: keep-all; }

/* 3열 그리드는 카드가 작아 양식이 헐거웠다. 세로 스크롤 배치로 돌아가되
   한 항목을 좌우 2단으로 눕혀 높이를 줄인다. 한 화면에 두세 개가 들어온다. */
.pf-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.pf {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 30px;
  align-items: center;
  background: #0D1A17;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-xl);
  padding: 20px 30px 20px 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
/* 지그재그. 홀수는 비주얼이 왼쪽, 짝수는 오른쪽. 여백도 같이 뒤집는다 */
.pf:nth-child(even) .pf-vis { order: 2; }
.pf:nth-child(even) { padding: 20px 20px 20px 30px; }
a.pf:hover {
  transform: translateY(-3px);
  border-color: rgba(11,110,99,0.5);
}

/* 비주얼 영역은 종류와 무관하게 같은 비율·같은 뱃지 위치를 쓴다.
   이게 "어떤 건 썸네일, 어떤 건 지표"로 보이던 문제의 해결점이다. */
.pf-vis {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background: #08120F;
}

/* 글래스 목업을 그리드 카드 안에 넣는다.
   원래 대형 세로 카드용이라 그대로 두면 넘치므로 스코프 안에서 축소 재정의한다. */
/* 목업 길이가 카드마다 달라 상단 고정하면 아래가 휑하다. 세로 가운데로 맞춘다.
   뱃지가 앉는 하단은 살짝 비워 둔다. */
.pf-vis--glass .wk-glass {
  top: 50%;
  left: 12px; right: 12px;
  transform: translateY(calc(-50% - 16px));
  padding: 10px 11px 12px;
  border-radius: 8px;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.5);
}
.pf-vis--glass .gl-head { margin-bottom: 9px; padding-bottom: 7px; }
.pf-vis--glass .gl-head b { font-size: 0.6rem; }
.pf-vis--glass .gl-head i { font-size: 0.5rem; padding: 2px 6px; }
.pf-vis--glass .gl-search { font-size: 0.55rem; padding: 6px 8px; margin-bottom: 8px; }
.pf-vis--glass .gl-search u { font-size: 0.5rem; padding: 2px 7px; }
.pf-vis--glass .gl-row { font-size: 0.55rem; padding: 5px 0; }
.pf-vis--glass .gl-row em { font-size: 0.48rem; padding: 1px 6px; }
.pf-vis--glass .gl-pipe { gap: 5px; margin-bottom: 8px; }
.pf-vis--glass .gl-pipe u { font-size: 0.5rem; padding: 3px 8px; }
.pf-vis--glass .gl-pipe s { font-size: 0.5rem; }
.pf-vis--glass .gl-tiles { gap: 5px; margin-bottom: 9px; }
.pf-vis--glass .gl-tiles span { font-size: 0.5rem; padding: 5px 4px; }
.pf-vis--glass .gl-chart { height: 30px; gap: 4px; }
.pf-vis--img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}
a.pf:hover .pf-vis--img img { transform: scale(1.04); }

/* 로고·지표형은 밝은 판을 쓴다. 농관원 PNG가 흰 배경이라 어두운 판에서는 깨진다 */
.pf-vis--logo,
.pf-vis--stat {
  background: #F4F7F6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pf-logo {
  max-width: 62%;
  max-height: 46%;
  object-fit: contain;
}
.pf-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.pf-stat s { font-size: 1rem; color: #8A9E96; text-decoration-thickness: 1px; }
.pf-stat i { font-style: normal; font-size: 1rem; color: #8A9E96; }
.pf-stat b { font-size: 1.7rem; color: var(--accent); }

/* 뱃지는 종류와 상관없이 항상 좌하단 같은 자리, 같은 모양.
   상단은 글래스 목업이 차지하므로 아래로 내렸다. z-index로 목업 위에 올린다. */
.pf-badge {
  position: absolute;
  bottom: 12px; left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 6px 11px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.94);
  color: #12211E;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.pf-badge s { color: #7C8F89; text-decoration-thickness: 1px; }
.pf-badge i { font-style: normal; color: #7C8F89; }
.pf-badge b { font-weight: 800; color: var(--accent); }

/* 카드를 낮게 잡아 한 화면에 더 많이 들어오게 한다.
   설명은 두 줄에서 끊고, 자세한 건 클릭이나 문의로 넘긴다. */
.pf-body {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.pf-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.42);
  margin-bottom: 8px;
}
.pf-body h4 {
  font-size: 1.24rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.pf-body p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  word-break: keep-all;
  max-width: 460px;
}
.pf-link {
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4FC3B3;
}

@media (max-width: 860px) {
  .pf { grid-template-columns: 1fr; gap: 16px; }
  .pf:nth-child(even) .pf-vis { order: 0; }
  .pf-body h4 { font-size: 1.08rem; }
}
a.pf:hover .pf-link { color: #17A093; }

@media (max-width: 1000px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pf-grid { grid-template-columns: 1fr; gap: 16px; }
  .pf-cat { padding: 40px 0; }
}

/* === 포트폴리오 (treesoop 실측 구조 · 2026-07-28 재작업) ===
   treesoop.com 라이브 DOM을 직접 받아 확인한 결과:
   - 섹션 전체는 카테고리 블록의 세로 스택 (flex-col, gap 61px)
   - 각 블록 = 좌 380px 텍스트 + 우 2열 카드, 좌측은 pt-160px로 내려 비대칭
   - 카드는 세로형 aspect-[320/396], 하단 그라디언트 스크림 + 텍스트 오버레이
   - 2열 중 오른쪽만 mt-90px → 계단식 어긋남
   ref_treesoop.md의 "16:9 / 오버레이 아님" 기술은 오류였다(해당 문서에서 정정함).
   다만 트리숲은 카테고리당 카드가 정확히 2장이라 한 행으로 끝난다. BridgeAI는
   6/4/3장이라 계단을 행이 아니라 '열'에 걸어 다중 행에서도 리듬을 유지한다. */
.pw-cat {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 46px;
  /* .container 의 좌우 28px 패딩을 덮어쓰지 않도록 세로만 지정한다.
     shorthand 로 쓰면 카테고리 블록만 섹션 제목보다 바깥으로 삐져나온다 */
  padding-top: 62px;
  padding-bottom: 62px;
  border-top: 1px solid #1A1C1C;
}
/* 사이드바는 카드 열이 길어도 따라오게. 트리숲은 1행뿐이라 고정이어도 됐지만
   여기는 카드가 6장까지 가서 고정하면 왼쪽이 통째로 비어 보인다 */
.pw-cat-inner { position: sticky; top: 104px; }
.pw-num {
  display: block; margin-bottom: 14px;
  font-family: Georgia, 'Times New Roman', serif; font-size: 30px;
  color: rgba(255,255,255,0.34);
}
.pw-cat-head h3 { font-size: 1.62rem; font-weight: 700; color: #fff; letter-spacing: -0.025em; line-height: 1.3; }
.pw-rule { height: 1px; background: rgba(255,255,255,0.11); margin: 17px 0; }
.pw-cat-head p { font-size: 0.93rem; color: rgba(255,255,255,0.5); line-height: 1.75; word-break: keep-all; }

.pw-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 26px;
}
/* 오른쪽 열만 내려 계단 리듬. 행 높이가 같아 두 열 모두 간격 74px로 균일해진다 */
.pw-grid > :nth-child(2n) { margin-top: 52px; }

.pw {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #0A0B0B;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1), border-color 0.3s ease, box-shadow 0.3s ease;
}
a.pw:hover {
  transform: translateY(-5px);
  border-color: rgba(11,110,99,0.6);
  box-shadow: 0 34px 64px -28px rgba(0,0,0,0.85);
}

/* 이미지 카드도 목업 카드와 같은 언어로 통일한다.
   가로 UI 캡처를 세로 프레임에 cover로 넣으면 좌우가 잘려 화면이 안 읽힌다
   (SapperAI 제목이 "이전트 공격을"로 잘려 나갔었다). 트리숲이 cover를 쓸 수 있는
   건 소재가 3D 렌더·인물이라 어디를 잘라도 살아있기 때문. 우리 소재는 전부
   가로 UI 캡처라 원본 비율 그대로 띄우고, 남는 자리는 딥틸 배경이 받는다. */
.pw-vis {
  position: relative;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(155deg, #0E4A44 0%, #0A2D29 52%, #07201D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pw-vis img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}
a.pw:hover .pw-vis img { transform: scale(1.03); }

/* 목업·지표형은 같은 16:9 틀 안에서 가운데. 배경 그라디언트는 wk-g* 가 덮어쓴다 */
.pw-vis--glass,
.pw-vis--figure {
  padding: 0 20px;
}
.pw-vis--glass .wk-glass {
  position: static;
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
}
.pw-vis--glass .gl-head { margin-bottom: 8px; padding-bottom: 7px; }
.pw-vis--glass .gl-head b { font-size: 0.72rem; }
.pw-vis--glass .gl-head i { font-size: 0.6rem; padding: 2px 7px; }
.pw-vis--glass .gl-search { font-size: 0.66rem; padding: 6px 9px; margin-bottom: 7px; }
.pw-vis--glass .gl-search u { font-size: 0.6rem; padding: 2px 8px; }
.pw-vis--glass .gl-row { font-size: 0.66rem; padding: 5px 0; }
.pw-vis--glass .gl-row em { font-size: 0.58rem; padding: 1px 7px; }
.pw-vis--glass .gl-pipe { gap: 6px; margin-bottom: 7px; }
.pw-vis--glass .gl-pipe u { font-size: 0.6rem; padding: 3px 9px; }
.pw-vis--glass .gl-tiles { gap: 6px; margin-bottom: 8px; }
.pw-vis--glass .gl-tiles span { font-size: 0.6rem; padding: 6px 4px; }
.pw-vis--glass .gl-chart { height: 40px; gap: 6px; }

.pw-fig { display: flex; align-items: baseline; gap: 12px; }
.pw-fig s { font-size: 1rem; color: rgba(255,255,255,0.4); text-decoration-thickness: 1px; }
.pw-fig i { font-style: normal; font-size: 1rem; color: rgba(255,255,255,0.4); }
.pw-fig b { font-size: 2.1rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; }

/* 텍스트는 이미지 아래로 분리. 트리숲은 오버레이지만 우리 소재(가로 UI 캡처)로는
   세로 프레임이 성립하지 않아 분리형으로 간다 — 대신 세로 스택·사이드바 비대칭·
   계단 어긋남은 그대로 가져간다 (2026-07-28 대표 확정: C안) */
.pw-body {
  position: static;
  padding: 18px 20px 17px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.pw-tag {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 7px;
}
.pw-body h4 {
  font-size: 1.14rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.35;
  margin-bottom: 7px;
}
.pw-body p {
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  word-break: keep-all;
}
.pw-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.pw-metric { font-size: 0.82rem; font-weight: 700; color: #fff; }
.pw-metric s { color: rgba(255,255,255,0.55); text-decoration-thickness: 1px; }
.pw-metric i { font-style: normal; color: rgba(255,255,255,0.55); margin: 0 4px; }
.pw-metric b { color: #3FD9C2; }
/* 액센트는 지표와 링크에만. 나머지는 흰색·회색으로 묶는다 */
.pw-link { font-size: 0.8rem; font-weight: 600; color: #4FC3B3; white-space: nowrap; }

@media (max-width: 940px) {
  .pw-cat { grid-template-columns: 1fr; gap: 26px; padding-top: 46px; padding-bottom: 46px; }
  .pw-cat-inner { position: static; }
  .pw-grid > :nth-child(2n) { margin-top: 0; }
  .pw-grid { gap: 20px; }
}
@media (max-width: 620px) {
  .pw-grid { grid-template-columns: 1fr; }
}

.work-items { display: flex; flex-direction: column; gap: 40px; }
.wk { display: block; }
.wk-off-r { margin-right: 36px; }
.wk-off-l { margin-left: 48px; }

.wk-visual {
  position: relative; overflow: hidden;
  border-radius: 20px; aspect-ratio: 16 / 10;
  box-shadow: 0 30px 70px -28px rgba(0,0,0,0.7);
  transition: transform 0.28s cubic-bezier(.2,.7,.3,1), box-shadow 0.28s ease;
}
.wk:hover .wk-visual { transform: translateY(-6px); box-shadow: 0 44px 90px -30px rgba(0,0,0,0.85); }
.wk-shot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; transition: transform 0.5s ease;
}
.wk:hover .wk-shot img { transform: scale(1.03); }

/* 실제 화면을 그라데이션 위에 패널로 띄우고, 텍스트는 아래 (v3 포트폴리오 구성) */
.wk-panel > img {
  position: absolute; top: 28px; left: 32px; right: 32px;
  width: calc(100% - 64px); height: 56%;
  object-fit: cover; object-position: top center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 26px 54px -20px rgba(0,0,0,0.78);
  transition: transform 0.4s ease;
}
.wk:hover .wk-panel > img { transform: translateY(-4px); }

.wk-scrim {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 30px 32px 28px;
  background: linear-gradient(to top, rgba(4,10,9,0.94) 0%, rgba(4,10,9,0.74) 34%, rgba(4,10,9,0.26) 58%, transparent 78%);
}
.wk-tag {
  display: inline-block; margin-bottom: 10px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.58);
}
/* 이미지 카드용 수치 배지 (스크림 안에서 Before→After 표시) */
.wk-badge {
  display: inline-flex; align-items: baseline; gap: 8px;
  align-self: flex-start;
  margin-bottom: 12px; padding: 6px 13px; border-radius: 999px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 0.82rem; font-weight: 700; color: #fff;
}
.wk-badge s { color: rgba(255,255,255,0.55); text-decoration: line-through; }
.wk-badge i { font-style: normal; color: rgba(255,255,255,0.45); }
.wk h4 { font-size: 1.35rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.wk p { margin-top: 7px; font-size: 0.92rem; color: rgba(255,255,255,0.7); max-width: 480px; line-height: 1.6; word-break: keep-all; }

/* === 카드 치수 축소 ===
   레이아웃과 오버레이 구성은 그대로 두고 크기만 줄인다.
   원래는 카드 하나가 500px 가까이 돼 한 화면에 하나밖에 안 들어왔다. */
/* === 카드 축소 ===
   원래 카드는 폭 814px에 높이 509px이라 한 화면에 하나밖에 안 들어왔다.
   오버레이 구조라 카드만 줄이면 목업과 텍스트가 겹치므로,
   안쪽 요소(글래스·패널·타이포)를 같은 비율로 함께 줄인다. */
.work-items { gap: 26px; }
/* width:100%가 없으면 아래 margin-left:auto가 flex의 stretch를 꺼버려
   오른쪽 카드만 콘텐츠 폭으로 쪼그라든다 */
.wk { width: 100%; max-width: 430px; }
.wk-off-r { margin-right: 0; }
.wk-off-l { margin-left: auto; margin-right: 0; }
/* 작은 카드에서 16:10은 잘린 배너처럼 납작해 보인다. 4:3으로 세워
   목업이 앉을 자리와 텍스트가 앉을 자리를 확실히 나눈다. */
.wk-visual {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  box-shadow: 0 22px 48px -22px rgba(0,0,0,0.75);
}
.wk:hover .wk-visual { transform: translateY(-5px); box-shadow: 0 32px 62px -24px rgba(0,0,0,0.85); }

/* 스크림을 아래쪽으로 몰아 목업이 가려지지 않게 한다 */
.wk-scrim {
  padding: 16px 18px 16px;
  background: linear-gradient(to top, rgba(4,10,9,0.96) 0%, rgba(4,10,9,0.88) 26%, rgba(4,10,9,0.42) 42%, transparent 56%);
}
.wk h4 { font-size: 0.98rem; }
.wk p {
  margin-top: 5px;
  font-size: 0.76rem;
  line-height: 1.55;
  max-width: 330px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wk-tag { margin-bottom: 6px; font-size: 0.62rem; }
.wk-badge { margin-bottom: 7px; padding: 3px 9px; font-size: 0.66rem; gap: 5px; }
.wk-link { margin-top: 8px; font-size: 0.68rem; }
.wk-mark { margin-bottom: 6px; }
.wk-mark .mono { font-size: 0.62rem; }
.wk-mark .pill { font-size: 0.6rem; padding: 2px 7px; }
.wk-mark img { height: 15px; }
.wk-bigmark { max-width: 42%; }
.wk-figure { gap: 8px; }
.wk-before { font-size: 0.82rem; }
.wk-arrow { font-size: 0.8rem; }
.wk-after { font-size: 1.5rem; }

/* 4:3으로 세우면서 생긴 세로 여유를 목업에 준다.
   위 60%는 목업 자리, 아래 40%는 텍스트 자리로 확실히 나눈다. */
/* 퍼센트로 잡으면 카드 높이가 바뀔 때마다 목업이 제목을 덮는다.
   텍스트가 앉을 자리(118px)를 먼저 빼두고 남는 만큼 목업이 쓰게 한다. */
.wk-panel > img {
  top: 14px; left: 15px; right: 15px;
  width: calc(100% - 30px);
  height: calc(100% - 132px);
  border-radius: 9px;
}
.wk-glass {
  top: 14px; left: 15px; right: 15px;
  padding: 11px 12px;
  border-radius: 9px;
}
/* 잘라내면 마지막 줄이 반만 남아 로고와 겹친다. 줄 수를 줄여 통째로 들어가게 한다 */
.wk-glass .gl-row:last-of-type { display: none; }

/* 축소값이 원본 규칙에 밀려 적용되지 않아 선택자를 한 단계 더 붙여 우선순위를 올린다.
   글래스 전체 높이가 목업 자리(카드 높이 - 132px)를 넘으면 로고와 겹친다. */
.wk .wk-glass { padding: 9px 10px; }
.wk .wk-glass .gl-head { margin-bottom: 6px; padding-bottom: 5px; }
.wk .wk-glass .gl-head b { font-size: 0.58rem; }
.wk .wk-glass .gl-head i { font-size: 0.48rem; padding: 1px 5px; }
.wk .wk-glass .gl-search { font-size: 0.52rem; padding: 4px 6px; margin-bottom: 5px; }
.wk .wk-glass .gl-search u { font-size: 0.47rem; padding: 1px 6px; }
.wk .wk-glass .gl-row { font-size: 0.52rem; padding: 3px 0; }
.wk .wk-glass .gl-row em { font-size: 0.45rem; padding: 1px 5px; }
.wk .wk-glass .gl-pipe { gap: 4px; margin-bottom: 5px; }
.wk .wk-glass .gl-pipe u { font-size: 0.47rem; padding: 2px 6px; }
.wk .wk-glass .gl-pipe s { font-size: 0.47rem; }
.wk .wk-glass .gl-tiles { gap: 4px; margin-bottom: 6px; }
.wk .wk-glass .gl-tiles span { font-size: 0.47rem; padding: 3px 2px; }
.wk .wk-glass .gl-chart { height: 22px; gap: 3px; }
/* 숫자형 카드도 카드 한가운데가 아니라 목업 자리 안에서 가운데로 */
.wk-metric .wk-figure {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: calc(100% - 118px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gl-head { margin-bottom: 7px; padding-bottom: 6px; }
.gl-head b { font-size: 0.6rem; }
.gl-head i { font-size: 0.5rem; padding: 1px 6px; }
.gl-search { font-size: 0.55rem; padding: 5px 7px; margin-bottom: 6px; }
.gl-search u { font-size: 0.5rem; padding: 1px 7px; }
.gl-row { font-size: 0.55rem; padding: 4px 0; }
.gl-row em { font-size: 0.48rem; padding: 1px 6px; }
.gl-pipe { gap: 5px; margin-bottom: 6px; }
.gl-pipe u { font-size: 0.5rem; padding: 2px 8px; }
.gl-pipe s { font-size: 0.5rem; }
.gl-tiles { gap: 5px; margin-bottom: 7px; }
.gl-tiles span { font-size: 0.5rem; padding: 4px 3px; }
.gl-chart { height: 26px; gap: 4px; }

@media (max-width: 900px) {
  .wk { max-width: 100%; }
  .wk-off-l { margin-left: 0; }
}
.wk-link { display: inline-block; margin-top: 14px; font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.92); }
.wk:hover .wk-link { color: #fff; }

/* 수치형 카드: Before → After 를 비주얼로 */
.wk-metric { display: flex; align-items: center; justify-content: center; }
.wk-figure { display: flex; align-items: baseline; gap: 18px; margin-bottom: 64px; }
.wk-before { font-size: 1.5rem; font-weight: 700; color: rgba(255,255,255,0.4); text-decoration: line-through; text-decoration-thickness: 2px; }
.wk-arrow { font-size: 1.3rem; color: rgba(255,255,255,0.32); }
.wk-after { font-size: 2.7rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1; }

/* 글래스 UI 목업 (스크린샷 없는 엔터프라이즈 사례용) */
.wk-glass {
  position: absolute; top: 28px; left: 32px; right: 32px; z-index: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px; padding: 16px 18px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.5);
}
.gl-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.gl-head b { font-size: 0.82rem; font-weight: 700; color: #fff; }
.gl-head i {
  font-style: normal; font-size: 0.68rem; font-weight: 700; color: #fff;
  background: rgba(11,110,99,0.75); padding: 3px 9px; border-radius: 999px;
}
.gl-search {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px; padding: 9px 12px; margin-bottom: 12px;
  font-size: 0.75rem; color: rgba(255,255,255,0.5);
}
.gl-search u {
  text-decoration: none; font-size: 0.68rem; font-weight: 700;
  color: #fff; background: #0B6E63; padding: 3px 10px; border-radius: 5px;
}
.gl-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; font-size: 0.78rem; color: rgba(255,255,255,0.78);
}
.gl-row + .gl-row { border-top: 1px solid rgba(255,255,255,0.07); }
.gl-row em { font-style: normal; font-size: 0.68rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.gl-row em.ok { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.14); }
.gl-row em.run { color: #fff; background: rgba(11,110,99,0.8); }
.gl-pipe { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.gl-pipe u {
  flex: 1; text-decoration: none; text-align: center; padding: 7px 4px;
  border-radius: 6px; font-size: 0.68rem; font-weight: 700;
}
.gl-pipe u.done { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.13); }
.gl-pipe u.run { color: #fff; background: rgba(11,110,99,0.8); }
.gl-pipe s { color: rgba(255,255,255,0.3); text-decoration: none; }
.gl-tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 14px; }
.gl-tiles span {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px; padding: 12px 8px; font-size: 0.74rem; font-weight: 600;
  color: rgba(255,255,255,0.82); text-align: center;
}
.gl-chart { display: flex; align-items: flex-end; gap: 7px; height: 58px; }
.gl-chart i { flex: 1; background: linear-gradient(to top, #0B6E63, #16988A); border-radius: 4px 4px 0 0; opacity: 0.92; }

/* 스크림 안의 고객사 마크 */
.wk-mark { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px; align-self: flex-start; }
.wk-mark img { height: 19px; width: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.92; }
.wk-mark .mono { font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.6); letter-spacing: 0.02em; }
.wk-mark .pill {
  font-size: 0.68rem; font-weight: 700; color: #fff;
  background: rgba(11,110,99,0.8); padding: 3px 10px; border-radius: 999px;
}

/* 로고 씬 (스크린샷·목업 둘 다 없는 케이스) */
.wk-logo-visual { display: flex; align-items: center; justify-content: center; }
.wk-bigmark {
  max-height: 56px; max-width: 42%; width: auto; object-fit: contain;
  filter: brightness(0) invert(1); opacity: 0.88;
  margin-bottom: 46px;
}

/* 그라데이션 씬 (딥틸 단일 계열) */
.wk-g1 { background: linear-gradient(145deg, #0E4A44 0%, #0B2C29 55%, #08201D 100%); }
.wk-g2 { background: linear-gradient(145deg, #0C3F3A 0%, #092B27 55%, #071D1B 100%); }
.wk-g3 { background: linear-gradient(150deg, #10534A 0%, #0A302B 58%, #071F1C 100%); }
.wk-g4 { background: linear-gradient(150deg, #0B3833 0%, #082622 58%, #061A18 100%); }
.wk-g5 { background: linear-gradient(145deg, #124F45 0%, #0B322C 55%, #08211E 100%); }
.wk-g6 { background: linear-gradient(150deg, #0D443D 0%, #092B26 58%, #061C19 100%); }

@media (max-width: 980px) {
  .work-cat { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .work-cat-head { position: static; }
  .work-items { gap: 32px; }
  .wk-off-r, .wk-off-l { margin-left: 0; margin-right: 0; }
  .wk-after { font-size: 2rem; }
  .wk-before { font-size: 1.2rem; }
  .wk-scrim { padding: 22px 22px 20px; }
  .wk h4 { font-size: 1.15rem; }
}

/* === Section Header === */
.section-header { margin-bottom: 40px; }
.section-sub { color: var(--text-secondary); font-size: 1rem; margin-top: 6px; }

/* === Pain === */
.pain { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
[data-theme="light"] .pain { background: #F2F4F3; }
[data-theme="light"] .pain-card { background: #F2F4F3; }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pain-card {
  background: var(--panel);
  padding: 30px 26px;
  transition: background 0.2s;
}
.pain-card:hover { background: var(--bg); }
[data-theme="light"] .pain-card:hover { background: #EAEEED; }
.pain-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: rgba(11,110,99,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--accent);
}
.pain-card h3 { font-size: 1rem; margin-bottom: 8px; }
.pain-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* === Statement === */
.statement { padding: 56px 0; text-align: center; }
.statement-box p {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
  word-break: keep-all;
}
.statement-box em { color: var(--accent); font-style: normal; }

/* === Product Overview === */
.products {
  padding: 0 0 96px;
  background: var(--panel);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.product-card {
  min-width: 0;
  min-height: 172px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.service-label {
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.product-card h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}
.product-card > p:last-child {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.72;
  word-break: keep-all;
}
@media (max-width: 680px) {
  .products { padding-bottom: 72px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 154px; padding: 26px; }
}

/* === Cases === */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.case-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column;
  transition: border-color 0.2s;
}
.case-card:hover { border-color: var(--accent); }

.case-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  color: var(--accent);
  background: rgba(11,110,99,0.08);
  padding: 4px 10px; border-radius: var(--radius-sm);
  margin-bottom: 14px; width: fit-content;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.case-metric {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em;
}
.metric-before { color: var(--text-secondary); text-decoration: line-through; text-decoration-color: #dc2626; }
.metric-arrow { color: var(--accent); }
.metric-after { color: var(--accent); font-size: 1.3rem; font-weight: 900; }
.case-card h3 { margin-bottom: 8px; }
.case-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; flex: 1; }
.case-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.case-industry { font-size: 0.78rem; color: var(--text-dim); font-weight: 500; }
.case-link { font-size: 0.82rem; font-weight: 600; color: var(--accent); transition: opacity 0.15s; }
.case-link:hover { opacity: 0.7; }

/* === Portfolio === */
.portfolio { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
[data-theme="light"] .portfolio { background: #F2F4F3; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.portfolio-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  transition: border-color 0.2s;
}
[data-theme="light"] .portfolio-card { background: var(--panel); }
.portfolio-card:hover { border-color: var(--accent); }
.portfolio-img { width: 100%; height: 200px; overflow: hidden; background: var(--panel); position: relative; }
.portfolio-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portfolio-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(9,16,11,0.25) 100%);
  pointer-events: none;
}
.portfolio-body { padding: 20px; }
.portfolio-tag { font-size: 11px; font-weight: 700; color: var(--accent); display: block; margin-bottom: 6px; letter-spacing: 0.04em; text-transform: uppercase; }
.portfolio-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.portfolio-body p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* === Process === */
/* 컨설팅 소개 바로 뒤에 붙어 있어 배경이 같으면 두 섹션이 하나로 뭉쳐 보인다 */
.process { padding: 96px 0; }
[data-theme="light"] .process {
  background: #F2F4F3;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process-steps { display: flex; align-items: flex-start; }
.step { flex: 1; padding: 0 16px; }
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step-num { font-size: 0.78rem; font-weight: 800; color: var(--accent); margin-bottom: 12px; display: block; letter-spacing: 0.08em; }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }
.step-line {
  width: 60px; height: 1px;
  background: linear-gradient(to right, var(--border), var(--accent), var(--border));
  margin-top: 18px;
  flex-shrink: 0;
  opacity: 0.6;
}
.process-guarantee {
  margin-top: 48px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  background: rgba(11,110,99,0.08);
  border: 1px solid rgba(11,110,99,0.25);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.process-guarantee .pg-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #051C0F;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 13px;
}
.process .container { display: flex; flex-direction: column; align-items: center; }
.process .section-header { width: 100%; text-align: left; }
.process-steps { width: 100%; }
.final-cta-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(11,110,99,0.1);
  border: 1px solid rgba(11,110,99,0.3);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

/* === 방문 진단 === */
/* === 방문 컨설팅 ===
   흰 배경에 흰 카드로 두니 시선이 머물 데가 없었다. 포트폴리오에서 통했던
   딥틸 밴드 + 글래스 카드를 그대로 가져온다. 숫자가 주인공이 되게. */
.diagnosis {
  /* 3-stop 이었을 때 중간 stop(52%)이 정확히 반절에 박혀서 대각선 띠가 보였다.
     2-stop 으로 바꿔 경계를 없앤다 */
  background: linear-gradient(160deg, #0D3F39 0%, #08201D 100%);
  padding: 104px 0;
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .diagnosis {
  /* 3-stop 이었을 때 중간 stop(52%)이 정확히 반절에 박혀서 대각선 띠가 보였다.
     2-stop 으로 바꿔 경계를 없앤다 */
  background: linear-gradient(160deg, #0D3F39 0%, #08201D 100%);
}
/* 오른쪽에 폭 60% 원을 얹으면 원의 가장자리가 세로 경계선으로 읽힌다.
   섹션 전체를 덮는 타원으로 바꿔서 경계를 없앤다 */
.diagnosis::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 72% 18%, rgba(22,152,138,0.16) 0%, transparent 70%);
  pointer-events: none;
}
.diagnosis .container { position: relative; z-index: 1; }
[data-theme="light"] .diagnosis .diagnosis-flag,
.diagnosis .diagnosis-flag { color: #4FC3B3; }
[data-theme="light"] .diagnosis .diagnosis-sub,
.diagnosis .diagnosis-sub { color: rgba(255,255,255,0.72); }
.dg-flag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #72D5C8;
  margin-bottom: 18px;
}
.dg-how {
  max-width: 980px;
  margin: 0 auto 52px;
}
.dg-head {
  max-width: 840px;
  margin-bottom: 44px;
}
.dg-head .service-label {
  color: #72D5C8;
}
.dg-head h2 {
  max-width: 720px;
  margin-bottom: 16px;
  color: #fff;
}
.dg-stage-tag {
  display: inline-block;
  margin-top: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
}
.dg-stage-lead {
  font-size: 0.95rem; line-height: 1.75;
  color: rgba(255,255,255,0.72);
  word-break: keep-all;
}

.dg-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 56px;
  align-items: center;
}
.dg-body-text .dg-head { max-width: none; margin-bottom: 34px; }
.dg-body-text .dg-head h2 { max-width: none; word-break: keep-all; }
.dg-body .dg-steps { grid-template-columns: 1fr; gap: 24px; }
.dg-body .dg-doc { margin: 0; }

.dg-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.dg-step {
  min-width: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.dg-step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #4FC3B3;
  margin-bottom: 10px;
}
.dg-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.dg-step p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  word-break: keep-all;
}

.dg-report {
  margin-top: 36px;
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 24px 48px -26px rgba(0,0,0,0.55);
}
.dg-report .dc-report { padding: 24px 26px 26px; }
.dg-report .dc-report-head {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.dg-report .dc-report-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  counter-reset: none;
}
.dg-report .dc-report-list li {
  min-width: 0;
  padding: 12px 12px 12px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text-secondary);
}
.dg-report .dc-report-list li::before {
  content: '';
  left: 13px;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  background: var(--accent);
}

/* 컨설팅 뒤에 남는 리포트의 첫 장을 원본 비율 그대로 보여준다. */
.dg-doc {
  max-width: 420px;
  margin: 36px auto 0;
}

@media (max-width: 1024px) {
  .dg-body { grid-template-columns: 1fr; gap: 40px; }
  .dg-body .dg-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
  .dg-body .dg-doc { margin: 0 auto; }
  .dg-body-text .dg-head { max-width: 840px; margin-bottom: 44px; }
  .dg-body-text .dg-head h2 { max-width: 720px; }
}
@media (max-width: 760px) {
  .dg-body .dg-steps { grid-template-columns: 1fr; gap: 24px; }
}
.dg-doc-label {
  margin-bottom: 14px;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}
.dg-doc-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 60px -30px rgba(0,0,0,0.72);
}
.dg-doc-frame img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 760px) {
  .dg-head { margin-bottom: 36px; }
  .dg-steps { grid-template-columns: 1fr; gap: 24px; }
  .dg-report .dc-report-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.dg-cta { text-align: center; }

@media (max-width: 720px) {
  .diagnosis { padding: 76px 0; }
  .dg-cta .btn { width: 100%; }
}

@media (max-width: 520px) {
  .dg-report .dc-report { padding: 22px 18px; }
  .dg-report .dc-report-list { grid-template-columns: 1fr; }
  .dg-doc-frame { border-radius: 12px; }
}

.diagnosis-flag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.diagnosis-text h2 { margin-bottom: 18px; }
.diagnosis-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 480px;
}
.diagnosis-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

/* === 절감 예시 ===
   컨설팅을 알아보는 사람이 궁금한 건 두 가지다. 우리 회사 어디에 넣으면 되는지,
   그러면 얼마가 남는지. 추상적인 목록 대신 실제 계산 결과를 그대로 보여준다.
   숫자는 calc.py 출력이라 리포트에 적히는 값과 같다. */
.dg-example {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 30px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 24px 48px -20px rgba(0,0,0,0.5);
}
.dg-ex-head {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 20px;
  word-break: keep-all;
}
.dg-ex-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(11, 110, 99, 0.9);
  border-radius: var(--radius-full);
  padding: 3px 8px;
  margin-right: 6px;
  vertical-align: 1px;
}
.dg-rows {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 18px;
}
/* 막대 길이 = 그 업무에 지금 드는 돈(업무끼리 크기 비교),
   채워진 부분 = 자동화로 사라지는 몫. 금액만 나열하면 그게 큰 건지 작은 건지
   알 수가 없어서, 무엇 대비 얼마인지를 막대와 화살표로 같이 보여준다. */
.dg-rows li {
  display: grid;
  grid-template-columns: 92px 1fr 116px;
  align-items: center;
  gap: 14px;
}
.dg-task {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.82);
  font-weight: 600;
  white-space: nowrap;
}
.dg-bar {
  display: block;
  height: 11px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.13);
  overflow: hidden;
  justify-self: start;
  min-width: 22px;
}
.dg-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0F8578, #35D2BC);
  border-radius: var(--radius-full);
}
.dg-amt {
  font-size: 0.82rem;
  white-space: nowrap;
  text-align: right;
}
.dg-amt s {
  color: rgba(255,255,255,0.4);
  text-decoration-thickness: 1px;
}
.dg-amt i {
  font-style: normal;
  color: rgba(255,255,255,0.4);
  margin: 0 3px;
}
.dg-amt b { color: #fff; font-weight: 800; }

.dg-total {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.dg-total-line {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}
.dg-total-line s { color: rgba(255,255,255,0.38); text-decoration-thickness: 1px; }
.dg-total-line i { font-style: normal; margin: 0 2px; }
.dg-total-line b { color: #fff; font-weight: 700; }
.dg-total-big {
  font-size: 1.22rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.45;
  word-break: keep-all;
  margin-bottom: 8px;
}
.dg-total-big em {
  font-style: normal;
  font-size: 1.62rem;
  font-weight: 800;
  color: #3FD9C2;
  letter-spacing: -0.03em;
}
.dg-total-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  word-break: keep-all;
}

/* 다크 밴드 위 버튼과 목업 */
.diagnosis .btn-primary {
  background: #fff;
  color: #0B2C29;
  border-color: #fff;
}
.diagnosis .btn-primary:hover { background: rgba(255,255,255,0.88); border-color: rgba(255,255,255,0.88); }

@media (max-width: 520px) {
  .dg-rows li { grid-template-columns: 78px 1fr auto; gap: 8px; }
  .dg-task, .dg-amt { font-size: 0.78rem; }
  .dg-total-label { width: 100%; margin-right: 0; }
}
.diagnosis-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.diagnosis-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.diagnosis-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
[data-theme="light"] .diagnosis-card { background: var(--panel); }
.diagnosis-card-item { padding: 28px; }
.dc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.dc-label.paid { color: var(--text-secondary); }
.dc-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.dc-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.dc-divider { height: 1px; background: var(--border); }

/* === 교육 === */
.edu-flag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.edu-flag b {
  display: inline-block;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  margin-right: 8px;
  letter-spacing: 0.04em;
}
.edu-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 480px;
}
.edu {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.edu-impact {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.025em;
  word-break: keep-all;
}

/* === 라이트 구간 배경 규칙 ===
   흰색과 연회색 2톤만 번갈아 쓴다. 이전에는 #FFF, #F2F4F3, #F9FBFA 세 톤이
   섞여 있었고 뒤 둘의 차이가 미세해 섹션 경계가 지저분하게 읽혔다.
   순서: pain(회) → 컨설팅(흰) → 진행방식(회) → 교육(흰) → 사례(다크)
        → 후기(회) → FAQ(흰) → 마지막 CTA(회) */
[data-theme="light"] .statement { background: var(--panel); }
[data-theme="light"] .edu { background: var(--panel); }
[data-theme="light"] .faq {
  background: var(--panel);
  border-top: 1px solid var(--border);
}
.edu-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.edu-text { max-width: 600px; }
.edu-text h2 { margin-bottom: 14px; }
.edu-text .diagnosis-sub { margin-bottom: 28px; }
.edu-text .btn { flex-shrink: 0; }

/* === 교육 프로그램 3종 === */
/* === 교육 프로그램 3종 ===
   실사 사진이 없다. 흰 배경 위에 흰 카드 + 옅은 테두리를 쓰면
   내용이 빈 상자에 담긴 것처럼 읽혀서, 박스를 걷어내고 편집형으로 간다.
   상단 괘선 + 큰 세리프 숫자가 사진 대신 시각적 앵커 역할을 한다.
   사진이 생기면(현장 방문 촬영) .edu-prog 상단에 이미지 블록을 얹으면 된다. */
.edu-programs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 48px;
  margin-bottom: 64px;
}
.edu-prog {
  padding: 26px 0 0;
  border-top: 2px solid var(--text);
}
.edu-prog-num {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 34px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 20px;
}
.edu-prog h3 { font-size: 1.24rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.edu-prog-who {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}
.edu-prog p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* === 기대치 한 단락 ===
   되는 것/안 되는 것을 2단 목록으로 크게 벌였더니 비중이 과했다.
   신뢰 장치는 유지하되 한 단락으로 접는다. */
.edu-honest {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 0 auto 44px;
  max-width: 720px;
}
.edu-honest p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.85;
  word-break: keep-all;
}

/* === 교육 하단 === */
.edu-foot { margin-top: 28px; text-align: center; }
.edu-record {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 22px;
}

/* === 진단 카드: 가격 + 리포트 목차 === */
.dc-price { padding: 28px 28px 24px; }
.dc-price-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.dc-price-unit {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}
.dc-report { padding: 24px 28px; }
.dc-report-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 16px;
}
/* ol 기본 마커를 쓰지 않고 counter로 직접 그린다.
   전역 리셋이 ul만 끄기 때문에 ol을 그대로 두면 마커가 이중으로 보인다. */
.dc-report-list {
  list-style: none;
  counter-reset: dcr;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.dc-report-list li {
  counter-increment: dcr;
  position: relative;
  padding-left: 26px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.dc-report-list li::before {
  content: counter(dcr);
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dc-report-list li strong { color: var(--text); font-weight: 700; }
.dc-report-list li:has(strong)::before { background: var(--accent); color: #fff; }
.dc-note {
  padding: 20px 28px 26px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* 진단 텍스트 쪽 버튼 두 개 */
.diagnosis-text .btn + .btn { margin-left: 10px; }

@media (max-width: 900px) {
  .edu-programs { grid-template-columns: 1fr; gap: 16px; }
  .edu-honest { padding: 28px 22px; }
  .edu-honest-cols { grid-template-columns: 1fr; gap: 28px; }
  .diagnosis-text .btn + .btn { margin-left: 0; margin-top: 10px; }
  .diagnosis-text .btn { width: 100%; text-align: center; }
}

/* === Reviews === */
/* === 팀 ===
   포트폴리오(다크) 다음, 후기(#F2F4F3) 앞. var(--panel)이라 라이트에서 #FFF가 되어
   다크 → #FFF → #F2F4F3 2톤 교대가 유지된다.
   박스를 씌우지 않고 세로 헤어라인으로만 나눈다 — 트리숲의 "여백이 곧 고급감"과
   같은 방식이고, 바로 위 포트폴리오 카드와 형태가 겹치지 않는다. */
.team { background: var(--panel); padding: 96px 0; }
.tm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.tm { padding: 34px 30px 0; border-left: 1px solid var(--border); }
.tm:first-child { border-left: none; }
.tm-mark {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  margin-bottom: 20px;
  font-size: 1.05rem; font-weight: 700;
  /* 기본(다크)에서는 딥틸 원색이 배경에 묻는다. 밝은 틸로 올린다 */
  background: rgba(63,217,194,0.12);
  color: #4FC3B3;
}
[data-theme="light"] .tm-mark {
  background: rgba(11,110,99,0.09);
  color: var(--accent);
}
.tm h3 {
  font-size: 1.2rem; font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.tm-role {
  margin-top: 6px;
  font-size: 0.88rem; font-weight: 600;
  color: #4FC3B3;
}
[data-theme="light"] .tm-role { color: var(--accent); }
.tm-specialty {
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.tm-edu {
  margin-top: 4px;
  font-size: 0.84rem;
  color: var(--text-dim);
}
.tm-note {
  margin-top: 16px;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-secondary);
  word-break: keep-all;
}

@media (max-width: 900px) {
  .tm-grid { grid-template-columns: 1fr; }
  .tm { padding: 28px 0 24px; border-left: none; border-top: 1px solid var(--border); }
  .tm:first-child { border-top: none; padding-top: 30px; }
  .team { padding: 72px 0; }
}

.reviews { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 80px 0; }
[data-theme="light"] .reviews { background: #F2F4F3; }
.reviews .container { margin-bottom: 40px; }
.reviews-track-wrapper { overflow: hidden; position: relative; }
.reviews-track-wrapper::before,
.reviews-track-wrapper::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.reviews-track-wrapper::before { left: 0; background: linear-gradient(to right, var(--panel), transparent); }
[data-theme="light"] .reviews-track-wrapper::before { background: linear-gradient(to right, #F2F4F3, transparent); }
.reviews-track-wrapper::after { right: 0; background: linear-gradient(to left, var(--panel), transparent); }
[data-theme="light"] .reviews-track-wrapper::after { background: linear-gradient(to left, #F2F4F3, transparent); }
.reviews-track { display: flex; gap: 16px; animation: scroll-reviews 50s linear infinite; width: max-content; will-change: transform; }
.reviews-track:hover { animation-play-state: paused; }
@keyframes scroll-reviews {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column;
  min-width: 340px; max-width: 380px; flex-shrink: 0;
  transition: border-color 0.2s;
}
[data-theme="light"] .review-card { background: var(--panel); }
.review-card:hover { border-color: var(--accent); }
.review-stars { color: #F59E0B; font-size: 0.75rem; letter-spacing: 0.2em; margin-bottom: 16px; }
.review-card p { font-size: 0.9rem; line-height: 1.8; color: var(--text-secondary); flex: 1; margin-bottom: 18px; }
.review-card p strong { color: var(--text); }
.review-author { font-size: 0.8rem; color: var(--text-dim); font-weight: 600; padding-top: 14px; border-top: 1px solid var(--border); }

/* === FAQ === */
.faq { padding: 80px 0; }
.faq .container { max-width: 720px; }
.faq-list { margin-top: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
  padding: 20px 0; font-size: 0.98rem; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  color: var(--text); min-height: 48px; transition: color 0.15s;
}
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.2rem; color: var(--text-dim);
  transition: transform 0.2s; flex-shrink: 0; margin-left: 16px; font-weight: 400; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 0 20px; }
.faq-answer p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8; }

/* === Final CTA === */
.final-cta {
  background: var(--panel);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 96px 0;
}
[data-theme="light"] .final-cta { background: #F2F4F3; }
.final-cta-inner { max-width: 580px; margin: 0 auto; }
.final-cta h2 { margin-bottom: 14px; }
.final-cta p { color: var(--text-secondary); margin-bottom: 36px; font-size: 1rem; line-height: 1.8; }
.final-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* === Footer === */
.footer { padding: 44px 0 28px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand { font-size: 1.15rem; font-weight: 900; margin-bottom: 8px; letter-spacing: -0.02em; }
.footer-tagline { font-size: 0.85rem; color: var(--text-secondary); }
.footer-heading { font-size: 0.8rem; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; color: var(--text-secondary); transition: color 0.15s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { padding-top: 18px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.72rem; color: var(--text-dim); opacity: 0.5; }

/* === Mobile Fixed CTA === */
.mobile-cta { display: none; }

/* === Scroll Reveal === */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.pain-card:nth-child(1) { transition-delay: 0.00s; }
.pain-card:nth-child(2) { transition-delay: 0.06s; }
.pain-card:nth-child(3) { transition-delay: 0.12s; }
.pain-card:nth-child(4) { transition-delay: 0.18s; }
.pain-card:nth-child(5) { transition-delay: 0.24s; }
.pain-card:nth-child(6) { transition-delay: 0.30s; }
.case-card:nth-child(1) { transition-delay: 0.00s; }
.case-card:nth-child(2) { transition-delay: 0.06s; }
.case-card:nth-child(3) { transition-delay: 0.12s; }
.case-card:nth-child(4) { transition-delay: 0.18s; }
.case-card:nth-child(5) { transition-delay: 0.24s; }
.case-card:nth-child(6) { transition-delay: 0.30s; }
.case-card:nth-child(7) { transition-delay: 0.36s; }
.portfolio-card:nth-child(2) { transition-delay: 0.08s; }
.portfolio-card:nth-child(3) { transition-delay: 0.16s; }
.step:nth-child(3) { transition-delay: 0.08s; }
.step:nth-child(5) { transition-delay: 0.16s; }
.step:nth-child(7) { transition-delay: 0.24s; }

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; }
  .reviews-track { animation: none; }
}

/* === Responsive === */
@media (max-width: 960px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .case-card:last-child:nth-child(3n+1) { grid-column: auto; max-width: none; }
}

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .hero { padding-top: 120px; padding-bottom: 72px; }
  .hero-glow { display: none; }
  .hero .container { max-width: 100%; padding: 0 24px; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-content-wrap { padding: 0 24px; }
  .hero-content { align-items: flex-start; text-align: left; max-width: 100%; }
  .hero-cta { justify-content: flex-start; }
  .hero-title { max-width: 100%; margin-bottom: 28px; font-size: clamp(1.6rem, 8vw, 3.4rem); }
  .hero-sub { margin-bottom: 34px; font-size: 1rem; line-height: 1.7; }
  .hero-showcase { margin-top: 16px; }
  .hsc-card { min-height: auto; padding: 18px; }
  .hsc-bubble { font-size: 13px; }
  .statement { padding: 48px 0; }
  .reviews { padding: 64px 0; }
  .faq { padding: 64px 0; }
  .final-cta { padding: 72px 0; }

  .nav-links {
    display: none;
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    flex-direction: column; padding: 32px 24px; gap: 0; z-index: 999;
    overflow-y: auto;
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { padding: 16px 0; font-size: 1.1rem; border-bottom: 1px solid var(--border); display: block; width: 100%; color: var(--text); }
  .nav-right .btn { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-compare { grid-template-columns: 1fr 36px 1fr; padding: 20px 24px; }
  .compare-item { padding: 0 12px; }
  .pain-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .case-card:last-child:nth-child(odd) { grid-column: auto; max-width: none; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .diagnosis-inner { grid-template-columns: 1fr; gap: 40px; }
  .diagnosis-card { max-width: 100%; }
  .edu-inner { flex-direction: column; gap: 28px; }
  .process-steps { flex-direction: column; gap: 0; }
  .step { padding: 0; }
  .step-line {
    width: 2px; height: 32px; margin: 0 0 0 18px;
    background: linear-gradient(to bottom, var(--border), var(--accent), var(--border));
  }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .final-cta-buttons { flex-direction: column; }
  .final-cta-buttons .btn { width: 100%; }
  .mobile-cta {
    display: block; position: fixed; bottom: 0; left: 0; right: 0;
    padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--border); z-index: 999;
  }
  .mobile-cta .btn { width: 100%; }
  body { padding-bottom: 72px; }
  .footer { padding-bottom: 84px; }
}

/* === 포트폴리오: 한 줄기 세로 스택 ===
   트리숲의 카테고리 블록 세로 스택과 낮은 정보 밀도는 가져오되,
   가로 UI 캡처는 자르지 않고 이미지 아래에서 본문을 읽게 한다. */
.work {
  background: #F2F4F3;
  color: var(--text);
  padding: 112px 0 104px;
  border-color: var(--border);
  overflow: visible;
}
.work::before,
.work::after {
  content: none;
}
.work-top {
  margin-bottom: 52px;
}
.work-top h2 {
  color: var(--text);
}
.work-sub {
  color: var(--text-secondary);
  line-height: 1.75;
}

/* 트리숲식 비대칭: 좌측 카테고리 사이드바 + 우측 카드 그리드.
   ⚠ 이 블록이 739줄의 .pw-* 정의보다 뒤에 있어서 실제로 적용되는 건 여기다.
   레이아웃을 바꾸려면 여기를 고칠 것. */
/* ⚠ 좌측 사이드바와 카드의 균형.
   카드를 키우려고 밴드를 1260까지 넓혔더니 사이드바(224px)가 상대적으로 눌려
   왼쪽 텍스트가 찌그러져 보였다. 밴드를 다른 섹션과 같은 1120으로 되돌리고
   사이드바를 288px로 넓혀 카드는 340px대로 앉힌다. */
.pw-cat {
  display: grid;
  grid-template-columns: 288px 1fr;
  gap: 56px;
  align-items: start;
  padding-top: 60px;
  padding-bottom: 72px;
  border-top: 1px solid var(--border);
}
.pw-cat-inner {
  position: sticky;
  top: 104px;
  max-width: 288px;
}
.pw-num {
  color: var(--accent);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.pw-cat-head h3 {
  color: var(--text);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
}
.pw-rule {
  width: 48px;
  height: 2px;
  margin: 16px 0;
  background: var(--accent);
}
.pw-cat-head p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

.pw-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  width: 100%;
  margin: 0;
  /* ⚠ stretch(기본값)면 행에서 제일 높은 카드에 맞춰 나머지가 늘어난다.
     계단 오프셋을 쓰면 앞 카드 밑에 오프셋만큼 빈 공간이 생긴다. 반드시 start. */
  align-items: start;
}
/* 계단 오프셋 — ⚠ 카테고리당 카드가 정확히 2장(한 행)일 때만 성립한다.
   3장 이상으로 늘려 다중 행이 되면 0 으로 되돌릴 것. */
.pw-grid > :nth-child(2n) {
  margin-top: 46px;
}

/* === 그 외 진행한 작업 — 인덱스 목록 ===
   대표 6장 아래에 나머지를 텍스트로만 나열한다. 이미지가 없어야
   위 카드를 잡아먹지 않는다. "누적 N건" 같은 규모 주장 대신
   읽는 사람이 직접 세게 만드는 장치. */
.pw-more {
  padding-top: 54px;
  padding-bottom: 8px;
  border-top: 1px solid var(--border);
}
.pw-more-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.pw-more-list { list-style: none; margin: 0; padding: 0; }
.pw-more-list li { border-bottom: 1px solid var(--border); }
/* 모든 행은 같은 정보 격자를 쓴다. */
.m-row {
  display: grid;
  grid-template-columns: 1fr 150px 190px;
  align-items: baseline;
  gap: 16px;
  padding: 17px 4px;
}
.m-name { font-size: 1rem; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.m-who  { font-size: 0.82rem; color: var(--text-dim); }
.m-fig  { font-size: 0.85rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.m-fig s { color: var(--text-dim); text-decoration: line-through; }
.m-fig i { font-style: normal; color: var(--text-dim); margin: 0 5px; }
.m-fig b { color: var(--text); font-weight: 700; }
.pw {
  width: 100%;
  min-width: 0;
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 52px -38px rgba(15, 35, 30, 0.38);
}
a.pw:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 110, 99, 0.35);
  box-shadow: 0 24px 56px -36px rgba(15, 35, 30, 0.42);
}
.pw-vis {
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--border);
}
.pw-vis img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.pw-body {
  padding: 24px 28px 26px;
}
.pw-tag {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 9px;
}
.pw-body h4 {
  color: var(--text);
  font-size: 1.22rem;
  margin-bottom: 8px;
}
.pw-body p {
  max-width: 680px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.72;
}
.pw-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-color: var(--border);
}
.pw-metric {
  color: var(--text);
}
.pw-metric s,
.pw-metric i {
  color: var(--text-dim);
}
.pw-metric b,
.pw-link {
  color: var(--accent);
}
.pw-metric--compare {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}
.pw-metric--compare > span,
.pw-metric--result {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}
.pw-metric--compare small,
.pw-metric--result small {
  color: var(--text-dim);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.pw-metric--compare s,
.pw-metric--compare b {
  font-size: 1rem;
  line-height: 1.25;
}
.pw-metric--compare > i { padding-bottom: 1px; }
@media (max-width: 768px) {
  .work {
    padding: 80px 0 68px;
  }
  .work-top {
    margin-bottom: 38px;
  }
  .pw-cat {
    width: 100%;
    min-width: 0;
    gap: 22px;
    padding-top: 42px;
    padding-bottom: 54px;
  }
  .pw-cat-inner {
    width: 100%;
    max-width: 100%;
  }
  .pw-cat-head h3 {
    font-size: clamp(1.35rem, 5vw, 1.6rem);
  }
  .pw-cat-head p {
    max-width: 100%;
    font-size: 0.9rem;
    line-height: 1.68;
    overflow-wrap: anywhere;
  }
  .pw-grid {
    gap: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
  }
  .pw {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .pw-vis {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .pw-vis--glass,
  .pw-vis--figure {
    padding-left: 12px;
    padding-right: 12px;
  }
  .pw-body {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 20px 20px 22px;
  }
  .pw-body h4 {
    font-size: 1.1rem;
  }
  .pw-body p {
    max-width: 100%;
    font-size: 0.86rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }
  .pw-foot {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
  }
  .pw-metric,
  .pw-link {
    max-width: 100%;
    font-size: 0.78rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .pw-metric--compare { align-items: flex-end; flex-direction: row; }
  .pw-fig {
    min-width: 0;
    max-width: 100%;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
  }
  .pw-fig s,
  .pw-fig i {
    font-size: clamp(0.72rem, 3.3vw, 0.92rem);
  }
  .pw-fig b {
    font-size: clamp(1.25rem, 6vw, 1.8rem);
  }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .work {
    padding-top: 72px;
    padding-bottom: 60px;
  }
  .work-top {
    margin-bottom: 34px;
  }
  .pw-cat {
    gap: 18px;
    padding-top: 36px;
    padding-bottom: 46px;
  }
  .pw-grid {
    gap: 18px;
  }
  .pw-vis--glass,
  .pw-vis--figure {
    padding-left: 10px;
    padding-right: 10px;
  }
  .pw-body {
    padding: 18px 16px 20px;
  }
  .pw-tag {
    font-size: 10px;
  }
  .pw-body h4 {
    font-size: 1.04rem;
  }
  .pw-body p {
    font-size: 0.82rem;
  }
  .pw-foot {
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
  }
  .case-card, .review-card { padding: 22px; }
}

/* === 포트폴리오 반응형 =====================================================
   2318줄의 데스크톱 비대칭 그리드(264px 사이드바 + 카드 2열)를 좁은 폭에서 접는다.
   이 블록은 파일 맨 끝에 있어야 한다 — 위쪽 @media 들은 2318 블록보다 앞에 있어서
   레이아웃 속성을 덮지 못한다. ========================================== */
@media (max-width: 1080px) {
  .pw-cat { grid-template-columns: 1fr; gap: 26px; }
  .pw-cat-inner { position: static; max-width: 620px; }
}
@media (max-width: 860px) {
  /* 2열이 좁아지면 이미지가 뭉개진다. 1열로 내리고 계단도 끈다 */
  .pw-grid { grid-template-columns: 1fr; }
  .pw-grid > :nth-child(2n) { margin-top: 0; }
}
/* 인덱스 목록 — 4열 격자를 좁은 폭에서 접는다 */
@media (max-width: 820px) {
  .m-row {
    grid-template-columns: 1fr auto;
    gap: 4px 14px;
    padding: 15px 4px;
  }
  .m-name { grid-column: 1; }
  .m-who  { grid-column: 2; text-align: right; }
  .m-fig  { grid-column: 1 / -1; }
}

/* ============================================================================
   배경 텍스처 — 라이트 테마
   다크였던 시절 .work 에는 별·격자 무늬가 있었는데, 라이트로 바꾸면서
   `.work::before, .work::after { content: none }` 으로 통째로 꺼버렸다.
   그래서 페이지 전체가 평평해졌다. 라이트에 맞는 값으로 되살린다.

   원칙: 알파 0.02~0.05. 스크린샷에서 "무늬가 있다"가 아니라
   "뭔가 비어 보이지 않는다" 수준이어야 한다. 카드가 주인공이다.
   ========================================================================== */

/* 무늬는 도트만 쓴다.
   ⚠ 72px 하프톤 격자를 깔았더니 그 선이 섹션을 가로질러 끝까지 가는데
   카드 그리드는 컨테이너 안쪽(좌우 23px 여백)에 있어서, 눈이 더 강한
   가로선을 레이아웃 기준선으로 읽고 "가운데가 안 맞는다"고 느꼈다.
   실측으로는 좌여백 23.0 = 우여백 23.0 으로 정확히 가운데였다.
   도트는 방향성이 없어서 정렬 기대를 만들지 않는다. */

/* 라이트 섹션 전체 — 하나도 빠뜨리지 않는다 */
.clients, .outcomes, .pain, .statement, .products, .edu, .work, .team, .reviews, .faq, .final-cta,
.hero, .diagnosis {
  position: relative;
}
.clients::after, .outcomes::after, .pain::after, .statement::after, .products::after, .edu::after,
.work::after, .team::after, .reviews::after, .faq::after, .final-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(18,33,30,0.070) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 70px, #000 calc(100% - 90px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 70px, #000 calc(100% - 90px), transparent 100%);
}
/* 다크 섹션은 같은 도트를 흰색으로. 위아래가 같은 언어를 쓰게 한다 */
.hero::after, .diagnosis::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.055) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 70px, #000 calc(100% - 90px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 70px, #000 calc(100% - 90px), transparent 100%);
}
/* 히어로는 고정 내비(64px)가 투명하게 얹혀서 다른 섹션과 같은 70px 페이드로는
   내비 바로 아래부터 도트가 시작돼 로고·CTA와 겹친다. 내비 높이만큼 더 내려서 시작 */
.hero::after {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 64px, #000 140px, #000 calc(100% - 90px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, transparent 64px, #000 140px, #000 calc(100% - 90px), transparent 100%);
}
/* 콘텐츠를 무늬 위로 */
.clients > .container, .outcomes > .container, .pain > .container, .statement > .container, .products > .container,
.edu > .container, .team > .container, .reviews > .container,
.faq > .container, .final-cta > .container,
.hero .hero-inner, .diagnosis > .container,
.reviews-track-wrapper { position: relative; z-index: 1; }

/* 포트폴리오 밴드에만 브랜드 틸 글로우를 얹는다. 페이지에서 제일 길어서
   도트만으로는 스크롤 내내 허전하다 */
.work::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(90% 45% at 82% 6%,  rgba(11,110,99,0.075), transparent 70%),
    radial-gradient(80% 40% at 10% 52%, rgba(11,110,99,0.055), transparent 72%),
    radial-gradient(85% 42% at 92% 92%, rgba(11,110,99,0.048), transparent 74%);
}

/* ============================================================================
   후기 카드 하단 잘림
   .reviews-track 이 will-change:transform 으로 합성 레이어가 되고,
   래퍼가 overflow:hidden 인데 카드 높이가 278.72px 처럼 분수라
   레티나(DPR2)에서 마지막 border 행이 클립되는 경우가 있다.
   래퍼에 세로 여유를 주고 will-change 를 뺀다 — 애니메이션은 그대로 돈다.
   ========================================================================== */
/* ⚠ overflow-x:hidden + overflow-y:visible 로 쓰면 안 된다 —
   한 축이 visible 이 아니면 나머지 축의 visible 이 auto 로 계산돼서
   세로 스크롤바가 생긴다. overflow:hidden 을 유지하고 패딩으로 여유를 준다. */
.reviews-track-wrapper { padding: 4px 0; }
.reviews-track { will-change: auto; }
.review-card { align-self: stretch; }

/* ============================================================================
   교육 — 현장 이미지 1장 + 편집형 프로그램 목록
   원본은 16:9 가로(1672x941)다. 데스크톱은 정사각형으로 낮춰 기존 4:5
   프레임보다 높이를 줄이고, 발표자와 스크린이 있는 오른쪽을 중심으로 잡는다.
   ========================================================================== */
.edu-body {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 0;
}
.edu-shot { margin: 0; position: sticky; top: 104px; }
.edu-shot img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  /* 좌우가 잘린다. 발표자·스크린이 오른쪽에 있어 프레임을 그쪽으로 민다 */
  object-position: 62% 50%;
  border-radius: 16px;
  display: block;
  background: linear-gradient(155deg, #0E4A44 0%, #0A2D29 52%, #07201D 100%);
}
.edu-shot.is-empty::before {
  content: '';
  display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 16px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 0) 0 0/22px 22px,
    linear-gradient(155deg, #0E4A44 0%, #0A2D29 52%, #07201D 100%);
}
.edu-content { min-width: 0; }
.edu-forms {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
.edu-form-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(64px, 0.18fr) minmax(0, 1fr);
  column-gap: 32px;
  padding: 32px 0 34px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.edu-form-card + .edu-form-card { border-top: 1px solid var(--border); }
.edu-form-num {
  grid-column: 1;
  grid-row: 1 / span 3;
  margin: 2px 0 0;
}
.edu-form-card h3 {
  grid-column: 2;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 7px;
}
.edu-form-card > p {
  grid-column: 2;
  font-size: 0.89rem; color: var(--text-secondary); line-height: 1.75; word-break: keep-all;
}
.edu-meta {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.edu-meta div { min-width: 0; }
.edu-meta dt {
  margin-bottom: 4px;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.edu-meta dd {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.edu-tools { margin-top: 12px; color: var(--text-dim); font-size: 0.76rem; }

@media (max-width: 900px) {
  .edu-body { grid-template-columns: 1fr; gap: 34px; }
  .edu-shot { position: static; max-width: 420px; }
  .edu-shot img, .edu-shot.is-empty::before { aspect-ratio: 3 / 2; object-position: 60% 50%; }
}

/* 문의 보조 경로 — 주 버튼은 카톡 하나, 메일은 조용한 링크로.
   버튼 두 개를 나란히 두면 시선이 갈려서 둘 다 안 눌린다. */
.cta-alt {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.cta-alt a {
  color: var(--text-secondary);
  border-bottom: 1px solid var(--muted);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.cta-alt a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 900px) {
  .edu-body { grid-template-columns: 1fr; gap: 32px; }
  .edu-shot { position: static; max-width: 420px; }
  .edu-shot img, .edu-shot.is-empty::before { aspect-ratio: 16 / 10; }
}

@media (max-width: 560px) {
  .edu-meta { grid-template-columns: 1fr; gap: 9px; }
  .edu-meta div { display: grid; grid-template-columns: 72px 1fr; gap: 10px; }
  .edu-meta dt { margin-bottom: 0; }
  .edu-form-card { grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; padding: 26px 0 28px; }
  .edu-form-num { font-size: 28px; }
}

/* ============================================================================
   문의 — 카카오톡 / 메일 두 경로를 나란히
   "메일이 편하시면 ~" 같은 보조 링크는 경로가 아니라 각주로 읽힌다.
   두 경로를 같은 크기의 카드로 세워야 고르는 행동이 나온다.
   ========================================================================== */
.final-cta { text-align: left; }
.ct-head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.ct-head p { color: var(--text-secondary); margin-bottom: 0; font-size: 1rem; line-height: 1.8; }

.ct-ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
  max-width: 940px;
  margin: 0 auto;
}
.ct-way {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 30px 26px;
  display: flex;
  flex-direction: column;
}
.ct-way-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(11,110,99,0.09);
  padding: 5px 10px; border-radius: 999px;
  margin-bottom: 14px;
}
.ct-way h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.ct-way > p {
  font-size: 0.92rem; color: var(--text-secondary); line-height: 1.75;
  margin-bottom: 24px; word-break: keep-all;
}
.ct-way .btn { width: 100%; }
.ct-way-note {
  margin-top: 12px;
  font-size: 0.76rem; color: var(--text-dim); line-height: 1.6;
}
.ct-form label {
  display: block;
  font-size: 0.78rem; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 14px;
}
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ct-form input,
.ct-form textarea {
  display: block; width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  font-family: inherit; font-size: 0.9rem; font-weight: 400;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ct-form textarea { resize: vertical; min-height: 78px; line-height: 1.65; }
.ct-form input::placeholder,
.ct-form textarea::placeholder { color: var(--text-dim); }
.ct-form input:focus,
.ct-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11,110,99,0.12);
}
.ct-form .ct-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  line-height: 1.55;
}
.ct-form .ct-consent input {
  width: auto;
  margin: 2px 0 0;
  flex: 0 0 auto;
}
.ct-form .btn { margin-top: 4px; }
.ct-form .btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.ct-form-status {
  margin: 14px 0 0;
  font-size: 0.84rem;
  line-height: 1.6;
}
.ct-form-status[hidden] { display: none; }
.ct-form-status.is-success { color: var(--accent); }
.ct-form-status.is-error { color: #B42318; }
@media (max-width: 860px) {
  .ct-ways { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .ct-row { grid-template-columns: 1fr; gap: 0; }
  .ct-way { padding: 24px 20px 22px; }
}
