/* =============================================
   에이치엠D&R — 리뉴얼 2026
   토큰: 등록원부(공문서) x 청사진 — 신뢰감과 온기를 함께
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

:root {
  --ink:        #1B2A3D;
  --paper:      #F7F4EC;
  --paper-2:    #EFE9D8;
  --brass:      #A9793C;
  --brass-dark: #8C6229;
  --seal:       #9C3B2E;
  --slate:      #5C6773;
  --slate-light:#87919C;
  --line:       #DED3B8;
  --white:      #FFFFFF;

  --st-done:    #3F6B4F;
  --st-active:  #A9793C;
  --st-prep:    #7C8798;

  --font-display: 'Noto Serif KR', serif;
  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  --shadow-sm: 0 2px 10px rgba(27,42,61,0.06);
  --shadow:    0 8px 28px rgba(27,42,61,0.10);
  --shadow-lg: 0 16px 48px rgba(27,42,61,0.16);
  --radius:    3px;
  --trans:     all 0.25s ease;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 16px;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 108px 0; }
.section-2 { background: var(--paper-2); }
.section-ink { background: var(--ink); color: rgba(255,255,255,0.86); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 12px 20px; z-index: 2000;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* eyebrow label — 등록번호처럼 사용 */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--brass-dark); text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--brass); }
.eyebrow.on-dark { color: #D9B77E; }
.eyebrow.on-dark::before { background: rgba(217,183,126,0.7); }

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700; line-height: 1.35; color: var(--ink);
  margin-bottom: 16px; letter-spacing: -0.01em;
}
.sec-title.on-dark { color: #fff; }
.sec-desc { font-size: 15.5px; color: var(--slate); line-height: 1.9; max-width: 620px; }
.sec-desc.on-dark { color: rgba(255,255,255,0.68); }
.sec-header { margin-bottom: 56px; }
.sec-header.center { text-align: center; }
.sec-header.center .eyebrow { justify-content: center; }
.sec-header.center .sec-desc { margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 28px; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; cursor: pointer;
  border: 1.5px solid transparent; transition: var(--trans); font-family: var(--font-body);
}
.btn-brass { background: var(--brass); color: #fff; border-color: var(--brass); }
.btn-brass:hover { background: var(--brass-dark); border-color: var(--brass-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(140,98,41,0.28); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-ink { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ink:hover { background: var(--ink); color: #fff; }

/* =============================================
   NAVBAR
============================================= */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: 76px;
  background: rgba(247,244,236,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: var(--trans);
}
#navbar.scrolled { background: rgba(247,244,236,0.98); border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; height: 76px; }
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo-img { height: 40px; width: auto; display: block; }
.nav-logo-text { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); }

.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-menu a {
  padding: 9px 15px; font-size: 14.5px; font-weight: 500;
  color: var(--ink); border-radius: 4px; transition: var(--trans);
}
.nav-menu a:hover { color: var(--brass-dark); }
.nav-cta { margin-left: 12px !important; }
.nav-btn { margin-left: 10px; padding: 9px 18px !important; background: var(--brass); color: #fff !important; border-radius: 3px; font-weight: 700 !important; }
.nav-btn:hover { background: var(--brass-dark); color: #fff !important; }

/* utility (CSP style-src has no 'unsafe-inline', so no style="" attributes) */
.muted { color: var(--slate-light); }
.mt-18 { margin-top: 18px; }
.mt-14 { margin-top: 14px; }
.col-no { width: 56px; }
.col-type { width: 120px; }
.col-status { width: 160px; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; margin-left: auto; padding: 8px; border: none; background: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--trans); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; position: fixed; top: 76px; left: 0; right: 0;
  background: rgba(247,244,236,0.99); backdrop-filter: blur(10px);
  padding: 8px 20px 22px; border-top: 1px solid var(--line);
  box-shadow: var(--shadow); z-index: 998;
}
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; padding: 14px 4px; color: var(--ink); font-size: 15.5px; font-weight: 500; border-bottom: 1px solid var(--line); }
.nav-mobile a:last-child { border-bottom: none; }

/* =============================================
   HERO
============================================= */
#hero {
  min-height: 100vh;
  background: var(--paper);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding-top: 76px;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 40%, transparent 90%);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center;
  padding: 72px 0 88px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; color: var(--ink);
  line-height: 1.35; margin-bottom: 22px; letter-spacing: -0.01em;
}
.hero-title em { font-style: normal; color: var(--seal); }
.hero-desc { font-size: 16.5px; color: var(--slate); line-height: 1.95; max-width: 480px; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 0; border-top: 1px solid var(--line); padding-top: 28px; flex-wrap: wrap; }
.hero-stat { padding-right: 34px; margin-right: 34px; border-right: 1px solid var(--line); }
.hero-stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero-stat-num { font-family: var(--font-mono); font-size: 30px; font-weight: 700; color: var(--seal); line-height: 1; }
.hero-stat-label { font-size: 12.5px; color: var(--slate); margin-top: 6px; letter-spacing: 0.2px; }

/* 등록원부 카드 — 시그니처 요소 */
.register-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.register-card-head {
  background: var(--ink); color: #fff; padding: 18px 24px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: space-between;
}
.register-card-body { padding: 28px 26px 24px; position: relative; }
.register-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.register-row:last-of-type { border-bottom: none; }
.register-row dt { color: var(--slate); flex-shrink: 0; }
.register-row dd { color: var(--ink); font-weight: 600; text-align: right; font-family: var(--font-mono); font-size: 13px; }

.register-seal-row { display: flex; justify-content: flex-end; margin-top: 18px; }
.seal {
  width: 74px; height: 74px; border-radius: 50%; flex-shrink: 0;
  border: 2.5px solid var(--seal); color: var(--seal);
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-9deg);
  opacity: 0.9;
}
.seal-inner {
  width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--seal);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 11px; line-height: 1.35;
}

/* =============================================
   TRUST STRIP
============================================= */
#trust-strip { background: var(--ink); padding: 22px 0; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 40px; align-items: center; justify-content: center; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,0.78); }
.trust-item strong { color: #fff; font-weight: 700; }
.trust-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }

/* =============================================
   ABOUT / OVERVIEW
============================================= */
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid var(--line); }
.info-table tr:first-child { border-top: 2px solid var(--ink); }
.info-table td { padding: 15px 4px; font-size: 14.5px; vertical-align: top; }
.info-table td:first-child { font-weight: 700; color: var(--ink); width: 130px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.3px; padding-top: 17px; }
.info-table td:last-child { color: var(--slate); }

/* 회사소개 하단 — 조직구성·협력기관을 하나의 묶음으로 가운데 배치 (전체 폭은 위 그리드와 일치) */
.org-box {
  margin-top: 44px; padding: 40px 40px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 48px;
}
.org-group { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.org-group h4 { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: 0.3px; white-space: nowrap; }
.org-divider { width: 1px; align-self: stretch; background: var(--line); }

/* 조직도 — 옆이 아니라 대표이사에서 아래로 내려가는 구조.
   각 하위 조직 박스에서 개별적으로 선이 뻗어 나와 위쪽 가로선에서 만나는
   실제 조직도 형태(트리 커넥터)로 표시합니다. */
.org-chart { display: flex; flex-direction: column; align-items: center; }
.org-connector { width: 1px; height: 16px; background: var(--line); }
.org-teams { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; padding-top: 16px; position: relative; }
.org-teams .org-node { position: relative; }
.org-teams .org-node::before {
  content: ''; position: absolute; top: -16px; left: 50%;
  width: 1px; height: 16px; background: var(--line);
}
.org-teams .org-node::after {
  content: ''; position: absolute; top: -16px; left: -5px; right: -5px;
  height: 1px; background: var(--line);
}
.org-teams .org-node:first-child::after { left: 50%; }
.org-teams .org-node:last-child::after { right: 50%; }

.org-flow { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; font-size: 13px; color: var(--slate); }
.org-node { display: inline-block; padding: 7px 14px; background: var(--paper-2); border-radius: 3px; color: var(--ink); font-weight: 600; font-size: 13px; }
.org-node.org-ceo { background: var(--ink); color: #fff; margin-bottom: 2px; }

.license-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; position: relative; box-shadow: var(--shadow-sm);
}
.license-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(156,59,46,0.08); border: 1px solid rgba(156,59,46,0.35);
  color: var(--seal); font-size: 11.5px; font-weight: 700; letter-spacing: 0.4px;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 18px;
}
.license-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 22px; line-height: 1.5; color: var(--ink); }
.lic-row { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.lic-row:last-child { margin-bottom: 0; }
.lic-icon {
  width: 34px; height: 34px; border-radius: 4px; flex-shrink: 0;
  background: var(--paper-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.lic-text { font-size: 13.5px; color: var(--slate); line-height: 1.7; }
.lic-text strong { color: var(--ink); display: block; margin-bottom: 3px; font-size: 14px; }

/* =============================================
   SERVICES
============================================= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc-card { background: var(--paper); padding: 30px 26px; transition: var(--trans); }
.svc-card:hover { background: var(--white); }
.svc-card.wide { grid-column: span 1; }
.svc-num { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--brass); letter-spacing: 1px; margin-bottom: 14px; }
.svc-icon { font-size: 26px; margin-bottom: 14px; }
.svc-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.svc-card p { font-size: 13.5px; color: var(--slate); line-height: 1.75; margin-bottom: 14px; min-height: 66px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-tag { font-size: 11.5px; padding: 4px 10px; background: var(--paper-2); color: var(--ink); border-radius: 3px; }

/* =============================================
   STRENGTHS
============================================= */
.str-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.str-card { background: var(--ink); color: rgba(255,255,255,0.85); padding: 38px 30px; }
.str-num { font-family: var(--font-mono); color: var(--brass); font-size: 12px; letter-spacing: 1px; margin-bottom: 18px; }
.str-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.str-card .str-sub { display: block; font-size: 12.5px; font-weight: 400; color: #D9B77E; margin-bottom: 16px; }
.str-card p { font-size: 13.5px; color: rgba(255,255,255,0.68); line-height: 1.8; margin-bottom: 16px; }
.str-list { display: flex; flex-direction: column; gap: 9px; }
.str-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.82); }
.str-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); margin-top: 7px; flex-shrink: 0; }

/* =============================================
   PROCESS RAIL — 시그니처: 진행단계 등록원부
============================================= */
.rail-tabs { display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.rail-tab {
  padding: 11px 24px; border-radius: 3px; font-size: 14px; font-weight: 700;
  cursor: pointer; border: 1.5px solid var(--line);
  background: var(--white); color: var(--slate); transition: var(--trans); font-family: inherit;
}
.rail-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.rail-panel { display: none; }
.rail-panel.active { display: block; }

.rail-count { display: flex; gap: 14px; margin-bottom: 36px; flex-wrap: wrap; }
.rail-count-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 22px; display: flex; align-items: center; gap: 12px; }
.rail-count-num { font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--seal); line-height: 1; }
.rail-count-label { font-size: 12.5px; color: var(--slate); }

/* 단계 축 */
.rail-track { position: relative; margin-bottom: 44px; padding: 0 4px; }
.rail-track-line { position: relative; height: 3px; background: var(--line); border-radius: 2px; margin: 0 10px 14px; }
.rail-track-line-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brass); border-radius: 2px; }
.rail-stages { display: flex; justify-content: space-between; }
.rail-stage { text-align: center; flex: 1; }
.rail-stage-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--white); border: 2.5px solid var(--line); margin: -21.5px auto 10px; position: relative; }
.rail-stage.filled .rail-stage-dot { border-color: var(--brass); background: var(--brass); }
.rail-stage-label { font-size: 12px; color: var(--slate); font-weight: 600; line-height: 1.4; }
.rail-stage.filled .rail-stage-label { color: var(--ink); }
.rail-stage-count { font-family: var(--font-mono); font-size: 11px; color: var(--brass-dark); margin-top: 3px; }

.rail-table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rail-table { width: 100%; border-collapse: collapse; }
.rail-table th {
  background: var(--paper-2); color: var(--ink); padding: 13px 18px;
  text-align: left; font-size: 12.5px; font-weight: 700; letter-spacing: 0.3px; border-bottom: 1px solid var(--line);
}
.rail-table td { padding: 13px 18px; font-size: 13.5px; color: var(--ink); border-bottom: 1px solid var(--paper-2); }
.rail-table tr:last-child td { border-bottom: none; }
.rail-table tbody tr { cursor: pointer; transition: background 0.15s; }
.rail-table tbody tr:hover td { background: var(--paper-2); }
.rail-table td.no-click { cursor: default; }

.stage-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px; border-radius: 20px; font-size: 11.5px; font-weight: 700;
}
.stage-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.stage-badge.st-done { background: rgba(63,107,79,0.1); color: var(--st-done); }
.stage-badge.st-done::before { background: var(--st-done); }
.stage-badge.st-active { background: rgba(169,121,60,0.12); color: var(--brass-dark); }
.stage-badge.st-active::before { background: var(--brass); }
.stage-badge.st-prep { background: rgba(124,135,152,0.12); color: var(--st-prep); }
.stage-badge.st-prep::before { background: var(--st-prep); }

.type-tag { display: inline-block; font-size: 11px; padding: 3px 9px; border-radius: 3px; font-weight: 700; background: var(--paper-2); color: var(--slate); }

@media(max-width: 680px) {
  .rail-stage-label { font-size: 10px; }
  .rail-table thead { display: none; }
  .rail-table, .rail-table tbody { display: block; }
  .rail-table tbody tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--paper-2); }
  .rail-table tbody td { display: block; padding: 3px 0; border: none; font-size: 13.5px; }
  .rail-table tbody td:first-child { font-family: var(--font-mono); font-size: 11px; color: var(--slate-light); }
  .rail-table tbody td:nth-child(2) { font-weight: 700; margin: 3px 0 6px; }
  .rail-table tbody td.admin-only { display: none; }
  body.is-admin .rail-table tbody td.admin-only { display: block; }
}

/* =============================================
   RECORDS GALLERY
============================================= */
.records-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.record-card { cursor: pointer; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: var(--trans); }
.record-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--brass); }
.record-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.record-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.record-card:hover .record-thumb img { transform: scale(1.06); }
.record-meta { padding: 14px 16px; }
.record-meta h4 { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; line-height: 1.5; min-height: 40px; }
.record-badges { display: flex; gap: 6px; flex-wrap: wrap; }

@media(max-width: 900px) { .records-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 520px) { .records-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .record-meta h4 { font-size: 12.5px; min-height: 34px; } }

/* Lightbox */
#lightbox { display: none; position: fixed; inset: 0; z-index: 9000; background: rgba(27,42,61,0.88); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 24px; }
#lightbox.open { display: flex; }
.lb-box { background: var(--white); border-radius: 6px; width: 100%; max-width: 720px; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.lb-img-wrap { background: var(--paper-2); aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; }
.lb-img-wrap img { width: 100%; height: 100%; object-fit: contain; }
.lb-no-image { display: none; color: var(--slate-light); font-size: 13.5px; }
.lb-body { padding: 22px 26px 26px; }
.lb-body h3 { font-family: var(--font-display); font-size: 17px; margin-bottom: 10px; color: var(--ink); }
.lb-badges { display: flex; gap: 8px; margin-bottom: 4px; }
.lb-close {
  position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.15); color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: var(--trans);
}
.lb-close:hover { background: rgba(255,255,255,0.3); }

/* =============================================
   TIMELINE
============================================= */
.timeline { position: relative; padding-left: 42px; max-width: 720px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 12px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; margin-bottom: 30px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot { position: absolute; left: -36px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--brass); }
.tl-year { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--brass-dark); letter-spacing: 0.5px; margin-bottom: 6px; }
.tl-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.tl-card h4 { font-family: var(--font-display); font-size: 15.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.tl-card ul li { font-size: 13.5px; color: var(--slate); padding: 3px 0; display: flex; gap: 8px; }
.tl-card ul li::before { content: '·'; color: var(--brass); font-weight: 700; }

/* =============================================
   MAP
============================================= */
.map-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: stretch; }
.map-detail { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.map-detail-icon { width: 38px; height: 38px; border-radius: 4px; flex-shrink: 0; background: var(--paper-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.map-detail-text label { display: block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; color: var(--brass-dark); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.map-detail-text span { color: var(--ink); font-weight: 500; font-size: 14.5px; }
.map-transport { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.map-transport h4 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.transport-item { display: flex; gap: 10px; align-items: center; margin-bottom: 11px; font-size: 13.5px; color: var(--slate); letter-spacing: -0.4px; }
.transport-badge { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 24px; font-size: 11px; font-weight: 700; border-radius: 3px; white-space: nowrap; flex-shrink: 0; color: #fff; }
.t-subway { background: var(--ink); }
.t-bus { background: var(--st-done); }
.t-car { background: var(--slate-light); }
.map-frame-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); height: 100%; min-height: 320px; }
.map-frame-wrap iframe { display: block; width: 100%; height: 100%; border: none; }

/* =============================================
   CONTACT
============================================= */
#contact { padding: 108px 0; }
.contact-note {
  display: flex; gap: 14px; align-items: flex-start; margin: 0 auto 32px; max-width: 640px;
  padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.contact-note-icon { font-size: 20px; flex-shrink: 0; }
.contact-note p { font-size: 13.5px; color: var(--slate); line-height: 1.85; }
.contact-note strong { color: var(--ink); }

.contact-form { background: var(--white); border-radius: 6px; padding: 34px 32px; box-shadow: var(--shadow-lg); max-width: 640px; margin: 0 auto; }

/* 상담신청서 아래 연락처 요약 줄 — 상세 정보는 바로 위 오시는길 섹션에 이미 있어 여기선 짧게만 반복 */
.contact-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px 28px; max-width: 800px; margin: 48px auto 0;
  padding-top: 32px; border-top: 1px solid var(--line);
}
.contact-row-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--slate); }
.contact-row-icon { font-size: 15px; }
.contact-channel-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-size: 13px; font-weight: 600; color: var(--ink); background: var(--white); transition: var(--trans);
}
.contact-channel-btn:hover { background: var(--paper-2); border-color: var(--brass); }
.contact-form h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 24px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 12.5px; font-weight: 700; color: var(--slate); margin-bottom: 7px; }
.form-row .req { color: var(--seal); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; background: var(--paper); border: 1.5px solid var(--line); border-radius: 4px;
  padding: 12px 14px; color: var(--ink); font-family: inherit; font-size: 14.5px; outline: none; transition: var(--trans);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--brass); background: var(--white); }
.form-row textarea { resize: vertical; min-height: 100px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-btn {
  width: 100%; padding: 15px; background: var(--seal); color: #fff; border: none; border-radius: 4px;
  font-size: 15.5px; font-weight: 700; cursor: pointer; transition: var(--trans); margin-top: 8px; font-family: inherit;
}
.form-btn:hover { background: #7f2f24; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(156,59,46,0.3); }
.form-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.form-hint { font-size: 11.5px; color: var(--slate); margin-top: 8px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.privacy-summary {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: 16px 18px; margin-bottom: 16px; font-size: 12.5px; color: var(--slate);
}
.privacy-summary strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 10px; }
.privacy-summary table { width: 100%; border-collapse: collapse; }
.privacy-summary td { padding: 4px 0; vertical-align: top; }
.privacy-summary td:first-child { width: 78px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.privacy-summary p { margin-top: 10px; }
.privacy-summary a { color: var(--brass-dark); font-weight: 600; text-decoration: underline; }
.form-row-check { margin-bottom: 20px; }
.check-label { display: flex !important; align-items: center; gap: 8px; font-size: 13.5px !important; font-weight: 500 !important; color: var(--ink) !important; cursor: pointer; }
.check-label input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--brass); cursor: pointer; flex-shrink: 0; }

/* =============================================
   FOOTER
============================================= */
#footer { background: var(--ink); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-corp { font-size: 12.5px; color: rgba(255,255,255,0.5); line-height: 1.8; }
.footer-corp strong { color: rgba(255,255,255,0.8); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.32); font-family: var(--font-mono); }
.footer-legal { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; }
.footer-legal a { color: rgba(255,255,255,0.55); transition: var(--trans); }
.footer-legal a:hover { color: #fff; }
.footer-legal a strong { color: rgba(255,255,255,0.85); font-weight: 700; }
.footer-legal a:hover strong { color: #fff; }
.footer-legal-divider { color: rgba(255,255,255,0.25); }

/* Scroll top */
#top-btn {
  position: fixed; bottom: 30px; right: 30px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; border: none; cursor: pointer;
  font-size: 17px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: var(--trans); display: flex; align-items: center; justify-content: center;
}
#top-btn.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#top-btn:hover { background: var(--brass-dark); }

/* Toast */
#toast {
  position: fixed; bottom: 88px; right: 30px; max-width: 320px;
  background: var(--ink); color: #fff; padding: 15px 18px; border-radius: 6px;
  font-size: 13.5px; font-weight: 500; border-left: 3px solid var(--brass);
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: var(--trans); z-index: 1000;
}
#toast.show { opacity: 1; transform: translateY(0); }
#toast.error { border-left-color: var(--seal); }

/* Scroll reveal */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.08s; }
.fade-up.d2 { transition-delay: 0.16s; }
.fade-up.d3 { transition-delay: 0.24s; }

/* =============================================
   RESPONSIVE
============================================= */
@media(max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .register-card { max-width: 420px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .str-grid { grid-template-columns: 1fr; }
  .records-grid { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width: 860px) {
  .overview-grid { grid-template-columns: 1fr; gap: 36px; }
  .map-grid { grid-template-columns: 1fr; }
  .org-box { flex-direction: column; gap: 32px; padding: 32px 28px; }
  .org-divider { width: 100%; height: 1px; align-self: stretch; }
}
@media(max-width: 768px) {
  .section { padding: 76px 0; }
  #contact { padding: 76px 0; }
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px 0; }
  .hero-stat { border-right: none; padding-right: 0; margin-right: 26px; }
}
@media(max-width: 520px) {
  .records-grid { grid-template-columns: 1fr 1fr; }
  .form-2col { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .rail-count { flex-direction: column; }
  .hero-title { font-size: 30px; }
}

/* =============================================
   관리자 모드
============================================= */
.admin-only { display: none; }
body.is-admin .admin-only { display: block; }
body.is-admin .rail-table thead .admin-only { display: table-cell; }
body.is-admin .rail-table tbody .admin-only { display: table-cell; }
body.is-admin .admin-toolbar.admin-only { display: flex; }

.admin-entry-link {
  background: none; border: none; color: rgba(255,255,255,0.28);
  font-size: 11px; padding: 14px 0 4px; cursor: pointer; font-family: inherit;
  transition: var(--trans);
}
.admin-entry-link:hover { color: rgba(255,255,255,0.6); }

#admin-bar {
  position: fixed; top: 76px; left: 0; right: 0; z-index: 950;
  background: var(--ink); color: #fff; border-bottom: 2px solid var(--brass);
}
.admin-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 9px 24px; font-size: 12.5px; flex-wrap: wrap;
}
.admin-bar-actions { display: flex; gap: 8px; }
.admin-bar-actions button {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 12px; padding: 5px 12px; border-radius: 3px;
  cursor: pointer; font-family: inherit; transition: var(--trans);
}
.admin-bar-actions button:hover { background: rgba(255,255,255,0.2); }

.admin-toolbar { justify-content: flex-end; margin-bottom: 16px; }
.admin-add-btn {
  background: var(--brass); color: #fff; border: none; padding: 9px 18px;
  border-radius: 3px; font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: var(--trans);
}
.admin-add-btn:hover { background: var(--brass-dark); }

.col-admin { width: 96px; text-align: right; }
.rail-table td.col-admin { text-align: right; white-space: nowrap; }
.row-edit-btn, .row-delete-btn {
  border: 1px solid var(--line); background: var(--white); border-radius: 3px;
  width: 28px; height: 28px; cursor: pointer; font-size: 12.5px; line-height: 1;
  transition: var(--trans); margin-left: 4px;
}
.row-edit-btn:hover { border-color: var(--brass); background: var(--paper-2); }
.row-delete-btn:hover { border-color: var(--seal); background: rgba(156,59,46,0.08); }

.record-card { position: relative; }
.record-admin-actions {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  gap: 6px;
}
body.is-admin .record-admin-actions.admin-only { display: flex; }
.record-admin-actions button {
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: rgba(27,42,61,0.72); color: #fff; cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center; transition: var(--trans);
}
.record-admin-actions button:hover { background: var(--ink); }
.record-thumb.no-image {
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-light); font-size: 12.5px; text-align: center; padding: 16px;
}

/* 공용 관리자 모달 */
.amodal-overlay {
  display: none; position: fixed; inset: 0; z-index: 9500;
  background: rgba(27,42,61,0.72); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.amodal-overlay.open { display: flex; }
.amodal-box {
  background: var(--white); border-radius: 6px; width: 100%; max-width: 520px;
  max-height: 90vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.amodal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line); background: var(--paper-2); flex-shrink: 0;
}
.amodal-head h3 { font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.amodal-close {
  width: 30px; height: 30px; border: none; background: var(--line); border-radius: 50%;
  font-size: 14px; cursor: pointer; color: var(--slate); flex-shrink: 0;
}
.amodal-body { padding: 24px; overflow-y: auto; }
.amodal-body p.amodal-hint { font-size: 13px; color: var(--slate); margin-bottom: 16px; line-height: 1.8; }
.amodal-body .form-row input,
.amodal-body .form-row select,
.amodal-body .form-row textarea { background: var(--paper); color: var(--ink); border-color: var(--line); }
.amodal-body .form-row label { color: var(--slate); }
.amodal-body .form-btn { background: var(--brass); }
.amodal-body .form-btn:hover { background: var(--brass-dark); }
.amodal-body .form-btn.danger { background: var(--seal); }
.amodal-body .form-btn.danger:hover { background: #7f2f24; }
.amodal-body .form-btn.ghost { background: var(--paper-2); color: var(--ink); }
.amodal-body .form-btn.ghost:hover { background: var(--line); }
.amodal-btn-row { display: flex; gap: 10px; margin-top: 6px; }
.amodal-btn-row .form-btn { margin-top: 0; }
.amodal-current-img { width: 100%; max-height: 160px; object-fit: contain; background: var(--paper-2); border-radius: 4px; margin-bottom: 10px; }
.amodal-error { color: var(--seal); font-size: 13px; margin-bottom: 12px; display: none; }
.amodal-error.show { display: block; }

.consult-panel { margin-top: 28px; }
.consult-detail { width: 100%; border-collapse: collapse; }
.consult-detail th { width: 84px; padding: 8px 10px 8px 0; text-align: left; vertical-align: top; font-size: 13px; color: var(--slate); }
.consult-detail td { padding: 8px 0; font-size: 13.5px; color: var(--ink); border-bottom: 1px solid var(--paper-2); }
.consult-detail-message { background: var(--paper-2); border-radius: 4px; padding: 14px; font-size: 13.5px; line-height: 1.8; color: var(--ink); }

@media(max-width: 520px) {
  .amodal-box { max-height: 94vh; }
  .admin-bar-inner { font-size: 11.5px; }
}

/* =============================================
   정책 페이지 (개인정보처리방침·이용약관)
============================================= */
.policy-header { background: var(--paper); border-bottom: 1px solid var(--line); padding: 18px 0; }
.policy-header-inner { display: flex; align-items: center; justify-content: space-between; }
.policy-back { font-size: 13.5px; font-weight: 600; color: var(--slate); transition: var(--trans); }
.policy-back:hover { color: var(--brass-dark); }

.policy-page { background: var(--paper); padding: 64px 0 96px; }
.policy-container { max-width: 760px; }
.policy-title { font-family: var(--font-display); font-size: clamp(26px, 3.5vw, 34px); font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.policy-updated { font-family: var(--font-mono); font-size: 12.5px; color: var(--slate); margin-bottom: 44px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }

.policy-body h2 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); margin: 40px 0 14px; }
.policy-body h2:first-child { margin-top: 0; }
.policy-body p { font-size: 14.5px; color: var(--slate); line-height: 1.9; margin-bottom: 12px; }
.policy-body ul, .policy-body ol { margin: 0 0 12px 20px; }
.policy-body li { font-size: 14.5px; color: var(--slate); line-height: 1.9; }
.policy-body strong { color: var(--ink); }
.policy-body a { color: var(--brass-dark); font-weight: 600; text-decoration: underline; }

.policy-table { width: 100%; border-collapse: collapse; margin: 16px 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.policy-table th { background: var(--paper-2); text-align: left; padding: 11px 16px; font-size: 13px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
.policy-table td { padding: 11px 16px; font-size: 13.5px; color: var(--slate); border-bottom: 1px solid var(--paper-2); vertical-align: top; }
.policy-table tr:last-child td { border-bottom: none; }
