:root {
  --blue: #1045d4;
  --blue-strong: #0636ba;
  --blue-soft: #edf3ff;
  --ink: #14213d;
  --muted: #667085;
  --line: #e5eaf3;
  --paper: #ffffff;
  --soft: #f6f8fc;
  --warning: #fff6d8;
  --warning-ink: #6b4a00;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(23, 48, 103, .12);
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.archive-bar {
  min-height: 38px;
  padding: 8px 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  background: var(--warning);
  color: var(--warning-ink);
  font-size: 13px;
  text-align: center;
}
.archive-bar strong { letter-spacing: .04em; }

.site-header {
  max-width: var(--max);
  min-height: 94px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-weight: 900;
  font-size: 29px;
  letter-spacing: -.07em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  width: 48px;
  height: 44px;
  object-fit: contain;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.7vw, 54px);
}
.primary-nav a {
  padding: 8px 2px;
  color: var(--blue-strong);
  font-weight: 730;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
  border-color: var(--blue);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--blue);
}

.hero {
  min-height: 735px;
  display: grid;
  grid-template-columns: minmax(420px, .88fr) minmax(520px, 1.12fr);
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 42px 28px 80px;
  overflow: hidden;
}
.hero-copy {
  max-width: 600px;
  padding-left: clamp(0px, 4vw, 48px);
  position: relative;
  z-index: 2;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: clamp(44px, 5vw, 70px);
  line-height: 1.18;
  letter-spacing: -.055em;
}
.hero h1 span { white-space: nowrap; }
.hero-tags {
  margin: 0 0 32px;
  color: #2f3138;
  font-size: 17px;
  font-weight: 700;
}
.hero-tags b { color: #aeb6c8; padding: 0 3px; }
.lead { margin: 0 0 12px; color: #687080; }
.hero-points {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  color: #636978;
}
.hero-points li {
  position: relative;
  margin: 10px 0;
  padding-left: 30px;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 7px;
  top: .73em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #323741;
}
.primary-button,
.secondary-button {
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(16, 69, 212, .22);
}
.primary-button { width: 100%; }
.primary-button:disabled {
  cursor: not-allowed;
  opacity: .78;
}
.hero-visual {
  min-height: 610px;
  position: relative;
  display: grid;
  align-items: center;
  justify-items: end;
}
.hero-blue {
  position: absolute;
  right: -14%;
  width: 84%;
  height: 88%;
  background: var(--blue);
}
.hero-visual img {
  position: relative;
  z-index: 1;
  width: 94%;
  max-height: 650px;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(18, 48, 119, .17));
  clip-path: inset(0 round 18px);
}

.section {
  padding: 100px max(28px, calc((100vw - var(--max)) / 2));
}
.section.soft { background: var(--soft); }
.section-heading {
  max-width: 780px;
  margin-bottom: 44px;
}
.section-heading h2,
.split-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.22;
  letter-spacing: -.04em;
}
.section-heading > p:last-child { color: var(--muted); font-size: 17px; }

.feature-grid,
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.feature-grid article,
.board-grid article,
.service-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 40px rgba(30, 52, 102, .06);
}
.feature-number {
  display: block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .13em;
}
.feature-grid h3,
.board-grid h3,
.service-card h3 { margin: 10px 0 8px; font-size: 21px; }
.feature-grid p,
.board-grid p,
.service-card p { margin: 0; color: var(--muted); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.service-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 22px;
  align-items: center;
}
.service-card img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 16px;
  background: var(--blue-soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(45px, 7vw, 100px);
}
.split-media {
  padding: 24px;
  border-radius: 34px;
  background: var(--blue-soft);
}
.split-media img { width: 100%; border-radius: 18px; }
.process-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}
.process-list li {
  counter-increment: process;
  display: grid;
  grid-template-columns: 44px 1fr;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.process-list li::before {
  content: counter(process, decimal-leading-zero);
  color: var(--blue);
  font-weight: 900;
  grid-row: span 2;
}
.process-list strong { display: block; }
.process-list span { color: var(--muted); }

.event-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.event-gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.archive-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.secondary-button {
  min-height: 52px;
  background: #fff;
  color: var(--blue);
  border: 1px solid #c9d6f7;
  box-shadow: none;
}
.secondary-button:hover { background: var(--blue-soft); }

.faq { max-width: 1000px; margin: 0 auto; }
.faq details {
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 760;
}
.faq details p { color: var(--muted); }

.site-footer {
  padding: 56px 28px;
  background: #0c1935;
  color: #b9c2d7;
  text-align: center;
}
.footer-brand { justify-content: center; color: #fff; }
.site-footer p { margin: 12px 0 0; }
.footer-note { font-size: 13px; opacity: .72; }

/* Blog and generated archive pages */
.subpage-header {
  max-width: 1000px;
  margin: 0 auto;
  padding: 42px 24px 20px;
}
.subpage-header .brand { margin-bottom: 26px; }
.breadcrumb { color: var(--muted); font-size: 14px; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.archive-shell {
  max-width: 1000px;
  min-height: 60vh;
  margin: 0 auto;
  padding: 34px 24px 100px;
}
.archive-title {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.2;
  letter-spacing: -.045em;
}
.archive-lead { max-width: 740px; color: var(--muted); }
.post-list { display: grid; gap: 18px; margin-top: 42px; }
.post-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 18px 45px rgba(21, 49, 109, .1); }
.post-card img,
.post-card .cover-placeholder {
  width: 180px;
  height: 124px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--blue-soft);
}
.post-card h2 { margin: 4px 0 8px; font-size: 22px; line-height: 1.35; }
.post-card p { margin: 0; color: var(--muted); }
.post-meta { color: #7e879b; font-size: 13px; }
.post-page { max-width: 860px; }
.post-page .post-meta { margin: 14px 0 34px; }
.post-hero-image { width: 100%; max-height: 500px; object-fit: cover; border-radius: 22px; }
.post-content { margin-top: 44px; font-size: 17px; }
.post-content h2,
.post-content h3,
.post-content h4 { margin: 2.2em 0 .7em; line-height: 1.35; letter-spacing: -.025em; }
.post-content p { margin: 0 0 1.2em; }
.post-content p.spacer { min-height: .5em; margin: 0; }
.post-content figure { margin: 32px 0; }
.post-content figure img { max-height: 740px; margin: 0 auto; border-radius: 16px; }
.post-content figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: center; }
.post-content pre {
  overflow: auto;
  padding: 18px;
  border-radius: 14px;
  background: #101827;
  color: #eaf0ff;
}
.archived-link {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-style: dotted;
  cursor: help;
}
.draft-banner {
  margin: 22px 0;
  padding: 14px 18px;
  border: 1px solid #f0d782;
  border-radius: 12px;
  background: var(--warning);
  color: var(--warning-ink);
}

/* Media archive */
.media-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}
.media-search {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid #cdd5e5;
  border-radius: 10px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.media-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.media-item img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f3f5f9;
}
.media-item figcaption { padding: 12px; }
.media-item strong,
.media-item code { display: block; overflow-wrap: anywhere; }
.media-item strong { font-size: 13px; }
.media-item code { margin-top: 6px; color: var(--muted); font-size: 10px; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-header { position: relative; }
  .primary-nav {
    display: none;
    position: absolute;
    z-index: 20;
    top: 80px;
    left: 20px;
    right: 20px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 11px; }
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 52px;
  }
  .hero-copy { max-width: 720px; padding-left: 0; }
  .hero-visual { min-height: 500px; margin-top: 35px; }
  .hero-visual img { width: 86%; margin: 0 auto; }
  .hero-blue { width: 76%; right: 0; }
  .feature-grid,
  .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .event-gallery,
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .archive-bar { align-items: flex-start; flex-direction: column; gap: 0; text-align: left; }
  .site-header { min-height: 76px; padding: 12px 18px; }
  .brand { font-size: 23px; }
  .brand img { width: 39px; height: 37px; }
  .hero { padding: 36px 20px 60px; }
  .hero h1 { font-size: clamp(37px, 11vw, 52px); }
  .hero h1 span { white-space: normal; }
  .hero-tags b { display: none; }
  .hero-tags { display: grid; gap: 2px; font-size: 15px; }
  .hero-visual { min-height: 350px; }
  .hero-visual img { width: 100%; }
  .hero-blue { width: 80%; height: 80%; }
  .section { padding: 72px 20px; }
  .feature-grid,
  .board-grid,
  .service-grid,
  .event-gallery,
  .media-grid { grid-template-columns: 1fr; }
  .service-card { grid-template-columns: 72px 1fr; padding: 20px; }
  .service-card img { width: 72px; height: 72px; }
  .post-card { grid-template-columns: 1fr; }
  .post-card img,
  .post-card .cover-placeholder { width: 100%; height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

