/* =====================================================================
   ADDPHARMA — 완성판 테스트 사이트 공유 스타일
   F "Deep Current" 시안 style.css 기반 확장 · 디자인가이드 v2 준수
   ---------------------------------------------------------------------
   목차
   01. 토큰                          02. 베이스 · 유틸
   03. 타이포 · 섹션 레이블           04. 아이콘
   05. 버튼 · 링크                   06. GNB (로고 이미지 · 다크 투명 모드)
   07. 전체메뉴 오버레이              08. 푸터 (마스크 리빌 · © 관리자 진입)
   09. 히어로 슬라이더 (video 지원)   10. index 본문 섹션
   11. 공통 컴포넌트 (카드·리스트·탭·검색·칩·표·페이지네이션)
   12. 서브페이지 (서브히어로 · 게시판 상세 · 타임라인 · 지도)
   13. 파이프라인 표 (단계 6열 · 카테고리 도트 · 허가완료)
   14. 장비 그리드 · 셀 그리드 · 밸류 카드 · 프로즈
   15. 폼 (input/select/textarea/label) · 토스트 · 모달
   16. admin (사이드바 · 콘텐츠 · 테이블 · 폼 · 배지)
   17. 모션 (리빌 · 이미지 스케일 인 · 패럴랙스 · shot 고정)
   18. 반응형
===================================================================== */

/* ============ 01. 토큰 ============ */
:root {
  --bg: #FFFFFF;
  --bg-2: #F4F6F5;
  --dark: #0A0F0D;
  --ink: #101413;
  --ink-soft: #55605B;
  --line: #E2E6E4;
  --accent: #00B050;

  --w-65: rgba(255, 255, 255, .65);
  --w-line: rgba(255, 255, 255, .16);

  /* 크기 7단계 — 개선스펙 v3 A절 (카카오 실측 비례) · h4 토큰 폐지(→h3 또는 body 700) */
  --fs-display: clamp(40px, 5vw, 64px);
  --fs-h1: clamp(30px, 3.2vw, 40px);
  --fs-h2: clamp(24px, 2.4vw, 30px);
  --fs-h3: 19px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-label: 12px;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Pretendard Variable", Pretendard, -apple-system, sans-serif; /* 라벨 전용 — OS 모노(Consolas) 이질감 제거, Pretendard 통일(2026-07-17 타이포 점검) */

  --r: 8px;
  --r-m: 12px;
  --shadow-h: 0 12px 32px -16px rgba(10, 15, 13, .18);

  --danger: #C0392B;
  /* 텍스트 전용 그린 — 흰 배경 위 #00B050은 2.98:1로 AA 미달 → 소형 텍스트는 이 토큰 사용.
     그래픽(바·스트립·도트·아트·다크 배경 위)은 --accent 유지 */
  --accent-ink: #007A38;

  --ease: cubic-bezier(.16, 1, .3, 1);

  --gnb-h: 76px;
}

/* ============ 02. 베이스 ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  word-break: keep-all;
  overflow-wrap: break-word;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -.01em; /* 본문 자간 -0.01em (스펙 A) */
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
b, strong { font-weight: 700; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* 날짜 tabular-nums 안전망 — 라벨 폰트 Pretendard 전환에 따른 숫자폭 정렬 */
.d, .date, .ncard .d, .brow .date { font-variant-numeric: tabular-nums; }

/* 액센트 마침표 도트 */
.ap { color: var(--accent); }

/* ============ 03. 타이포그래피 ============ */
/* 웨이트 3단계(스펙 A): 700=헤딩·버튼·강조 / 400=본문·링크·메뉴 / 500=mono 레이블 전용.
   자간: 헤딩 -.02em · 본문 -.01em / 행간: 헤딩 1.3 · 본문 1.7 */
h1, h2, h3, h4 { line-height: 1.3; letter-spacing: -.02em; }

.t-display { font-size: var(--fs-display); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.t-h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.t-h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.t-h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.02em; }
.t-small { font-size: var(--fs-small); }

.t-label {
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* 섹션 레이블 — mono 텍스트만(카카오식 · 사각 도트 제거, 스펙 B) */
.lbl {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
}
.on-dark .lbl, .lbl.lbl-w { color: var(--w-65); }

/* 한글 mono 레이블 자간 보정(S2) — .12em은 한글에서 '보 도 자 료'로 벌어짐.
   한글 내용이 들어가는 레이블은 .ko 부여(또는 .cat 공통), 영문 레이블은 .12em 유지 */
.t-label.ko, .lbl.ko, .t-label .ko, .t-label .cat { letter-spacing: .02em; }

/* ============ 04. 아이콘 ============ */
.ic { display: inline-flex; flex: none; }
.ic svg {
  width: 100%; height: 100%;
  stroke: currentColor; stroke-width: 1.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic-16 { width: 16px; height: 16px; }
.ic-20 { width: 20px; height: 20px; }
.ic-28 { width: 28px; height: 28px; }

/* 아이콘 칩(.ic-chip) — 확정 규칙(사각 박스+라인 아이콘 금지)으로 폐기됨. 재도입 금지 */

/* ============ 05. 버튼 · 링크 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 24px;
  border-radius: var(--r);
  font-size: var(--fs-small); font-weight: 700; line-height: 1;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
.btn-lg { height: 52px; padding: 0 32px; font-size: var(--fs-body); }

.btn-pri { background: var(--dark); color: #fff; }
.btn-pri:hover { background: var(--ink); transform: translateY(-2px); }

.btn-ghost { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }

.on-dark .btn-pri { background: #fff; color: var(--dark); }
.on-dark .btn-pri:hover { background: var(--accent); color: #fff; }
.on-dark .btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.on-dark .btn-ghost:hover { background: #fff; color: var(--dark); border-color: #fff; }

.btn .ic { transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }

.morelink {
  display: inline-flex; align-items: center; gap: 10px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .4);
  color: #fff; font-size: var(--fs-small); font-weight: 700;
  transition: border-color .3s var(--ease);
}
.morelink .ic { transition: transform .3s var(--ease); }
.morelink:hover { border-color: var(--accent); }
.morelink:hover .ic { transform: translateX(4px); }

/* ============ 06. GNB ============ */

.brand { display: inline-flex; align-items: center; align-self: center; }

/* 로고 이미지 — 저해상도 원본이므로 높이 32px 고정(확대 금지) */
.logo-img { display: block; height: 32px; width: auto; }
.logo-w { display: none; }

/* --- 다크 히어로 위 투명 GNB 모드 ---
   body[data-nav="dark"] 페이지: GNB fixed + 스크롤 상단에서 .clear(투명·화이트 로고),
   스크롤 시 common.js가 .clear 제거 → 화이트 바 + 컬러 로고로 전환 */
body[data-nav="dark"] .hero { min-height: 100dvh; }

/* ============ 07. 전체메뉴 오버레이 ============ */
.ic-x { transform: rotate(45deg); }

/* 오버레이 열림 시 메뉴 항목 순차 등장 (40ms 스태거 · transform/opacity 한정) */

/* ============ 08. 푸터 ============ */
.footer { background: var(--dark); color: var(--w-65); overflow: hidden; }

/* 풀폭 초대형 로고 타이포(그래픽 요소 — 로고 대체 아님) + 마스크 슬라이드 업 */
.f-logo {
  font-size: 13.5vw; font-weight: 700; line-height: .95; letter-spacing: -.03em;
  color: #fff; text-align: center; white-space: nowrap;
  padding-top: 96px; margin-bottom: -1vw;
  user-select: none;
  overflow: hidden;
}
.f-logo .fl-in {
  display: block;
  transform: translateY(108%);
  transition: transform 1.1s var(--ease);
}
.f-logo.in .fl-in { transform: none; }
.f-logo span.ap { color: var(--accent); }

.f-body {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px;
  padding-top: 96px; padding-bottom: 64px;
  position: relative;
}
.f-body::before {
  content: ""; position: absolute; top: 0; left: 40px; right: 40px;
  height: 1px; background: var(--w-line);
}

.f-name { font-size: var(--fs-body); font-weight: 700; color: #fff; margin-bottom: 16px; }
.f-info p { font-size: var(--fs-small); }

.f-links a {
  display: block; padding: 8px 0;
  font-size: var(--fs-small); color: var(--w-65);
  transition: color .3s var(--ease);
}
.f-links a:hover { color: #fff; }
.f-links a.em { color: #fff; font-weight: 700; }

.f-cap {
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--w-65);
  margin-bottom: 8px;
}
.f-contact p {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 0; font-size: var(--fs-small);
}
.f-contact .ic { color: var(--accent); }

.f-bot {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-top: 24px; padding-bottom: 24px;
  position: relative;
}
.f-bot::before {
  content: ""; position: absolute; top: 0; left: 40px; right: 40px;
  height: 1px; background: var(--w-line);
}
.f-bot p { font-size: var(--fs-small); }

/* © 문자 — 감춤 관리자 진입(노출 스타일 없음) */
.f-adminlink { color: inherit; cursor: pointer; }

/* ============ 09. 히어로 슬라이더 ============ */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--gnb-h));
  background: var(--dark); color: #fff;
  overflow: hidden;
}

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease), visibility .9s var(--ease);
}
.hero-slide.act { opacity: 1; visibility: visible; z-index: 2; }

.hero-slide img, .hero-slide video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
/* 이미지 슬라이드 켄번즈 — 활성 6초 동안 미세 스케일 아웃 (video 제외 · GDWEB 실사 히어로 문법) */
.hero-slide img { transform: scale(1.05); }
.hero-slide.act img { transform: scale(1); transition: transform 7s linear; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(10, 15, 13, .94) 0%, rgba(10, 15, 13, .55) 42%, rgba(10, 15, 13, .22) 100%);
}

.hero-cap {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 1280px;
  padding: 0 40px 128px;
  z-index: 3;
}
.hero-cap .lbl { margin-bottom: 24px; }
.hero-title { font-size: var(--fs-display); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; color: #fff; }
.hero-desc { max-width: 560px; margin-top: 24px; color: var(--w-65); }
.hero-cap .morelink { margin-top: 32px; }

/* 슬라이드 진입 타이포 모션 — 기본 상태에 짧은 퇴장 트랜지션(.act 해제 시 팝아웃 방지) */
.hero-slide .hero-cap > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.hero-slide.act .hero-cap > * {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.hero-slide.act .hero-cap > :nth-child(2) { transition-delay: .1s; }
.hero-slide.act .hero-cap > :nth-child(3) { transition-delay: .2s; }
.hero-slide.act .hero-cap > :nth-child(4) { transition-delay: .3s; }

/* 워드 리빌 — 타이틀 내부 단어 단위 상승 (common.js가 .wd 스팬 래핑) */
.hero-title .wd { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero-title .wd > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); }
.hero-slide.act .hero-title .wd > span { transform: none; }
.hero-slide.act .hero-title .wd:nth-child(2) > span { transition-delay: .06s; }
.hero-slide.act .hero-title .wd:nth-child(3) > span { transition-delay: .12s; }
.hero-slide.act .hero-title .wd:nth-child(4) > span { transition-delay: .18s; }
.hero-slide.act .hero-title .wd:nth-child(5) > span { transition-delay: .24s; }
.hero-slide.act .hero-title .wd:nth-child(6) > span { transition-delay: .3s; }
.hero-slide.act .hero-title .wd:nth-child(n+7) > span { transition-delay: .36s; }

.hero-ctrl {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 1280px;
  padding: 0 40px 32px;
  display: flex; align-items: flex-end; gap: 32px;
  z-index: 4;
}
.hero-segs { display: flex; flex: 1; gap: 16px; }
.seg { flex: 1; text-align: left; padding: 12px 0 0; }
.seg .num {
  display: block; margin-bottom: 8px;
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .08em; color: rgba(255, 255, 255, .72);
  text-shadow: 0 1px 8px rgba(10, 15, 13, .45);
  transition: color .3s var(--ease);
}
.seg.act .num, .seg:hover .num { color: #fff; }
.seg .track {
  display: block; height: 2px; overflow: hidden;
  background: rgba(255, 255, 255, .25);
}
.seg .bar {
  display: block; height: 100%; width: 100%;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
}
.seg.act .bar { animation: segfill 6s linear forwards; }
.hero.paused .seg.act .bar { animation-play-state: paused; }
@keyframes segfill { to { transform: scaleX(1); } }

.hero-pause {
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .08em; color: var(--w-65);
  padding: 12px 0;
  transition: color .3s var(--ease);
}
.hero-pause:hover { color: #fff; }

/* ============ 10. index 본문 섹션 ============ */
.sec { padding: 96px 0; } /* 섹션 패딩 96px 통일 (스펙 C) */
.sec-tint { background: var(--bg-2); }
.on-dark { background: var(--dark); color: #fff; }

/* 섹션 헤더 v2 (카카오 지속가능성 실측 이식 — 2026-07)
   위계 역전: 영문 타이틀을 대형(400)으로, 국문은 문장형 서브타이틀(700)로 그 아래.
   설명은 국문 아래 좌측 흐름(우측 여백 배치 폐기). 우측 액션 버튼만 2열 유지. */
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 48px; align-items: end;
  margin-bottom: 56px;
}
.sec-head > :first-child { grid-column: 1; }
.sec-head .lbl {
  font-family: var(--font);
  font-size: clamp(26px, 2.8vw, 36px); font-weight: 400;
  letter-spacing: .01em; text-transform: uppercase; line-height: 1.15;
  color: var(--ink);
}
.on-dark .sec-head .lbl, .sec-head .lbl.lbl-w { color: #fff; }
.sec-head .t-h2 {
  margin-top: 12px;
  font-size: clamp(19px, 1.8vw, 23px); /* 국문 = 문장형 서브타이틀 */
}
.sec-head-desc {
  grid-column: 1;
  margin-top: 18px;
  color: var(--ink-soft); max-width: 62ch; text-align: left; text-wrap: pretty;
}
.on-dark .sec-head-desc { color: var(--w-65); }
.sec-head-act { grid-column: 2; grid-row: 1; justify-self: end; align-self: end; }

/* --- 사업 3 : 대형 이미지 카드 --- */
.bizgrid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: start;
}
.bizcard {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r-m); background: var(--dark);
  aspect-ratio: 4 / 5;
  transition: box-shadow .3s var(--ease);
}
.bizcard:hover { box-shadow: var(--shadow-h); }
.bizcard > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease);
}
.bizcard::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 15, 13, .88) 0%, rgba(10, 15, 13, .25) 55%, rgba(10, 15, 13, .05) 100%);
}
.bizcard-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 32px; color: #fff; }
.bizcard-body .t-label { color: var(--w-65); }
.bizcard-body h3 { font-size: var(--fs-h3); font-weight: 700; margin-top: 8px; }
.bizcard-body p { font-size: var(--fs-small); color: var(--w-65); margin-top: 12px; }
.bizcard-go {
  position: absolute; top: 24px; right: 24px; z-index: 2;
  width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .4); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center; color: #fff;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.bizcard:hover .bizcard-go, .bizcard:focus-visible .bizcard-go { opacity: 1; transform: none; }
@media (hover: none) { .bizcard-go { opacity: 1; transform: none; } }
.bizgrid > :nth-child(2) { margin-top: 48px; }
.bizgrid > :nth-child(3) { margin-top: 96px; }

/* 이미지 스케일 인(1.08→1) — .rv.imgin 조합, 리빌 시 축소 완료 */
.imgin > img { transform: scale(1.08); transition: transform 1.2s var(--ease); }
.imgin.in > img { transform: scale(1); }
.bizcard:hover > img { transform: scale(1.06); }

/* --- 핵심기술 : 번호 리스트 행 --- */
.techlist { border-top: 1px solid var(--line); }
.techrow {
  /* 설명 칼럼 시작선을 sec-head 우측 설명(50%+24px)과 일치 — 섹션 전체에 세로 정렬선 형성 */
  display: grid; grid-template-columns: 96px calc(50% - 136px) minmax(0, 1fr); gap: 32px;
  align-items: baseline;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.techrow .num {
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .08em; color: var(--accent-ink);
}
.techrow h3 { font-size: var(--fs-h3); font-weight: 700; }
.techrow p { color: var(--ink-soft); align-self: start; } /* 설명 상단 정렬 — 첫 줄은 제목과 베이스라인(스펙 C/H) */

/* 앵커 랜딩 — 고정/스티키 GNB에 섹션 제목이 가리지 않게 (GNB 소제목 드롭다운) */
section[id], [id^="pane-"] { scroll-margin-top: calc(var(--gnb-h, 72px) + 24px); }

/* --- 배경 패럴랙스 (phero·vband 공용) --- */
[data-plx] { will-change: transform; }

/* --- 연혁(최근) --- */
.histlist { border-top: 1px solid var(--line); }
.histrow {
  display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 48px;
  padding: 32px 0; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.histyear {
  font-size: var(--fs-h3); font-weight: 700; font-variant-numeric: tabular-nums;
}
.histrow h3, .histrow h4 { font-size: var(--fs-body); font-weight: 700; }
.histrow .t-small { color: var(--ink-soft); margin-top: 8px; }

/* --- 클로징 CTA --- */
.cta-band { border-top: 1px solid var(--line); }
.cta-in { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 48px; align-items: center; }
.cta-act { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ 11. 공통 컴포넌트 ============ */

/* --- 뉴스/카드뉴스 스트립 카드 --- */
.newsgrid, .cardgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.ncard {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.ncard:hover { box-shadow: var(--shadow-h); border-color: var(--ink-soft); }

.ncard-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--dark); }
.ncard-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease);
}
.ncard:hover .ncard-media img { transform: scale(1.06); }
.ncard-mark {
  position: absolute; left: 16px; bottom: 12px; z-index: 2;
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 8px rgba(10, 15, 13, .6);
}
.ncard-strip { height: 6px; background: var(--accent); flex: none; }

.ncard-body { padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ncard-meta { display: flex; align-items: center; gap: 16px; }
.ncard-meta .cat { color: var(--accent-ink); }
.ncard-meta .date { color: var(--ink-soft); }
.ncard-body h3 {
  font-size: var(--fs-h3); font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ncard-body .desc {
  font-size: var(--fs-small); color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ncard-src { font-size: var(--fs-small); color: var(--ink-soft); margin-top: auto; }

.ncard-media.typo {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px; background: var(--dark);
}
.ncard-media.typo .t-label { color: var(--w-65); }
.ncard-media.typo .typo-word {
  font-size: var(--fs-h2); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: #fff;
}

.ncard.feat { grid-column: span 2; }

/* --- 게시판 리스트 행 --- */
.blist { border-top: 1px solid var(--line); }
.brow {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) 24px;
  gap: 24px; align-items: center;
  padding: 24px 16px; border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease);
}
.brow .meta-cell { display: flex; align-items: center; gap: 16px; }
.brow:hover { background: var(--bg-2); }
.brow .date { color: var(--ink-soft); }
.brow .cat { color: var(--accent-ink); }
.brow h3 { font-size: var(--fs-body); font-weight: 700; }
.brow .ic { color: var(--ink-soft); transition: transform .3s var(--ease), color .3s var(--ease); }
.brow:hover .ic { transform: translate(2px, -2px); color: var(--ink); }

/* --- 탭 (밑줄형) --- */
.tabbar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.tabs { display: flex; gap: 32px; }
.tab {
  position: relative; padding: 16px 0;
  font-size: var(--fs-body); font-weight: 400; color: var(--ink-soft); /* 탭 기본 400 · 활성 700 */
  transition: color .3s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.act { color: var(--ink); font-weight: 700; }
.tab.act::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--ink);
}

/* --- 검색 폼 --- */
.searchbar { display: flex; align-items: center; gap: 12px; }
.searchbar input {
  height: 48px; width: 260px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg); outline: none;
  font-size: var(--fs-small);
  transition: border-color .3s var(--ease);
}
.searchbar input:focus { border-color: var(--ink); }
.searchbar input::placeholder { color: var(--ink-soft); }
.searchbar .sbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px;
  border-radius: var(--r); background: var(--dark); color: #fff;
  font-size: var(--fs-small); font-weight: 700;
  transition: background-color .3s var(--ease);
}
.searchbar .sbtn:hover { background: var(--ink); }

/* --- 필터 칩 --- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.chip {
  display: inline-flex; align-items: center;
  height: 44px; padding: 0 24px;
  border: 1px solid var(--line); border-radius: var(--r);
  font-size: var(--fs-small); font-weight: 400; color: var(--ink-soft); /* 칩 기본 400 · 활성 700 */
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.act { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }

/* --- 더 보기 / 페이지네이션 --- */
.morewrap { display: flex; justify-content: center; margin-top: 64px; }

.pgn { display: flex; justify-content: center; gap: 8px; margin-top: 64px; }
.pgn[hidden] { display: none; } /* hidden 속성이 display:flex에 지는 함정 방지(1페이지 이하 유령 여백) */
.pgn a, .pgn button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: var(--r);
  font-size: var(--fs-small); font-weight: 400; color: var(--ink-soft);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.pgn a:hover, .pgn button:hover { border-color: var(--ink); color: var(--ink); }
.pgn .gap { display: inline-flex; align-items: flex-end; padding: 0 4px; color: var(--ink-soft); }
.pgn .act { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }

/* --- IR 섹션 간격 --- */
.ir-sec + .ir-sec { margin-top: 96px; }

/* --- 표 (IR 재무) --- */
.tbl-wrap { overflow-x: auto; }
.fin-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.fin-table th, .fin-table td { padding: 16px 24px; text-align: right; }
.fin-table thead th {
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
  font-size: var(--fs-small); font-weight: 700;
}
.fin-table thead th:first-child { text-align: left; }
.fin-table tbody td, .fin-table tbody th { border-bottom: 1px solid var(--line); }
.fin-table tbody th { text-align: left; font-size: var(--fs-body); font-weight: 700; }
.fin-table td { font-variant-numeric: tabular-nums; }
.fin-table td.na { color: var(--ink-soft); }
.footnote { margin-top: 16px; font-size: var(--fs-small); color: var(--ink-soft); }

/* --- 다운로드 리스트 --- */
.dl-list { border-top: 1px solid var(--line); }
.dl-row {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 24px;
  gap: 24px; align-items: center;
  padding: 24px 16px; border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease);
}
.dl-row:hover { background: var(--bg-2); }
.dl-row h3 { font-size: var(--fs-body); font-weight: 700; }
.dl-row .fmt { color: var(--ink-soft); }
.dl-row .ic { color: var(--ink-soft); transition: color .3s var(--ease), transform .3s var(--ease); }
.dl-row:hover .ic { color: var(--accent); transform: translateY(2px); }

/* --- 문의 패널 --- */
.contact-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 48px;
}
.contact-lines { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 24px; }
.contact-lines span, .contact-lines a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.contact-lines .ic { color: var(--accent); }

/* --- 그레이 라운드 컨테이너 (카카오 IR식 — 공지 목록·인증·요약 리스트) --- */
.gray-panel { background: var(--bg-2); border-radius: var(--r-m); padding: 8px 32px; }
.gray-panel .grow {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.gray-panel .grow:last-child { border-bottom: 0; }
.gray-panel .grow h3 { font-size: var(--fs-body); font-weight: 700; min-width: 0; }
.gray-panel .grow .date { flex: none; font-size: var(--fs-small); color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* --- t-split — 실사 좌 + 딥 패널 우 (index·testing 공용, 인라인 정의 승격) --- */
.tsplit {
  display: grid; grid-template-columns: 1.05fr 1fr;
  border-radius: var(--r-m); overflow: hidden;
  box-shadow: var(--shadow-h);
}
.tphoto { position: relative; min-height: 560px; background: var(--dark); }
.tphoto img, .tphoto video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 영상 루프(R2) — 캡처·모션 감소 시 poster(img)로 폴백 */
html.shot .tphoto video { display: none; }
@media (prefers-reduced-motion: reduce) { .tphoto video { display: none; } }
.tpanel { padding: 56px 48px; display: flex; flex-direction: column; background: var(--dark); color: #fff; }
.tpanel .t-h2 { margin-top: 16px; color: #fff; }
.tp-desc { margin-top: 16px; color: var(--w-65); max-width: 440px; }
.tp-svc {
  margin-top: 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px;
  border-top: 1px solid var(--w-line);
}
.tp-svc .row { padding: 14px 0 12px; border-bottom: 1px solid var(--w-line); }
.tp-svc h3, .tp-svc .row > span:first-child { display: block; font-size: var(--fs-small); font-weight: 700; color: #fff; line-height: 1.5; }
.tp-svc p { font-size: var(--fs-small); color: var(--w-65); margin-top: 2px; }
.tp-steps { margin-top: 40px; display: flex; align-items: center; }
.tp-steps li {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-small); color: rgba(255, 255, 255, .92); white-space: nowrap;
}
.tp-steps li b {
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 700;
  letter-spacing: .08em; color: var(--accent);
}
.tp-steps li:not(:last-child) { flex: 1; }
.tp-steps li:not(:last-child)::after {
  content: ""; flex: 1; height: 1px; min-width: 12px;
  background: var(--w-line); margin: 0 14px;
}
.tp-cta { margin-top: auto; padding-top: 40px; }

/* --- 인증 그레이 컨테이너 (testing) --- */
.certbox { background: var(--bg-2); border-radius: var(--r-m); padding: 8px 40px; }
.certbox .crow {
  display: grid; grid-template-columns: 240px minmax(0, 1fr) auto;
  gap: 8px 32px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.certbox .crow:last-child { border-bottom: 0; }
.crow h3 { font-size: var(--fs-body); font-weight: 700; }
.crow .cdesc { font-size: var(--fs-small); color: var(--ink-soft); }
.crow .cno {
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .08em; color: var(--ink-soft);
}

@media (max-width: 1024px) {
  .tsplit { grid-template-columns: 1fr; }
  .tphoto { min-height: 320px; }
}
@media (max-width: 768px) {
  .tpanel { padding: 32px 24px; }
  .tp-svc { grid-template-columns: 1fr; gap: 0; }
  .tp-steps { flex-direction: column; align-items: stretch; margin-top: 32px; }
  .tp-steps li { white-space: normal; padding: 10px 0; border-bottom: 1px solid var(--w-line); }
  .tp-steps li:last-child { border-bottom: 0; }
  .tp-steps li:not(:last-child)::after { display: none; }
  .tp-cta { padding-top: 32px; }
  .certbox { padding: 4px 24px; }
  .certbox .crow { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .gray-panel { padding: 4px 20px; }
  .gray-panel .grow { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 0; }
}

/* ============ 12. 서브페이지 ============ */
.phero {
  position: relative; display: flex; align-items: flex-end;
  min-height: 260px;
  background: var(--dark); color: #fff;
  overflow: hidden;
}
.phero.low { min-height: 240px; }
.phero-bg { position: absolute; inset: 0; }
.phero-bg img { width: 100%; height: 100%; object-fit: cover; }
.phero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 15, 13, .94) 0%, rgba(10, 15, 13, .66) 100%);
}
.phero-in { position: relative; z-index: 2; width: 100%; padding-top: 48px; padding-bottom: 48px; }

/* 서브히어로 진입 시퀀스 — common.js가 html.js-anim(숨김 준비)→js-in(발화) 부여.
   js-anim 없는 환경(무 JS)에서는 숨김 자체가 없음 */
html.js-anim .phero-in > .bc { opacity: 0; transition: opacity .5s var(--ease); }
html.js-anim .phero-in > h1 { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease) .1s, transform .7s var(--ease) .1s; }
html.js-anim .phero-in > .desc { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease) .28s, transform .6s var(--ease) .28s; }
html.js-in .phero-in > .bc, html.js-in .phero-in > h1, html.js-in .phero-in > .desc { opacity: 1; transform: none; }
.bc { display: flex; flex-wrap: wrap; gap: 8px; color: var(--w-65); font-family: var(--mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: .02em; } /* 한글 브레드크럼 — 자간 최소·uppercase 제거 */
.bc a { transition: color .3s var(--ease); }
.bc a:hover { color: #fff; }
.bc .sep { opacity: .5; }
.phero-in h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; margin-top: 12px; }
.phero-in .desc { margin-top: 12px; color: var(--w-65); }

/* 상하만 지정(롱핸드) — .wrap의 좌우 40px 패딩을 덮어쓰지 않도록 (정렬 스펙 C) */
.sub-body { padding-top: 64px; padding-bottom: 96px; }
.sub-sec + .sub-sec { margin-top: 96px; }

.panel { display: none; }
.panel.act { display: block; }
.ncard[hidden] { display: none; }

/* --- 게시판 상세 (news-view) --- */
.article { max-width: 840px; margin: 0 auto; }
.article-head { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.article-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.article-meta .cat { color: var(--accent-ink); }
.article-meta .date, .article-meta .src { color: var(--ink-soft); }
.article-head h1 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }

.article-body { padding: 48px 0 64px; }
.article-body p + p { margin-top: 24px; }
.article-body .note { margin-top: 32px; font-size: var(--fs-small); color: var(--ink-soft); }

.article-nav { border-top: 1px solid var(--line); }
.anav-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px;
  align-items: center;
  padding: 20px 16px; border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease);
}
.anav-row:hover { background: var(--bg-2); }
.anav-row .dir {
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
}
.anav-row h3 { font-size: var(--fs-small); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anav-row.off { pointer-events: none; }
.anav-row.off h3 { color: var(--ink-soft); font-weight: 400; }
.article-actions { display: flex; justify-content: center; gap: 12px; margin-top: 48px; }

/* --- 지도 placeholder (오시는 길) --- */
.map-ph {
  position: relative;
  aspect-ratio: 21 / 9;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-m);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--ink-soft);
}
.map-ph .ic { color: var(--accent); }
.map-ph p { font-size: var(--fs-small); }

.loc-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 48px; }
.loc-info li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.loc-info li:first-child { border-top: 1px solid var(--line); }
.loc-info .ic { color: var(--ink-soft); margin-top: 4px; }
.loc-info h4 { font-size: var(--fs-body); font-weight: 700; }
.loc-info p { font-size: var(--fs-small); color: var(--ink-soft); }

/* ============ 13. 파이프라인 — rnd 페이지 인라인 .plr 행이 현행(구 표 스타일 폐기) ============ */
/* 허가완료 섹션 — 그룹 리스트(.dgroup, rnd 페이지 인라인)가 현행. 구 donegrid/done-item 폐기 */
.pl-done { margin-top: 96px; }

/* ============ 14. 장비 그리드 · 셀 그리드 · 밸류 카드 · 프로즈 ============ */

/* 라이트 헤어라인 셀 그리드 — 장비/절차/활동/인재상 공용 */
.cellgrid {
  display: grid; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.cellgrid.c2 { grid-template-columns: repeat(2, 1fr); }
.cellgrid.c3 { grid-template-columns: repeat(3, 1fr); }
.cellgrid.c4 { grid-template-columns: repeat(4, 1fr); }
.cellgrid.c6 { grid-template-columns: repeat(6, 1fr); }
.cell { background: var(--bg); padding: 28px 24px; }
.cell .num {
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .08em; color: var(--accent-ink);
}
.cell .ic-28 { color: var(--accent); }
.cell h3, .cell h4 { font-size: var(--fs-body); font-weight: 700; margin-top: 12px; }
.cell p { font-size: var(--fs-small); color: var(--ink-soft); margin-top: 8px; }

/* 장비 그리드 (8종 — 부연 포함) */
.eqgrid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.eq { background: var(--bg); padding: 32px 24px; }
.eq .t-label { color: var(--accent-ink); }
.eq h3, .eq h4 { font-size: var(--fs-body); font-weight: 700; margin-top: 8px; }
.eq p { font-size: var(--fs-small); color: var(--ink-soft); margin-top: 8px; }

/* 밸류 카드(.vgrid/.vcard) — 동일 카드 반복 그리드 금지 규칙으로 폐기됨(→ cellgrid·헤어라인 행) */

/* 그룹 헤드 (ESG 활동 3그룹 등) */
.group-head { display: flex; align-items: baseline; gap: 24px; margin: 64px 0 24px; }
.group-head h3 { font-size: var(--fs-h3); font-weight: 700; }
.group-head p { font-size: var(--fs-small); color: var(--ink-soft); }

/* 프로즈 (CEO 인사말 · 서사형 본문) — 문단 max-width 68ch (스펙 C) */
.prose { max-width: 68ch; text-wrap: pretty; }
.prose p + p { margin-top: 24px; }
.prose .sign { margin-top: 48px; font-weight: 700; }
.article-body p { max-width: 68ch; text-wrap: pretty; }
.tp-desc, .footnote { text-wrap: pretty; }

/* 채용 공고 행 */
.jobrow {
  display: grid; grid-template-columns: minmax(0, 1fr) 140px 140px 100px 24px;
  gap: 24px; align-items: center;
  padding: 24px 16px; border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease);
}
.jobrow:first-child { border-top: 1px solid var(--line); }
.jobrow:hover { background: var(--bg-2); }
.jobrow h3 { font-size: var(--fs-body); font-weight: 700; }
.jobrow .sub { font-size: var(--fs-small); color: var(--ink-soft); margin-top: 4px; }
.jobrow .col { font-size: var(--fs-small); color: var(--ink-soft); }
.jobrow .ic { color: var(--ink-soft); }

/* 상태 배지 (채용 마감 · 접수 상태 등) */
.badge {
  display: inline-flex; align-items: center;
  height: 28px; padding: 0 12px;
  border-radius: var(--r); border: 1px solid var(--line);
  /* 한글 배지가 mono 자간으로 벌어지던 문제(AI티 점검 54) — 본문 폰트 700, 자간 0 */
  font-size: var(--fs-label); font-weight: 700;
  letter-spacing: 0; color: var(--ink-soft);
  white-space: nowrap;
}
.badge.ok { border-color: var(--accent); color: var(--accent-ink); }
.badge.dark { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ============ 15. 폼 · 토스트 · 모달 ============ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label { font-size: var(--fs-small); font-weight: 700; }
.field .req { color: var(--accent-ink); }
.field .hint { font-size: var(--fs-small); color: var(--ink-soft); }

/* 폼 요소 한정 — 리빌 상태 클래스 .rv.in / .f-logo.in 과의 충돌 방지를 위해 요소 한정자 필수 */
input.in, select.in, textarea.in {
  height: 48px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg); outline: none;
  font-size: var(--fs-small); color: var(--ink);
  transition: border-color .3s var(--ease);
  width: 100%;
}
input.in:focus, select.in:focus, textarea.in:focus { border-color: var(--ink); }
input.in::placeholder, textarea.in::placeholder { color: var(--ink-soft); }

textarea.in { height: auto; min-height: 160px; padding: 12px 16px; resize: vertical; line-height: 1.7; }

select.in {
  appearance: none; -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355605B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  cursor: pointer;
}

/* --- 인라인 필드 오류 (S8 — AP.mark/unmark와 쌍) --- */
input.in.in-err, select.in.in-err, textarea.in.in-err { border-color: var(--danger); }
.agree-box.in-err { box-shadow: inset 0 0 0 1px var(--danger); }
.ferr { font-size: var(--fs-small); color: var(--danger); }
.ferr[hidden] { display: none; }

.form-actions { display: flex; justify-content: flex-end; gap: 16px; margin-top: 32px; }
.form-panel {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 48px;
}

/* --- 허니팟 (AP.guard가 주입 — 시각·접근성 트리 밖) --- */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* --- 개인정보 수집·이용 동의 블록 (폼 3종 공통) --- */
.agree-box {
  margin-top: 24px; padding: 16px 20px;
  background: var(--bg-2); border-radius: var(--r);
  font-size: var(--fs-small);
}
.agree-box .sum { color: var(--ink-soft); line-height: 1.7; }
.agree-box .sum a { text-decoration: underline; text-underline-offset: 3px; }
.agree-box label { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 700; cursor: pointer; }
.agree-box input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* --- 접수 완료 패널 (모달 내부 전환 — 접수번호·조회 PIN 표기) --- */
.done-panel { text-align: center; padding: 48px 24px; }
.done-panel .ic { color: var(--accent); }
.done-panel h3 { font-size: var(--fs-h3); font-weight: 700; margin-top: 16px; }
.done-panel .no { font-family: var(--mono); font-size: var(--fs-h2); font-weight: 700; letter-spacing: .04em; margin-top: 16px; }
.done-panel .pin { font-family: var(--mono); font-size: var(--fs-body); color: var(--ink-soft); margin-top: 8px; }
.done-panel .desc { max-width: 48ch; margin: 16px auto 0; color: var(--ink-soft); font-size: var(--fs-small); }
.done-panel .acts { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* --- 라이트박스 (카드뉴스 슬라이드) --- */
.lightbox { position: fixed; inset: 0; z-index: 250; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox .lb-bg { position: absolute; inset: 0; background: rgba(10, 15, 13, .88); }
.lightbox .lb-box { position: relative; z-index: 2; width: min(720px, 100%); }
.lightbox .lb-media { aspect-ratio: 4 / 3; background: var(--dark); border-radius: var(--r-m); overflow: hidden; }
.lightbox .lb-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox .lb-media .typo-cover {
  width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 32px;
  color: #fff;
}
.lightbox .lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; color: #fff; }
.lightbox .lb-cnt { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .08em; color: var(--w-65); }
.lightbox .lb-bar button {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px;
  color: var(--w-65); transition: color .3s var(--ease);
}
.lightbox .lb-bar button:hover { color: #fff; }
.lightbox .lb-title { font-size: var(--fs-small); font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- 풀스크린 폼 모달 (시험의뢰·제보 공용 — testing 인라인 정의 승격) --- */
.reqmodal {
  position: fixed; inset: 0; z-index: 240;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.reqmodal.open { display: flex; }
.rm-bg { position: absolute; inset: 0; background: rgba(10, 15, 13, .55); }
.rm-box {
  position: relative; z-index: 2;
  width: 100%; max-width: 960px;
  height: 90vh; height: 90dvh; /* dvh 미지원 폴백 */
  background: var(--bg); border-radius: var(--r-m);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.rm-head {
  flex: none;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 28px 40px 20px;
  border-bottom: 1px solid var(--line);
}
.rm-head .t-h3 { margin-top: 8px; }
.rm-x {
  align-self: flex-start; flex: none;
  width: 44px; height: 44px; border-radius: var(--r);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.rm-x:hover { background: var(--bg-2); color: var(--ink); }
.rm-body {
  flex: 1; min-height: 0; overflow-y: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px;
  align-items: start;
  padding: 40px;
}
.rm-body.single { grid-template-columns: minmax(0, 1fr); } /* 안내 칼럼 없는 모달(제보) */
.rm-side {
  position: sticky; top: 0;
  border-left: 1px solid var(--line); padding-left: 32px;
  display: flex; flex-direction: column; gap: 32px;
}
.rm-side .t-label { color: var(--ink-soft); }
.rm-note { font-size: var(--fs-small); color: var(--ink-soft); margin-top: 12px; }
.rm-lines { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.rm-lines span, .rm-lines a { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--ink-soft); }
.rm-lines .ic { color: var(--accent); }
.rm-steps { margin-top: 12px; border-top: 1px solid var(--line); }
.rm-steps li { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rm-steps b {
  flex: none;
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 700;
  letter-spacing: .08em; color: var(--accent-ink);
}
.rm-steps h3 { font-size: var(--fs-small); font-weight: 700; }
.rm-steps p { font-size: var(--fs-small); color: var(--ink-soft); margin-top: 2px; }

@media (max-width: 768px) {
  .rm-head { padding: 20px 24px 16px; }
  .rm-body { grid-template-columns: 1fr; gap: 40px; padding: 32px 24px; }
  .rm-side { position: static; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
}

/* --- 토스트 --- */
.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 300;
  transform: translate(-50%, 16px);
  display: inline-flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 40px);
  background: var(--dark); color: #fff;
  padding: 14px 24px; border-radius: var(--r);
  font-size: var(--fs-small); font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { color: var(--accent); }

/* --- 모달 --- */
.modal {
  position: fixed; inset: 0; z-index: 250;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(10, 15, 13, .55); }
.modal-box {
  position: relative; z-index: 2;
  width: 100%; max-width: 720px; max-height: 85vh; overflow-y: auto;
  background: var(--bg); border-radius: var(--r-m);
  padding: 48px;
}
.modal-box .article-meta { margin-bottom: 12px; }
.modal-box h2 { font-size: var(--fs-h3); font-weight: 700; margin-bottom: 24px; }
.modal-body p + p { margin-top: 16px; }
.modal-x {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: var(--r);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.modal-x:hover { background: var(--bg-2); color: var(--ink); }

/* ============ 16. admin ============ */
body.adm-body { background: var(--bg-2); }

.adm { display: flex; min-height: 100dvh; }

.adm-side {
  width: 248px; flex: none;
  background: var(--bg); border-right: 1px solid var(--line);
  position: sticky; top: 0; height: 100dvh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.adm-logo { display: flex; align-items: center; gap: 12px; padding: 24px 24px 16px; }
.adm-logo .t-label { color: var(--ink-soft); }
.adm-nav { padding: 16px 0; flex: 1; }
.adm-nav .adm-cap {
  padding: 16px 24px 8px;
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
}
.adm-nav a, .adm-nav button {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 12px 24px;
  border-left: 3px solid transparent;
  font-size: var(--fs-small); font-weight: 400; color: var(--ink-soft); /* 메뉴 기본 400 · 활성 700 */
  text-align: left;
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.adm-nav a:hover, .adm-nav button:hover { color: var(--ink); background: var(--bg-2); }
.adm-nav .act { color: var(--ink); background: var(--bg-2); border-left-color: var(--accent); font-weight: 700; }
.adm-side-foot { padding: 24px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-soft); }

.adm-main { flex: 1; min-width: 0; padding: 40px; }
.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.adm-head h1 { font-size: var(--fs-h3); font-weight: 700; }
.adm-head .sub { font-size: var(--fs-small); color: var(--ink-soft); margin-top: 4px; }

/* 데모 고지 배너 */
.adm-banner {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 12px 20px; margin-bottom: 24px;
  font-size: var(--fs-small); color: var(--ink-soft);
}
.adm-banner .ic { color: var(--accent); }

.adm-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 32px;
}
.adm-card + .adm-card { margin-top: 24px; }
.adm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.adm-card-head h2 { font-size: var(--fs-body); font-weight: 700; }

/* 대시보드 카운트 타일 */
.adm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px;
}
.stat .t-label { color: var(--ink-soft); }
.stat .val { font-size: var(--fs-h2); font-weight: 700; line-height: 1.2; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat .val small { font-size: var(--fs-small); font-weight: 400; color: var(--ink-soft); margin-left: 4px; }

/* admin 표 */
.adm-tbl-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.adm-table th, .adm-table td { padding: 12px 16px; text-align: left; vertical-align: middle; }
.adm-table thead th {
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
  font-weight: 700; white-space: nowrap;
}
.adm-table tbody td { border-bottom: 1px solid var(--line); }
.adm-table tbody tr:hover { background: var(--bg-2); }
.adm-table .num { font-variant-numeric: tabular-nums; }
.adm-table .acts { display: flex; gap: 8px; white-space: nowrap; }

/* 소형 버튼 (표 안 액션) */
.btn-sm {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r);
  font-size: var(--fs-label); font-family: var(--mono); font-weight: 500;
  letter-spacing: .06em; color: var(--ink-soft);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn-sm:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm.danger:hover { border-color: var(--danger); color: var(--danger); }
.btn-sm.pri { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn-sm.pri:hover { background: var(--ink); }

/* admin 로그인 게이트 */
.adm-login[hidden], .adm[hidden] { display: none !important; }
.adm-login {
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: var(--bg-2);
}
.adm-login-box {
  width: 100%; max-width: 400px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 48px 40px;
}
.adm-login-box .brand { margin-bottom: 32px; }
.adm-login-box h1 { font-size: var(--fs-h3); font-weight: 700; margin-bottom: 8px; }
.adm-login-box .sub { font-size: var(--fs-small); color: var(--ink-soft); margin-bottom: 32px; }
.adm-login-box .field + .field { margin-top: 16px; }
.adm-login-box .btn { width: 100%; margin-top: 24px; }
.adm-login-box .hint-box {
  margin-top: 24px; padding: 12px 16px;
  background: var(--bg-2); border-radius: var(--r);
  font-size: var(--fs-small); color: var(--ink-soft);
}
.adm-login-box .err { margin-top: 12px; font-size: var(--fs-small); color: var(--danger); }

/* JSON 내보내기/가져오기 */
.adm-json { font-family: var(--mono); font-size: var(--fs-small); line-height: 1.6; min-height: 220px; }

/* admin 섹션 전환 */
.adm-sec { display: none; }
.adm-sec.act { display: block; }

/* ============ 17. 모션 ============ */
/* 위계별 리빌 3종 (모션 v4):
   ① .rv           — 본문 블록 기본 페이드업
   ② .rv.rv-mask   — 섹션 h2 마스크 리빌 (내부 <span> 필수: <h2 class="t-h2 rv rv-mask"><span>…</span></h2>)
   ③ 리스트 행      — .rv + 인라인 transition-delay 스태거 (행당 35ms, 8행 캡 권장) */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; }
.rv.d2 { transition-delay: .16s; }
.rv.d3 { transition-delay: .24s; }

.rv.rv-mask { opacity: 1; transform: none; overflow: hidden; }
.rv.rv-mask > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); }
.rv.rv-mask.in > span { transform: none; }

/* ── 그래픽 아트 (모션 그래픽 — AP.art와 쌍) ──
   배치 규약: 부모 섹션에 position:relative + isolation:isolate (+필요시 overflow:hidden),
   아트는 z-index:-1 → 부모 배경 위·콘텐츠 아래에 깔림(콘텐츠 z 조작 불필요).
   라이트 배경 color 기본값 · 다크 배경은 .art-w */
.art { position: absolute; pointer-events: none; z-index: -1; color: #D7DDDA; }
.art-w { color: rgba(255, 255, 255, .3); }
.art svg { display: block; width: 100%; height: auto; overflow: visible; }
.art .acc { fill: var(--accent); stroke: none; }
.art .g1 { animation: artFloat 16s ease-in-out infinite; transform-origin: 320px 300px; }
.art .g2 { animation: artFloat 22s ease-in-out infinite reverse; transform-origin: 300px 500px; }
@keyframes artFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(1.4deg); }
}
/* 라인 드로잉 — 스크롤 진입(.in) 시 패스가 그려짐 (pathLength=1 기준) */
.art .dr { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.7s var(--ease) .25s; }
.art.in .dr { stroke-dashoffset: 0; }
.art .pp { opacity: 0; transition: opacity .8s var(--ease) 1.5s; }
.art.in .pp { opacity: 1; }

/* 그린 글로우 — 다크 밴드 위 은은한 광원 드리프트 */
.art-glow {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(0, 176, 80, .13) 0%, rgba(0, 176, 80, 0) 62%);
  animation: glowDrift 26s ease-in-out infinite;
}
@keyframes glowDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(44px, -32px) scale(1.08); }
}
@media (max-width: 768px) { .art, .art-glow { display: none; } } /* 모바일은 장식 생략(콘텐츠 우선) */


/* ?shot — 스크린샷 고정 상태 */
html.shot *, html.shot *::before, html.shot *::after {
  animation: none !important;
  transition: none !important;
}
html.shot { scroll-behavior: auto; }
html.shot .rv { opacity: 1; transform: none; }
html.shot .rv.rv-mask > span { transform: none; }
html.shot .art .dr { stroke-dashoffset: 0; }
html.shot .art .pp { opacity: 1; }
html.shot .art .g1, html.shot .art .g2, html.shot .art-glow { animation: none; }
html.shot .hero-slide img { transform: none; }
html.shot .phero-in > .bc, html.shot .phero-in > h1, html.shot .phero-in > .desc { opacity: 1; transform: none; }
html.shot .seg.act .bar { transform: scaleX(1); }
html.shot .hero-slide .hero-cap > * { opacity: 1; transform: none; }
html.shot .hero-title .wd > span { transform: none; }
html.shot .imgin > img { transform: scale(1); }
html.shot .f-logo .fl-in { transform: none; }
html.shot [data-plx] { transform: none !important; }
html.shot .hero-slide video { display: none; } /* 캡처는 poster 이미지 고정 */

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
  .rv.rv-mask > span { transform: none; }
  .seg.act .bar { animation: none; transform: scaleX(1); }
  .hero-slide .hero-cap > * { opacity: 1; transform: none; }
  .hero-title .wd > span { transform: none; }
  .hero-slide img { transform: none; }
  .imgin > img { transform: scale(1); }
  .f-logo .fl-in { transform: none; }
  .hero-slide video { display: none; }
  html.js-anim .phero-in > .bc, html.js-anim .phero-in > h1, html.js-anim .phero-in > .desc { opacity: 1; transform: none; }
  .art .dr { stroke-dashoffset: 0; }
  .art .pp { opacity: 1; }
}

/* ============ 18. 반응형 ============ */
@media (max-width: 1024px) {
  .lab-grid { gap: 48px; }
  .eqgrid { grid-template-columns: repeat(2, 1fr); }
  .cellgrid.c6 { grid-template-columns: repeat(3, 1fr); }
  .cellgrid.c4 { grid-template-columns: repeat(2, 1fr); }
  .adm-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  .sec { padding: 72px 0; }
  .sub-body { padding-top: 48px; padding-bottom: 72px; }
  .sub-sec + .sub-sec { margin-top: 64px; }

  .hero-cap { padding: 0 20px 112px; }
  .hero-ctrl { padding: 0 20px 24px; gap: 16px; }
  .seg .num { display: none; }
  .hero-desc { display: none; }
  /* 세그 터치 타깃 44px 확보 — 트랙(2px)은 얇게 유지, 히트 영역만 확장 */
  .seg { padding: 20px 0 22px; }
  .hero-pause { padding: 12px 8px; min-height: 44px; }

  .sec-head { grid-template-columns: 1fr; align-items: start; margin-bottom: 40px; }
  .sec-head .lbl { font-size: 24px; }
  .sec-head-desc { margin-top: 14px; }
  .sec-head-act { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 16px; }

  .bizgrid { grid-template-columns: 1fr; }
  .bizgrid > :nth-child(2), .bizgrid > :nth-child(3) { margin-top: 0; }
  .bizcard { aspect-ratio: 16 / 10; }
  /* 낮아진 카드에서 캡션이 밝은 이미지 위로 올라가므로 오버레이 강화 */
  .bizcard::after {
    background: linear-gradient(to top,
      rgba(10, 15, 13, .78) 0%, rgba(10, 15, 13, .45) 55%, rgba(10, 15, 13, .12) 100%);
  }

  .techrow { grid-template-columns: 48px minmax(0, 1fr); gap: 8px 16px; }
  .techrow p { grid-column: 2; }

  .lab-grid { grid-template-columns: 1fr; }
  .proc { grid-template-columns: 1fr 1fr; margin-top: 48px; }

  .histrow { grid-template-columns: 88px minmax(0, 1fr); gap: 24px; }

  .cta-in { grid-template-columns: 1fr; }

  .newsgrid, .cardgrid { grid-template-columns: 1fr; }
  .ncard.feat { grid-column: auto; }

  .tabbar { flex-direction: column; align-items: stretch; gap: 0; border-bottom: 0; margin-bottom: 32px; }
  .tabs { border-bottom: 1px solid var(--line); }
  .searchbar { margin-top: 16px; }
  .searchbar input { flex: 1; width: auto; min-width: 0; }

  .brow { grid-template-columns: minmax(0, 1fr) 24px; gap: 8px 16px; padding: 16px; }
  .brow h3 { grid-column: 1; }
  .brow > .ic { grid-row: span 2; grid-column: 2; }

  .dl-row { grid-template-columns: 48px minmax(0, 1fr) 24px; }
  .dl-row .fmt { display: none; }

  .contact-panel { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; }

  .article-body { padding: 32px 0 48px; }

  .tl-group { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }

  .loc-grid { grid-template-columns: 1fr; gap: 32px; }
  .map-ph { aspect-ratio: 4 / 3; }

  .cellgrid.c3, .cellgrid.c6 { grid-template-columns: repeat(2, 1fr); }
  .eqgrid { grid-template-columns: repeat(2, 1fr); }
  .group-head { flex-direction: column; gap: 4px; margin: 48px 0 16px; }

  /* kv 표 — th 고정폭 축소로 값 칸 확보 */

  /* 재무표 — 가로 스크롤 중 행 레이블 고정 */
  .fin-table thead th:first-child, .fin-table tbody th {
    position: sticky; left: 0; background: var(--bg); z-index: 1;
  }

  /* 폼 액션 — 세로 스택 (testing 국소 패치의 공용 승격) */
  .form-actions { flex-direction: column; align-items: stretch; }

  .jobrow { grid-template-columns: minmax(0, 1fr) 24px; gap: 8px 16px; padding: 16px; }
  .jobrow .col { display: none; }
  .jobrow .badge { justify-self: start; }
  .jobrow .ic { grid-column: 2; grid-row: 1; }

  .form-grid { grid-template-columns: 1fr; }
  .form-panel { padding: 32px 24px; }
  .modal-box { padding: 32px 24px; }

  .adm { flex-direction: column; }
  .adm-side {
    width: 100%; height: auto; position: static;
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .adm-nav { display: flex; flex-wrap: wrap; padding: 0 12px 12px; }
  .adm-nav .adm-cap { display: none; }
  .adm-nav a, .adm-nav button {
    width: auto; padding: 8px 12px;
    border-left: 0; border-radius: var(--r);
  }
  .adm-nav .act { border-left: 0; }
  /* 로그아웃·복귀 링크는 모바일에서도 유지 (숨김 금지) */
  .adm-side-foot { flex-direction: row; gap: 20px; padding: 0 16px 12px; }
  .adm-main { padding: 24px 20px; }
  .adm-stats { grid-template-columns: 1fr 1fr; }
  .adm-card { padding: 24px 20px; }

  .f-logo { padding-top: 64px; }
  .f-body { grid-template-columns: 1fr; gap: 32px; padding-top: 64px; padding-bottom: 48px; }
  .f-body::before, .f-bot::before { left: 20px; right: 20px; }
  .f-bot { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .logo-img { height: 28px; }
  .proc { grid-template-columns: 1fr; }
  .svcgrid { grid-template-columns: 1fr; }
  .chips { gap: 8px; }
  .chip { padding: 0 16px; }
  .cellgrid.c2, .cellgrid.c3, .cellgrid.c4 { grid-template-columns: 1fr; }
  .cellgrid.c6 { grid-template-columns: repeat(2, 1fr); } /* 절차 6셀 — 1열 나열 방지 */
  .eqgrid { grid-template-columns: 1fr; }
  .adm-stats { grid-template-columns: 1fr; }
}

/* 캡처 모드: 히어로 높이 고정 */
html.shot .hero { min-height: 880px; height: 880px; }
