/* ==========================================================================
   KCIEA 시안 v2
   레퍼런스: orchid.security (다크 그라디언트 + 필 네비 + 중앙 정렬 히어로)
   메인 컬러 대응: 레퍼런스 바이올렛 #6833FF → 협회 딥그린 #1B4F42 계열
   ========================================================================== */

:root {
  /* 배경 (레퍼런스 #080023 → 딥그린 블랙) */
  --bg: #04211b;
  --bg-2: #062a22;
  --surface: #0a3529;
  --surface-2: #0e4437;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* 브랜드 */
  --brand: #1b4f42;         /* 협회 딥그린 */
  --signal: #2e9e79;        /* CTA·강조 (레퍼런스 바이올렛 자리) */
  --signal-hi: #3fc496;
  --signal-soft: #8fdcbd;
  --gold: #d4b25f;
  --gold-soft: #ecd9a5;

  /* 텍스트 */
  --text: #f1f7f4;
  --text-2: #cbdad3;
  --muted: #93aaa1;

  --serif: "Noto Serif KR", serif;
  --sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;

  --shell: 1200px;
  --r: 18px;
  --r-lg: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.82;
  -webkit-font-smoothing: antialiased;
  /* 국문 어절 중간에서 줄이 끊기지 않게. 긴 영문 토큰은 예외로 끊는다 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: var(--signal-soft); text-decoration: none; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* ---------- 헤더 (필 네비) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 16px 0;
  background: linear-gradient(180deg, rgba(4, 33, 27, 0.92), rgba(4, 33, 27, 0.55) 70%, transparent);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 11px; }
/* 좁은 화면에서 햄버거 버튼이 로고 아래로 밀려나던 문제.
   헤더는 열린 모바일 메뉴가 둘째 줄을 쓰기 때문에 flex-wrap:wrap 이 필요하다.
   그래서 wrap 을 끄는 대신 로고가 줄어들 수 있게 만든다.
   (min-width:0 이 없으면 flex 항목은 min-content 밑으로 안 줄어든다) */
.header-inner > .brand { min-width: 0; flex: 1 1 auto; }
.brand-mark { flex: none; }
.brand-text { min-width: 0; }
.brand-text strong, .brand-text small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-inner > .nav-toggle { flex: none; }
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--signal), var(--brand) 70%);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(212, 178, 95, 0.40), 0 8px 22px rgba(46, 158, 121, 0.28);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 18.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.brand-text small { font-size: 11.5px; letter-spacing: 0.09em; color: var(--muted); text-transform: uppercase; }

.nav {
  display: flex;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}
.nav a {
  padding: 9px 17px;
  border-radius: 999px;
  font-size: 16.5px;
  color: var(--text-2);
  white-space: nowrap;
}
.nav a:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.nav a[aria-current="page"] { background: var(--brand); color: #fff; }

.header-cta { display: flex; gap: 10px; align-items: center; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; margin: 4px auto; background: var(--text); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- 버튼 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--signal);
  color: #04211b;
  box-shadow: 0 10px 30px rgba(46, 158, 121, 0.30);
}
.btn-primary:hover { background: var(--signal-hi); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn-light { background: var(--text); color: #04211b; }
.btn-sm { padding: 9px 18px; font-size: 15.5px; }

/* ---------- 이어브로우 / 섹션 헤더 ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 17px;
  border: 1px solid rgba(212, 178, 95, 0.30);
  border-radius: 999px;
  background: rgba(212, 178, 95, 0.07);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
  text-transform: uppercase;
}

section { padding: 88px 0; position: relative; }
section.tight { padding: 56px 0; }

.sec-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.sec-head h2 {
  font-size: clamp(29.7px, 3.7vw, 43.5px);
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: -0.025em;
  margin: 20px 0 16px;
}
.sec-head p { margin: 0; color: var(--muted); font-size: 18.5px; }
.sec-head.left { margin-left: 0; text-align: left; }

.grad-text {
  background: linear-gradient(100deg, var(--text) 6%, var(--gold-soft) 46%, var(--signal-soft) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 히어로 ---------- */

.hero {
  position: relative;
  padding: 84px 0 0;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(56% 34% at 50% -6%, rgba(46, 158, 121, 0.32), transparent 70%),
    radial-gradient(40% 26% at 84% 12%, rgba(212, 178, 95, 0.24), transparent 72%),
    radial-gradient(36% 26% at 10% 20%, rgba(27, 79, 66, 0.55), transparent 74%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 72%);
}
.hero h1 {
  max-width: 940px;
  margin: 26px auto 22px;
  font-size: clamp(33.9px, 5.7vw, 65.7px);
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: -0.035em;
}
.hero .lead {
  max-width: 660px;
  margin: 0 auto 36px;
  color: var(--text-2);
  font-size: 19px;
  line-height: 1.85;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-figure {
  margin: 62px auto 0;
  max-width: 1140px;
  padding: 14px;
  border: 1px solid rgba(212, 178, 95, 0.5);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  border-bottom: none;
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    0 -10px 80px rgba(46, 158, 121, 0.26),
    0 30px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(212, 178, 95, 0.38);
}
.hero-figure > .dg { padding: 26px 22px; border-radius: 14px; background: #041d18; }

/* ---------- 스트립 (전문기관 네트워크) ---------- */

.strip {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid rgba(226, 200, 132, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(120% 130% at 50% -45%, rgba(255, 255, 255, 0.14), transparent 62%),
    radial-gradient(62% 170% at 12% 125%, rgba(46, 158, 121, 0.38), transparent 68%),
    radial-gradient(56% 160% at 88% 135%, rgba(212, 178, 95, 0.26), transparent 70%),
    linear-gradient(180deg, #0e4438 0%, #0a3227 62%, #072520 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}
.strip > .shell { position: relative; z-index: 1; }
.strip .shell { display: block; padding-top: 26px; padding-bottom: 26px; }

/* ---------- 카드 ---------- */

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  transition: border-color .18s, transform .18s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card h3 { margin: 18px 0 10px; font-size: 20.5px; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.8; }
.card.accent { border-color: rgba(212, 178, 95, 0.45); background: linear-gradient(180deg, rgba(212, 178, 95, 0.14), rgba(212, 178, 95, 0.03)); }
.card.warn:hover { border-color: rgba(212, 178, 95, 0.38); }
.card.warn .ico { background: rgba(212, 178, 95, 0.12); border-color: rgba(212, 178, 95, 0.28); }
.card.warn .ico svg { stroke: var(--gold-soft); }
.card.accent p { color: var(--text-2); }

.ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(46, 158, 121, 0.14);
}
.ico svg { width: 22px; height: 22px; stroke: var(--signal-soft); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card.accent .ico { background: rgba(212, 178, 95, 0.16); }
.card.accent .ico svg { stroke: var(--gold-soft); }

.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #22190a;
  font-size: 13px;
  font-weight: 700;
  vertical-align: 2px;
}

/* ---------- 지표 ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  padding: 32px 26px;
  border: 1px solid var(--line);
  border-top: 1px solid rgba(212, 178, 95, 0.45);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(212, 178, 95, 0.10), rgba(255, 255, 255, 0.015) 60%);
}
.stat b {
  display: block;
  font-size: 48.8px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--gold-soft);
}
.stat b em { font-family: var(--sans); font-style: normal; font-size: 21px; font-weight: 500; margin-left: 3px; color: var(--text-2); }
.stat strong { display: block; margin: 12px 0 6px; font-size: 17.5px; }
.stat span { color: var(--muted); font-size: 15.5px; line-height: 1.7; }

/* ---------- 인용 ---------- */

.quote {
  max-width: 900px;
  margin: 0 auto;
  padding: 46px 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  border-color: rgba(212, 178, 95, 0.24);
  background:
    radial-gradient(62% 100% at 0% 0%, rgba(212, 178, 95, 0.16), transparent 72%),
    radial-gradient(50% 90% at 100% 100%, rgba(46, 158, 121, 0.12), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
.quote blockquote {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: clamp(21px, 2.3vw, 27.5px);
  font-weight: 500;
  line-height: 1.68;
  letter-spacing: -0.015em;
}
.who { display: flex; align-items: center; gap: 14px; }
.who .mono {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--brand) 85%);
  font-family: var(--serif);
  font-size: 19px;
  color: #fff;
}
.who b { display: block; font-size: 17px; }
.who span { color: var(--muted); font-size: 15.5px; }

/* ---------- 탭 (CSS만, radio) ---------- */

.tabs { border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.025); overflow: hidden; }
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tabbar { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabbar label {
  flex: 1 1 auto;
  padding: 20px 18px;
  text-align: center;
  cursor: pointer;
  font-size: 16.5px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tabbar label b { display: block; font-family: var(--serif); font-size: 14px; color: var(--gold); letter-spacing: 0.08em; margin-bottom: 4px; }
.tabbar label:hover { color: var(--text-2); background: rgba(255, 255, 255, 0.03); }
.panel { display: none; padding: 40px; }
.panel .inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 40px; align-items: center; }
.panel h3 { margin: 0 0 14px; font-size: 25.3px; font-weight: 700; letter-spacing: -0.015em; }
.panel p { margin: 0 0 18px; color: var(--text-2); }
.panel ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 16.5px; }
.panel li + li { margin-top: 7px; }
/* 위 규칙(0-1-2)이 탭 패널 안 다이어그램 목록까지 먹는다. 그리드 타일에 outer margin 이 붙으면
   첫 타일만 margin 이 없어 높이가 7px 어긋난다. 다이어그램 목록은 자기 간격을 직접 관리한다. */
.dg.dg-tiles li + li, .dg .dg-chips li + li, .dg .og-chips li + li { margin-top: 0; }
.panel .visual { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: rgba(4, 33, 27, 0.5); }
.panel .visual img { width: 100%; height: auto; display: block; }
.panel .visual > .dg { padding: 22px 20px; }

#t1:checked ~ .tabbar label[for="t1"],
#t2:checked ~ .tabbar label[for="t2"],
#t3:checked ~ .tabbar label[for="t3"],
#t4:checked ~ .tabbar label[for="t4"],
#t5:checked ~ .tabbar label[for="t5"] {
  color: var(--text);
  border-bottom-color: var(--gold);
  background: rgba(212, 178, 95, 0.09);
}
#t1:checked ~ #p1, #t2:checked ~ #p2, #t3:checked ~ #p3, #t4:checked ~ #p4, #t5:checked ~ #p5 { display: block; }

/* ---------- 사진 ---------- */

.photo {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(135deg, #0a3529, #062a22 60%, #0e4437);
  min-height: 180px;
  /* min-height 와 aspect-ratio 가 같이 걸리면 브라우저가 폭을 역산한다(180x16/9=320px).
     부모보다 넓어져 화면 밖으로 나가므로 상한을 둔다 */
  max-width: 100%;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.wide { aspect-ratio: 16 / 9; }
figure { margin: 0; }
figcaption { margin-top: 12px; font-size: 14.5px; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split h2 { font-size: clamp(27.5px, 3.4vw, 39.2px); font-weight: 600; line-height: 1.34; letter-spacing: -0.025em; margin: 20px 0 18px; }
.split p { color: var(--text-2); margin: 0 0 16px; }
.checks { list-style: none; margin: 24px 0 0; padding: 0; }
.checks li { position: relative; padding: 10px 0 10px 32px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 17px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(46, 158, 121, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fdcbd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- 다이어그램 공통 ---------- */

.figure-wide {
  border: 1px solid rgba(212, 178, 95, 0.3);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.045);
  padding: 26px;
}


/* ---------- 프로세스 스텝 ---------- */

.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 8px; }
.flow .node { position: relative; padding: 0 12px; text-align: center; }
.flow .node::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
}
.flow .node:first-child::before { left: 50%; }
.flow .node:last-child::before { right: 50%; }
.flow .dot {
  position: relative;
  width: 42px;
  height: 42px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid rgba(212, 178, 95, 0.55);
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 16px;
}
.flow strong { display: block; font-size: 17.5px; }
.flow span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); line-height: 1.65; }

/* ---------- FAQ ---------- */

.faq { max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.03); margin-bottom: 12px; }
.faq summary {
  padding: 22px 26px;
  cursor: pointer;
  font-size: 18.5px;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 23.1px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] { border-color: rgba(212, 178, 95, 0.26); }
.faq details[open] summary { color: var(--text); }
.faq .body { padding: 0 26px 24px; color: var(--muted); font-size: 17px; }
.faq .body p { margin: 0; }

/* ---------- 목록 (알림) ---------- */

.rows { border-top: 1px solid var(--line); }
.rows a, .rows .row { display: flex; gap: 22px; align-items: baseline; padding: 22px 6px; border-bottom: 1px solid var(--line); color: var(--text); }
.rows a:hover { background: rgba(255, 255, 255, 0.03); }
.rows .date { min-width: 102px; font-size: 15px; color: var(--gold); letter-spacing: 0.03em; }
.rows .cat { min-width: 98px; text-align: center; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--signal-soft); }
.rows .title { flex: 1; font-size: 17.5px; }

/* ---------- 표 ---------- */

.tbl { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 17px; }
.tbl th, .tbl td { padding: 17px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: none; }
.tbl th { width: 218px; font-weight: 700; color: var(--signal-soft); white-space: nowrap; background: rgba(255, 255, 255, 0.03); }
.tbl td { color: var(--text-2); }

/* ---------- 폼 ---------- */

.form { max-width: 100%; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 15.5px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.field .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 17px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.field input::placeholder, .field textarea::placeholder { color: #6f8880; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(46, 158, 121, 0.16); }
.field select option { background: #0a3529; }
.field textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--muted); font-weight: 400; }
.consent input { width: auto; margin-top: 5px; }
.note {
  margin-top: 16px;
  padding: 14px 18px;
  border-left: 2px solid var(--gold);
  border-radius: 6px;
  background: rgba(212, 178, 95, 0.09);
  font-size: 15px;
  color: var(--gold-soft);
}

/* ---------- CTA ---------- */

.cta {
  text-align: center;
  background:
    radial-gradient(48% 118% at 42% 100%, rgba(46, 158, 121, 0.24), transparent 70%),
    radial-gradient(34% 90% at 76% 100%, rgba(212, 178, 95, 0.20), transparent 72%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  border-top: 1px solid rgba(212, 178, 95, 0.20);
}
.cta h2 { font-size: clamp(30.8px, 4.2vw, 48.8px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.28; margin: 22px auto 18px; max-width: 780px; }
.cta p { color: var(--text-2); margin: 0 auto 34px; max-width: 620px; }

/* ---------- 페이지 헤드 ---------- */

.page-head {
  position: relative;
  overflow: hidden;
  padding: 94px 0 78px;
  text-align: center;
  background:
    radial-gradient(55% 70% at 46% 0%, rgba(46, 158, 121, 0.22), transparent 70%),
    radial-gradient(32% 56% at 80% 6%, rgba(212, 178, 95, 0.2), transparent 72%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
/* 미세 격자: 위에서 아래로 사라지게 마스크 */
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(212, 178, 95, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(212, 178, 95, 0.075) 1px, transparent 1px);
  background-size: 92px 92px;
  -webkit-mask-image: radial-gradient(78% 108% at 50% -6%, #000 20%, transparent 78%);
  mask-image: radial-gradient(78% 108% at 50% -6%, #000 20%, transparent 78%);
  pointer-events: none;
}
/* 하단 골드 헤어라인 */
.page-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 200, 132, 0.5), transparent);
}
/* 페이지 이름을 대형 아웃라인 타이포로 깔아 페이지마다 정체성을 준다 */
.page-head .ghost {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -62%);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(62px, 12.5vw, 176px);
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(226, 200, 132, 0.14);
  user-select: none;
  pointer-events: none;
}
.page-head > .shell { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(31.9px, 4.2vw, 48.8px); font-weight: 600; letter-spacing: -0.03em; margin: 20px 0 14px; }
.page-head p { color: var(--muted); margin: 0 auto; max-width: 640px; }

/* ---------- 푸터 ---------- */

.site-footer { border-top: 1px solid var(--line); background: #031a15; padding: 68px 0 0; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { margin: 0 0 16px; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); opacity: 0.9; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-2); font-size: 16px; }
.footer-grid a:hover { color: var(--signal-soft); }
.footer-about p { color: var(--muted); margin: 16px 0 0; font-size: 15.5px; line-height: 1.8; }
.footer-bottom {
  margin-top: 54px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- 버전 선택 바 ---------- */

.version-bar { border-top: 1px solid var(--line); background: #02120f; padding: 20px 0; }
.version-bar .shell { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.version-bar .vlabel { font-size: 14px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.version-bar .opts { display: flex; gap: 8px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.03); }
.version-bar .opts a {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 15.5px;
  color: var(--text-2);
}
.version-bar .opts a:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.version-bar .opts a.on { background: var(--signal); color: #04211b; font-weight: 700; }


/* ==========================================================================
   다이어그램 (HTML/CSS 기반 - 좁은 화면에서 세로로 접힘)
   ========================================================================== */

.dg { font-size: 16px; word-break: keep-all; }  /* 국문 어절 중간에서 끊기지 않게 */
/* .panel p (0-1-1) 가 .dg-note (0-1-0) 를 이기므로 특이도를 올려 둔다.
   내려서 쓰면 탭 패널 안에서 위 블록에 붙는다. */
.dg .dg-note { margin: 32px 0 0; text-align: center; font-size: 15.5px; color: #dce8e3; }
.dg-cap { display: block; margin: 0 0 16px; text-align: center; font-size: 15px; font-weight: 700; color: #f2e3bd; letter-spacing: 0.02em; }

.dg-lane { display: flex; align-items: stretch; gap: 12px; }

.dg-box {
  flex: 1 1 0;
  min-width: 0;
  padding: 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.dg-box b { font-size: 17px; font-weight: 700; line-height: 1.5; }
.dg-box small { font-size: 14.5px; color: #dce8e3; line-height: 1.6; }
.dg-box.dash { border-style: dashed; border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.065); }
.dg-box.gold { border-color: rgba(212, 178, 95, 0.62); background: rgba(212, 178, 95, 0.18); }
.dg-box.gold small { color: var(--gold-soft); }
.dg-box.green { border-color: rgba(46, 158, 121, 0.65); background: rgba(46, 158, 121, 0.22); }
.dg-box.green small { color: var(--signal-soft); }
.dg-box.gate { border-color: rgba(212, 178, 95, 0.65); background: rgba(212, 178, 95, 0.20); flex: 0 0 154px; }
.dg-box.gate b { color: var(--gold-soft); }
.dg-box.dead { border-style: dashed; border-color: rgba(214, 146, 133, 0.6); background: rgba(196, 118, 102, 0.13); flex: 0 0 206px; }
.dg-box.dead b { color: #ecab9c; font-weight: 500; font-size: 15.5px; }

/* 화살표: 데스크톱 가로 → 모바일 세로 */
.dg-arrow { flex: 0 0 28px; align-self: center; display: grid; place-items: center; }
.dg-arrow i { display: block; width: 26px; height: 1.5px; background: rgba(143, 220, 189, 0.85); position: relative; }
.dg-arrow i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3.2px;
  border: 4.5px solid transparent;
  border-left-color: var(--signal-hi);
}
.dg-arrow.dash i { background: none; height: 0; border-top: 1.5px dashed #9db3aa; }
.dg-arrow.dash i::after { border-left-color: #9db3aa; }
.dg-arrow.gold i { background: rgba(212, 178, 95, 0.6); }
.dg-arrow.gold i::after { border-left-color: var(--gold); }

/* 핵심 패널 */
.dg-core {
  flex: 3.1 1 0;
  min-width: 0;
  padding: 20px 18px;
  border: 1px solid rgba(62, 190, 146, 0.85);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(46, 158, 121, 0.34), rgba(46, 158, 121, 0.12));
  box-shadow: 0 0 0 1px rgba(46, 158, 121, 0.12), 0 10px 40px rgba(46, 158, 121, 0.18);
  text-align: center;
}
.dg-core > b { display: block; font-size: 18.5px; color: #bdf3dd; }
.dg-core > small { display: block; margin-top: 10px; font-size: 14.5px; color: #dce8e3; }
.dg-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 13px 0 0; padding: 0; list-style: none; }
.dg-chips li {
  padding: 6px 12px;
  border: 1px solid rgba(226, 200, 132, 0.75);
  border-radius: 999px;
  background: rgba(212, 178, 95, 0.22);
  font-size: 14px;
  color: #f8eecd;
}

/* 세로 연결 (실행 파트너 필요) */
.dg-bridge { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0 16px; }
.dg-bridge i { display: block; width: 1.5px; height: 22px; background: rgba(212, 178, 95, 0.8); position: relative; }
.dg-bridge i::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: -3.5px;
  border: 4px solid transparent;
  border-top-color: var(--gold);
}
.dg-bridge span { font-size: 14.5px; color: #f8eecd; }

/* Before / After */
.dg-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.dg-ba .dg-note { grid-column: 1 / -1; }
.dg-ba .ba { padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; }

.dg-ba .bad { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.18); }
.dg-ba .good { border-color: rgba(46, 158, 121, 0.62); background: linear-gradient(180deg, rgba(46, 158, 121, 0.22), rgba(46, 158, 121, 0.06)); }
.ba-tag { display: block; margin-bottom: 14px; font-size: 15.5px; font-weight: 700; color: var(--text-2); }
.good .ba-tag { color: #a8ecd0; }
.ba-lane { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding-left: 22px; }
.ba-lane::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 1.5px;
  background: rgba(143, 220, 189, 0.7);
}
.bad .ba-lane::before { background: none; width: 0; border-left: 1.5px dashed #9db3aa; }
.ba-step {
  position: relative;
  z-index: 1;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: var(--bg);
  font-size: 14.5px;
  color: var(--text-2);
}
.good .ba-step { border-color: rgba(212, 178, 95, 0.55); color: var(--text); }
.good .ba-step b { font-family: var(--serif); font-size: 13px; color: var(--gold-soft); margin-right: 8px; }
.bad .ba-step::before { content: "\00d7"; margin-right: 5px; color: #d08a7c; font-weight: 700; }
.ba-end {
  position: relative;
  z-index: 1;
  padding: 12px 14px;
  border: 1px solid rgba(196, 118, 102, 0.4);
  border-radius: 12px;
  /* 연결선이 뒤로 비치지 않도록 불투명 배경 위에 틴트를 올린다 */
  background: linear-gradient(rgba(196, 118, 102, 0.10), rgba(196, 118, 102, 0.10)), var(--bg);
  text-align: center;
  font-size: 15px;
  color: #d69285;
}
.ba-end.gold {
  border-color: rgba(212, 178, 95, 0.5);
  background: linear-gradient(rgba(212, 178, 95, 0.16), rgba(212, 178, 95, 0.16)), var(--bg);
  color: var(--gold-soft);
  font-weight: 700;
}

/* 선순환 */
.dg-loop {
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px dashed rgba(212, 178, 95, 0.6);
  border-radius: 999px;
  text-align: center;
  font-size: 15px;
  color: #f2e3bd;
  background: rgba(212, 178, 95, 0.06);
}

/* 조직도 */
.dg-org { text-align: center; }
.og-single { display: flex; justify-content: center; }
.og-single .dg-box { flex: 0 1 240px; }
.og-v { display: block; width: 1.5px; height: 26px; margin: 0 auto; background: rgba(212, 178, 95, 0.75); }
.og-row { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
/* 이사회에서 임원 4로 갈라지는 버스선 */
.og-row::before {
  content: "";
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: -13px;
  height: 1.5px;
  background: rgba(212, 178, 95, 0.75);
}
.og-row > .dg-box { position: relative; }
.og-row > .dg-box::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -13px;
  width: 1.5px;
  height: 13px;
  background: rgba(212, 178, 95, 0.75);
}
.og-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.og-chips li {
  padding: 11px 20px;
  border: 1px solid rgba(212, 178, 95, 0.5);
  border-radius: 999px;
  background: rgba(212, 178, 95, 0.15);
  font-size: 15px;
}

/* 회원 구조 */
.mm-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 15px;
}
.mm-flow.top { border: 1px solid rgba(46, 158, 121, 0.62); background: rgba(46, 158, 121, 0.18); color: #a8ecd0; margin-bottom: 16px; }
.mm-flow.bottom { border: 1px solid rgba(212, 178, 95, 0.62); background: rgba(212, 178, 95, 0.17); color: #f2e3bd; margin-top: 16px; flex-direction: row-reverse; }
.mm-flow i { flex: 1 1 auto; height: 1px; background: currentColor; opacity: 0.5; position: relative; }
.mm-flow.top i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3.5px;
  border: 4px solid transparent;
  border-left-color: currentColor;
}
.mm-flow.bottom i::after {
  content: "";
  position: absolute;
  left: -1px;
  top: -3.5px;
  border: 4px solid transparent;
  border-right-color: currentColor;
}
.mm-chip {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 15px;
  border: 1px solid rgba(212, 178, 95, 0.55);
  border-radius: 999px;
  background: rgba(212, 178, 95, 0.18);
  font-size: 14px;
  color: #f2e3bd;
}

/* 단계 목록 (탭 안쪽) */
.dg-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.dg-steps li { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 14px; background: rgba(255, 255, 255, 0.07); }
.dg .dg-steps li + li { margin-top: 22px; }
.dg .dg-steps li + li::before {
  content: "";
  position: absolute;
  left: 35px;
  top: -22px;
  width: 1px;
  height: 22px;
  background: rgba(212, 178, 95, 0.4);
}
.dg-steps .n {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 178, 95, 0.7);
  background: var(--bg);
  font-family: var(--serif);
  font-size: 15px;
  color: #f2e3bd;
}
.dg-steps b { display: block; font-size: 16.5px; }
.dg-steps small { display: block; margin-top: 3px; font-size: 14.5px; color: var(--text-2); }

/* 채널 타일 */
/* grid-auto-rows: 1fr + stretch 로 모든 행·모든 타일 높이를 강제로 맞춘다.
   특정 타일 하나가 몇 px 더 필요해도 6개가 함께 커진다. */
.dg-tiles ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dg-tiles li {
  /* display:list-item 으로 두면 타일마다 높이가 몇 px 씩 어긋난다. flex 로 바꿔 마커 박스를 없애고
     min-height 로 하한을 못 박아 6개가 항상 같은 높이가 되게 한다. */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  text-align: center;
  font-size: 14.5px;
  color: var(--text-2);
}
.dg-tiles .foot {
  margin-top: 22px;
  padding: 14px 18px;
  border: 1px solid rgba(212, 178, 95, 0.6);
  border-radius: 12px;
  background: rgba(212, 178, 95, 0.16);
  text-align: center;
  font-size: 14.5px;
  color: #f2e3bd;
}

/* ---- 다이어그램 반응형 ---- */
@media (max-width: 900px) {
  .og-row { grid-template-columns: repeat(2, 1fr); }
  .dg-tiles ul { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .dg-lane { flex-direction: column; gap: 10px; }
  .dg-arrow { flex: 0 0 26px; }
  .dg-arrow i { transform: rotate(90deg); }
  .dg-box, .dg-core { flex: 1 1 auto; }
  .dg-box.gate, .dg-box.dead { flex: 1 1 auto; }
  .dg-bridge { padding: 12px 0; }

  .dg-ba { grid-template-columns: 1fr; }

  .dg-loop { border-radius: 14px; }
  .og-row { grid-template-columns: 1fr; }
  .og-row::before, .og-row > .dg-box::before { display: none; }
  .dg-tiles ul { grid-template-columns: 1fr; }
  .mm-flow { border-radius: 14px; }
}


/* ==========================================================================
   스크롤 반응 · 인터랙션
   JS(js/app.js)가 html에 .js 를 붙인다. JS가 없으면 아래 숨김이 적용되지 않아
   모든 요소가 처음부터 보인다.
   ========================================================================== */

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100; background: rgba(255, 255, 255, 0.04); }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--signal), var(--gold)); }

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.66s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.66s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0s);
}
html.js [data-reveal].in { opacity: 1; transform: none; }

.site-header { transition: background 0.3s, box-shadow 0.3s; }
.site-header.scrolled {
  background: rgba(4, 33, 27, 0.95);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}



/* 히어로 배경 그래픽 (네트워크 · 전자상거래) */
.hero-art {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 84%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 64%, transparent 97%);
  mask-image: linear-gradient(180deg, #000 0%, #000 64%, transparent 97%);
}
.hero-art svg { display: block; width: 100%; height: 100%; }
.hero > .shell { position: relative; z-index: 1; }
.hero-art .nd { transform-box: fill-box; transform-origin: center; animation: ndPulse 4.5s ease-in-out infinite; }
.hero-art .nd:nth-of-type(3n) { animation-delay: 1.5s; }
.hero-art .nd:nth-of-type(3n+1) { animation-delay: 0.7s; }
@keyframes ndPulse { 0%, 100% { transform: scale(0.75); opacity: 0.5; } 50% { transform: scale(1.35); opacity: 1; } }
.hero-art .hb-flow path { stroke-dasharray: 10 16; animation: hbDash 7s linear infinite; }
.hero-art .hb-flow path:nth-child(2) { animation-duration: 9s; }
.hero-art .hb-flow path:nth-child(3) { animation-duration: 11s; }
@keyframes hbDash { to { stroke-dashoffset: -104; } }

/* 스크롤 유도 */
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 40px; font-size: 13px; letter-spacing: 0.14em; color: var(--muted); }
.scroll-cue i { width: 1px; height: 36px; background: linear-gradient(180deg, transparent, var(--gold)); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { opacity: 0.25; transform: scaleY(0.55); } 50% { opacity: 1; transform: scaleY(1); } }

/* 마퀴 (전문기관 네트워크) */
.marquee-label { margin: 0 0 20px; text-align: center; font-size: 14px; letter-spacing: 0.12em; color: #e3efe9; text-transform: uppercase; }
.marquee {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 4px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 12px; animation: slide 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 6px 16px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(4px);
  font-size: 15.5px;
  font-weight: 500;
  color: #f1f7f4;
  white-space: nowrap;
}
.marquee-track span:nth-child(odd) {
  border-color: rgba(226, 200, 132, 0.6);
  background: linear-gradient(180deg, rgba(212, 178, 95, 0.34), rgba(212, 178, 95, 0.10));
  box-shadow: inset 0 1px 0 rgba(248, 238, 205, 0.42), 0 6px 16px rgba(0, 0, 0, 0.22);
  color: #fbf3dd;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* 스티키 분할 (왜 KCIEA인가) */
.sticky-split { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 60px; align-items: start; }
.sticky-col { position: sticky; top: 108px; }
.sticky-col h2 { font-size: clamp(28.6px, 3.6vw, 42.4px); font-weight: 600; line-height: 1.32; letter-spacing: -0.028em; margin: 20px 0 18px; }
.sticky-col p { color: var(--muted); margin: 0 0 16px; }

.issues { margin: 0; padding: 0; }
.issues li { list-style: none; display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding: 26px 6px; border-top: 1px solid var(--line); transition: background 0.25s; }
.issues li:last-child { border-bottom: 1px solid var(--line); }
.issues .no { font-family: var(--serif); font-size: 17px; color: var(--gold); }
.issues h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.issues p { margin: 0; color: var(--muted); font-size: 16.5px; }
.issues .fix {
  display: block;
  margin-top: 0;
  padding-left: 14px;
  border-left: 2px solid var(--signal);
  color: var(--signal-soft);
  font-size: 15.5px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.35s ease;
}
@media (hover: hover) {
  .issues li:hover { background: rgba(255, 255, 255, 0.028); }
  .issues li:hover .fix, .issues li:focus-within .fix { max-height: 90px; opacity: 1; margin-top: 14px; }
}
@media (hover: none) {
  .issues .fix { max-height: none; opacity: 1; margin-top: 14px; }
}

/* 전면 인용 밴드 */
.band {
  padding: 100px 0;
  border-top: 1px solid rgba(212, 178, 95, 0.2);
  border-bottom: 1px solid rgba(212, 178, 95, 0.2);
  background:
    radial-gradient(46% 120% at 16% 50%, rgba(212, 178, 95, 0.17), transparent 70%),
    radial-gradient(42% 110% at 88% 42%, rgba(46, 158, 121, 0.15), transparent 70%),
    #051f19;
}
.band-quote { max-width: 960px; margin: 0 auto; text-align: center; }
.band-quote .mark { display: block; margin-bottom: 10px; font-family: var(--serif); font-size: 63.6px; line-height: 0.7; color: var(--gold); opacity: 0.55; }
.band-quote blockquote { margin: 0 0 34px; font-family: var(--serif); font-size: clamp(22px, 2.8vw, 32.9px); font-weight: 500; line-height: 1.62; letter-spacing: -0.02em; }
.band-quote .who { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: left; }

/* 숫자 밴드 */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-top: 1px solid rgba(212, 178, 95, 0.5);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.numbers > div { padding: 42px 30px; border-left: 1px solid var(--line); background: linear-gradient(180deg, rgba(212, 178, 95, 0.10), transparent 72%); }
.numbers > div:first-child { border-left: none; }
.numbers b { display: block; font-size: 55.1px; font-weight: 600; line-height: 1.05; letter-spacing: -0.045em; color: var(--gold-soft); }
.numbers b em { font-family: var(--sans); font-style: normal; font-size: 22px; font-weight: 500; margin-left: 3px; color: var(--text-2); }
.numbers strong { display: block; margin: 14px 0 6px; font-size: 17.5px; }
.numbers > div > span { display: block; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.numbers b span { font: inherit; color: inherit; }

/* 이미지 블리드 분할 */
.section-clip { overflow: hidden; }
.bleed { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.bleed .pic { position: relative; margin-right: calc(-1 * ((100vw - min(100vw, var(--shell))) / 2 + 24px)); }
.bleed .pic .photo { border-radius: 20px 0 0 20px; border-right: none; }
.bleed .pic .float {
  position: absolute;
  left: -44px;
  bottom: 34px;
  padding: 18px 24px;
  border: 1px solid rgba(212, 178, 95, 0.4);
  border-radius: 14px;
  background: linear-gradient(rgba(212, 178, 95, 0.14), rgba(212, 178, 95, 0.14)), var(--bg);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}
.bleed .pic .float b { display: block; font-family: var(--serif); font-size: 28.6px; color: var(--gold-soft); line-height: 1.2; }
.bleed .pic .float span { font-size: 14.5px; color: var(--text-2); }

/* 엇갈린 그리드 */
.offset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.offset-grid > *:nth-child(even) { margin-top: 38px; }

/* 링크 행 */
.linkrows { border-top: 1px solid var(--line); }
.linkrows a {
  display: grid;
  grid-template-columns: 46px 1fr 38px;
  gap: 22px;
  align-items: center;
  padding: 28px 6px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  transition: background 0.25s, padding 0.25s;
}
.linkrows a:hover { background: rgba(255, 255, 255, 0.03); padding-left: 18px; }
.linkrows h3 { margin: 0; font-size: 21px; font-weight: 700; }
.linkrows p { margin: 5px 0 0; color: var(--muted); font-size: 16.5px; }
.linkrows .go { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(212, 178, 95, 0.35); display: grid; place-items: center; color: var(--gold); font-size: 17px; transition: 0.25s; }
.linkrows a:hover .go { background: var(--gold); color: #22190a; transform: translateX(4px); }

/* 호버 디테일 */
.card { transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s; }
.card:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28); }
.card .ico { transition: transform 0.25s, background 0.25s; }
.card:hover .ico { transform: translateY(-2px) scale(1.06); }
.photo img { transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
figure:hover .photo img { transform: scale(1.05); }
.flow .node .dot { transition: background 0.25s, color 0.25s, border-color 0.25s; }
.flow .node:hover .dot { background: var(--gold); border-color: var(--gold); color: #22190a; }
.rows a { transition: background 0.22s, padding 0.22s; }
.rows a:hover { padding-left: 16px; }
.panel { animation: panelIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.dg-box, .dg-core { transition: border-color 0.25s, transform 0.25s; }
.og-chips li, .dg-chips li { transition: background 0.22s, transform 0.22s, border-color 0.22s; }
.og-chips li:hover, .dg-chips li:hover { background: rgba(212, 178, 95, 0.18); transform: translateY(-2px); }

/* Before/After: 좌우 비교 + 한쪽에 마우스 올리면 다른 쪽 흐리게 */
@media (hover: hover) {
  .dg-ba .ba { transition: opacity 0.3s, transform 0.3s, border-color 0.3s; }
  .dg-ba:hover .ba:not(:hover) { opacity: 0.42; }
  .dg-ba .ba:hover { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee-track, .scroll-cue i, .hero-art .nd, .hero-art .hb-flow path { animation: none !important; }
  .panel { animation: none !important; }
}

@media (max-width: 1080px) {
  .sticky-split { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .sticky-col { position: static; min-width: 0; }
  .offset-grid { grid-template-columns: repeat(2, 1fr); }
  .offset-grid > *:nth-child(even) { margin-top: 0; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .numbers > div:nth-child(3), .numbers > div:nth-child(4) { border-top: 1px solid var(--line); }
  .numbers > div:nth-child(3) { border-left: none; }
}

@media (max-width: 900px) {
  .bleed { grid-template-columns: 1fr; gap: 30px; }
  .bleed .pic { margin-right: 0; }
  .bleed .pic .photo { border-radius: var(--r); border-right: 1px solid var(--line); }
  .bleed .pic .float { left: 16px; bottom: 16px; padding: 14px 18px; }
  .bleed .pic .float b { font-size: 23.1px; }
}

@media (max-width: 760px) {
  .offset-grid { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr; }
  .numbers > div { border-left: none; border-top: 1px solid var(--line); padding: 30px 24px; }
  .numbers > div:first-child { border-top: none; }
  .numbers b { font-size: 44.5px; }
  .band { padding: 68px 0; }
  .band-quote .mark { font-size: 48.8px; }
  .linkrows a { grid-template-columns: 34px 1fr 30px; gap: 14px; padding: 22px 4px; }
  .linkrows a:hover { padding-left: 4px; }
  .linkrows h3 { font-size: 19px; }
  .linkrows .go { width: 30px; height: 30px; font-size: 15px; }
  .issues li { grid-template-columns: 34px 1fr; gap: 12px; padding: 22px 2px; }
  .marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }
}


/* 비대칭 강조 그리드 (핵심 1 + 나머지 N) */
.feature-split { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 18px; align-items: start; }
.feature-split .lead-card { padding: 40px 36px; position: sticky; top: 108px; }
.feature-split .lead-card h3 { font-size: 26.4px; margin-top: 22px; }
.feature-split .lead-card p { font-size: 17px; }
.feature-split .side { display: grid; gap: 18px; }

@media (max-width: 900px) {
  .feature-split { grid-template-columns: 1fr; }
  .feature-split .lead-card { padding: 30px 28px; position: static; }
  .feature-split .lead-card h3 { font-size: 23.1px; }
}


/* 약도 */
.mapfig { margin: 0; }
.mapfig .frame {
  padding: 12px;
  border: 1px solid rgba(212, 178, 95, 0.3);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}
.mapfig .plot { position: relative; }
.mapfig .plot img { display: block; width: 100%; height: auto; border-radius: 12px; }
.mapfig .m-compact { display: none; }

/* 지도 라벨: 이미지에 글자를 굽지 않고 HTML 로 얹는다.
   px 고정이라 이미지가 축소돼도 글자 크기가 유지된다(모바일에서 작아지지 않는다). */
.mk {
  position: absolute;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: #eef5f1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92), 0 0 12px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.mk.area { font-size: 15.5px; font-weight: 700; color: #c6d6ce; letter-spacing: 0.02em; }
.mk.park { color: #9fe3c4; }
.mk.st {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(3, 21, 15, 0.9);
  border: 1px solid rgba(127, 198, 212, 0.6);
  color: #cfeaf0;
  font-size: 14px;
  font-weight: 700;
  text-shadow: none;
}
.mk.rail {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(3, 21, 15, 0.85);
  border: 1px solid rgba(127, 198, 212, 0.45);
  color: #cfeaf0;
  font-size: 13.5px;
  text-shadow: none;
}
.mk.dest {
  padding: 11px 17px;
  border-radius: 12px;
  background: rgba(3, 21, 15, 0.95);
  border: 1.5px solid #e2c884;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  color: #f8eecd;
  font-size: 15.5px;
  font-weight: 700;
  text-shadow: none;
}
.mk.dest small { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 500; color: #e2c884; }
.mapfig .under {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.mapfig .addr { font-size: 16px; color: var(--text-2); }
.mapfig .addr b { display: block; font-size: 14px; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 4px; }
.mapfig .links { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .mapfig .frame { padding: 8px; }
  .mapfig .under { flex-direction: column; align-items: flex-start; }
  /* 넓은 약도를 그냥 축소하면 라벨이 6px 로 뭉개진다. 목적지 주변만 담은 확대판으로 바꿔 끼운다. */
  .mapfig .m-wide { display: none; }
  .mapfig .m-compact { display: block; }
}


/* ---------- 반응형 ---------- */

@media (max-width: 1080px) {
  .nav a { padding: 9px 13px; font-size: 15.5px; }
  .panel .inner { gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .panel .inner { grid-template-columns: minmax(0, 1fr); }
  .split > *, .panel .inner > * { min-width: 0; }
  .split { gap: 34px; }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 26px 0; }
  .flow .node::before { display: none; }
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  /* flex 는 줄바꿈을 먼저 정하고 그 다음에 축소한다. 그래서 min-width:0 만으로는
     버튼이 아래로 내려가는 걸 못 막는다. flex-basis 를 0 으로 줘야 한 줄에 들어온다. */
  .header-inner > .brand { flex: 1 1 0; min-width: 0; }
  .header-inner > .nav-toggle { flex: none; }
  /* 버튼만 숨기면 폭 0인 빈 flex 아이템이 남아 space-between 이 그것을 맨 오른쪽에 두고
     햄버거가 안쪽으로 밀린다. 컨테이너째로 숨겨 햄버거가 마지막 아이템이 되게 한다. */
  .header-cta { display: none; }
  .nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border-radius: 18px;
    margin-top: 12px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 16px; font-size: 17px; border-radius: 12px; }
}

@media (max-width: 720px) {
  /* 날짜·분류의 min-width 합만으로 244px 라 좁은 화면에서 제목이 밖으로 나갔다 */
  .rows a, .rows .row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .rows .date, .rows .cat { min-width: 0; }
  .rows .title { min-width: 0; width: 100%; }
  .form .field { min-width: 0; }
  section { padding: 68px 0; }
  .page-head .ghost { -webkit-text-stroke-width: 1px; font-size: clamp(48px, 17vw, 90px); }
  .page-head::before { background-size: 62px 62px; }
  .hero { padding-top: 52px; }
  .hero-art { height: 62%; }
  .hero-figure { margin-top: 44px; padding: 10px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 24px 22px; }
  .stat b { font-size: 40.3px; }
  .flow { grid-template-columns: 1fr; gap: 20px; }
  .flow .node { text-align: left; display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 0; }
  .flow .dot { margin: 0; }
  .quote { padding: 32px 24px; }
  .panel { padding: 26px 22px; }
  /* 5개 탭이 가로로 안 들어가므로 스크롤 대신 3열 그리드로 접는다 */
  .tabbar { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .tabbar label { padding: 13px 8px; font-size: 14.5px; border-bottom: 1px solid var(--line); }
  .tabbar label b { font-size: 12.5px; margin-bottom: 2px; }
  .figure-wide { padding: 16px; }
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; width: 100%; }
  .tbl th { width: auto; white-space: normal; padding: 14px 18px 4px; border-bottom: none; font-size: 15px; background: none; }
  .tbl td { padding: 0 18px 15px; border-bottom: none; }
  .tbl tr { border-bottom: 1px solid var(--line); }
  .tbl tr:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
