/* ===================================================================
   base 테마 — 프론트 스타일 v0.4.1 "에디토리얼 미니멀"
   큰 타이포 · 넓은 여백 · 소프트 섀도 · 배경 리듬 · 절제된 모션
   색상은 layout.php 가 주입하는 CSS 변수(--pri, --sec)를 따른다.

   [중요] 기본 규칙에는 color-mix() 를 쓰지 않는다.
   var() 가 든 선언은 파싱은 통과하고 계산 시점에 무효가 되어(IACVT)
   앞줄 폴백이 아니라 초기값(투명)으로 떨어지기 때문이다.
   color-mix 를 쓰는 고급 표현은 파일 하단 @supports 블록에만 둔다.
   =================================================================== */

/* ---- 디스플레이 서체: G마켓 산스 (Light 300 / Medium 500 / Bold 700)
   각진 획과 굵은 Bold 라 제목에서 인상이 분명하다. 본문에는 쓰지 않는다 —
   한 벌이 약 350KB 씩이라 제목에만 걸어야 첫 화면이 늦지 않는다.
   swap 이므로 CDN 이 늦거나 죽어도 글자는 시스템 서체로 즉시 보인다. */
@font-face {
  font-family: "GmarketSans"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/fonts-archive/GmarketSans/GmarketSansLight.woff2") format("woff2");
}
@font-face {
  font-family: "GmarketSans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/fonts-archive/GmarketSans/GmarketSansMedium.woff2") format("woff2");
}
@font-face {
  font-family: "GmarketSans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/fonts-archive/GmarketSans/GmarketSansBold.woff2") format("woff2");
}

* { box-sizing: border-box; }
/* overflow-x: clip 은 html 에도 있어야 한다. html 이 visible 이면 body 의 값이 화면 전체로 옮겨 가서
   body 는 아무것도 자르지 않는다. 그러면 폰에서 고정 요소(헤더·전화 버튼)가 넓어진 폭에 맞춰 놓인다. */
html { scroll-behavior: smooth; overflow-x: clip; }
/* [hidden] 은 display 를 가진 클래스에 진다.
   .btn-front(inline-flex) 에 hidden 을 걸었더니 3스텝 폼의 "이전"·"상담 신청하기" 가
   1단계에서도 그대로 보였다. JS 로 여닫는 요소마다 재발하는 유형이라 리셋에 못 박는다. */
[hidden] { display: none !important; }
body {
  margin: 0;
  /* 화면 끝까지 나가는 요소(.bleed-out / 레일)는 100vw 로 폭을 잡는데, 100vw 는 세로 스크롤바를
     포함한다. JS 가 스크롤바 폭(--sbw)을 재서 빼 주지만 그 값이 늦게 잡히거나 0 으로 잡히는
     순간이 있어 가로 스크롤이 잠깐 생긴다. 마지막 안전망으로 넘치는 만큼을 잘라 낸다.
     [주의] hidden 이 아니라 clip 이다 — hidden 은 스크롤 컨테이너를 만들어
     첫 화면의 position: sticky 고정이 깨진다. clip 은 만들지 않는다. */
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--body-c);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
:root {
  color-scheme: light;

  /* ---- 서체 3역할 (v0.13)
     디스플레이는 본문과 다른 서체를 쓴다. 헤드라인까지 본문 서체로 가면
     "요즘 잘 만든 무난한 사이트"에서 끝나고, 그 인상이 곧 제작사의 실력으로 읽힌다.
     숫자는 별도 서체 — 한글 서체에 딸린 숫자는 대개 평범해서 성과 수치가 서지 않는다. */
  --font-body:    "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Segoe UI", "Malgun Gothic", sans-serif;
  --font-display: "GmarketSans", "Wanted Sans Variable", var(--font-body);
  --font-num:     "Archivo", "Wanted Sans Variable", var(--font-body);

  /* ---- 타입 스케일 — 여기 없는 크기는 새로 만들지 않는다 */
  /* 위계는 네 단계로 벌린다. 히어로와 섹션 제목의 배율이 1.5배 근처면
     "조금 큰 제목"으로 읽히고 위계가 없는 것과 같다. 여기서는 2.7배로 둔다.
       L1 히어로 108 / L2 섹션 제목 40 / L3 카드 제목 20 / L4 본문 17 */
  /* 히어로 — NHN AD 는 1345px 화면에서 60px 고정이다.
     우리는 vw 로 잡아 두어 그보다 좁은 화면에서 항상 작게 나왔다(1200px 에서 54px).
     비율을 올려 같은 폭에서 70px 가 되게 하고, 넓은 화면에서는 76px 까지 간다. */
  --fs-hero:  clamp(36px, 5.2vw, 76px);
  --fs-h2:    clamp(27px, 2.9vw, 40px);
  --fs-h3:    clamp(18px, 1.4vw, 21px);
  --fs-lead:  clamp(17px, 1.35vw, 20px);
  --fs-body:  17px;
  --fs-sm:    15px;
  --fs-xs:    13px;
  --fs-num:   clamp(32px, 4.2vw, 60px);
  --fs-num-sm: clamp(26px, 2.6vw, 38px);
  /* 한글은 자간을 조여야 큰 글자에서 성기지 않는다 */
  --ls-display: -.035em;
  --ls-tight:   -.02em;

  /* ---- 표면 3종. #fff 를 직접 쓰면 스킨을 바꿀 때 따라오지 않는다 */
  --page:       #fff;
  --surface:    #fff;
  --surface-2:  #fff;
  --header-bg:  rgba(255, 255, 255, .82);
  --header-ink: var(--body-c);
  --header-line: var(--line);

  --ink: #0e1626;
  --body-c: #46536a;
  --muted: #6b7789;
  --faint: #9aa4b5;
  --bg-off: #f6f8fa;
  --line: #e7ebf0;
  --input-line: #d7dde6;
  --btn-white: #fff;
  /* 어두운 섹션(_bg = 진한 배경)의 바탕. 기본은 사이트 보조색이지만 스킨이 다시 정할 수 있다. */
  --dark-bg: var(--sec);

  /* ---- 사이트의 어두운 면이 공통으로 쓰는 두 단계.
     예전에는 히어로 #101010 · 서비스 #161616 처럼 섹션마다 값을 박아 두어서
     "여기만 파랑 기가 돈다"는 문제가 생길 때마다 한 곳씩 고쳐야 했다. 여기서만 정한다.
     완전한 무채색이 아니라 아주 옅은 파랑(색상 215°)을 섞는다 — 브랜드가 파랑이라
     같은 검정이라도 이쪽이 이 회사의 검정으로 읽힌다. 채도는 눈에 띄지 않을 만큼만 준다. */
  --dark-1: #0B0F17;   /* 가장 깊은 면 — 첫 화면 · 인트로 · 살아난 카드 */
  --dark-2: #12161F;   /* 한 단계 위 — 유리 타일이 얹히는 바탕 */

  /* ---- 브랜드 그라디언트 — 사이트 설정의 두 색에서 만든다.
     고객사마다 자기 색의 그라디언트가 나오므로 이 사이트 전용 값이 아니다.
     --grad-text 는 글자에 얹는 용도라 배경 명도에 따라 스킨이 다시 정의한다. */
  --grad:      linear-gradient(118deg, var(--sec) 0%, var(--pri) 100%);
  --grad-text: linear-gradient(118deg, var(--sec) 0%, var(--pri) 100%);
  --brand-text: var(--pri);

  /* 섹션 여백 — 스킨과 무관한 구조 값이다.
     118px 은 정보량이 있는 국내 중소 사업자 사이트에서 성기게 읽혀 96px 로 내렸다. */
  --sec-pad: 96px;
  --sec-pad-tight: 58px;

  /* 모서리 — 2026 기준으로 한 단계 키웠다. 작은 라운드는 지금 화면에서 "옛날 사이트"로 읽힌다. */
  /* ---- 폭 — NHN AD 실측값에 맞춤 (2026-08-16, 화면 1345px 기준) ----
     그 사이트는 정렬선을 **두 개** 쓴다.
       · 글 컨테이너  1084px (좌측 정렬선 123px — 측정에서 가장 많이 반복된 값)
       · 전폭 요소    화면 끝에서 30px (헤더 메뉴 첫 항목 left 30, 마지막 right 1300)
     이미지·격자·색면은 30px 만 남기고 화면을 가로지르고, 글만 1084px 안에 선다. */
  --wrap-w: 1084px;
  --edge: 30px;
  /* 세 번째 선 — 첫 화면 카피가 서는 자리.
     본문(1084 가운데 정렬)으로 두면 넓은 모니터에서 글씨가 오른쪽으로 밀려 왼쪽에 붙어 있지 않다.
     화면 끝 기준으로 잡고 좁아지면 --edge 까지 줄어든다.
     이 선을 쓰는 섹션은 스크롤해 내려와도 첫 화면과 글자 시작점이 정확히 맞는다. */
  --edge-lead: clamp(var(--edge), 9.25vw, 123px);
  --header-h: 92px;
  /* 스크롤 후에도 너무 납작해지지 않게 한다 — 72px 은 메뉴 글자(20px) 대비 위아래가 좁아 보인다 */
  --header-h-sm: 82px;

  /* ---- 모서리.
     둥글기가 크면 친근해 보이는 대신 **아무 회사나 쓰는 템플릿**처럼 보인다.
     이 사이트는 기술을 파는 쪽이므로 각을 살린다 — 0 은 아니고, 모니터에서 겨우 보일 만큼만 둥글린다.
     (원형이어야 하는 것 — 점·프로필 사진·좌우 화살표 단추 — 은 이 토큰을 쓰지 않고 50%/999px 로 둔다) */
  --r-sm: 3px; --r-md: 4px; --r-lg: 6px; --r-xl: 8px; --r-panel: 10px;

  /* ---- 모션 — 이징과 지속시간은 여기서만 정한다.
     값이 규칙마다 다르면 전환이 제각각으로 느껴져 싸구려로 보인다. */
  --dur-1: .48s;   /* 작은 전환 (hover) */
  --dur-2: .72s;   /* 등장 */
  --dur-3: 1.1s;   /* 큰 덩어리 */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --sh-sm: 0 1px 2px rgba(14, 22, 38, .05);
  --sh-md: 0 14px 34px -14px rgba(14, 22, 38, .16);
  --sh-lg: 0 34px 70px -24px rgba(14, 22, 38, .25);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .45s;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* 글 컨테이너 — 안쪽 패딩을 두지 않는다.
   패딩을 주면 글자 시작점이 컨테이너보다 그만큼 더 밀려 정렬선이 어긋난다
   (NHN AD 는 텍스트 자체가 left 123 이고, 1330 문서폭에서 (1330-1084)/2 = 123 이다).
   컨테이너가 화면에 다 안 들어가는 폭에서만 가장자리 여백을 준다. */
/* [주의] 1084px 은 **1345px 화면에서 잰 값**이다. 그 폭에서는 --edge-lead 안쪽(1099px)과
   사실상 같은 선이었는데, 고정 px 로 굳는 바람에 화면이 넓어져도 따라 늘지 않았다 —
   1990px 화면에서 양옆이 446px 씩 비어 가운데 좁은 기둥만 서 있는 꼴이 됐다.
   기준선(--edge-lead)을 따라가되 1084px 아래로는 내려가지 않게 하한만 남긴다.
     · 1345px → 1084 (원래 실측값 그대로)
     · 1440px → 1179 (포트폴리오·솔루션 목록과 같은 선)
     · 1990px → 1729
   [주의] 글줄이 길어지는 것은 이 컨테이너가 아니라 **안쪽 글 요소**가 막는다
   (.sec-sub 640px, 본문 컬럼 768~900px 등). 컨테이너를 좁혀서 막으면 그림과 격자까지 같이 좁아진다. */
.wrap {
  width: 100%; margin: 0 auto; padding: 0;
  max-width: max(var(--wrap-w), calc(100% - 2 * var(--edge-lead)));
}
@media (max-width: 1144px) { .wrap { padding: 0 var(--edge); } }
/* 화면 끝까지 나가되 가장자리 여백만 남기는 컨테이너.
   이미지·격자·색면이 여기에 들어가고, 글은 .wrap 안에 남는다. */
.wrap-bleed { width: 100%; max-width: none; margin: 0; padding: 0 var(--edge); }
/* .wrap 안에서 다시 화면 끝까지 나가야 할 때 (격자 하나만 넓히는 경우)
   [주의] 100vw 는 **세로 스크롤바를 포함한다.** 그대로 쓰면 스크롤바 폭(보통 15px)만큼
   넘쳐 가로 스크롤이 생긴다. JS 가 실제 스크롤바 폭을 --sbw 에 넣어 주고 그만큼 뺀다. */
.bleed-out {
  --vw: calc(100vw - var(--sbw, 0px));
  width: var(--vw); max-width: var(--vw);
  margin-left: calc(50% - var(--vw) / 2); margin-right: calc(50% - var(--vw) / 2);
  padding-left: var(--edge); padding-right: var(--edge);
}
.wrap-narrow { max-width: 760px; }
.wrap-form { max-width: 460px; }        /* 로그인 등 짧은 폼 */
.wrap-form-wide { max-width: 560px; }   /* 회원가입 등 항목 많은 폼 */
.text-center { text-align: center; }
/* 프론트 유틸 — 템플릿에서 인라인 style 을 쓰지 않기 위한 최소 세트 */
.btn-front-block { width: 100%; }
.sec-title-sm { font-size: clamp(24px, 2.6vw, 30px); }
.mt-front-3 { margin-top: 14px; }
.mt-front-4 { margin-top: 28px; }
.mt-front-5 { margin-top: 44px; }
/* FAQ 안의 본문은 게시글 본문 스타일을 재사용하지만 아래 구분선은 필요 없다 */
.faq-a-inner > .post-content { border: 0; }

/* ---------- 스크롤 모션 (JS 가 body.has-motion 부여 · reduced-motion 시 비활성)
   리빌이 끝나면 JS 가 .rv 를 제거해 컴포넌트 자체 transition 을 되돌려준다.

   [원칙] 요소마다 다 붙이지 않는다. **덩어리 단위**로 움직여야 산만하지 않다.
   지속시간·이징은 위 :root 토큰에서만 온다 — 규칙마다 다르면 전환이 제각각으로 느껴진다. */
.has-motion .rv {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.has-motion .rv.in { opacity: 1; transform: none; }
.has-motion .rv-d1 { transition-delay: .1s; }
.has-motion .rv-d2 { transition-delay: .2s; }

/* [삭제됨] 섹션 판 전체를 올리는 등장 효과.
   섹션은 **배경을 갖고 있어서** 판이 움직이는 동안 그 자리에 페이지 바탕색이 드러난다 —
   어두운 섹션과 흰 섹션 사이에 밝은 띠가 올라오는 것처럼 보였다.
   등장은 안쪽 내용(.rv)만 맡는다. 글과 카드는 배경을 갖지 않으므로 움직여도 자국이 남지 않는다. */

/* ---------- 페이지 진입 시퀀스 ----------
   첫 화면은 스크롤을 기다리지 않고 순서대로 들어온다.
   헤드라인 → 부제 → 버튼 → 숫자 → 화면(콜라주/영상) → 스크롤 힌트, 0.1초씩 어긋나게. */
.has-motion .intro > * {
  opacity: 0; transform: translateY(26px);
  animation: wc-in var(--dur-2) var(--ease-out) forwards;
}
@keyframes wc-in { to { opacity: 1; transform: none; } }
.has-motion .intro > *:nth-child(1) { animation-delay: .05s; }
.has-motion .intro > *:nth-child(2) { animation-delay: .15s; }
.has-motion .intro > *:nth-child(3) { animation-delay: .25s; }
.has-motion .intro > *:nth-child(4) { animation-delay: .35s; }
.has-motion .intro > *:nth-child(5) { animation-delay: .45s; }
.has-motion .hero-media-in {
  opacity: 0; transform: translateY(34px) scale(.985);
  animation: wc-in-media var(--dur-3) var(--ease-out) .3s forwards;
}
@keyframes wc-in-media { to { opacity: 1; transform: none; } }

/* 스크롤 힌트 — 첫 화면에 "아래에 더 있다"를 알린다 */
.hero-hint {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 38px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: -.01em; color: var(--faint);
}
.hero-hint::before {
  content: ""; width: 22px; height: 34px; border: 1.5px solid var(--input-line); border-radius: 999px;
  position: relative; flex: none;
}
.hero-hint::after {
  content: ""; position: absolute; width: 3px; height: 7px; border-radius: 2px;
  background: var(--faint); margin-left: 9.5px; margin-top: -21px;
}
.has-motion .hero-hint::after { animation: wc-hint 1.8s var(--ease-out) infinite; }
@keyframes wc-hint {
  0%   { transform: translateY(0);    opacity: 0; }
  25%  { opacity: 1; }
  70%  { transform: translateY(11px); opacity: 0; }
  100% { transform: translateY(11px); opacity: 0; }
}

/* ---------- 미리보기 바 ---------- */
.preview-bar {
  background: #f59e0b; color: #fff; text-align: center;
  padding: 9px 16px; font-size: 13.5px; font-weight: 600;
}

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--header-line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .45); }
/* 헤더가 어두우므로 그 안의 조작 요소도 어두운 면 기준으로 맞춘다 */
.site-header .skin-toggle { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); }
.site-header .skin-toggle:hover { border-color: rgba(255, 255, 255, .42); }
.site-header .skin-ico { background: var(--header-ink); }
.site-header .nav-burger span { background: var(--header-ink); }
.site-header .gnb > ul > li > a:hover { color: #fff; }

/* ---- 메뉴에서 내려오는 면(드롭다운 · 메가 패널 · 모바일 목록)의 색 ----
   [주의] 이 값들을 여기서 `.site-header .gnb .sub` 같은 짧은 선택자로 덮어쓰면 안 된다.
   패널 본체 규칙(.gnb li.has-sub:not(.has-mega) > .sub 등)이 명시도가 더 높아 이긴다 —
   그래서 배경만 흰 판(--surface)으로 남고 글자만 흰색(--header-ink)이 되어
   **패널은 열리는데 글씨가 안 보이는** 상태가 실제로 났다.
   색은 토큰으로만 내려보내고, 실제 지정은 각 패널 규칙에서 한다. */
.site-header {
  --menu-bg:     #171C26;
  --menu-line:   rgba(255, 255, 255, .12);
  --menu-ink:    rgba(255, 255, 255, .78);
  --menu-hover:  rgba(255, 255, 255, .09);
}
.site-header .gnb .sub a { color: var(--menu-ink); }
.site-header .gnb .sub a:hover { background: var(--menu-hover); color: #fff; }
/* 헤더는 화면 끝에서 --edge(30px) 만 남긴다 — 글 컨테이너(1084px)와 다른 정렬선을 쓴다.
   세 칸 구조: 로고(좌) | 메뉴(가운데) | 토글·버튼(우).
   가운데 칸을 1fr 로 두고 양옆을 auto 로 두면 메뉴가 화면 정중앙에 선다 —
   flex + margin:auto 로 하면 좌우 요소의 폭 차이만큼 메뉴가 밀린다. */
.header-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  height: var(--header-h); transition: height .25s var(--ease);
  max-width: none; padding: 0 var(--edge);
}
.site-header.scrolled .header-inner { height: var(--header-h-sm); }
.site-logo { display: flex; align-items: center; min-width: 0; }
.site-logo img { max-height: 44px; }
.site-logo-text { font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }

.gnb { min-width: 0; display: flex; align-items: center; justify-content: center; }
/* 여섯 칸이 되었다 — 칸 사이를 벌린다. 항목이 붙어 있으면 개수가 많을수록 한 덩어리로 뭉쳐
   무엇이 몇 개인지 세어지지 않는다. 좁아지면 간격부터 줄여 글자를 지킨다. */
.gnb ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(0px, .95vw, 16px); }

/* 오른쪽 동작 묶음 — 밝기 토글 + 문의 버튼 */
.header-actions { display: flex; align-items: center; gap: 10px; justify-self: end; }
/* 텍스트 메뉴 여섯 개 옆에서 **혼자 다른 물건**이어야 한다.
   글자 링크와 같은 모양이면 일곱 번째 메뉴로 읽히고, 그러면 전환 버튼이 아니다.
   색을 꽉 채우고 모서리를 완전히 굴려 형태부터 다르게 둔다. */
.header-cta {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 12px 24px; border-radius: 999px;
  font-size: 15.5px; font-weight: 700; letter-spacing: -.01em;
  background: var(--grad-btn); color: #fff;
  background-size: 200% 100%; background-position: 0 0;
  box-shadow: 0 10px 24px -12px rgba(28, 62, 130, .7);
  transition: background-position var(--dur-1) var(--ease-out),
              transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.header-cta:hover {
  background-position: 100% 0; transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(28, 62, 130, .8);
}
.header-cta:active { transform: translateY(0); }
.header-cta:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 3px; }
.gnb > ul > li { position: relative; }
.gnb > ul > li > a {
  /* NHN AD 실측: 20px / 400 / 자간 normal */
  position: relative; display: block; padding: 10px 16px;
  font-size: 20px; font-weight: 400; letter-spacing: normal;
  color: var(--header-ink); white-space: nowrap;
  transition: color .18s;
}
.gnb > ul > li > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px;
  border-radius: 2px; background: var(--pri);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
/* 올리면 브랜드 파랑으로 — 밑줄과 같은 색이라 둘이 한 동작으로 읽힌다.
   검정으로 진해지기만 하면 "눌린 것"인지 "올린 것"인지 구분이 안 된다. */
.gnb > ul > li > a:hover { color: var(--brand-text); }
.gnb > ul > li > a:hover::after { transform: scaleX(1); }

/* ---- 채용 중 표시 ----
   글자 오른쪽 위에 아주 작은 점 하나. 'N' 이나 'NEW' 글자를 넣으면 그 자체가 메뉴처럼 읽혀
   여섯 칸의 리듬이 깨진다 — 점은 읽히지 않고 **띈다**.
   [주의] 숨쉬기는 .has-motion 안에서만 돈다. 모션을 끈 사람에게는 점만 조용히 남는다. */
.gnb-dot {
  position: absolute; top: 8px; right: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pri);
}
.has-motion .gnb-dot { animation: gnb-dot-pulse 2.4s ease-in-out infinite; }
@keyframes gnb-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pri) 55%, transparent); }
  70%      { box-shadow: 0 0 0 6px transparent; }
}
/* 하위 메뉴의 실제 모양은 아래 "메가 메뉴" 절에서 정의한다 (일반 드롭다운 / 메가 패널 두 종류). */

.nav-burger { display: none; margin-left: auto; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-burger span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 5px 0; border-radius: 2px; transition: .25s var(--ease);
}

/* ---------- 공통 섹션 ---------- */
/* 섹션 여백은 토큰 하나에서만 나온다. 스킨(밝게/어둡게)이 이 값을 건드리면 안 된다. */
.sec { padding: var(--sec-pad) 0; }
.sec-tint { background: var(--bg-off); }   /* 구버전 호환 — 지금은 .sec-bg-tint 를 쓴다 */

/* ---------- 섹션 배경 · 여백 (관리자에서 섹션마다 선택) ----------
   이 클래스들이 없던 동안 모든 섹션이 흰 배경 118px 로만 나왔다.
   브랜드색 틴트는 color-mix 를 쓰지 않는다 — var() 가 든 선언은 계산 시점에 무효가 되면
   앞줄 폴백이 아니라 초기값(투명)으로 떨어진다(IACVT). 반투명 흰 레이어로 만든다. */
.sec-bg-plain { background: var(--page); }
.sec-bg-tint  { background: var(--bg-off); }
.sec-bg-brand {
  background-color: var(--pri);
  background-image: linear-gradient(rgba(255, 255, 255, .93), rgba(255, 255, 255, .93));
}
/* 어두운 섹션은 색을 하나하나 뒤집지 않고 **토큰을 다시 정의**한다.
   그래야 이 안에 들어오는 카드·배지·버튼·표가 규칙을 새로 쓰지 않고도 따라온다.
   (예전에는 .sec-bg-dark 아래에 규칙을 하나씩 더하는 방식이라 새 컴포넌트를 만들 때마다 빠뜨렸다) */
.sec-bg-dark {
  background: var(--dark-bg);
  color: var(--body-c);

  --page:      var(--dark-bg);
  --surface:   #1A1F2A;
  --surface-2: #232A38;
  --bg-off:    #10141C;
  --line:      rgba(255, 255, 255, .13);
  --input-line: rgba(255, 255, 255, .22);
  --ink:    #F7F5F3;
  --body-c: #C9C4C1;
  --muted:  #A19B98;
  --faint:  #8A8481;
  --btn-white: #F7F5F3;
  /* 밝은 배경용 그라디언트를 어두운 섹션에 그대로 쓰면 어두운 끝이 배경에 묻힌다(대비 1.9:1).
     흐름과 각도는 유지하고 명도만 올린 변주로 바꾼다. */
  --grad-text: linear-gradient(118deg, #4E86D8 0%, #9CC2F5 100%);
  --grad-btn:  linear-gradient(118deg, #1F3B7E 0%, #3670C6 100%);
  --brand-text: #7FAEF0;
  --sh-md: 0 18px 40px -18px rgba(0, 0, 0, .7);
  --sh-lg: 0 40px 84px -30px rgba(0, 0, 0, .8);
}
.sec-bg-dark .sec-title { color: var(--ink); }
.sec-bg-dark .sec-sub { color: var(--muted); }
.sec-bg-dark a:not([class]) { color: var(--ink); }

.sec-pad-normal { }                      /* .sec 의 기본값을 그대로 */

/* 같은 배경이 연달아 오면 사이 여백이 두 배로 벌어져 보인다 — 뒤쪽 위 여백을 줄인다 */
.sec-bg-tint + .sec-bg-tint,
.sec-bg-plain + .sec-bg-plain,
.sec-bg-brand + .sec-bg-brand,
.sec-bg-dark + .sec-bg-dark { padding-top: 0; }

/* [주의] 관리자에서 **직접 고른** 여백은 위 인접 규칙보다 우선해야 한다.
   `.sec-pad-tight`(0,1,0) 로 두면 인접 규칙(0,2,0)에 져서 위 여백이 0 이 된다 —
   같은 배경이 연달아 올 때 로고 띠의 위 여백이 통째로 사라지는 회귀가 실제로 났다.
   그래서 명시도를 같게 맞추고(0,2,0) 뒤에 둔다. */
.sec.sec-pad-tight { padding: var(--sec-pad-tight) 0; }
.sec.sec-pad-none  { padding: 0; }

/* 커스텀 섹션(섹션 스튜디오) — 붙여넣은 HTML 이 자기 컨테이너를 갖는 경우가 많아
   .wrap 을 강제하지 않는다. 대신 이미지·표가 화면을 넘지 않게만 잡아준다. */
/* 회원 화면 — 로그인·가입 폼을 카드로 감싸 "만들어진" 화면으로 보이게 한다 */
.member-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); padding: clamp(24px, 4vw, 38px);
  margin-top: 28px;
}
.member-card .member-form { margin-top: 0; }
.member-card .form-notice { margin-bottom: 18px; }

.csec { position: relative; }
.csec img { max-width: 100%; height: auto; }
.csec table { max-width: 100%; }

.sec-title {
  font-size: var(--fs-h2); font-weight: 800;
  color: var(--ink); margin: 0 0 18px;
  letter-spacing: -.03em; line-height: 1.22;
}
.sec-title.text-center::before {
  content: ""; display: block; width: 34px; height: 4px; border-radius: 4px;
  background: var(--pri); margin: 0 auto 22px;
}
.sec-title.on-dark { color: #fff; }
.sec-title.on-dark::before { background: rgba(255, 255, 255, .35); }
.sec-sub { color: var(--muted); margin: -6px auto 30px; font-size: 18px; max-width: 640px; }

/* ---------- 버튼 ---------- */
.btn-front {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 30px; border-radius: var(--r-sm);
  font-size: 16px; font-weight: 700; cursor: pointer; border: 2px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, filter .2s;
}
.btn-front .btn-arrow { display: inline-block; transition: transform .22s var(--ease); font-weight: 400; }
.btn-front:hover .btn-arrow { transform: translateX(4px); }
.btn-front-pri {
  background: var(--pri); color: #fff;
  box-shadow: 0 14px 30px -12px rgba(14, 22, 38, .34);
}
.btn-front-pri:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-front-ghost { border-color: var(--input-line); color: var(--ink); background: var(--surface-2); }
.btn-front-ghost:hover { transform: translateY(-2px); border-color: var(--ink); }
.btn-front-white { background: var(--btn-white); color: #0e1626; box-shadow: 0 16px 34px -14px rgba(14, 22, 38, .45); }
.btn-front-white:hover { transform: translateY(-2px); }

/* ---------- 히어로 ---------- */
.sec-hero {
  position: relative; display: flex; align-items: center;
  min-height: 420px; padding: 120px 0 110px;
  background: var(--surface); color: var(--ink); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(14, 22, 38, .07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 62%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 62%);
}
.sec-hero .wrap { position: relative; width: 100%; }
.sec-hero-tall { min-height: 620px; padding: 150px 0 140px; }
.sec-hero-align-center .wrap { text-align: center; }
.hero-heading {
  font-size: clamp(38px, 6.4vw, 76px); font-weight: 800;
  margin: 0 0 24px; line-height: 1.12; letter-spacing: -.04em; color: var(--ink);
}
.hero-sub {
  font-size: clamp(17px, 2vw, 21px); color: var(--body-c);
  margin: 0 0 40px; line-height: 1.65; max-width: 640px;
}
.sec-hero-align-center .hero-sub { margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.sec-hero-align-center .hero-btns { justify-content: center; }

/* 배경 이미지 히어로 — 사진 위 흰 글자 */
.sec-hero.has-bg { background-size: cover; background-position: center; color: #fff; }
.sec-hero.has-bg .hero-bg::before, .sec-hero.has-bg .hero-bg::after { display: none; }
.sec-hero.has-bg .hero-bg {
  background: linear-gradient(180deg, rgba(10, 16, 30, .38), rgba(10, 16, 30, .66));
}
.sec-hero.has-bg .hero-heading { color: #fff; }
.sec-hero.has-bg .hero-sub { color: rgba(255, 255, 255, .88); }
.sec-hero.has-bg .btn-front-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; background: rgba(255, 255, 255, .08); }
.sec-hero.has-bg .btn-front-ghost:hover { border-color: #fff; }

/* ---------- 소개 ---------- */
.about-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; align-items: center; }
.sec-about.img-left .about-inner { direction: rtl; }
.sec-about.img-left .about-inner > * { direction: ltr; }
.sec-about .sec-title::before {
  content: ""; display: block; width: 34px; height: 4px; border-radius: 4px;
  background: var(--pri); margin: 0 0 22px;
}
.about-body { color: var(--body-c); font-size: 17.5px; white-space: normal; }
.about-img { position: relative; }
.about-img img {
  border-radius: var(--r-lg); display: block; width: 100%; object-fit: cover;
  box-shadow: var(--sh-lg);
}
.about-img::after {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border-radius: var(--r-lg);
  /* 브랜드색 9% 틴트 — color-mix 없이 반투명 흰 레이어로 구현 */
  background-image: linear-gradient(rgba(246, 248, 250, .91), rgba(246, 248, 250, .91));
  background-color: var(--pri);
}
.about-img-empty {
  aspect-ratio: 4 / 3; border-radius: var(--r-lg); box-shadow: var(--sh-md);
  background-image: linear-gradient(150deg, #eef1f6, #dfe6ee);
}

/* ---------- 특징 카드 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 54px; }
.feature-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 38px 32px; overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
}
.feature-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--pri); transform: scaleX(0); transform-origin: left;
  transition: transform .32s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: var(--input-line); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--r-sm);
  background-image: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9));
  background-color: var(--pri);
  color: var(--pri); font-size: 14px; font-weight: 800; letter-spacing: .04em;
}
.feature-name { font-size: 20px; font-weight: 700; color: var(--ink); margin: 18px 0 10px; letter-spacing: -.01em; }
.feature-desc { color: var(--muted); font-size: 15.5px; margin: 0; line-height: 1.7; }

/* ---------- 핵심 숫자 ---------- */
.sec-stats {
  position: relative; overflow: hidden;
  background: var(--sec);
  color: #fff;
}
.sec-stats::before {
  content: ""; position: absolute; left: 50%; bottom: -420px; width: 1000px; height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .12), transparent 70%);
}
.sec-stats .wrap { position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.stats-grid.stats-1 { grid-template-columns: minmax(0, 1fr); }
.stats-grid.stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-grid.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-item { text-align: center; padding: 10px 8px; border-left: 1px solid rgba(255, 255, 255, .12); }
.stats-item:first-child { border-left: none; }
.stats-value {
  font-size: clamp(36px, 4.6vw, 56px); font-weight: 800; color: #fff;
  letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.stats-label { color: rgba(255, 255, 255, .6); font-size: 15.5px; margin-top: 8px; }

/* ---------- 갤러리 ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 54px; }
.gallery-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gallery-cell {
  margin: 0;
  border-radius: var(--r-md); overflow: hidden; background: var(--bg-off);
  box-shadow: var(--sh-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
/* 사진만 있는 칸은 비율을 고정하고, 설명이 붙으면 아래로 늘어난다 */
.gallery-cell > img { aspect-ratio: 4 / 3; }
.gallery-cap {
  display: block; padding: 12px 14px 14px; font-size: 14.5px; color: var(--body-c);
  background: var(--surface); line-height: 1.6;
}
.gallery-cell-empty { aspect-ratio: 4 / 3; }
.gallery-cell:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.gallery-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.gallery-cell:hover img { transform: scale(1.05); }
.gallery-cell-empty { background-image: linear-gradient(150deg, #eef1f6, #dfe6ee); }
.gallery-cell-empty span { display: none; }

/* ---------- 영상 ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 48px; }
.video-cols-1 { grid-template-columns: minmax(0, 1fr); max-width: 900px; margin-left: auto; margin-right: auto; }
.video-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.video-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.video-item { margin: 0; }
/* 16:9 유지 — aspect-ratio 미지원 브라우저는 아래 @supports not 에서 패딩 방식으로 처리 */
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden;
  background: #0d1220; box-shadow: var(--sh-md);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@supports not (aspect-ratio: 16 / 9) {
  .video-frame { height: 0; padding-bottom: 56.25%; }
}
.video-cap { margin-top: 12px; font-size: 15px; color: var(--body-c); line-height: 1.6; }

/* ---------- 고객사 로고 ---------- */
/* 칸 폭에 상한을 두고 가운데로 모은다.
   1fr 로 두면 로고가 3개일 때 칸이 380px 까지 늘어나 로고만 덩그러니 뜬다. */
.logo-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 200px));
  gap: 18px; margin-top: 44px; align-items: center; justify-content: center;
}
.logo-cell {
  display: flex; align-items: center; justify-content: center;
  height: 84px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.logo-cell img { max-width: 100%; max-height: 52px; width: auto; height: auto; display: block; }
.logo-cell:hover { border-color: var(--pri); box-shadow: var(--sh-sm); transform: translateY(-2px); }
/* 흑백 → 마우스 올리면 원래 색 (로고 색이 뒤섞여 지저분해 보이는 것을 막는다) */
.logo-gray .logo-cell img { filter: grayscale(1); opacity: .62; transition: filter .25s, opacity .25s; }
.logo-gray .logo-cell:hover img { filter: none; opacity: 1; }

/* ---------- 포트폴리오 ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 52px; }
.pf-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pf-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pf-card {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .2s;
}
a.pf-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: var(--pri); }
.pf-thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-off); }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
a.pf-card:hover .pf-thumb img { transform: scale(1.05); }
.pf-noimg {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background-image: linear-gradient(150deg, #eef1f6, #dfe6ee);
  color: var(--pri); font-size: 34px; font-weight: 800;
}
.pf-tag {
  position: absolute; left: 12px; top: 12px;
  padding: 4px 11px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .94); color: var(--ink);
  font-size: 12.5px; font-weight: 700;
}
.pf-body { display: block; padding: 18px 20px 20px; }
.pf-title { display: block; font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.pf-desc { display: block; margin-top: 6px; font-size: 14.5px; color: var(--body-c); line-height: 1.6; }

/* ---------- 진행 과정 ---------- */
.ps-list {
  list-style: none; margin: 52px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px;
  counter-reset: ps;
}
.ps-item {
  position: relative; padding: 28px 22px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
}
.ps-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-sm); margin-bottom: 14px;
  background: var(--pri); color: #fff; font-weight: 800; font-size: 17px;
}
.ps-name { display: block; font-size: 17px; font-weight: 700; color: var(--ink); }
.ps-desc { display: block; margin-top: 8px; font-size: 15px; color: var(--body-c); line-height: 1.7; }
/* 단계 사이 연결선 (넓은 화면에서만) */
@media (min-width: 900px) {
  .ps-item + .ps-item::before {
    content: ""; position: absolute; left: -16px; top: 46px;
    width: 10px; height: 2px; background: var(--line);
  }
}

/* ---------- 후기 (rvw- 접두사: rv- 는 스크롤 리빌이 쓴다) ---------- */
.rvw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 48px; }
.rvw-card {
  margin: 0; padding: 28px 26px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-sm); display: flex; flex-direction: column;
}
.rvw-body {
  margin: 0; flex: 1; font-size: 16px; line-height: 1.8; color: var(--body-c);
  position: relative; padding-top: 26px;
}
.rvw-body::before {
  content: "\201C"; position: absolute; left: -2px; top: -6px;
  font-size: 52px; line-height: 1; color: var(--pri); opacity: .28; font-weight: 800;
}
.rvw-who {
  display: flex; align-items: center; gap: 10px; margin-top: 18px;
  padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 14.5px; font-weight: 700; color: var(--ink);
}
.rvw-photo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* ---------- CTA (라운드 카드형) ---------- */
.sec-cta { padding: 96px 0 128px; }
.cta-card {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--r-xl); padding: clamp(56px, 8vw, 96px) 40px;
  background: var(--pri);
  color: #fff;
  box-shadow: 0 40px 90px -30px rgba(14, 22, 38, .48);
}
.cta-card::before {
  content: ""; position: absolute; left: 50%; top: -260px; width: 900px; height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .28), transparent 70%);
}
.cta-card > * { position: relative; }
.cta-heading { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin: 0 0 14px; letter-spacing: -.03em; line-height: 1.25; }
.cta-sub { color: rgba(255, 255, 255, .85); margin: 0 auto 36px; font-size: 18px; max-width: 560px; }


/* ---------- 오시는 길 ---------- */
.location-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 28px; margin-top: 50px; align-items: start;
}
.location-inner.location-single { grid-template-columns: minmax(0, 1fr); }
.location-info { display: flex; flex-direction: column; gap: 12px; }
.loc-row {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-sm); padding: 18px 22px; font-size: 15.5px; color: var(--body-c);
}
.loc-label {
  flex-shrink: 0; min-width: 46px; font-weight: 800; color: var(--pri);
  font-size: 13px; letter-spacing: .05em; padding-top: 2px;
}
.loc-row a { font-weight: 600; color: var(--ink); }
.loc-row a:hover { color: var(--pri); }
.location-map { border-radius: var(--r-lg); overflow: hidden; background: var(--bg-off); box-shadow: var(--sh-md); }
.location-map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- 문의 폼 ---------- */
.sec-contact { background: var(--bg-off); }
.contact-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px); margin-top: 14px; box-shadow: var(--sh-md);
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 18px; }
.form-field { display: block; margin-bottom: 20px; }
.form-label { display: block; font-size: 13.5px; font-weight: 700; color: var(--body-c); margin-bottom: 8px; }
.form-input {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--input-line); border-radius: var(--r-sm);
  font-size: 16px; font-family: inherit; color: var(--ink); background: var(--surface-2);
  transition: border-color .18s, box-shadow .18s;
}
.form-input:focus {
  outline: none; border-color: var(--pri);
  box-shadow: 0 0 0 4px rgba(14, 22, 38, .1);
}
textarea.form-input { resize: vertical; line-height: 1.7; }
.consent-row {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; color: var(--muted); margin-bottom: 26px; cursor: pointer; line-height: 1.65;
}
.consent-row input { margin-top: 4px; accent-color: var(--pri); }
.form-submit { text-align: center; }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 1px; overflow: hidden; }
.form-notice { border-radius: 14px; padding: 16px 20px; margin: 6px 0 22px; font-weight: 600; font-size: 15px; }
.form-notice-ok { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.form-notice-err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------- 최근 게시물 / 게시판 목록 ---------- */
.latest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.latest-head .sec-title::before {
  content: ""; display: block; width: 34px; height: 4px; border-radius: 4px;
  background: var(--pri); margin: 0 0 22px;
}
.latest-more { color: var(--muted); font-size: 15px; font-weight: 600; transition: color .18s; }
.latest-more:hover { color: var(--pri); }
.latest-list, .board-list { list-style: none; margin: 26px 0 0; padding: 0; }
.latest-list li a, .board-list li a {
  display: flex; align-items: center; gap: 14px;
  padding: 19px 18px; font-size: 16.5px;
  border-bottom: 1px solid var(--line); border-radius: 12px;
  transition: background .2s;
}
.latest-list li a::after, .board-list li a::after {
  content: "→"; color: var(--pri); font-weight: 400;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .22s, transform .22s var(--ease);
  margin-left: 4px;
}
.latest-list li a:hover, .board-list li a:hover { background: var(--bg-off); }
.latest-list li a:hover::after, .board-list li a:hover::after { opacity: 1; transform: none; }
.board-notice {
  flex-shrink: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .89), rgba(255, 255, 255, .89));
  background-color: var(--pri);
  color: var(--pri); font-size: 12.5px; font-weight: 700;
  padding: 3px 11px; border-radius: var(--r-sm);
}
.board-cat-tag {
  flex-shrink: 0; color: var(--faint); font-size: 13px; font-weight: 600;
  padding: 3px 9px; border: 1px solid var(--line); border-radius: var(--r-sm);
}
.board-item-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink); }
.board-item-date { margin-left: auto; flex-shrink: 0; color: var(--faint); font-size: 14px; font-variant-numeric: tabular-nums; }
.board-empty { padding: 64px 10px; text-align: center; color: var(--faint); list-style: none; }

.sec-board { padding-top: 84px; }
.board-title {
  font-size: clamp(30px, 3.6vw, 40px); font-weight: 800; color: var(--ink);
  margin: 0 0 10px; letter-spacing: -.03em;
}
.board-title::after {
  content: ""; display: block; width: 34px; height: 4px; border-radius: 4px;
  background: var(--grad-text); margin-top: 18px;
}
/* 게시판 설명문은 .sec-sub 를 재사용하는데 그 클래스는 `margin: auto` 라 가운데로 간다.
   제목은 왼쪽인데 설명만 가운데로 가면 두 줄의 시작점이 어긋나 "깨진 것처럼" 보인다. */
.sec-board .sec-sub { text-align: left; margin-left: 0; margin-right: 0; max-width: 56ch; }
/* 빈 게시판도 만들어진 화면으로 보여야 한다 — 맨 글자 한 줄은 오류처럼 읽힌다 */
.board-empty {
  grid-column: 1 / -1;
  margin-top: 26px; padding: 56px 24px; border-radius: var(--r-lg);
  border: 1px dashed var(--input-line); background: var(--surface);
  text-align: center; color: var(--muted); font-size: var(--fs-sm);
}

/* 분류 탭 — 게시판을 분류 수만큼 만들지 않아도 되게 하는 필터 */
.board-cats {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px;
  padding-bottom: 4px;
}
.board-cat {
  display: inline-flex; align-items: center; height: 38px; padding: 0 17px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  color: var(--body-c); font-size: 14.5px; font-weight: 600;
  transition: border-color .18s, color .18s, background .18s, transform .18s var(--ease);
}
.board-cat:hover { border-color: var(--pri); color: var(--pri); transform: translateY(-1px); }
.board-cat.on { background: var(--pri); border-color: var(--pri); color: #fff; }
.board-cats + .board-tools { margin-top: 16px; }

.gallery-cat { display: block; padding: 14px 18px 0; color: var(--pri); font-size: 13px; font-weight: 700; }
.gallery-cat + .gallery-name { padding-top: 6px; }

.board-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 44px; }
.gallery-item {
  display: block; border-radius: var(--r-md); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.gallery-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-off); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.gallery-item:hover .gallery-thumb img { transform: scale(1.05); }
.gallery-noimg {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background-image: linear-gradient(150deg, #eef1f6, #dfe6ee);
  color: var(--pri); font-size: 30px; font-weight: 800;
}
.gallery-name { display: block; padding: 16px 18px 4px; font-weight: 700; color: var(--ink); font-size: 16px; }
.gallery-date { display: block; padding: 0 18px 16px; color: var(--faint); font-size: 13.5px; }

.board-paging { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.board-paging a, .board-paging .cur {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; font-size: 14.5px; color: var(--body-c); font-weight: 600;
  transition: background .18s;
}
.board-paging a:hover { background: var(--bg-off); }
.board-paging .cur { background: var(--pri); color: #fff; box-shadow: 0 10px 20px -10px rgba(14, 22, 38, .38); }

/* ---------- 게시글 보기 ---------- */
.post-head { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.post-board a { color: var(--pri); font-weight: 700; font-size: 14.5px; }
.post-title {
  font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; color: var(--ink);
  margin: 10px 0 14px; line-height: 1.3; letter-spacing: -.02em;
}
.post-meta { display: flex; gap: 16px; color: var(--faint); font-size: 14px; }
.post-thumb { margin-top: 30px; }
.post-thumb img { border-radius: var(--r-lg); box-shadow: var(--sh-md); }
.post-content { padding: 36px 4px 44px; font-size: 17px; color: var(--body-c); border-bottom: 1px solid var(--line); }
.post-nav { margin-top: 10px; }
.post-nav-item {
  display: flex; gap: 14px; align-items: center;
  padding: 15px 10px; border-bottom: 1px solid var(--bg-off);
  font-size: 15px; color: var(--body-c); border-radius: 10px;
  transition: background .18s, color .18s;
}
.post-nav-item:hover { background: var(--bg-off); color: var(--ink); }
.post-nav-item .dir { flex-shrink: 0; font-weight: 700; color: var(--faint); font-size: 13px; }
.post-actions { text-align: center; margin-top: 36px; }
.post-actions .btn-front { background: var(--surface-2); color: var(--body-c); border-color: var(--line); padding: 13px 26px; }
.post-actions .btn-front:hover { border-color: var(--input-line); transform: translateY(-2px); }

/* ---------- 404 ---------- */
.sec-404 { text-align: center; padding: 140px 0; }
.err-code {
  font-size: clamp(80px, 12vw, 130px); font-weight: 800; line-height: 1;
  letter-spacing: -.04em; color: var(--pri);
}
.err-msg { color: var(--muted); margin: 18px 0 36px; font-size: 18px; }

/* ---------- 푸터 ---------- */
.site-footer {
  /* 푸터는 어떤 스킨에서도 어두우므로 전용 토큰을 둔다.
     다만 **바탕값은 직접 정하지 않는다** — 사이트의 어두운 면(--dark-2)을 그대로 받는다.
     여기만 따로 웜 차콜을 박아 두었더니 위쪽 어두운 섹션이 파랑 쪽으로 바뀐 뒤
     푸터만 색 계열이 어긋나 이어 붙인 것처럼 보였다. */
  --ft-bg:   var(--dark-2);
  --ft-ink:  #F7F5F3;
  --ft-body: #ADB4C0;
  --ft-dim:  #7F8794;
  --ft-line: rgba(255, 255, 255, .12);
  background: var(--ft-bg); color: var(--ft-body);
  padding: 64px 0 56px; font-size: 14px;
}
.footer-name { color: var(--ft-ink); font-weight: 800; font-size: 18px; margin-bottom: 14px; letter-spacing: -.01em; }
.footer-text { line-height: 1.9; color: var(--ft-body); }
.footer-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 12px; color: var(--ft-dim); }
.footer-meta + .footer-meta { margin-top: 6px; }
/* 개인정보처리방침·이용약관 — 개인정보처리방침은 굵게(실무상 강조 표기가 표준) */
.footer-policy { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; }
.footer-policy a { color: var(--ft-dim); font-size: 14.5px; }
.footer-policy a:hover { color: #fff; }
.footer-policy a.strong { color: var(--ft-ink); font-weight: 700; }
.footer-copy { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ft-line); color: var(--ft-dim); font-size: 13px; }

/* ---------- 팝업 · 띠배너 ---------- */
.wc-bars { position: relative; z-index: 120; }
.wc-bar {
  position: relative;   /* 닫기 버튼의 기준 — 없으면 배너 여러 개의 × 가 한자리에 겹친다 */
  display: flex; align-items: center; gap: 12px;
  padding: 12px 48px 12px 24px; font-size: 15px; font-weight: 600;
  text-align: center; line-height: 1.5;
}
.wc-bar-inner { flex: 1; min-width: 0; }
.wc-bar-inner p { margin: 0; }
.wc-bar a { text-decoration: underline; text-underline-offset: 3px; }
.wc-bar-x {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: inherit; opacity: .7;
  font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.wc-bar-x:hover { opacity: 1; }

.wc-pops { position: fixed; inset: 0; z-index: 130; pointer-events: none; }
.wc-pop {
  position: absolute; max-width: calc(100vw - 32px);
  background: var(--surface); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--sh-lg); pointer-events: auto;
}
/* JS 가 "보지 않기" 저장 여부를 판단하기 전 깜빡임 방지.
   JS 가 죽은 환경에서는 그냥 보이게 둔다(닫기만 안 됨) */
.has-js .wc-pop, .has-js .wc-bar { visibility: hidden; }
.wc-pop-body { max-height: 70vh; overflow-y: auto; }
.wc-pop-body img { display: block; width: 100%; }
.wc-pop-body > *:not(img):not(a) { padding: 22px 24px; margin: 0; }
.wc-pop-link { display: block; }
.wc-pop-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; background: #1b2536; color: #cbd3df; font-size: 13.5px;
}
.wc-pop-hide { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.wc-pop-hide input { accent-color: var(--pri); }
.wc-pop-close {
  background: none; border: none; color: #fff; font-weight: 700;
  font-size: 13.5px; cursor: pointer; padding: 4px 8px; font-family: inherit;
}
.wc-pop-close:hover { text-decoration: underline; }

@media (max-width: 640px) {
  /* 모바일에서는 좌표를 무시하고 하단에 붙인다 — 화면 밖으로 나가는 사고 방지 */
  .wc-pops { top: auto; bottom: 0; }
  .wc-pop {
    position: relative; left: 0 !important; top: auto !important;
    width: auto !important; margin: 0 12px 12px; max-width: none;
  }
  .wc-bar { padding: 11px 42px 11px 16px; font-size: 14px; }
}

/* ---------- 게시판 도구(검색·글쓰기) ---------- */
.board-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.board-search { display: flex; gap: 8px; align-items: center; }
.board-search-input {
  padding: 10px 14px; border: 1.5px solid var(--input-line); border-radius: var(--r-sm);
  font-size: 15px; font-family: inherit; min-width: 180px;
  background: var(--surface-2); color: var(--ink);
}
.board-search-input:focus { outline: none; border-color: var(--brand-text); }
.board-search-btn {
  padding: 10px 18px; border-radius: 10px; border: none; cursor: pointer;
  background: var(--grad-btn); color: #fff; font-weight: 700; font-size: 14.5px; font-family: inherit;
}
.board-search-reset { font-size: 14px; color: var(--muted); }
.btn-front-sm { padding: 10px 20px; font-size: 14.5px; }
.board-lock { flex-shrink: 0; color: var(--faint); font-size: 13px; }
.board-item-cc {
  flex-shrink: 0; background: var(--bg-off); color: var(--pri);
  font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: var(--r-sm);
}

/* ---------- 댓글 ---------- */
.comments { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); }
.comments-title { font-size: 19px; font-weight: 800; color: var(--ink); margin: 0 0 20px; }
.comments-title span { color: var(--pri); }
.comments-empty, .comments-locked { color: var(--muted); font-size: 15px; padding: 18px 0; }
.comments-locked a { color: var(--pri); font-weight: 600; text-decoration: underline; }
.comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.comment { padding: 18px 0; border-bottom: 1px solid var(--bg-off); }
.comment.is-admin { background: color-mix(in srgb, var(--pri) 4%, #fff); border-radius: 12px; padding: 18px 18px; }
.comment.is-hidden { opacity: .5; }
.comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.comment-author { font-weight: 700; color: var(--ink); font-size: 15px; display: flex; align-items: center; gap: 7px; }
.comment-badge {
  background: var(--pri); color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: var(--r-sm);
}
.comment-date { color: var(--faint); font-size: 13px; margin-left: auto; }
.comment-body { color: var(--body-c); font-size: 15.5px; line-height: 1.7; overflow-wrap: anywhere; }
.comment-form { background: var(--bg-off); border-radius: var(--r-md); padding: 20px; }
.comment-form .comment-name { max-width: 220px; margin-bottom: 10px; }
.comment-form textarea { margin-bottom: 12px; }
.comment-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.comment-as { color: var(--muted); font-size: 13.5px; }

/* ---------- 회원 화면 ---------- */
.sec-member { padding: 90px 0 110px; }
.member-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); padding: 32px 30px; margin-top: 10px;
}
.form-hint { display: block; font-size: 12.5px; color: var(--faint); margin-top: 6px; }
.member-alt { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 20px; }
.member-alt a { color: var(--pri); font-weight: 700; }
.mypage-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); padding: 8px 24px; margin-top: 12px;
}
.mypage-row { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--bg-off); font-size: 15.5px; }
.mypage-row:last-child { border-bottom: none; }
.mypage-row span { color: var(--muted); }
.mypage-row b { color: var(--ink); font-weight: 600; }
.sec-denied { padding: 110px 0; }

/* 헤더의 회원 링크 */
.gnb-member { display: flex; align-items: center; gap: 10px; margin-left: 18px; font-size: 14px; }
.gnb-member a { color: var(--muted); font-weight: 600; }
.gnb-member a:hover { color: var(--pri); }

/* ---------- 게시글 본문(에디터 출력) ---------- */
.post-content h1, .post-content h2, .post-content h3, .post-content h4 {
  color: var(--ink); letter-spacing: -.02em; line-height: 1.35; margin: 1.6em 0 .6em;
}
.post-content h1 { font-size: 1.7em; }
.post-content h2 { font-size: 1.45em; }
.post-content h3 { font-size: 1.22em; }
.post-content p { margin: 0 0 1.1em; }
.post-content img { border-radius: var(--r-md); margin: 10px 0; }
.post-content a { color: var(--pri); text-decoration: underline; text-underline-offset: 3px; }
.post-content ul, .post-content ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.post-content li { margin-bottom: .4em; }
.post-content blockquote {
  margin: 1.4em 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--pri); color: var(--muted);
}
.post-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95em; }
.post-content th, .post-content td { border: 1px solid var(--line); padding: 10px 12px; }
.post-content th { background: var(--bg-off); font-weight: 700; }
.post-content pre {
  background: var(--bg-off); border-radius: 12px; padding: 16px 18px;
  overflow-x: auto; font-size: .92em;
}
.post-content hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }

/* ---------- 긴 무공백 텍스트 방어 (제목 포함) ---------- */
.about-body, .faq-a-inner > div, .feature-desc, .hero-sub, .post-content,
.hero-heading, .sec-title, .cta-heading, .faq-q, .post-title, .board-title,
.feature-name, .gallery-name, .sec-sub, .cta-sub, .loc-row, .footer-text {
  overflow-wrap: anywhere;
}

/* ===================================================================
   고급 표현 — color-mix 지원 브라우저에서만 적용
   (미지원 브라우저는 위의 단색/중성 버전을 그대로 쓴다)
   =================================================================== */
@supports (color: color-mix(in srgb, red, blue)) {
  .btn-front-pri { box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--pri) 65%, transparent); }

  .hero-bg::before {
    content: ""; position: absolute; left: 50%; top: -340px;
    width: 1100px; height: 720px; transform: translateX(-50%);
    background: radial-gradient(closest-side, color-mix(in srgb, var(--pri) 16%, transparent), transparent 70%);
    opacity: .9;
  }

  .about-img::after {
    background-image: none;
    background-color: color-mix(in srgb, var(--pri) 9%, var(--bg-off));
  }
  .about-img-empty {
    background-image:
      radial-gradient(120% 100% at 12% 0%, color-mix(in srgb, var(--pri) 30%, #fff), transparent 55%),
      radial-gradient(120% 120% at 100% 100%, color-mix(in srgb, var(--sec) 55%, #fff), transparent 60%),
      linear-gradient(150deg, var(--bg-off), #e6ebf2);
  }

  .feature-num {
    background-image: none;
    background-color: color-mix(in srgb, var(--pri) 10%, #fff);
  }

  .sec-stats { background: linear-gradient(160deg, var(--sec), color-mix(in srgb, var(--sec) 80%, var(--pri))); }
  .sec-stats::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--pri) 32%, transparent), transparent 70%); }

  .gallery-cell-empty {
    background-image:
      radial-gradient(100% 120% at 0% 0%, color-mix(in srgb, var(--pri) 22%, #fff), transparent 60%),
      linear-gradient(150deg, var(--bg-off), #e7ecf3);
  }
  .gallery-noimg {
    background-image:
      radial-gradient(100% 120% at 0% 0%, color-mix(in srgb, var(--pri) 20%, #fff), transparent 60%),
      linear-gradient(150deg, var(--bg-off), #e7ecf3);
  }

  .cta-card {
    background: linear-gradient(135deg, var(--pri), color-mix(in srgb, var(--pri) 55%, var(--sec)));
    box-shadow: 0 40px 90px -30px color-mix(in srgb, var(--pri) 55%, rgba(14, 22, 38, .4));
  }

  .form-input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--pri) 14%, transparent); }

  .board-notice {
    background-image: none;
    background-color: color-mix(in srgb, var(--pri) 11%, #fff);
  }
  .board-paging .cur { box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--pri) 70%, transparent); }

  .err-code {
    color: transparent;
    background-image: linear-gradient(135deg, var(--pri), color-mix(in srgb, var(--pri) 40%, var(--sec)));
    -webkit-background-clip: text; background-clip: text;
  }
}

/* ---------- aspect-ratio 미지원(구형 Safari) 최소 높이 확보 ---------- */
@supports not (aspect-ratio: 4 / 3) {
  .about-img-empty { min-height: 300px; }
  .gallery-cell { min-height: 220px; }
  .gallery-thumb { min-height: 200px; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
  /* 메뉴가 많은 사이트에서 헤더가 넘치지 않도록 태블릿 폭부터 버거로 전환 */
  /* 버거는 맨 오른쪽. 마크업 순서대로 두면 로고 바로 뒤에 놓여 헤더 가운데에 뜬다. */
  .nav-burger { display: block; order: 3; margin: 0 -8px 0 6px; }
  /* 로고가 줄어들지 않게 한다. 폭이 모자라면 로고부터 찌그러져 320px 에서 36px 까지 줄었다. */
  .site-logo { flex: none; }
  /* 접힌 메뉴도 헤더에서 이어지는 어두운 면이다.
     흰 면(--surface)으로 두면 메뉴 글자가 헤더 색(흰색)을 물려받아 흰 판에 흰 글씨가 된다. */
  .gnb {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--menu-bg); border-bottom: 1px solid var(--menu-line);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .75); padding: 12px 16px 20px;
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  /* 좁은 화면은 세 칸 구조를 풀고 원래대로 접힌다 */
  .header-inner { display: flex; }
  .header-actions { margin-left: auto; }
  .header-cta { padding: 9px 16px; font-size: 14px; }
  .gnb.open { display: block; }
  .gnb ul { flex-direction: column; gap: 0; width: 100%; }
  .gnb-member { margin: 8px 0 0; padding-top: 10px; border-top: 1px solid var(--line); width: 100%; }
  .gnb > ul > li > a { padding: 13px 10px; font-size: 16.5px; white-space: normal; }
  .gnb > ul > li > a::after { display: none; }
  .gnb .sub { display: block; position: static; background: none; border: none; box-shadow: none; padding: 0 0 6px 18px; min-width: 0; }
  .gnb .sub a { white-space: normal; }
  .gnb-member { border-top-color: var(--menu-line); }
  .gnb-member a { color: var(--menu-ink); }
}
@media (max-width: 900px) {
  .sec { padding: 84px 0; }
  .sec-hero { padding: 90px 0; min-height: 380px; }
  .sec-hero-tall { min-height: 520px; padding: 110px 0; }
  .about-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .sec-about.img-left .about-inner { direction: ltr; }
  .location-inner { grid-template-columns: minmax(0, 1fr); }
  .gallery-grid, .board-gallery,
  .gallery-cols-3, .gallery-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 새 섹션들 — 태블릿에서 2열로 */
  .video-grid, .video-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-grid, .pf-cols-3, .pf-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid, .stats-grid.stats-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-item { border-left: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .sec { padding: 64px 0; }
  .header-inner { height: 64px; }
  .site-header.scrolled .header-inner { height: 58px; }
  .sec-hero { min-height: 330px; padding: 70px 0; }
  .sec-hero-tall { min-height: 440px; padding: 90px 0; }
  .hero-btns { gap: 10px; }
  .btn-front { padding: 13px 24px; font-size: 15px; }
  .gallery-grid, .board-gallery,
  .gallery-cols-2, .gallery-cols-3, .gallery-cols-4 { grid-template-columns: minmax(0, 1fr); }
  .stats-grid, .stats-grid.stats-2, .stats-grid.stats-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  /* 새 섹션들 — 모바일 1열. 로고만 2열로 둔다(로고는 작아도 알아본다) */
  .video-grid, .video-cols-2, .video-cols-3 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pf-grid, .pf-cols-2, .pf-cols-3, .pf-cols-4 { grid-template-columns: minmax(0, 1fr); }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .logo-cell { height: 70px; }
  .ps-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .rvw-grid { grid-template-columns: minmax(0, 1fr); }
  .rvw-card { padding: 24px 20px 20px; }
  .cta-card { padding: 48px 24px; border-radius: var(--r-lg); }
  .contact-form { padding: 24px 18px; }
  .location-map iframe { height: 280px; }
  .faq-q { padding: 18px 18px; font-size: 15.5px; }
  .faq-a-inner > div { padding: 0 18px 18px 47px; }
}

/* ---------- 모션 축소 선호 사용자 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* animation-duration 은 줄이면 안 된다. 무한 반복인 로고 띠가 깜빡이는 화면이 된다. */
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ===== 문의 폼 추가 항목 ===== */
.form-field-wide { grid-column: 1 / -1; }
.form-check { display: inline-flex; align-items: center; gap: 8px; padding: 11px 0; }
.form-check input { accent-color: var(--pri); width: 17px; height: 17px; }
.consent-link { margin: 8px 0 0 28px; font-size: 14px; }
.consent-link a { color: var(--pri); text-decoration: underline; text-underline-offset: 3px; }

/* ===== 게시글 첨부파일 ===== */
.post-files {
  margin-top: 34px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg-off);
}
.post-files-title { font-size: 15px; font-weight: 700; margin: 0 0 12px; letter-spacing: -.01em; }
.post-files-title span { color: var(--pri); }
.post-files ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.post-files a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  text-decoration: none; color: inherit; transition: border-color .15s, transform .15s;
}
.post-files a:hover { border-color: var(--pri); transform: translateX(2px); }
.post-files a::before {
  content: ""; flex: none; width: 17px; height: 17px; background: var(--pri);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z%27/%3E%3Cpolyline points=%2714 2 14 8 20 8%27/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z%27/%3E%3Cpolyline points=%2714 2 14 8 20 8%27/%3E%3C/svg%3E") center / contain no-repeat;
}
.post-files .file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.post-files .file-size { flex: none; font-size: 13px; color: var(--muted); }

/* ===== 상담 바로가기 (우하단 고정) =====
   외부 스크립트·폰트를 쓰지 않는다. 아이콘은 CSS 마스크로 그린다.
   팝업 레이어(z-index 130)보다 낮게 두어 팝업을 가리지 않는다. */
.float-cta {
  position: fixed; right: 18px; bottom: 18px; z-index: 110;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.float-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 17px 11px 14px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 700; letter-spacing: -.01em; text-decoration: none;
  box-shadow: 0 10px 26px -10px rgba(12, 18, 34, .45);
  transition: transform .15s, box-shadow .15s;
}
.float-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(12, 18, 34, .5); }
.float-btn:active { transform: translateY(0); }
.float-ico { flex: none; width: 19px; height: 19px; background: currentColor; }
/* 카카오는 브랜드 지정색을 그대로 쓴다 — 노란 배경 + 검정 심볼 */
.float-kakao { background: #fee500; color: #191600; }
.float-kakao .float-ico { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27black%27%3E%3Cpath d=%27M12 3C6.9 3 2.8 6.3 2.8 10.3c0 2.6 1.7 4.9 4.3 6.2-.2.7-.7 2.5-.8 2.9 0 0 0 .2.1.3.1 0 .2 0 .3-.1.4-.2 2.8-1.9 3.5-2.4.6.1 1.2.1 1.8.1 5.1 0 9.2-3.3 9.2-7.3S17.1 3 12 3z%27/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27black%27%3E%3Cpath d=%27M12 3C6.9 3 2.8 6.3 2.8 10.3c0 2.6 1.7 4.9 4.3 6.2-.2.7-.7 2.5-.8 2.9 0 0 0 .2.1.3.1 0 .2 0 .3-.1.4-.2 2.8-1.9 3.5-2.4.6.1 1.2.1 1.8.1 5.1 0 9.2-3.3 9.2-7.3S17.1 3 12 3z%27/%3E%3C/svg%3E") center / contain no-repeat; }
.float-talk { background: #03c75a; color: #fff; }
.float-talk .float-ico { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27black%27%3E%3Cpath d=%27M12 3C6.9 3 2.8 6.3 2.8 10.3c0 2.6 1.7 4.9 4.3 6.2-.2.7-.7 2.5-.8 2.9 0 0 0 .2.1.3.1 0 .2 0 .3-.1.4-.2 2.8-1.9 3.5-2.4.6.1 1.2.1 1.8.1 5.1 0 9.2-3.3 9.2-7.3S17.1 3 12 3z%27/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27black%27%3E%3Cpath d=%27M12 3C6.9 3 2.8 6.3 2.8 10.3c0 2.6 1.7 4.9 4.3 6.2-.2.7-.7 2.5-.8 2.9 0 0 0 .2.1.3.1 0 .2 0 .3-.1.4-.2 2.8-1.9 3.5-2.4.6.1 1.2.1 1.8.1 5.1 0 9.2-3.3 9.2-7.3S17.1 3 12 3z%27/%3E%3C/svg%3E") center / contain no-repeat; }
.float-tel { background: var(--pri); color: #fff; }
.float-tel .float-ico { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27black%27%3E%3Cpath d=%27M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.4.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.4 0 .8-.2 1.1l-2.3 2.1z%27/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27black%27%3E%3Cpath d=%27M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.4.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.4 0 .8-.2 1.1l-2.3 2.1z%27/%3E%3C/svg%3E") center / contain no-repeat; }

@media (min-width: 768px) {
  .float-cta-m { display: none; }
}

/* ===================================================================
   v0.13 — 서체 3역할 · 다크 스킨 · 브랜드 그라디언트 · 벤토
   =================================================================== */

/* ---------- 1. 디스플레이 서체를 제목에만 건다.
   본문까지 바꾸면 긴 글의 가독성이 떨어진다. 제목은 인상, 본문은 읽기다. ---------- */
h1, h2, h3,
.hero-heading, .sec-title, .cta-heading, .stats-value,
.bento-title, .duo-title, .post-title, .board-title, .feature-title {
  font-family: var(--font-display);
  letter-spacing: var(--ls-display);
}
.sec-sub, .hero-sub, .cta-sub { letter-spacing: var(--ls-tight); }

/* ---------- 2. 숫자 전용 서체.
   한글 서체에 딸린 숫자는 평범해서 성과 수치가 서지 않는다.
   단위(배·건·개)는 한글이라 본문 서체로 떨어지므로 크기를 낮춰 베이스라인을 맞춘다.
   이 분리를 안 하면 "2.4배"의 '배'가 숫자와 같은 크기로 붙어 어설퍼 보인다. ---------- */
.num {
  font-family: var(--font-num);
  font-weight: 700;
  font-stretch: 118%;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.num-u {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .62em;
  letter-spacing: -.02em;
  margin-left: .12em;
}
/* 숫자가 아닌 값("월 3건 → 11건")은 통째로 본문 서체 + 작은 크기로 떨어진다 */
.metric-text { font-family: var(--font-body); font-weight: 700; font-size: .46em; line-height: 1.45; letter-spacing: -.02em; }

/* ---------- 3. 브랜드 그라디언트 유틸 ---------- */
.gtext {
  /* <em> 은 기본이 기울임이다. 한글 서체에는 진짜 이탤릭이 없어 브라우저가 억지로 기울이는데
     G마켓 산스처럼 각진 서체에서는 획이 찌그러져 보인다. 반드시 정체로 되돌린다. */
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  /* 폴백: background-clip:text 미지원이면 글자가 사라지므로 색을 먼저 준다 */
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .gtext { color: var(--brand-text); background: none; }
}
.btn-front-grad {
  background: var(--grad-btn);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 34px -16px rgba(28, 62, 130, .8);
}
.btn-front-grad:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-front-grad:active { transform: translateY(0); }

/* 필 라벨 — 이미지 위에 겹쳐 성과·분류를 얹는다 */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: -.01em;
  background: var(--surface-2); color: var(--body-c);
  border: 1px solid var(--line);
}
.pill-grad { background: var(--grad-btn); color: #fff; border-color: transparent; }
.pill-dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: .85;
}

/* ---------- 4-a. 오프화이트 스킨 (settings.skin = soft)
   순백을 쓰지 않는 이유: 대전 경쟁사가 전부 흰 배경 + 파랑이라 순백으로는 아무것도 갈리지 않는다.
   대신 워드마크 차콜(#393636) 쪽으로 아주 조금 기울인 웜 뉴트럴을 바탕으로 쓴다 —
   크림/베이지까지 가면 그것대로 흔한 조합이 되므로 채도는 최소로만 남긴다.

   전면 다크를 쓰지 않는 이유: ① 벤토의 사례 카드가 고객사 사이트 스크린샷인데 그 사이트들이
   거의 전부 흰 배경이라 차콜 위에서 부조화가 난다. ② 이 사이트는 빌더의 데모이므로
   전면 다크는 "이 회사는 어두운 사이트를 만든다"로 읽힌다.
   그래서 차콜은 스크린샷이 없는 강조 섹션에서만 쓴다. */
:root[data-skin="soft"] {
  color-scheme: light;

  --page:       #F2F1EE;
  --surface:    #FBFAF8;   /* 카드도 순백을 쓰지 않는다 */
  --surface-2:  #F7F6F3;
  /* 헤더는 밝은 본문 위에서도 어둡게 유지한다.
     스크롤할 때 어두운 첫 화면 → 밝은 헤더로 뒤집히면 그 순간이 눈에 걸린다.
     대형 에이전시 사이트가 헤더를 계속 어둡게 두는 이유다(NHN AD 실측 #161616). */
  --header-bg:  rgba(14, 19, 28, .92);
  --header-ink: rgba(255, 255, 255, .82);
  --header-line: rgba(255, 255, 255, .12);

  --ink:    #1A1817;       /* 순검정이 아니라 워드마크 차콜 계열 */
  --body-c: #4A4643;
  --muted:  #6B6664;       /* 로고 서브그레이(#727171) 를 본문 대비 4.5:1 까지 눌러 만든 값 */
  --faint:  #8B8582;
  --bg-off: #E9E7E3;
  --line:   #DFDCD7;
  --input-line: #D3CFC9;

  --sh-sm: 0 1px 2px rgba(26, 24, 23, .05);
  --sh-md: 0 16px 38px -16px rgba(26, 24, 23, .20);
  --sh-lg: 0 38px 76px -28px rgba(26, 24, 23, .28);

  /* 글자에 얹는 그라디언트는 로고 값 그대로 — 밝은 바탕에서 대비를 벌어야 하므로 어두워야 한다. */
  --grad-text: linear-gradient(118deg, #1B2F63 0%, #2C58A6 100%);

  /* 큰 면(버튼·패널·배지)에 깔리는 그라디언트는 **채도를 올린 변주**를 쓴다.
     실측: 뷰리드 #4225F9 는 채도 95% / 밝기 56%, 로고에서 그대로 뽑은 #2C58A6 은 58% / 41%.
     색상(hue)은 218° 대 248° 로 둘 다 파랑이라 문제가 아니었고, **눌린 채도**가 원인이었다.
     #3366E0 은 색상 222° 로 로고와 4° 차이라 함께 놓아도 싸우지 않으면서 채도가 74% 로 올라간다.
     흰 글자 대비 5.1:1 로 밝은 끝에서도 읽힌다. */
  --grad-btn:  linear-gradient(118deg, #1E357A 0%, #3366E0 100%);
  --brand-text: #2B55B8;
  --dark-bg: var(--dark-2);   /* 강조 섹션 — 아주 옅게 파랑이 도는 깊은 검정 */
}
/* [규칙] 여백·크기·배치는 **절대 스킨에 묶지 않는다.**
   한동안 섹션 여백을 오프화이트 스킨 안에만 두었더니, 어둡게 전환하면 여백이 96px → 118px 로 튀어
   섹션 14개에서 약 616px 차이가 났다. 색만 스킨을 따르고 구조는 모든 스킨에서 같아야 한다.
   여백 값 자체는 위쪽 :root 의 --sec-pad / --sec-pad-tight 토큰이 갖는다. */

/* ---------- 4. 다크 스킨 (settings.skin = dark)
   슬레이트가 아니라 웜 뉴트럴이다 — 워드마크 차콜 #393636 을 어둡게 내린 램프.
   배경을 네이비로 깔면 심볼 그라디언트의 어두운 끝(#1B2F63)이 배경에 묻힌다. ---------- */
:root[data-skin="dark"] {
  color-scheme: dark;

  --page:      #151313;
  --surface:   #201D1D;
  --surface-2: #2A2626;
  --header-bg: rgba(13, 17, 25, .80);

  --ink:    #F6F4F3;
  --body-c: #C6C1BF;
  --muted:  #968F8D;
  --faint:  #8A8381;
  --bg-off: #1C1A1A;
  --line:   #332F2F;
  --input-line: #443E3E;
  --btn-white: #F6F4F3;

  --sh-sm: 0 1px 2px rgba(0, 0, 0, .45);
  --sh-md: 0 18px 40px -18px rgba(0, 0, 0, .75);
  --sh-lg: 0 40px 84px -30px rgba(0, 0, 0, .85);

  /* 로고 그라디언트를 글자에 그대로 얹으면 어두운 끝이 배경에 묻힌다(대비 1.9:1).
     흐름(어두운 남색 → 밝은 파랑)은 유지하고 명도만 올린 변주를 글자에 쓴다.
     버튼은 흰 글자를 얹으므로 양 끝 모두 4.5:1 을 넘는 범위로 눌러 둔다. */
  --grad-text: linear-gradient(118deg, #4E86D8 0%, #9CC2F5 100%);
  --grad-btn:  linear-gradient(118deg, #1F3B7E 0%, #3670C6 100%);
  --brand-text: #7FAEF0;
  /* 전면 다크에서 "진한 배경" 섹션은 페이지보다 **더** 어두워야 강조로 읽힌다.
     밝은 스킨의 값(#1E1B1A)을 그대로 두면 페이지(#151313)보다 밝아져 강조가 뒤집힌다. */
  --dark-bg: #05080E;
}
:root { --grad-btn: var(--grad); }

/* 색이 var(--pri) 로 고정돼 있던 곳을 다크에서 읽히는 값으로 돌린다.
   원색 파랑을 어두운 배경의 "글자"로 쓰면 대비가 무너진다(액센트는 배경용, 글자는 별도 토큰). */
:root[data-skin="dark"] .loc-label,
:root[data-skin="dark"] .loc-row a:hover,
:root[data-skin="dark"] .post-files-title span,
:root[data-skin="dark"] .consent-link a,
:root[data-skin="dark"] .comment-badge,
:root[data-skin="dark"] a.gnb-link:hover { color: var(--brand-text); }
:root[data-skin="dark"] .form-notice-ok  { background: #12241a; color: #6ee7a8; border-color: #1e4531; }
:root[data-skin="dark"] .form-notice-err { background: #2a1616; color: #f8a0a0; border-color: #542626; }
:root[data-skin="dark"] .float-tel { background: var(--grad-btn); }
:root[data-skin="dark"] .site-header.scrolled { box-shadow: 0 8px 30px -20px #000; }
/* 다크에서 브랜드 틴트 배경은 흰 레이어를 덮으면 다시 밝아진다 — 검정 레이어로 뒤집는다 */
:root[data-skin="dark"] .sec-bg-brand {
  background-color: var(--sec);
  background-image: linear-gradient(rgba(21, 19, 19, .86), rgba(21, 19, 19, .86));
}
:root[data-skin="dark"] .sec-bg-dark { background: #100E0E; color: var(--body-c); }
:root[data-skin="dark"] .gallery-thumb,
:root[data-skin="dark"] .pf-thumb,
:root[data-skin="dark"] .location-map { background: var(--surface-2); }

/* ---------- 5. 히어로 "lead" 변형 — 좌 카피 / 우 스크린샷 콜라주 ----------
   기존 hero(변형 classic)는 그대로 둔다. 필드를 더했을 뿐이라 기존 설치본의 렌더는 바뀌지 않는다. */
/* 컨테이너 폭은 헤더(.wrap 1200px)와 반드시 같아야 한다.
   히어로만 1340px 로 넓혔더니 로고보다 카피가 70px 더 왼쪽으로 나가 좌측 정렬선이 어긋났다.
   첫 화면이라 넓게 쓰고 싶더라도, 로고와 본문의 시작점이 안 맞는 손해가 훨씬 크다. */
/* 첫 화면은 화면 높이를 채운다 — 헤더를 뺀 나머지 전부.
   메인 비주얼이 화면보다 작으면 다음 섹션이 같이 보여 "첫 화면"이 성립하지 않는다. */
.sec-hero-lead {
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center;
  padding-top: 60px; padding-bottom: 60px;
}
.sec-hero-lead > .wrap { width: 100%; }
.hero-lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.hero-eyebrow { margin-bottom: 22px; }
/* 색이 브랜드에 묶이고 배경까지 얌전해진 만큼, 인상은 전부 타이포가 만든다.
   굵기(400 ↔ 900)와 크기(0.42배)와 색(muted ↔ 그라디언트)을 한꺼번에 벌린다.
   셋 중 하나만 쓰면 "조금 큰 제목"이지만 셋을 겹치면 두 문장이 다른 층으로 읽힌다. */
/* G마켓 산스는 Light 300 / Medium 500 / Bold 700 세 단계다.
   가변 서체가 아니라 900 을 쓸 수 없으므로 굵기 대비는 300 ↔ 700 으로 내고,
   모자란 만큼 크기(0.34배)와 색(muted ↔ 그라디언트)에서 더 벌린다. */
/* NHN AD 실측: 60px / 800 / 줄간 78px(1.3) / 자간 normal.
   자간을 조이지 않는 것이 핵심이다 — 큰 글자를 -3.5% 로 조이면 압축된 인상이 되고,
   대형 에이전시 사이트는 오히려 자간을 그대로 두어 여유를 만든다. */
.hero-lead .hero-heading {
  font-size: var(--fs-hero);
  line-height: 1.3;
  letter-spacing: normal;
  margin: 0 0 30px;
  font-weight: 800;
}
.hero-lead .hero-heading .quiet {
  display: block;
  font-size: .5em;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: normal;
  line-height: 1.4;
  margin-bottom: .1em;
}
.hero-lead .hero-heading em {
  display: block;
  font-style: normal;
  font-weight: 700;
}
.hero-lead .hero-sub { font-size: var(--fs-lead); max-width: 34em; margin: 0 0 30px; color: var(--body-c); }
.hero-lead .hero-btns { margin-bottom: 34px; }

/* 신뢰 줄 — 히어로 하단에 숫자 3개. 스크롤 없이 "규모"가 보이게 한다 */
/* flex-wrap 으로 두면 375px 에서 2개 + 1개로 접혀 마지막 숫자만 아랫줄에 남는다.
   칸 수를 고정하지 않고 auto-fit 으로 두어 항목이 2개든 4개든 고르게 나뉘게 한다. */
.hero-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 18px 28px; padding-top: 26px; border-top: 1px solid var(--line);
}
/* 성과 숫자에는 그라디언트를 얹는다. 이 사이트에서 그라디언트를 쓰는 곳은
   ① 성과 숫자 ② CTA ③ 강조 헤드라인 ④ 카드 경계 ⑤ 단계 연결선 — 전부 요소 단위다.
   배경 전면에 깔면 로고에서 온 색이 그냥 "파란 배경"이 되어 근거가 사라진다.

   주의: 어두운 이미지 위에 얹힌 숫자(.bento-case .metric-v)는 제외한다 —
   그 자리의 --grad-text 는 밝은 배경 기준이라 이미지 위에서 묻힌다. */
.hero-fact-v, .bento-stat-v, .stmt-line-v {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-fact-v, .bento-stat-v, .stmt-line-v { color: var(--ink); background: none; }
}
.hero-fact-v { font-size: var(--fs-num-sm); line-height: 1.1; display: block; }
.hero-fact-l { font-size: var(--fs-xs); color: var(--muted); margin-top: 6px; display: block; letter-spacing: -.01em; }

/* 콜라주 — absolute 대신 겹치는 grid 영역으로 짠다. 절대좌표는 화면 폭이 바뀌면 무너진다 */
.hero-collage { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(22px, 2.6vw, 36px); }
.hero-shot {
  position: relative; overflow: hidden;
  border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--surface-2); box-shadow: var(--sh-lg);
}
.hero-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-shot-1 { grid-column: 1 / 5;  grid-row: 1 / 9;  z-index: 1; }
.hero-shot-2 { grid-column: 4 / 7;  grid-row: 4 / 11; z-index: 3; }
.hero-shot-3 { grid-column: 2 / 5;  grid-row: 9 / 15; z-index: 2; }
.hero-badge {
  position: absolute; z-index: 4; left: 4%; bottom: 8%;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6);
}
.hero-badge-v { font-size: 15px; }

/* 스크롤 반응 — JS 는 진행도(--sh, 0~1)만 넘기고 변형은 여기서 한다.
   has-motion 이 없으면(모션 비선호·JS 실패) --sh 가 영원히 0 이라 아무 일도 일어나지 않는다.

   :not(.rv) 로 막아 두는 이유: 등장 리빌이 끝나야(JS 가 .rv 를 걷어내야) 스크롤 반응이 시작된다.
   이 조건이 없으면 스크롤 규칙이 리빌의 transform 을 덮어써 진입 애니메이션이 통째로 사라진다. */
.has-motion .hero-lead .hero-heading:not(.rv),
.has-motion .hero-lead .hero-sub:not(.rv) {
  transform: translateY(calc(var(--sh, 0) * -20px));
  opacity: calc(1 - var(--sh, 0) * .6);
}
.has-motion .hero-lead .hero-collage:not(.rv) { transform: translateY(calc(var(--sh, 0) * 30px)); }

/* ---------- 6. 벤토 그리드 ----------
   성격이 다른 콘텐츠(사례·숫자·영상·문구)를 하나의 시각 체계로 묶기 위한 레이아웃. */
/* 섹션 제목·부제는 왼쪽에 붙인다.
   제목은 왼쪽인데 부제만 가운데로 가면 두 줄의 시작점이 어긋나 정돈되지 않아 보인다. */
.sec-bento .sec-title, .sec-bento .sec-sub,
.sec-duo .sec-title, .sec-duo .sec-sub,
.sec-tpl .sec-title, .sec-tpl .sec-sub { text-align: left; margin-left: 0; margin-right: 0; }
.sec-bento .sec-sub, .sec-duo .sec-sub, .sec-tpl .sec-sub { max-width: 56ch; }

/* 섹션 위의 작은 라벨 — 그라디언트를 글자에 얹는 자리 중 하나.
   제목까지 그라디언트로 하면 읽는 글이 장식이 되므로 라벨에서만 쓴다. */
.kicker {
  display: block; margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .kicker { color: var(--brand-text); background: none; }
}
/* 가운데 정렬 제목의 장식 막대도 그라디언트로 */
.sec-title.text-center::before, .sec-about .sec-title::before { background: var(--grad-text); }

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(178px, auto);
  gap: 14px;
  margin-top: 44px;
}
.bento-card {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.bento-card:hover { border-color: var(--line-hi, var(--input-line)); transform: translateY(-3px); box-shadow: var(--sh-md); }
.bento-hit { display: flex; flex-direction: column; height: 100%; padding: 22px 24px; color: inherit; }
.bento-lg { grid-column: span 2; grid-row: span 2; }
.bento-md { grid-column: span 2; }
.bento-sm { grid-column: span 1; }

.bento-title { font-size: var(--fs-h3); font-weight: 800; margin: 0 0 8px; color: var(--ink); line-height: 1.3; }
.bento-desc { font-size: var(--fs-sm); color: var(--muted); margin: 0; line-height: 1.6; }
.bento-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.bento-go { flex: none; font-size: 18px; color: var(--faint); transition: transform .25s var(--ease), color .25s; }
.bento-card:hover .bento-go { transform: translate(3px, -3px); color: var(--brand-text); }

/* 숫자 카드 */
.bento-stat .bento-hit { justify-content: flex-end; }
.bento-stat-v { font-size: var(--fs-num-sm); line-height: 1.05; }
.bento-stat-l { font-size: var(--fs-sm); color: var(--muted); margin-top: 8px; }

/* 문구 카드 — 경쟁사에 없는 한 칸 */
.bento-note .bento-hit { justify-content: center; }
.bento-note .bento-title { font-size: clamp(20px, 1.9vw, 29px); }

/* 이미지가 깔리는 카드(사례·영상·이미지)는 공통 처리.
   어둡게 덮는 층이 없으면 밝은 스크린샷 위의 흰 글자가 통째로 사라진다 — 실제로 그 상태를 만들었다. */
.has-shot .bento-shot { position: absolute; inset: 0; }
.has-shot .bento-shot img { width: 100%; height: 100%; object-fit: cover; }
.has-shot .bento-shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16, 14, 14, .18) 0%, rgba(16, 14, 14, .82) 60%, rgba(16, 14, 14, .95) 100%);
  transition: opacity var(--dur) var(--ease);
}
.has-shot .bento-title { color: #fff; }
.has-shot .bento-desc { color: rgba(255, 255, 255, .76); }
.has-shot .bento-hit { position: relative; z-index: 2; justify-content: flex-end; }

/* 영상 카드 — 자동재생하지 않는다. 포스터 이미지 + 재생 표시만.
   재생 표시는 오른쪽 위에 둔다. 왼쪽 아래에 두면 카드 제목과 겹친다. */
.bento-play {
  position: absolute; z-index: 3; right: 20px; top: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: grid; place-items: center;
}
.bento-play::after { content: ""; border-left: 13px solid #151313; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }

/* ---------- 7. 시그니처 — 성과 오버레이 ----------
   기본은 스크린샷만 보인다(제작사의 언어). 카드에 반응하면 화면이 물러나며
   그 사이트가 만든 성과가 위로 올라온다(마케팅사의 언어). 두 언어가 한 카드에서 겹치는 것이
   이 회사의 포지셔닝 그 자체다.

   JS 가 없거나 reduced-motion 이면 오버레이를 만들지 않고 성과를 그냥 아래에 둔다 —
   그래야 "동작하지 않으면 성과가 아예 안 보이는" 상태가 생기지 않는다. */
.bento-metrics { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 16px; }
.metric-v { display: block; font-size: var(--fs-num-sm); line-height: 1.05; color: #fff; }
.metric-l { display: block; font-size: var(--fs-xs); color: rgba(255, 255, 255, .68); margin-top: 5px; letter-spacing: -.01em; }
.bento-case .metric-v { color: #fff; }

.has-motion .bento-case .bento-shot img { transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease); }
.has-motion .bento-case .bento-metrics {
  position: absolute; left: 24px; right: 24px; bottom: 22px;
  margin: 0; opacity: 0; transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  pointer-events: none;
}
.has-motion .bento-case .metric { opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.has-motion .bento-case .bento-copy { transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }

.has-motion .bento-case.is-on .bento-shot img { transform: scale(1.06); filter: brightness(.55) saturate(.9); }
.has-motion .bento-case.is-on .bento-copy { opacity: 0; transform: translateY(-10px); }
.has-motion .bento-case.is-on .bento-metrics { opacity: 1; transform: none; }
.has-motion .bento-case.is-on .metric { opacity: 1; transform: none; }
/* 지표가 한 줄씩 시간차로 올라온다 — 한꺼번에 뜨면 "정보"이고, 어긋나면 "장면"이 된다 */
.has-motion .bento-case.is-on .metric:nth-child(1) { transition-delay: .06s; }
.has-motion .bento-case.is-on .metric:nth-child(2) { transition-delay: .13s; }
.has-motion .bento-case.is-on .metric:nth-child(3) { transition-delay: .20s; }
.has-motion .bento-case.is-on .metric:nth-child(4) { transition-delay: .27s; }

.bento-card:focus-visible,
.bento-hit:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 3px; }

/* 카드 hover 시 브랜드 그라디언트 테두리.
   테두리를 그라디언트로 칠하려면 마스크로 안쪽을 도려내야 한다.
   미지원 브라우저에서는 opacity 0 인 층이 그냥 남으므로 화면이 깨지지 않는다. */
.bento-card::after, .tpl-card::after {
  content: ""; position: absolute; inset: 0; z-index: 4;
  border-radius: inherit; padding: 1.5px;
  background: var(--grad-text);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0; transition: opacity .28s var(--ease); pointer-events: none;
}
.bento-card:hover::after, .tpl-card:hover::after { opacity: 1; }

/* ---------- 8. 좌우 2분할 진입 ----------
   두 패널은 같은 서체 체계를 쓰고 색으로만 구분한다.
   서로 다른 디자인처럼 보이면 두 사업 모두 신뢰를 잃는다. */
.duo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 42px; }
.duo-ratio-60 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.duo-ratio-70 { grid-template-columns: minmax(0, 2.33fr) minmax(0, 1fr); }
.duo-panel {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  border-radius: var(--r-lg); padding: clamp(28px, 3.2vw, 46px);
  min-height: 330px;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.duo-panel:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.duo-a { background: var(--surface); border: 1px solid var(--line); }
.duo-b { background: var(--grad-btn); color: #fff; border: 1px solid transparent; }
/* 이미지는 배경으로 깔되 완전히 묻히지 않게 둔다.
   .16 은 사실상 안 보이는 값이라 "이미지를 넣었는데 아무 일도 안 일어난다"가 된다. */
.duo-img { position: absolute; inset: 0; opacity: .34; overflow: hidden; }
.duo-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(20, 18, 18, .35) 0%, rgba(20, 18, 18, .88) 62%);
}
.duo-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.duo-panel:hover .duo-img img { transform: scale(1.06); }
.duo-b .duo-img { opacity: .26; }
.duo-body { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; }
.duo-kicker {
  display: inline-block; align-self: flex-start; margin-bottom: 16px;
  padding: 6px 13px; border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: -.01em;
  background: var(--surface-2); color: var(--body-c); border: 1px solid var(--line);
}
.duo-b .duo-kicker { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .28); }
.duo-title { font-size: clamp(25px, 2.6vw, 36px); font-weight: 700; margin: 0 0 12px; line-height: 1.22; color: var(--ink); }
.duo-b .duo-title { color: #fff; }
.duo-desc { margin: 0 0 22px; color: var(--muted); font-size: var(--fs-sm); line-height: 1.65; }
.duo-b .duo-desc { color: rgba(255, 255, 255, .82); }
.duo-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 9px; }
.duo-list li { position: relative; padding-left: 20px; font-size: var(--fs-sm); font-weight: 600; color: var(--body-c); }
.duo-b .duo-list li { color: rgba(255, 255, 255, .92); }
.duo-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--grad-text);
}
.duo-b .duo-list li::before { background: #fff; }
/* CTA 는 패널당 정확히 하나. 항목이 몇 개든 항상 바닥에 붙어 두 패널의 버튼 높이가 맞는다. */
.duo-cta {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  padding-bottom: 6px; border-bottom: 2px solid currentColor;
  color: var(--brand-text);
  transition: gap .2s var(--ease);
}
.duo-b .duo-cta { color: #fff; }
.duo-cta:hover { gap: 14px; }

/* ---------- 9. 업종별 템플릿 ---------- */
/* ---- 업종 필터 (솔루션 3종 공용) ----
   섹션 제목과 **같은 선에서** 시작한다. 위쪽 카테고리 탭줄은 화면 가운데에 서는데,
   그건 페이지를 통째로 바꾸는 장치고 이건 그 안을 좁히는 장치라 위계가 다르다.
   둘을 같이 가운데 두면 어느 것이 상위인지 사라진다. */
/* ---- 업종 칩 줄 — 접지 않고 **한 줄로 이어서 옆으로 민다** ----
   [주의] 접어서 쌓는 방식을 먼저 썼는데, 열다섯 개가 세 줄(140px)로 쌓이니 카드가 보이기 전에
   화면 위쪽을 필터가 차지했다. 줄이 늘수록 답답해지고, 업종이 더 늘면 더 나빠진다.
   한 줄로 두면 개수가 스물이 되든 서른이 되든 세로 높이는 그대로다.

   [주의] justify-content: center 만으로는 안 된다. 내용이 넘칠 때 가운데 정렬은 **왼쪽 끝을
   화면 밖으로 밀어내** 첫 칩("전체")에 스크롤로 닿을 수 없게 만든다.
   첫·마지막 칩에 auto 여백을 주면, 자리가 남을 때만 가운데로 모이고 넘칠 때는 0 이 된다. */
.sol-filters {
  display: flex; flex-wrap: nowrap; gap: 12px;
  margin: 26px 0 30px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none;                 /* 파이어폭스 */
  padding-bottom: 4px;                   /* 그림자·외곽선이 잘리지 않게 */
  /* 양끝 페이드. 배경색을 덮는 띠가 아니라 **내용 자체를 흐리게** 지우는 방식이라
     판 색이 무엇이든(밝은 스킨·어두운 스킨) 그대로 맞는다.
     [주의] 늘 걸어 두면 안 된다 — 밀 곳이 없는데도 첫 칩이 잘려 보인다.
     theme.js 가 스크롤 위치를 보고 필요한 쪽에만 클래스를 붙인다. */
  --fade-l: 0px; --fade-r: 0px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l),
                      #000 calc(100% - var(--fade-r)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l),
              #000 calc(100% - var(--fade-r)), transparent 100%);
}
.sol-filters::-webkit-scrollbar { display: none; }   /* 웹킷 */
.sol-filters.can-l { --fade-l: 44px; }
.sol-filters.can-r { --fade-r: 44px; }
.sol-filters > .sol-chip:first-child { margin-left: auto; }
.sol-filters > .sol-chip:last-child  { margin-right: auto; }
@media (max-width: 768px) { .sol-filters { gap: 8px; } }
.sol-chip {
  /* 알약 모양. 각진 칩은 아래 카드(모서리 반경이 작은 사각형)와 같은 형태라
     "카드가 작아진 것"으로 읽힌다 — 고르는 장치는 보는 것과 형태가 달라야 한다.
     [주의] flex: none 이 없으면 한 줄에 열다섯 개를 밀어 넣느라 칩이 찌그러지고
     글자가 두 줄로 접힌다. 원래 크기를 지켜야 옆으로 밀리는 줄이 된다. */
  flex: none; white-space: nowrap;
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: var(--fs-sm); font-weight: 700; letter-spacing: -.01em;
  background: var(--surface); color: var(--muted); border: 1px solid var(--line);
  transition: color .18s, border-color .18s, background .18s;
}
.sol-chip:hover { color: var(--ink); border-color: var(--input-line); }
/* 좁은 화면에서는 칩이 여섯 줄까지 쌓인다 — 글자와 여백을 한 단계 줄여 줄 수를 낮춘다 */
@media (max-width: 768px) { .sol-chip { padding: 8px 15px; font-size: var(--fs-xs); } }
.sol-chip:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; }
.sol-chip.is-on { background: var(--grad-btn); color: #fff; border-color: transparent; }
/* JS 가 없으면 필터는 동작하지 않는다 — 눌러도 반응 없는 버튼을 두느니 숨기고 전량을 보여준다 */
html:not(.has-js) .sol-filters { display: none; }

/* ---- 홈페이지 템플릿 카드 ----
   [주의] 칸을 auto-fit 으로 두면 1440px 에서 다섯 칸까지 벌어진다. 카드가 258px 로 좁아져
   기능 목록이 두 줄씩 접히고 아래 두 단추가 세로로 쌓였다. **최대 세 칸**으로 못 박는다 —
   카드 안에 들어갈 것이 정해져 있으면 칸 수도 정해져야 한다. */
/* 간격도 포트폴리오 격자(.gb-grid)와 같은 값이다 — 폭만 맞추고 간격이 다르면
   카드 크기가 어긋나서 두 화면을 오갈 때 결국 다르게 보인다. 이 값이라야 카드가 372px 로 같아진다. */
.tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(30px, 3.4vw, 52px) clamp(18px, 2.2vw, 32px); }
@media (max-width: 1080px) { .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .tpl-grid { grid-template-columns: minmax(0, 1fr); } }

.tpl-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
/* 그림자는 평소에 거의 없다가 올렸을 때 깊어진다 — 카드가 판에서 떠오르는 것처럼 보인다 */
.has-motion .tpl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -28px rgba(15, 23, 42, .45);
  border-color: var(--input-line);
}
.tpl-card[hidden] { display: none; }

/* 2:1 — 그림 아래 인쇄돼 있던 상호 띠를 잘라 낸 뒤의 실제 비율(900x453 = 1.987)에 맞춘 값이다.
   [주의] 16:9 로 두면 좌우가 10% 잘린다. 스크린샷에서 좌우 끝은 내용이 있는 자리라 잘리면 안 된다.
   원본을 갈아 끼울 일이 생기면 이 값도 함께 본다. */
.tpl-thumb { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: var(--surface-2); }
.tpl-thumb img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform .6s var(--ease-out);
}
/* 판은 그대로 두고 **그림만** 커진다 — 카드까지 같이 커지면 격자가 흔들려 보인다 */
.has-motion .tpl-card:hover .tpl-thumb img { transform: scale(1.06); }
.tpl-noimg {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: 0 clamp(18px, 2vw, 30px); text-align: center;
  background: linear-gradient(158deg, var(--dark-1), var(--dark-2));
}
.tpl-noimg > span {
  font-size: clamp(15px, 1.3vw, 18px); font-weight: 700; letter-spacing: -.02em;
  color: rgba(255, 255, 255, .88); word-break: keep-all; line-height: 1.45;
}

/* 카드가 넓어질수록 안쪽 여백도 함께 커진다 — 여백을 고정하면 큰 카드일수록
   글이 테두리에 붙어 보여서 카드만 커지고 짜임새는 그대로인 것처럼 읽힌다. */
.tpl-body { padding: clamp(22px, 2.3vw, 38px); display: flex; flex-direction: column; flex: 1; }
.tpl-name {
  /* 제목과 아래 이름은 **한 덩어리**로 읽혀야 한다 — 사이를 벌리면 별개의 두 정보로 보인다 */
  margin: 0 0 3px; font-size: clamp(18px, 1.5vw, 21px); font-weight: 800;
  letter-spacing: -.03em; color: var(--ink); line-height: 1.35; word-break: keep-all;
}
/* 시안 이름은 제목을 나누는 곁말이다. 색을 한 단계 더 빼서 제목이 먼저 읽히게 한다 */
.tpl-sub { margin: 0; font-size: 13.5px; font-weight: 500; color: var(--faint); letter-spacing: -.01em; }
.tpl-desc { margin: 9px 0 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }

/* 기능은 문장이 아니라 **확인 목록**이다 — 고르는 사람은 읽지 않고 훑는다 */
.tpl-feats { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.tpl-feats li {
  display: flex; align-items: flex-start; gap: 9px;
  /* 여기가 카드에서 **실제로 읽히는** 줄이다 — 곁말(.tpl-sub)보다 진해야 한다.
     둘 다 흐리게 두면 카드 안에서 무엇을 읽어야 할지 알 수 없다. */
  font-size: 13.5px; line-height: 1.55; letter-spacing: -.01em;
  color: var(--body-c); word-break: keep-all;
}
.tpl-feat-ico {
  flex: none; width: 15px; height: 15px; margin-top: 2px;
  stroke: var(--brand-text); stroke-width: 2.4; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}

/* 두 단추는 카드 바닥에 붙는다. 위와 선 하나로 끊어 "여기부터는 행동"임을 표시한다 */
.tpl-actions {
  margin-top: auto; padding-top: clamp(18px, 1.8vw, 24px);
  margin-bottom: 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.tpl-actions.is-solo { grid-template-columns: minmax(0, 1fr); }   /* 데모가 없으면 문의가 폭을 다 쓴다 */
.tpl-btn {
  display: block; text-align: center;
  padding: 12px 10px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 700; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background .18s, color .18s, border-color .18s;
}
/* 데모는 **보조**다 — 눌러도 우리에게 오지 않고 다른 창으로 나간다 */
.tpl-btn-demo { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.tpl-btn-demo:hover { background: var(--line); }
/* 문의가 이 카드의 목적이다. 화면에서 유일하게 색을 채운 자리로 둔다 */
.tpl-btn-ask { background: var(--grad-btn); color: #fff; }
/* 호버는 밝기를 올리는 대신 **그라디언트를 흘린다** — 이 사이트의 주 버튼이 전부 그렇게 움직인다 */
.tpl-btn-ask:hover { background-position: 100% 0; }
.tpl-btn:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; }

/* 단추 아래에 한 칸 띄우고 가운데. 왼쪽 구석에 붙여 두면 흘린 글자처럼 보인다.
   [주의] 클래스를 둘 겹쳐 쓴다 — 공용 .sol-pf 가 파일 뒤쪽에 있어서
   .tpl-pf 하나로는 align-self 와 margin 이 되돌려진다(같은 순위면 뒤가 이긴다). */
.sol-pf.tpl-pf { align-self: center; margin-top: 18px; }

/* ==========================================================================
   솔루션 — 고를 수 있는 것 (포트폴리오 = 실제 한 일 과 성격이 다르다)
   카테고리 셋의 카드 구조가 서로 다르다. 공통인 것은 아래 넷뿐이다:
   판 전환 / 업종 필터 / "관련 작업 보기" 줄 / 결과 없음 문구.
   ========================================================================== */

/* ---- 솔루션 판의 폭과 세로 리듬 — 포트폴리오 목록과 **같은 자를 쓴다** ----

   [폭] `.wrap`(1084px)을 쓰지 않는다. 포트폴리오 목록(.sec-gallery-board)이 이미 같은 이유로
   빠져나가 있다 — 이 사이트의 다른 섹션은 모두 --edge-lead 안쪽에 서는데 1084 로 두면
   양옆이 크게 비어 페이지 가운데 좁은 기둥 하나만 서 있는 것처럼 보인다.
   두 화면은 나란히 놓고 보는 자리(솔루션 = 고를 수 있는 것 / 포트폴리오 = 실제 한 일)라
   기준선이 다르면 메뉴를 옮길 때마다 내용이 좌우로 흔들린다.
   1440 화면에서 안쪽 폭 1179px · 카드 372px 로 포트폴리오 카드와 정확히 같아진다.

   [주의] 1280px 처럼 고정값으로 잡으면 안 된다. --edge-lead 는 화면에 비례하는 값이라
   1920 화면에서 1674px 까지 벌어지는데, 고정값은 거기서 다시 좁은 기둥이 된다. */
.sec-sol > .wrap { max-width: none; padding: 0 var(--edge-lead); }

/* [세로] 판의 위 여백이 0 이었다 — `.sec-bg-plain + .sec-bg-plain { padding-top: 0 }` 에 걸려서다.
   같은 배경이 연달아 올 때 여백이 두 배로 벌어지는 걸 막는 규칙인데, 여기서는 붙어 있는 탭줄이
   제목을 누르는 모양이 된다. 순위를 이겨 다시 세운다(0,3,0 > 0,2,0).
   값 84px 은 포트폴리오 목록(.sec-board)과 같은 값이다.
   [주의] 좁은 화면 단계도 함께 따라가야 한다. 포트폴리오의 84px 은 순위가 낮아서(0,1,0)
   `@media(max-width:640px) .sec { padding: 64px 0 }` 에 자리를 내주는데,
   이쪽은 순위가 높아(0,3,0) 그 규칙을 이겨 버린다 — 그대로 두면 모바일에서만 20px 더 벌어진다. */
.sec.sec-sol.sec-pad-normal { padding-top: 84px; }
@media (max-width: 640px) { .sec.sec-sol.sec-pad-normal { padding-top: 64px; } }

/* 구역이 넘어갈 때마다 쉬어 간다. 제목과 부제는 **한 덩어리**이므로 사이를 붙이고,
   덩어리와 덩어리 사이(부제→필터, 필터→카드)를 크게 벌린다 —
   전부 균등하게 벌리면 네 줄이 따로 노는 목록으로 보인다.
   필터→카드 간격은 포트폴리오의 필터줄(.gb-tools)과 같은 값을 쓴다. */
/* 머리글과 필터는 **가운데로 모은다.** 이 판은 탭으로 갈아 끼우는 화면이라
   위쪽 탭줄이 이미 가운데에 서 있다 — 그 아래 제목만 왼쪽에 붙으면 축이 둘로 갈린다.
   [주의] `.text-center` 클래스를 쓰지 않는다. 그 클래스는 제목 위에 34px 짜리 장식 막대를
   함께 그리는데, 여기서는 부르지 않은 물건이다. 정렬만 CSS 로 옮긴다. */
.sec-sol .sec-title { margin-bottom: 14px; text-align: center; }
.sec-sol .sec-sub {
  margin-top: 0; margin-bottom: clamp(40px, 4.4vw, 62px);
  margin-left: auto; margin-right: auto; text-align: center;
}
.sec-sol .sol-filters {
  margin-top: 0; margin-bottom: clamp(44px, 5vw, 72px);
  /* [주의] justify-content: center 를 쓰면 안 된다. 칩이 한 줄로 이어져 넘칠 때
     가운데 정렬은 **왼쪽 끝을 화면 밖으로 밀어내서** 첫 칩("전체")에 스크롤로도 닿을 수 없다
     (실제로 -315px 자리에 있었다). 가운데 모으기는 첫·마지막 칩의 auto 여백이 맡는다 —
     자리가 남을 때만 모이고, 넘칠 때는 0 이 되어 왼쪽 끝부터 시작한다. */
  justify-content: flex-start;
}
.sec-sol .sol-empty { text-align: center; }

/* 탭줄과 그 아래 판은 **한 덩어리로 보여야 한다.**
   [주의] 탭줄은 화면에 붙어 있고(sticky) 판은 그 아래를 지나간다. 색이 다르면 스크롤 내내
   경계선이 눈에 걸리고, 탭을 옮길 때마다 바탕색까지 바뀐다 —
   실제로 탭줄 #FFFFFF · 홈페이지 템플릿 #F2F1EE · 블로그 스킨 #E9E7E3 세 가지였다.
   탭줄이 이미 순백이므로 판을 거기에 맞춘다(포트폴리오 목록 .sec-gallery-board 와 같은 방식).
   --bg-off 까지 함께 잡는 이유는, 관리자가 어느 판에 "옅은 배경"을 골라도
   탭 사이에서 색이 튀지 않게 하기 위해서다. 판이 갈라지는 것보다 이쪽이 낫다. */
.sec-sol { --page: #FFFFFF; --bg-off: #FFFFFF; --surface: #FFFFFF; }
:root[data-skin="dark"] .sec-sol { --page: #1B1A1A; --bg-off: #1B1A1A; --surface: #1B1A1A; }

/* 판이 순백이 되면 카드도 순백이라 색으로는 구분되지 않는다 —
   1px 테두리와 그림자가 카드를 세운다. 테두리를 한 단계 진하게 잡아 준다. */
.sec-sol .tpl-card, .sec-sol .pack-card { border-color: var(--input-line); }

/* 탭으로 묶인 판. 켜진 하나만 남고 나머지는 접힌다.
   [주의] .sec 계열이 display 를 정하고 있으면 hidden 속성이 먹지 않는다 — 명시적으로 끈다. */
[data-sol-panel][hidden] { display: none; }
/* 앵커로 바로 들어왔을 때 붙어 있는 탭줄이 제목을 덮지 않게 */
.sec-sol { scroll-margin-top: calc(var(--header-h-sm) + 92px); }

.sol-empty { margin: 26px 0 0; color: var(--muted); font-size: var(--fs-sm); }

/* 제목 아래 안내 한 줄 — 부제보다 한 단계 작고 옅게 둔다.
   부제와 같은 무게로 두면 문장이 둘이 되어 어느 쪽이 이 판의 설명인지 흐려진다. */
.sol-note {
  max-width: 46em; margin: -18px auto clamp(30px, 3.2vw, 44px);
  text-align: center; font-size: 14.5px; line-height: 1.65;
  letter-spacing: -.01em; color: var(--faint); word-break: keep-all;
}

/* 금액 아래 면책 한 줄. 아주 작고 옅게 — 읽히되 금액을 이기지 않아야 한다 */
.pack-price-note {
  margin: 6px 0 0; font-size: 11px; line-height: 1.5;
  letter-spacing: -.01em; color: var(--faint); word-break: keep-all;
}

/* ---- 관련 작업 보기 (솔루션 3종 공용) ----
   솔루션에서 포트폴리오로 건너가는 줄. **버튼으로 만들지 않는다** —
   바로 위의 문의 버튼과 같은 무게가 되면 어느 쪽이 다음 걸음인지 흐려진다.
   고를지 말지 정하는 중인 사람에게 다음 걸음은 문의고, 이건 그 판단을 돕는 곁가지다. */
.sol-pf {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  margin-top: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: -.01em;
  color: var(--faint); text-decoration: none;
  transition: color .18s;
}
.sol-pf:hover { color: var(--brand-text); }

/* ---- 블로그 스킨 : 좌우로 엇갈리는 가로 행 ----
   [주의] 격자로 짜지 않는다. 자산이 서넛일 때 마지막 줄에 한 칸만 남아 "덜 만든 자리"로 보인다.
   행은 하나여도 화면이 가득 차고, 스무 개가 되어도 줄이 길어질 뿐 배치가 무너지지 않는다.
   블로그 상단 캡처가 가로로 넓고 낮은 그림이라는 점도 이 배치와 맞는다. */
.skin-rows { display: grid; gap: clamp(40px, 5vw, 78px); }
.skin-fold-list { display: grid; gap: clamp(40px, 5vw, 78px); }
.skin-row {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(26px, 3.4vw, 56px); align-items: center;
}
.skin-row[hidden] { display: none; }
/* 한 줄 걸러 그림이 오른쪽으로 간다. 순번은 PHP 가 **전체 기준**으로 세므로
   "더보기"로 접힌 줄에서도 교차가 그 자리에서 끊기지 않는다.
   [주의] order 만 바꾸면 안 된다 — 그림이 좁은 칸으로 들어가서 뒤집힌 줄만 사진이 작아진다
   (595px → 440px 로 줄어드는 것을 실제로 확인했다). 칸 너비도 함께 뒤집어야 크기가 유지된다. */
.skin-row.is-flip { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.skin-row.is-flip .skin-shot { order: 2; }

.skin-shot {
  position: relative; overflow: hidden;
  aspect-ratio: 2 / 1;
  border-radius: var(--r-lg); background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: 0 26px 56px -30px rgba(15, 23, 42, .5);
}
.skin-shot img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform .8s var(--ease-out);
}
.has-motion .skin-row:hover .skin-shot img { transform: scale(1.04); }
/* 캡처가 아직 없을 때. 회색 빈 칸은 "고장난 자리"로 보이므로 짙은 판에 이름을 앉힌다 */
.skin-noimg {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: 0 clamp(20px, 3vw, 40px); text-align: center;
  background: linear-gradient(158deg, var(--dark-1), var(--dark-2));
}
.skin-noimg > span {
  font-size: clamp(17px, 1.6vw, 22px); font-weight: 700; letter-spacing: -.02em;
  color: rgba(255, 255, 255, .88); word-break: keep-all; line-height: 1.45;
}

.skin-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.skin-code { font-family: var(--font-num); font-size: 12.5px; font-weight: 700; color: var(--faint); }
.skin-name {
  margin: 0 0 12px; font-size: clamp(21px, 2vw, 29px); font-weight: 800;
  letter-spacing: -.03em; color: var(--ink); line-height: 1.3; word-break: keep-all;
}
.skin-desc {
  margin: 0 0 20px; font-size: clamp(15px, 1.15vw, 16.5px); line-height: 1.75;
  color: var(--body-c); word-break: keep-all;
}
/* 구성은 목록이 아니라 **표시**다 — 점을 찍지 않고 앞에 짧은 선만 둔다 */
.skin-specs { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; }
.skin-specs li {
  position: relative; padding-left: 18px;
  font-size: 14.5px; font-weight: 600; letter-spacing: -.01em;
  color: var(--ink); word-break: keep-all;
}
.skin-specs li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 1px; background: var(--brand-text);
}
.skin-specs em { font-style: normal; font-weight: 500; color: var(--muted); }

.skin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.skin-ask {
  display: inline-flex; align-items: center;
  padding: 12px 22px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 700; letter-spacing: -.01em;
  background: var(--ink); color: var(--page); border: 1px solid transparent;
  text-decoration: none; transition: background .2s, color .2s;
}
.skin-ask:hover { background: var(--grad-btn); color: #fff; }
.skin-demo {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 700; color: var(--brand-text); text-decoration: none;
}
.skin-demo:hover { text-decoration: underline; text-underline-offset: 3px; }
.skin-actions .sol-pf { margin-top: 0; }
/* 접힌 상태에서는 마지막 행과 더보기 사이에 행 간격이 한 번 더 들어간다 — 그만큼 줄인다 */
.sec-solskin .more-bar { margin-top: clamp(18px, 2vw, 30px); }

@media (max-width: 900px) {
  /* 좁으면 그림과 글을 위아래로 쌓는다. 쌓고 나면 좌우 교차는 의미가 없으므로 되돌린다 —
     안 되돌리면 줄마다 그림이 위/아래로 번갈아 나와 읽는 순서가 흔들린다. */
  .skin-row, .skin-row.is-flip { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .skin-row.is-flip .skin-shot { order: 0; }
  .skin-rows, .skin-fold-list { gap: 46px; }
}

/* ---- 마케팅 패키지 : 스크린샷이 없는 카드 ----
   광고 운영과 콘텐츠 발행은 보여 줄 화면이 없는 일이다. 다른 두 카테고리의 카드 틀을 그대로 쓰면
   카드 절반이 빈 그림 자리가 된다. 그림이 있던 자리에 **숫자**를 놓는다 —
   이 패키지를 사면 무엇을 몇 개 받는지가 곧 그림이다. */
.pack-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(30px, 3.4vw, 52px) clamp(18px, 2.2vw, 32px); align-items: stretch;
}
/* 카드가 한두 장일 때 세 칸 격자에 넣으면 카드가 화면 폭만큼 늘어나 우스워진다 */
.pack-grid.is-few { justify-content: center; }
.pack-grid.is-few.n-1 { grid-template-columns: minmax(0, 420px); }
.pack-grid.is-few.n-2 { grid-template-columns: repeat(2, minmax(0, 400px)); }

.pack-card {
  display: flex; flex-direction: column;
  padding: clamp(26px, 2.6vw, 40px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.has-motion .pack-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--input-line); }
.pack-card[hidden] { display: none; }

.pack-head { margin-bottom: 22px; }
.pack-cat { margin-bottom: 14px; }
.pack-name {
  margin: 0 0 10px; font-size: clamp(19px, 1.6vw, 23px); font-weight: 800;
  letter-spacing: -.03em; color: var(--ink); line-height: 1.35; word-break: keep-all;
}
.pack-for { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); word-break: keep-all; }

/* 숫자 줄 — 그림이 없는 카드에서 가장 먼저 눈에 들어와야 하는 자리.
   숫자를 크게, 설명을 작게. 반대로 하면 그냥 문장이 되어 스쳐 지나간다. */
.pack-stats {
  list-style: none; margin: 0 0 22px; padding: 20px 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.pack-stats li { min-width: 0; }
.pack-stats b {
  display: block; font-family: var(--font-num);
  font-size: clamp(17px, 1.5vw, 21px); font-weight: 800; letter-spacing: -.03em;
  color: var(--brand-text); line-height: 1.2;
}
.pack-stats span {
  display: block; margin-top: 6px;
  font-size: 12.5px; font-weight: 600; letter-spacing: -.01em;
  color: var(--muted); word-break: keep-all; line-height: 1.4;
}

.pack-items { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.pack-items li {
  position: relative; padding-left: 20px;
  font-size: 14.5px; line-height: 1.6; letter-spacing: -.01em;
  color: var(--body-c); word-break: keep-all;
}
/* 체크 표시를 쓰지 않는다 — 체크는 "완료"로 읽히는데 이건 "포함"이다 */
.pack-items li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 10px; height: 1px; background: var(--brand-text);
}
.pack-items em { font-style: normal; color: var(--muted); }

/* 값과 단추는 카드 **바닥에 붙인다** — 항목 개수가 달라도 단추 높이가 한 줄로 맞는다 */
.pack-foot { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.pack-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pack-price b {
  font-family: var(--font-num); font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 800; letter-spacing: -.03em; color: var(--ink);
}
.pack-price span { font-size: 12.5px; font-weight: 600; color: var(--faint); }
.pack-ask {
  display: block; text-align: center;
  padding: 13px 16px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 700; letter-spacing: -.01em;
  background: var(--ink); color: var(--page); border: 1px solid transparent;
  text-decoration: none; transition: background .2s, color .2s;
}
.pack-ask:hover { background: var(--grad-btn); color: #fff; }
.pack-foot .sol-pf { margin-top: 0; justify-self: center; }

@media (max-width: 1080px) { .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .pack-grid, .pack-grid.is-few.n-2 { grid-template-columns: minmax(0, 1fr); }
  .pack-grid.is-few.n-1 { grid-template-columns: minmax(0, 1fr); }
}

/* [폐기] 1700px 이상에서 네 칸으로 바꾸는 규칙이 있었다. 카드가 커지는 것을 막으려는 것이었는데,
   실제 화면에서는 **썸네일이 작아져 시안을 판단할 수 없게** 됐다.
   이 판의 주인공은 스크린샷이므로 칸 수를 늘려 개수를 보여 주는 것보다 한 장을 크게 보여 주는 편이 맞다.
   최대 세 칸으로 둔다 — 1920 화면에서 카드 532px · 썸네일 532x266. */

/* ---------- 10. 선언 블록 ---------- */
.stmt-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(30px, 4vw, 70px); align-items: center; }
.stmt-title { font-size: clamp(28px, 3.6vw, 50px); font-weight: 700; line-height: 1.16; margin: 0 0 20px; color: var(--ink); }
.stmt-desc { color: var(--body-c); font-size: var(--fs-lead); margin: 0 0 30px; max-width: 40ch; }
.stmt-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.stmt-line {
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.stmt-line:first-child { border-top: 1px solid var(--line); }
.stmt-line-v { flex: none; min-width: 5.4em; font-size: var(--fs-num-sm); line-height: 1.1; }
.stmt-line-l { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- 11. 진행 과정 — 마지막 단계 강조 ----------
   경쟁사가 "오픈"에서 끝나는 자리에 한 칸이 더 있다는 것이 이 회사의 차별점이므로,
   그 칸만 다른 층에 올린다. */
.ps-mark .ps-last .ps-num { background: var(--grad-btn); color: #fff; border-color: transparent; box-shadow: 0 12px 26px -12px rgba(28, 62, 130, .7); }
.ps-mark .ps-last .ps-name { color: var(--brand-text); }
/* 카드 폭이 좁아 두 줄로 접히므로 알약이 아니라 모서리만 둥근 상자로 둔다.
   필 형태로 두면 두 줄이 됐을 때 위아래 여백이 어긋나 뭉개져 보인다. */
.ps-note {
  display: block; margin-top: 12px; padding: 9px 13px; border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: -.01em; line-height: 1.45;
  background: var(--grad-btn); color: #fff;
}

/* ---------- 12. 3스텝 문의 폼 ----------
   나누는 일은 화면에서만 한다. JS 가 없으면 단계 표시가 숨고 전부 펼쳐진 한 장짜리 폼이 된다. */
.wrap-form-steps { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.steps-bar { list-style: none; display: flex; gap: 10px; margin: 0 0 30px; padding: 0 0 22px; border-bottom: 1px solid var(--line); }
html:not(.has-js) .steps-bar { display: none; }
.steps-item { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: var(--faint); transition: color .25s; }
.steps-num {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-num); font-size: 13px; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
  transition: background .25s, color .25s, border-color .25s;
}
.steps-name { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps-item.is-on { color: var(--ink); }
.steps-item.is-on .steps-num { background: var(--grad-btn); color: #fff; border-color: transparent; }
.steps-item.is-done .steps-num { background: var(--surface-2); color: var(--brand-text); border-color: var(--brand-text); }
.steps-item.is-done { color: var(--muted); }

.step-pane { display: block; }
html.has-js .form-steps .step-pane { display: none; }
html.has-js .form-steps .step-pane.is-on { display: block; }
.form-nav { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.form-nav .step-prev { margin-right: auto; }

/* 선택지를 카드로 — 첫 단계에서 셀렉트를 열게 하면 이탈이 는다 */
.choice-set { border: 0; padding: 0; margin: 0 0 22px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 10px; margin-top: 10px; }
.choice { display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-box {
  display: flex; align-items: center; min-height: 62px; padding: 14px 18px;
  border: 1.5px solid var(--input-line); border-radius: var(--r-md);
  background: var(--surface); color: var(--body-c);
  font-weight: 700; font-size: var(--fs-sm); letter-spacing: -.01em;
  transition: border-color .18s, background .18s, color .18s, transform .18s;
}
.choice:hover .choice-box { border-color: var(--brand-text); transform: translateY(-2px); }
.choice input:focus-visible + .choice-box { outline: 2px solid var(--brand-text); outline-offset: 2px; }
.choice input:checked + .choice-box { background: var(--grad-btn); color: #fff; border-color: transparent; }

.tpl-chosen {
  margin: 0 0 22px; padding: 12px 16px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: var(--fs-sm); color: var(--body-c);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

/* ---------- 12-b. 구조를 바꾸는 배치들 ----------
   같은 페이지에서 "제목 + 부제 + 카드 격자"가 여덟 번 반복되면 개별로는 멀쩡해도 전체가 단조롭다.
   장식을 더하지 않고 **배치만** 바꿔 리듬을 끊는다. */

/* (1) 템플릿 — 가로 레일.
   화면 밖으로 이어지게 두어 "더 있다"가 보이게 한다. 격자는 몇 개인지를 먼저 알려주지만
   레일은 계속 이어진다는 인상을 준다. 키보드 사용자를 위해 트랙 자체가 포커스를 받는다. */
.tpl-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 330px);
  gap: 18px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  /* 좌우 모두 화면 끝까지 — 한쪽만 흘리면 잘린 것처럼 보인다.
     100vw 는 스크롤바를 포함하므로 --sbw 만큼 뺀다(안 빼면 가로 스크롤이 생긴다). */
  --vw: calc(100vw - var(--sbw, 0px));
  width: var(--vw); max-width: var(--vw);
  margin-left: calc(50% - var(--vw) / 2); margin-right: calc(50% - var(--vw) / 2);
  padding: 4px var(--edge) 22px;
  scrollbar-width: thin;
}
.tpl-rail > .tpl-card { scroll-snap-align: start; }
.tpl-rail::-webkit-scrollbar { height: 8px; }
.tpl-rail::-webkit-scrollbar-thumb { background: var(--input-line); border-radius: 4px; }
.tpl-rail:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 6px; }
.tpl-railnote { margin: 6px 0 0; font-size: var(--fs-xs); color: var(--faint); }

/* (2) 진행 과정 — 좌우 비대칭 타임라인.
   왼쪽 제목은 붙박이고 오른쪽만 흐른다. 가로 카드 5칸과 완전히 다른 축이 생긴다. */
.tl-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(30px, 5vw, 88px); align-items: start; }
.tl-lead { position: sticky; top: 108px; }
.tl-list { list-style: none; margin: 0; padding: 0; position: relative; }
/* 단계를 잇는 선도 그라디언트다 — 요소 단위 사용처를 하나 더 만든 것 */
.tl-list::before {
  content: ""; position: absolute; left: 21px; top: 12px; bottom: 12px; width: 2px;
  background: var(--grad-text); opacity: .5;
}
.tl-item { position: relative; display: flex; gap: 22px; padding: 0 0 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-num {
  position: relative; z-index: 2; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-num); font-size: 16px; font-weight: 700;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--muted);
}
.tl-body { padding-top: 7px; }
.tl-name { font-size: var(--fs-h3); font-weight: 800; margin: 0 0 6px; color: var(--ink); letter-spacing: -.02em; }
.tl-desc { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.7; }
.sec-process-tl.ps-mark .ps-last .tl-num { background: var(--grad-btn); color: #fff; border-color: transparent; }
.sec-process-tl.ps-mark .ps-last .tl-name { color: var(--brand-text); }
.sec-process-tl .ps-note { margin-top: 12px; }

/* (3) 2분할을 화면 끝까지 — 섹션 제목 없이 두 면만 남긴다.
   제목 줄이 없어지는 것만으로도 앞뒤 섹션과 문법이 달라진다. */
.sec-duo-bleed > .wrap { max-width: none; padding: 0; }
.sec-duo-bleed .duo-grid { gap: 0; margin-top: 0; }
.sec-duo-bleed .duo-panel { border-radius: 0; border-left: 0; border-right: 0; min-height: 420px; }
.sec-duo-bleed .duo-panel:hover { transform: none; box-shadow: none; }
.sec-duo-bleed .duo-body { max-width: 560px; margin: 0 auto; width: 100%; }
/* 스킨의 `:root[data-skin] .sec`(0,2,0) 를 이기려면 같은 명시도가 필요하다 */
:root .sec.sec-duo-bleed { padding: 0; }

/* 사례 카드는 경계에도 그라디언트를 상시로 둔다 — 이 페이지에서 가장 중요한 카드이기 때문이다 */
.bento-lg.bento-case::after { opacity: .55; }
.bento-lg.bento-case:hover::after { opacity: 1; }

@media (max-width: 900px) {
  .tl-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .tl-lead { position: static; }
  .sec-duo-bleed .duo-panel { min-height: 0; }
}

/* ---------- 12-c. 요금 · 패키지 ---------- */
.sec-price .sec-title, .sec-price .sec-sub { text-align: left; margin-left: 0; margin-right: 0; }
.sec-price .sec-sub { max-width: 56ch; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 18px; margin-top: 40px; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px;
}
.price-card.is-best { border-color: transparent; box-shadow: var(--sh-md); }
.price-card.is-best::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: var(--grad-text);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.price-best {
  display: inline-block; align-self: flex-start; margin-bottom: 14px;
  padding: 6px 12px; border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 700; background: var(--grad-btn); color: #fff;
}
.price-name { font-size: var(--fs-h3); font-weight: 800; margin: 0 0 6px; color: var(--ink); }
.price-for { margin: 0 0 20px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; min-height: 3em; }
.price-amount {
  font-size: clamp(30px, 3vw, 40px); line-height: 1.1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .price-amount { color: var(--ink); background: none; }
}
.price-unit { margin-top: 8px; font-size: var(--fs-xs); color: var(--faint); }
.price-items { list-style: none; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.price-items li { position: relative; padding-left: 19px; font-size: var(--fs-sm); color: var(--body-c); }
.price-items li::before {
  content: ""; position: absolute; left: 0; top: .58em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--grad-text);
}
/* 연장·유지관리 — 요금표와 다른 면으로 분리해야 눈에 걸린다 */
.price-after {
  margin-top: 22px; padding: 30px 32px; border-radius: var(--r-lg);
  background: var(--dark-bg); color: #C9C4C1;
  --grad-text: linear-gradient(118deg, #4E86D8 0%, #9CC2F5 100%);
}
.price-after-title { margin: 0 0 20px; font-size: var(--fs-h3); font-weight: 800; color: #F7F5F3; }
.price-after-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px 26px; }
.price-after-list li { display: flex; flex-direction: column; gap: 6px; }
.price-after-v {
  font-size: var(--fs-num-sm); line-height: 1.1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .price-after-v { color: #9CC2F5; background: none; }
}
.price-after-l { font-size: var(--fs-xs); color: #A19B98; }
.price-after-note { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .13); font-size: var(--fs-sm); line-height: 1.75; }

/* ---------- 12-d. 옆으로 흐르는 띠 (마퀴) ----------
   페이지에 움직이는 것이 하나도 없으면 아무리 잘 짜도 정지 화면으로 읽힌다.
   장식을 더하는 대신, 이미 정보인 것(함께 일한 회사 이름)을 흐르게 한다. */
.mq { overflow: hidden; position: relative; }
/* 양 끝을 배경색으로 흐려 잘린 느낌을 없앤다 — 요소를 더하지 않고 마스크로만 처리 */
.mq {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mq-track { display: flex; width: max-content; }
.mq-set { display: flex; align-items: center; gap: 14px; padding-right: 14px; }
/* 로고 파일이 아직 없는 고객사는 이름을 **판(plate)** 으로 세운다.
   글자만 흘리면 문장처럼 읽혀 로고 월로 보이지 않는다. 판이면 지금도 로고 월로 읽히고,
   실제 PNG 가 들어오면 칸 규격이 같아 그 자리에 그대로 대체된다. */
.mq-name, .logo-grid .mq-name {
  flex: none; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 168px; height: 74px; padding: 0 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  font-family: var(--font-display); font-size: clamp(15px, 1.35vw, 18px); font-weight: 700;
  letter-spacing: -.02em; color: var(--muted);
  transition: color .2s, border-color .2s, transform .2s var(--ease);
}
.mq-name:hover { color: var(--ink); border-color: var(--input-line); transform: translateY(-2px); }
.mq .logo-cell {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 168px; height: 74px; padding: 0 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.mq .logo-cell img { max-height: 40px; width: auto; object-fit: contain; }
/* 두 벌을 이어 붙였으므로 -50% 만큼 밀면 이음매 없이 반복된다 */
@keyframes wc-mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* JS 없이도 흐른다. 폰 설정이나 스크립트 상태와 상관없이 띠는 움직여야 한다.
   터치 기기는 누른 뒤 hover 가 남아 멈춘 채로 있으므로 마우스 기기에서만 멈춘다. */
.mq-track { animation: wc-mq 38s linear infinite; }
@media (hover: hover) { .mq:hover .mq-track { animation-play-state: paused; } }
/* 흐르는 동안에는 손 스크롤이 애니메이션과 싸우므로 숨긴다. */
.mq { overflow-x: hidden; }

/* ---------- 12-f. 대표 화면 (큰 이미지) ---------- */
.show-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: end; }
.show-desc { margin: 0; color: var(--muted); font-size: var(--fs-lead); line-height: 1.75; }
.show-frame {
  margin: 40px auto 0; max-width: none; padding: 0 var(--edge);
  border-radius: var(--r-xl); overflow: hidden;
}
.show-frame img {
  display: block; width: 100%; height: auto;
  border-radius: var(--r-xl); border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  transform: scale(var(--zoom, 1)); transform-origin: center;
}
.has-motion .show-frame img { transition: transform .18s linear; }
.show-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 38px; }
.show-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 44px; }
.show-stats li { display: flex; flex-direction: column; gap: 6px; }
.show-stat-v {
  font-size: var(--fs-num-sm); line-height: 1.1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .show-stat-v { color: var(--ink); background: none; }
}
.show-stat-l { font-size: var(--fs-xs); color: var(--muted); }

@media (max-width: 860px) {
  .show-head { grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
}

/* ---------- 12-g. 선언 블록의 이미지 ---------- */
.sec-stmt.has-img .stmt-grid { align-items: center; }
.stmt-img { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); }
.stmt-img img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.stmt-lines-inline { margin-top: 30px; }
.stmt-lines-inline .stmt-line { padding: 14px 0; }

/* ---------- 12-h. 마지막 CTA 카드 ----------
   브랜드색을 "큰 면"에 쓰는 유일한 자리다. 배경 전면이 아니라 카드 한 장이므로 요소 단위다. */
.sec-cta-card { }
/* 페이지를 닫는 두 섹션(FAQ + 마지막 CTA)은 흰 면으로 붙여 하나의 마무리 덩어리로 만든다.
   [주의] --page 를 섹션에서 다시 정의한다 — .sec-bg-plain 이 이 토큰을 쓰므로
   배경 한 줄만 덮는 것보다 안쪽 요소까지 같은 기준을 따라간다. */
.sec-faq, .sec-cta-card { --page: #FFFFFF; }
:root[data-skin="dark"] .sec-faq, :root[data-skin="dark"] .sec-cta-card { --page: #1B1A1A; }

/* ---------- FAQ ----------
   [디자인] 질문마다 카드를 두르지 않는다. 밑줄 하나로만 나눈다 —
   카드가 여섯 장 쌓이면 "읽을 것이 많다"로 보이고, 줄로만 나누면 "찾아보면 된다"로 읽힌다.
   JS 가 없으면 답변이 펼쳐진 상태로 남는다(.has-js 게이팅) — 접근 불가 방지. */
.faq-grid {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 80px); align-items: start;
  max-width: none; padding: 0 var(--edge-lead);
}
.sec-faq .faq-lead { position: sticky; top: 108px; }
.sec-faq .sec-title, .sec-faq .sec-sub { text-align: left; margin-left: 0; margin-right: 0; }
.sec-faq .sec-sub { max-width: 34ch; margin-bottom: 0; }

.faq-list { margin-top: 0; display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid var(--line);
  transition: border-color .25s var(--ease);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item.open { border-color: var(--input-line); }
.faq-q {
  display: flex; align-items: flex-start; gap: 18px; width: 100%;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 24px 4px; font-size: 17px; font-weight: 700; color: var(--ink);
  font-family: inherit; letter-spacing: -.01em; line-height: 1.5;
  transition: color .2s var(--ease);
}
.faq-q:hover { color: var(--brand-text); }
.faq-q:focus-visible { outline: 2px solid var(--brand-text); outline-offset: -2px; }
.faq-qt { flex: 1; }
.faq-item.open .faq-q { color: var(--brand-text); }

/* + 가 − 로 — 세로 획만 사라진다. 회전시키면 눈이 따라가느라 정작 열린 내용을 안 본다. */
.faq-plus {
  position: relative; margin-left: auto; margin-top: 3px;
  width: 18px; height: 18px; flex: none; display: none;
}
.has-js .faq-plus { display: block; }
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; background: var(--faint); border-radius: 2px;
  transition: transform .3s var(--ease), background .3s, opacity .3s;
}
.faq-plus::before { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-plus::after { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-item.open .faq-plus::before { transform: scaleY(0); opacity: 0; }
.faq-item.open .faq-plus::after { background: var(--brand-text); }

/* JS 가 없으면 답변이 펼쳐진 상태로 남는다 (읽을 수는 있어야 한다) */
.faq-a { display: block; }
.has-js .faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.has-js .faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner > div {
  padding: 0 40px 26px 4px; color: var(--body-c);
  font-size: 15.5px; line-height: 1.8;
}

/* ---------- 마지막 CTA — 초대형 둥근 박스 ----------
   왼쪽은 말, 오른쪽은 행동. 버튼을 문장 아래에 두면 연락처와 떨어져서
   "전화할까 신청할까"를 두 번 판단하게 된다. 연락처와 버튼을 한 덩어리로 묶는다. */
.sec-cta-card > .wrap { max-width: none; padding: 0 var(--edge-lead); }
.ctac {
  position: relative; overflow: hidden;
  border-radius: var(--r-panel);
  /* 깊은 브랜드 블루. 한쪽으로 아주 옅게 밝아져 평평한 색면으로 보이지 않게 한다. */
  background:
    radial-gradient(120% 130% at 82% 8%, rgba(255, 255, 255, .16), transparent 58%),
    linear-gradient(118deg, #16337A 0%, #2A5BB0 62%, #3468C4 100%);
  color: #fff;
  box-shadow: 0 46px 100px -44px rgba(22, 51, 122, .8);
}
.ctac-bg { position: absolute; inset: 0; opacity: .18; }
.ctac-bg img { width: 100%; height: 100%; object-fit: cover; }
.ctac-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20, 42, 100, .62), rgba(20, 42, 100, .18)); }
.ctac-body {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr);
  gap: clamp(32px, 4.4vw, 76px); align-items: center;
  padding: clamp(38px, 5vw, 82px);
}
.ctac-kicker {
  display: inline-block; margin-bottom: 20px; padding: 7px 15px; border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: -.01em;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
}
.ctac-heading {
  font-family: var(--font-display); font-weight: 800;
  /* [주의] 강제 줄바꿈만 넣는다고 두 줄이 되지 않는다 — 왼쪽 칸이 622px 인데
     52px 로 두면 반 줄이 다시 접혀서 결국 네 줄이 됐다. 반쪽이 한 줄에 들어가는 크기로 내린다. */
  font-size: clamp(26px, 2.95vw, 42px); line-height: 1.28; letter-spacing: var(--ls-display);
  margin: 0 0 18px; color: #fff; word-break: keep-all;
}
/* 카드 안에서는 그라디언트 글자를 쓸 수 없다(이미 그라디언트 위다) — 흰색 유지 + 밑줄로 강조 */
.ctac-heading .gtext {
  background: none; color: #fff; -webkit-text-fill-color: #fff;
  box-shadow: inset 0 -.14em 0 rgba(255, 255, 255, .4);
}
.ctac-sub {
  margin: 0; font-size: var(--fs-lead); line-height: 1.75;
  color: rgba(255, 255, 255, .86); max-width: 40ch; word-break: keep-all;
}

/* 오른쪽 — 연락처 + 버튼 한 덩어리 */
.ctac-act { display: flex; flex-direction: column; gap: 26px; }
.ctac-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ctac-facts li {
  display: flex; flex-direction: column; gap: 5px;
  padding: 15px 0; border-top: 1px solid rgba(255, 255, 255, .22);
}
.ctac-facts li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .22); }
.ctac-fact-l { font-size: var(--fs-xs); color: rgba(255, 255, 255, .68); }
.ctac-fact-v { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
/* 대표 전화는 여기서 제일 큰 숫자다 — 누르기 전에 전화부터 거는 사람이 적지 않다 */
.ctac-facts li:first-child .ctac-fact-v { font-family: var(--font-num); font-size: clamp(24px, 2.1vw, 30px); }

.ctac-btns { display: flex; gap: 10px; flex-wrap: wrap; }
/* 파란 면 위의 흰 버튼은 글자도 파랑이어야 한다 — 검정 글자는 대비만 있고 브랜드가 없다 */
.ctac-go { flex: 1 1 auto; justify-content: center; padding: 18px 30px; font-size: 17px; color: #1D4ED8; }
.ctac-go .btn-arrow { color: inherit; }
.has-motion .ctac-go { transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out); }
.has-motion .ctac-go:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -14px rgba(0, 0, 0, .45); }
/* 고스트 버튼 — 왼쪽 자료 받기와 오른쪽 보조 버튼이 같은 톤이어야 한 세트로 읽힌다.
   평소에는 **배경 없이 테두리만** 둔다. 배경을 깔면 흰 주 버튼과 무게가 비슷해져
   "어느 쪽을 눌러야 하지"가 된다. */
.ctac-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; background: transparent; }
.has-motion .ctac-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); transform: translateY(-3px); }
/* 왼쪽 글 아래 자료 받기 */
.ctac-dl { margin-top: clamp(26px, 3vw, 40px); gap: 10px; padding: 15px 26px; font-size: 15.5px; }
.ctac-dl-ico { width: 19px; height: 19px; flex: none; }

@media (max-width: 1080px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 0 var(--edge-lead); }
  .sec-faq .faq-lead { position: static; }
  .sec-faq .sec-sub { max-width: 52ch; }
  .sec-cta-card > .wrap { padding: 0 var(--edge-lead); }
}
@media (max-width: 640px) {
  .faq-q { padding: 20px 2px; font-size: 16px; gap: 12px; }
  .faq-a-inner > div { padding: 0 30px 22px 2px; }
  .ctac-btns { flex-direction: column; }
  .ctac-go, .ctac-ghost { width: 100%; }
}

@media (max-width: 860px) {
  .ctac-body { grid-template-columns: minmax(0, 1fr); }
  .sec-stmt.has-img .stmt-grid { grid-template-columns: minmax(0, 1fr); }
}
/* 폰의 100vh 는 주소창이 접힌 높이라서 첫 화면 아래가 주소창에 가린다 */
@media (max-width: 860px) {
  .stage-scroll .stage-pin { height: 100svh; }
}
@media (max-width: 560px) {
  .ctac-body { padding: 30px 22px; }
  /* 기본 간격(24px)을 두면 360px 에서 버거가 화면 밖으로 밀린다 */
  .header-inner { gap: 8px; }
  .nav-burger { margin-left: 0; }
  .site-logo img { height: 26px; width: auto; max-width: none; }
}
/* 로고 · 문의 버튼 · 버거만으로 폭이 다 차는 화면 */
@media (max-width: 359px) {
  .site-header .skin-toggle { display: none; }
}

/* ---------- 12-i. 화면 밝기 토글 ---------- */
.skin-toggle {
  flex: none; margin-left: 14px; width: 38px; height: 38px; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 50%;
  transition: border-color .18s, transform .18s var(--ease);
}
.skin-toggle:hover { border-color: var(--input-line); transform: translateY(-1px); }
.skin-toggle:active { transform: translateY(0); }
.skin-toggle:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; }
.skin-ico { width: 17px; height: 17px; background: var(--body-c); transition: background .18s; }
/* 달 아이콘 (밝을 때 = 어둡게 전환) */
.skin-ico {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27black%27%3E%3Cpath d=%27M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z%27/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27black%27%3E%3Cpath d=%27M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z%27/%3E%3C/svg%3E") center / contain no-repeat;
}
/* 해 아이콘 (어두울 때 = 밝게 전환) */
:root[data-skin="dark"] .skin-ico {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272%27 stroke-linecap=%27round%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%274%27/%3E%3Cpath d=%27M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4%27/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272%27 stroke-linecap=%27round%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%274%27/%3E%3Cpath d=%27M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4%27/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- 12-j. 메가 메뉴 ----------
   작은 상자가 툭 떨어지는 드롭다운은 항목이 4개만 넘어도 빈약해 보인다.
   화면 폭을 쓰는 패널로 내려오게 하고, 항목을 격자로 편다. */
/* 공통 — 열림/닫힘은 보이기가 아니라 투명도로 처리해 전환이 보이게 한다.
   display 만 바꾸면 애니메이션이 걸리지 않아 툭 떨어진다. */
.gnb .sub {
  display: block; opacity: 0; visibility: hidden; transform: translateY(-8px);
  /* 닫힘에만 지연을 준다 — 마우스가 메뉴에서 패널로 넘어가는 사이에 닫혀 버리면
     "누르려는데 사라진다"가 된다. 열림은 지연 없이 즉시. */
  transition: opacity .18s var(--ease) .3s, transform .18s var(--ease) .3s, visibility .18s .3s;
  /* [주의] pointer-events 로 껐다 켜지 마라. 이 속성은 전환·지연이 걸리지 않아서
     마우스가 링크를 벗어나는 순간 즉시 none 이 된다 — 패널이 아직 보이는 0.3초 동안
     들어갈 수가 없어 "올렸다 내리면 바로 사라지는" 메뉴가 된다.
     안 보이는 동안 못 누르게 하는 일은 visibility: hidden 이 이미 하고 있고,
     그쪽은 지연이 걸리므로 유예 시간 동안 패널이 살아 있는다. */
}
.gnb li.has-sub:hover > .sub,
.gnb li.has-sub:focus-within > .sub,
.gnb li.has-sub.open > .sub {
  opacity: 1; visibility: visible; transform: none;
  transition-delay: 0s;
}
/* 메뉴와 패널 사이의 빈틈을 투명한 다리로 메운다. 틈이 있으면 그 위에서 hover 가 끊긴다.
   링크(높이 약 55px)가 헤더(92px)보다 낮아 아래쪽에 20px 가까운 죽은 띠가 생기므로
   그 띠를 다 덮을 만큼 높게 잡는다. 패널이 닫혀 있으면 visibility: hidden 이라 이 다리도 없다. */
.gnb li.has-sub > .sub::before {
  content: ""; position: absolute; left: 0; right: 0; top: -32px; height: 32px;
}
.gnb .sub-inner { list-style: none; margin: 0; padding: 0; }
.gnb .sub a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; font-size: 15px; font-weight: 700; border-radius: var(--r-sm);
  color: var(--body-c); white-space: nowrap;
  transition: background .15s, color .15s, transform .15s var(--ease);
}
.gnb .sub a::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad-text); opacity: .5; transition: opacity .15s, transform .15s;
}
.gnb .sub a:hover { background: var(--surface-2); color: var(--ink); transform: translateX(2px); }
.gnb .sub a:hover::before { opacity: 1; transform: scale(1.35); }

/* 일반 드롭다운 — 항목이 적은 메뉴 */
.gnb li.has-sub:not(.has-mega) { position: relative; }
.gnb li.has-sub:not(.has-mega) > .sub {
  position: absolute; top: calc(100% + 6px); left: 4px; min-width: 190px;
  background: var(--menu-bg); border: 1px solid var(--menu-line); border-radius: var(--r-md);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .8); padding: 7px; z-index: 101;
}
.gnb li.has-sub:not(.has-mega) .sub-inner { display: grid; gap: 2px; }

/* 메가 패널 — 하위가 4개 이상인 메뉴만.
   기준을 헤더로 올려야 화면 폭을 쓸 수 있고, 안쪽은 헤더 .wrap 과 같은 1200px 선에 맞춘다. */
.gnb li.has-mega { position: static; }
.gnb li.has-mega > .sub {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 22px 0 26px; z-index: 101;
  background: var(--menu-bg); border-top: 1px solid var(--menu-line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .75);
}
/* 패널 안쪽 좌측선을 헤더와 정확히 맞춘다.
   헤더는 --edge(30px) 를 쓰고 항목 링크가 자체로 14px 패딩을 가지므로 컨테이너는 16px 만 준다. */
.gnb li.has-mega .sub-inner {
  width: 100%; max-width: none; margin: 0; padding: 0 calc(var(--edge) - 14px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px 14px;
}
.gnb li.has-mega .sub a { padding: 14px 14px; font-size: 15.5px; }

@media (max-width: 1024px) {
  /* 모바일은 접힘 목록 그대로 — 패널을 띄우면 화면을 덮는다 */
  .gnb li.has-sub, .gnb li.has-mega { position: relative; }
  .gnb li.has-sub > .sub, .gnb li.has-mega > .sub {
    position: static; opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    padding: 0 0 6px; box-shadow: none; border: 0; background: transparent;
  }
  .gnb li.has-mega .sub-inner, .gnb li.has-sub .sub-inner {
    max-width: none; padding: 0; grid-template-columns: minmax(0, 1fr); gap: 2px;
  }
  .gnb .sub a { white-space: normal; }
  .skin-toggle { margin-left: auto; margin-right: 6px; }
}

/* ---------- 12-k. FAQ 2단 · 최근 게시물 가로 배치 ----------
   둘 다 760px 로 좁혀 두어 로고·메뉴(1200px)와 선이 어긋나 있었다.
   폭을 맞추되 글줄이 길어지지 않게 안쪽에서 나눈다. */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.sec-faq .faq-lead { position: sticky; top: 108px; }
.sec-faq .sec-title, .sec-faq .sec-sub { text-align: left; margin-left: 0; margin-right: 0; }
.sec-faq .faq-list { margin-top: 0; }

/* 최근 게시물 — 한 줄 목록 대신 카드 3~4개로 편다 */
.sec-latest .latest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sec-latest .latest-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px;
  margin-top: 30px; list-style: none; padding: 0;
}
.sec-latest .latest-list > li { margin: 0; }
.sec-latest .latest-list > li > a {
  display: flex; flex-direction: column; gap: 12px; height: 100%;
  padding: 24px 24px 22px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s var(--ease);
}
.sec-latest .latest-list > li > a:hover {
  border-color: var(--input-line); transform: translateY(-3px); box-shadow: var(--sh-md);
}
.sec-latest .board-item-title {
  white-space: normal; font-size: 16.5px; font-weight: 700; line-height: 1.45; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sec-latest .board-item-date { margin-left: 0; margin-top: auto; color: var(--faint); }

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .sec-faq .faq-lead { position: static; }
}

/* ---------- 12-l. 페이지 상단 공통 머리 ----------
   페이지마다 상단을 따로 만들면 어떤 화면엔 라벨이 있고 어떤 화면엔 없어서
   사이트를 옮겨 다닐 때 같은 사이트로 안 읽힌다. 모든 화면이 이 한 벌을 쓴다. */
.sec-top .top-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.2vw, 54px); line-height: 1.15;
  letter-spacing: var(--ls-display); color: var(--ink); margin: 0;
}
.sec-top .top-desc { margin: 16px 0 0; color: var(--muted); font-size: var(--fs-lead); max-width: 60ch; line-height: 1.7; }
.sec-top .kicker { margin-bottom: 12px; }

/* ---------- 12-m. 포트폴리오(갤러리 게시판) ----------
   목록이 아니라 작업 카드로 보여야 포트폴리오로 읽힌다.
   글을 사진 밖에 두지 않는다 — 사진이 주인공인 자리에서 제목과 분류가 밖에 나와 있으면
   눈이 사진과 글 사이를 오가느라 어느 쪽도 제대로 안 본다. 올렸을 때만 사진 위로 떠오르게 한다. */

/* ---- 분류 탭 ----
   서비스 페이지의 탭줄(.svcnav)과 **같은 모양**을 쓴다. 한 사이트에 "칸을 고르는 물건"이
   두 가지 모양으로 있으면, 방문자는 그 둘이 다른 기능이라고 읽는다.
   [주의] 그러려면 판이 흰 면이어야 한다 — 바탕이 연회색이면 탭 트랙(#F6F8FB)이 배경에 묻힌다. */
/* --page 도 함께 흰색으로 둔다 — 켜진 탭의 글자색이 var(--page) 라서,
   이걸 안 맞추면 서비스 탭은 순백인데 여기만 살짝 누런 흰색(#F2F1EE)이 된다. */
.sec-gallery-board { --bg-off: #FFFFFF; --page: #FFFFFF; }
:root[data-skin="dark"] .sec-gallery-board { --bg-off: #1B1A1A; --page: #1B1A1A; }
/* [주의] 이 게시판은 .wrap(1084) 을 쓰면 안 된다 — 이 사이트의 다른 섹션은 모두
   --edge-lead 안쪽(1920 화면에서 1659px)을 쓰는데, 여기만 1084 라 양옆이 411px 씩 비어
   페이지 가운데 좁은 기둥 하나만 서 있는 것처럼 보였다. 기준선을 맞춘다. */
.sec-gallery-board > .wrap { max-width: none; padding: 0 var(--edge-lead); }

/* 필터 탭만 남는다. 검색·글쓰기는 템플릿에서 아예 부르지 않는다. */
.gb-tools {
  display: flex; justify-content: center;
  margin-bottom: clamp(44px, 5vw, 72px);
}
/* 한 덩어리 안에서 칸이 옮겨 다니는 형태 — 서비스 탭줄과 같은 규격이다.
   밑줄이나 알약을 따로 쓰면 같은 일을 하는 물건이 사이트 안에 두 모양이 된다. */
.sec-gallery-board .board-cats {
  margin: 0; display: inline-flex; gap: 4px; flex-wrap: nowrap;
  max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: 5px; border-radius: var(--r-md);
  background: #F6F8FB; border: 1px solid var(--line);
}
.sec-gallery-board .board-cats::-webkit-scrollbar { display: none; }
.sec-gallery-board .board-cat {
  flex: none;
  padding: 12px 22px; border-radius: var(--r-sm); border: 0;
  background: transparent; color: var(--muted);
  font-size: clamp(14.5px, 1.15vw, 16.5px); font-weight: 700; letter-spacing: -.02em;
  white-space: nowrap;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.sec-gallery-board .board-cat:hover { background: rgba(0, 0, 0, .04); color: var(--ink); }
/* 켜진 칸은 색을 뒤집는다. 브랜드 파랑을 쓰지 않는 이유는 아래 카드들이 색이 강해서
   여기까지 파랗게 하면 화면에 강한 색이 너무 많아지기 때문이다. */
.sec-gallery-board .board-cat.on { background: var(--ink); color: var(--page); }
.sec-gallery-board .board-cat.on:hover { background: var(--ink); }
.sec-gallery-board .board-cat:focus-visible { outline: 2px solid var(--brand-text); outline-offset: -3px; }
:root[data-skin="dark"] .sec-gallery-board .board-cats { background: rgba(255, 255, 255, .05); }
:root[data-skin="dark"] .sec-gallery-board .board-cat:hover { background: rgba(255, 255, 255, .07); }

/* ---- 엇갈린 2단 격자 ----
   바둑판으로 딱 맞춰 놓으면 카드가 표로 읽힌다. 오른쪽 열을 한 칸 내려 지그재그로 흘린다. */
/* 세 칸으로 화면 폭을 꽉 채운다.
   [주의] 두 칸 + 오른쪽 열 내리기(지그재그)를 써 봤더니, 칸이 커지는 만큼 한 화면에 두 장밖에
   안 들어오고 어긋난 여백이 빈 자리처럼 보였다. 작업을 보여 주는 자리에서는
   한눈에 여러 장이 들어오는 편이 낫다. */
.gb-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(30px, 3.4vw, 52px) clamp(18px, 2.2vw, 32px);
  /* 그림 비율이 제각각이므로 칸을 늘려 맞추지 않는다 — 늘리면 사진 아래 빈 판이 생긴다 */
  align-items: start;
}
/* 접혔다 나오는 두 번째 벌 — 위 격자와 붙지 않게 안쪽에 간격을 둔다(접으면 함께 사라진다) */
.gb-grid-rest { padding-top: clamp(36px, 4.4vw, 72px); }

.gb-card { position: relative; }
.gb-hit { display: block; color: inherit; text-decoration: none; }

/* 칸 높이는 **그림이 아니라 틀이 정한다.**
   [주의] 전에는 그림이 제 비율대로 높이를 정하게 뒀다. 올라온 그림이 전부 900x558 이라
   그때는 줄이 맞았지만, 비율이 다른 그림이 한 장만 섞이거나(대표 이미지가 아직 없는 글 포함)
   앞으로 다른 크기로 올리면 그 칸만 혼자 길어져 격자가 어긋난다 — 실제로 어긋났다.
   틀 비율 16:10 은 올라오는 그림 비율(900/558 = 1.613)에 맞춰 잡은 값이라
   지금 그림들이 잘리는 양은 위아래 합쳐 1% 미만이다.
   덤으로, 틀이 높이를 먼저 잡으므로 그림이 늦게 도착해도 화면이 아래로 밀리지 않는다. */
.gb-thumb {
  position: relative; display: block; overflow: hidden;
  /* 상호 띠를 잘라 낸 뒤 그림이 900x453(1.987)이 되었다 — 틀도 함께 옮긴다.
     16:10 그대로 두면 좌우가 20% 잘려 나간다. */
  aspect-ratio: 2 / 1;
  border-radius: var(--r-lg); background: var(--surface-2);
  box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .45);
  transition: box-shadow .5s var(--ease-out);
}
.has-motion .gb-card:hover .gb-thumb { box-shadow: 0 40px 80px -30px rgba(15, 23, 42, .55); }
.gb-thumb img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 1s var(--ease-out);
}
.has-motion .gb-card:hover .gb-thumb img { transform: scale(1.1); }

/* 대표 이미지가 아직 없는 칸 — 회색 판에 글자 한 자를 크게 놓으면 "빠진 자리"로 보인다.
   짙은 남색 판에 작업 이름을 앉혀 **표지처럼** 만든다. 크기는 사진 칸과 완전히 같다. */
.gb-noimg {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 13px; padding: 0 clamp(18px, 2vw, 30px);
  background: linear-gradient(158deg, var(--dark-1), var(--dark-2));
  text-align: center;
}
.gb-noimg-k {
  font-family: var(--font-display); font-size: 11px; font-weight: 800;
  letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .4);
}
.gb-noimg-t {
  font-size: clamp(15.5px, 1.3vw, 18.5px); font-weight: 700; line-height: 1.5;
  letter-spacing: -.02em; color: rgba(255, 255, 255, .9); word-break: keep-all;
}
/* 올리면 덮개 위에 같은 제목이 또 떠서 두 겹으로 보인다 — 판은 남기고 글자만 물러난다 */
.gb-noimg-k, .gb-noimg-t { transition: opacity .4s var(--ease-out); }
.has-motion .gb-card:hover .gb-noimg-k,
.has-motion .gb-card:hover .gb-noimg-t { opacity: 0; }

/* 덮개와 글은 평소에 없다. 올리면 사진 **전체**가 어두워지고 가운데에 글이 뜬다 —
   아래쪽만 덮으면 사진에 원래 있던 아래 띠와 겹쳐 무엇이 덮개인지 알 수 없다. */
.gb-veil {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0, 0, 0, .7);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.gb-meta {
  position: absolute; z-index: 2; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: clamp(22px, 2.4vw, 34px); text-align: center;
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.has-motion .gb-card:hover .gb-veil,
.has-motion .gb-card:hover .gb-meta { opacity: 1; }
.has-motion .gb-card:hover .gb-meta { transform: none; }

.gb-cat {
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
  font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; color: #fff;
}
.gb-name {
  font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 25px); font-weight: 800;
  line-height: 1.34; letter-spacing: -.025em; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gb-view {
  margin-top: 4px;
  font-size: 14px; font-weight: 700; letter-spacing: -.01em; color: rgba(255, 255, 255, .82);
}

/* ---- 더보기 ----
   1·2·3 페이지 번호를 쓰지 않는다 — 갤러리에서 번호를 누르면 화면이 처음으로 튀고
   방금 보던 자리를 잃는다. 그 자리에서 이어 붙이는 편이 맞다. */
.gb-more-wrap { margin-top: clamp(52px, 6vw, 96px); text-align: center; }
.gb-more {
  display: none;                /* 스크립트가 없으면 처음부터 다 펼쳐져 있어 누를 것이 없다 */
  align-items: center; justify-content: center; gap: 8px;
  margin: 0 auto; padding: 16px 40px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink);
  font-family: inherit; font-size: 15.5px; font-weight: 800; letter-spacing: -.01em;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.has-js .gb-more { display: inline-flex; }
.gb-more:hover { background: var(--ink); color: var(--page); }
.gb-more:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 3px; }
.gb-more .more-bar-close { display: none; }
.gb-more.is-open .more-bar-open { display: none; }
.gb-more.is-open .more-bar-close { display: inline; }

@media (max-width: 1100px) { .gb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .gb-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .gb-grid-rest { padding-top: 26px; }
  /* 손가락에는 hover 가 없다 — 사진 위 글을 항상 보여 준다 */
  .gb-veil, .gb-meta { opacity: 1; }
  .gb-meta { transform: none; }
  .gb-more { padding: 15px 32px; font-size: 15px; }
}

/* ===================================================================
   14. 2026 트렌드 패스 — 장식이 아니라 "구조"로 인상을 바꾼다
   ① 섹션을 화면 안쪽 라운드 패널로  ② 히어로 뒤 은은한 광원
   ③ 미세 그레인  ④ 브라우저 프레임  ⑤ 버튼 그라디언트 흐름  ⑥ 큰 라운드
   =================================================================== */

/* ---------- ① 색면은 화면 끝까지 ----------
   한동안 섹션 배경을 안쪽 라운드 판으로 띄웠는데, 그 결과 모든 콘텐츠가
   가운데 좁은 기둥에 갇혔다. 에이전시 사이트에서는 색면과 이미지가 화면을 가로질러야
   무게가 생긴다. 배경은 끝까지 나가고, **글만** .wrap 안에 정렬한다. */

/* ---------- ② 히어로 뒤 광원 ----------
   배경 전면에 색을 깔지 않으면서 화면에 깊이를 준다. 요소 하나뿐이다. */
.sec-hero-lead { position: relative; overflow: hidden; }
.sec-hero-lead::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: min(900px, 78vw); aspect-ratio: 1;
  right: -14%; top: -34%;
  background: radial-gradient(circle, rgba(44, 88, 166, .30) 0%, rgba(44, 88, 166, .10) 42%, transparent 68%);
  filter: blur(18px);
}
:root[data-skin="dark"] .sec-hero-lead::before {
  background: radial-gradient(circle, rgba(78, 134, 216, .26) 0%, rgba(78, 134, 216, .08) 44%, transparent 70%);
}
/* 어두운 히어로 위에서는 광원을 크게 낮춘다 — 밝은 바탕 기준 농도를 그대로 쓰면
   차콜 위에서 파란 안개처럼 번져 글자를 덮는다. */
.sec-hero-lead.sec-bg-dark::before {
  background: radial-gradient(circle, rgba(78, 134, 216, .16) 0%, rgba(78, 134, 216, .05) 46%, transparent 72%);
}
.sec-hero-lead > .wrap { position: relative; z-index: 1; }

/* ---------- ③ 미세 그레인 ----------
   완전히 매끈한 면은 화면에서 값싸 보인다. 아주 얕게 깔아 질감만 준다. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-skin="dark"] body::after { opacity: .05; }
/* 헤더·플로팅 버튼·팝업은 그레인 위로 올린다 */
.site-header, .float-cta, .wc-pop, .preview-bar { z-index: 100; }

/* ---------- ④ 브라우저 프레임 ----------
   스크린샷을 그냥 두면 "이미지"로 읽히고, 프레임을 씌우면 "우리가 만든 사이트"로 읽힌다.
   지적받은 "무엇을 만드는 회사인지 안 보인다"에 대한 답이다. */
.hero-shot, .gb-thumb, .tpl-thumb { position: relative; }
.hero-shot::before {
  content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 26px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.hero-shot::after {
  content: ""; position: absolute; z-index: 3; left: 12px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--faint);
  box-shadow: 11px 0 0 var(--faint), 22px 0 0 var(--faint);
}
.hero-shot img { margin-top: 26px; height: calc(100% - 26px); }

/* ---------- ⑤ 버튼 — 그라디언트가 흐른다 ---------- */
/* [주의] .btn-front 는 border: 2px solid transparent 를 갖는다.
   배경 기준이 padding-box 인데 칠하기는 border-box 까지 하므로,
   왼쪽 2px 띠에 **다음 타일의 끝색(밝은 파랑)** 이 반복돼 들어와 이음매가 보인다.
   기준을 border-box 로 옮기고 반복을 끈다. */
.btn-front-grad, .tpl-btn-ask, .price-best, .header-cta {
  background-origin: border-box; background-repeat: no-repeat;
  background-size: 200% 100%; background-position: 0% 0;
  transition: background-position .55s var(--ease), transform .2s var(--ease), filter .2s;
}
.btn-front-grad:hover { background-position: 100% 0; filter: none; }

/* ---------- ⑥ 카드에 깊이 ---------- */
.bento-card, .tpl-card, .gb-card, .price-card, .duo-panel, .ctac, .stmt-img, .show-frame img {
  border-radius: var(--r-lg);
}
.ctac, .show-frame img { border-radius: var(--r-xl); }

/* ===================================================================
   19. 무대형 히어로 — 화면을 꽉 채우고 위쪽을 비운 뒤 카피를 아래에 앉힌다.
   대형 에이전시 사이트의 첫 화면 방식이다. 위가 비어 있어야 아래 한 문장이 무겁게 읽힌다.
   =================================================================== */
.sec-hero-stage {
  position: relative; overflow: hidden;
  min-height: 100vh; padding: 0;
  display: flex; align-items: stretch;
  background: var(--dark-1);
}
.sec-hero-stage .stage-track,
.sec-hero-stage .stage-pin { width: 100%; display: flex; }

/* ---------- 스크롤에 고정되는 두 단계 첫 화면 ----------
   섹션을 하나 더 만드는 대신 첫 화면을 붙잡아 두고 문장만 교대한다.
   방문자가 "아직 첫 화면"이라고 느끼는 동안 두 번째 메시지를 읽게 된다.

   진행도(--sp, 0~1)는 JS 가 넣고 실제 전환은 여기서 한다.
   JS 가 없으면 --sp 가 0 이라 첫 문장만 보이고 화면은 그대로 쓸 수 있다. */
.stage-scroll { min-height: 0; overflow: visible; display: block; }
/* 트랙이 길면 문장이 다 바뀐 뒤에도 화면이 붙잡혀 있어 "안 내려간다"고 느낀다.
   교대가 끝나는 지점(52%) 뒤로 남는 구간을 짧게 두는 것이 핵심이다. */
.stage-scroll .stage-track { height: 175vh; display: block; }
.stage-scroll .stage-pin {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: stretch; overflow: hidden;
  background: var(--dark-1);
}
/* 두 메시지를 같은 격자 칸에 겹친다 — 절대배치로 하면 좌우 여백을 건너뛴다 */
.stage-msgs { display: grid; align-items: end; }
.stage-msgs > .stage-copy { grid-area: 1 / 1; }
/* [주의] 스크롤로 값이 바뀌는 속성에 transition 을 걸면 안 된다.
   스크롤은 매 프레임 값을 바꾸는데 transition 이 그때마다 새로 시작해 뒤늦게 따라오고,
   그 결과가 "끊기면서 내려가는" 느낌이다. 값은 스크롤이 직접 그린다. */
.stage-scroll .stage-msg { transition: none; will-change: opacity, transform; }
/* 첫 문장: 0 → 0.42 구간에서 사라진다 */
.has-motion .stage-scroll .stage-msg-1 {
  opacity: clamp(0, calc((0.42 - var(--sp, 0)) / 0.14), 1);
  transform: translateY(calc(var(--sp, 0) * -40px));
}
/* 두 번째 문장: 0.38 부터 올라온다 */
.has-motion .stage-scroll .stage-msg-2 {
  opacity: clamp(0, calc((var(--sp, 0) - 0.38) / 0.14), 1);
  transform: translateY(calc((1 - clamp(0, calc((var(--sp, 0) - 0.38) / 0.14), 1)) * 40px));
}
/* 모션을 끈 사용자에게는 두 문장이 위아래로 그냥 놓인다 — 내용이 사라지지 않는다 */
body:not(.has-motion) .stage-scroll .stage-track { height: auto; }
body:not(.has-motion) .stage-scroll .stage-pin { position: static; height: auto; min-height: 100vh; }
/* 모션을 끈 사용자에게는 겹치지 않고 위아래로 놓인다 */
body:not(.has-motion) .stage-msgs { display: block; }
body:not(.has-motion) .stage-scroll .stage-msg-2 { margin-top: 56px; }
/* 자기 칸에서 잘라야 한다. 모션이 꺼지면 .stage-pin 이 static 이라 흐르는 글자(4,140px)를 못 잡고 페이지 폭을 늘린다. */
.stage-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.stage-poster, .stage-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.stage-video { z-index: 1; }
/* ---------- 배경 그래픽 (코드로) ----------
   이미지 파일 대신 gradient 로 그린다. 화면 폭이 바뀌어도 잘리지 않고 용량이 0 이다.

   세로 광선 세 겹을 주기와 굵기를 달리해 겹치면 규칙이 보이지 않는다.
   마스크로 오른쪽 위에 몰아 두는 이유: 카피가 왼쪽 아래에 앉으므로 그쪽은 비워야 글자가 읽힌다. */
.stage-art {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 62px, rgba(255, 255, 255, .07) 62px 65px, transparent 65px 152px),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(255, 255, 255, .04) 26px 27px, transparent 27px 84px),
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(110, 155, 232, .16) 118px 123px, transparent 123px 296px);
  -webkit-mask-image:
    radial-gradient(118% 88% at 74% 42%, #000 0%, rgba(0, 0, 0, .5) 46%, transparent 78%),
    linear-gradient(180deg, transparent 0%, #000 16%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(118% 88% at 74% 42%, #000 0%, rgba(0, 0, 0, .5) 46%, transparent 78%),
    linear-gradient(180deg, transparent 0%, #000 16%, #000 72%, transparent 100%);
  mask-composite: intersect;
}
/* 아주 느리게 흐른다 — 빠르면 시선을 뺏어 카피를 못 읽는다 */
.has-motion .stage-art { animation: stage-drift 34s linear infinite; }
@keyframes stage-drift {
  from { background-position: 0 0, 0 0, 0 0; }
  to   { background-position: 152px 0, -84px 0, 296px 0; }
}

/* ---------- 배경을 가로지르는 큰 글자 ----------
   같은 벌을 두 개 이어 붙이고 -50% 만큼 밀면 이음매 없이 반복된다.
   테두리만 남기는 이유: 속을 채우면 배경이 아니라 제목이 되어 카피와 싸운다. */
.stage-word {
  position: absolute; z-index: 1; top: 22%; left: 0;
  display: flex; width: max-content; pointer-events: none; user-select: none;
  /* 좌우 끝에서 흐려져야 "잘린" 느낌이 안 난다 */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.stage-word-run { display: flex; flex: none; }
.stage-word-run > span {
  flex: none; white-space: nowrap; padding-right: .26em;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(96px, 17vw, 300px); line-height: 1; letter-spacing: .01em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .16);
}
.has-motion .stage-word { animation: word-run 46s linear infinite; }
@keyframes word-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 아래로 갈수록 짙어지는 막 — 글자가 읽히려면 배경이 무엇이든 이 막이 있어야 한다 */
.stage-veil {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(11, 15, 23, .72) 0%, rgba(11, 15, 23, .30) 34%, rgba(11, 15, 23, .88) 100%),
    linear-gradient(90deg, rgba(11, 15, 23, .74) 0%, rgba(11, 15, 23, .18) 52%, transparent 100%);
}

/* 첫 화면 카피는 **화면 끝 기준**으로 앉힌다.
   본문처럼 1084px 가운데 정렬로 두면 넓은 모니터에서 글씨가 오른쪽으로 밀려
   NHN AD 처럼 왼쪽에 붙어 있지 않게 된다(실측: 그쪽은 1330 문서폭에서 left 123 고정).
   clamp 로 화면이 좁아지면 --edge 까지 줄어든다. */
/* [주의] 직계 자식(>)으로 쓰면 안 된다 — 스크롤 고정을 넣으면서 사이에 track/pin 이 끼어
   규칙이 통째로 안 먹고 본문 컨테이너(1084 가운데 정렬)로 돌아갔다. 후손 선택자로 둔다. */
/* [주의] padding 축약을 쓰면 위아래 값이 0 으로 초기화되어 .stage-inner 의 아래 여백이 사라진다.
   좌우만 지정한다. */
.sec-hero-stage .wrap {
  max-width: none;
  padding-left: var(--edge-lead);
  padding-right: var(--edge-lead);
}
.stage-inner {
  position: relative; z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  /* 아래 여백을 넉넉히 — 76px 은 카피와 스크롤 힌트가 화면 바닥에 붙은 느낌이 든다 */
  padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(84px, 11vh, 140px);
  width: 100%;
}
.stage-copy { max-width: 42em; }
.sec-hero-stage .hero-eyebrow { margin-bottom: 26px; }
.sec-hero-stage .pill { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .26); color: #fff; }
.sec-hero-stage .hero-heading {
  font-size: var(--fs-hero); font-weight: 800; line-height: 1.3; letter-spacing: normal;
  color: #fff; margin: 0 0 26px;
}
.sec-hero-stage .hero-heading .quiet {
  display: block; font-size: .5em; font-weight: 300; line-height: 1.4;
  color: rgba(255, 255, 255, .62); margin-bottom: .1em; letter-spacing: normal;
}
.sec-hero-stage .hero-heading em { display: block; font-style: normal; font-weight: 800; color: #fff; }
.sec-hero-stage .hero-sub { color: rgba(255, 255, 255, .82); font-size: var(--fs-lead); margin: 0 0 32px; max-width: 34em; }
.sec-hero-stage .hero-btns { margin-bottom: 34px; }
.sec-hero-stage .btn-front-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; background: rgba(255, 255, 255, .08); }
.sec-hero-stage .btn-front-ghost:hover { border-color: #fff; }
.stage-hint { color: rgba(255, 255, 255, .68); margin-top: 0; }
.stage-hint::before { border-color: rgba(255, 255, 255, .4); }
.stage-hint::after { background: rgba(255, 255, 255, .8); }

/* ---------- 바뀌는 단어 (CSS 만으로) ----------
   배경 영상이나 그래픽 없이도 첫 화면이 정지 화면으로 읽히지 않게 하는 장치.
   창(roll-win) 높이를 한 줄로 고정하고 목록을 위로 밀어 올린다.
   단어 수마다 이동 거리가 달라 3~6개는 각각 키프레임을 둔다. */
.roll {
  display: flex; align-items: baseline; gap: .3em; flex-wrap: wrap;
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--fs-hero); line-height: 1.3; letter-spacing: normal;
  color: #fff; margin-bottom: .12em;
}
.roll-win { display: inline-block; height: 1.3em; overflow: hidden; vertical-align: bottom; }
.roll-list { display: block; }
.roll-item {
  display: block; height: 1.3em; line-height: 1.3em; white-space: nowrap;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .roll-item { color: var(--brand-text); background: none; }
}
.roll-tail { color: rgba(255, 255, 255, .92); }
/* 화면에서만 보이는 장치라 스크린리더에는 단어 목록을 따로 읽힌다 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
/* 각 단어에서 멈췄다가 넘어간다 — 계속 흐르면 읽을 수 없다 */
.has-motion .roll-3 .roll-list { animation: roll3 7.5s var(--ease-out) infinite; }
.has-motion .roll-4 .roll-list { animation: roll4 10s  var(--ease-out) infinite; }
.has-motion .roll-5 .roll-list { animation: roll5 12.5s var(--ease-out) infinite; }
.has-motion .roll-6 .roll-list { animation: roll6 15s  var(--ease-out) infinite; }
@keyframes roll3 {
  0%,26%    { transform: translateY(0); }
  33%,59%   { transform: translateY(-1.3em); }
  66%,92%   { transform: translateY(-2.6em); }
  100%      { transform: translateY(-3.9em); }
}
@keyframes roll4 {
  0%,20%    { transform: translateY(0); }
  25%,45%   { transform: translateY(-1.3em); }
  50%,70%   { transform: translateY(-2.6em); }
  75%,95%   { transform: translateY(-3.9em); }
  100%      { transform: translateY(-5.2em); }
}
@keyframes roll5 {
  0%,16%    { transform: translateY(0); }
  20%,36%   { transform: translateY(-1.3em); }
  40%,56%   { transform: translateY(-2.6em); }
  60%,76%   { transform: translateY(-3.9em); }
  80%,96%   { transform: translateY(-5.2em); }
  100%      { transform: translateY(-6.5em); }
}
@keyframes roll6 {
  0%,13%    { transform: translateY(0); }
  16.6%,30% { transform: translateY(-1.3em); }
  33.3%,47% { transform: translateY(-2.6em); }
  50%,63%   { transform: translateY(-3.9em); }
  66.6%,80% { transform: translateY(-5.2em); }
  83.3%,97% { transform: translateY(-6.5em); }
  100%      { transform: translateY(-7.8em); }
}

/* 숫자는 오른쪽 아래 — 카피와 겹치지 않으면서 규모를 알린다 */
.stage-facts { display: grid; gap: 26px; flex: none; padding-bottom: 4px; }
.stage-facts .hero-fact-v { background: none; -webkit-text-fill-color: #fff; color: #fff; font-size: var(--fs-num-sm); }
.stage-facts .hero-fact-l { color: rgba(255, 255, 255, .6); }

/* ---------- 헤더가 첫 화면 위에 겹칠 때 ----------
   별도 흰 띠로 떠 있으면 히어로와 분리돼 보인다. 투명하게 얹고 스크롤하면 원래대로 돌아온다. */
.hero-overlay .site-header {
  position: fixed; left: 0; right: 0; top: 0;
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom-color: transparent; box-shadow: none;
}
/* 스크롤하면 배경만 채워진다 — 글자·로고는 이미 어두운 면 기준이라 그대로 둔다 */
.hero-overlay .site-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

@media (max-width: 900px) {
  .stage-inner { flex-direction: column; align-items: flex-start; gap: 34px; padding-bottom: 56px; }
  .stage-facts { grid-template-columns: repeat(3, auto); gap: 12px 26px; }
  .stage-copy { max-width: none; }
  .sec-hero-stage { min-height: 88vh; }
}

/* ---------- 17. 히어로 영상 ----------
   포스터를 먼저 깔고 영상을 그 위에 얹는다. 영상이 못 뜨면 포스터가 남는다. */
.hero-video { position: relative; }
.hero-video-frame {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  aspect-ratio: 4 / 3; background: var(--surface-2);
  border: 1px solid var(--line); box-shadow: var(--sh-lg);
}
.hero-video-poster, .hero-video-el {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-video-el { z-index: 1; }
.hero-video-tag {
  position: absolute; z-index: 2; left: 18px; top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: -.01em;
  background: rgba(16, 14, 14, .55); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-video-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; flex: none; }
.has-motion .hero-video-dot { animation: wc-rec 1.6s steps(1) infinite; }
@keyframes wc-rec { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .25; } }

/* 영상 옆에 만든 사이트 화면 하나를 겹쳐 "제작도 한다"를 같이 보여준다 */
.hero-video-side {
  position: absolute; right: -4%; bottom: -8%; width: 42%; max-width: 260px; z-index: 3;
}
.hero-video-side .hero-shot { box-shadow: var(--sh-lg); aspect-ratio: 3 / 4; }
/* 공통 .hero-shot img 가 margin-top:26px 를 갖는데, 여기서는 top:26px 로 이미 내려놓았다.
   둘 다 걸리면 52px 이 밀려 프레임 안이 비어 보인다(실제로 그 상태였다). */
.hero-video-side .hero-shot img {
  position: absolute; inset: 26px 0 0; margin-top: 0;
  width: 100%; height: calc(100% - 26px);
  object-fit: cover; object-position: top center;
}
.hero-video-side .hero-badge { left: 8%; bottom: 6%; }

/* 모바일 — 영상을 아예 내려받지 않는다. 포스터만 남는다. */
@media (max-width: 860px) {
  .hero-video-el { display: none; }
  .hero-video-side { display: none; }
  .hero-video-frame { aspect-ratio: 16 / 10; }
}

/* ---------- 18. 고객사 로고 월 ----------
   두 줄이 서로 반대로 흐른다. 한 줄이면 띠, 두 줄이면 벽으로 읽힌다. */
.logowall { display: grid; gap: 14px; }
.logowall .mq-track { animation-duration: 46s; }
.logowall .mq:nth-child(2) .mq-track { animation-direction: reverse; animation-duration: 58s; }
.logowall-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.logowall-note { font-size: var(--fs-sm); color: var(--muted); }
.logowall-note b { color: var(--ink); font-family: var(--font-num); font-size: 17px; }

/* ---------- 15. 이미지 영역 ----------
   비어 있으면 규격을 글자로 알려주고, 이미지가 들어오면 그 즉시 사라진다. */
.imgspot-head { margin-bottom: 34px; }
.sec-imgspot .sec-title, .sec-imgspot .sec-sub { text-align: left; margin-left: 0; margin-right: 0; }
.sec-imgspot .sec-sub { max-width: 58ch; }
.imgspot-full { width: 100%; padding: 0 var(--panel-gap, 20px); }
.imgspot-full .imgspot-head { max-width: var(--wrap-w); margin: 0 auto 34px; padding: 0 var(--edge); }

.imgspot { position: relative; overflow: hidden; border-radius: var(--r-xl); margin: 0; }
.imgspot-21-9 { aspect-ratio: 21 / 9; }
.imgspot-16-9 { aspect-ratio: 16 / 9; }
.imgspot-3-2  { aspect-ratio: 3 / 2; }
.imgspot-4-3  { aspect-ratio: 4 / 3; }
.imgspot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.imgspot.is-filled { border: 1px solid var(--line); box-shadow: var(--sh-lg); }
.imgspot-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 26px 20px;
  background: linear-gradient(transparent, rgba(16, 14, 14, .78));
  color: #fff; font-size: var(--fs-sm); font-weight: 600;
}
/* 비어 있는 자리 — 한눈에 "아직 안 채운 곳"으로 보여야 한다 */
.imgspot.is-empty {
  display: grid; place-items: center;
  border: 2px dashed var(--input-line); background: var(--surface-2);
}
.imgspot-note { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 20px; }
.imgspot-tag {
  padding: 6px 14px; border-radius: var(--r-sm); font-size: var(--fs-xs); font-weight: 700;
  background: var(--grad-btn); color: #fff;
}
.imgspot-name { font-family: var(--font-display); font-size: clamp(17px, 1.8vw, 22px); font-weight: 700; color: var(--body-c); }
.imgspot-size { font-family: var(--font-num); font-size: var(--fs-sm); color: var(--faint); }

/* ---------- 16. 대형 지표 띠 ----------
   숫자를 화면 폭으로 세운다. "규모가 있다"는 인상은 문장이 아니라 숫자 크기에서 온다. */
.nums-head { margin-bottom: 46px; max-width: 62ch; }
.sec-nums .sec-title, .sec-nums .sec-sub { text-align: left; margin-left: 0; margin-right: 0; }
.nums-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.nums-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nums-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nums-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nums-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nums-item {
  display: flex; flex-direction: column; gap: 10px;
  padding: 8px 28px 8px 0; position: relative;
}
.nums-item + .nums-item { padding-left: 28px; }
.nums-item + .nums-item::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line);
}
.nums-v {
  font-size: clamp(40px, 6.4vw, 92px); line-height: .95; letter-spacing: -.04em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .nums-v { color: var(--ink); background: none; }
}
.nums-v .num-u { font-size: .38em; }
.nums-l { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.nums-n { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }

@media (max-width: 900px) {
  .nums-3, .nums-4, .nums-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 0; }
  .nums-item:nth-child(odd) { padding-left: 0; }
  .nums-item:nth-child(odd)::before { display: none; }
}
@media (max-width: 520px) {
  .nums-2, .nums-3, .nums-4, .nums-5 { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .nums-item, .nums-item + .nums-item { padding: 0; }
  .nums-item::before { display: none !important; }
}

/* ---------- 13. 푸터 SNS ---------- */
/* 푸터 상단의 브랜드 선 — 스킨과 무관하게 항상 있어야 한다(구조이지 색이 아니다).
   면적을 안 먹고도 브랜드 색이 남는 자리다. */
.site-footer { position: relative; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, #1B2F63 0%, #2C58A6 55%, #6E9BE8 100%);
}
.footer-logo { display: block; margin-bottom: 18px; }
.footer-logo img { height: 34px; width: auto; }

.footer-sns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.footer-sns a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .86);
  transition: border-color .18s, background .18s;
}
.footer-sns a:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-lg { grid-column: span 2; grid-row: span 2; }
  .bento-md { grid-column: span 2; grid-row: span 1; }
  .hero-lead-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-collage { max-width: 560px; }
  .stmt-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
}
@media (max-width: 860px) {
  .duo-grid, .duo-ratio-60, .duo-ratio-70 { grid-template-columns: minmax(0, 1fr); }
  .duo-panel { min-height: 0; }
  /* 좁은 화면에서는 단계 이름을 지우고 번호만 남긴다 — 세 이름이 한 줄에 들어가지 않는다 */
  .steps-name { display: none; }
  .steps-item { flex: 0 0 auto; }
  .steps-bar { gap: 8px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bento-lg, .bento-md, .bento-sm { grid-column: span 1; grid-row: auto; }
  .bento-lg { min-height: 340px; }
  .bento-case, .bento-video { min-height: 300px; }
  /* 375px 에서 auto-fit 은 2칸까지만 들어가 마지막 숫자가 혼자 아랫줄에 남는다.
     숫자 3개는 한 줄에 나란히 서야 "규모"로 읽히므로 칸 수를 고정하고 설명 글자를 줄인다. */
  .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; }
  .hero-fact-l { font-size: 12px; line-height: 1.4; }
  .hero-lead .hero-btns { margin-bottom: 26px; }
  .sec-hero-lead { padding-top: 46px; padding-bottom: 62px; }
}

/* 좁은 화면에서는 원형 아이콘만 남긴다.
   글자까지 두면 버튼 폭이 화면의 1/3 을 먹어 폼 입력칸을 덮는다 (실제로 연락처 칸이 가려졌다).
   글자는 지우지 않고 화면에서만 숨겨 스크린리더가 읽을 이름을 유지한다. */
@media (max-width: 640px) {
  .float-cta { right: 12px; bottom: 12px; gap: 9px; }
  .float-btn { width: 48px; height: 48px; padding: 0; justify-content: center; gap: 0; }
  .float-label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .float-ico { width: 22px; height: 22px; }
  /* 마지막 콘텐츠가 버튼에 영구히 가리지 않도록 푸터 아래 여유를 준다 */
  .site-footer { padding-bottom: 78px; }
}
@media (prefers-reduced-motion: reduce) {
  .float-btn, .post-files a { transition: none; }
  .float-btn:hover, .post-files a:hover { transform: none; }
}

/* ==========================================================================
   큰 카드 슬라이드 (.sec-slides)
   --------------------------------------------------------------------------
   공정·역량을 카드 3장으로 세운다. features(아이콘 + 두 줄)와 자리는 비슷해 보이지만
   여기서는 카드 **위쪽 절반이 통째로 그래픽**이고, 그 그래픽이 곧 제작 역량의 증거다.

   [원칙] 카드는 섹션 배경과 무관하게 **항상 어두운 유리판**이다.
   밝은 섹션에 얹어도 "어두운 데서 화면만 빛난다"는 연출이 유지되어야 하므로
   여기서는 --surface 계열 토큰을 따르지 않고 자기 색을 갖는다. 이 섹션만의 예외다.
   ========================================================================== */

/* [주의] 첫 화면(히어로)이 어두우면 바로 뒤의 어두운 섹션은
   `.sec-bg-dark + .sec-bg-dark { padding-top: 0 }` 에 걸려 위 여백을 통째로 잃는다.
   그 규칙은 "여백이 두 배로 벌어진다"를 막으려는 것인데, 히어로는 여백 없음(_pad=none)으로
   자기 안쪽에서 간격을 만들기 때문에 전제가 성립하지 않는다. 명시도를 같게(0,2,0) 맞춰 되돌린다. */
.sec-hero + .sec-bg-dark { padding-top: var(--sec-pad); }

.sec-slides {
  position: relative; overflow: hidden;
  /* 이 섹션의 바탕은 따뜻한 차콜(--dark-bg 기본값)이 아니라 중립 회색이다.
     카드 안 그래픽이 전부 차가운 파랑 계열이라 따뜻한 바탕과 부딪힌다.
     스킨(밝게/어둡게)과 무관하게 같은 값을 써서 두 화면의 인상을 맞춘다. */
  --dark-bg: var(--dark-2);
}

/* 유리판이 유리로 보이려면 뒤에 흐릴 것이 있어야 한다.
   평평한 색면 위의 backdrop-filter 는 아무 일도 하지 않는다 — 아주 옅은 빛 두 덩이를 깔아 준다. */
.sec-slides::before {
  content: ""; position: absolute; inset: -10% -5% auto; height: 120%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(48% 42% at 18% 28%, rgba(78, 134, 216, .16), transparent 70%),
    radial-gradient(42% 38% at 86% 70%, rgba(127, 216, 255, .10), transparent 72%);
}
.sec-slides > * { position: relative; z-index: 1; }

/* ---- 머리 — 제목은 왼쪽, 설명은 오른쪽 아래에 붙인다.
   제목 아래 가운데 설명을 두는 배치가 이 페이지에서 이미 여러 번 반복돼 리듬이 죽는다.

   [정렬] 본문 컨테이너(.wrap, 1084 가운데)를 쓰지 않고 첫 화면과 같은 선(--edge-lead)에 세운다.
   1084 가운데 정렬은 넓은 화면에서 글자 시작점을 오른쪽으로 밀어(1440에서 171px) 바로 위
   첫 화면 카피(123px)와 어긋난다 — 스크롤로 이어 보는 두 화면이라 그 어긋남이 그대로 보인다. */
.sec-lead {
  max-width: none;
  padding-left: var(--edge-lead);
  padding-right: var(--edge-lead);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .62fr);
  column-gap: clamp(28px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(38px, 4.6vw, 62px);
}
/* 제목도 첫 화면과 같은 크기로 — 섹션 제목 크기(40px)로 두면 첫 화면(76px)에서 내려온 순간
   글씨가 반 토막 나서 "본문이 시작됐다"가 아니라 "힘이 빠졌다"로 읽힌다. */
.sec-lead-title { font-size: var(--fs-hero); line-height: 1.16; }
.sec-lead > .kicker   { grid-column: 1; grid-row: 1; }
.sec-lead > .sec-lead-title { grid-column: 1; grid-row: 2; margin: 0; }
.sec-lead > .sec-lead-sub   { grid-column: 2; grid-row: 2; margin: 0 0 5px; max-width: 46ch; font-size: var(--fs-lead); }

/* 큰 따옴표 — 문장을 선언으로 만든다. 글자와 같은 흐름에 두되 색만 브랜드 그라디언트로 뺀다. */
.sec-lead-title-q::before, .sec-lead-title-q::after {
  font-family: var(--font-display); font-size: 1.06em; font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-lead-title-q::before { content: "\201C"; margin-right: .04em; }
.sec-lead-title-q::after  { content: "\201D"; margin-left: .03em; }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .sec-lead-title-q::before, .sec-lead-title-q::after { color: var(--brand-text); background: none; }
}

/* ---- 레일 — 가장자리 30px 만 남기고 화면을 가로지른다.
   [주의] 여기서는 100vw 트릭(.bleed-out)을 쓰지 않는다. 이 요소는 글 컨테이너(.wrap) 안이 아니라
   섹션의 직계 자식이라 이미 화면 폭이다. 굳이 100vw 로 다시 잡으면 스크롤바 보정(--sbw)에
   목숨을 걸게 되고, 그 값이 한 번 잘못 잡히면 레일이 통째로 좁아진다. 가장자리는 padding 으로 준다. */
.sl-railwrap { position: relative; }
.sl-rail {
  list-style: none; margin: 0; padding: 4px var(--edge) 6px;
  display: grid; gap: clamp(14px, 1.6vw, 22px);
}
.sl-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sl-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 4장 이상 — 옆으로 미는 레일. 화면 밖으로 이어지게 두어 "더 있다"가 보이게 한다. */
.sl-railwrap.is-rail .sl-rail {
  grid-auto-flow: column; grid-template-columns: none;
  grid-auto-columns: minmax(288px, 30%);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: thin;
  padding-bottom: 20px;
}
.sl-railwrap.is-rail .sl-card { scroll-snap-align: start; }
/* [주의] 표준 속성(scrollbar-width/color)이 있으면 크롬은 ::-webkit-scrollbar 를 무시한다.
   둘 중 하나만 쓰면 밝은 기본 스크롤바가 어두운 섹션 위에 그대로 남는다 — 둘 다 적는다. */
.sl-rail { scrollbar-color: rgba(255, 255, 255, .26) transparent; }
.sl-rail::-webkit-scrollbar { height: 8px; }
.sl-rail::-webkit-scrollbar-track { background: transparent; }
.sl-rail::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); border-radius: 4px; }
.sl-rail:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 4px; }

/* 내장 그래픽(themes/base/_art.php)이 쓰는 색과 반응의 기준점.
   그림 자체는 이 변수만 참조하므로, 이 클래스를 붙인 요소 안이면 어디서든 같은 그림이 돈다
   (슬라이드 카드 · 서비스 타일이 같은 그림을 공유한다). */
.art-host {
  --a-bg:      #0B0E14;
  --a-line:    rgba(255, 255, 255, .13);
  --a-line2:   rgba(255, 255, 255, .30);
  --a-ink:     #EEF3FA;
  --a-dim:     rgba(255, 255, 255, .42);
  --a-blue:    #4E86D8;
  --a-blue-hi: #9CC2F5;
  --a-glow:    #7FD8FF;
}

/* ---- 카드 — 어두운 유리판 ---- */
.sl-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(168deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .028) 46%, rgba(255, 255, 255, .015));
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
  box-shadow: 0 30px 64px -34px rgba(0, 0, 0, .85);
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
/* 테두리를 border 로 그리면 한 가지 색밖에 못 쓴다.
   1px 링을 마스크로 뚫어 그라디언트 헤어라인을 만든다(위쪽이 밝고 아래로 사라진다). */
.sl-card::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .06) 34%, rgba(255, 255, 255, .04) 72%, rgba(78, 134, 216, .22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: background var(--dur-1) var(--ease-out);
}
@supports not ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .sl-card { border: 1px solid rgba(255, 255, 255, .14); }
  .sl-card::before { display: none; }
}

.has-motion .sl-card:hover, .has-motion .sl-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 40px 78px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(78, 134, 216, .16);
}
.has-motion .sl-card:hover::before, .has-motion .sl-card:focus-within::before {
  background: linear-gradient(150deg, rgba(255, 255, 255, .52), rgba(127, 216, 255, .30) 32%, rgba(78, 134, 216, .34) 68%, rgba(156, 194, 245, .46));
}

/* ---- 그래픽 판 ---- */
.sl-art {
  position: relative; aspect-ratio: 400 / 260; overflow: hidden;
  background: var(--a-bg);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.sl-svg { display: block; width: 100%; height: 100%; }
.sl-img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 화면 뒤에서 새어 나오는 빛 — 반응하면 강해진다 */
.sl-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(58% 52% at 50% 62%, rgba(78, 134, 216, .18), transparent 70%);
  opacity: .75; transition: opacity var(--dur-2) var(--ease-out);
}
.has-motion .sl-card:hover .sl-glow, .has-motion .sl-card:focus-within .sl-glow { opacity: 1; }

/* ---- 본문 ---- */
.sl-body {
  display: flex; flex-direction: column; flex: 1;
  padding: clamp(20px, 2vw, 28px) clamp(20px, 2vw, 28px) clamp(22px, 2.2vw, 30px);
}
.sl-meta { display: flex; align-items: baseline; gap: 11px; margin-bottom: 12px; }
.sl-no {
  font-family: var(--font-num); font-size: 15px; font-weight: 700; letter-spacing: .02em;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .sl-no { color: var(--brand-text); background: none; }
}
.sl-en {
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase; color: rgba(255, 255, 255, .46);
}
.sl-name {
  font-family: var(--font-display); font-size: clamp(19px, 1.6vw, 23px); font-weight: 800;
  letter-spacing: var(--ls-tight); line-height: 1.3; color: #F6F9FE; margin: 0 0 10px;
}
.sl-desc { margin: 0 0 18px; font-size: 15.5px; line-height: 1.68; color: rgba(255, 255, 255, .62); }
.sl-tags {
  list-style: none; margin: auto 0 0; padding: 14px 0 0;
  display: flex; flex-wrap: wrap; gap: 7px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.sl-tags li {
  padding: 6px 11px; border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: var(--fs-xs); font-weight: 600; color: rgba(255, 255, 255, .70);
  transition: border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.has-motion .sl-card:hover .sl-tags li, .has-motion .sl-card:focus-within .sl-tags li {
  border-color: rgba(156, 194, 245, .34); color: rgba(255, 255, 255, .88);
}
.sl-link {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); font-weight: 700; color: var(--a-blue-hi);
}
.sl-link-ar { transition: transform var(--dur-1) var(--ease-out); }
.has-motion .sl-card:hover .sl-link-ar { transform: translateX(4px); }

/* ---- 레일 화살표 — JS 가 밀 곳이 있을 때만 보여 준다 ---- */
.sl-nav { display: flex; gap: 8px; justify-content: flex-end; padding: 14px var(--edge) 0; }
.sl-nav[hidden] { display: none; }
.sl-arw {
  width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .78); font-size: 17px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), opacity .2s;
}
.sl-arw:hover { background: rgba(255, 255, 255, .11); border-color: rgba(156, 194, 245, .42); }
.sl-arw:disabled { opacity: .3; cursor: default; }

/* ---- 좁은 화면 — 3칸이 288px 아래로 내려가기 전에 레일로 바꾼다 ---- */
@media (max-width: 1080px) {
  .sec-lead { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .sec-lead > .sec-lead-sub { grid-column: 1; grid-row: 3; margin: 0; max-width: 60ch; }
  /* [주의] grid-auto-columns 에 % 를 쓰면 트랙이 넘치는 순간 기준이 흔들려
     minmax() 의 최소값으로 주저앉는다(375px 에서 86% 를 넣었더니 240px 이 나왔다).
     vw 로 잡아 폭을 확정한다 — 다음 카드가 살짝 보여야 "밀 수 있다"가 전달된다. */
  .sl-rail {
    grid-auto-flow: column; grid-template-columns: none;
    grid-auto-columns: clamp(272px, 52vw, 480px);
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scrollbar-width: thin;
    padding-bottom: 20px;
  }
  .sl-card { scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .sl-rail { grid-auto-columns: clamp(258px, 78vw, 330px); }
  .sl-desc { font-size: 15px; }
}

/* ---- 내장 그래픽의 반응 (themes/base/_slide_art.php) ----
   [원칙] 평소에는 **정지**한다. 카드 3장이 늘 움직이면 그때부터 싸구려로 보인다.
   모든 규칙이 .has-motion 아래에 있으므로 모션 저감 설정이면 자동으로 전부 꺼진다.
   변형은 transform / opacity / stroke-dashoffset 만 쓴다 — 나머지는 매 프레임 레이아웃을 다시 잰다. */

/* 01 설계 도면 — 반응하면 치수선과 지시선이 그려져 도면이 완성된다 */
.a1-art { stroke-linecap: round; stroke-linejoin: round; }
.a1-paper { opacity: .85; }
.has-motion .a1-paper { transition: opacity .5s var(--ease-out); }
.has-motion .a1-draw {
  opacity: 0;
  transition: stroke-dashoffset .6s var(--ease-out), opacity .3s var(--ease-out);
}
/* dashoffset 은 각 선의 실제 길이와 같아야 한다 — 짧으면 선이 중간에서 끊겨 보인다 */
.has-motion .a1-draw-v { stroke-dashoffset: 138; }
.has-motion .a1-draw-l { stroke-dashoffset: 101; }
.has-motion .a1-cap { opacity: 0; transition: opacity .3s var(--ease-out) .35s; }
.has-motion .art-host:hover .a1-draw, .has-motion .art-host:focus-within .a1-draw { opacity: 1; stroke-dashoffset: 0; }
.has-motion .art-host:hover .a1-cap,  .has-motion .art-host:focus-within .a1-cap  { opacity: 1; }
.has-motion .art-host:hover .a1-paper, .has-motion .art-host:focus-within .a1-paper { opacity: 1; }

/* 02 디바이스 목업 — 두 기기가 조금 다가오고 주소창 아래를 로딩 바가 지나간다 */
.a2-root { stroke-linejoin: round; }
.a2-bed, .a2-desk { transform-box: fill-box; transform-origin: 50% 50%; }
.a2-phone { transform-box: view-box; transform-origin: 316px 155px; }
.a2-bed, .a2-desk, .a2-phone { transition: transform .55s var(--ease-out), opacity .55s var(--ease-out); }
.a2-bed { opacity: .8; }
.a2-load {
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
  transition: stroke-dashoffset .6s var(--ease-out), opacity .35s var(--ease-out);
}
.has-motion .art-host:hover .a2-bed,   .has-motion .art-host:focus-within .a2-bed   { opacity: 1; transform: scale(1.1); }
.has-motion .art-host:hover .a2-desk,  .has-motion .art-host:focus-within .a2-desk  { transform: scale(1.025); }
.has-motion .art-host:hover .a2-phone, .has-motion .art-host:focus-within .a2-phone { transform: translate(2px, 2px) scale(1.02); }
.has-motion .art-host:hover .a2-load,  .has-motion .art-host:focus-within .a2-load  { opacity: .9; stroke-dashoffset: 0; }

/* 03 성과 그래프 — 곡선이 그려지고 막대가 순서대로 서고 끝점과 수치가 튀어나온다.
   여기만 transition 이 아니라 animation 을 쓴다 — 여러 단계(작게 → 살짝 넘게 → 제자리)를
   거쳐야 "튀어나오는" 느낌이 나는데 transition 은 두 상태 사이만 잇는다.
   @keyframes 자체는 아무 데도 붙어 있지 않고, .art-host:hover 안에서만 실행된다. */
.a3-curve { stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 320; stroke-dashoffset: 0; }
.a3-bar { transform-box: fill-box; transform-origin: 50% 100%; }
.a3-mark, .a3-chip { transform-box: fill-box; transform-origin: 50% 50%; }
.a3-bar:nth-of-type(1) { --a3-d: .08s; }
.a3-bar:nth-of-type(2) { --a3-d: .125s; }
.a3-bar:nth-of-type(3) { --a3-d: .17s; }
.a3-bar:nth-of-type(4) { --a3-d: .215s; }
.a3-bar:nth-of-type(5) { --a3-d: .26s; }
.a3-bar:nth-of-type(6) { --a3-d: .305s; }
.a3-bar:nth-of-type(7) { --a3-d: .35s; }

/* [주의] 막대와 면적을 opacity 0 에서 시작시키면 마우스를 올리는 순간 그래프가 **비었다가**
   다시 그려진다. 카드 위를 스치듯 지나가는 사람에게는 그게 "깜빡임"으로만 남는다.
   비우지 않고 살짝 눌렀다 펴는 정도로 둔다 — 실제로 그려지는 것은 곡선 하나뿐이다. */
@keyframes a3-draw { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }
@keyframes a3-grow { from { transform: scaleY(.78); } to { transform: scaleY(1); } }
@keyframes a3-lift { from { opacity: .55; } to { opacity: 1; } }
@keyframes a3-pop  { 0% { transform: scale(.55); opacity: 0; } 66% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes a3-fade { from { opacity: 0; } to { opacity: 1; } }

.has-motion .art-host:hover .a3-curve, .has-motion .art-host:focus-within .a3-curve { animation: a3-draw .5s cubic-bezier(.4, 0, .2, 1) both; }
.has-motion .art-host:hover .a3-area,  .has-motion .art-host:focus-within .a3-area  { animation: a3-lift .42s var(--ease-out) .26s both; }
.has-motion .art-host:hover .a3-bar,   .has-motion .art-host:focus-within .a3-bar   { animation: a3-grow .42s var(--ease-out) var(--a3-d, 0s) both; }
.has-motion .art-host:hover .a3-drop,  .has-motion .art-host:focus-within .a3-drop  { animation: a3-fade .34s linear .4s both; }
.has-motion .art-host:hover .a3-halo,  .has-motion .art-host:focus-within .a3-halo  { animation: a3-fade .38s linear .44s both; }
.has-motion .art-host:hover .a3-mark,  .has-motion .art-host:focus-within .a3-mark  { animation: a3-pop .4s var(--ease-out) .44s both; }
.has-motion .art-host:hover .a3-chip,  .has-motion .art-host:focus-within .a3-chip  { animation: a3-pop .4s var(--ease-out) .5s both; }

/* ==========================================================================
   서비스 벤토 그리드 (.sec-srv)
   --------------------------------------------------------------------------
   큰 타일 2 (주력) + 작은 타일 3 (나머지). 크기가 곧 위계다.
   타일은 섹션 배경과 무관하게 항상 어두운 유리판 — 밝은 섹션에 얹어도 연출이 유지된다.
   ========================================================================== */

.sec-srv {
  position: relative; overflow: hidden;
  /* 바탕은 중립 회색. 타일 안 그래픽이 차가운 파랑이라 따뜻한 차콜과 부딪힌다. */
  --dark-bg: var(--dark-2);
  /* 이 섹션에서만 쓰는 보조 강조색. 브랜드 파랑에 아주 옅은 보라를 섞어 유리면에 깊이를 준다 —
     글자나 버튼에는 쓰지 않는다(브랜드색은 파랑 하나다). 면과 빛에만 얹는다. */
  --srv-violet: #8E7CF0;
  --srv-blue:   #5B8CE8;
}
/* 유리면이 유리로 보이려면 뒤에 흐릴 것이 있어야 한다 — 평평한 색면 위의 blur 는 아무 일도 안 한다 */
.sec-srv::before {
  content: ""; position: absolute; inset: -12% -6% auto; height: 124%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(44% 40% at 16% 22%, rgba(91, 140, 232, .17), transparent 70%),
    radial-gradient(40% 38% at 84% 74%, rgba(142, 124, 240, .13), transparent 72%);
}
.sec-srv > * { position: relative; z-index: 1; }

/* ---- 격자 — 6칸. 큰 타일이 3칸(가로 절반), 작은 타일이 2칸(1/3).
   머리글과 같은 선(--edge-lead)에 세운다. 옆으로 미는 레일이 아니라 고정 격자라
   화면 끝까지 나갈 이유가 없다 — 나가면 글 시작점과 격자 시작점이 어긋난 것으로만 보인다. */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(14px, 1.35vw, 20px);
  padding: 0 var(--edge-lead);
}
/* 화면 한 판을 쓴다 — 앞 히어로가 화면 단위로 넘어오므로 이 판만 어중간하게 짧으면
   스크롤 리듬이 끊긴다. 안쪽 여백은 vh 로 잡아 짧은 노트북 화면(~900px)에서도
   판 전체가 한 화면 안에 들어온다(전에는 1043px 고정이라 900 화면에서 잘렸다). */
.sec.sec-srv.sec-pad-normal {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(48px, 5vh, 96px); padding-bottom: clamp(48px, 5vh, 96px);
}
.srv-lg { grid-column: span 3; min-height: clamp(240px, 26vh, 330px); }
.srv-sm { grid-column: span 2; min-height: clamp(150px, 17vh, 186px); }
/* 타일이 4개(큰 2 + 작은 2)일 때 — 작은 타일 2개가 2/6칸씩만 차지하면 오른쪽 1/3이 빈다.
   정확히 4개째가 마지막일 때만 절반씩 차지하게 넓힌다. 5개 배치(작은 3개)는 그대로다. */
.srv-grid > .srv-sm:nth-child(3):nth-last-child(2),
.srv-grid > .srv-sm:nth-child(4):last-child { grid-column: span 3; }

/* ---- 타일 ---- */
.srv-tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.2vw, 32px);
  color: rgba(255, 255, 255, .62);
  background:
    linear-gradient(158deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .026) 46%, rgba(255, 255, 255, .014)),
    rgba(13, 16, 26, .66);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 30px 64px -34px rgba(0, 0, 0, .85);
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
/* 테두리를 border 로 그리면 한 가지 색밖에 못 쓴다. 1px 링을 마스크로 뚫어 그라디언트로 만든다. */
.srv-tile::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, .05) 36%, rgba(255, 255, 255, .035) 74%, rgba(91, 140, 232, .22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: background var(--dur-1) var(--ease-out);
}
@supports not ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .srv-tile { border: 1px solid rgba(255, 255, 255, .13); }
  .srv-tile::before { display: none; }
}
.has-motion .srv-tile:hover, .has-motion .srv-tile:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 46px 84px -32px rgba(0, 0, 0, .92), 0 0 46px -14px rgba(91, 140, 232, .34);
}
.has-motion .srv-tile:hover::before, .has-motion .srv-tile:focus-within::before {
  background: linear-gradient(150deg, rgba(255, 255, 255, .52), rgba(142, 124, 240, .40) 34%, rgba(91, 140, 232, .40) 68%, rgba(156, 194, 245, .48));
}
.srv-tile:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 4px; }

.srv-body { position: relative; z-index: 2; }

/* ---- 큰 타일 — 글은 왼쪽, 그래픽은 오른쪽. 겹치지 않게 글 폭을 줄여 자리를 비운다. */
.srv-lg .srv-body { max-width: 55%; }
/* [주의] 그래픽을 타일 밖으로 밀어내지 마라(translate). 이 그림들은 400×260 안에 이미
   자기 여백을 갖고 완결된 구성이라, 조금만 밀려도 "흘러나가는" 게 아니라 **잘린 것**으로 보인다.
   타일 안에 통째로 넣고, 글 쪽으로 넘어오는 왼쪽만 마스크로 지운다. */
.srv-art {
  position: absolute; z-index: 1;
  right: clamp(10px, 1.2vw, 18px); bottom: clamp(10px, 1.2vw, 18px);
  width: 43%; display: block; line-height: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(105deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(105deg, transparent 0%, #000 30%);
  transform-origin: 100% 100%;
  transition: transform var(--dur-2) var(--ease-out);
}
.srv-art .sl-svg { width: 100%; height: auto; }
.has-motion .srv-tile:hover .srv-art, .has-motion .srv-tile:focus-within .srv-art {
  transform: scale(1.04);
}

/* ---- 글 ---- */
.srv-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 16px; border-radius: var(--r-sm);
  color: #CFE0FA;
  background: linear-gradient(150deg, rgba(91, 140, 232, .26), rgba(142, 124, 240, .16));
  border: 1px solid rgba(255, 255, 255, .13);
  transition: color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.srv-ico-svg { width: 22px; height: 22px; }
.has-motion .srv-tile:hover .srv-ico, .has-motion .srv-tile:focus-within .srv-ico {
  color: #fff; transform: translateY(-2px); border-color: rgba(156, 194, 245, .38);
}
.srv-en {
  display: block; margin-bottom: 9px;
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase; color: rgba(255, 255, 255, .44);
}
.srv-name {
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: var(--ls-tight); line-height: 1.32; color: #F6F9FE; margin: 0 0 10px;
}
.srv-lg .srv-name { font-size: clamp(20px, 1.75vw, 26px); }
.srv-sm .srv-name { font-size: clamp(17px, 1.3vw, 19px); }
.srv-desc { margin: 0; font-size: 15.5px; line-height: 1.7; color: rgba(255, 255, 255, .60); }
.srv-sm .srv-desc { font-size: 14.5px; }
.srv-tags {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 7px;
}
.srv-tags li {
  padding: 6px 12px; border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, .13);
  font-size: var(--fs-xs); font-weight: 600; color: rgba(255, 255, 255, .66);
  transition: border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.has-motion .srv-tile:hover .srv-tags li, .has-motion .srv-tile:focus-within .srv-tags li {
  border-color: rgba(156, 194, 245, .34); color: rgba(255, 255, 255, .86);
}

/* ---- 좁은 화면 ----
   1180px 아래에서는 큰 타일 옆에 그래픽이 들어갈 자리가 안 나온다.
   글을 전폭으로 되돌리고 그래픽은 아래로 흘려 배경 요소로 남긴다. */
@media (max-width: 1180px) {
  .srv-lg { grid-column: span 6; min-height: 300px; }
  .srv-lg .srv-body { max-width: 62%; }
  .srv-art { width: 40%; }
}
@media (max-width: 820px) {
  .srv-sm { grid-column: span 3; }
  .srv-lg .srv-body { max-width: 100%; }
  /* 글이 전폭으로 돌아오므로 그래픽은 글 뒤로 물러나 배경 요소가 된다 */
  .srv-art { width: 52%; opacity: .38; }
}
@media (max-width: 560px) {
  /* nth-child 규칙(타일 4개 배치)이 명시도가 높아서 같은 선택자로 덮어야 한 줄씩 쌓인다 */
  .srv-sm,
  .srv-grid > .srv-sm:nth-child(3):nth-last-child(2),
  .srv-grid > .srv-sm:nth-child(4):last-child { grid-column: span 6; min-height: 0; }
  .srv-lg { min-height: 0; }
  .srv-art { display: none; }
}

/* ==========================================================================
   대표 작업 (.sec-works)
   --------------------------------------------------------------------------
   앞 섹션(서비스 벤토)이 어두운 판이므로 여기는 밝은 면으로 뒤집어 대비를 만든다.
   고객사 사이트 화면은 거의 흰 배경이라, 어두운 판 위에 얹으면 사진마다 흰 덩어리가 떠 보인다.
   ========================================================================== */

/* 이 섹션의 연회색은 사이트 기본 연회색(--bg-off, 따뜻한 회색 #E9E7E3)보다
   더 밝고 차갑다. 기본값은 흰 카드를 얹으면 카드가 묻히고 전체가 탁해 보인다.
   [주의] 값을 그냥 박으면 어두운 스킨에서 이 섹션만 흰 판이 된다 — 스킨별로 같이 정한다. */
.sec-works { --bg-off: #F4F7FB; }
:root[data-skin="dark"] .sec-works { --bg-off: #1A1B1F; }

/* 머리 오른쪽에 붙는 링크 — 설명(.sec-lead-sub)과 같은 칸을 쓴다 */
.sec-lead > .sec-lead-act {
  grid-column: 2; grid-row: 2; justify-self: end; align-self: end;
  margin-bottom: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); font-weight: 700; color: var(--ink);
  padding-bottom: 4px; border-bottom: 1px solid var(--line);
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.sec-lead-act:hover { color: var(--brand-text); border-bottom-color: var(--brand-text); }
.act-ar { transition: transform var(--dur-1) var(--ease-out); }
.has-motion .sec-lead-act:hover .act-ar { transform: translateX(4px); }

.works-grid {
  display: grid; gap: clamp(18px, 2vw, 30px);
  padding: 0 var(--edge-lead);
}
.works-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.works-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.works-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---- 카드 ---- */
.work-card {
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.has-motion a.work-card:hover, .has-motion a.work-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}
a.work-card:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 3px; }

/* ---- 썸네일 ----
   확대는 이미지에만 건다. 카드째로 키우면 그림자·테두리까지 흔들려 둔해 보인다. */
.work-thumb {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--bg-off);
}
.work-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s var(--ease-out);
}
.has-motion a.work-card:hover .work-thumb img,
.has-motion a.work-card:focus-visible .work-thumb img { transform: scale(1.06); }

/* 사진을 아직 못 받은 자리 — 면은 만들어 두되 규격을 적어 둔다.
   그럴듯한 자리표시 그림을 채우면 지우지 않고 오픈하는 사고가 난다. */
.work-ph {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 12px 14px;
  /* 사진이 없을 때도 반응은 같아야 한다 — 사진을 올린 뒤에 갑자기 움직임이 생기면
     지금 보고 있는 화면과 납품된 화면이 다른 것이 된다 */
  transition: transform .7s var(--ease-out);
}
.has-motion a.work-card:hover .work-ph,
.has-motion a.work-card:focus-visible .work-ph { transform: scale(1.06); }
.work-ph-1 { background: linear-gradient(138deg, #E9EFFC 0%, #C9D9F4 100%); }
.work-ph-2 { background: linear-gradient(138deg, #F0EAFB 0%, #D8CDF5 100%); }
.work-ph-3 { background: linear-gradient(138deg, #EDF0F4 0%, #D4DBE4 100%); }
.work-ph-size {
  font-family: var(--font-num); font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: rgba(15, 23, 42, .38);
}

/* ---- 본문 ---- */
.work-body {
  display: flex; flex-direction: column; flex: 1;
  padding: clamp(18px, 1.7vw, 24px) clamp(18px, 1.7vw, 24px) clamp(20px, 1.9vw, 26px);
}
.work-tag {
  align-self: flex-start; margin-bottom: 12px;
  padding: 5px 11px; border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: -.01em;
}
.work-tag-blue   { background: rgba(37, 99, 235, .10);  color: #1D4ED8; }
.work-tag-violet { background: rgba(124, 58, 237, .10); color: #6D28D9; }
.work-tag-slate  { background: rgba(15, 23, 42, .075);  color: #334155; }

.work-title {
  font-family: var(--font-display); font-size: clamp(17px, 1.35vw, 20px); font-weight: 800;
  letter-spacing: var(--ls-tight); line-height: 1.38; color: var(--ink); margin-bottom: 9px;
  transition: color .2s var(--ease-out);
}
.has-motion a.work-card:hover .work-title { color: var(--brand-text); }
.work-desc { font-size: 15px; line-height: 1.68; color: var(--muted); }
.work-more {
  margin-top: auto; padding-top: 18px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--fs-sm); font-weight: 700; color: var(--brand-text);
}
.work-ar { transition: transform var(--dur-1) var(--ease-out); }
.has-motion a.work-card:hover .work-ar,
.has-motion a.work-card:focus-visible .work-ar { transform: translateX(5px); }

/* 어두운 스킨 — 분류 배지와 자리표시 면만 다시 잡는다.
   나머지(카드 면·글자)는 토큰을 따르므로 손댈 것이 없다. */
:root[data-skin="dark"] .work-tag-blue   { background: rgba(96, 145, 240, .16); color: #9CC2F5; }
:root[data-skin="dark"] .work-tag-violet { background: rgba(150, 128, 245, .16); color: #C4B5FD; }
:root[data-skin="dark"] .work-tag-slate  { background: rgba(255, 255, 255, .09);  color: #C9C4C1; }
:root[data-skin="dark"] .work-ph-1 { background: linear-gradient(138deg, #22304A 0%, #162033 100%); }
:root[data-skin="dark"] .work-ph-2 { background: linear-gradient(138deg, #2B2542 0%, #1B1730 100%); }
:root[data-skin="dark"] .work-ph-3 { background: linear-gradient(138deg, #26282C 0%, #191A1D 100%); }
:root[data-skin="dark"] .work-ph-size { color: rgba(255, 255, 255, .40); }

@media (max-width: 1080px) {
  .sec-lead > .sec-lead-act { grid-column: 1; grid-row: 3; justify-self: start; margin: 4px 0 0; }
  .works-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .works-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .works-2, .works-3, .works-4 { grid-template-columns: minmax(0, 1fr); }
}


/* ==========================================================================
   비교표 (.sec-cmp)
   --------------------------------------------------------------------------
   격자 하나 + 줄 래퍼(display: contents) + 우리 열을 덮는 판 하나.

   [정렬] 격자가 하나이므로 같은 줄의 칸들이 **같은 행 트랙**을 공유한다.
   칸 높이를 따로 맞출 필요가 없고, 가로선도 저절로 한 줄로 이어진다.
   (열을 각각 세로 상자로 만들면 열마다 높이가 따로 늘어나 아래로 갈수록 어긋난다.)
   ========================================================================== */

.sec-cmp {
  --cmp-line:      var(--line);
  --cmp-hover:     rgba(37, 99, 235, .045);
  --cmp-brand:     #2563EB;
  --cmp-panel-bg:  #EFF6FF;   /* 불투명이어야 아래 가로선을 덮는다 */
  --cmp-panel-ln:  #3B82F6;
  --cmp-panel-div: rgba(37, 99, 235, .16);
}
:root[data-skin="dark"] .sec-cmp {
  --cmp-hover:     rgba(127, 174, 240, .06);
  --cmp-brand:     #8FB8F2;
  --cmp-panel-bg:  #141D2E;
  --cmp-panel-ln:  #4E86D8;
  --cmp-panel-div: rgba(127, 174, 240, .18);
}

/* ---- 머리 — 가운데로 모은다 ----
   표가 화면 폭을 꽉 쓰는 넓은 덩어리라, 머리까지 좌우로 벌리면 위가 휑해 보인다. */
.sec-lead-center {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center; text-align: center;
  max-width: 820px; margin-left: auto; margin-right: auto;
  padding-left: var(--edge); padding-right: var(--edge);
}
.sec-lead-center > .kicker         { grid-column: 1; grid-row: 1; }
.sec-lead-center > .sec-lead-title { grid-column: 1; grid-row: 2; }
.sec-lead-center > .sec-lead-sub   { grid-column: 1; grid-row: 3; margin: 16px auto 0; max-width: 54ch; }

/* ---- 옆으로 미는 상자. 데스크톱에서는 다 들어가므로 아무 일도 하지 않는다. ---- */
.cmp-scroll {
  margin-top: clamp(30px, 3.4vw, 46px);
  /* 판이 위아래로 튀어나오고 그림자가 퍼지므로 잘리지 않게 자리를 둔다 */
  padding: 26px var(--edge-lead) 30px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--input-line) transparent;
}
.cmp-scroll::-webkit-scrollbar { height: 8px; }
.cmp-scroll::-webkit-scrollbar-track { background: transparent; }
.cmp-scroll::-webkit-scrollbar-thumb { background: var(--input-line); border-radius: 4px; }
.cmp-scroll:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 4px; }

.cmp-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 1.55fr) repeat(3, minmax(136px, 1fr));
  align-items: stretch;
}
.cmp-cols-2 { grid-template-columns: minmax(200px, 1.55fr) repeat(2, minmax(136px, 1fr)); }
.cmp-cols-1 { grid-template-columns: minmax(200px, 1.55fr) minmax(136px, 1fr); }

/* 줄 래퍼 — 상자를 만들지 않고 칸만 격자에 놓는다.
   [주의] display: contents 인 요소도 :hover 는 잡힌다(자식 위에 커서가 있으면 발동).
   그래서 줄 전체 hover 를 :has() 없이 처리할 수 있다. */
.cmp-row { display: contents; }
.cmp-row:hover > .cmp-label,
.cmp-row:hover > .cmp-cell { background: var(--cmp-hover); }

/* ---- 열 머리 — 모든 열이 같은 높이여야 아래 줄이 전부 맞는다 ----
   뱃지는 이 높이 **안에서** 위쪽 여유 공간을 쓴다. 우리 열만 높이면 그 아래가 통째로 밀린다. */
.cmp-cap {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 9px;
  min-height: 104px; padding: 0 14px 18px;
  border-bottom: 1px solid var(--cmp-line);
}
.cmp-capname {
  font-family: var(--font-display); font-size: clamp(15px, 1.2vw, 17px); font-weight: 800;
  letter-spacing: var(--ls-tight); color: var(--ink); white-space: nowrap;
}
.cmp-cap-label { align-items: flex-start; padding-left: 2px; }
.cmp-cap-label {
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .04em; color: var(--faint); text-transform: uppercase;
}

/* ---- 칸 ---- */
.cmp-label, .cmp-cell {
  display: flex; align-items: center;
  min-height: 66px; padding: 14px;
  border-bottom: 1px solid var(--cmp-line);
  transition: background .16s var(--ease-out);
}
.cmp-cell { justify-content: center; }
.cmp-label {
  justify-content: flex-start; padding-left: 2px;
  font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.45;
}
.cmp-row:last-of-type > .cmp-label,
.cmp-row:last-of-type > .cmp-cell { border-bottom: 0; }

/* 표시 */
.cmp-ico { width: 21px; height: 21px; }
.cmp-yes { display: inline-flex; color: var(--cmp-brand); }
.cmp-no  { display: inline-flex; color: var(--faint); opacity: .5; }
.cmp-txt { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); text-align: center; line-height: 1.4; }
.cmp-txt-mine { font-weight: 800; color: var(--cmp-brand); }

/* ---- 우리 열을 덮는 판 ----
   칸마다 배경을 흉내내지 않고 열 전체에 한 장을 얹는다 — 모서리·테두리·그림자가 어긋날 자리가 없다.
   위아래로 튀어나오고, 배경이 불투명해서 그 아래 가로선을 그대로 덮는다. */
/* [주의] 판을 **일반 격자 칸**으로 두면 그 열을 통째로 차지해 버려서,
   자동 배치되는 다음 칸들이 그 열을 피해 다음 줄로 넘어간다 — 표가 계단처럼 어긋난다.
   `position: absolute` 로 두면 격자 영역에 맞춰 놓이되 자리를 차지하지는 않는다.
   행 끝을 auto 로 두면 격자 컨테이너의 아래 끝까지 늘어난다(명시적 행이 없어도 된다). */
.cmp-panel {
  /* inset: 0 이 있어야 그 영역을 꽉 채운다 — 없으면 내용이 없는 상자라 4px 로 쪼그라든다 */
  position: absolute; grid-row: 1; inset: 0;
  z-index: 1; pointer-events: none;
  margin: -22px -6px -24px; border-radius: var(--r-lg);
  background: var(--cmp-panel-bg);
  border: 2px solid var(--cmp-panel-ln);
  box-shadow: 0 26px 52px -22px rgba(37, 99, 235, .34), 0 4px 12px -6px rgba(15, 23, 42, .18);
}
:root[data-skin="dark"] .cmp-panel {
  box-shadow: 0 30px 60px -26px rgba(0, 0, 0, .8), 0 0 0 1px rgba(127, 174, 240, .12);
}
.cmp-mine-2 .cmp-panel { grid-column: 2 / 3; }
.cmp-mine-3 .cmp-panel { grid-column: 3 / 4; }
.cmp-mine-4 .cmp-panel { grid-column: 4 / 5; }

/* 판 위에 글자가 올라오게 한다. 판은 z-index 1, 글자 칸은 2. */
.cmp-cap-mine, .cmp-cell-mine { position: relative; z-index: 2; background: none; }
.cmp-cap-mine  { border-bottom-color: var(--cmp-panel-div); }
.cmp-cell-mine { border-bottom-color: var(--cmp-panel-div); }
.cmp-cap-mine .cmp-capname { color: var(--cmp-brand); font-size: clamp(16px, 1.35vw, 19px); }
.cmp-cell-mine .cmp-ico { width: 24px; height: 24px; stroke-width: 2.1; }
/* 우리 열은 줄 hover 배경을 조금 더 진하게 — 연한 파랑 위라 같은 값이면 안 보인다 */
.cmp-row:hover > .cmp-cell-mine { background: rgba(37, 99, 235, .07); }

.cmp-badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: var(--r-sm);
  background: var(--grad-btn); color: #fff;
  font-family: var(--font-display); font-size: 11px; font-weight: 800; letter-spacing: .06em;
  white-space: nowrap;
}

.cmp-note {
  margin: 22px auto 0; max-width: 820px;
  padding: 0 var(--edge); text-align: center;
  font-size: var(--fs-xs); color: var(--muted);
}

/* ---- 좁은 화면 — 옆으로 밀어 본다 ----
   항목 이름 열은 왼쪽에 붙여 둔다. 값만 보이면 무엇에 대한 값인지 알 수 없다.
   스냅은 머리 칸에 건다 — 가로 위치만 맞으면 되므로 첫 줄 칸이 대표로 서면 충분하다. */
@media (max-width: 900px) {
  .cmp-scroll { padding-left: var(--edge-lead); padding-right: var(--edge-lead); }
  .cmp-grid {
    grid-template-columns: minmax(164px, 44vw) repeat(3, minmax(128px, 32vw));
    width: max-content; min-width: 100%;
  }
  .cmp-cols-2 { grid-template-columns: minmax(164px, 44vw) repeat(2, minmax(128px, 32vw)); }
  /* 왼쪽에 붙는 열은 불투명해야 뒤 칸이 비쳐 보이지 않는다 */
  .cmp-label, .cmp-cap-label {
    position: sticky; left: 0; z-index: 3;
    background: var(--page);
    box-shadow: 14px 0 18px -16px rgba(0, 0, 0, .3);
  }
  .cmp-row:hover > .cmp-label { background: var(--page); }
  .cmp-cap { scroll-snap-align: center; }
  .cmp-cap-mine { scroll-snap-align: end; }
  .cmp-cap-label { scroll-snap-align: none; }
  .cmp-label { font-size: 14.5px; padding-right: 16px; }
}
@media (max-width: 560px) {
  .cmp-grid { grid-template-columns: minmax(150px, 47vw) repeat(3, minmax(120px, 38vw)); }
  .cmp-label, .cmp-cell { min-height: 60px; padding: 12px 10px; }
  .cmp-cap { min-height: 96px; }
}


/* ==========================================================================
   고객 후기 · 파트너사 (.sec-proof)
   --------------------------------------------------------------------------
   한 섹션이지만 **배경이 다른 띠 두 장**이다.
     위(후기)   — 연한 쿨그레이
     아래(파트너) — 흰 면
   하나의 배경에 다 얹으면 "긴 섹션 하나"로 읽혀 후기와 파트너가 뭉개진다.

   [주의] 그래서 섹션 자체는 여백을 갖지 않는다. 관리자에서 고른 여백(_pad)도 여기서는 무시한다 —
   띠마다 여백이 달라야 하는 구조라 바깥에서 한 번에 줄 수가 없다.
   명시도를 .sec 보다 높게(0,2,0) 잡아 확실히 이긴다.
   ========================================================================== */

.sec.sec-proof { padding: 0; }
.sec-proof {
  --proof-grey:  #F4F7FB;   /* 후기 띠 */
  --proof-white: #FFFFFF;   /* 파트너 띠 */
  --proof-quote: #DBEAFE;   /* 따옴표 — 연한 블루 */
  --proof-num:   #2563EB;   /* 지표 숫자 */
  --proof-slot:  #F1F5F9;   /* 로고가 들어올 빈 판 */
  --proof-line:  #E2E8F0;
}
:root[data-skin="dark"] .sec-proof {
  --proof-grey:  #17181C;
  --proof-white: #1E1D1D;
  --proof-quote: rgba(127, 174, 240, .26);
  --proof-num:   #8FB8F2;
  --proof-slot:  rgba(255, 255, 255, .06);
  --proof-line:  rgba(255, 255, 255, .10);
}

/* ---- 띠 1 — 고객 후기 ---- */
.proof-stories {
  background: var(--proof-grey);
  padding: clamp(72px, 8vw, 112px) 0 clamp(76px, 8.5vw, 118px);
}


/* ---- 후기 — 왼쪽 제목 + 오른쪽 카드 슬라이더 ----
   제목만 왼쪽에 두고 카드를 가운데로 모으면 제목 왼쪽 아래가 통째로 비어
   그 여백이 "덜 채운 자리"로 보인다. 두 덩어리가 어깨를 맞춰야 밀도가 산다. */
.rev-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 2.08fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding: 0 var(--edge-lead);
}
.rev-lead { padding-top: 4px; }
/* 좁은 칸에서 제목이 여러 줄로 떨어지는 것은 의도한 것이다 — 편집물처럼 읽힌다 */
.rev-lead .sec-lead-title { margin: 0; }

.rev-wrap { position: relative; width: auto; max-width: none; margin: 0; padding: 0; }

/* 슬라이드를 같은 칸에 겹쳐 둔다 — 무대 높이가 가장 긴 슬라이드에 맞춰져 넘길 때 튀지 않는다 */
.rev-stage { display: grid; }
.rev-card {
  grid-area: 1 / 1;
  display: flex; align-items: stretch;
  min-height: 372px; overflow: hidden;
  background: var(--surface); border-radius: var(--r-xl);
  box-shadow: 0 40px 80px -34px rgba(15, 23, 42, .26), 0 6px 18px -10px rgba(15, 23, 42, .1);
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), visibility .5s;
  transform: translateY(10px);
}
.rev-card.is-on { opacity: 1; visibility: visible; transform: none; }
/* JS 가 없거나 슬라이드가 한 장뿐이면 그냥 보인다 */
:root:not(.js-ready) .rev-card, .rev-card:only-child { opacity: 1; visibility: visible; transform: none; }

/* 왼쪽 — 인물 사진 */
.rev-photo { flex: 0 0 36%; position: relative; background: var(--bg-off); overflow: hidden; }
.rev-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rev-photo-slot {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 14px 16px;
  background: linear-gradient(150deg, #E7EBF1 0%, #D3DAE4 100%);
}
:root[data-skin="dark"] .rev-photo-slot { background: linear-gradient(150deg, #26282D 0%, #191A1E 100%); }
.rev-photo-size {
  font-family: var(--font-num); font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: rgba(15, 23, 42, .34);
}
:root[data-skin="dark"] .rev-photo-size { color: rgba(255, 255, 255, .34); }

/* 오른쪽 — 글 */
.rev-text {
  flex: 1 1 64%; display: flex; flex-direction: column;
  padding: clamp(26px, 2.8vw, 40px);
}
.rev-q { display: block; margin-bottom: 16px; color: var(--proof-quote); }
.rev-q-svg { width: 32px; height: 32px; display: block; }
.rev-body {
  margin: 0 0 22px; max-width: 32em;
  font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.8;
  color: var(--ink); letter-spacing: var(--ls-tight);
  word-break: keep-all;
}
.rev-who {
  margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--font-display); font-size: 15.5px; font-weight: 800;
  letter-spacing: var(--ls-tight); color: var(--ink);
}
/* 직함 — 이름 아래 한 단계 작고 옅게. 본문 서체로 돌린다(디스플레이 서체 그대로면 이름과 안 갈린다) */
.rev-role {
  display: block; margin-top: 4px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  letter-spacing: -.01em; color: var(--muted);
}

/* ---- 조작부 — 카드 아래 한 줄 ----
   2단 구조에서는 카드 왼쪽이 제목 칸이라 화살표를 카드 밖에 둘 자리가 없다.
   왼쪽에 위치(도트), 오른쪽에 앞뒤 버튼 — 읽는 순서와 같다. */
.rev-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: clamp(18px, 2vw, 26px);
}
.rev-dots { display: flex; align-items: center; gap: 9px; }
.rev-dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--proof-line);
  transition: width .35s var(--ease-out), background .35s var(--ease-out);
}
.rev-dot:hover { background: var(--faint); }
.rev-dot.is-on { width: 30px; background: var(--proof-num); }
.rev-dot:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 3px; }

.rev-navs { display: flex; gap: 8px; }
.rev-nav {
  width: 46px; height: 46px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--proof-line); color: var(--muted);
  transition: background .25s var(--ease-out), color .25s var(--ease-out),
              border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.rev-nav-svg { width: 20px; height: 20px; }
.rev-nav:hover {
  background: var(--proof-num); border-color: var(--proof-num); color: #fff;
  box-shadow: 0 12px 26px -12px rgba(37, 99, 235, .5);
}
.rev-nav:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 3px; }

@media (max-width: 900px) {
  /* 제목이 위, 카드가 아래 */
  .rev-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}
@media (max-width: 700px) {
  /* 카드 안에서도 사진이 위, 글이 아래 — 36% 를 유지하면 사진이 세로 띠가 된다 */
  .rev-card { flex-direction: column; min-height: 0; }
  .rev-photo { flex: none; aspect-ratio: 16 / 10; }
  .rev-body { font-size: 16px; max-width: none; }
  .rev-nav { width: 42px; height: 42px; }
}

/* ---- 띠 2 — 파트너사 ---- */
.proof-partners {
  background: var(--proof-white);
  padding: clamp(72px, 8vw, 108px) 0 clamp(76px, 8.5vw, 112px);
}

/* 지표 — 글자만 띄우지 않고 칸으로 나눈다. 분할선이 있어야 "정리된 수치"로 읽힌다. */
.proof-statbox {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: 900px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
}
.proof-stat {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 6px clamp(14px, 2vw, 30px);
  text-align: center;
}
.proof-stat + .proof-stat { border-left: 1px solid var(--proof-line); }
.proof-stat-v {
  font-family: var(--font-num); font-weight: 800; color: var(--proof-num);
  font-size: clamp(34px, 4vw, 50px); line-height: 1; letter-spacing: -.03em;
}
/* 숫자에 붙는 단위(개 · % · 년)는 본문 서체로 작게 — 숫자 서체의 한글 단위는 늘 어색하다 */
.proof-stat-v .num-u {
  font-family: var(--font-body); font-size: .42em; font-weight: 700;
  margin-left: 3px; letter-spacing: -.02em;
}
.proof-stat-l { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }

.proof-ptitle {
  margin: clamp(52px, 5.5vw, 78px) auto clamp(26px, 3vw, 40px);
  max-width: 640px; padding: 0 var(--edge);
  text-align: center;
  font-family: var(--font-display); font-size: clamp(16px, 1.35vw, 19px); font-weight: 700;
  letter-spacing: var(--ls-tight); line-height: 1.55; color: var(--muted);
  word-break: keep-all;
}

/* ---- 로고 띠 ----
   윗줄과 아랫줄이 서로 반대로 흐르면 "띠"가 아니라 "벽"으로 읽힌다. */
.proof-wall { display: grid; gap: 16px; }
.proof-wall .mq-track { animation-duration: 52s; }
.proof-wall .mq:nth-child(2) .mq-track { animation-direction: reverse; animation-duration: 64s; }
.proof-wall .mq-set { gap: 16px; padding-right: 16px; }

/* 로고가 아직 없는 자리 — 크기가 같은 빈 판으로 둔다.
   글자를 흘리면 문장처럼 읽혀 산만하고, 로고가 들어올 자리 크기도 가늠이 안 된다.
   실제 PNG 가 들어오면 .logo-cell 이 같은 규격으로 그 자리를 대신한다. */
.logo-slot, .proof-wall .logo-cell {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 128px; height: 48px; border-radius: var(--r-sm);
  background: var(--proof-slot); border: 0;
}
.proof-wall .logo-cell { width: auto; min-width: 128px; padding: 0 16px; }
.proof-wall .logo-gray .logo-cell img { max-height: 26px; filter: grayscale(1); opacity: .4; transition: filter .25s, opacity .25s; }
.proof-wall .logo-gray .logo-cell:hover img { filter: none; opacity: 1; }

@media (max-width: 980px) {
  .proof-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-card { min-height: 288px; }
}
@media (max-width: 720px) {
  .proof-cards { grid-template-columns: minmax(0, 1fr); }
  .proof-card { min-height: 0; }
  /* 셋을 한 줄에 두면 숫자가 뭉개진다 — 두 칸씩 접고 분할선도 그에 맞춘다 */
  .proof-statbox { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-stat { padding: 18px 10px; }
  .proof-stat + .proof-stat { border-left: 0; }
  .proof-stat:nth-child(even) { border-left: 1px solid var(--proof-line); }
  .proof-stat:nth-child(n + 3) { border-top: 1px solid var(--proof-line); }
  .logo-slot { width: 112px; height: 44px; }
}

/* ==========================================================================
   인사이트 (.sec-ins)
   --------------------------------------------------------------------------
   [디자인] 테두리도 그림자도 없다. 여백만으로 나눈다 —
   잡지에서 기사 사이에 선을 긋지 않는 것과 같은 이유다.
   선이 들어가면 목록이 되고, 없으면 지면이 된다.
   ========================================================================== */

/* 앞 섹션(후기)이 연회색이라 여기는 흰 면으로 뒤집는다.
   [주의] --page 를 다시 정의한다 — .sec-bg-plain 이 이 토큰을 쓰므로 안쪽 요소까지 기준이 따라온다. */
.sec-ins { --page: #FFFFFF; --ins-tag: #2563EB; --ins-slot: #F1F5F9; }
:root[data-skin="dark"] .sec-ins { --page: #1B1A1A; --ins-tag: #8FB8F2; --ins-slot: rgba(255, 255, 255, .06); }

.ins-grid {
  display: grid; gap: clamp(24px, 2.6vw, 40px);
  padding: 0 var(--edge-lead);
}
.ins-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ins-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ins-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ins-card { display: flex; flex-direction: column; }
a.ins-card:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 6px; border-radius: 6px; }

/* 썸네일 — 확대는 이미지에만 건다. 카드째로 키우면 글까지 흔들려 둔해 보인다. */
.ins-thumb {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: var(--r-md);
  background: var(--ins-slot);
}
.ins-thumb img, .ins-thumb-slot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .7s var(--ease-out);
}
.has-motion a.ins-card:hover .ins-thumb img,
.has-motion a.ins-card:hover .ins-thumb-slot,
.has-motion a.ins-card:focus-visible .ins-thumb img { transform: scale(1.05); }

/* 사진을 아직 못 받은 자리 — 짙은 판에 글 제목을 앉혀 표지처럼 만든다.
   [주의] 예전에는 여기에 "1200 × 675" 규격을 찍어 두었다. 관리자에게 주는 안내였는데,
   게시판과 연동하면서 방문자 화면에도 그 숫자가 그대로 보이게 됐다.
   [주의] 그럴듯한 자리표시 **사진**을 깔지는 않는다 — 지우지 않고 오픈하는 사고가 난다.
   글자만 두면 비어 있다는 사실이 그대로 보이면서도 화면이 깨지지 않는다. */
.ins-thumb-slot {
  display: grid; place-items: center;
  padding: 0 clamp(18px, 2vw, 30px); text-align: center;
  background: linear-gradient(158deg, var(--dark-1), var(--dark-2));
}
/* 제목 첫 글자 한 자. 인사이트 목록 카드(.mag-noimg)와 같은 크기·같은 옅기다 —
   같은 글이 목록과 메인에서 다른 표지로 보이면 두 사이트처럼 읽힌다. */
.ins-thumb-slot > span {
  font-family: var(--font-display); font-size: 54px; font-weight: 800;
  color: rgba(255, 255, 255, .32); line-height: 1;
}

/* ---- 글 ---- */
.ins-body { display: flex; flex-direction: column; padding-top: 24px; }
.ins-tag {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: -.01em;
  color: var(--ins-tag); margin-bottom: 10px;
}
.ins-title {
  font-family: var(--font-display); font-size: clamp(17px, 1.4vw, 20px); font-weight: 800;
  letter-spacing: var(--ls-tight); line-height: 1.45; color: var(--ink);
  word-break: keep-all;
  /* 두 줄까지만 — 제목 길이가 제각각이면 아래 날짜 선이 카드마다 어긋난다 */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .22s var(--ease-out);
}
.has-motion a.ins-card:hover .ins-title { color: var(--ins-tag); }
.ins-date {
  margin-top: 16px; font-family: var(--font-num);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: .01em;
  color: var(--faint);
}

@media (max-width: 1000px) {
  .ins-3, .ins-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ins-grid { padding: 0 var(--edge-lead); }
}
@media (max-width: 620px) {
  .ins-2, .ins-3, .ins-4 { grid-template-columns: minmax(0, 1fr); }
  .ins-body { padding-top: 18px; }
}

/* ==========================================================================
   파트너사 · 성과 지표 (.sec-pt)
   --------------------------------------------------------------------------
   숫자와 이름을 한 자리에. 지표만 있으면 출처가 없고, 로고만 있으면 무슨 일을 했는지 모른다.
   ========================================================================== */

/* 앞 섹션(인사이트)이 흰 면이라 여기는 연한 쿨그레이로 한 단계 내린다.
   [주의] 사이트 기본 연회색(--bg-off)은 따뜻한 #E9E7E3 이라 흰 로고판을 얹으면 판이 묻는다. */
.sec-pt {
  --bg-off: #F4F7FB; --pt-num: #2563EB; --pt-line: #E2E8F0;
  --pt-plate: #64748B;   /* 로고가 들어오기 전 이름 글자 */
}
:root[data-skin="dark"] .sec-pt {
  --bg-off: #17181C; --pt-num: #8FB8F2; --pt-line: rgba(255, 255, 255, .12);
  --pt-plate: rgba(255, 255, 255, .62);
}
/* 안이 성기게 채워진 섹션이라 기본 여백(96px)이면 위아래가 붕 뜬다 */
.sec.sec-pt { padding: clamp(72px, 7vw, 92px) 0; }

/* 제목은 왼쪽 — 바로 위 인사이트 섹션의 제목과 같은 세로선(--edge-lead)에서 시작한다.
   가운데로 모으면 그 위 섹션들과 시작점이 어긋나 이 영역만 따로 떠 보인다. */
.pt-title {
  margin: 0; padding: 0 var(--edge-lead);
  text-align: left; max-width: none;
  font-family: var(--font-display); font-size: clamp(22px, 2.3vw, 31px); font-weight: 800;
  letter-spacing: var(--ls-display); line-height: 1.35; color: var(--ink);
  word-break: keep-all;
}

/* ---- 지표 — 세로 분할선으로 나눈 칸 (비워 두면 나오지 않는다) ---- */
.pt-stats {
  list-style: none; margin: clamp(36px, 3.6vw, 52px) auto 0; padding: 0;
  max-width: 940px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
}
/* 숫자와 설명은 한 덩어리로 붙인다 — 벌어지면 두 개의 정보로 읽힌다 */
.pt-stat {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px clamp(16px, 2.4vw, 34px); text-align: center;
}
.pt-stat + .pt-stat { border-left: 1px solid var(--pt-line); }
.pt-stat-v {
  font-family: var(--font-num); font-weight: 800; color: var(--pt-num);
  font-size: clamp(34px, 4vw, 50px); line-height: 1; letter-spacing: -.03em;
}
/* 숫자에 붙는 한글 단위(개 · 년)는 본문 서체로 작게 — 숫자 서체의 한글은 늘 어색하다 */
.pt-stat-v .num-u {
  font-family: var(--font-body); font-size: .42em; font-weight: 700;
  margin-left: 3px; letter-spacing: -.02em;
}
.pt-stat-l { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }

/* ---- 로고 2줄 교차 스크롤 ---- */
.pt-wall { display: grid; gap: 16px; margin-top: clamp(30px, 3vw, 42px); }
.pt-wall .mq-track { animation-duration: 54s; }
.pt-wall .mq:nth-child(2) .mq-track { animation-direction: reverse; animation-duration: 66s; }
.pt-wall .mq-set { gap: 16px; padding-right: 16px; }

/* 이름판 — **로고가 들어올 자리와 같은 규격**이어야 한다.
   [주의] 작고 둥근 칸으로 만들면 알약(버튼)처럼 보여서 로고 월이 아니라 태그 목록으로 읽힌다.
   실제 로고가 앉을 만한 직사각형(192×80)으로 두고, 모서리는 살짝만 깎는다.
   글자도 판을 채울 만큼 키운다 — 작으면 판 안이 휑해서 "아직 안 만든 자리"로만 보인다. */
.pt-name, .pt-wall .logo-cell {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 192px; height: 80px; padding: 0 18px; border-radius: var(--r-sm);
  background: var(--surface); border: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .07), 0 1px 1px rgba(15, 23, 42, .04);
  font-family: var(--font-display); font-size: 20px; font-weight: 800;
  letter-spacing: -.03em; color: var(--pt-plate); white-space: nowrap;
  transition: color .3s var(--ease-out), transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.pt-name:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--sh-md); }

/* 진짜 로고가 들어오면 — 판 규격은 이름판과 **똑같이** 두고 그 안에서 이미지만 맞춘다.
   배경이 투명한 PNG 를 올렸을 때 로고마다 판 크기가 달라지지 않게 하려는 것이다.
   가로로 긴 로고와 정사각 로고가 섞여도 판은 하나의 격자로 유지된다. */
.pt-wall .logo-cell img {
  max-width: 100%; max-height: 40px; width: auto; height: auto;
  object-fit: contain; display: block;
  /* 색이 제각각인 로고가 한 줄에 섞이면 시선이 튄다 — 눌러 두고 손이 갈 때만 제 색으로 */
  filter: grayscale(1); opacity: .5;
  transition: filter .3s var(--ease-out), opacity .3s var(--ease-out);
}
.pt-wall .logo-cell:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.pt-wall .logo-cell:hover img { filter: none; opacity: 1; }

@media (max-width: 720px) {
  /* 셋을 한 줄에 두면 숫자가 뭉개진다 — 1열로 세우고 분할선도 가로로 눕힌다 */
  .pt-stats { grid-auto-flow: row; grid-auto-columns: auto; max-width: 420px; }
  .pt-stat { padding: 22px 12px; }
  .pt-stat + .pt-stat { border-left: 0; border-top: 1px solid var(--pt-line); }
  /* 로고 띠는 좁은 화면에서도 그대로 옆으로 흐른다 — 판 비율만 유지하며 줄인다 */
  .pt-name, .pt-wall .logo-cell { width: 158px; height: 66px; font-size: 17px; }
  .pt-wall .logo-cell img { max-height: 32px; }
}

/* ---- 비교표 · 좁은 화면 전용 카드 ----
   표를 옆으로 밀어 보게 하면 한 번에 한 열밖에 못 봐서 **비교가 되지 않는다.**
   열을 카드로 세워 세로로 쌓고, 우리 카드를 맨 위에 둔다.

   [주의] 같은 내용이 문서에 두 번 있다. 한쪽은 display: none 으로 완전히 지워야
   낭독기가 같은 표를 두 번 읽지 않는다(visibility·opacity 로 감추면 둘 다 읽힌다). */
.cmp-cards { display: none; }

@media (max-width: 900px) {
  .cmp-scroll { display: none; }
  .cmp-cards {
    display: grid; gap: 16px;
    list-style: none; margin: clamp(26px, 4vw, 38px) 0 0;
    padding: 0 var(--edge-lead);
  }

  /* [주의] --bg-off 를 쓰면 안 된다. 사이트 기본 연회색은 따뜻한 #E9E7E3 이라
     바로 위 우리 카드(찬 파랑 틴트)와 나란히 놓으면 두 카드의 색 계열이 갈린다. */
  .cmp-mcard {
    border-radius: var(--r-lg); overflow: hidden;
    background: #F5F7FA; border: 1px solid var(--cmp-line);
  }
  :root[data-skin="dark"] .cmp-mcard { background: rgba(255, 255, 255, .04); }
  /* 우리 카드 — 표에서 쓰던 색을 그대로 가져온다. 두 화면의 인상이 갈리면 안 된다. */
  .cmp-mcard-mine {
    background: var(--cmp-panel-bg);
    border: 2px solid var(--cmp-panel-ln);
    box-shadow: 0 22px 44px -22px rgba(37, 99, 235, .32);
  }

  .cmp-mhead {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 18px 20px;
    border-bottom: 1px solid var(--cmp-line);
  }
  .cmp-mcard-mine .cmp-mhead { border-bottom-color: var(--cmp-panel-div); }
  .cmp-mname {
    font-family: var(--font-display); font-size: 17px; font-weight: 800;
    letter-spacing: var(--ls-tight); color: var(--ink);
  }
  .cmp-mcard-mine .cmp-mname { color: var(--cmp-brand); font-size: 19px; }

  .cmp-mlist { list-style: none; margin: 0; padding: 0; }
  .cmp-mlist > li {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--cmp-line);
  }
  .cmp-mcard-mine .cmp-mlist > li { border-bottom-color: var(--cmp-panel-div); }
  .cmp-mlist > li:last-child { border-bottom: 0; }
  .cmp-mlabel {
    font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.45;
    word-break: keep-all;
  }
  /* 남의 카드에서는 항목명도 한 톤 죽인다 — 빈칸이 많다는 것이 먼저 보여야 한다 */
  .cmp-mcard:not(.cmp-mcard-mine) .cmp-mlabel { color: var(--body-c); font-weight: 600; }
  .cmp-mval { flex: none; display: inline-flex; align-items: center; }
  .cmp-mval .cmp-ico { width: 20px; height: 20px; }
  .cmp-mcard-mine .cmp-mval .cmp-ico { width: 23px; height: 23px; stroke-width: 2.1; }
  .cmp-mval .cmp-txt { font-size: 14px; }

  .cmp-note { padding: 0 var(--edge-lead); }
}
@media (max-width: 480px) {
  .cmp-mhead, .cmp-mlist > li { padding-left: 16px; padding-right: 16px; }
  .cmp-mlabel { font-size: 14px; }
}

/* ---- 머리 변형 ----
   [원칙] 이 사이트의 섹션 제목은 **전부 같은 세로선(--edge-lead)에서 왼쪽으로 시작한다.**
   가운데 정렬을 섞으면 스크롤할 때 시선이 좌우로 튀어 "짜깁기한 페이지"로 읽힌다.
   .sec-lead-center 는 남겨 두지만(다른 사이트에서 쓸 수 있다) 이 사이트에서는 쓰지 않는다. */

/* 라벨·제목·설명을 왼쪽 한 덩어리로 쌓는다. 기본 .sec-lead 는 설명을 오른쪽 칸에 두는데,
   그러면 글 덩어리가 좌우로 갈라져 "왼쪽 가이드라인에 맞닿은 한 덩어리"가 되지 않는다. */
.sec-lead-stack { grid-template-columns: minmax(0, 1fr); }
.sec-lead-stack > .sec-lead-sub {
  grid-column: 1; grid-row: 3;
  margin: 18px 0 0; max-width: 52ch; font-size: var(--fs-lead);
}

/* 문장이 긴 제목 — 76px 로 두면 두 줄로 접히며 덩어리가 둔해진다.
   크기만 한 단계 내려 다른 제목과 같은 줄 수(한 줄)로 맞춘다. */
.sec-lead-title-long { font-size: clamp(26px, 3.7vw, 56px); }


/* 오른쪽 칸에 아무것도 없으면 제목이 두 칸을 다 쓴다 —
   빈 칸을 남겨 두면 제목만 좁은 칸에 갇혀 불필요하게 두 줄로 접힌다. */
.sec-lead > .sec-lead-title:last-child { grid-column: 1 / -1; }

/* 푸터 안쪽 — 헤더와 같은 정렬선(--edge).
   배경은 화면 끝까지 덮되 내용만 이 선에 맞춘다.
   [주의] .wrap(1084 가운데 정렬)을 쓰면 넓은 화면에서 푸터만 안쪽으로 밀려
   맨 위 로고(30px)와 맨 아래 로고가 140px 넘게 어긋난다(실측 30 vs 171). */
.footer-inner { width: 100%; max-width: none; margin: 0; padding: 0 var(--edge); }

/* ==========================================================================
   회사 선언 (.sec-intro)
   --------------------------------------------------------------------------
   사진 없이 문장과 여백만으로 무게를 만든다.
   사진을 넣는 순간 "소개 페이지의 한 조각"이 되고, 빼면 선언이 된다.
   ========================================================================== */

.sec-intro {
  /* 이 섹션만 차갑고 더 깊은 어둠을 쓴다 — 앞뒤가 밝은 면이라 확실히 가라앉아야 앵커가 된다.
     사이트 기본 진한 배경(--dark-bg, 웜 차콜)보다 한 단계 더 내리고 파랑 쪽으로 민다. */
  --dark-bg:    var(--dark-1);
  --in-card:    rgba(255, 255, 255, .045);
  --in-card-on: rgba(255, 255, 255, .075);
  --in-line:    rgba(255, 255, 255, .09);
  --in-ink:     #FFFFFF;
  --in-body:    #C3CBD8;   /* 쿨그레이 */
  --in-dim:     rgba(255, 255, 255, .45);
  --in-accent:  #7FAEF0;
}
.sec.sec-intro { padding: clamp(88px, 9.5vw, 132px) 0; }

/* ---- 큰 선언 ---- */
.intro-hero { padding: 0 var(--edge-lead); }
.intro-title {
  margin: 0; max-width: 20ch;
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--fs-hero); line-height: 1.16; letter-spacing: var(--ls-display);
  color: var(--in-ink); word-break: keep-all;
}
/* 어두운 면 위에서는 브랜드 그라디언트가 묻힌다 — 밝은 변주를 쓴다(토큰이 이미 그렇게 잡혀 있다) */
.intro-title .gtext { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-sub {
  margin: clamp(20px, 2.2vw, 30px) 0 0; max-width: 58ch;
  font-size: var(--fs-lead); line-height: 1.8; font-weight: 400;
  color: var(--in-body); letter-spacing: var(--ls-tight); word-break: keep-all;
}

/* ---- 핵심 역량 3칸 ----
   테두리도 그림자도 없다. 아주 옅은 면과 넉넉한 여백만으로 나눈다. */
.intro-values {
  list-style: none; margin: clamp(56px, 6vw, 88px) 0 0;
  padding: 0 var(--edge-lead);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 20px);
}
.intro-value {
  padding: clamp(30px, 3vw, 44px);
  border-radius: var(--r-lg);
  background: var(--in-card);
  transition: background var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.has-motion .intro-value:hover { background: var(--in-card-on); transform: translateY(-3px); }
.intro-en {
  display: block; margin-bottom: 16px;
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase; color: var(--in-dim);
}
.intro-vt {
  margin: 0 0 12px;
  font-family: var(--font-display); font-size: clamp(19px, 1.6vw, 23px); font-weight: 800;
  letter-spacing: var(--ls-tight); line-height: 1.35; color: var(--in-ink);
}
.intro-vd {
  margin: 0; font-size: 15.5px; line-height: 1.75;
  color: var(--in-body); opacity: .82; word-break: keep-all;
}

/* ---- 철학 — 왼쪽 라벨, 오른쪽 문단 ----
   라벨을 문장 위에 얹으면 그냥 소제목이 되고, 옆에 세우면 인용문처럼 읽힌다. */
.intro-ph {
  margin-top: clamp(56px, 6vw, 92px);
  padding: clamp(44px, 4.4vw, 64px) var(--edge-lead) 0;
  border-top: 1px solid var(--in-line);
  display: grid; grid-template-columns: minmax(0, .3fr) minmax(0, .7fr);
  gap: clamp(24px, 3vw, 48px); align-items: start;
}
.intro-ph-label {
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--in-accent);
  padding-top: 6px;
}
.intro-ph-text {
  margin: 0;
  font-size: clamp(18px, 1.85vw, 26px); line-height: 1.7; font-weight: 500;
  color: var(--in-ink); letter-spacing: var(--ls-tight); word-break: keep-all;
}

@media (max-width: 980px) {
  .intro-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .intro-values { grid-template-columns: minmax(0, 1fr); }
  /* 라벨이 위, 문장이 아래 — 30% 칸을 유지하면 라벨이 세로로 쪼개진다 */
  .intro-ph { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .intro-ph-label { padding-top: 0; }
  .intro-title { max-width: none; }
}

/* ==========================================================================
   스크롤 인트로 (.sec-sintro)
   --------------------------------------------------------------------------
   배경을 고정해 두고 화면 하나짜리 메시지를 여러 장 지나가게 한다.

   [구조] 고정판(sticky) 한 장 + 그 위로 겹쳐 흐르는 화면들.
     고정판이 첫 화면 자리를 차지하고 섹션 끝까지 붙어 있는다.
     화면 묶음을 `top: -100vh` 로 한 화면만큼 끌어올려 고정판 위에 겹친다.
     결과: 섹션 높이 = 화면 수 × 100vh.
   JS 를 쓰지 않는다 — position: sticky 만으로 동작하므로 스크립트가 실패해도 그대로 읽힌다.
   ========================================================================== */

/* [주의] 섹션에 overflow: hidden 을 주면 안 된다. 그 순간 안쪽 sticky 가 죽어서
   배경판이 고정되지 않고 그냥 같이 흘러 내려간다(실제로 고정판 top 이 -2260 까지 밀렸다).
   배경이 화면 밖으로 나가는 것은 고정판 자신이 잘라 준다 — 잘라야 할 곳은 여기가 아니다. */
.sec.sec-sintro { padding: 0; position: relative; }
/* 바탕은 홈 첫 화면과 **같은 값**을 쓴다.
   여기만 파랑 기가 도는 검정(#0B0E14)을 썼더니 메인에서 넘어오는 순간 다른 사이트처럼 보였다.
   어두운 면의 값은 :root 의 --dark-1 / --dark-2 한 곳에서만 정한다. */
/* 한 화면의 높이. 고정판·끌어올림·화면 높이 셋이 **같은 값**이어야 한다 —
   하나만 바꾸면 섹션 끝에 빈 화면이 남거나 다음 섹션이 겹친다. 그래서 변수로 묶는다. */
.sec-sintro { --dark-bg: var(--dark-1); --sintro-h: 100vh; }
.sintro-h70 { --sintro-h: 70vh; }

.sintro-pin {
  position: sticky; top: 0; z-index: 0;
  height: var(--sintro-h); overflow: hidden;
}
/* 아래로 갈수록 짙어지는 막 — 배경이 무엇이든 이 막이 있어야 흰 글자가 읽힌다 */
.sintro-veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(78% 62% at 50% 46%, rgba(11, 15, 23, .35), transparent 72%),
    linear-gradient(180deg, rgba(11, 15, 23, .72) 0%, rgba(11, 15, 23, .18) 34%, rgba(11, 15, 23, .82) 100%);
}
/* 글이 가운데 서므로 배경 무늬도 가운데를 비켜 가야 한다 —
   히어로용 마스크는 카피가 왼쪽 아래에 있다는 전제라 오른쪽 위로 몰려 있다. */
.stage-art-center {
  -webkit-mask-image:
    radial-gradient(120% 96% at 50% 46%, transparent 0%, rgba(0, 0, 0, .55) 38%, #000 72%),
    linear-gradient(180deg, transparent 0%, #000 14%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(120% 96% at 50% 46%, transparent 0%, rgba(0, 0, 0, .55) 38%, #000 72%),
    linear-gradient(180deg, transparent 0%, #000 14%, #000 78%, transparent 100%);
  mask-composite: intersect;
}
.sec-sintro .stage-word { top: 50%; transform: translateY(-50%); }
.has-motion .sec-sintro .stage-word { animation: word-run-c 52s linear infinite; }
@keyframes word-run-c {
  from { transform: translate(0, -50%); }
  to   { transform: translate(-50%, -50%); }
}

/* ---- 화면들 ---- */
/* [주의] top 이 아니라 **음수 마진**이어야 한다.
   position: relative + top 은 보이기만 옮기고 흐름 높이는 그대로 둔다 —
   그래서 섹션이 (고정판 1화면 + 내용 3화면) = 4화면이 되어 맨 아래에 빈 화면이 하나 남았다.
   음수 마진은 흐름에서 실제로 끌어올려 섹션 높이가 정확히 화면 수만큼 된다. */
.sintro-steps { position: relative; z-index: 1; margin-top: calc(-1 * var(--sintro-h)); }
/* [주의] height 를 100vh 로 못 박으면 내용이 조금만 늘어도 아래가 잘린다 —
   마무리 장에 라벨·설명·버튼이 붙으면서 실제로 스크롤 안내가 화면 밖으로 나갔다.
   최소 높이만 100vh 로 두고, 위아래 여백으로 안내가 놓일 자리를 항상 비워 둔다. */
.sintro-step {
  min-height: var(--sintro-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(96px, 13vh, 150px) var(--edge); text-align: center;
}
/* [주의] 이 상자가 좁으면 문장이 원치 않는 자리에서 접힌다.
   실제로 마무리 장의 둘째 줄이 넘쳐 "WE'D COME." 이 다음 줄로 찢어졌다.
   가운데 정렬은 유지하면서 폭만 넉넉히 준다. */
.sintro-copy { width: 100%; max-width: 1180px; margin: 0 auto; }
.sintro-text {
  margin: 0;
  font-family: var(--font-display); font-weight: 800;
  /* 홈 첫 화면과 같은 크기 토큰을 쓴다 — 60px 로 따로 잡았더니 메인보다 작아 보였다 */
  font-size: var(--fs-hero); line-height: 1.24; letter-spacing: var(--ls-display);
  color: #fff; word-break: keep-all;
}
/* 설명이 붙은 마무리 장은 문장이 길다. 큰 글씨 그대로 두면 두 줄이 화면을 넘는다. */
.sintro-step-end .sintro-text {
  font-size: clamp(20px, 2.3vw, 34px); line-height: 1.5; letter-spacing: var(--ls-tight);
  /* 한글은 어절 단위로만 끊는다. 영문 상호는 데이터에서 줄바꿈 없는 공백으로 묶어 둔다 —
     keep-all 은 공백에서는 끊기므로 "WE'D" 와 "COME" 사이를 막지 못한다. */
  word-break: keep-all; overflow-wrap: normal;
}
/* 작은 파란 라벨 — 마무리 장의 머리 */
.sintro-kicker {
  display: block; margin-bottom: clamp(14px, 1.6vw, 22px);
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: #7FAEF0;
}
.sintro-sub {
  margin: clamp(20px, 2.4vw, 32px) auto 0; max-width: 62ch;
  font-size: var(--fs-lead); line-height: 1.85; font-weight: 400;
  color: rgba(255, 255, 255, .74); letter-spacing: var(--ls-tight); word-break: keep-all;
}
/* 아래 안내 — 화면 바닥에 붙는다. 글 묶음과 같은 흐름에 두면 문장 아래 꼬리처럼 붙는다. */
/* 모양(마우스 표시 + 점 애니메이션)은 .hero-hint 가 갖고 있다. 여기서는 자리만 잡는다. */
.sintro-hint {
  position: absolute; bottom: clamp(26px, 3.4vh, 44px); left: 50%; transform: translateX(-50%);
  margin-top: 0; white-space: nowrap; z-index: 2;
}
.sintro-step { position: relative; }


/* 화면 높이가 아주 낮은 창(가로로 눕힌 휴대폰 등)에서는 100vh 가 글보다 작아진다 */
@media (max-height: 560px) {
  .sintro-pin { height: 560px; }
  .sintro-steps { margin-top: -560px; }
  .sintro-step { min-height: 560px; padding-top: 88px; padding-bottom: 96px; }
}
@media (max-width: 760px) {
  .sintro-text { font-size: clamp(28px, 7.6vw, 42px); line-height: 1.32; }
  /* 설명이 붙은 마무리 장은 문장이 길다. 큰 글씨 그대로 두면 두 줄이 화면을 넘는다. */
.sintro-step-end .sintro-text {
  font-size: clamp(20px, 2.3vw, 34px); line-height: 1.5; letter-spacing: var(--ls-tight);
  /* 한글은 어절 단위로만 끊는다. 영문 상호는 데이터에서 줄바꿈 없는 공백으로 묶어 둔다 —
     keep-all 은 공백에서는 끊기므로 "WE'D" 와 "COME" 사이를 막지 못한다. */
  word-break: keep-all; overflow-wrap: normal;
}
/* 작은 파란 라벨 — 마무리 장의 머리 */
.sintro-kicker {
  display: block; margin-bottom: clamp(14px, 1.6vw, 22px);
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: #7FAEF0;
}
.sintro-sub { font-size: 16px; line-height: 1.75; }
}

/* ---- 마무리 장의 자료 받기 버튼 ----
   왼쪽이 주(솔리드), 오른쪽이 보조(테두리만). 어두운 면 위라 보조는 배경 없이 둔다. */
.sintro-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: clamp(30px, 3.6vw, 48px); }
.sintro-btn { gap: 9px; padding: 15px 26px; font-size: 15.5px; }
.sintro-btn-ico { width: 18px; height: 18px; flex: none; }
.sintro-btn-main { background: #2563EB; color: #fff; border-color: #2563EB; }
.has-motion .sintro-btn-main:hover { background: #1D4ED8; border-color: #1D4ED8; transform: translateY(-3px); box-shadow: 0 16px 32px -14px rgba(37, 99, 235, .6); }
.sintro-btn-sub { background: transparent; color: rgba(255, 255, 255, .82); border-color: rgba(255, 255, 255, .34); }
.has-motion .sintro-btn-sub:hover { color: #fff; border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .08); transform: translateY(-3px); }
@media (max-width: 560px) {
  /* 좁은 화면에서는 위아래로 쌓는다 */
  .sintro-btns { flex-direction: column; align-items: stretch; }
  .sintro-btn { justify-content: center; }
}

/* ==========================================================================
   섹션 스냅 — 스크롤을 멈추면 섹션 머리에 딱 맞춰 선다
   --------------------------------------------------------------------------
   [왜 이 방식인가] 참고한 사이트(NHN AD)는 body 를 스크롤 컨테이너로 만들고
   휠 이벤트를 JS 로 가로채 한 섹션씩 끌고 간다. 보기에는 같지만 대가가 크다 —
   트랙패드 관성·스크롤바 끌기·키보드 PageDown·브라우저의 위치 복원이 전부 깨지고,
   스크립트가 실패하면 페이지가 아예 안 내려간다.
   같은 인상을 브라우저가 직접 처리하는 스크롤 스냅으로 낸다.

   [proximity 인 이유] mandatory 로 두면 화면보다 긴 섹션 안에서 멈출 수가 없다 —
   읽는 중에 계속 끌려 다닌다. proximity 는 경계 근처에서 멈췄을 때만 붙여 준다.

   [모션 저감] 화면이 스스로 움직이는 것을 불편해하는 사용자가 있다.
   그 설정이면 규칙 자체가 적용되지 않는다. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-snap-type: y proximity;
    /* 붙는 자리가 고정 헤더에 가리지 않게 헤더 높이만큼 띄운다.
       [주의] var(--header-h) 를 쓰면 안 된다. 헤더는 스크롤이 시작되면 92px → 82px 로 줄어드는데,
       그러면 **스냅 목표 지점이 스크롤 도중에 10px 움직인다.** 브라우저가 새 목표로 다시 붙이고,
       그 과정에서 스크롤 위치가 8px 아래로 내려가면 헤더가 다시 커지고, 목표가 또 움직인다 —
       헤더가 92↔82 를 반복하며 메뉴가 떨렸다. 스크롤 중에는 늘 작은 헤더이므로 그 높이로 못 박는다. */
    scroll-padding-top: var(--header-h-sm);
  }
  .sec { scroll-snap-align: start; }

  /* [주의] 읽는 화면은 스냅에서 뺀다.
     이 스냅은 홈·회사소개처럼 **섹션이 여러 개 이어지는 페이지**를 위한 것이다.
     게시판 글은 화면 전체가 .sec 하나뿐이라 "한 섹션씩 넘기는" 이득이 없고,
     대신 글 위쪽에서 스크롤할 때마다 그 하나뿐인 지점으로 되돌려 화면이 떨렸다.
     긴 글을 읽는 중에 스크롤이 끌려가는 것은 그 자체로 방해다. */
  .sec-board, .sec-article, .sec-jd,
  .sec-case-head, .sec-case-body { scroll-snap-align: none; }
  /* 화면 하나를 통째로 쓰는 인트로는 헤더 아래가 아니라 **화면 맨 위**에 붙어야 한다 —
     헤더가 이 위에 겹쳐 뜨도록 설계된 구간이라 위 여백을 되돌린다. */
  .sintro-step { scroll-snap-align: start; scroll-margin-top: calc(0px - var(--header-h)); }
  /* 첫 화면은 페이지 맨 위 그대로 */
  .sec-hero { scroll-margin-top: calc(0px - var(--header-h)); }
  /* 옆으로 미는 레일 안에서는 세로 스냅이 끼어들면 안 된다 */
  .sl-rail, .cmp-scroll, .mq { scroll-snap-type: x proximity; }
}

/* 넓은 화면에서만 적용되는 강제 줄바꿈.
   "이 문장은 두 줄로 떨어져야 예쁘다"는 판단이라, 좁아지면 어중간한 짧은 줄만 만든다. */
@media (max-width: 760px) {
  .br-md { display: none; }
}

/* ==========================================================================
   가운데 강조 카드 (.sec-cf)
   --------------------------------------------------------------------------
   값을 격자로 늘어놓으면 넷 다 같은 무게로 읽혀 아무것도 남지 않는다.
   가운데 한 장만 살려서 한 번에 하나씩 읽게 한다.

   미는 일은 브라우저가 한다(가로 스크롤 + 스냅). 라이브러리를 쓰지 않는다.
   ========================================================================== */

.sec-cf {
  /* 앞이 어두운 인트로라 여기는 연한 쿨그레이로 뒤집는다 */
  --bg-off: #F4F7FB;
  --cf-on-bg:  var(--dark-1);   /* 살아난 카드 — 사이트의 어두운 면과 같은 값 */
  --cf-off-bg: #FFFFFF;
  --cf-line:   #E2E8F0;
  --cf-dim:    #94A3B8;
}
:root[data-skin="dark"] .sec-cf {
  --bg-off: #17181C; --cf-on-bg: #05080E; --cf-off-bg: #232122;
  --cf-line: rgba(255, 255, 255, .12); --cf-dim: rgba(255, 255, 255, .42);
}

/* 화면 한 판을 쓴다 — 바로 위 스크롤 인트로가 한 판을 꽉 채우고 내려오는데
   다음 섹션이 반 판만 쓰면 리듬이 끊겨 "덤으로 붙은 자리"처럼 읽힌다.

   [주의] 이 섹션은 직계 자식이 여럿이다. 채용 페이지 "일하는 방식"처럼
   `display:flex; align-items:center` 만 주면 그 자식들이 **가로로 늘어선다** —
   세로 방향(flex-direction: column)을 먼저 정해야 한다.
   높이는 height 가 아니라 min-height 로 잡는다. height 로 묶으면 글이 길어졌을 때
   칸이 안 늘어나 아래가 잘린다. */
.sec.sec-cf.sec-pad-normal {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(80px, 8vw, 160px); padding-bottom: clamp(80px, 8vw, 160px);
}

.cf-head { padding: 0 var(--edge); text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.cf-head .kicker { margin-bottom: 12px; }
.cf-title {
  margin: 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 3.6vw, 50px); line-height: 1.2; letter-spacing: var(--ls-display);
  color: var(--ink); word-break: keep-all;
}

/* ---- 레일 ----
   좌우 여백을 화면 절반만큼 줘야 첫 장과 마지막 장도 가운데까지 올 수 있다. */
.cf-rail {
  display: flex; gap: clamp(16px, 1.8vw, 26px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  /* [주의] overflow-x: auto 를 걸면 세로도 함께 잘린다(표준상 한 축이 visible 이 아니면
     다른 축의 visible 은 auto 로 계산된다). 그래서 가운데 카드의 그림자가 아래에서 뚝 끊겨
     카드 밑에 가로줄이 하나 그어진 것처럼 보인 적이 있다.
     아래 여백을 그림자가 들어갈 만큼 벌리고, 늘어난 만큼 margin 으로 되돌려
     아래 점(dot)줄과의 간격은 그대로 둔다.
     지금 그림자는 아래로 16px 만 뻗으므로(.cf-card.is-on) 60px 은 넉넉하다 —
     그림자를 다시 키울 일이 있으면 이 여백부터 확인할 것. */
  padding: 26px calc(50% - (var(--cf-w) / 2)) 60px;
  margin-bottom: -30px;
  scrollbar-width: none;
  --cf-w: 420px;
  cursor: grab;
}
.cf-rail::-webkit-scrollbar { display: none; }
.cf-rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.cf-rail:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 4px; }

.cf-card {
  flex: none; width: var(--cf-w); min-height: 320px;
  scroll-snap-align: center;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(28px, 2.6vw, 38px);
  border-radius: var(--r-lg);
  background: var(--cf-off-bg); border: 1px solid var(--cf-line);
  box-shadow: 0 2px 6px -3px rgba(15, 23, 42, .1);
  transform: scale(.95); opacity: .5;
  transition: background .5s var(--ease-out), color .5s var(--ease-out),
              transform .5s var(--ease-out), opacity .5s var(--ease-out),
              box-shadow .5s var(--ease-out), border-color .5s var(--ease-out);
}
/* 가운데 온 장 — 어두워지고 조금 커지며 앞으로 나온다 */
.cf-card.is-on {
  /* 테두리를 배경과 같은 색으로 지우면 큰 검정 덩어리가 되어 버린다.
     아주 얇은 밝은 선을 한 겹 남겨 두면 같은 검정이라도 계기판처럼 정교해 보인다. */
  background: var(--cf-on-bg); border-color: rgba(255, 255, 255, .15);
  transform: scale(1.05); opacity: 1;
  /* [주의] `0 40px 80px -34px` 로 진하게(45%) 깔았던 자리다. 40px 이나 내려 깐 탓에
     그림자가 카드에 붙어 있지 않고 **따로 떨어진 짙은 띠**로 보였고, 밝은 바탕(#F4F7FB)
     위에서 그게 카드 밑을 가로지르는 선처럼 읽혔다 — "그림자 때문에 잘린 것 같다"는 말이
     두 번 나온 이유다. 들어 올린 느낌은 **카드에 붙은 옅은 그림자**에서 나온다.
     맞닿는 곳 한 겹 + 넓게 퍼지는 한 겹으로 나눠 자연스럽게 떨어뜨린다.
     아래로 뻗는 거리도 46px → 16px 이라 레일이 세로로 자를 일이 아예 없어진다. */
  box-shadow: 0 2px 8px -4px rgba(15, 23, 42, .16),
              0 20px 44px -26px rgba(15, 23, 42, .28);
}

.cf-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--r-md); flex: none;
  color: var(--cf-dim);
  background: rgba(15, 23, 42, .05);
  transition: color .5s var(--ease-out), background .5s var(--ease-out);
}
.cf-ico-svg { width: 25px; height: 25px; }
.cf-card.is-on .cf-ico { color: #9CC2F5; background: rgba(255, 255, 255, .1); }

/* 글은 아래쪽에 — 아이콘이 위, 문장이 아래로 떨어져야 카드가 안정적으로 선다 */
.cf-body { margin-top: 28px; }
.cf-ct {
  margin: 0 0 12px;
  font-family: var(--font-display); font-size: clamp(18px, 1.55vw, 22px); font-weight: 800;
  letter-spacing: var(--ls-tight); line-height: 1.4; color: var(--cf-dim);
  word-break: keep-all;
  transition: color .5s var(--ease-out);
}
.cf-cd {
  margin: 0; font-size: 15.5px; line-height: 1.72; color: var(--cf-dim);
  word-break: keep-all;
  transition: color .5s var(--ease-out);
}
.cf-card.is-on .cf-ct { color: #fff; }
.cf-card.is-on .cf-cd { color: rgba(255, 255, 255, .72); }

/* ---- 도트 ---- */
.cf-dots { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: clamp(20px, 2.4vw, 32px); }
.cf-dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--cf-line);
  transition: width .35s var(--ease-out), background .35s var(--ease-out);
}
.cf-dot:hover { background: var(--faint); }
.cf-dot.is-on { width: 30px; background: var(--cf-on-bg); }
.cf-dot:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 3px; }

@media (max-width: 900px)  { .cf-rail { --cf-w: 360px; } .cf-card { min-height: 300px; } }
@media (max-width: 560px)  { .cf-rail { --cf-w: 82vw; } .cf-card { min-height: 0; } }
/* 모션을 끈 사용자에게는 크기·투명도 변화를 주지 않는다 — 색만 바뀐다 */
@media (prefers-reduced-motion: reduce) {
  .cf-card { transform: none; opacity: 1; transition: background .2s, color .2s; }
  .cf-card.is-on { transform: none; }
}

/* ==========================================================================
   성과 지표 카드 (.sec-imp)
   --------------------------------------------------------------------------
   숫자마다 무엇을 잰 값인지가 위에 붙는다 — 출처 없는 숫자는 크게 쓸수록 의심스러워진다.
   분류 → 잰 내용 → 숫자 순으로 읽히게 세운다.
   ========================================================================== */

.sec-imp {
  /* 앞이 연회색이므로 여기는 흰 면 */
  --page: #FFFFFF;
  --imp-card: #F5F7FA;
  --imp-line: #E3E8EF;
  --imp-num:  var(--ink);
  --imp-desc: var(--muted);
  --imp-lab:  var(--brand-text);
  /* 마우스를 올렸을 때 뒤집히는 쪽 */
  --imp-on:      var(--dark-1);
  --imp-on-line: rgba(255, 255, 255, .14);
  --imp-on-num:  #FFFFFF;
  --imp-on-desc: #C7D0DE;
  --imp-on-lab:  #7FAEF0;
}
:root[data-skin="dark"] .sec-imp {
  --page: #1B1A1A; --imp-card: rgba(255, 255, 255, .045);
  --imp-line: rgba(255, 255, 255, .10); --imp-num: var(--ink);
  --imp-on: #05080E;
}

/* 여기도 한 판. 위 .sec-cf 와 같은 이유이고 같은 식을 쓴다 —
   두 섹션이 연달아 오므로 높이 규칙이 다르면 스크롤 리듬이 어긋난다. */
.sec.sec-imp.sec-pad-normal {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(80px, 8vw, 160px); padding-bottom: clamp(80px, 8vw, 160px);
}

.imp-grid {
  list-style: none; margin: 0; padding: 0 var(--edge-lead);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 22px);
}
.imp-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 아주 연한 면과 1px 선. 그림자는 쓰지 않는다 — 그림자는 카드를 띄우고, 선은 카드를 **잰다.**
   숫자를 보여 주는 판이므로 계기판 쪽에 가깝게 둔다. */
.imp-card {
  display: flex; flex-direction: column;
  padding: clamp(30px, 3.4vw, 52px);
  border-radius: var(--r-lg);
  background: var(--imp-card);
  border: 1px solid var(--imp-line);
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out);
}
/* 마우스를 올리면 카드 한 장만 어둡게 뒤집힌다.
   [주의] 배경만 어둡게 하면 글자가 그대로 남아 안 보인다 — 안쪽 색 토큰을 **함께** 갈아 끼운다.
   글자색 전환은 배경보다 조금 짧게(.24s) 둔다. 같은 길이로 두면 중간에 회색끼리 겹쳐 한 번 흐려진다. */
.has-motion .imp-card:hover {
  background: var(--imp-on);
  border-color: var(--imp-on-line);
}
.has-motion .imp-card:hover .imp-label { color: var(--imp-on-lab); }
.has-motion .imp-card:hover .imp-desc  { color: var(--imp-on-desc); }
.has-motion .imp-card:hover .imp-value { color: var(--imp-on-num); }

.imp-label {
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--imp-lab);
  margin-bottom: 14px;
  transition: color .24s var(--ease-out);
}
.imp-desc {
  margin: 0 0 clamp(24px, 3vw, 40px); max-width: 30ch;
  font-size: 16px; line-height: 1.7; color: var(--imp-desc); word-break: keep-all;
  transition: color .24s var(--ease-out);
}
/* 숫자는 카드 바닥에 붙는다 — 설명 길이가 달라도 네 숫자의 밑선이 맞는다 */
.imp-value {
  margin-top: auto; display: block;
  font-family: var(--font-num); font-weight: 800; color: var(--imp-num);
  font-size: clamp(46px, 5.4vw, 76px); line-height: 1; letter-spacing: -.035em;
  transition: color .24s var(--ease-out);
}
/* 단위(% · 개)는 숫자보다 작게 — 숫자 서체의 기호는 크게 두면 숫자를 이긴다 */
.imp-value .num-u { font-size: .48em; margin-left: 2px; letter-spacing: -.02em; }

@media (max-width: 860px) {
  .imp-grid, .imp-n3 { grid-template-columns: minmax(0, 1fr); }
  .imp-desc { max-width: none; }
}

/* ==========================================================================
   다음 페이지로 넘기는 띠 (.sec-bridge)
   --------------------------------------------------------------------------
   cta(상담 신청)와 목적이 다르다. 여기는 "더 볼 것이 있다"는 안내이므로
   버튼을 따로 두지 않는다 — 띠 전체가 링크다. 누를 곳을 찾게 만들 이유가 없다.
   ========================================================================== */

/* 이 띠는 앞뒤 섹션을 **이어 주는** 자리다. 위아래가 붙어 있으면 앞 섹션의 마지막 줄처럼 읽혀서
   "다음으로 넘어가라"는 신호가 사라진다. 그래서 이 섹션만 여백을 따로 정한다.

   [주의] 위아래에 같은 값을 주면 안 된다 — 앞 섹션이 자기 아래 여백(--sec-pad 96px)을 이미
   갖고 있어서 위쪽만 96px 더 벌어지고, 띠가 아래로 처져 보인다. 위쪽을 그만큼 덜 준다.
   (뒤 섹션은 `.sec-bg-plain + .sec-bg-plain { padding-top: 0 }` 에 걸려 위 여백이 0 이므로
    아래쪽 공간은 이 띠의 padding-bottom 이 전부 만든다.)

   관리자에서 여백을 "좁게/없음"으로 바꾸면 그쪽이 이긴다 — 아래 규칙은 "보통"일 때만 걸린다. */
.sec.sec-bridge.sec-pad-normal {
  padding-top:    clamp(28px, 5.6vw, 84px);
  padding-bottom: clamp(76px, 12vw, 180px);
}
@media (max-width: 760px) {
  /* 좁은 화면에서 큰 여백은 여유가 아니라 그냥 빈 화면이다. 앞 섹션의 96px 로 위는 충분하다. */
  .sec.sec-bridge.sec-pad-normal { padding-top: 0; padding-bottom: 76px; }
}

.sec-bridge {
  /* 앞(숫자 카드)과 뒤(연혁)가 모두 흰 면이라 여기만 오프화이트로 두면
     띠 뒤에 회색 가로줄이 하나 깔린 것처럼 보인다. 셋을 이어 하나의 흰 면으로 둔다. */
  --page: #FFFFFF;
  --br-bg:   var(--dark-1);
  --br-line: rgba(255, 255, 255, .10);
  --br-lead: #8FA0BC;
  --br-ink:  #FFFFFF;
}

.bridge {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(24px, 4vw, 64px);
  margin: 0 var(--edge-lead);
  padding: clamp(38px, 4.6vw, 74px) clamp(28px, 3.6vw, 64px);
  border-radius: var(--r-panel);
  background: var(--br-bg);
  border: 1px solid var(--br-line);
  color: var(--br-ink); text-decoration: none;
  transition: background var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
a.bridge:hover { background: #0F141F; border-color: rgba(255, 255, 255, .2); }
a.bridge:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 4px; }

.bridge-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bridge-lead {
  font-size: clamp(14px, 1.05vw, 16px); font-weight: 600; letter-spacing: -.01em;
  color: var(--br-lead); word-break: keep-all;
}
.bridge-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 2.5vw, 36px); line-height: 1.38; letter-spacing: -.028em;
  color: var(--br-ink); word-break: keep-all;
}
/* 밝은 바탕용 그라디언트(#1B2F63 → #2C58A6)를 이 검정 위에 그대로 쓰면 글자가 배경에 묻힌다.
   마지막 CTA 박스와 같은 방식으로 — 흰 글자에 얇은 밑줄만 남긴다. */
.bridge-title .gtext {
  background: none; color: #fff; -webkit-text-fill-color: #fff;
  box-shadow: inset 0 -.12em 0 rgba(255, 255, 255, .38);
}

/* 화살표는 원 안에 넣지 않는다. 원을 그리면 "단추"가 되어 띠 전체가 링크라는 사실을 가린다. */
.bridge-arrow {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: clamp(46px, 4.4vw, 68px); height: clamp(46px, 4.4vw, 68px);
  color: var(--br-ink);
  transition: transform var(--dur-1) var(--ease-out);
}
.bridge-arrow-svg { width: 100%; height: 100%; }
.has-motion a.bridge:hover .bridge-arrow { transform: translateX(10px); }

@media (max-width: 720px) {
  .bridge { flex-direction: column; align-items: flex-start; gap: 26px; }
  .bridge-arrow { width: 42px; height: 42px; margin-left: -6px; }
}

/* ==========================================================================
   연혁 (.sec-hist)
   --------------------------------------------------------------------------
   세로선도 동그라미도 그리지 않는다. 한 줄은 **거대한 연도 / 짧은 가로선 / 그해의 일** 셋이다.
   가로선은 장식이 아니라 자리표다 — 연도와 글 사이가 비면 두 덩어리가 따로 노는데,
   선 하나가 그 사이를 이어 주면 같은 줄로 읽힌다.
   ========================================================================== */

.sec-hist {
  /* [주의] --page 를 다시 정의한다 — .sec-bg-plain 이 이 토큰을 배경으로 쓰므로
     이 한 줄로 섹션 바탕이 흰 면이 되고, 안쪽 요소들의 기준색도 함께 따라온다.
     위쪽 숫자 카드 섹션과 같은 방식이라 두 섹션이 이어진 하나의 흰 면으로 읽힌다. */
  --page: #FFFFFF;
  --hist-year:  var(--ink);
  --hist-rule:  var(--line);
  --hist-dash:  #C7CDD6;      /* 행 구분선보다 한 톤 진하게 — 이건 읽히라고 두는 선이다 */
  --hist-mark:  #A8B0BC;      /* 항목 앞 점. 사이트 기본 --faint 는 웜그레이라 이 찬 회색 옆에서 갈색으로 보인다 */
  --hist-item:  var(--body-c);
  /* 그해의 일 한 줄의 글자 크기. 가로선을 첫 줄 한가운데 맞추는 계산에도 쓰인다. */
  --hist-fs:    clamp(16px, 1.25vw, 18px);
  --hist-gap:   12px;      /* 항목 사이 — 줄 간격보다 좁으면 두 건이 한 문단으로 붙어 보인다 */
  /* 한 해에 항목이 셋까지 늘어나서 줄 간격을 더 벌렸다(1.72 → 1.78).
     이 값은 가로선을 첫 줄 한가운데에 맞추는 계산에도 들어가므로 여기서만 바꾼다. */
  --hist-lh:    1.78;
}
:root[data-skin="dark"] .sec-hist {
  --page: #1B1A1A; --hist-dash: rgba(255, 255, 255, .3); --hist-mark: rgba(255, 255, 255, .42);
}

.hist-wrap { padding: 0 var(--edge-lead); }
/* [주의] 여기를 좁게 잡으면(22ch 로 두었더니 407px) 제목에 넣은 줄바꿈보다 폭이 먼저 걸려
   "위드컴은 / 지금도 / 성장하고 / 있습니다." 처럼 네 줄로 찢어진다. 줄 나눔은 제목의 줄바꿈이 정한다. */
.hist-head { max-width: 34ch; margin-bottom: clamp(44px, 5.4vw, 84px); }
.hist-title {
  margin: 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--fs-h2); line-height: 1.28; letter-spacing: -.03em;
  color: var(--ink); word-break: keep-all;
}
/* 제목 안의 강조는 색을 바꾸지 않는다 — 연혁은 회사의 기록이지 광고 문구가 아니다.
   여기서 파란 글씨가 한 덩어리 들어가면 아래 연도들보다 그쪽이 먼저 읽힌다. */
.hist-title .gtext {
  background: none; color: var(--ink); -webkit-text-fill-color: var(--ink);
}

/* 아래 선은 마지막 줄이 아니라 **목록 자체**가 갖는다.
   접힌 줄이 목록 안에 들어 있어서, 마지막 줄에 선을 걸면 접었을 때 선이 화면 밖에 남는다.

   [주의] 폭을 1180px 로 묶어 두면 안 된다 — 넓은 모니터에서 목록만 왼쪽에 붙고
   위쪽 숫자 카드·배너(둘 다 --edge-lead 안쪽을 꽉 채운다)와 오른쪽 끝이 어긋난다.
   그러면 목록 아래의 "더보기" 막대도 같이 왼쪽으로 쏠려 화면 가운데에서 벗어난다(1920 에서 247px).
   글줄이 길어지는 문제는 폭이 아니라 .hist-items 의 max-width 가 막는다. */
.hist-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--hist-rule); }

/* 연도 칸은 고정폭이다 — 폭을 내용에 맡기면 2013 과 2026 의 글자폭 차이만큼 오른쪽 글이 어긋난다.
   가로선 칸도 고정 32px 로 둔다(내용이 없어 auto 로 두면 0 이 된다). */
.hist-row {
  display: grid;
  grid-template-columns: clamp(140px, 13.5vw, 208px) 32px minmax(0, 1fr);
  gap: clamp(18px, 2.2vw, 34px);
  align-items: start;
  padding: clamp(24px, 2.8vw, 38px) 0;
  border-top: 1px solid var(--hist-rule);
}


/* 900(black)은 Archivo 가변축의 끝값이다 — layout.php 의 구글 폰트 주소가 400..900 을
   불러오지 않으면 브라우저가 800 에서 멈추고 굵기가 티 나게 얇아진다. 둘을 같이 본다. */
.hist-year {
  font-family: var(--font-num); font-weight: 900;
  font-size: clamp(50px, 5.6vw, 84px); line-height: .92; letter-spacing: -.055em;
  color: var(--hist-year);
  /* 숫자 서체의 기본 위쪽 여백만큼 내려앉아 오른쪽 글 첫 줄과 윗선이 어긋난다. 살짝 끌어올린다. */
  margin-top: -.06em;
  font-variant-numeric: lining-nums tabular-nums;
}

/* 가로선은 오른쪽 글 **첫 줄 한가운데**에 온다. 위나 아래로 붙으면 연도에 딸린 장식처럼 보인다. */
.hist-dash {
  display: block; width: 100%; height: 1px;
  background: var(--hist-dash);
  margin-top: calc(var(--hist-fs) * var(--hist-lh) / 2);
}

/* [주의] 최대폭을 ch 로 잡으면 안 된다 — ch 는 숫자 0 의 폭(≈.5em)이라
   한글에서는 62ch 가 31자밖에 안 되어 한 줄짜리 항목이 죄다 두 줄로 접혔다. em 으로 잡는다.
   그리고 글자 크기를 목록(ul)에 걸어야 한다 — li 에만 걸면 em 이 물려받은 본문 크기(17px)를
   기준으로 계산돼 의도한 폭과 어긋난다. */
.hist-items {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--hist-gap);
  font-size: var(--hist-fs); max-width: 50em;
}
.hist-items li {
  font-size: inherit; line-height: var(--hist-lh); color: var(--hist-item);
  word-break: keep-all; letter-spacing: -.012em;
}
/* 각 줄 앞에 아주 작은 점. 줄바꿈만으로는 두 건인지 한 문장이 접힌 건지 모른다.
   [주의] 한 건뿐인 해(:only-child)만 점을 빼면 그 줄의 글자 시작점이 15px 튀어
   아홉 줄 중 한 줄만 왼쪽으로 삐져나온다. 건수와 상관없이 전부 찍는다. */
.hist-items li { position: relative; padding-left: 15px; }
.hist-items li::before {
  content: ""; position: absolute; left: 0;
  top: calc(var(--hist-fs) * var(--hist-lh) / 2 - 1.5px);
  width: 3px; height: 3px; border-radius: 50%; background: var(--hist-mark);
}

/* ---- 접히는 부분 ----
   높이를 px 로 재서 넣지 않는다. grid-template-rows 를 0fr → 1fr 로 옮기면
   브라우저가 내용의 실제 높이를 알아서 계산하므로, 줄이 몇 개든 스크립트가 잴 일이 없다. */
.fold {
  display: grid; grid-template-rows: 1fr;   /* 스크립트가 없으면 펼쳐진 채로 둔다 */
}
/* [주의] 전환은 **처음 접을 때는 걸지 않는다.**
   화면이 뜨자마자 0.68초 동안 스르륵 접히면 아무도 누르지 않았는데 내용이 움직이고,
   그 사이 레이아웃이 계속 바뀌어 전환이 끝나지 않고 매달려 있는 일이 실제로 났다(모바일에서 재현).
   스크립트가 접기를 끝낸 다음 프레임에 is-ready 를 붙여서, 그때부터만 움직이게 한다. */
.fold.is-ready { transition: grid-template-rows .68s var(--ease-out); }

/* 0fr 은 그것만으로 줄이 접히지 않는다 — grid 의 자동 최소 크기가 내용 높이만큼 남는다.
   안쪽 목록에 overflow:hidden 과 min-height:0 을 함께 줘야 0 까지 내려간다. */
.fold-inner { list-style: none; margin: 0; padding: 0; overflow: hidden; min-height: 0; }
.fold.is-folded { grid-template-rows: 0fr; }

/* 펼칠 때 위에서 밀려 내려오는 느낌은 목록을 살짝 끌어올렸다 놓아서 만든다.
   높이만 늘리면 아래에서 자라 올라오는 것처럼 보여 방향이 반대가 된다. */
.fold-inner { transform: translateY(-10px); opacity: .4; transition: transform .68s var(--ease-out), opacity .5s var(--ease-out) .1s; }
.fold:not(.is-folded) > .fold-inner { transform: none; opacity: 1; }
.fold.is-folded > .fold-inner { transition-duration: 0s; }

/* ---- 더보기 ----
   목록 폭에 꽉 차는 가로 막대. 가운데 놓인 알약 단추로 만들면 그 자체가 볼거리가 되는데,
   여기서 필요한 것은 "아직 더 있다"는 표시뿐이다. 목록의 마지막 칸처럼 보이게 둔다. */
.more-bar {
  display: none;                /* 스크립트가 없으면 누를 것이 없다 — 이미 다 펼쳐져 있다 */
  width: 100%;                  /* 목록과 같은 폭 = --edge-lead 안쪽 전체 → 화면 정중앙에 온다 */
  align-items: center; justify-content: center;
  margin-top: 14px; padding: 21px 20px;
  border: 0; border-radius: var(--r-sm);
  background: #F6F8FB; color: #6B7686;
  font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out),
              opacity .42s var(--ease-out), margin .5s var(--ease-out), padding .5s var(--ease-out);
}
.has-js .more-bar { display: flex; }
.more-bar:hover { background: #EDF1F6; color: var(--ink); }
.more-bar:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 3px; }
/* 펼친 뒤에도 단추는 남는다 — 다시 접을 수 있어야 한다.
   글자만 바뀌고 자리는 그대로여서, 누른 뒤에 눈이 단추를 다시 찾을 일이 없다. */
.more-bar-close { display: none; }
.more-bar.is-open .more-bar-open { display: none; }
.more-bar.is-open .more-bar-close { display: inline; }

:root[data-skin="dark"] .more-bar { background: rgba(255, 255, 255, .05); color: var(--muted); }
:root[data-skin="dark"] .more-bar:hover { background: rgba(255, 255, 255, .09); color: var(--ink); }

@media (max-width: 760px) {
  .more-bar { padding: 18px 16px; font-size: 14.5px; }
  /* 좁은 화면에서 가로선은 자리표 노릇을 못 한다 — 연도 바로 아래에 글이 오므로 이미 한 덩어리다 */
  .hist-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hist-dash { display: none; }
  .hist-year { font-size: clamp(42px, 12vw, 56px); margin-top: 0; }
  .hist-items { max-width: none; }
}

/* ==========================================================================
   매체·파트너 격자 (.sec-logos-media)
   --------------------------------------------------------------------------
   같은 로고라도 고객사 목록과 매체사 목록은 읽는 방식이 다르다.
   고객사는 "얼마나 많이"를 보므로 흐르는 띠가 맞고,
   매체는 "무엇무엇을 다루는가"를 보므로 한눈에 세어지는 격자가 맞다.
   그래서 칸에 테두리를 두르지 않는다 — 네모가 보이면 개수보다 네모가 먼저 읽힌다.
   ========================================================================== */

.sec-logos-media {
  /* 앞이 흰 면이라 여기는 아주 옅은 쿨그레이 판. 톤은 핵심 가치 슬라이더와 같은 값이다. */
  --bg-off: #F6F8FB;
  --lm-ink: var(--muted);
}
:root[data-skin="dark"] .sec-logos-media { --bg-off: #17181C; --lm-ink: var(--muted); }

/* 이 판만 위아래를 넉넉히 연다 — 로고는 여백이 있어야 로고로 보인다.
   관리자에서 여백을 "좁게/없음"으로 바꾸면 그쪽이 이긴다. */
.sec.sec-logos-media.sec-pad-normal { padding: clamp(72px, 9vw, 132px) 0; }

.sec-logos-media .sec-title-sm { margin-bottom: clamp(44px, 5vw, 72px); }

/* 칸 높이와 로고 높이는 NHN AD 실측(칸 53 / 로고 48)에 맞춘다.
   한 칸이 236px 인데 로고가 19px 이면 글자가 칸 안에서 미아가 된다. */
.sec-logos-media { --lm-cell: 64px; --lm-gap: clamp(28px, 3.4vw, 48px); }

/* 이 섹션의 좌우 선은 --edge-lead 다 — 위쪽 숫자 카드 · 배너 · 연혁이 모두 이 선을 쓴다.
   여기만 1024px 로 묶어 두었더니 격자와 더보기 막대가 위 내용보다 안쪽으로 들어가 어긋나 보였다. */
.logom-wrap { max-width: none; padding: 0 var(--edge-lead); }

.logo-media {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--lm-gap);
  align-items: center;
}
/* 접혔다 나오는 두 번째 벌. 위 격자와 붙어 버리지 않게 한 줄 간격만큼 띄우는데,
   그 간격을 안쪽(padding)에 둬야 접었을 때 함께 사라진다 — 바깥 여백이면 접어도 빈 줄이 남는다. */
.logo-media-rest { padding-top: var(--lm-gap); }
/* 더보기 막대는 격자와 같은 폭으로 세운다 — 격자보다 넓으면 로고와 관계없는 띠처럼 보인다 */
.sec-logos-media .more-bar { margin-top: clamp(30px, 3.4vw, 48px); }
/* 칸은 테두리도 배경도 없다. 높이만 같게 잡아 밑선을 맞춘다. */
.logo-media .logo-cell {
  height: var(--lm-cell); padding: 0;
  background: none; border: 0; border-radius: 0;
  transition: opacity var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.logo-media .logo-cell:hover { border-color: transparent; box-shadow: none; transform: none; }
.logo-media .logo-cell img { max-height: 48px; }

/* 로고 파일이 오기 전까지 쓰는 글자 칸. 실제 로고가 들어오면 같은 높이의 이미지가 대신한다. */
.logo-word {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(18px, 1.7vw, 25px); letter-spacing: -.025em;
  color: var(--lm-ink); white-space: nowrap;
  transition: color var(--dur-1) var(--ease-out);
}
.has-motion .logo-media .rv:hover .logo-word { color: var(--ink); }
.has-motion .logo-media .rv:hover .logo-cell img { opacity: 1; filter: none; }

@media (max-width: 1080px) {
  .logo-media { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  /* 2칸까지만 내린다. 1칸으로 내리면 로고가 아니라 목록이 된다. */
  .logo-media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-logos-media { --lm-cell: 52px; --lm-gap: 26px; }
  .logo-media { gap: var(--lm-gap) 20px; }
  .logo-media .logo-cell img { max-height: 36px; }
  .logo-media .logo-cell img { max-height: 32px; }
}

/* ==========================================================================
   서비스 페이지 3종 (.sec-flow / .sec-svcnav / .sec-svcb)
   --------------------------------------------------------------------------
   한 장에 서비스를 다 담을 때 셋이 한 벌로 움직인다.
   흐름(어두운 판) → 바로가기 탭 → 서비스 블록들(밝은 면).
   ========================================================================== */

/* ---- 진행 단계 (파이프라인) ----
   갈래를 위아래로 나누지 않고 한 줄로만 뻗는다 — 갈래가 둘이면 "둘 중 하나를 고르는 것"으로
   읽히는데, 여기서 말하려는 것은 다섯이 끊기지 않고 이어진다는 사실이다. */
.sec-flow {
  --dark-bg: var(--dark-1);
  --flow-dot:  #3B82F6;                      /* 노드 · 단계 번호 */
  --flow-line: rgba(255, 255, 255, .13);
  --flow-card: rgba(255, 255, 255, .05);
  --flow-edge: rgba(255, 255, 255, .10);
}

.flow-wrap { padding: 0 var(--edge-lead); }
/* 머리는 가운데 정렬 — 아래 다섯 칸이 좌우로 균등하게 퍼지므로 머리도 가운데에 서야 축이 맞는다 */
.flow-head { text-align: center; max-width: 62em; margin: 0 auto clamp(56px, 6.6vw, 96px); }
.flow-kicker { display: block; margin-bottom: 18px; color: var(--flow-dot); }
.flow-title {
  margin: 0 auto;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 3.2vw, 46px); line-height: 1.28; letter-spacing: -.03em;
  color: #fff; word-break: keep-all; max-width: 22em;
}
.flow-sub {
  margin: 22px auto 0; max-width: 40em;
  font-size: clamp(16px, 1.25vw, 18px); line-height: 1.85;
  color: var(--muted); word-break: keep-all;
}

.flow-list {
  position: relative; list-style: none; margin: 0; padding: 0;
  --flow-gap: clamp(12px, 1.4vw, 22px);
  --flow-node: 13px;
  display: grid; grid-template-columns: repeat(var(--flow-n, 5), minmax(0, 1fr));
  gap: var(--flow-gap);
}
.flow-n3 { --flow-n: 3; } .flow-n4 { --flow-n: 4; }
.flow-n5 { --flow-n: 5; } .flow-n6 { --flow-n: 6; }

/* 선은 **첫 노드에서 마지막 노드까지만** 간다.
   좌우 끝까지 그으면 앞뒤로 더 있는 것처럼 보인다 — 한 칸의 절반씩 비워 정확히 노드에서 끝낸다. */
.flow-list::before {
  content: ""; position: absolute; top: calc(var(--flow-node) / 2); height: 1px;
  left:  calc((100% - (var(--flow-n, 5) - 1) * var(--flow-gap)) / var(--flow-n, 5) / 2);
  right: calc((100% - (var(--flow-n, 5) - 1) * var(--flow-gap)) / var(--flow-n, 5) / 2);
  background: var(--flow-line);
}

.flow-step { position: relative; padding-top: calc(var(--flow-node) + 26px); }
/* 노드는 선 위에 올라앉는다. 가운데를 배경색으로 채워야 선이 점 뒤로 지나가지 않는다. */
.flow-node {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: var(--flow-node); height: var(--flow-node); border-radius: 50%;
  background: var(--dark-bg); box-shadow: inset 0 0 0 2px var(--flow-dot);
  transition: box-shadow var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}

/* 유리판 — 뒤가 평평한 검정이라 blur 는 거의 일을 하지 않는다.
   실제 깊이는 아주 옅은 흰 면 + 1px 테두리가 만든다. blur 는 배경에 빛이 있을 때를 위한 보험. */
.flow-card {
  height: 100%;
  display: flex; flex-direction: column;
  padding: clamp(20px, 1.9vw, 28px);
  border-radius: var(--r-md);
  background: var(--flow-card); border: 1px solid var(--flow-edge);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out),
              background var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.has-motion .flow-step:hover .flow-card {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, .5);
  background: rgba(255, 255, 255, .075);
  box-shadow: 0 22px 48px -24px rgba(59, 130, 246, .55);
}
.has-motion .flow-step:hover .flow-node {
  transform: translateX(-50%) scale(1.25);
  box-shadow: inset 0 0 0 2px var(--flow-dot), 0 0 0 5px rgba(59, 130, 246, .18);
}

.flow-no {
  display: block; margin-bottom: 12px;
  font-family: var(--font-num); font-size: 13px; font-weight: 800;
  letter-spacing: .04em; color: var(--flow-dot);
}
/* 영문 이름은 번호와 같은 줄에 붙되 한 톤 옅게 — 한글 이름이 주인공이다 */
.flow-en { font-weight: 700; color: rgba(147, 190, 255, .78); }
.flow-en::before { content: "·"; margin: 0 6px 0 4px; color: rgba(255, 255, 255, .3); }
.flow-name {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(18px, 1.45vw, 21px); letter-spacing: -.02em; color: #fff;
}
.flow-desc {
  margin: 10px 0 0; font-size: 15px; line-height: 1.75;
  color: var(--muted); word-break: keep-all;
}

@media (max-width: 980px) {
  /* 좁아지면 가로선은 거짓말이 된다 — 세로로 세우고 선도 왼쪽으로 돌린다 */
  .flow-list { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .flow-list::before {
    left: calc(var(--flow-node) / 2); right: auto; top: calc(var(--flow-node) / 2);
    width: 1px; height: calc(100% - var(--flow-node) - 18px);
  }
  .flow-step { padding: 0 0 0 calc(var(--flow-node) + 22px); }
  .flow-node { top: 50%; left: 0; transform: translate(0, -50%); }
  .has-motion .flow-step:hover .flow-node { transform: translate(0, -50%) scale(1.25); }
  .has-motion .flow-step:hover .flow-card { transform: translateY(-4px); }
}

/* ---- 바로가기 탭 ---- */
/* 탭줄은 서비스 블록을 보는 내내 화면에 붙어 있어야 한다 — 지금 어디를 보고 있는지,
   다른 서비스로 어떻게 넘어가는지가 스크롤 중에도 계속 보여야 목차 노릇을 한다.

   [구조] 고정되는 것은 **섹션 자체**다. 안쪽 요소를 sticky 로 걸면 그 부모(섹션) 높이 안에서만
   붙으므로 탭줄 높이만큼 붙었다가 바로 떨어진다. 섹션의 부모는 main 이라 블록 전체를 덮는다.

   [푸는 방법] 서비스 블록이 끝나면 뒤따르는 섹션이 위로 덮으며 자연스럽게 풀린다(z-index).
   스크립트로 붙였다 뗐다 하지 않는다. */
/* [주의] 어두운 스킨 짝이 반드시 있어야 한다. 이 줄만 두면 어두운 스킨에서 탭줄만
   흰 띠로 남아 아래 판(#1B1A1A) 위에 얹힌다 — 서비스 페이지에서도 그랬다.
   #1B1A1A 는 이 사이트에서 "어두운 스킨의 흰색" 자리다(.sec-faq / .sec-cta-card 와 같은 값). */
.sec-svcnav { --page: #FFFFFF; }
:root[data-skin="dark"] .sec-svcnav { --page: #1B1A1A; }
.sec.sec-svcnav.sec-pad-normal { padding: 14px 0; }
.sec.sec-svcnav {
  /* 스크롤 중 헤더는 --header-h-sm(82) + 아래 경계선 1px = 83px 를 차지한다.
     82 로 두면 헤더가 탭줄 위를 1px 덮어 탭줄 윗선이 잘려 보인다. */
  position: sticky; top: calc(var(--header-h-sm) + 1px); z-index: 5;
  background: var(--page);
  /* 붙어 있는 동안 흔들리면 안 되므로 섹션 등장 애니메이션은 끈다 */
  transform: none; opacity: 1;
  /* 붙었을 때 아래 내용이 그냥 스며들지 않게 경계선 한 줄 */
  border-bottom: 1px solid var(--line);
}
/* 서비스 블록은 탭줄 **아래로** 지나가고, 그 뒤 섹션(상담 CTA 등)은 **위로** 덮는다.
   [주의] 솔루션 판도 빼야 한다 — 솔루션 탭은 같은 탭줄 모양을 쓰는데, 이 규칙에 걸리면
   판이 z-index 6 으로 올라가 붙어 있는 탭줄을 덮어 버린다(탭이 스크롤 중에 사라진다). */
.sec-svcnav ~ .sec:not(.sec-svcb):not(.sec-sol) { position: relative; z-index: 6; }

/* 탭줄은 가운데에 선다. 왼쪽 정렬은 "목록의 머리"로 읽히는데, 이건 목록이 아니라 **조작 장치**다 —
   지금 어디를 보고 있는지 알려 주고 다른 곳으로 옮겨 주는 물건이라 화면 가운데가 제자리다. */
/* [주의] flex-wrap 이 없으면 위 안내 문구(.svcnav-note)가 탭줄 **옆에** 붙어 한 줄을 나눠 갖는다.
   문구는 width:100% 로 잡혀 있지만 nowrap 상태에서는 그 값이 줄어들 수 있어서,
   375px 화면에서 문구 141px + 탭줄 174px 로 갈라지고 탭줄이 반쪽만 남았다(솔루션 탭에서 실제로 났다).
   서비스 탭은 문구를 비워 두고 써서 지금까지 드러나지 않았을 뿐 같은 문제였다. */
.svcnav-wrap { padding: 0 var(--edge); display: flex; flex-wrap: wrap; justify-content: center; }
.svcnav-note {
  width: 100%; text-align: center; margin: 2px 0 12px;
  font-size: var(--fs-xs); font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text);
}

/* 밑줄 대신 **한 덩어리 안에서 칸이 옮겨 다니는** 형태로 만든다.
   밑줄은 글자와 선이 따로 놀아서 붙어 있을 때 어느 것이 켜졌는지 한눈에 안 들어온다.
   칸을 통째로 뒤집으면 멀리서도 보인다 — 고정된 채로 계속 보이는 물건이라 이쪽이 맞다. */
.svcnav {
  /* [주의] position: relative 가 있어야 theme.js 의 offsetLeft 계산이 탭줄 기준이 된다 */
  position: relative;
  display: inline-flex; gap: 4px; flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: 5px; border-radius: var(--r-md);
  background: var(--svcb-card, #F6F8FB); border: 1px solid var(--line);
}
.svcnav::-webkit-scrollbar { display: none; }
.svcnav-tab {
  flex: none; position: relative;
  padding: 12px 22px; border-radius: var(--r-sm);
  font-size: clamp(14.5px, 1.15vw, 16.5px); font-weight: 700; letter-spacing: -.02em;
  color: var(--muted); text-decoration: none; white-space: nowrap;
  transition: color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out);
}
.svcnav-tab:hover { color: var(--ink); background: rgba(0, 0, 0, .04); }
/* 켜진 칸은 색을 뒤집는다. 브랜드 파랑을 쓰지 않는 이유는, 이 아래 카드마다 파란 아이콘이 있어서
   여기까지 파랗게 하면 화면에 파란 점이 너무 많아지기 때문이다. */
.svcnav-tab.is-on { background: var(--ink); color: var(--page); }
.svcnav-tab.is-on:hover { background: var(--ink); }
.svcnav-tab:focus-visible { outline: 2px solid var(--brand-text); outline-offset: -3px; }

:root[data-skin="dark"] .svcnav { background: rgba(255, 255, 255, .05); }
:root[data-skin="dark"] .svcnav-tab:hover { background: rgba(255, 255, 255, .07); }

/* ---- 솔루션 탭만 다르게 ----
   서비스 탭은 **내려가는 링크**라 지나가면 그만이지만, 솔루션 탭은 판을 바꾸는 스위치라
   화면에 계속 붙어 있는다. 검은 칸을 채워 두면 스크롤 내내 페이지에서 가장 무거운 덩어리가
   조작 장치가 된다 — 보여 줄 것보다 리모컨이 진한 셈이다. 배경을 걷고 글자와 밑줄만 남긴다.
   [주의] 서비스 탭(.sec-svcnav)의 모양은 건드리지 않는다. 그쪽은 지금 모양이 맞다. */
/* [주의] 위 여백이 12px 이라 어두운 첫 화면이 끝나자마자 글씨가 시작됐다.
   탭줄은 화면에 붙어 있는 물건이라 스크롤 내내 그 답답함이 따라다닌다.
   위는 섹션이, 아래는 탭이 여백을 갖는다 — 아래 여백을 섹션에 주면 켜진 탭의 밑줄이
   섹션 경계선에서 떨어져 두 줄로 보인다. */
.sec.sec-solnav.sec-pad-normal { padding: 26px 0 0; }
.sec-solnav .svcnav-note { margin: 0 0 17px; }
.sec-solnav .svcnav {
  background: none; border: 0; padding: 0;
  gap: clamp(18px, 2.6vw, 38px);
}
.sec-solnav .svcnav-tab {
  /* 아래 여백을 탭이 갖고, 섹션은 바닥 여백을 0 으로 둔다 —
     그래야 켜진 탭의 2px 밑줄이 섹션 아래 경계선과 **같은 자리에서 만나** 한 줄로 이어진다.
     margin-bottom: -1px 은 그 1px 경계선 위로 밑줄을 겹쳐 올리는 값이다. */
  padding: 15px 2px 20px; margin-bottom: -1px;
  border-radius: 0; border-bottom: 2px solid transparent;
  font-weight: 600; color: var(--faint);
  transition: color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.sec-solnav .svcnav-tab:hover { background: none; color: var(--muted); }
.sec-solnav .svcnav-tab.is-on,
.sec-solnav .svcnav-tab.is-on:hover {
  background: none; color: var(--ink); font-weight: 800;
  border-bottom-color: var(--ink);
}
.sec-solnav .svcnav-tab:focus-visible { outline-offset: 2px; }
:root[data-skin="dark"] .sec-solnav .svcnav { background: none; }
:root[data-skin="dark"] .sec-solnav .svcnav-tab:hover { background: none; }

/* [주의] 좁은 화면에서는 여백을 되돌려 받는다. 탭줄은 화면에 붙어 있는 물건이라
   헤더(82px)와 합쳐 계속 자리를 차지한다 — 812px 짜리 화면에서 128px 는 화면의 1/6 이다.
   넓은 화면에서 준 여백을 그대로 들고 오면 정작 볼 것이 들어갈 자리가 없다. */
@media (max-width: 620px) {
  .sec.sec-solnav.sec-pad-normal { padding-top: 18px; }
  .sec-solnav .svcnav-note { margin-bottom: 12px; }
  .sec-solnav .svcnav-tab { padding: 12px 2px 15px; }
}

@media (max-width: 620px) {
  /* 좁으면 칸이 다 안 들어간다 — 옆으로 밀어 본다(활성 칸은 theme.js 가 끌어온다) */
  .svcnav { justify-content: flex-start; }
  .svcnav-tab { padding: 11px 16px; }
}

/* ---- 서비스 블록 ----
   위는 진한 파란 판(주장 + 문의), 아래는 흰 바탕 격자(세부 목록).
   바탕을 나누는 이유는, 같은 면에 두면 주장이 목록의 머리말처럼 읽혀 힘을 잃기 때문이다. */
.sec-svcb { --page: #FFFFFF; --svcb-line: #E3E8EF; --svcb-card: #F6F8FB; }
:root[data-skin="dark"] .sec-svcb {
  --page: #1B1A1A; --svcb-line: rgba(255, 255, 255, .1); --svcb-card: rgba(255, 255, 255, .045);
}
.sec.sec-svcb.sec-pad-normal { padding: clamp(40px, 4.6vw, 68px) 0 clamp(56px, 6.4vw, 96px); }
/* 탭을 눌러 내려올 때 블록 머리가 **고정된 탭줄 아래**에 놓여야 한다.
   헤더(82) + 탭줄 높이(≈75) + 여유. 헤더 높이만 빼면 제목이 탭줄에 가려진다. */
.sec-svcb { scroll-margin-top: calc(var(--header-h-sm) + 96px); }
/* 문의 영역으로 내려갈 때 제목이 헤더 밑에 깔리지 않게 */
.sec-cta { scroll-margin-top: calc(var(--header-h) + 20px); }

.svcb-wrap { padding: 0 var(--edge-lead); }

/* ---- 위: 파란 판 ---- */
.svcb-hero {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(30px, 4vw, 64px); align-items: center;
  padding: clamp(28px, 3.2vw, 48px);
  margin-bottom: clamp(40px, 4.4vw, 64px);
  border-radius: var(--r-panel);
  /* 색은 --t1 → --t2 → --t3 세 지점으로만 정한다. 판마다 색이 달라도 **빛이 드는 방향과
     그라디언트 구조가 같아서** 나란히 놓았을 때 한 세트로 보인다. */
  background:
    radial-gradient(120% 130% at 82% 8%, rgba(255, 255, 255, .16), transparent 58%),
    linear-gradient(118deg, var(--t1) 0%, var(--t2) 62%, var(--t3) 100%);
  color: #fff;
  box-shadow: 0 40px 90px -46px var(--t-sh);
}

/* 네 가지 판 색. 전부 "어둡고 채도 있는" 같은 성격이라 함께 놓아도 흩어지지 않는다.
   밝기·채도를 비슷하게 맞추고 색상(hue)만 돌린다 — 하나만 튀면 그 블록이 더 중요해 보인다. */
.svcb-tone-blue   { --t1: #16337A; --t2: #2A5BB0; --t3: #3468C4; --t-sh: rgba(22, 51, 122, .8); }
.svcb-tone-indigo { --t1: #2A1F6B; --t2: #4B3BAE; --t3: #5C4BC6; --t-sh: rgba(42, 31, 107, .8); }
.svcb-tone-teal   { --t1: #0C3746; --t2: #14707F; --t3: #1A8A96; --t-sh: rgba(12, 55, 70, .8); }
.svcb-tone-deep   { --t1: #101A2F; --t2: #26405F; --t3: #33587F; --t-sh: rgba(16, 26, 47, .85); }
.svcb-hero-copy { min-width: 0; }

.svcb-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: 16px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
}
.svcb-ico-svg { width: 22px; height: 22px; }
.svcb-title {
  margin: 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(25px, 2.5vw, 35px); line-height: 1.28; letter-spacing: -.03em;
  color: #fff; word-break: keep-all;
}
.svcb-desc {
  margin: 14px 0 0; font-size: clamp(15.5px, 1.1vw, 17px); line-height: 1.75;
  /* 흰색 그대로면 제목과 무게가 같아져 둘 다 안 읽힌다 — 파란 판 위에서 한 단계 눕힌 흰색 */
  color: rgba(255, 255, 255, .8); word-break: keep-all;
}

.svcb-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: clamp(20px, 2.2vw, 30px); }
/* 파란 판 위의 주 버튼은 더 진한 남색이다. 흰 버튼으로 두면 대비가 너무 커서 버튼만 남는다. */
.svcb-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--r-sm);
  background: #0F1420; color: #fff; text-decoration: none;
  font-size: 15.5px; font-weight: 700; letter-spacing: -.01em;
  transition: background var(--dur-1) var(--ease-out);
}
.svcb-btn:hover { background: #05080E; }
.svcb-btn .btn-arrow { transition: transform var(--dur-1) var(--ease-out); }
.has-motion .svcb-btn:hover .btn-arrow { transform: translateX(4px); }
/* 보조 링크는 버튼이 아니다 — 버튼이 둘이면 어느 쪽을 눌러야 할지 한 번 더 생각하게 된다 */
.svcb-more {
  display: inline-flex; align-items: center; gap: 7px;
  color: rgba(255, 255, 255, .82); text-decoration: none;
  font-size: 15.5px; font-weight: 700; letter-spacing: -.01em;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .3);
  transition: color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.svcb-more:hover { color: #fff; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .8); }
.svcb-more .btn-arrow { transition: transform var(--dur-1) var(--ease-out); }
.has-motion .svcb-more:hover .btn-arrow { transform: translateX(3px); }

/* 오른쪽 그림 자리 */
.svcb-visual {
  position: relative; overflow: hidden;
  min-height: clamp(170px, 17vw, 236px);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  display: flex; align-items: center; justify-content: center;
}
.svcb-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 도식이 들어간 자리는 네모를 지운다 — 그림 자체가 이미 화면 모양이라 테두리가 겹쳐 보인다 */
.svcb-visual.has-art { background: none; border-color: transparent; padding: 0; min-height: 0; }
/* [주의] 높이를 막지 않으면 그림 비율(420:300)이 판 높이를 밀어올린다 —
   글이 짧은 블록에서도 판이 그림 높이만큼 커져 버린다. 폭과 높이를 둘 다 묶어
   그림이 알아서 줄어들게 한다(viewBox 가 비율을 지킨다). */
.svcb-art {
  width: 100%; height: auto; display: block;
  max-height: clamp(180px, 18vw, 250px);
}
/* 빈 네모는 미완성으로 보이지만, 무엇이 들어갈 자리인지 적혀 있으면 준비 중으로 읽힌다 */
.svcb-visual.is-empty {
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .05) 0 12px, transparent 12px 24px);
}
.svcb-visual-note {
  padding: 10px 18px; border-radius: var(--r-sm);
  background: rgba(10, 18, 40, .42);
  font-size: 14px; font-weight: 700; letter-spacing: -.01em;
  color: rgba(255, 255, 255, .82); text-align: center; word-break: keep-all;
}

/* ---- 아래: 세부 항목 ----
   카드가 아니라 **칸**이다. 위쪽 1px 선만으로 나눈다 — 네모를 그리면 위 파란 판과 네모가 둘이 된다. */
.svcb-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 2.8vw, 44px);
}
.svcb-n2, .svcb-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svcb-item {
  padding: clamp(26px, 2.8vw, 38px) 0;
  border-top: 1px solid var(--svcb-line);
  transition: transform var(--dur-1) var(--ease-out);
}
.has-motion .svcb-item:hover { transform: translateY(-8px); }
.svcb-item-ico { display: block; width: 44px; height: 44px; margin-bottom: 22px; color: var(--brand-text); }
.svcb-item-svg { width: 44px; height: 44px; }
.svcb-item-t {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(18px, 1.45vw, 21px); letter-spacing: -.02em; color: var(--ink);
}
.svcb-item-d {
  margin: 10px 0 0; font-size: 15.5px; line-height: 1.8; color: var(--muted);
  word-break: keep-all; max-width: 34ch;
}

@media (max-width: 900px) {
  .svcb-hero { grid-template-columns: minmax(0, 1fr); }
  /* 좁은 화면에서 그림이 위로 오면 글보다 먼저 읽힌다 — 글 아래로 내린다 */
  .svcb-visual { order: 2; min-height: 200px; }
  .svcb-grid, .svcb-n2, .svcb-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .svcb-grid, .svcb-n2, .svcb-n4 { grid-template-columns: minmax(0, 1fr); }
  .svcb-item-d { max-width: none; }
  .svcb-acts { gap: 14px 18px; }
}


/* ---- 인트로 배경 움직임 / 글자에 흐르는 빛 ----
   글자에 빛을 흘릴 때는 배경을 멈춘다. 움직이는 것이 둘이면 어느 쪽도 눈에 들어오지 않는다. */
.sec-sintro.sintro-still .stage-art,
.sec-sintro.sintro-still .stage-word { animation: none; }
/* 배경을 아예 끈 판은 막(veil)도 옅게 — 가릴 것이 없는데 어둡게만 덮으면 색만 탁해진다 */
.sec-sintro.sintro-nobg .sintro-veil {
  background: radial-gradient(96% 74% at 50% 46%, rgba(255, 255, 255, .035), transparent 70%);
}

/* 줄마다 요소로 나뉘어 있다. 기본은 전부 흰 글자 — 지금까지 화면과 달라지지 않는다. */
.sintro-line { display: inline; }

/* 빛이 흐르는 글자.
   [원리] 글자 모양으로 배경을 오려 내고(background-clip: text) 그 배경을 좌우로 흘린다.
   글자 자체를 밝히는 것이 아니라 **밝은 면이 글자 뒤를 지나가는 것**이라, 흰 글자 위에서도 티가 난다.
   배경을 360% 로 크게 잡아야 한 번 지나갈 때 기울기가 완만해서 번쩍이지 않고 스며든다. */
.sintro-shine .sintro-text .sintro-line:last-child {
  /* NHN AD 실측값. 어두운 끝을 충분히 내려야 밝아졌다 어두워지는 것이 **눈에 보인다** —
     흰색에서 반투명 흰색으로만 훑었더니 변화폭이 작아 아무 일도 안 일어나는 것처럼 보였다. */
  background: linear-gradient(-52deg, #FFFFFF 0%, rgba(69, 69, 74, .5) 100%);
  background-size: 360% 360%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.has-motion .sintro-shine .sintro-text .sintro-line:last-child {
  animation: sintro-shine 4.4s ease-in-out infinite;
}
@keyframes sintro-shine {
  0%   { background-position: 0 100%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0 100%; }
}
/* 앞줄은 한 단계씩 눌러 둔다 — 시선이 마지막 줄로 모인다.
   [주의] 마지막 줄에는 걸리면 안 된다(:not). 걸리면 위 배경-오려내기가 색으로 덮인다. */
.sintro-shine .sintro-text .sintro-line:not(:last-child) { color: rgba(255, 255, 255, .92); }
.sintro-shine .sintro-text .sintro-line:first-child:not(:last-child) { color: #98979F; }

/* 좁은 화면에서는 br 이 사라져 줄이 한 줄로 이어진다.
   그때 마지막 "줄"만 빛나면 문장 가운데부터 색이 바뀌어 얼룩처럼 보인다 — 문장 전체를 흰색으로 되돌린다. */
@media (max-width: 760px) {
  .sintro-shine .sintro-text .sintro-line,
  .sintro-shine .sintro-text .sintro-line:last-child {
    background: none; color: #fff; -webkit-text-fill-color: #fff;
  }
  /* [주의] 애니메이션을 끄는 규칙은 켜는 규칙(.has-motion … , 0,5,0)보다 명시도가 높아야 한다.
     .has-motion 없이 적었더니 색만 흰색으로 돌아오고 배경 애니메이션은 계속 돌고 있었다. */
  .has-motion .sintro-shine .sintro-text .sintro-line,
  .has-motion .sintro-shine .sintro-text .sintro-line:last-child { animation: none; }
}

/* ---- 인트로 배경: 앰비언트 글로우 ----
   선도 점도 그리지 않는다. 아주 크게 흐린 색 덩어리 **둘**이 대각선 모서리에서만 스며든다.

   [원칙]
     ① 가운데는 비운다. 글씨 뒤가 밝아지면 문장이 빛 위에 얹힌 것처럼 보이고,
        그 순간 배경이 주인공이 된다. 가운데는 묵직하게 어두워야 한다.
     ② 아주 느리게 움직인다(23·31초). 눈이 따라가면 글을 못 읽는다.
     ③ transform 만 움직인다 — width/left 를 바꾸면 매 프레임 레이아웃을 다시 계산한다. */
.sec-sintro.sintro-mesh, .sec-sintro.sintro-aurora { --dark-bg: #070A11; }

/* ---- 오로라 ----
   빛 무리가 **화면을 가로질러 흐른다**. 앰비언트 글로우(mesh)는 모서리에 머물며 숨만 쉬는데,
   이쪽은 반대쪽 모서리까지 건너간다 — 같은 부품을 쓰면서 인상이 완전히 달라진다.

   [주의] 색을 둘로 나눈다. 파랑만 셋이면 mesh 와 구분이 안 된다.
   깊은 파랑 + 보라(인디고)를 섞어 겹치는 자리에서 제3의 색이 생기게 한다 — 그게 오로라다.
   [주의] 흐림을 120px 이상으로 잡는다. 이보다 약하면 원 세 개가 떠다니는 것으로 보인다. */
.sintro-aurora .sintro-glow .glow { filter: blur(130px); mix-blend-mode: screen; }
/* [주의] 폭은 반드시 클래스 셋을 겹쳐 적는다 — 기본 폭이 `.sintro-glow .glow`(0,2,0) 에 걸려 있고
   `.sintro-glow .glow-3` 규칙이 파일 뒤쪽에 또 있어서, 두 개짜리 선택자로는 전부 밀린다
   (560px / 440px 그대로 남는 것을 확인했다). */
.sintro-aurora .sintro-glow .glow-1 {
  left: -22%; top: -28%; width: min(760px, 92vw);
  background: rgba(37, 99, 235, .3);          /* 딥 블루 */
}
.sintro-aurora .sintro-glow .glow-2 {
  right: -24%; bottom: -30%; left: auto; top: auto; width: min(720px, 88vw);
  background: rgba(124, 58, 237, .24);        /* 보라 */
}
.sintro-aurora .sintro-glow .glow-3 {
  right: -18%; top: -22%; left: auto; bottom: auto; width: min(620px, 76vw);
  background: rgba(79, 70, 229, .2);          /* 인디고 — 둘 사이를 잇는 색 */
}
/* 주기를 서로 배수가 아닌 값으로 둔다(26 / 32 / 21) — 셋이 같은 자리로 다시 모이기까지 아주 오래 걸린다.
   시작 지점도 음수 지연으로 어긋내, 페이지가 열리자마자 이미 서로 다른 국면에 있다. */
.has-motion .sintro-aurora .glow-1 { animation: aurora-a 26s -3s ease-in-out infinite alternate; }
.has-motion .sintro-aurora .glow-2 { animation: aurora-b 32s -11s ease-in-out infinite alternate; }
.has-motion .sintro-aurora .glow-3 { animation: aurora-c 21s -7s ease-in-out infinite alternate; }
@keyframes aurora-a {
  0%   { transform: translate3d(0, 0, 0)        scale(1); }
  50%  { transform: translate3d(46vw, 22vh, 0)  scale(1.28); }
  100% { transform: translate3d(18vw, 52vh, 0)  scale(.94); }
}
@keyframes aurora-b {
  0%   { transform: translate3d(0, 0, 0)         scale(1.1); }
  50%  { transform: translate3d(-40vw, -26vh, 0) scale(.9); }
  100% { transform: translate3d(-14vw, -54vh, 0) scale(1.24); }
}
@keyframes aurora-c {
  0%   { transform: translate3d(0, 0, 0)         scale(.96); }
  50%  { transform: translate3d(-30vw, 34vh, 0)  scale(1.3); }
  100% { transform: translate3d(-52vw, 8vh, 0)   scale(1.06); }
}

/* 첫 화면의 부제 — 제목 **크기를 건드리지 않고** 아래에 붙는다.
   [주의] scrollintro 의 `sub` 를 쓰면 그 장이 "마무리 장"으로 분류되어 제목이 한 단계 작아진다.
   그러면 솔루션·포트폴리오와 첫 화면 글씨 크기가 달라져 통일감이 깨진다. */
.sintro-one-sub {
  max-width: 30em; margin: clamp(18px, 2vw, 26px) auto 0;
  font-size: clamp(15px, 1.35vw, 19px); line-height: 1.7; letter-spacing: -.01em;
  color: rgba(255, 255, 255, .74); word-break: keep-all;
}

/* 빛이 돌아다니는 만큼 글자 뒤가 밝아지는 순간이 생긴다 — 막을 한 겹 더 깔고 글자에 그림자를 준다.
   [주의] 그림자를 진하게 주면 글자에 테두리가 생긴 것처럼 보인다. 넓게 퍼뜨려 바탕만 눌러 준다. */
.sec-sintro.sintro-aurora .sintro-veil {
  background:
    radial-gradient(76% 58% at 50% 46%, rgba(7, 10, 17, .5), transparent 74%),
    linear-gradient(180deg, rgba(7, 10, 17, .5) 0%, transparent 34%, rgba(7, 10, 17, .5) 100%);
}
.sintro-aurora .sintro-text { text-shadow: 0 2px 40px rgba(0, 0, 0, .6), 0 1px 4px rgba(0, 0, 0, .35); }
.sintro-aurora .sintro-hint { text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.sintro-aurora .sintro-one-sub { text-shadow: 0 1px 20px rgba(0, 0, 0, .55); }

/* ==========================================================================
   매거진 게시판 (인사이트) — 읽으러 온 사람의 화면
   포트폴리오 갤러리와 반대다. 저쪽은 사진이 주인공이라 글자를 사진 **위에** 얹었고,
   여기서는 사진이 글로 들어가는 문이라 사진 **아래**에 분류 → 제목 → 요약 → 날짜가 선다.
   ========================================================================== */
.sec-mag-board { --bg-off: #FFFFFF; --page: #FFFFFF; --surface: #FFFFFF; }
:root[data-skin="dark"] .sec-mag-board { --bg-off: #1B1A1A; --page: #1B1A1A; --surface: #1B1A1A; }
/* 포트폴리오 목록과 같은 기준선 — 두 목록이 좌우로 어긋나면 메뉴를 옮길 때 내용이 흔들린다 */
.sec-mag-board > .wrap { max-width: none; padding: 0 var(--edge-lead); }

.mag-tools { display: flex; justify-content: center; margin-bottom: clamp(30px, 3.4vw, 48px); }
.mag-admin {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px;
  margin: -20px 0 clamp(26px, 3vw, 40px);
}

/* 글과 글 사이를 넉넉히 — 칼럼은 훑는 물건이 아니라 고르는 물건이라 숨 쉴 자리가 필요하다 */
.mag-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  /* 판(테두리) 있는 카드가 되면서 간격을 줄였다 — 맨몸 카드 시절의 넓은 간격을 그대로 두면
     상자 사이가 휑해 보인다. 세로·가로를 같은 값으로 두어야 격자가 상자답게 읽힌다. */
  gap: clamp(20px, 2.2vw, 32px);
  /* [주의] start 로 두면 같은 줄에 이미지 카드(≈500px)와 텍스트 카드(≈300px)가 설 때
     키가 어긋나 목록이 지저분해진다. stretch + 텍스트 카드 가운데 정렬로 줄을 맞춘다. */
  align-items: stretch;
}
@media (max-width: 1080px) { .mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .mag-grid { grid-template-columns: minmax(0, 1fr); } }

/* 카드를 판(surface) 위에 세운다 — 이미지가 있든 없든 같은 틀이라 격자가 고르게 보인다.
   [주의] 예전처럼 이미지가 맨몸으로 서고 글이 밑에 붙는 방식은, 이미지 없는 글이
   많아지는 순간 카드마다 생김새가 달라져 목록이 지저분해진다. */
.mag-card {
  min-width: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-panel); overflow: hidden;
  transition: transform .3s var(--ease-out), border-color .3s var(--ease-out),
              box-shadow .3s var(--ease-out);
}
.has-motion .mag-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--pri) 36%, var(--line));
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, .22);
}
.mag-hit { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }

/* 16:9 — 칼럼 썸네일은 화면 캡처가 아니라 이미지라 이 비율이 가장 무난하다 */
.mag-thumb {
  position: relative; display: block; overflow: hidden; flex: none;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
/* 그림 없는 글의 표지 — 짙은 판에 제목 첫 글자. 회색 빈 칸은 "고장난 자리"로 보인다 */
.mag-noimg {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(158deg, var(--dark-1), var(--dark-2));
}
.mag-noimg > span {
  font-family: var(--font-display); font-size: 54px; font-weight: 800;
  color: rgba(255, 255, 255, .32); line-height: 1;
}
.mag-thumb img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .5s var(--ease-out);
}
/* 판은 그대로, 그림만 커진다 — 카드까지 커지면 격자가 흔들려 보인다 */
.has-motion .mag-hit:hover .mag-thumb img { transform: scale(1.05); }
.mag-body {
  display: flex; flex-direction: column; align-items: flex-start;
  flex: 1 1 auto;
  padding: 0 clamp(18px, 1.8vw, 26px) clamp(20px, 2vw, 28px);
}


/* 분류는 알약 뱃지. 옅은 파랑 판에 파란 글씨 — 카드에서 유일하게 색이 있는 자리라
   여러 장이 깔렸을 때 분류부터 눈에 들어온다. */
.mag-cat {
  margin-top: clamp(16px, 1.6vw, 20px);
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 800; letter-spacing: -.01em;
  background: color-mix(in srgb, var(--pri) 9%, transparent);
  color: var(--brand-text);
}
:root[data-skin="dark"] .mag-cat { background: color-mix(in srgb, var(--pri) 22%, transparent); }

/* 제목은 두 줄까지. 세 줄이 되면 카드마다 높이가 달라져 격자가 들쭉날쭉해진다.
   [주의] -webkit-line-clamp 는 display:-webkit-box 와 짝이다 — 하나만 쓰면 아무 일도 안 일어난다. */
/* 카드의 주인공은 제목이다 — 요약은 두 줄 맛보기로 누르고 제목을 한 단계 키운다 */
.mag-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 14px;
  font-size: clamp(18px, 1.55vw, 22px); font-weight: 800; line-height: 1.4;
  letter-spacing: -.03em; color: var(--ink); word-break: keep-all;
  transition: color var(--dur-1) var(--ease-out);
}
.mag-hit:hover .mag-title { color: var(--brand-text); }

.mag-sum {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 10px;
  font-size: 13.5px; line-height: 1.65; letter-spacing: -.01em;
  color: var(--faint); word-break: keep-all;
}

/* ==========================================================================
   일하는 방식 — 어두운 판 위의 아이콘 카드 (채용·회사소개)
   ========================================================================== */
.sec-values.sec-bg-dark { --dark-bg: #0B0F17; }
/* [주의] 위 여백이 **0** 이었다. 앞 섹션(첫 화면)도 어두운 판이라
   `.sec-bg-dark + .sec-bg-dark { padding-top: 0 }` 에 걸린 것이다 —
   같은 색이 연달아 올 때 여백이 두 배가 되는 걸 막는 규칙인데, 여기서는 제목이
   첫 화면 바로 밑에 붙어 버렸다. 순위를 이겨 다시 세운다(0,3,0 > 0,2,0).

   [화면 한 판] 이 섹션은 **모니터 한 화면을 통째로** 쓴다(첫 화면과 같은 100vh).
   내용을 세로 가운데에 두고 남는 자리를 위아래 여백으로 쓰므로, 화면이 크든 작든
   "한 판에 한 이야기"가 유지된다 — 여백을 px 로 못 박으면 큰 모니터에서는 모자라고
   작은 모니터에서는 넘친다.
   [주의] min-height 다. height 로 잡으면 글이 길어지거나 화면이 아주 낮을 때(노트북 세로)
   카드가 잘려 나간다 — 넘치면 섹션이 늘어나야 한다.
   [주의] 위 여백이 0 이었던 것도 여기서 함께 풀린다. 앞 섹션(첫 화면)도 어두운 판이라
   `.sec-bg-dark + .sec-bg-dark { padding-top: 0 }` 에 걸려 있었다. */
.sec.sec-values.sec-pad-normal {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: clamp(80px, 8vw, 160px); padding-bottom: clamp(80px, 8vw, 160px);
}
.sec-values > .wrap { width: 100%; }
.val-title { text-align: center; margin-bottom: 16px; }
.val-sub {
  max-width: 42em; margin: 0 auto clamp(44px, 5vw, 68px);
  text-align: center; font-size: clamp(15px, 1.35vw, 18px); line-height: 1.7;
  letter-spacing: -.01em; color: rgba(255, 255, 255, .62); word-break: keep-all;
}

/* [주의] 칸을 컨테이너 폭(1729px)까지 다 쓰게 두면 카드가 555px 이 되고, 그러면 설명이
   **한 줄로 늘어져** 카드가 얇은 띠가 된다. NHN AD 실측(1990px 화면)은 카드 460 × 463 이고
   설명이 5줄로 접힌다 — 글이 덩어리가 되어야 카드로 읽힌다.
   격자를 1500px 에서 멈춰 카드를 480px 안쪽으로 잡는다. */
.val-grid {
  display: grid; gap: 30px; align-items: stretch;
  max-width: 1500px; margin: 0 auto;
}
.val-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.val-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.val-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .val-cols-3, .val-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .val-grid { grid-template-columns: minmax(0, 1fr); } }

/* 판이 이미 어두우므로 카드는 **색을 칠하지 않는다** — 흰빛을 아주 조금 얹어 층만 만든다.
   여기에 회색을 칠하면 카드가 판 위에 붙은 종이처럼 보여 깊이가 사라진다. */
/* [주의] 흰빛을 4% 만 얹으면 카드가 거의 안 보인다 — 판과 구분이 안 돼 "글만 떠 있는" 화면이 된다.
   NHN AD 는 판(#161616) 위에 카드를 #45454A 로 **확실히 밝은 단색**으로 놓는다.
   우리 판이 #0B0F17 이므로 그보다 뚜렷하게 밝은 단색을 쓴다.
   [주의] 키를 정해 준다. 설명 길이가 카드마다 달라도 세 장이 같은 덩어리로 서야 한다. */
.val-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  /* [주의] 키를 내용보다 훨씬 크게 잡으면 글이 카드 한가운데 떠 있고 위아래가 텅 빈다
     (460px 카드에 내용 250px → 위아래 105px 씩 비었다).
     키는 줄이고 안쪽 여백을 키워서, 빈 자리가 아니라 **여백**으로 읽히게 한다. */
  text-align: center; min-height: clamp(300px, 20vw, 380px);
  padding: clamp(34px, 2.8vw, 52px) clamp(24px, 2.2vw, 36px);
  border-radius: var(--r-lg);
  background: #1B2230;
  border: 1px solid rgba(255, 255, 255, .07);
  transition: transform .3s var(--ease-out), border-color .3s var(--ease-out),
              box-shadow .3s var(--ease-out), background .3s var(--ease-out);
}
/* 올리면 살짝 떠오르고 테두리에 브랜드색 빛이 감돈다.
   [주의] 그림자를 짙게 주면 카드가 화면에서 튀어나온 것처럼 보인다 —
   퍼짐을 넓게, 진하기를 낮게 잡아 **빛이 번지는** 느낌으로 둔다. */
.has-motion .val-card:hover {
  transform: translateY(-8px);
  background: #202839;
  border-color: color-mix(in srgb, var(--pri) 55%, transparent);
  box-shadow: 0 0 34px rgba(37, 99, 235, .18), 0 22px 48px -28px rgba(0, 0, 0, .8);
}

/* NHN AD 아이콘은 96px 이다. 카드가 460px 인데 56px 아이콘을 두면 위쪽이 비어 보인다. */
.val-ico {
  display: grid; place-items: center;
  width: clamp(64px, 5vw, 84px); height: clamp(64px, 5vw, 84px);
  margin-bottom: clamp(20px, 2.2vw, 28px);
  border-radius: 50%;
  background: color-mix(in srgb, var(--pri) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--pri) 34%, transparent);
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out);
}
.has-motion .val-card:hover .val-ico {
  background: color-mix(in srgb, var(--pri) 26%, transparent);
  border-color: color-mix(in srgb, var(--pri) 58%, transparent);
}
.val-ico-svg {
  width: clamp(28px, 2.2vw, 36px); height: clamp(28px, 2.2vw, 36px);
  stroke: #9CC0FF; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round;
}

.val-name {
  margin: 0 0 clamp(12px, 1.2vw, 16px);
  font-family: var(--font-display); font-size: clamp(19px, 1.6vw, 23px); font-weight: 800;
  letter-spacing: -.02em; color: #fff; line-height: 1.35;
}
/* [주의] 폭을 묶어야 글이 접힌다. 안 묶으면 카드 폭만큼 한 줄로 늘어나 띠가 된다.
   22em 은 18px 기준 396px — NHN AD 의 389px 과 같은 자리다(5줄). */
.val-desc {
  max-width: 22em; margin: 0 auto;
  font-size: clamp(14.5px, 1.05vw, 18px); line-height: 1.7; letter-spacing: -.01em;
  color: rgba(255, 255, 255, .64); word-break: keep-all;
}

/* ==========================================================================
   복지 · 근무 환경 — 묶음 탭 + 아이콘 목록

   [상자를 두지 않는다] 한때 흰 카드에 담았다. 그런데 항목마다 글 길이가 달라
   카드 **아래 빈칸이 40~123px 까지 벌어졌고**, 바로 위 "일하는 방식" 카드(41/41 고정)와
   나란히 놓이니 그 차이가 그대로 보였다. 상자를 걷어내면 눈에 잡히는 모서리가 사라져
   문제 자체가 없어진다 — 글 길이가 달라도 티가 나지 않는다.

   NHN AD 채용 페이지(nhnad.com/page/careers)가 열 개 넘는 복지 항목을 이렇게 세운다. 실측:
     항목 .box   배경·테두리·그림자·라운드·안쪽여백 **전부 없음**, 가운데 정렬, 폭 186px
     아이콘 원   127×127 · #F4F4F4 · 50% · 안에 64px 아이콘
     제목        20px / 600 / 줄높이 30 / #161616 / 위 20 아래 10
     설명        13px / 400 / 줄높이 1.5 / #98979F
     간격        행 37px · 열 24px (세로가 1.5배)
     탭          90×40 · 모서리 5px 각진 사각 (알약이 아니다)
   우리 글자 크기가 한 단계 크므로 값은 비례로 올려 잡았다.
   ========================================================================== */
.sec-bnf {
  /* 원·탭 바탕은 NHN AD 실측색(#F4F4F4) 을 그대로 쓴다. 사이트 기본 베이지(--surface-2)는
     따뜻한 색이라 흰 판 위에서 누렇게 뜬다.
     [주의] color-mix 로 만들지 않는다 — 그 함수를 못 읽는 브라우저에서는 토큰이 통째로
     무효가 되어 **원이 사라지고 아이콘 획만 공중에 뜬다**. 배경색에는 고정값을 쓴다. */
  --bnf-soft: #F4F4F4;
}
/* 이 섹션만 판을 순백으로 깐다 — 위(일하는 방식)·아래(담당이 바뀌지 않습니다)가 모두
   어두운 판이라, 가운데를 희게 비우면 복지 항목이 밝은 창처럼 떠오른다.
   [주의] 어두운 스킨까지 희게 칠하면 어두운 화면 한가운데에 흰 띠가 생긴다(서비스 탭줄에서 겪었다).
   :not() 으로 밝은·소프트 스킨에만 건다. */
:root:not([data-skin="dark"]) .sec-bnf { --page: #FFFFFF; }
:root[data-skin="dark"] .sec-bnf { --bnf-soft: var(--surface-2); }

/* 위아래 여백은 "일하는 방식" 섹션과 같은 식을 쓴다.
   [주의] 기본값(96px)으로 두면 바로 위 섹션이 화면 한 판을 쓰는 만큼 넉넉한데
   여기만 갑자기 좁아져서 두 섹션이 다른 규칙으로 만든 것처럼 보인다. */
.sec.sec-bnf.sec-pad-normal { padding-top: clamp(80px, 8vw, 160px); padding-bottom: clamp(80px, 8vw, 160px); }

.bnf-title { text-align: center; margin-bottom: 16px; }
.bnf-sub {
  max-width: 44em; margin: 0 auto clamp(34px, 3.6vw, 48px);
  text-align: center; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.7;
  letter-spacing: -.01em; color: var(--muted); word-break: keep-all;
}

/* 탭 — 각진 사각. 알약을 쓰면 아래 항목이 전부 원인데 탭까지 둥글어 화면에 곡선만 남는다.
   [주의] 넘칠 때 가운데 정렬은 왼쪽 끝을 화면 밖으로 밀어낸다(솔루션 칩에서 겪었다).
   첫·마지막 칩의 auto 여백으로 모으고, 넘치면 왼쪽부터 시작해 옆으로 밀리게 한다. */
.bnf-tabs {
  display: flex; flex-wrap: nowrap; gap: 8px;
  margin: 0 0 clamp(40px, 4.4vw, 64px);
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  padding-bottom: 4px;
}
.bnf-tabs::-webkit-scrollbar { display: none; }
.bnf-tabs > .bnf-tab:first-child { margin-left: auto; }
.bnf-tabs > .bnf-tab:last-child { margin-right: auto; }
.bnf-tab {
  flex: none; white-space: nowrap; cursor: pointer;
  padding: 11px 22px; border-radius: var(--r-lg);
  font-family: inherit; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em;
  background: var(--bnf-soft); color: var(--muted); border: 1px solid transparent;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out);
}
.bnf-tab:hover { background: #E9E9E9; color: var(--ink); }
:root[data-skin="dark"] .bnf-tab:hover { background: var(--line); }
.bnf-tab.is-on, .bnf-tab.is-on:hover { background: var(--pri); border-color: var(--pri); color: #fff; }
.bnf-tab:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; }
html:not(.has-js) .bnf-tabs { display: none; }

.bnf-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  /* 위 "일하는 방식" 격자와 **같은 상한**을 쓴다.
     [주의] 이걸 빼면 1440px 까지는 둘 다 .wrap 폭이라 좌우가 맞는데,
     1920px 에서는 저쪽만 1500 에 걸려 가운데로 모이고 이쪽은 1659 를 다 써서
     두 섹션의 왼쪽 끝이 80px 어긋난다 — 넓은 화면에서만 나타나는 어긋남이다. */
  max-width: 1500px; margin: 0 auto;
  /* 세로 간격을 가로보다 훨씬 넓게 잡는다 — 상자가 없으니 **줄을 나누는 것이 여백뿐**이다.
     둘을 같은 값으로 두면 위아래 항목이 한 덩어리로 붙어 읽힌다. */
  column-gap: clamp(20px, 2vw, 32px);
  row-gap: clamp(48px, 4.4vw, 66px);
  align-items: start;
}
@media (max-width: 1200px) { .bnf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .bnf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .bnf-grid { grid-template-columns: minmax(0, 1fr); } }

/* [주의] 여기에 background · box-shadow · border · border-radius · padding 을 되살리면
   상자가 돌아온다. 특히 좌우 padding 은 글을 안쪽으로 밀어 옆 칸과의 간격이 두 배로 보인다 —
   대표님이 "좌우 여백이 다르다"고 지적한 것이 정확히 그 현상이었다. */
.bnf-item { min-width: 0; text-align: center; }
.bnf-item[hidden] { display: none; }

/* 아이콘 원이 사라진 상자를 대신한다. 48px 짜리로는 못 버틴다 —
   원이 충분히 커야 목록이 표가 아니라 그림으로 읽힌다. */
.bnf-ico {
  display: grid; place-items: center;
  width: clamp(96px, 8.4vw, 124px); height: clamp(96px, 8.4vw, 124px);
  margin: 0 auto clamp(20px, 1.8vw, 26px);
  border-radius: 50%;
  background: var(--bnf-soft);
}
/* 아이콘을 안 고른 항목은 원만 지우고 **자리는 남긴다** — 상자가 없어 원이 유일한 기준선이라,
   한 칸만 원이 빠지면 그 줄 전체의 제목 윗선이 어긋난다. */
.bnf-ico.is-empty { background: none; }
/* [주의] 선 두께는 그리는 크기에 반비례한다. 24 좌표계 아이콘을 52px 로 키우면
   stroke-width 1.7 이 화면에서 3.7px 이 되어 뭉친다. 1 로 낮춰 2.2px 을 만든다 —
   원이 크고 배경이 옅어서 선이 가늘어야 그림이 가벼워진다. */
.bnf-ico-svg {
  width: clamp(40px, 3.5vw, 52px); height: clamp(40px, 3.5vw, 52px);
  stroke: var(--brand-text); stroke-width: 1; fill: none; stroke-linecap: round; stroke-linejoin: round;
}
/* 위계: 이름(진하게) → 설명(부드러운 회색). 두 단이면 충분하다 —
   [주의] 사이에 브랜드색 한마디를 끼워 봤는데, 그 줄이 있는 항목과 없는 항목의
   설명 시작 높이가 33px 어긋나 한 줄 안에서 글이 들쭉날쭉해 보였다. */
.bnf-name {
  margin: 0 0 8px; font-size: clamp(16.5px, 1.35vw, 20px); font-weight: 700;
  letter-spacing: -.02em; color: var(--ink); line-height: 1.5; word-break: keep-all;
}
/* [주의] 폭을 묶지 않으면 짧은 설명은 한 줄, 긴 설명은 칸 폭 가득 차서
   가운데 정렬한 글 덩어리의 폭이 항목마다 제각각으로 보인다. */
.bnf-desc {
  max-width: 21em; margin: 0 auto;
  font-size: clamp(13.5px, 1vw, 15px); line-height: 1.7; letter-spacing: -.01em;
  color: var(--muted); word-break: keep-all;
}
/* 더보기 — NHN AD 실측: 가로 전체 · 높이 60px · 모서리 5px · 바탕 #F4F4F4 · 20px/600 · 위 여백 50px.
   테두리 없는 넓은 띠라 "누르는 것"보다 "이 아래가 더 있다"는 표시로 읽힌다.
   [주의] display 를 쓰는 요소에 hidden 을 걸 때는 [hidden] 규칙을 반드시 같이 둔다 —
   브라우저 기본 [hidden]{display:none}(0,0,1)은 .bnf-more{display:flex}(0,1,0)에 진다. */
.bnf-more {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 1500px; height: 60px;
  margin: clamp(40px, 4vw, 56px) auto 0; padding: 0 32px;
  border: 0; border-radius: var(--r-lg);
  background: var(--bnf-soft); color: var(--body-c);
  font-family: inherit; font-size: clamp(15px, 1.25vw, 18px); font-weight: 600; letter-spacing: -.01em;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.bnf-more[hidden] { display: none; }
.bnf-more:hover { background: #E9E9E9; color: var(--ink); }
:root[data-skin="dark"] .bnf-more:hover { background: var(--line); }
.bnf-more:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; }
html:not(.has-js) .bnf-more { display: none; }
.bnf-empty { margin: 30px 0 0; text-align: center; color: var(--faint); font-size: var(--fs-sm); }

/* ==========================================================================
   컬처 갤러리 — 옆으로 미는 사진 줄 (.sec-cul)
   --------------------------------------------------------------------------
   격자로 늘어놓지 않는다. 격자는 "전부 다 보여준다"는 말이고, 여기서 하려는 것은
   들여다보게 만드는 일이라 한 번에 서너 장만 눈에 들어오는 편이 맞다.
   오른쪽이 잘려 있는 것 자체가 "더 있다"는 표시가 된다.

   왼쪽 시작선은 --edge-lead 라 위 섹션 제목과 같은 자리에서 출발하고,
   오른쪽은 화면 밖으로 그대로 흘러 나간다 — 오른쪽에도 여백을 주면 줄이 끝나 보인다.
   ========================================================================== */
.sec-cul { --cul-w: clamp(272px, 26vw, 420px); }
/* 어두운 판으로 깔 때 — NHN AD 는 이 자리(PLAY MUSEUM)를 #161616 순검정으로 둔다.
   우리는 사이트가 이미 쓰는 가장 깊은 면(--dark-1)을 그대로 쓴다.
   [주의] 같은 페이지 위쪽 "일하는 방식" 도 이 값이다 — 한 화면에 검정이 두 종류면
   어느 쪽이 더 어두운지 눈이 계속 비교하게 된다. 검정은 페이지당 하나로 통일한다.
   글자·선·판 색은 .sec-bg-dark 가 토큰을 통째로 뒤집으므로 따로 손댈 것이 없다. */
.sec-cul.sec-bg-dark { --dark-bg: var(--dark-1); }
/* 다만 사진 자리표시의 그라디언트만은 고정색이라 안 따라온다 — 여기만 다시 적는다 */
.sec-cul.sec-bg-dark .cul-ph { background-image: linear-gradient(150deg, #1B2230, #12161F); }

.cul-head { padding: 0 var(--edge-lead); margin-bottom: clamp(30px, 3.2vw, 46px); }
.cul-title { margin: 10px 0 0; }
.cul-sub {
  max-width: 42em; margin: clamp(14px, 1.4vw, 20px) 0 0;
  font-size: clamp(15px, 1.3vw, 18px); line-height: 1.75; letter-spacing: -.01em;
  color: var(--muted); word-break: keep-all;
}

.cul-rail {
  display: flex; flex-wrap: nowrap; gap: clamp(14px, 1.5vw, 24px);
  /* 오른쪽 padding 은 --edge 로 짧게 준다. 왼쪽과 같은 --edge-lead 를 주면
     마지막 사진 뒤에 120px 넘는 빈 자리가 생겨 줄이 거기서 끝난 것처럼 보인다. */
  padding: 4px var(--edge) 6px var(--edge-lead);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  /* [주의] 스냅은 padding 이 아니라 **스크롤 영역**의 끝에 맞춘다.
     이게 없으면 scroll-snap-align: start 가 첫 장을 padding-left(123px) 를 무시하고
     화면 왼쪽 끝(x=0)에 붙여 버린다 — scrollLeft 를 0 으로 되돌려도 다시 튕겨 나온다.
     맨 왼쪽 시작선을 padding 과 같은 값으로 알려 줘야 제목과 같은 자리에서 시작한다. */
  scroll-padding-left: var(--edge-lead);
  scrollbar-width: none;
  cursor: grab;
  /* 양끝 페이드 — 배경을 덮는 띠가 아니라 내용 자체를 지우는 mask 라
     판 색이 무엇이든(밝은 · 소프트 · 어두운 스킨) 그대로 맞는다.
     [주의] 늘 켜 두면 밀 곳이 없는데도 첫 장이 잘려 보인다. theme.js 가 필요한 쪽만 켠다. */
  --fade-l: 0px; --fade-r: 0px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l),
                      #000 calc(100% - var(--fade-r)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l),
              #000 calc(100% - var(--fade-r)), transparent 100%);
}
.cul-rail::-webkit-scrollbar { display: none; }
.cul-rail.can-l { --fade-l: 56px; }
.cul-rail.can-r { --fade-r: 56px; }
/* 끄는 동안에는 스냅을 끈다 — 켜 두면 손을 따라오지 않고 칸마다 걸린다 */
/* 끄는 동안 캡션 글자가 파랗게 잡히면 미는 것이 아니라 글을 긁는 것처럼 보인다 */
.cul-rail.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.cul-rail:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 4px; }

.cul-item {
  flex: none; width: var(--cul-w); margin: 0;
  scroll-snap-align: start;
}
/* 틀이 비율을 잡고 넘치는 것을 자른다 — 안쪽 사진이 커져도 모서리 밖으로 나가지 않는다 */
.cul-frame {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: 12px;
  background: var(--surface-2);
}
@supports not (aspect-ratio: 16 / 9) { .cul-frame { height: 0; padding-bottom: 56.25%; } }

/* 평소에는 색을 빼 두고 손이 갈 때만 제 색으로 돌아온다 —
   색이 제각각인 사진 여섯 장이 한 줄에 서면 시선이 튀어 아무것도 안 읽힌다.
   [주의] 드래그로 미는 동안 커서가 지나가는 사진마다 색이 켜졌다 꺼지면 정신없다.
   .is-drag 일 때는 hover 반응을 끈다. */
.cul-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1);
  transition: filter .5s var(--ease-out), transform .5s var(--ease-out);
}
.has-motion .cul-item:hover .cul-frame img { filter: grayscale(0); transform: scale(1.05); }
.has-motion .cul-rail.is-drag .cul-item:hover .cul-frame img { filter: grayscale(1); transform: none; }

/* 사진이 아직 없는 칸. 그럴듯한 대체 그림을 채우지 않는다 —
   채워 두면 지우지 않고 오픈하는 사고가 난다. 규격만 적어 비어 있음을 드러낸다. */
.cul-ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background-image: linear-gradient(150deg, #EEF1F6, #DFE6EE);
  transition: transform .5s var(--ease-out);
}
:root[data-skin="dark"] .cul-ph { background-image: linear-gradient(150deg, #2A2626, #201D1D); }
/* 사진이 없을 때도 손이 가면 반응은 같아야 한다 — 한 칸만 굳어 있으면 고장으로 보인다 */
.has-motion .cul-item:hover .cul-ph { transform: scale(1.05); }
.cul-ph-size {
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--faint);
}

.cul-cap {
  margin: 14px 0 0;
  font-size: clamp(13.5px, 1vw, 15px); line-height: 1.6; letter-spacing: -.01em;
  color: var(--muted); word-break: keep-all;
}

@media (max-width: 560px) {
  .sec-cul { --cul-w: 78vw; }
  .cul-rail { gap: 12px; }
}

/* ==========================================================================
   채용 공고 목록 (.sec-rec)
   --------------------------------------------------------------------------
   NHN AD 채용 페이지 마지막 섹션 실측(nhnad.com/page/careers):
     머리      제목 26.6px / 700 / 왼쪽 정렬, 설명 16 / 400 / 위 10px, 목록까지 40px
     목록      첫 줄 위에 2px 검정 굵은 선, 줄마다 아래 1px #C9C8CD
     한 줄     flex · space-between, padding 30px 20px (높이 약 92)
               왼쪽 제목 20 / 600 / #161616, 오른쪽 메타 16 / 400 / #A3A4A6
     버튼      목록에서 40px 아래, 가운데, 241 × 50, 모서리 5px, 18 / 600

   굵은 윗선 하나로 "표가 시작된다"를 알리고 나머지는 실선 한 겹으로 끝낸다 —
   줄마다 판을 깔면 카드 목록이 되어 위 컬처 갤러리와 성격이 겹친다.
   ========================================================================== */
.sec-rec {
  /* 줄에 손이 갔을 때 깔리는 색. --surface-2 는 밝은 스킨에서 #fff 라 흰 판 위에서 아무 반응이 없다.
     복지 섹션의 원·탭과 같은 값을 써서 사이트 안에서 회색이 두 종류로 갈리지 않게 한다. */
  --rec-soft: #F4F4F4;
}
/* 이 섹션만 판을 순백으로 깐다.
   [주의] 어두운 스킨까지 희게 칠하면 어두운 화면 한가운데에 흰 띠가 생긴다(서비스 탭줄에서 겪었다). */
:root:not([data-skin="dark"]) .sec-rec { --page: #FFFFFF; }
:root[data-skin="dark"] .sec-rec { --rec-soft: var(--surface-2); }

.sec-rec .kicker { display: block; }
/* 폭은 바로 위 "위드컴의 온도"(컬처 갤러리)와 같은 선을 쓴다 —
   .wrap 이 이미 --edge-lead 안쪽 전체를 잡으므로 여기서 다시 좁히지 않는다.
   [주의] max-width 로 한 번 더 죄면 1920px 에서만 저쪽은 123px, 이쪽은 203px 에서 시작해
   두 섹션의 왼쪽 끝이 80px 어긋난다. */
.rec-head { margin-bottom: clamp(28px, 3vw, 40px); }
.rec-title { margin: 10px 0 0; }
.rec-desc {
  max-width: 46em; margin: clamp(10px, 1vw, 14px) 0 0;
  font-size: clamp(15px, 1.15vw, 17px); line-height: 1.7; letter-spacing: -.01em;
  color: var(--muted); word-break: keep-all;
}

.rec-list {
  list-style: none; padding: 0; margin-top: 0; margin-bottom: 0;
  /* 굵은 윗선. --ink 를 쓰면 어두운 스킨에서 밝은 선이 되어 그대로 뒤집힌다. */
  border-top: 2px solid var(--ink);
}
.rec-row {
  display: flex; align-items: center; justify-content: space-between; gap: clamp(16px, 2vw, 40px);
  padding: clamp(22px, 2.4vw, 30px) 20px;
  border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none;
  transition: background var(--dur-1) var(--ease-out);
}
.rec-row:hover { background: var(--rec-soft); }
.rec-row:focus-visible { outline: 2px solid var(--brand-text); outline-offset: -2px; }
.rec-t {
  min-width: 0;
  font-size: clamp(16.5px, 1.35vw, 20px); font-weight: 600; line-height: 1.5;
  letter-spacing: -.02em; color: var(--ink); word-break: keep-all;
  transition: color var(--dur-1) var(--ease-out);
}
.rec-row:hover .rec-t { color: var(--brand-text); }
.rec-flag {
  display: inline-block; margin-right: 8px; padding: 3px 9px;
  border-radius: var(--r-sm); background: var(--pri); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: -.01em; vertical-align: 2px;
}
/* [주의] flex: none 이 있어야 제목이 길 때 메타가 찌그러지지 않는다.
   찌그러지면 "정규직 · 대전 서구" 가 세로로 접혀 줄 높이가 혼자 커진다. */
.rec-m {
  flex: none; text-align: right;
  font-size: clamp(13px, 1.05vw, 16px); line-height: 1.5; letter-spacing: -.01em;
  color: var(--faint); word-break: keep-all;
}

.rec-empty {
  margin-top: 0; padding: clamp(40px, 5vw, 64px) 20px;
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
  text-align: center; color: var(--faint); font-size: var(--fs-sm);
}

.rec-more { margin-top: clamp(28px, 3vw, 40px); text-align: center; }
/* 크기만 NHN AD 실측에 맞추고 색·테두리는 사이트 기본 보조 버튼(.btn-front-ghost)을 그대로 쓴다 —
   여기서 새 색을 만들면 바로 아래 문의 CTA 와 버튼이 두 종류로 보인다. */
.rec-btn { min-width: 241px; height: 50px; padding: 0 32px; font-size: clamp(15px, 1.2vw, 18px); }

/* ==========================================================================
   약관 문서 팝업 (.doc-modal)
   --------------------------------------------------------------------------
   개인정보처리방침·이용약관을 보던 자리에서 읽는다. 상담 모달과 같은 뼈대지만
   **읽는 창**이라 폭이 넓고 본문만 구른다. 제목과 닫기는 늘 붙어 있어야
   긴 글 한가운데서도 나가는 길이 보인다.
   ========================================================================== */
.doc-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(12px, 3vw, 40px);
}
.doc-modal[hidden] { display: none; }
.doc-back {
  position: absolute; inset: 0;
  background: rgba(6, 10, 18, .58);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.doc-panel {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  width: 100%; max-width: 720px; height: min(760px, 100%);
  overflow: hidden;
  border-radius: var(--r-panel);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(6, 10, 18, .5);
}
.has-motion .doc-modal:not([hidden]) .doc-panel { animation: iq-in .26s var(--ease-out) both; }

.doc-head {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(20px, 2.4vw, 28px) clamp(20px, 2.8vw, 34px);
  border-bottom: 1px solid var(--line);
}
.doc-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.7vw, 23px); font-weight: 800;
  letter-spacing: -.03em; color: var(--ink);
}
.doc-x {
  flex: none; width: 38px; height: 38px; padding: 0;
  border: 0; border-radius: 50%; background: none;
  color: var(--faint); font-size: 26px; line-height: 1; cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.doc-x:hover { background: var(--surface-2); color: var(--ink); }

/* [주의] min-height: 0 이 없으면 이 칸이 내용 높이 아래로 줄지 않아 스크롤이 안 걸리고
   판이 화면 밖으로 자란다 — 상담 모달에서 겪은 것과 같은 함정이다. */
.doc-body {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.8vw, 34px);
  font-size: clamp(14px, 1.05vw, 15.5px); line-height: 1.85; letter-spacing: -.01em;
  color: var(--body-c); word-break: keep-all;
}
.doc-body:focus-visible { outline: 2px solid var(--brand-text); outline-offset: -2px; }
.doc-loading { margin: 0; color: var(--faint); }

.doc-foot {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px clamp(20px, 2.8vw, 34px);
  border-top: 1px solid var(--line); background: var(--surface);
}
.doc-open { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.doc-open:hover { color: var(--ink); }
.doc-close-b { height: 44px; padding: 0 24px; font-size: 14.5px; }

@media (max-width: 560px) {
  .doc-panel { height: 100%; }
  .doc-open { font-size: 12.5px; }
}

/* ---- 인사이트 목록: 관리자 손잡이 ----
   모양은 포트폴리오 카드(.gb-check / .gb-edit)를 그대로 쓴다 — 같은 일을 하는 손잡이가
   게시판마다 다르게 생기면, 어느 쪽에서 무엇을 눌러야 하는지 매번 다시 배워야 한다.
   여기서는 **카드에 자리(position)를 만들어 주는 일**과, 수정 손잡이를 평소 감추는 일만 한다. */
.mag-card-adm { position: relative; }
.mag-edit { opacity: 0; transition: opacity var(--dur-1) var(--ease-out); }
.mag-card-adm:hover .mag-edit,
.mag-edit:focus-within { opacity: 1; }

/* 지금 메인에 걸려 있는 글 표시. 수정 손잡이와 달리 **평소에도 보인다** —
   손잡이는 누를 것이라 손이 갈 때만 나오면 되지만, 이건 훑어보며 확인하는 것이다.
   [주의] 수정 손잡이(.gb-edit)와 같은 오른쪽 위 자리다. 표시를 위에 두고 손잡이를 내린다.
   표시 쪽을 움직이면, 손이 카드에 닿을 때마다 배지가 아래로 뛰어 화면이 들썩인다. */
.mag-flag {
  position: absolute; z-index: 4; right: 14px; top: 14px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--pri); color: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: .02em;
}
.mag-card-onmain .mag-edit { top: 50px; }

/* ---- 인사이트 상세: 인라인 편집 ----
   장치(.case-*)는 포트폴리오 상세와 같은 것을 그대로 쓴다. 여기서는 **칼럼 화면에 맞는 차이만** 덮는다.
   포트폴리오는 제목이 가운데 서는 표지형이고 칼럼은 왼쪽으로 붙는 읽는 글이라, 그 정렬만 되돌린다. */
.art-adm { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-bottom: clamp(14px, 1.6vw, 22px); }

/* 이 글이 지금 메인에 걸려 있다는 표시 — 편집을 열지 않아도 보여야 한다 */
.art-adm-flag {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--pri) 12%, transparent);
  color: var(--brand-text);
  font-size: 12.5px; font-weight: 800; letter-spacing: -.01em;
}

/* 저장 바 안의 "메인 페이지에 올리기" — 진짜 checkbox 는 숨기고 옆 상자를 그린다.
   [주의] input 을 display:none 으로 지우면 키보드로 닿을 수 없다. 자리만 없애고 남겨 둔다. */
.case-flag { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.case-flag input { position: absolute; opacity: 0; width: 0; height: 0; }
.case-flag-box {
  width: 22px; height: 22px; flex-shrink: 0; position: relative;
  border: 1px solid var(--input-line); border-radius: var(--r-sm);
  background: var(--surface);
  transition: background var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.case-flag input:checked + .case-flag-box { background: var(--pri); border-color: var(--pri); }
.case-flag input:checked + .case-flag-box::after {
  content: ""; position: absolute; left: 7px; top: 4px;
  width: 6px; height: 11px; border: 2px solid #fff; border-top: 0; border-left: 0;
  transform: rotate(42deg);
}
.case-flag input:focus-visible + .case-flag-box { outline: 2px solid var(--brand-text); outline-offset: 2px; }
.case-flag-t { font-size: 14.5px; font-weight: 700; color: var(--body-c); letter-spacing: -.01em; }
.case-flag input:checked ~ .case-flag-t { color: var(--brand-text); }

/* 제목 입력칸 — .case-in-title 이 가운데 정렬·58px 로 잡아 두었는데, 칼럼 제목은 왼쪽 40px 이다.
   같은 자리에서 같은 모양이어야 쓸 때와 보일 때의 배치가 어긋나지 않는다. */
/* [주의] 아래 규칙들은 뒤에 오는 .case-in / .case-in-title 과 이름 무게가 같아서, 그냥 쓰면
   **뒤에 선언된 쪽이 이긴다**(width:100% 로 되돌아가 분류 칸이 줄 하나를 통째로 먹었다).
   .sec-article 을 앞에 붙여 무게를 한 단 올린다. */
.sec-article .art-in-title {
  font-size: clamp(26px, 3vw, 40px); line-height: 1.3; letter-spacing: -.035em;
  font-weight: 900; text-align: left;
  resize: none; overflow: hidden;   /* 높이는 theme.js 가 내용에 맞춰 늘린다 */
}
body.case-editing .sec-article .art-in-title { padding: 12px 16px; }

/* 분류 선택 — 제목 위 배지 자리에 그대로 앉힌다(칸 하나가 줄 하나를 다 먹지 않게 폭을 준다) */
.sec-article .art-cat-in {
  width: auto; min-width: 200px; max-width: 100%;
  margin-bottom: clamp(14px, 1.6vw, 20px);
  border: 1px solid var(--input-line); border-radius: var(--r-sm);
  background: var(--surface); padding: 9px 12px;
  font-size: 15px; font-weight: 700; color: var(--brand-text);
}

/* 표지가 없는 글은 편집 중에도 이 자리를 비워 둔다 — 커버는 본문 사진의 [대표] 로 고른다 */
.art-hero.is-empty { display: none; }

/* [주의] 읽는 폭과 쓰는 폭은 달라야 한다. 900px 은 읽을 때 맞는 폭이지 쓸 때 맞는 폭이 아니다 —
   툴바 단추가 두 줄로 접히고, 사진을 넣어도 실제 배치를 가늠할 수 없다.
   편집 중에만 목록·포트폴리오와 같은 기준선(--edge-lead)까지 편다. 읽기 화면은 그대로다. */
body.case-editing .sec-article .art-wrap { max-width: none; padding: 0 var(--edge-lead); }
.art-editor { margin-top: 4px; }
.art-editor .case-rich { text-align: left; }

/* ==========================================================================
   상담 문의 모달 (.iq-modal)
   --------------------------------------------------------------------------
   보던 페이지를 떠나지 않고 그 자리에서 문의를 받는다.
   구조 3층 — 창(fixed) / 배경막(.iq-back) / 판(.iq-panel). 사진 넣기 모달과 같은 뼈대다.

   [주의] [hidden] 로 여닫으므로 display 를 쓰는 규칙과 반드시 짝을 맞춘다.
   전역에 `[hidden]{display:none !important}` 가 있지만 여기서도 한 번 더 적는다 —
   예전에 도움말 서랍이 모든 화면에서 열린 채 화면을 덮은 사고가 있었다.
   ========================================================================== */
.iq-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 3vw, 40px);
}
.iq-modal[hidden] { display: none; }
.iq-back {
  position: absolute; inset: 0;
  background: rgba(6, 10, 18, .58);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
/* [주의] 판 전체를 스크롤시키면 세로 900px 화면에서 보내기 버튼이 접힌 곳 아래로 밀린다(실측
   내용 958px vs 보이는 818px). 머리와 버튼은 붙여 두고 **입력칸만** 구른다.
   min-height: 0 이 없으면 flex 자식이 내용 높이 아래로 줄지 않아 overflow 가 걸리지 않는다. */
.iq-panel {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  width: 100%; max-width: 560px; max-height: 100%;
  overflow: hidden;
  border-radius: var(--r-panel);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(6, 10, 18, .5);
}
.iq-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.iq-body {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(16px, 1.8vw, 22px) clamp(22px, 3vw, 40px);
}
.has-motion .iq-modal:not([hidden]) .iq-panel { animation: iq-in .26s var(--ease-out) both; }
@keyframes iq-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.iq-x {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px; padding: 0;
  border: 0; border-radius: 50%; background: none;
  color: var(--faint); font-size: 26px; line-height: 1; cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.iq-x:hover { background: var(--surface-2); color: var(--ink); }

.iq-head { flex: none; padding: clamp(24px, 3vw, 38px) clamp(22px, 3vw, 40px) 0; }
.iq-title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 2vw, 27px); font-weight: 800; line-height: 1.35;
  letter-spacing: -.03em; color: var(--ink); word-break: keep-all;
}
.iq-sub {
  margin: 10px 0 0;
  font-size: clamp(13.5px, 1.05vw, 15px); line-height: 1.7; color: var(--muted); word-break: keep-all;
}

.iq-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 460px) { .iq-row { grid-template-columns: minmax(0, 1fr); } }
.iq-f { display: block; margin-top: 12px; }
.iq-row .iq-f { margin-top: 0; }
.iq-l {
  display: block; margin-bottom: 6px;
  font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; color: var(--body-c);
}
.iq-l b { color: var(--brand-text); font-weight: 700; }
.iq-f input, .iq-f textarea {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--input-line); border-radius: var(--r-md);
  background: var(--page); color: var(--ink);
  font-family: inherit; font-size: 15px; line-height: 1.6;
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.iq-f textarea { resize: vertical; min-height: clamp(96px, 14vh, 132px); }
.iq-f input:focus, .iq-f textarea:focus {
  outline: none; border-color: var(--pri);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pri) 16%, transparent);
}
.iq-f input::placeholder, .iq-f textarea::placeholder { color: var(--faint); }
.iq-note { margin: 6px 0 0; font-size: 12.5px; color: var(--faint); }

/* 동의 — 글자를 작게 두되 읽을 수는 있어야 한다. 접어 두지 않는다(동의는 보여 준 것만 유효하다) */
.iq-consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: clamp(18px, 2vw, 24px); padding: 14px;
  border-radius: var(--r-md); background: var(--surface-2);
}
.iq-consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--pri); }
.iq-consent b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.iq-consent a { margin-left: 6px; font-size: 12.5px; color: var(--brand-text); text-decoration: underline; }
.iq-consent-t { display: block; margin-top: 6px; font-size: 12px; line-height: 1.65; color: var(--muted); }

.iq-msg { margin: 14px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--brand-text); }
.iq-msg:empty { display: none; }
.iq-msg.is-bad { color: #C0392B; }

.iq-foot {
  flex: none;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px clamp(22px, 3vw, 40px) clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--line); background: var(--surface);
}
.iq-send { width: 100%; height: 56px; font-size: 16px; }
.iq-more { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.iq-more:hover { color: var(--ink); }
/* 접수가 끝나면 입력칸을 지운다 — 같은 글을 두 번 보내지 않게 */
.iq-modal.is-done .iq-row, .iq-modal.is-done .iq-f, .iq-modal.is-done .iq-consent, .iq-modal.is-done .iq-note { display: none; }
.iq-modal.is-done .iq-send { display: none; }

/* ==========================================================================
   채용 공고 상세 — 한 장짜리 JD (.sec-jd)
   --------------------------------------------------------------------------
   게시판 상세가 아니라 **공고 한 장**이다. 작성자·조회수·이전/다음 글을 걷어내고
   배지 → 제목 → 본문 → 화면 아래 지원 바 네 덩어리만 남긴다.

   글줄은 좁게 묶는다. 공고는 훑는 글이 아니라 한 줄씩 따져 읽는 글이라
   한 줄이 길면 다음 줄 첫 글자를 놓친다.
   ========================================================================== */
.sec-jd {
  --jd-tag-bg: #F1F3F6;
  --jd-bar-bg: rgba(255, 255, 255, .82);
}
:root[data-skin="dark"] .sec-jd { --jd-tag-bg: var(--surface-2); }
/* 공고 한 장을 읽는 화면이라 판을 순백으로 깐다 — 글만 남는다.
   [주의] 어두운 스킨까지 희게 칠하면 어두운 화면 한가운데에 흰 종이가 뜬다. */
:root:not([data-skin="dark"]) .sec-jd { --page: #FFFFFF; }
:root[data-skin="dark"] .jd-bar { --jd-bar-bg: rgba(21, 19, 19, .84); }
.sec.sec-jd {
  padding-top: clamp(56px, 6.5vw, 104px);
  /* 아래 지원 바(높이 76~84)가 본문 끝을 덮지 않도록 자리를 비워 둔다 */
  padding-bottom: clamp(120px, 12vw, 180px);
}

.jd-col { width: 100%; max-width: 896px; margin: 0 auto; padding: 0 var(--edge); }

/* 관리자 줄 — 공고를 보다가 바로 고치러 갈 수 있어야 한다.
   관리자 화면으로 넘어갔다 돌아오면 방금 보던 자리를 잃는다. */
.jd-admin { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(20px, 2.4vw, 30px); }

/* ---- 머리: 왼쪽 직무명 + 오른쪽 지원 버튼 ---- */
.jd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: clamp(20px, 3vw, 40px); }
.jd-head-l { min-width: 0; }
.jd-apply {
  flex: none; padding: 15px 32px; border-radius: var(--r-lg);
  font-size: clamp(15px, 1.2vw, 17px);
}

.jd-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px); font-weight: 900; line-height: 1.22;
  letter-spacing: -.035em; color: var(--ink); word-break: keep-all;
}

/* 요약 배지 — 직무명 바로 아래 한 줄 띄우고 */
.jd-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: clamp(16px, 1.8vw, 22px) 0 0; padding: 0; }
.jd-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--r-lg);
  background: var(--jd-tag-bg); color: var(--body-c);
  font-size: 14px; font-weight: 600; letter-spacing: -.01em;
}
.jd-tag-i { display: inline-flex; flex: none; }
/* [주의] 아이콘은 글자보다 조금 작게 잡고 획을 얇게 한다 —
   같은 크기로 두면 배지 안에서 그림이 글자보다 무거워져 값이 안 읽힌다. */
.jd-tag-svg {
  width: 15px; height: 15px;
  fill: none; stroke: var(--faint); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
/* 라벨은 값보다 한 단계 옅게 — "근무지" 와 "대전 서구" 가 같은 무게면 무엇이 답인지 안 보인다 */
.jd-tag-k { font-size: 12.5px; font-weight: 600; color: var(--faint); }

.jd-cover {
  margin: clamp(30px, 3.4vw, 40px) 0 0;
  aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-panel);
  background: var(--surface-2);
}
.jd-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- 본문 ---- */
/* 머리와 본문 사이의 얇은 선 하나. 판을 나누거나 색을 바꾸지 않는다 —
   노션 문서가 그렇듯 선 한 겹이면 "여기부터 읽는 곳" 이 충분히 전달된다. */
.jd-body {
  margin-top: clamp(30px, 3.4vw, 40px);
  padding-top: clamp(30px, 3.4vw, 40px);
  border-top: 1px solid var(--line);
  font-size: clamp(16px, 1.25vw, 18px); line-height: 1.9; letter-spacing: -.01em;
  color: var(--body-c); word-break: keep-all;
}
/* [주의] `> * { margin: 0 }` 로 먼저 눕히고 `> * + *` 로 사이만 벌린다.
   `p { margin: 0 }`(0,0,1) 로 눕히면 나중에 오는 `> * + *`(0,1,0) 를 이겨 문단 간격이 0 이 된다 —
   같은 실수를 아티클·케이스 본문에서 이미 두 번 했다. */
.jd-body > * { margin: 0; }
.jd-body > * + * { margin-top: 1.5em; }

.jd-body .jd-h, .jd-body h2, .jd-body h3 {
  margin-top: clamp(44px, 4.6vw, 64px); margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.7vw, 25px); font-weight: 800; line-height: 1.45;
  letter-spacing: -.025em; color: var(--ink);
}
/* 소제목 바로 다음 덩어리는 붙여 둔다 — 소제목과 그 내용이 한 묶음으로 읽혀야 한다 */
.jd-body > .jd-h + *, .jd-body > h2 + *, .jd-body > h3 + * { margin-top: clamp(16px, 1.6vw, 22px); }

.jd-ul, .jd-body ul { list-style: none; padding: 0; }
.jd-ul li, .jd-body ul li { position: relative; padding-left: 20px; line-height: 2; }
.jd-ul li + li, .jd-body ul li + li { margin-top: 6px; }
/* 점은 글자가 아니라 그림이다 — 글머리 문자로 넣으면 줄이 접힐 때 둘째 줄까지 들여쓰기가 안 맞는다 */
.jd-ul li::before, .jd-body ul li::before {
  content: ""; position: absolute; left: 3px; top: .82em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand-text);
}
.jd-body a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.jd-body img { max-width: 100%; height: auto; border-radius: var(--r-lg); }

/* ---- 화면 아래 지원 바 ---- */
.jd-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--jd-bar-bg);
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  padding: 14px var(--edge) calc(14px + env(safe-area-inset-bottom, 0px));
  /* 머리의 지원 버튼이 보이는 동안에는 내려가 있는다 — theme.js 가 is-on 을 붙인다.
     [주의] pointer-events 를 꺼 두지 않으면 화면 아래에 안 보이는 버튼이 깔려 있어
     푸터 링크를 누르려다 지원 버튼이 눌린다. */
  transform: translateY(100%); opacity: 0; pointer-events: none;
  transition: transform .32s var(--ease-out), opacity .24s var(--ease-out);
}
.jd-bar.is-on { transform: none; opacity: 1; pointer-events: auto; }
html:not(.has-js) .jd-bar { transform: none; opacity: 1; pointer-events: auto; }
/* backdrop-filter 를 못 읽는 브라우저에서는 반투명 판 너머로 글이 비쳐 버튼이 안 읽힌다 — 불투명으로 떨어뜨린다 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .jd-bar { background: var(--page); }
}
.jd-bar-in {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  max-width: 800px; margin: 0 auto;
}
.jd-bar-sub { flex: none; height: 52px; padding: 0 24px; }
/* 지원 버튼이 더 크고 더 넓다 — 둘을 같은 크기로 두면 "목록으로" 와 무게가 같아진다 */
.jd-bar-main { flex: 1 1 auto; max-width: 380px; height: 52px; padding: 0 28px; }

/* 오른쪽 아래 떠 있는 전화 버튼이 지원 바에 깔린다 — 이 화면에서만 위로 올린다 */
.has-jdbar .float-cta { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
/* [주의] 본문 아래 여백만으로는 모자란다. 문서 **맨 끝**은 푸터라서,
   맨 아래까지 내리면 사업자번호·주소 줄이 바에 그대로 깔린다(실측 81px 가림).
   가려지는 만큼 푸터 아래에 자리를 비워 둔다. */
.has-jdbar .site-footer { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }

/* 좁은 화면에서는 머리를 위아래로 쌓고 지원 버튼을 가로 전체로 편다 —
   한 줄에 억지로 두면 제목이 서너 글자마다 접힌다. */
@media (max-width: 760px) {
  .jd-head { flex-direction: column; align-items: stretch; gap: clamp(20px, 4vw, 28px); }
  .jd-apply { width: 100%; }
}
@media (max-width: 560px) {
  .jd-bar-in { gap: 8px; }
  .jd-bar-sub { padding: 0 16px; font-size: 14.5px; }
  .jd-bar-main { font-size: 15px; padding: 0 16px; }
  .jd-tag { font-size: 13px; padding: 6px 10px; }
}

/* 좁은 화면에서는 제목과 메타를 위아래로 쌓는다 —
   한 줄에 억지로 두면 제목이 두세 글자만 남고 말줄임된다. */
@media (max-width: 700px) {
  .rec-row {
    flex-direction: column; align-items: flex-start; gap: 8px;
    padding-left: 2px; padding-right: 2px;
  }
  .rec-m { text-align: left; }
  .rec-btn { min-width: 0; width: 100%; }
}



/* ---- 플로팅 그리드 + 빛 알갱이 ----
   읽으러 온 사람의 첫 화면. 포트폴리오(오로라)·솔루션(마우스 조명)과 결을 달리한다 —
   빛 덩어리가 아니라 **선과 점**이라 지적인 인상이 된다.

   [주의] 격자는 3~5% 를 넘기면 그 순간 벽지가 된다. 4.5% 로 두고 가장자리는 마스크로 지운다 —
   화면 끝에서 선이 뚝 잘리면 무늬가 "깔린 것"으로 보이고 공간감이 사라진다. */
.sec-sintro.sintro-grid { --dark-bg: #080C16; }
.sintro-grid .sintro-net {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(78% 68% at 50% 46%, #000 0%, rgba(0, 0, 0, .55) 56%, transparent 94%);
  mask-image: radial-gradient(78% 68% at 50% 46%, #000 0%, rgba(0, 0, 0, .55) 56%, transparent 94%);
}
/* 격자가 대각선으로 아주 천천히 흐른다 — 한 칸(68px)을 46초에 걸쳐 지난다.
   딱 한 칸만큼 움직이므로 무한 반복해도 이음매가 보이지 않는다. */
.has-motion .sintro-grid .sintro-net { animation: net-drift 46s linear infinite; }
@keyframes net-drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 68px -68px, 68px -68px; }
}

/* 빛 알갱이 — 아래에서 위로 흐른다. 자리·주기·크기는 PHP 가 표로 갖고 있다(무작위 아님). */
.sintro-dust { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.sintro-dust i {
  position: absolute; bottom: -20px;
  border-radius: 50%;
  background: rgba(160, 195, 255, .9);
  box-shadow: 0 0 7px rgba(120, 170, 255, .55);
  opacity: 0;
}
/* 몇 개는 점이 아니라 **아주 얇은 선**이다 — 점만 있으면 눈송이처럼 보인다 */
.sintro-dust i.line {
  border-radius: 1px;
  background: linear-gradient(180deg, transparent, rgba(150, 190, 255, .85), transparent);
  box-shadow: none;
}
.has-motion .sintro-dust i { animation-name: dust-rise; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes dust-rise {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  10%  { opacity: .9; }
  78%  { opacity: .65; }
  100% { transform: translate3d(var(--drift, 20px), -104vh, 0); opacity: 0; }
}

/* 배경이 조용하므로 글자에 무거운 그림자가 필요 없다 — 선명하게만 둔다 */
.sintro-grid .sintro-text { color: #fff; text-shadow: 0 1px 24px rgba(0, 0, 0, .45); }
.sintro-grid .sintro-one-sub { color: rgba(255, 255, 255, .72); text-shadow: none; }
.sec-sintro.sintro-grid .sintro-veil {
  background: radial-gradient(88% 70% at 50% 46%, rgba(8, 12, 22, .34), transparent 82%);
}

@media (max-width: 760px) {
  /* 좁은 화면에서 68px 칸은 너무 촘촘해 무늬가 회색 면처럼 뭉친다 */
  .sintro-grid .sintro-net { background-size: 48px 48px; }
  @keyframes net-drift {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 48px -48px, 48px -48px; }
  }
}

/* ---- 사진 배경 첫 화면 (시네마틱 수평 패닝) ----

   [구조] 층을 둘로 나눈다.
     · .sintro-photo-wrap — 화면 크기 그대로. 넘치는 부분을 잘라내는 **틀**이다.
     · .sintro-photo-img  — 틀보다 10% 넓다. 이 층만 움직인다.
   한 겹으로 만들면 사진이 틀에 딱 맞아 **밀 공간이 0** 이라 애니메이션을 걸어도 아무 일도 안 난다.

   [주의] background-attachment: fixed(패럴랙스)는 함께 쓸 수 없다.
   transform 이 걸린 요소는 자기 자신이 고정 배경의 기준이 되어 배경이 화면이 아니라
   그 요소에 붙는다 — 둘 중 하나만 고를 수 있고, 여기서는 **눈에 보이는 움직임**을 골랐다.

   [주의] 이동 폭 -5% 는 **사진 층 자기 폭**의 5% 다(틀 기준 5.5%).
   1440px 화면에서 사진은 1584px 로 깔리고 79px 움직인다 —
   오른쪽 끝이 1505px 라 화면(1440)을 여전히 덮으므로 가장자리에 빈 자리가 생기지 않는다. */
.sec-sintro.sintro-photo { --dark-bg: #070A11; }
.sintro-photo-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.sintro-photo-img {
  position: absolute; top: 0; left: 0;
  width: 110%; height: 100%;
  background-repeat: no-repeat; background-size: cover; background-position: center;
  will-change: transform;
}
.has-motion .sintro-photo-img { animation: cine-pan 20s ease-in-out infinite alternate; }
@keyframes cine-pan {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-5%, 0, 0); }
}

/* 어두운 막 — 사진이 밝든 어둡든 흰 글자가 읽히게 한다.
   [주의] 단색 한 겹으로 덮으면 사진이 그냥 어두워지기만 하고 깊이가 사라진다.
   가운데(글이 서는 자리)를 더 눌러 주는 겹을 하나 더 얹는다. */
/* [주의] 이 막은 사진 래퍼 **밖**에 있어 움직이지 않는다 — 사진과 함께 밀리면
   글자 뒤 밝기가 초마다 달라져 읽기가 불안정해진다. z-index 2 로 사진(0) 위, 글(steps) 아래. */
.sec-sintro.sintro-photo .sintro-veil {
  background:
    radial-gradient(82% 66% at 50% 46%, rgba(7, 10, 17, .46), transparent 78%),
    linear-gradient(180deg, rgba(11, 15, 23, .8) 0%, rgba(11, 15, 23, .68) 42%, rgba(11, 15, 23, .86) 100%);
}
.sintro-photo .sintro-text { text-shadow: 0 2px 44px rgba(0, 0, 0, .7), 0 1px 5px rgba(0, 0, 0, .45); }
.sintro-photo .sintro-one-sub { color: rgba(255, 255, 255, .88); text-shadow: 0 1px 22px rgba(0, 0, 0, .65); }
.sintro-photo .sintro-hint { text-shadow: 0 1px 14px rgba(0, 0, 0, .7); }

/* ==========================================================================
   인사이트 칼럼 상세 — 읽는 시간이 긴 글의 화면
   ========================================================================== */
.sec-article { --page: #FFFFFF; --bg-off: #FFFFFF; }
:root[data-skin="dark"] .sec-article { --page: #1B1A1A; --bg-off: #1B1A1A; }
.sec.sec-article { background: var(--page); }

/* [주의] "넓게"는 **글줄을 늘리는 것이 아니라 여백을 늘리는 것**이다.
   화면이 넓다고 글을 끝까지 펴면 줄 끝에서 다음 줄 머리를 눈이 못 찾는다.
   기둥은 900px 에서 멈추고, 좌우 여백은 화면에 비례해 벌어진다. */
/* 글 기둥은 포트폴리오(.case-wrap 1152px)와 같은 폭을 쓴다.
   900px + 좌우 56px 이던 시절에는 큰 모니터에서 글이 화면의 3할만 쓰고 양옆이 휑했고,
   제목이 번번이 두 줄로 꺾였다. 제목과 표지는 이 폭을 다 쓰고,
   본문 글줄만 .art-content 에서 따로 잡는다. */
.art-wrap {
  width: 100%; max-width: 1152px; margin: 0 auto;
  padding: 0 var(--edge);
}

/* ---- 머리 ---- */
.art-cat {
  display: inline-block; margin-bottom: clamp(14px, 1.6vw, 20px);
  font-size: clamp(14px, 1.15vw, 16px); font-weight: 800; letter-spacing: -.01em;
  color: var(--brand-text); text-decoration: none;
}
.art-cat:hover { text-decoration: underline; text-underline-offset: 4px; }
.art-title {
  margin: 0; font-family: var(--font-display); font-weight: 900;
  /* 칼럼 제목은 잡지 표제보다 '읽는 글의 머리'다 — 너무 크면 두 줄 넘어가 본문과 떨어진다.
     상한을 52 -> 40 으로 내려 한 화면에 제목·표지·첫 문단이 함께 들어오게 한다. */
  font-size: clamp(26px, 3vw, 40px); line-height: 1.3; letter-spacing: -.035em;
  color: var(--ink); word-break: keep-all;
}
.art-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  margin-top: clamp(18px, 2vw, 26px);
  font-size: 14px; font-weight: 500; letter-spacing: -.01em; color: var(--muted);
}
/* 가운뎃점은 글자가 아니라 구분 기호다 — 양옆 여백으로만 존재하고 색은 한 단계 더 옅다 */
.art-dot { margin: 0 9px; color: var(--faint); }

/* 머리와 본문 사이 — 선 하나로 구역을 끊는다.
   [주의] 선 위아래 여백이 같으면 선이 어디에 속한 것인지 알 수 없다.
   위(머리 쪽)를 좁게, 아래(본문 쪽)를 넓게 두어 선이 머리의 마침표로 읽히게 한다. */
.art-head {
  padding-bottom: clamp(26px, 3vw, 38px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(38px, 4.4vw, 60px);
}

/* 커버 사진 — 기사 첫머리의 표지.
   [주의] 비율을 16:9 로 못 박는다. 글마다 사진 비율이 다르면 제목에서 본문까지의 거리가
   글마다 달라져 같은 게시판인데 다른 틀처럼 읽힌다.
   모서리는 본문 요소(6px)보다 훨씬 크게 — 표지는 글이 아니라 판이다. */
.art-hero { margin: 0 0 clamp(40px, 4.6vw, 64px); }
.art-hero img {
  display: block; width: 100%; height: 100%;
  aspect-ratio: 16 / 9; object-fit: cover; object-position: center;
  border-radius: 20px;
}
@media (max-width: 700px) { .art-hero img { border-radius: 14px; } }

/* ---- 본문 ----
   [주의] 새까만 글자(#000)는 흰 판에서 눈이 아프다. 한 단계 눌러 둔다.
   줄 간격 1.85 · 문단 사이 1.5em 은 긴 글을 끝까지 읽게 하는 최소치다. */
.art-content {
  /* 기둥은 1152px 로 넓혔지만 본문 글줄까지 같이 늘리면 한 줄이 50자를 넘어 눈이 줄을 놓친다.
     제목·표지는 기둥을 다 쓰고 본문만 940px 에서 멈춘다. 왼쪽 끝은 제목과 맞춘다. */
  max-width: 940px;
  font-size: clamp(17px, 1.45vw, 20px); line-height: 1.9;
  letter-spacing: -.01em; color: var(--body-c); word-break: keep-all;
}
/* [주의] `p { margin: 0 }` 을 따로 두면 안 된다 — 순위가 (0,1,1) 이라 형제 간격 규칙 (0,1,0) 을
   **순서와 무관하게** 이겨서 문단 사이가 0 이 된다(실제로 그랬다).
   여백은 자식 선택자 하나로만 다룬다. */
.art-content > * { margin: 0; }
.art-content > * + * { margin-top: 1.5em; }
.art-content h2, .art-content h3 {
  font-family: var(--font-display); font-weight: 800; color: var(--ink);
  letter-spacing: -.03em; line-height: 1.4;
  margin: 2.2em 0 .7em;
}
.art-content h2 { font-size: 1.42em; margin-top: 2.6em; }
.art-content h3 { font-size: 1.2em; margin-top: 2em; }
.art-content h2:first-child, .art-content h3:first-child { margin-top: 0; }
/* [주의] 소제목의 아래 여백(.7em)과 다음 문단의 위 여백(1.5em)은 서로 겹쳐(margin collapse)
   **큰 쪽만 남는다** — 그래서 소제목이 자기 문단이 아니라 위 문단 쪽에 붙어 보였다.
   소제목 바로 뒤 요소만 간격을 되돌린다. 위쪽 여백은 크게 두어 화제가 바뀐 것이 먼저 읽히게 한다. */
.art-content h2 + *, .art-content h3 + * { margin-top: .7em; }

/* 리드 문단 — 기사의 도입부. 본문보다 한 단 크고 진하게 두어 "여기서부터 읽는다"를 만든다.
   목록 카드의 요약문도 이 문단에서 잘려 나가므로, 글에서 가장 공들일 자리다.
   [주의] p 로 시작할 때만 걸리게 한다 — 소제목으로 시작하는 글까지 키우면 머리가 두 개가 된다. */
.art-content > p:first-child {
  font-size: 1.1em; line-height: 1.8; color: var(--ink); font-weight: 500;
}

.art-content strong { color: var(--ink); font-weight: 800; }
.art-content a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }

/* 목록 — 기본 점 대신 브랜드색 짧은 선.
   각 항목이 <strong>핵심어</strong> 로 시작하는 구조라, 점보다 선이 그 머리말을 밀어 준다. */
.art-content ul, .art-content ol { margin: 1.5em 0; padding-left: 1.2em; }
.art-content ul { list-style: none; padding-left: 0; }
.art-content ul > li { position: relative; padding-left: 24px; }
.art-content ul > li::before {
  content: ""; position: absolute; left: 0; top: .85em;
  width: 11px; height: 2px; border-radius: 2px; background: var(--pri);
}
.art-content li + li { margin-top: .7em; }
.art-content li > strong:first-child { color: var(--ink); }

/* 인용 — 이 글에서 가장 하고 싶은 한 문장이 들어가는 자리다.
   [주의] 예전에는 작고 흐린 글씨(.97em · --muted)였다. 그러면 각주처럼 읽혀서
   가장 중요한 문장이 화면에서 가장 안 보이는 자리에 놓인다. 키우고 진하게 한다. */
.art-content blockquote {
  margin: 2.4em 0; padding: 2px 0 2px clamp(20px, 2.2vw, 30px);
  border-left: 3px solid var(--pri);
  color: var(--ink); font-size: 1.14em; font-weight: 600;
  line-height: 1.65; letter-spacing: -.022em;
}
/* blockquote 안쪽은 `.art-content > *` 의 자식이 아니라 여백 규칙이 닿지 않는다 — 따로 준다 */
.art-content blockquote > * { margin: 0; }
.art-content blockquote > * + * { margin-top: .6em; }
/* 본문 속 사진은 **글줄과 같은 폭**으로 둔다.
   [주의] 예전에는 글 기둥을 뚫고 1080px 까지 넓혔다. 좁은 글줄만 이어지면 단조롭다는 이유였는데,
   글줄이 788px 이라 한쪽으로 146px 씩만 삐져나왔다. 이만큼은 "일부러 넓혔다" 로 안 읽히고
   **정렬이 안 맞은 것**으로 보인다 — 사진 왼쪽 선과 글 왼쪽 선이 어긋나 있으니까.
   확실히 뚫든가 확실히 맞추든가 둘 중 하나여야 하고, 읽는 글에서는 맞추는 쪽이 낫다. */
.art-content img {
  display: block; width: 100%; max-width: 100%; height: auto;
  margin-top: clamp(32px, 3.6vw, 52px); margin-bottom: clamp(32px, 3.6vw, 52px);
  border-radius: var(--r-lg);
}

.art-files { margin-top: clamp(40px, 4.4vw, 60px); padding-top: 26px; border-top: 1px solid var(--line); }
.art-files-title { margin: 0 0 14px; font-size: 15px; font-weight: 800; color: var(--ink); }
.art-files ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.art-files a { display: flex; align-items: baseline; gap: 10px; font-size: 14.5px; color: var(--body-c); }
.art-files a:hover .file-name { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.art-files .file-size { font-size: 12.5px; color: var(--faint); }

/* 왼쪽 "돌아가기" · 오른쪽 "가져가기" — 성격이 반대라 양 끝으로 벌린다 */
.art-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: clamp(48px, 5vw, 72px); padding-top: 26px; border-top: 1px solid var(--line);
}
.art-back, .art-share {
  display: inline-flex; align-items: center; gap: 9px;
  /* [주의] 줄 높이를 못 박아야 두 단추 키가 같아진다 — "←" 가 1.2em 이라
     줄 상자를 늘려서 목록 단추만 8px 더 높았다(49.4 vs 41.0). */
  line-height: 1.4;
  padding: 11px 22px; border-radius: 999px;
  border: 1px solid var(--input-line); background: transparent;
  font-family: inherit; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em;
  color: var(--muted); text-decoration: none; cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out);
}
.art-back:hover, .art-share:hover {
  background: var(--surface-2); color: var(--ink); border-color: var(--ink);
}
.art-back > span[aria-hidden] { font-size: 1.2em; font-weight: 400; line-height: 1; }
.art-share-ico { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* 복사가 끝난 순간만 색이 들어온다 — 눌렀다는 사실을 글자 말고도 알려 준다 */
.art-share.is-done { color: var(--brand-text); border-color: var(--brand-text); background: transparent; }
/* 스크립트가 없으면 눌러도 아무 일이 없다 — 아예 보이지 않게 둔다 */
html:not(.has-js) .art-share { display: none; }

@media (max-width: 700px) {
  .art-meta { font-size: 13px; }
  .art-dot { margin: 0 7px; }
}

@media (max-width: 760px) {
  /* 좁은 화면에서는 덩어리가 화면보다 커서 흐림이 다 뭉개진다 — 흐림을 줄이고 이동 폭도 함께 줄인다 */
  .sintro-aurora .sintro-glow .glow { filter: blur(80px); }
}

.sintro-glow { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sintro-glow .glow {
  position: absolute; display: block; border-radius: 50%;
  /* 150px 이상으로 흐려야 동그라미가 안 보인다. 이보다 약하면 "원 두 개"로 읽힌다. */
  filter: blur(150px);
  /* 어두운 바탕 위에서는 색을 덮는 대신 **더하는** 편이 맑다 — 탁하게 겹치지 않는다. */
  mix-blend-mode: screen;
  will-change: transform;
  width: min(560px, 74vw); aspect-ratio: 1; height: auto;
}
/* [주의] 덩어리 중심을 화면 안쪽에 두면 안 된다 — 가운데가 밝아지고, 흐림이 잘려 직선 경계가 생긴다.
   둘 다 모서리 **밖으로** 밀어 두고 번지는 부분만 화면에 들인다. */
.glow-1 { left: -8rem; top: -8rem; background: rgba(37, 99, 235, .2); }      /* 좌측 상단 — 딥 블루 */
.glow-2 { right: -8rem; bottom: -8rem; background: rgba(79, 70, 229, .15); } /* 우측 하단 — 인디고 */
/* 셋째는 나머지 대각선(우측 상단)을 메운다. 둘만 두면 빛이 한쪽 대각선으로만 흘러
   화면이 반으로 갈린 것처럼 보인다.
   [주의] 진하기를 둘보다 낮춘다(.10). 같은 세기로 두면 세 방향에서 밝아져 가운데가 떠오르고,
   그 순간 글자 뒤가 밝아진다 — 이 화면에서 가장 피해야 하는 일이다. */
.glow-3 { right: -10rem; top: -6rem; background: rgba(56, 130, 246, .1); }
/* [주의] 폭은 반드시 `.sintro-glow .glow-3` 로 적어야 한다 — 기본 폭이 `.sintro-glow .glow` 에
   걸려 있어서 `.glow-3` 하나로는 순위에서 밀린다(560px 그대로 남는 것을 확인했다). */
.sintro-glow .glow-3 { width: min(440px, 58vw); }

/* ---- 숨 쉬듯 커졌다 작아지며 떠다니기 ----
   [주의] 두 덩어리가 같은 박자로 움직이면 기계처럼 보인다. 세 가지를 서로 다르게 둔다.
     ① 주기 — 12s / 15.5s. 최소공배수가 커서 두 빛이 같은 자리로 다시 모이기까지 아주 오래 걸린다.
     ② 시작 지점 — 두 번째에 음수 지연(-4.5s)을 준다. 페이지가 열리자마자 이미 다른 국면에 있다.
        양수 지연으로 두면 처음 몇 초 동안 한쪽만 멈춰 있어서 그게 더 눈에 띈다.
     ③ 경로 — 왕복이 아니라 네 지점을 돈다. 두 지점만 오가면 같은 선을 되짚는 것이 보인다.
   alternate 라 실제 한 바퀴는 24s / 31s 다. */
.has-motion .glow-1 { animation: glow-float-a 12s ease-in-out infinite alternate; }
.has-motion .glow-2 { animation: glow-float-b 15.5s -4.5s ease-in-out infinite alternate; }
/* 셋째도 주기와 시작 지점을 어긋나게 둔다 — 12 / 15.5 / 18.5 는 서로 배수가 아니다 */
.has-motion .glow-3 { animation: glow-float-c 18.5s -9s ease-in-out infinite alternate; }
@keyframes glow-float-a {
  0%   { transform: translate3d(0, 0, 0)      scale(1); }
  32%  { transform: translate3d(5%, 3%, 0)    scale(1.16); }
  64%  { transform: translate3d(-2%, 7%, 0)   scale(1.3); }
  100% { transform: translate3d(4%, -3%, 0)   scale(1.08); }
}
@keyframes glow-float-b {
  0%   { transform: translate3d(0, 0, 0)      scale(1.12); }
  36%  { transform: translate3d(-6%, -4%, 0)  scale(.94); }
  70%  { transform: translate3d(3%, -7%, 0)   scale(1.26); }
  100% { transform: translate3d(-4%, 2%, 0)   scale(1); }
}
@keyframes glow-float-c {
  0%   { transform: translate3d(0, 0, 0)      scale(1); }
  40%  { transform: translate3d(-4%, 6%, 0)   scale(1.22); }
  75%  { transform: translate3d(2%, 2%, 0)    scale(.9); }
  100% { transform: translate3d(-6%, 5%, 0)   scale(1.14); }
}

/* ---- 마우스를 따라다니는 손전등 ----
   [주의] 그라디언트의 중심 좌표를 매 프레임 바꾸면 100vh 짜리 층 전체가 다시 칠해진다.
   대신 **크기가 고정된 원 하나를 transform 으로 옮긴다** — 합성 단계에서만 처리되어
   다시 칠할 일이 없다. 음수 마진은 그 원의 한가운데를 커서에 맞추는 값이다(지름의 절반).

   [주의] 색을 진하게 하면 그 순간 "빛나는 원"이 되어 마우스가 배경의 주인공이 된다.
   가장자리를 완전히 투명하게 빼서 경계가 없는 번짐으로만 남긴다.

   transform 에 전환을 걸어 두면 커서보다 아주 조금 늦게 따라온다 —
   정확히 붙어 다니면 커서에 매달린 물건처럼 보이고, 늦게 오면 빛이 번지는 것처럼 보인다. */
.sintro-spot {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: 920px; height: 920px; margin: -460px 0 0 -460px;
  pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle closest-side,
    rgba(150, 190, 255, .16) 0%,
    rgba(96, 130, 240, .085) 34%,
    rgba(70, 95, 205, .03) 58%,
    transparent 100%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate3d(50vw, 45vh, 0);
  transition: transform .5s var(--ease-out), opacity .6s var(--ease-out);
  will-change: transform, opacity;
}
.sintro-spot.is-on { opacity: 1; }
/* 커서가 없는 화면에서는 아예 그리지 않는다 — theme.js 도 켜지 않지만, 층 자체를 두지 않는 편이 싸다 */
@media (hover: none), (pointer: coarse), (max-width: 760px) { .sintro-spot { display: none; } }

/* [주의] 안내(.sintro-hint)는 화면 바닥에 절대 위치로 붙어 있다.
   여기서 position 까지 손대면 그 자리를 잃고 글 옆으로 딸려 온다 — z-index 만 올린다. */
.sintro-mesh .sintro-copy { position: relative; z-index: 1; }
.sintro-mesh .sintro-hint { z-index: 1; }

/* ---- 문장 하나만 있는 첫 화면 ----
   라벨도 설명도 없으므로 문장이 화면을 혼자 감당해야 한다. 크기와 무게를 한 단계 올린다. */
/* [주의] 크기를 따로 정하지 않는다. 홈·회사소개·서비스의 첫 화면과 **같은 토큰**(--fs-hero)을 쓴다 —
   여기만 키웠더니 페이지를 옮겨 다닐 때 첫 화면 글씨가 커졌다 작아졌다 했다. */
.sintro-one .sintro-text {
  max-width: 18em; margin: 0 auto;
  /* 한글은 어절 단위로만 끊는다 — 낱자가 다음 줄로 넘어가면 문장이 부서져 보인다 */
  word-break: keep-all; overflow-wrap: normal;
}
/* 화면이 이미 맨 위에 있어 "스크롤해 들어온다"는 전제가 성립하지 않는다.
   스크롤 등장(.rv) 대신 진입 애니메이션을 직접 건다 — 느리고 묵직하게 한 번만. */
.has-motion .sintro-one { animation: hero-rise 1s var(--ease-out) both; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  /* 덩어리 크기를 px 로만 잡으면 좁은 화면에서 흐림(150px)에 다 뭉개져 사라진다 —
     화면이 그냥 검은 판이 된다. 좁을수록 덩어리를 키우고 흐림을 줄여 같은 인상을 만든다. */
  .sintro-glow .glow { filter: blur(90px); width: min(420px, 96vw); }
  .glow-1 { left: -5rem; top: -5rem; }
  .glow-2 { right: -5rem; bottom: -5rem; }
}
/* ==========================================================================
   케이스 스터디 상세 (.sec-case-*)
   --------------------------------------------------------------------------
   작성자·조회수·이전글 같은 게시판 살림살이를 쓰지 않는다.
   여기서 필요한 것은 누가 언제 썼는지가 아니라 **어느 고객사의 무슨 일을 언제 했는지**다.
   ========================================================================== */

.sec-case-head { --page: #FFFFFF; }
.sec.sec-case-head { padding: calc(var(--header-h) + clamp(40px, 5vw, 72px)) 0 clamp(30px, 3.4vw, 48px); }
/* 머리 영역은 아래 대표 이미지와 **같은 선**을 쓴다(1152px + --edge).
   --edge-lead 로 두었더니 목록으로/수정 단추가 화면 양 끝까지 벌어져,
   가운데 모인 제목·메타와 아무 관계 없는 자리에 떠 있었다. */
.case-wrap { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 var(--edge); }

.case-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(26px, 3.2vw, 44px); }
/* [주의] 제목이 58px 인데 이 줄이 14px 이면 같은 화면의 요소로 안 보인다.
   튀지 않으면서도 "누를 것"으로 읽힐 만큼은 키운다. */
.case-back, .case-admin {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: clamp(14.5px, 1.15vw, 16.5px); font-weight: 600; letter-spacing: -.01em;
  color: var(--muted); text-decoration: none;
  transition: color var(--dur-1) var(--ease-out);
}
.case-back:hover, .case-admin:hover { color: var(--ink); }
/* 화살표는 글자보다 한 단계 크고 가늘게 — 굵게 두면 글자보다 화살표가 먼저 보인다 */
.case-back > span[aria-hidden] { font-size: 1.24em; font-weight: 400; line-height: 1; }
/* 관리자에게만 보이는 링크 — 방문자 화면에는 아예 출력되지 않는다(템플릿에서 거른다) */
.case-admin { color: var(--brand-text); }

/* [바뀐 이유] 예전에는 제목·메타·본문을 모두 가운데로 세웠다.
   본문까지 가운데로 가면 줄마다 시작점이 달라져 눈이 매번 왼쪽 끝을 다시 찾는다.
   한글 40자가 넘는 줄에서는 읽기가 확 떨어진다. 그래서 축을 **왼쪽 하나**로 통일했다.
   대표 이미지는 화면 폭을 꽉 채워 축이 없으므로 왼쪽 정렬과 부딪히지 않는다. */
.case-title {
  margin: 0 auto;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 4.2vw, 58px); line-height: 1.18; letter-spacing: -.04em;
  color: var(--ink); word-break: keep-all; max-width: 18em; text-align: center;
}

/* 메타는 표가 아니라 **줄 사이에 낀 정보**다 — 위아래 1px 선으로만 묶는다.
   [주의] 넓은 화면에서 네 칸을 가로로 펴 두면 값 사이가 400px 씩 벌어져 서로 상관없는 정보로 보인다.
   2×2 로 접고 가운데 정렬해 한 덩어리로 읽히게 한다. */
/* 제목이 왼쪽에 서므로 메타도 왼쪽에서 시작한다.
   넓은 화면에서는 네 칸을 한 줄로 펴서 **사양 표**처럼 읽히게 한다.
   가운데 2×2 로 접어 두던 시절에는 칸 사이가 멀어 서로 상관없는 정보로 보였는데,
   왼쪽에서 시작하면 줄 하나로 묶여 그 문제가 사라진다. */
/* 제목과 메타는 표지에 해당하는 자리다. 두세 줄짜리 덩어리라 가운데가 어울린다.
   본문만 왼쪽으로 내려가는데, 사이에 대표 이미지가 통째로 끼어 있어 축이 부딪히지 않는다. */
.case-meta {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 30px) clamp(20px, 2.2vw, 32px);
  max-width: 900px; margin: clamp(34px, 4vw, 56px) auto 0;
  padding: clamp(28px, 3vw, 40px) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center;
}
@media (max-width: 760px) {
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 18px; }
}
.case-meta-cell { min-width: 0; }
/* 라벨은 작게 두되 자간을 크게 벌린다 — 작은 글씨는 자간이 넓어야 라벨로 읽힌다 */
.case-meta dt {
  font-family: var(--font-display); font-size: 12px; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase; color: var(--faint);
  margin-bottom: 12px;
}
/* 값은 이 판에서 실제로 읽히는 정보다 — 라벨보다 확실히 커야 한다 */
.case-meta dd {
  margin: 0; font-size: clamp(17px, 1.5vw, 21px); font-weight: 800;
  letter-spacing: -.025em; color: var(--ink); word-break: keep-all; line-height: 1.4;
}

/* 대표 이미지 — 화면 가로를 꽉 채운다. 기둥 안에 갇히면 작업이 작아 보인다. */
/* 대표 이미지는 배경 위에 **떠 있는 판**이다.
   [주의] 높이를 못 박고 cover 로 채우면 원본이 잘린다 — 이 작업의 얼굴이라 잘라 내면 안 된다.
   그림이 제 비율대로 높이를 정하고, 폭만 묶어 작은 원본이 화면 끝까지 늘어나는 것을 막는다.

   모서리를 크게(32px) 깎는 것은 이 판 하나뿐이다. 사이트의 다른 면은 각져 있지만,
   "떠 있는 캔버스"라는 인상은 큰 반경과 깊은 그림자가 함께 있어야 생긴다 —
   각진 판에 그림자만 주면 떠 있는 것이 아니라 그냥 어두운 테두리로 보인다. */
.case-hero {
  position: relative; z-index: 2;
  /* [주의] 위 메타 영역을 덮고 올라가게 해 봤는데(네거티브 마진) 좋지 않았다.
     메타의 아래 구분선이 사진 뒤로 사라지면서, 층이 겹친 것이 아니라 **선이 사진에 잘린 것**으로 보인다.
     떠 있는 느낌은 큰 반경과 그림자가 이미 만들고 있으므로 겹치지 않고 아래에 둔다. */
  margin: clamp(28px, 3.2vw, 52px) auto 0; padding: 0 var(--edge);
  max-width: 1152px; background: none;
}
.case-hero img {
  display: block; width: 100%; height: auto; object-fit: contain;
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .15), 0 60px 120px -60px rgba(15, 23, 42, .45);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
/* 정지 화상이 아니라 만질 수 있는 판이라는 신호 — 아주 조금만 뜬다 */
.has-motion .case-hero img:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 64px rgba(0, 0, 0, .18), 0 80px 150px -60px rgba(15, 23, 42, .5);
}

/* 본문은 가운데로 좁힌다 — 글줄이 화면 폭만큼 길면 눈이 다음 줄을 못 찾는다 */
.sec-case-body { --page: #FFFFFF; }
.sec.sec-case-body { padding: clamp(56px, 7vw, 110px) 0 clamp(64px, 8vw, 120px); }
.case-read { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 var(--edge); }
/* [주의] 예전에는 여기에 text-align: center 가 걸려 있었다.
   768px 에 18.5px 이면 한 줄에 한글이 40자를 넘는데, 그 길이를 가운데로 세우면
   줄마다 시작점이 달라 눈이 매번 왼쪽 끝을 더듬는다. 가운데 정렬은 두세 줄짜리
   인용구에나 맞는다. 글줄은 왼쪽에 세우고 폭만 읽기 좋은 데서 끊는다.
   720px 면 한글 36자 안팎으로, 눈이 한 번에 따라오는 길이다. */
/* [주의] 글 기둥과 사진 기둥의 **왼쪽 선이 같아야** 한다.
   720px 로 좁혀 가운데에 두었더니 사진은 568px 에서 시작하는데 글은 737px 에서 시작해
   두 기둥이 어긋나 보였다. 대표 이미지(.case-hero)와 같은 1152px 로 맞춰 한 선에 세운다. */
.case-read-mag { max-width: 1152px; text-align: left; }

.case-h2 {
  margin: 0 0 clamp(18px, 2vw, 26px);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(21px, 1.9vw, 27px); letter-spacing: -.03em; color: var(--ink);
}
.case-content { font-size: clamp(16.5px, 1.25vw, 18.5px); line-height: 1.9; color: var(--body-c); word-break: keep-all; }
/* [주의] 여기도 마찬가지 — `p { margin: 0 }` 은 형제 간격을 이겨 버린다. 자식 선택자로만 다룬다. */
.case-content > * { margin: 0; }
.case-content > * + * { margin-top: 2em; }
.case-content h3 {
  margin: 2.6em 0 .9em;
  font-family: var(--font-display); font-size: 1.22em; font-weight: 800;
  letter-spacing: -.03em; color: var(--ink); line-height: 1.4;
}
.case-content h3:first-child { margin-top: 0; }
/* 왼쪽 정렬이 되면서 점을 되살릴 수 있게 됐다.
   작업 범위처럼 항목이 늘어선 곳은 점이 있어야 "목록"으로 읽힌다.
   점을 글 바깥으로 빼서(왼쪽 여백) 글자 머리는 본문과 같은 선에 선다. */
.case-content ul, .case-content ol { margin: 2em 0; padding: 0 0 0 1.1em; list-style: none; }
.case-content ul > li { position: relative; }
.case-content ul > li::before {
  content: ""; position: absolute; left: -1.1em; top: .78em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand-text);
}
.case-content ol { list-style: decimal; padding-left: 1.3em; }
.case-content li + li { margin-top: .7em; }
.case-content strong { color: var(--ink); }

/* 첫 문단은 들어가는 문이다. 조금 키우고 색을 올려 눈이 걸릴 자리를 만든다 —
   같은 크기 문단만 이어지면 어디부터 읽어야 할지가 없어 글이 통째로 미끄러진다. */
.case-content > p:first-of-type {
  font-size: 1.12em; line-height: 1.78; color: var(--ink); letter-spacing: -.015em;
}

/* [주의] 예전에는 사진을 글 폭 밖으로 밀어냈다(margin-left: 50% + translateX).
   글 기둥을 사진과 같은 폭으로 맞춘 지금은 그 수가 오히려 어긋남을 만든다.
   글과 사진이 같은 선에서 시작하고 같은 선에서 끝나게 둔다. */
.case-content img {
  display: block; height: auto;
  width: 100%; max-width: 100%;
  margin-top: clamp(48px, 6vw, 88px); margin-bottom: clamp(48px, 6vw, 88px);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 70px -34px rgba(15, 23, 42, .45);
}

.case-files { margin-top: clamp(48px, 6vw, 80px); }
.case-files ul { list-style: none; margin: 0; padding: 0; }
.case-files li + li { margin-top: 8px; }
.case-files a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 700;
  transition: border-color var(--dur-1) var(--ease-out);
}
.case-files a:hover { border-color: var(--ink); }
.case-files .file-size { color: var(--faint); font-weight: 500; font-size: 14px; }

/* 다음 작업 — 글자 링크가 아니라 화면을 꽉 채우는 판.
   작업을 다 본 사람에게 필요한 것은 "목록으로"가 아니라 "다음 작업"이다. */
.case-next {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: clamp(72px, 9vw, 140px) var(--edge);
  background: var(--dark-1); color: #fff; text-decoration: none; text-align: center;
  transition: background var(--dur-1) var(--ease-out);
}
.case-next:hover { background: #16337A; }
.case-next-label {
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .58);
}
.case-next-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(24px, 3.2vw, 46px); line-height: 1.24; letter-spacing: -.035em;
  color: #fff; word-break: keep-all; max-width: 20em;
}
.case-next-go { font-size: 26px; transition: transform var(--dur-1) var(--ease-out); }
.has-motion .case-next:hover .case-next-go { transform: translateX(8px); }

/* 목록의 관리자 줄 — 방문자에게는 출력되지 않는다.
   글자만 두었더니 링크인지 안내문인지 구분이 안 됐다. 누를 것은 누를 것처럼 보여야 한다. */
/* 관리자 손잡이는 오른쪽에 모아 둔다 — 게시판에서 글쓰기·관리 단추가 있는 자리다.
   가운데 두면 방문자용 필터와 같은 위계로 보인다. */
.gb-admin {
  display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: -20px 0 30px;
}
.gb-admin-sel { margin-right: 4px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.gb-abtn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface);
  color: var(--body-c); font-family: inherit; font-size: 14px; font-weight: 700;
  letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  transition: border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out),
              background var(--dur-1) var(--ease-out);
}
.gb-abtn:hover { border-color: var(--ink); color: var(--ink); background: var(--bg-off); }
/* 글쓰기만 채운다 — 무엇이 주된 행동인지 하나만 보이면 된다 */
.gb-abtn-main { background: var(--ink); border-color: var(--ink); color: #fff; }
.gb-abtn-main:hover { background: #000; color: #fff; }
.gb-abtn-del { color: #C0392B; border-color: rgba(192, 57, 43, .35); }
.gb-abtn-del:hover { background: #C0392B; border-color: #C0392B; color: #fff; }
.gb-abtn:disabled { opacity: .5; cursor: default; }

/* 카드 위 손잡이 — 카드 링크 바깥에 두어야 눌렀을 때 상세로 넘어가지 않는다 */
.gb-check { position: absolute; z-index: 4; left: 14px; top: 14px; cursor: pointer; }
.gb-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.gb-check span {
  display: block; width: 24px; height: 24px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px -2px rgba(15, 23, 42, .4);
  border: 1px solid rgba(15, 23, 42, .18);
  transition: background var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.gb-check input:checked + span { background: var(--pri); border-color: var(--pri); }
.gb-check input:checked + span::after {
  content: ""; position: absolute; left: 8px; top: 5px;
  width: 6px; height: 11px; border: 2px solid #fff; border-top: 0; border-left: 0;
  transform: rotate(42deg);
}
.gb-check input:focus-visible + span { outline: 2px solid var(--brand-text); outline-offset: 2px; }

.gb-edit { position: absolute; z-index: 4; right: 14px; top: 14px; }
.gb-edit-btn {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .92); border: 1px solid rgba(15, 23, 42, .18);
  color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.gb-edit-btn:hover { background: var(--ink); color: #fff; }

@media (max-width: 700px) {
  .case-meta { gap: 24px 18px; }
  /* 좁은 화면에서 32px 반경은 그림 안쪽을 잡아먹는다 */
  .case-hero img { border-radius: 18px; }
  /* 사진 뚫고 나가기는 좁은 화면에서 할 일이 없다 — 글 폭이 이미 화면 폭이다 */
  .case-content img { width: 100%; margin-left: 0; transform: none; }
}

/* ---- 케이스 스터디 인라인 편집 ----
   관리자로 로그인해 있을 때만 이 마크업이 존재한다. 방문자가 받는 HTML 에는 흔적이 없다.
   읽기용과 편집용을 **같은 자리에 겹쳐 두지 않는다** — 겹치면 전환할 때 줄 높이가 달라 화면이 튄다. */
.case-adm { display: inline-flex; align-items: center; gap: 18px; }
/* 관리자용이라 튀면 안 되지만, 누르기 편할 만큼은 커야 한다 — 위아래 여백으로 클릭 면적을 넓힌다 */
.case-adm-btn {
  border: 0; background: none; padding: 6px 0; cursor: pointer;
  font-family: inherit; font-size: clamp(13.5px, 1.05vw, 15px); font-weight: 600; letter-spacing: -.01em;
  color: var(--faint);
  transition: color var(--dur-1) var(--ease-out);
}
.case-adm-btn:hover { color: var(--brand-text); }
.case-adm-del:hover { color: #C0392B; }

/* 입력칸은 네모 상자가 아니라 **밑줄**이다 — 상자를 그리면 읽기 화면과 인상이 완전히 달라져
   무엇을 고치는 중인지 감각이 끊긴다. 글자 크기는 읽기용과 같게 둔다. */
.case-in {
  width: 100%; max-width: 100%;
  border: 0; border-bottom: 1px solid var(--input-line); border-radius: 0;
  background: transparent; color: var(--ink);
  font-family: inherit; padding: 8px 0;
  transition: border-color var(--dur-1) var(--ease-out);
}
.case-in:focus { outline: none; border-bottom-color: var(--brand-text); }

/* [주의] 밑줄만으로는 흰 판 위에서 입력칸이 보이지 않는다 — 어디를 눌러야 고칠 수 있는지
   알 수 없다는 지적이 실제로 나왔다. 편집 중에만 상자로 바꾼다.
   읽기 화면은 그대로라, 상자가 보이는 것 자체가 "지금 고치는 중"이라는 표시가 된다. */
body.case-editing .case-meta-edit .case-in,
body.case-editing .case-in-title {
  border: 1px solid var(--input-line); border-radius: var(--r-sm);
  background: var(--surface);
  padding: 11px 14px;
}
body.case-editing .case-meta-edit .case-in:focus,
body.case-editing .case-in-title:focus {
  border-color: var(--brand-text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pri) 14%, transparent);
}
/* 제목은 글자가 커서(58px) 같은 여백을 주면 상자가 화면을 가른다 — 여백과 모서리를 키운다 */
body.case-editing .case-in-title {
  padding: 14px 20px; border-radius: var(--r-md); background: var(--surface-2);
}
/* 편집칸도 같은 자리에 같은 모양으로 — 쓸 때와 보일 때가 다르면 배치를 잡을 수 없다 */
.case-in-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 4.2vw, 58px); line-height: 1.18; letter-spacing: -.04em;
  text-align: center;
}

.case-meta-edit {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 40px);
}
.case-meta-edit label { display: block; min-width: 0; }
.case-meta-edit span {
  display: block; margin-bottom: 6px;
  font-family: var(--font-display); font-size: 12px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
}
.case-meta-edit .case-in { font-size: clamp(16px, 1.3vw, 19px); font-weight: 700; letter-spacing: -.02em; }

/* 대표 이미지 자리 — 편집 중에는 여기가 업로드 자리가 된다 */
.case-hero { position: relative; }
/* 대표 이미지가 없으면 자리를 만들지 않는다 — 방문자에게 빈 회색 판이 300px 씩 남는다. */
.case-hero.is-empty { display: none; }

/* [주의] 대표 이미지가 없으면 편집 중에도 이 자리를 만들지 않는다.
   업로드 상자를 놓아 본 적이 있는데, 400px 짜리 상자가 메타와 본문 사이를 가로막아
   정작 글 쓸 자리가 화면 밖으로 밀렸다. 대표 이미지는 본문 사진 위의 [대표] 단추로 고른다.

   그림이 없을 때 메타와 본문이 너무 붙지 않도록, 편집 중에는 본문 판의 위 여백만 줄여
   자연스럽게 잇는다(읽기 화면은 그대로다). */
body.case-editing .sec-case-body { padding-top: clamp(36px, 4vw, 56px); }

/* 본문 편집기 — 브라우저가 이미 할 줄 아는 일이라 외부 편집기 파일을 받아 오지 않는다.
   툴바 단추는 실제로 동작한다(장식이 아니다). */
.case-editor { margin-top: 4px; }
/* [주의] 읽는 폭과 쓰는 폭은 달라야 한다. 읽을 때 768px 이 맞는 것은 눈이 줄 끝에서
   다음 줄 머리를 쉽게 찾기 때문이고, 쓸 때 768px 은 그냥 좁은 상자다 —
   툴바 단추가 두 줄로 접히고 사진을 넣으면 편집기 안에서 실제 배치를 가늠할 수 없다.
   편집 중에만 넓힌다. 읽기 화면(.case-content)은 768px 그대로다.

   폭은 목록·포트폴리오와 같은 기준선(--edge-lead 안쪽)까지 편다 — 글 쓰는 자리가
   페이지에서 가장 넓어야 한다. */
body.case-editing .case-read-mag { max-width: none; padding: 0 var(--edge-lead); }
.case-tb {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px; border: 1px solid var(--line); border-bottom: 0;
  border-radius: var(--r-md) var(--r-md) 0 0; background: var(--bg-off);
}
.case-tb button {
  border: 1px solid transparent; border-radius: var(--r-sm);
  background: transparent; color: var(--body-c);
  padding: 7px 12px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 700;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.case-tb button:hover { background: var(--surface); color: var(--ink); border-color: var(--line); }
/* 지금 커서가 놓인 서식을 켜서 보여 준다 — 이 표시가 없으면 인용 안인지 눈으로만 판단해야 하고,
   그러다 "본문" 을 눌러야 할 자리에서 인용을 한 번 더 눌러 두 겹으로 감싸게 된다. */
.case-tb button.is-on {
  background: var(--pri); color: #fff; border-color: var(--pri);
}
.case-tb button.is-on:hover { background: #1E357A; color: #fff; border-color: #1E357A; }
.case-tb-sep { width: 1px; align-self: stretch; margin: 2px 4px; background: var(--line); }
.case-rich {
  /* 높이는 화면에 맞춰 늘어난다 — 고정 500px 은 큰 모니터에서 화면 절반만 쓰는 상자가 된다.
     네이버 블로그처럼 "한 화면이 곧 원고지"가 되게 한다. */
  min-height: max(620px, 68vh); padding: clamp(20px, 2.2vw, 34px);
  border: 1px solid var(--line); border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 2px 10px -6px rgba(15, 23, 42, .25);
  font-size: clamp(16.5px, 1.25vw, 18.5px); line-height: 1.95; color: var(--body-c);
  word-break: keep-all;
}
.case-rich:focus { outline: none; border-color: var(--brand-text); }
/* 편집기 안도 읽기 화면과 같은 정렬로 둔다 — 쓸 때와 보일 때가 다르면 배치를 잡을 수 없다 */
.case-read-mag .case-rich { text-align: center; }
.case-read-mag .case-tb { text-align: left; }
.case-rich img { max-width: 100%; height: auto; border-radius: var(--r-md); margin: 20px 0; }

/* ---- 편집기 안에서도 읽기 화면과 같은 모습으로 ----
   [주의] 예전에는 h3 한 줄만 꾸며 두었다. 그래서 편집기 안에서는 큰제목과 중제목이 똑같이 보이고,
   인용을 넣어도 그냥 들여쓰기만 됐다 — 저장해서 읽기 화면으로 나가야만 결과를 알 수 있었다.
   쓸 때와 보일 때가 다르면 배치를 잡을 수 없으므로, .art-content 의 규칙을 여기에도 맞춰 둔다. */
.case-rich > * { margin: 0; }
.case-rich > * + * { margin-top: 1.3em; }
.case-rich h2, .case-rich h3 {
  font-family: var(--font-display); font-weight: 800; color: var(--ink);
  letter-spacing: -.03em; line-height: 1.4; margin: 1.9em 0 .6em;
}
.case-rich h2 { font-size: 1.42em; }
.case-rich h3 { font-size: 1.2em; }
.case-rich h2 + *, .case-rich h3 + * { margin-top: .6em; }
.case-rich strong { color: var(--ink); font-weight: 800; }
.case-rich a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.case-rich ul, .case-rich ol { margin: 1.3em 0; padding-left: 1.2em; }
.case-rich ul { list-style: none; padding-left: 0; }
.case-rich ul > li { position: relative; padding-left: 24px; }
.case-rich ul > li::before {
  content: ""; position: absolute; left: 0; top: .85em;
  width: 11px; height: 2px; border-radius: 2px; background: var(--pri);
}
.case-rich li + li { margin-top: .6em; }
.case-rich blockquote {
  margin: 1.8em 0; padding: 2px 0 2px 22px;
  border-left: 3px solid var(--pri);
  color: var(--ink); font-size: 1.14em; font-weight: 600;
  line-height: 1.65; letter-spacing: -.022em;
}
.case-rich blockquote > * { margin: 0; }

/* ---- 사진 넣기 창 ----
   [주의] 끌어다 놓는 과녁은 **크게** 잡는다. 작으면 조준하다 창 밖으로 떨어뜨리게 되는데,
   그러면 브라우저가 그 파일을 페이지 대신 열어 버려서 쓰던 글에서 튕겨 나간다.
   그래서 창 전체(배경 포함)가 놓을 수 있는 자리다. */
.case-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.case-modal[hidden] { display: none; }
.case-modal-back { position: absolute; inset: 0; background: rgba(6, 10, 18, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.case-modal-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 620px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel);
  box-shadow: 0 40px 90px -30px rgba(6, 10, 18, .6);
  padding: clamp(20px, 2.4vw, 28px);
}
.case-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.case-modal-head b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.case-modal-x {
  border: 0; background: transparent; cursor: pointer; color: var(--muted);
  font-family: inherit; font-size: 16px; line-height: 1; padding: 8px; border-radius: var(--r-sm);
}
.case-modal-x:hover { background: var(--bg-off); color: var(--ink); }
.case-mdrop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: clamp(220px, 34vh, 320px); padding: 20px; text-align: center;
  border: 2px dashed var(--input-line); border-radius: var(--r-lg);
  background: var(--surface-2); color: var(--muted); cursor: pointer; font-family: inherit;
  transition: background var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.case-mdrop:hover, .case-modal.is-drag .case-mdrop {
  background: var(--surface); border-color: var(--brand-text); color: var(--ink);
}
.case-mdrop-t { font-size: clamp(15px, 1.2vw, 17px); font-weight: 800; letter-spacing: -.01em; }
.case-mdrop-s { font-size: 13.5px; line-height: 1.55; opacity: .85; max-width: 30em; }
.case-modal-msg { margin: 14px 0 0; min-height: 1.4em; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.case-modal-msg.is-bad { color: #C0392B; }

/* 저장 단추는 화면 아래에 붙어 따라다닌다 — 긴 글을 고치다 저장하려고 맨 아래까지 내려갈 이유가 없다 */
.case-save {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  padding: 16px var(--edge) calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, var(--page) 34%);
}
.case-save-btn {
  border: 0; border-radius: 999px; cursor: pointer;
  padding: 16px 36px; background: var(--pri); color: #fff;
  font-family: inherit; font-size: 16px; font-weight: 800; letter-spacing: -.01em;
  box-shadow: 0 18px 40px -18px rgba(28, 62, 130, .8);
  transition: background var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.case-save-btn:hover { background: #1E357A; }
.has-motion .case-save-btn:hover { transform: translateY(-2px); }
.case-save-msg { font-size: 14.5px; font-weight: 700; color: var(--muted); }
.case-save-msg.is-bad { color: #C0392B; }

@media (max-width: 700px) {
  .case-meta-edit { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .case-rich { min-height: max(400px, 56vh); }
}

/* 본문 편집기 — 사진을 끌어다 놓는 중 */
.case-rich.is-drag { border-color: var(--brand-text); background: color-mix(in srgb, var(--pri) 5%, var(--surface)); }
.case-rich:empty::before {
  content: attr(data-ph); color: var(--faint); pointer-events: none;
}
.case-tb-hint { margin-left: auto; align-self: center; font-size: 12.5px; color: var(--faint); }

/* ---- 본문 사진 위의 [대표] 단추 (네이버 블로그 방식) ----
   [주의] 단추를 편집기 안쪽에 넣으면 그 마크업이 본문에 섞여 저장된다.
   편집기 위에 겹치는 별도의 층에 그리고, 자리는 theme.js 가 사진 위치를 재서 잡는다.
   층 자체는 클릭을 통과시킨다 — 안 그러면 사진을 고르거나 글자를 찍을 수 없다. */
.case-editor { position: relative; }
.case-badges { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.case-badge-wrap {
  position: absolute; border-radius: var(--r-md);
  transition: box-shadow var(--dur-1) var(--ease-out);
}
/* 지금 대표인 사진은 테두리로 표시한다 — 사진 자체에 클래스를 붙이면 본문에 저장된다 */
.case-badge-wrap.is-on { box-shadow: 0 0 0 3px var(--brand-text); }
.case-badge {
  position: absolute; top: 10px; right: 10px; pointer-events: auto;
  border: 0; border-radius: 999px; cursor: pointer;
  padding: 7px 14px;
  font-family: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: -.01em;
  background: rgba(6, 10, 18, .72); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.case-badge:hover { background: rgba(6, 10, 18, .92); }
.case-badge.is-on { background: var(--grad-btn); color: #fff; cursor: default; }
.case-badge:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ===== 폰 화면 블록 (자동 생성, mobilefix.php) ===== */
/* 375px 에서 실측해 고친 것만 모았다. 파일 맨 뒤에 둔다 —
   미디어 쿼리를 기본 선언보다 앞에 두면 뒤에 오는 기본 선언이 이긴다. */
@media (max-width: 560px) {
  /* 양옆 30px 은 375px 화면에서 폭의 16% 를 먹는다. 한 줄에 두 글자쯤 덜 들어간다. */
  :root { --edge: 20px; --fs-xs: 15px; --fs-sm: 15.5px; }

  /* 섹션 제목이 자리마다 36px(.sec-lead-title)과 27px(.sec-title)로 갈려 있었다.
     같은 역할의 제목이면 같은 크기여야 한다. 줄간 1.16~1.22 는 한글 두 줄에서 붙어 보인다. */
  .sec-title, .sec-lead-title { font-size: 32px; line-height: 1.3; }
  .hero-heading { line-height: 1.26; }

  /* 누르는 자리는 손가락 기준 44px 을 밑돌지 않게 한다. */
  .site-logo { min-height: 44px; display: inline-flex; align-items: center; }
  .skin-toggle { min-width: 44px; min-height: 44px; }
  .sec-lead-act, .case-back, .footer-links a, .footer-copy a,
  .board-cat, .gb-more, .ins-card .ins-title { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-policy a, .footer-sns a { min-height: 44px; display: inline-flex; align-items: center; }
  /* 문의 페이지의 전화·메일은 폰에서 바로 누르는 자리다 */
  .loc-row a { min-height: 44px; display: inline-flex; align-items: center; }
  /* 슬라이드 점은 9px 이었다. 보이는 크기는 키우되, 손가락이 닿는 넓이는
     보이지 않는 덧칸으로 따로 벌린다(점을 44px 로 그리면 줄이 지저분해진다). */
  .rev-dot, .cf-dot { width: 12px; height: 12px; position: relative; }
  .rev-dot.is-on, .cf-dot.is-on { width: 34px; }
  .rev-dot::after, .cf-dot::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 44px; height: 44px; transform: translate(-50%, -50%);
  }
  .rev-dots, .cf-dots { gap: 16px; padding: 16px 0; }

  /* 첫 화면이 붙잡는 구간. 트랙 175vh 는 폰에서 0.75화면을 더 긁어야 다음이 나온다 —
     손가락으로 미는 화면에서는 「안 내려간다」로 읽힌다. 교대는 살리고 남는 구간만 줄인다. */
  .stage-scroll .stage-track { height: 130vh; }

  /* 회사소개·서비스·채용의 도입부는 한 장이 100vh 라 세 장이면 폰에서 3화면을 고정으로 붙잡는다.
     고정판·끌어올림·장 높이가 모두 이 변수를 쓰므로 여기만 줄이면 셋이 같이 줄어든다. */
  .sec-sintro { --sintro-h: 72vh; }
  .sintro-step { padding-top: clamp(64px, 9vh, 96px); padding-bottom: clamp(72px, 10vh, 104px); }

  /* 가로로 셋을 욱여넣어 한 칸이 60px 밖에 안 됐다. 글자를 키우면 라벨이 글자마다 끊긴다. */
  .stage-facts { flex-wrap: wrap; row-gap: 10px; column-gap: 18px; }

  /* 작업 카드 설명은 보조 글자 바닥(15.5px)에 맞춘다 */
  .work-desc { font-size: 15.5px; }

  /* 작은 글자 바닥 올리기 (자동 생성) */
  .preview-bar { font-size: 15px; }   /* 13.5px */
  .feature-num { font-size: 15.5px; }   /* 14px */
  .pf-tag { font-size: 15px; }   /* 12.5px */
  .loc-label { font-size: 15px; }   /* 13px */
  .form-label { font-size: 15px; }   /* 13.5px */
  .consent-row { font-size: 15px; }   /* 13.5px */
  .board-notice { font-size: 15px; }   /* 12.5px */
  .board-cat-tag { font-size: 15px; }   /* 13px */
  .board-item-date { font-size: 15.5px; }   /* 14px */
  .gallery-cat { font-size: 15px; }   /* 13px */
  .gallery-date { font-size: 15px; }   /* 13.5px */
  .post-meta { font-size: 15.5px; }   /* 14px */
  .post-nav-item .dir { font-size: 15px; }   /* 13px */
  .site-footer { font-size: 15.5px; }   /* 14px */
  .footer-copy { font-size: 15px; }   /* 13px */
  .wc-pop-foot { font-size: 15px; }   /* 13.5px */
  .wc-pop-close { font-size: 15px; }   /* 13.5px */
  .wc-bar { font-size: 15.5px; }   /* 14px */
  .board-search-reset { font-size: 15.5px; }   /* 14px */
  .board-lock { font-size: 15px; }   /* 13px */
  .board-item-cc { font-size: 14.5px; }   /* 12px */
  .comment-badge { font-size: 14.5px; }   /* 11px */
  .comment-date { font-size: 15px; }   /* 13px */
  .comment-as { font-size: 15px; }   /* 13.5px */
  .form-hint { font-size: 15px; }   /* 12.5px */
  .gnb-member { font-size: 15.5px; }   /* 14px */
  .header-cta { font-size: 15.5px; }   /* 14px */
  .consent-link { font-size: 15.5px; }   /* 14px */
  .post-files .file-size { font-size: 15px; }   /* 13px */
  .float-btn { font-size: 15.5px; }   /* 14px */
  .tpl-sub { font-size: 15px; }   /* 13.5px */
  .tpl-feats li { font-size: 15px; }   /* 13.5px */
  .tpl-btn { font-size: 15px; }   /* 13.5px */
  .pack-price-note { font-size: 14.5px; }   /* 11px */
  .sol-pf { font-size: 15px; }   /* 13px */
  .skin-code { font-size: 15px; }   /* 12.5px */
  .skin-ask { font-size: 15.5px; }   /* 14px */
  .skin-demo { font-size: 15.5px; }   /* 14px */
  .pack-stats span { font-size: 15px; }   /* 12.5px */
  .pack-price span { font-size: 15px; }   /* 12.5px */
  .pack-ask { font-size: 15.5px; }   /* 14px */
  .steps-num { font-size: 15px; }   /* 13px */
  .steps-name { font-size: 15px; }   /* 13.5px */
  .gb-noimg-k { font-size: 14.5px; }   /* 11px */
  .gb-cat { font-size: 15px; }   /* 12.5px */
  .gb-view { font-size: 15.5px; }   /* 14px */
  .footer-sns a { font-size: 15px; }   /* 13.5px */
  .hero-fact-l { font-size: 14.5px; }   /* 12px */
  .work-ph-size { font-size: 14.5px; }   /* 11px */
  .cmp-badge { font-size: 14.5px; }   /* 11px */
  .rev-photo-size { font-size: 14.5px; }   /* 11px */
  .rev-role { font-size: 15px; }   /* 13px */
  .cmp-mval .cmp-txt { font-size: 15.5px; }   /* 14px */
  .bridge-lead { font-size: clamp(15.5px, 1.05vw, 16px); }   /* 14px */
  .flow-no { font-size: 15px; }   /* 13px */
  .svcb-visual-note { font-size: 15.5px; }   /* 14px */
  .mag-cat { font-size: 15px; }   /* 13px */
  .mag-sum { font-size: 15px; }   /* 13.5px */
  .bnf-desc { font-size: clamp(15px, 1vw, 15px); }   /* 13.5px */
  .cul-ph-size { font-size: 15px; }   /* 13px */
  .cul-cap { font-size: clamp(15px, 1vw, 15px); }   /* 13.5px */
  .rec-flag { font-size: 14.5px; }   /* 12px */
  .rec-m { font-size: clamp(15px, 1.05vw, 16px); }   /* 13px */
  .doc-body { font-size: clamp(15.5px, 1.05vw, 15.5px); }   /* 14px */
  .doc-open { font-size: 15px; }   /* 13px */
  .mag-flag { font-size: 14.5px; }   /* 11.5px */
  .art-adm-flag { font-size: 15px; }   /* 12.5px */
  .iq-sub { font-size: clamp(15px, 1.05vw, 15px); }   /* 13.5px */
  .iq-l { font-size: 15px; }   /* 13.5px */
  .iq-note { font-size: 15px; }   /* 12.5px */
  .iq-consent b { font-size: 15px; }   /* 13.5px */
  .iq-consent a { font-size: 15px; }   /* 12.5px */
  .iq-consent-t { font-size: 14.5px; }   /* 12px */
  .iq-msg { font-size: 15px; }   /* 13.5px */
  .iq-more { font-size: 15px; }   /* 13px */
  .jd-tag { font-size: 15.5px; }   /* 14px */
  .jd-tag-k { font-size: 15px; }   /* 12.5px */
  .art-cat { font-size: clamp(15.5px, 1.15vw, 16px); }   /* 14px */
  .art-meta { font-size: 15.5px; }   /* 14px */
  .art-files .file-size { font-size: 15px; }   /* 12.5px */
  .case-meta dt { font-size: 14.5px; }   /* 12px */
  .case-files .file-size { font-size: 15.5px; }   /* 14px */
  .gb-admin-sel { font-size: 15px; }   /* 13.5px */
  .gb-abtn { font-size: 15.5px; }   /* 14px */
  .gb-edit-btn { font-size: 15px; }   /* 13px */
  .case-adm-btn { font-size: clamp(15px, 1.05vw, 15px); }   /* 13.5px */
  .case-meta-edit span { font-size: 14.5px; }   /* 12px */
  .case-tb button { font-size: 15.5px; }   /* 14px */
  .case-mdrop-s { font-size: 15px; }   /* 13.5px */
  .case-modal-msg { font-size: 15px; }   /* 13.5px */
  .case-tb-hint { font-size: 15px; }   /* 12.5px */
  .case-badge { font-size: 15px; }   /* 12.5px */
}

@media (max-width: 480px) {
  .cmp-mlabel { font-size: 15.5px; }   /* 14px */
}
