:root{
  --bg: #0b0e12;
  --bg2:#0f1216;
  --panel: #151a20;
  --card: #11161c;
  --text: #e8eef6;
  --muted: #9aa8b8;
  --line: #263142;
  --accent: #d6b46d;
  --ok: rgba(90, 200, 120, 0.35);
  --bad: rgba(255, 123, 123, 0.35);
}
*{box-sizing:border-box}
html, body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a{color:inherit; text-decoration:none}
.container{width:min(1120px, calc(100% - 32px)); margin:0 auto}
.muted{color:var(--muted)}
.small{font-size:0.92rem}
.site-header{
  position: sticky; top:0; z-index: 20;
  background: rgba(11,14,18,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{display:flex; gap:14px; align-items:center; justify-content:space-between; padding:14px 0}
.brand{display:flex; gap:10px; align-items:center}
.brand-mark{
  display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px; border-radius:12px;
  background: linear-gradient(135deg, #1c2430, #0f1216);
  border:1px solid var(--line);
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.6px;
}
.brand-name{font-weight:900}
.brand-sub{font-weight:700; color: var(--muted)}

.nav{display:flex; gap:14px; align-items:center; flex-wrap:wrap; justify-content:flex-end}
.nav a{color: var(--muted); font-weight: 700; font-size: 0.95rem}
.nav a:hover{color: var(--text)}

.nav-toggle{
  display:none;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  font-weight: 900;
  cursor:pointer;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(214,180,109,0.35);
  background: rgba(214,180,109,0.12);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}
.btn:hover{background: rgba(214,180,109,0.18)}
.btn-small{padding:8px 12px; border-radius: 10px; font-size: 0.92rem}
.btn-ghost{
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}
.btn-ghost:hover{background: rgba(255,255,255,0.04); color: var(--text)}

.site-main{min-height: 70vh}

.hero{
  border-bottom: 1px solid var(--line);
  background: radial-gradient(1200px 500px at 20% 0%, rgba(214,180,109,0.16), transparent 60%),
              radial-gradient(900px 400px at 70% 10%, rgba(120,160,255,0.10), transparent 55%);
}
.hero-inner{display:grid; grid-template-columns: 1.2fr 0.8fr; gap:24px; padding:48px 0}
.hero h1{margin:0 0 10px; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.25}
.hero-cta{display:flex; gap:10px; margin-top: 18px; flex-wrap:wrap}
.hero-card{
  background: rgba(21,26,32,0.75);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.hero-card-title{font-weight: 900; margin-bottom: 10px}
.hero-card-row{display:flex; justify-content:space-between; gap:12px; padding:6px 0; border-bottom:1px dashed rgba(38,49,66,0.6)}
.hero-card-row:last-of-type{border-bottom:0}

.section{padding: 44px 0}
.section.alt{background: rgba(255,255,255,0.02); border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
.section-head{display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom: 16px}
.section-head h2{margin:0}
.section-actions{display:flex; gap:10px; align-items:center}
.link{color: var(--accent); font-weight: 800}
.link:hover{text-decoration: underline}

.grid{display:grid; gap:14px}
.grid-2{grid-template-columns: repeat(2, minmax(0, 1fr))}
.grid-3{grid-template-columns: repeat(3, minmax(0, 1fr))}
.grid-4{grid-template-columns: repeat(4, minmax(0, 1fr))}

@media (max-width: 980px){
  .hero-inner{grid-template-columns: 1fr}
  .grid-4{grid-template-columns: repeat(2, minmax(0, 1fr))}
  .grid-3{grid-template-columns: repeat(2, minmax(0, 1fr))}
}
@media (max-width: 700px){
  .nav-toggle{display:inline-flex}
  .nav{
    display:none;
    position: absolute;
    top: 70px;
    right: 16px;
    left: 16px;
    background: rgba(21,26,32,0.98);
    border:1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    flex-direction:column;
    align-items:flex-start;
  }
  .nav.open{display:flex}
}
@media (max-width: 620px){
  .grid-2,.grid-3,.grid-4{grid-template-columns: 1fr}
}

.card{
  display:block;
  padding: 16px;
  background: rgba(17,22,28,0.84);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform .12s ease, border-color .12s ease;
}
.card:hover{transform: translateY(-2px); border-color: rgba(214,180,109,0.35)}
.card-title{font-weight: 900; margin: 6px 0 8px}
.pill{
  display:inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(214,180,109,0.28);
  background: rgba(214,180,109,0.08);
  color: var(--accent);
  font-weight: 900;
  font-size: 0.82rem;
}

.avatar{
  width: 72px; height: 72px;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 10px;
}
.avatar.large{width: 140px; height: 140px; border-radius: 26px; margin-bottom: 0}
.avatar img{width:100%; height:100%; object-fit: cover}
.avatar-fallback{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-weight: 900;
  color: var(--accent);
  font-size: 1.6rem;
}
.avatar-fallback.large{font-size: 3rem}

.panel{
  padding: 16px;
  border-radius: 16px;
  background: rgba(21,26,32,0.72);
  border: 1px solid var(--line);
}
.panel-title{font-weight: 900; margin-bottom: 10px}

.list{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px}
.list li{display:flex; align-items:baseline; justify-content:space-between; gap:12px}
.list a{font-weight: 800}
.list a:hover{text-decoration: underline}

.page-head{padding: 30px 0 10px; border-bottom:1px solid var(--line); background: rgba(255,255,255,0.01)}
.page-head h1{margin: 0 0 6px}
.filters{
  display:flex; gap:10px; flex-wrap:wrap;
  margin: 0 0 16px;
}
input[type="text"], input[type="email"], textarea, select{
  padding:10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(17,22,28,0.65);
  color: var(--text);
  outline: none;
  min-width: 220px;
}
textarea{width:100%}
select{min-width: 180px}
.form label{display:flex; flex-direction:column; gap:6px; margin-bottom: 12px}
.checkbox{flex-direction:row !important; align-items:center; gap:10px}
.error{color: #ff7b7b; font-size: 0.92rem}
.hr{border:0; border-top:1px solid var(--line); margin: 14px 0}

.detail-grid{display:grid; grid-template-columns: 1fr 360px; gap:18px}
@media (max-width: 980px){.detail-grid{grid-template-columns: 1fr}}

.detail-aside .contact-box{
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(17,22,28,0.65);
  display:flex; flex-direction:column; gap:8px;
}
.chips{display:flex; gap:8px; flex-wrap:wrap; margin-top: 12px}
.chip{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}
.chip:hover{border-color: rgba(214,180,109,0.35); color: var(--text)}

.prose h2{margin-top: 22px}
.prose p, .prose li{color: #d9e2ee}
.prose strong{color: var(--text)}
.prose pre{
  white-space: pre-wrap;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.pagination-wrap{margin-top: 18px}
.pagination{display:flex; justify-content:center; gap:10px; flex-wrap:wrap}
.page{
  padding: 8px 12px;
  border:1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-weight: 800;
}
.page:hover{color: var(--text); border-color: rgba(214,180,109,0.35)}
.page.disabled{opacity: .5; pointer-events:none}
.page.current{color: var(--text); border-color: rgba(214,180,109,0.25)}
.clamp-3{
  display:-webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

.tabs{margin-top: 10px}
.tab-buttons{display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 12px}
.tab-btn{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  font-weight: 900;
  cursor:pointer;
}
.tab-btn.active{border-color: rgba(214,180,109,0.35); color: var(--text); background: rgba(214,180,109,0.10)}
.tab-panel{display:none}
.tab-panel.active{display:block}
.map-hint{margin-top: 10px}
.map-hint a{text-decoration: underline}

.flash{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.flash.success{border-color: var(--ok)}
.flash.error{border-color: var(--bad)}

.site-footer{
  border-top: 1px solid var(--line);
  padding: 26px 0;
  background: rgba(0,0,0,0.25);
}
.footer-grid{display:grid; gap:18px; grid-template-columns: 1.2fr 0.8fr 1fr}
@media (max-width: 980px){.footer-grid{grid-template-columns: 1fr}}
.footer-title{font-weight: 900; margin-bottom: 8px}
.footer-links{display:flex; flex-direction:column; gap:8px}
.footer-links a{color: var(--muted); font-weight: 800}
.footer-links a:hover{color: var(--text)}
.footer-meta{margin-top: 10px; display:flex; flex-direction:column; gap:6px}
.footer-bottom{margin-top: 16px; padding-top: 12px; border-top:1px solid var(--line)}

.callout{
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(214,180,109,0.25);
  background: rgba(214,180,109,0.08);
}
.callout-title{font-weight: 900; margin-bottom: 8px}
