:root {
  --paper: #f5f1ea;
  --paper-2: #ebe5da;
  --ink: #16151a;
  --ink-2: #3b3942;
  --muted: #6f6a72;
  --accent: #e4572e;
  --accent-2: #f2a541;
  --line: rgba(22, 21, 26, 0.12);
  --radius: 18px;
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: "Noto Sans KR", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.small { font-size: 0.85rem; }
.muted { color: var(--muted); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 900; margin-bottom: 1.2rem; }
h3 { font-size: 1.15rem; font-weight: 700; }
.eyebrow {
  font-family: "Archivo", sans-serif;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.8rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: 0.95rem;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 241, 234, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 0.6rem; }
.logo-mark { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.logo-mark i { width: 4px; background: var(--accent); border-radius: 2px; }
.logo-mark i:nth-child(1) { height: 40%; }
.logo-mark i:nth-child(2) { height: 100%; }
.logo-mark i:nth-child(3) { height: 65%; }
.logo-mark i:nth-child(4) { height: 85%; background: var(--ink); }
.logo-text { font-family: "Archivo", sans-serif; font-weight: 900; letter-spacing: 0.02em; font-size: 1.05rem; }
.logo-text b { font-weight: 500; margin-left: 0.3rem; color: var(--ink-2); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; font-size: 0.93rem; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 7px 8px; transition: transform .2s; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 120px 0 180px; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 5rem); font-weight: 900; margin-bottom: 1.6rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 560px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.eq {
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  display: flex; align-items: flex-end; gap: 6px; padding: 0 24px;
  opacity: 0.9;
}
.eq span {
  flex: 1; background: var(--accent); border-radius: 4px 4px 0 0;
  animation: bounce 1.6s ease-in-out infinite;
  transform-origin: bottom;
}
.eq span:nth-child(3n)   { background: var(--accent-2); animation-duration: 1.2s; }
.eq span:nth-child(4n)   { background: var(--ink); animation-duration: 2.1s; }
.eq span:nth-child(5n+1) { animation-delay: -0.4s; }
.eq span:nth-child(7n+2) { animation-delay: -0.9s; }
.eq span:nth-child(2n)   { animation-delay: -1.3s; }
@keyframes bounce {
  0%, 100% { height: 18%; }
  50% { height: 100%; }
}
@media (prefers-reduced-motion: reduce) { .eq span { animation: none; height: 50%; } }

/* Sections */
.section { padding: 110px 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .muted { color: #a8a3ab; }
.section-tint { background: var(--paper-2); }
.grid-2 { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.prose p { font-size: 1.08rem; color: var(--ink-2); margin-bottom: 1rem; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 4rem; }
.value { border-top: 2px solid var(--ink); padding-top: 1.2rem; }
.value .num { font-family: "Archivo", sans-serif; font-weight: 900; color: var(--accent); }
.value h3 { margin: 0.4rem 0 0.5rem; font-size: 1.3rem; }
.value p { color: var(--ink-2); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(245,241,234,.15); border: 1px solid rgba(245,241,234,.15); border-radius: var(--radius); overflow: hidden; margin-top: 1rem; }
.card { background: var(--ink); padding: 2rem; transition: background .2s; }
.card:hover { background: #221f27; }
.card-icon { font-size: 1.6rem; color: var(--accent-2); margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: #c9c4cc; font-size: 0.95rem; }

.join { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1rem; }
.join-item { background: #fff; border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.6rem; }
.join-item.highlight { background: var(--accent); color: #fff; border-color: transparent; }
.join-item.highlight .who, .join-item.highlight p { color: #fff; }
.join-item h3 { font-size: 1.5rem; }
.join-item .who { font-weight: 700; color: var(--accent); font-size: 0.9rem; }
.join-item p { color: var(--ink-2); flex: 1; }
.link { font-weight: 700; margin-top: 0.6rem; }
.link:hover { text-decoration: underline; }

.timeline { list-style: none; border-left: 2px solid var(--line); padding-left: 1.6rem; }
.timeline li { position: relative; padding-bottom: 1.6rem; display: flex; flex-direction: column; }
.timeline li::before {
  content: ""; position: absolute; left: calc(-1.6rem - 7px); top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper-2); border: 2px solid var(--muted);
}
.timeline li.done::before { background: var(--ink); border-color: var(--ink); }
.timeline li.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(228,87,46,.2); }
.timeline li.now b::after { content: "진행 중"; margin-left: 0.5rem; font-size: 0.72rem; color: #fff; background: var(--accent); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.timeline span { color: var(--muted); font-size: 0.9rem; }

.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.doc { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: 0.3rem; background: #fff; }
.doc span { font-weight: 700; }
.doc small { color: var(--muted); }
.doc.is-pending { opacity: 0.7; cursor: default; }

.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.news-item { border-top: 2px solid var(--ink); padding-top: 1rem; }
.news-item time { font-family: "Archivo", sans-serif; font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.news-item h3 { margin: 0.4rem 0; }
.news-item p { color: var(--ink-2); font-size: 0.95rem; }
.news-item.placeholder { opacity: 0.6; }

.contact h2 { color: var(--paper); }
.contact-box { border: 1px solid rgba(245,241,234,.2); border-radius: var(--radius); padding: 2rem; }
.contact-mail { display: inline-block; font-family: "Archivo", sans-serif; font-size: clamp(1.2rem, 3vw, 1.9rem); font-weight: 900; color: var(--accent-2); margin: 0.6rem 0 1rem; word-break: break-all; }
.contact-mail:hover { color: var(--accent); }

.footer { padding: 3rem 0 2rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.org-info { display: grid; grid-template-columns: repeat(2, auto); gap: 0.3rem 2rem; }
.org-info div { display: flex; gap: 0.6rem; }
.org-info dt { color: var(--muted); }
.copy { padding-top: 1.2rem; border-top: 1px solid var(--line); }

/* Responsive */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 1.5rem; }
  .cards, .join, .news { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-links a { padding: 0.9rem 16px; border-top: 1px solid var(--line); }
  .nav-links a.btn { margin: 0.8rem 16px; justify-content: center; border-top: 0; }
  .nav.open .nav-links { max-height: 420px; }
  .nav.open .nav-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .hero { padding: 72px 0 150px; }
  .section { padding: 72px 0; }
  .values, .cards, .join, .news, .docs { grid-template-columns: 1fr; }
  .values { margin-top: 2.5rem; }
  .org-info { grid-template-columns: 1fr; }
  .eq { gap: 3px; padding: 0 16px; height: 90px; }
}
